1 2013-12-20 Jakub Jelinek <jakub@redhat.com>
3 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
4 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
6 (instrument_bool_enum_load): New function.
8 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
9 * asan.c (create_cond_insert_point): No longer static.
10 * asan.h (create_cond_insert_point): Declare.
11 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
13 * opts.c (common_handle_option): Handle -fsanitize=bool and
15 * builtins.c (fold_builtin_memory_op): When sanitizing bool
16 and enum loads, don't use enum or bool types for memcpy folding.
17 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
18 (SANITIZE_UNDEFINED): Or these in.
20 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
22 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
23 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
24 to determine available register number.
25 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
26 macro NDS32_MODE_TYPE_ALIGN.
27 (nds32_function_arg): Refine code layout.
29 2013-12-19 Jeff Law <law@redhat.com>
31 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
32 handles both zero and sign extension.
34 2013-12-19 Teresa Johnson <tejohnson@google.com>
37 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
38 if we have made any changes.
40 2013-12-19 Jakub Jelinek <jakub@redhat.com>
43 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
44 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
46 (attr_rtx_1): Change hashcode variable to unsigned.
47 (attr_string): Likewise. Perform first multiplication in unsigned
49 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
51 * double-int.c (neg_double): Likewise.
52 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
53 * combine.c (force_to_mode): Likewise.
54 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
55 reload_cse_move2add, move2add_note_store): Likewise.
56 * simplify-rtx.c (simplify_const_unary_operation,
57 simplify_const_binary_operation): Likewise.
58 * ipa-split.c (find_split_points): Initialize first.can_split
59 and first.non_ssa_vars.
60 * gengtype-state.c (read_state_files_list): Fix up check.
61 * genautomata.c (reserv_sets_hash_value): Use portable rotation
64 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
66 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
67 * doc/arm-neon-intrinsics.texi: Regenerate.
69 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
71 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
73 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
75 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
76 (arm_init_neon_builtins): Handle crypto builtins.
77 (bdesc_2arg): Likewise.
78 (bdesc_1arg): Likewise.
79 (bdesc_3arg): New table.
80 (arm_expand_ternop_builtin): New function.
81 (arm_expand_unop_builtin): Handle sha1h explicitly.
82 (arm_expand_builtin): Handle ternary builtins.
83 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
84 Define __ARM_FEATURE_CRYPTO.
85 * config/arm/arm.md: Include crypto.md.
86 (is_neon_type): Add crypto types.
87 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
88 * config/arm/crypto.def: New.
89 * config/arm/crypto.md: Likewise.
90 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
91 (CRYPTO_BINARY): Likewise.
92 (CRYPTO_TERNARY): Likewise.
93 (CRYPTO_SELECTING): Likewise.
94 (crypto_pattern): New int attribute.
95 (crypto_size_sfx): Likewise.
96 (crypto_mode): Likewise.
97 (crypto_type): Likewise.
98 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
99 Handle crypto intrinsics.
100 * config/arm/neon.ml: Add support for poly64 and polt128 types
101 and intrinsics. Define crypto intrinsics.
102 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
103 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
104 (neon_vreinterpretv8hi<mode>): Likewise.
105 (neon_vreinterpretv4si<mode>): Likewise.
106 (neon_vreinterpretv4sf<mode>): Likewise.
107 (neon_vreinterpretv2di<mode>): Likewise.
108 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC,
109 UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H,
110 UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2,
111 UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
112 * config/arm/arm_neon.h: Regenerate.
114 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
117 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
118 DEFAULT_LINKER is defined.
119 * common.opt (fuse-ld=bfd): Add Driver.
120 (fuse-ld=gold): Likewise.
121 * gcc.c (use_ld): New variable.
122 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
124 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
126 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
128 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
129 * config.gcc (extra_headers): Add arm_acle.h.
130 * config/arm/arm.c (FL_CRC32): Define.
131 (arm_have_crc): Likewise.
132 (arm_option_override): Set arm_have_crc.
133 (arm_builtins): Add CRC32 builtins.
134 (bdesc_2arg): Likewise.
135 (arm_init_crc32_builtins): New function.
136 (arm_init_builtins): Initialise CRC32 builtins.
137 (arm_file_start): Handle architecture extensions.
138 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FEATURE_CRC32.
139 Define __ARM_32BIT_STATE.
140 (TARGET_CRC32): Define.
141 * config/arm/arm-arches.def: Add armv8-a+crc.
142 * config/arm/arm-tables.opt: Regenerate.
143 * config/arm/arm.md (type): Add crc.
144 (<crc_variant>): New insn.
145 * config/arm/arm_acle.h: New file.
146 * config/arm/iterators.md (CRC): New int iterator.
147 (crc_variant, crc_mode): New int attributes.
148 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
149 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
150 * doc/invoke.texi: Document -march=armv8-a+crc option.
151 * doc/extend.texi: Document ACLE intrinsics.
153 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
156 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
158 * config/arm/ldmstm.md: Regenerate.
160 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
163 * config/arm/predicates.md (arm_hard_general_register_operand):
165 (arm_hard_register_operand): Remove.
166 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
168 * config/arm/ldmstm.md: Regenerate.
170 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
173 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
174 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
175 vfp_hard_register_operand.
177 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
179 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
180 Define builtin types for poly64_t poly128_t.
181 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
182 * aarch64/aarch64-simd-builtins.def: Update builtins table.
183 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
184 aarch64_crypto_pmullv2di): New.
185 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
187 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
188 (vmull_p64, vmull_high_p64): New.
189 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
191 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
193 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
194 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha256h<sha256_op>v4si,
195 aarch64_crypto_sha256su0v4si, aarch64_crypto_sha256su1v4si): New.
196 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
197 vsha256su0q_u32, vsha256su1q_u32): New.
198 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
200 (CRYPTO_SHA256): New int iterator.
201 (sha256_op): New int attribute.
203 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
205 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
206 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
208 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
209 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
210 aarch64_crypto_sha1su0v4si): New.
211 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
212 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
213 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
215 (CRYPTO_SHA1): New int iterator.
216 (sha1_op): New int attribute.
218 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
220 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
221 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
223 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
224 aarch64_crypto_aes<aesmc_op>v16qi): New.
225 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
227 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
229 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
230 (aes_op, aesmc_op): New int attributes.
232 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
234 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
235 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
236 crypto_sha256_slow): New.
238 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
240 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
241 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
243 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
244 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
246 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
248 (s390_hotpatch_trampoline_halfwords_max): New constant
249 (s390_hotpatch_trampoline_halfwords): New static variable
250 (get_hotpatch_attribute): New function
251 (s390_handle_hotpatch_attribute): New function
252 (s390_attribute_table): New target specific attribute table to implement
253 the hotpatch attribute
254 (s390_option_override): Parse hotpatch options
255 (s390_function_num_hotpatch_trampoline_halfwords): New function
256 (s390_can_inline_p): Implement target hook to
257 suppress hotpatching for explicitly inlined functions
258 (s390_asm_output_function_label): Generate hotpatch prologue
259 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
260 (TARGET_CAN_INLINE_P): Define to implement target hook
261 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
262 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
264 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
265 function label generation for hotpatching
266 (FUNCTION_BOUNDARY): Align functions to eight bytes
267 * doc/extend.texi: Document hotpatch attribute
268 * doc/invoke.texi: Document -mhotpatch option
270 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
272 * config/i386/i386.c: Include cfgloop.h.
273 (ix86_loop_memcount): New function.
274 (ix86_loop_unroll_adjust): New function.
275 (TARGET_LOOP_UNROLL_ADJUST): Define.
277 (TARGET_ADJUST_UNROLL): Define.
278 * config/i386/x86-tune.def
279 (X86_TUNE_ADJUST_UNROLL): Define.
281 2013-12-19 Marek Polacek <polacek@redhat.com>
283 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
284 variable alg. Use index variable i directly.
286 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
288 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
291 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
293 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
294 Consider TARGET_CPU_DEFAULT settings.
296 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
298 * config/aarch64/aarch64-cores.def: Add support for
299 -mcpu=cortex-a57.cortex-a53.
300 * config/aarch64/aarch64-tune.md: Regenerate.
301 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
303 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
305 * config/aarch64/aarch64-cores.def: Add new column for
307 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle
309 * config/aarch64/aarch64.c (AARCH64_CORE): Handle
311 (aarch64_parse_cpu): mcpu implies a default value for mtune.
312 * config/aarch64/aarch64.h (AARCH64_CORE): Handle
315 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
317 * common/config/aarch64/aarch64-common.c
318 (aarch64_rewrite_selected_cpu): New.
319 (aarch64_rewrite_mcpu): New.
320 * config/aarch64/aarch64-protos.h
321 (aarch64_rewrite_selected_cpu): New.
322 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
323 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
324 (ASM_CPU_SPEC): Likewise.
325 (EXTRA_SPEC_FUNCTIONS): Likewise.
326 (EXTRA_SPECS): Likewise.
327 (ASM_SPEC): Likewise.
328 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
331 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
333 * omp-low.c (simd_clone_clauses_extract): Replaced the string
334 "cilk simd elemental" with "cilk simd function."
335 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
336 Removed a carriage-return from a warning string.
338 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
340 * passes.c (execute_function_dump): Set graph_dump_initialized
342 (pass_init_dump_file): Similarly.
343 (execute_one_pass): Pass new argument to do_per_function.
344 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
346 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
348 * doc/tree-ssa.texi (SSA Operands): Remove reference to
350 Synchronize SSA_OP* definitions with source.
351 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
352 Add not to SSA_OP* macro definitions.
354 2013-12-18 Jakub Jelinek <jakub@redhat.com>
358 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
359 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
360 prefix existing define_insn names with *.
362 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
364 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
366 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
367 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
369 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
370 cortex-a57, cortex-a57.cortex-a53.
372 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
375 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
376 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
377 (dwarf2out_frame_debug_expr): Tidy.
379 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
381 Sergey Lega <sergey.s.lega@intel.com>
382 Anna Tikhonova <anna.tikhonova@intel.com>
383 Ilya Tocar <ilya.tocar@intel.com>
384 Andrey Turetskiy <andrey.turetskiy@intel.com>
385 Ilya Verbin <ilya.verbin@intel.com>
386 Kirill Yukhin <kirill.yukhin@intel.com>
387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
389 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
390 (*fma_fmsub_<mode>): Ditto.
391 (*fma_fnmadd_<mode>): Ditto.
392 (*fma_fnmsub_<mode>): Ditto.
393 (*fma_fmaddsub_<mode>): Ditto.
394 (*fma_fmsubadd_<mode>): Ditto.
395 (avx512f_vternlog<mode>): Ditto.
396 (avx512f_fixupimm<mode>): Ditto.
397 (avx512f_sfixupimm<mode>): Ditto.
398 (avx512f_vpermi2var<mode>3): Ditto.
399 (avx512f_vpermt2var<mode>3): Ditto.
400 (avx512f_fmaddsub_<mode>_maskz): New.
401 (avx512f_vternlog<mode>_maskz): Ditto.
402 (avx512f_fixupimm<mode>_maskz): Ditto.
403 (avx512f_sfixupimm<mode>_maskz): Ditto.
404 (avx512f_vpermi2var<mode>3_maskz): Ditto.
405 (avx512f_vpermt2var<mode>3_maskz): Ditto.
406 (avx512f_expand<mode>_maskz): Ditto.
407 * config/i386/subst.md (sd_maskz_name): Ditto.
408 (sd_mask_op4): Ditto.
409 (sd_mask_op5): Ditto.
410 (sd_mask_codefor): Ditto.
411 (sd_mask_mode512bit_condition): Ditto.
414 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
416 Sergey Lega <sergey.s.lega@intel.com>
417 Anna Tikhonova <anna.tikhonova@intel.com>
418 Ilya Tocar <ilya.tocar@intel.com>
419 Andrey Turetskiy <andrey.turetskiy@intel.com>
420 Ilya Verbin <ilya.verbin@intel.com>
421 Kirill Yukhin <kirill.yukhin@intel.com>
422 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
424 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
425 (avx512f_ucmp<mode>3): Ditto.
426 (avx512f_eq<mode>3): Ditto.
427 (avx512f_gt<mode>3): Ditto.
428 (avx512f_testm<mode>3): Ditto.
429 (avx512f_testnm<mode>3): Ditto.
430 * config/i386/subst.md (SUBST_S): New.
431 (mask_scalar_merge_name): Ditto.
432 (mask_scalar_merge_operand3): Ditto.
433 (mask_scalar_merge_operand4): Ditto.
434 (mask_scalar_merge): Ditto.
436 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
439 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
441 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
443 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
446 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
448 2013-12-17 Teresa Johnson <tejohnson@google.com>
450 PR gcov-profile/59527
451 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
452 branch, which can't be eliminated.
454 2013-12-18 Martin Liska <marxin.liska@gmail.com>
455 Jan Hubicka <jh@suse.cz>
457 * cgraphunit.c (node_cmp): New function.
458 (expand_all_functions): Function ordering added.
459 * common.opt: New profile based function reordering flag introduced.
460 * lto-partition.c: Support for time profile added.
462 * predict.c (handle_missing_profiles): Time profile handled in
465 2013-12-17 Jakub Jelinek <jakub@redhat.com>
467 PR tree-optimization/59523
468 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
471 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
473 * ipa-inline.c (gate_ipa_inline): Remove.
474 (const pass_data pass_data_ipa_inline): Unset has_gate.
475 (class pass_ipa_inline): Remove gate() method.
477 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
479 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
480 in contains_type_p query.
482 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
484 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
487 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
490 * omp-low.c: Remove leftover comment.
492 * omp-low.c (check_combined_parallel): Reflect reality in comment.
494 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
496 * doc/passes.texi (Pass manager): Refer to passes.def.
498 * doc/gccint.texi (Top): Fix inclusion order.
500 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
502 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
503 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
504 * config/arm/arm.md (generic_vfp): Remove cortexa12.
506 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
508 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
509 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
510 * config/arm/arm-tables.opt: Regenerate.
511 * config/arm/arm-tune.md: Regenerate.
513 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
515 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
517 * config/arm/arm-cores.def (cortex-a57): New.
518 * doc/invoke.texi: Document -mcpu=cortex-a57.
519 * config/arm/arm-tables.opt: Regenerate.
520 * config/arm/arm-tune.md: Regenerate.
521 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
523 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
525 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
526 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
527 * config/arm/arm-tables.opt: Regenerate.
528 * config/arm/arm-tune.md: Regenerate.
530 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
532 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
534 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
535 * config/arm/genopt.sh: Improve layout.
536 * config/arm/arm-tune.md: Regenerate.
537 * config/arm/arm-tables.opt: Regenerate.
538 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
539 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
540 (arm_option_override): When a CPU is chosen, that should also
541 form the tune target.
542 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
544 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
546 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
547 (arm_rewrite_mcpu): Likewise.
548 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
549 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
550 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
551 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
552 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
553 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
555 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
557 * expmed.c (lowpart_bit_field_p): Fix comment.
558 (store_bit_field_using_insv): Fix formatting.
559 (store_bit_field): Likewise.
560 (store_fixed_bit_field): More declaration and remove return.
561 (store_fixed_bit_field_1): Fix formatting.
562 (extract_fixed_bit_field): Move declaration.
563 (extract_fixed_bit_field_1): Simplify.
565 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
567 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
569 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
571 2013-12-17 Jakub Jelinek <jakub@redhat.com>
573 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
574 instead of x as last gen_lowpart argument.
576 2013-12-16 Jakub Jelinek <jakub@redhat.com>
578 * predict.h (PROB_LIKELY): Fix the value.
579 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
580 for overflow checking for modes without 2xwider supported mode,
581 if the mode has 2xnarrower mode.
583 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
584 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
585 try to improve generated code if one of the arguments is constant
586 or get_range_info says that one of the argument is always
587 negative or always non-negative.
588 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
589 (simplify_stmt_using_ranges): Call it.
591 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
593 PR rtl-optimization/59466
594 * emit-rtl.c (change_address_1): Don't validate address for LRA.
595 * recog.c (general_operand): Accept any memory for LRA.
596 * lra.c (lra_set_insn_recog_data): Add an assert.
598 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
600 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
602 2013-12-14 Jan Hubicka <jh@suse.cz>
603 Markus Trippelsdorf <octoploid@yandex.com>
606 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
607 call is already devirtualized.
609 2013-12-16 Jakub Jelinek <jakub@redhat.com>
611 * Makefile.in (version.o): Restore dependencies on
612 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
614 2013-12-14 Jan Hubicka <jh@suse.cz>
617 * ipa-devirt.c (get_class_context): Do not ICE when type is found
620 2013-12-16 Jakub Jelinek <jakub@redhat.com>
623 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
624 reductions without placeholder if is_simd, but when not using
625 GOMP_SIMD* internal calls, also perform the reduction operation
626 on the outer var rather than simple assignment.
628 2013-12-16 Jakub Jelinek <jakub@redhat.com>
632 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
633 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
635 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
636 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
637 calls to supply the gimple operand containing the base tree
638 as an extra argument.
639 * tree-ssa-ter.c: Include gimple-walk.h.
640 (find_ssaname, find_ssaname_in_store): New helper functions.
641 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
642 same_root_var if USE is used somewhere in the stores of the stmt.
643 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
644 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
645 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
646 check_ipa_store): Likewise.
647 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
648 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
649 (verify_non_ssa_vars, visit_bb): Adjust their callers.
650 * cfgexpand.c (add_scope_conflicts_1): Use
651 walk_stmt_load_store_addr_fn type for visit variable.
652 (visit_op, visit_conflict): Remove name of the stmt
653 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
654 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
655 argument and ATTRIBUTE_UNUSED.
656 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
657 unnamed tree argument.
658 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
659 ATTRIBUTE_UNUSED from stmt parameter.
661 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
663 * opts-common.c (integral_argument): Add support for
664 hexadecimal command option integer arguments. Update comments.
666 2013-12-14 Jan Hubicka <jh@suse.cz>
669 * ipa-prop.c (ipa_analyze_call_uses): Skip already
672 2013-12-14 Jan Hubicka <jh@suse.cz>
674 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
676 2013-12-14 Jan Hubicka <jh@suse.cz>
679 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
681 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
684 * config/i386/i386.c (ix86_function_specific_restore): Don't
687 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
689 * var-tracking.c (add_stores): Fix oversight in latest commit.
691 2013-12-14 Marek Polacek <polacek@redhat.com>
694 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
695 expand_binop with correct optab depending on code.
697 2013-12-14 Tom de Vries <tom@codesourcery.com>
699 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
701 2013-12-13 DJ Delorie <dj@redhat.com>
703 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
705 * config/msp430/msp430.md (movqi): replace general_operand with
706 msp_general_operand and nonimmediate_operand with
707 msp_nonimmediate_operand to allow volatile operands.
712 (addhi3_cy): Likewise.
713 (addchi4_cy): Likewise.
714 (xor<mode>3): Likewise.
715 (ome_cmpl<mode>2): Likewise.
716 (extendqihi2): Likewise.
717 (zero_extendqihi2): Likewise.
718 (zero_extendhipsi2): Likewise.
719 (truncpsihi2): Likewise.
722 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
724 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
726 * lra-int.h (lra_init_equiv): New prototype.
727 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
728 (loc_equivalence_callback): Use the 3rd arg.
729 (lra_constraints): Update equivalences. Pass curr_insn to
730 simplify_replace_fn_rtx.
731 * lra.c (lra): Call lra_init_equiv.
733 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
735 * genmodes.c (emit_max_int): Fixed missing parens.
737 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
739 PR tree-optimization/59149
740 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
741 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
744 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
746 * config/arc/arc.h (BITS_PER_UNIT): Removed.
747 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
748 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
749 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
750 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
751 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
752 * config/spu/spu.h (BITS_PER_UNIT): Removed.
753 * defaults.h (BITS_PER_UNIT): Removed.
754 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
755 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
756 (MAX_BITSIZE_MODE_ANY_INT): Updated.
757 * doc/tm.texi (BITS_PER_UNIT): Removed.
758 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
759 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
760 (create_modes): Added code to set bits_per_unit and
761 max_bitsize_mode_any_int.
762 (emit_max_int): Changed code generation.
763 * mkconfig.sh: Added insn-modes.h.
765 2013-12-13 Jeff Law <law@redhat.com>
767 PR tree-optimization/45685
768 * tree-ssa-phiopt.c (neg_replacement): New function.
769 (tree_ssa_phiopt_worker): Call it.
771 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
773 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
775 2013-12-13 Bin Cheng <bin.cheng@arm.com>
777 PR tree-optimization/58296
778 PR tree-optimization/41488
779 * tree-scalar-evolution.c: Include necessary header files.
780 (simplify_peeled_chrec): New function.
781 (analyze_evolution_in_loop): New static variable.
782 Call simplify_peeled_chrec.
783 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
784 (add_old_iv_candidates): Don't add candidate for peeled IV.
785 * tree-affine.h (aff_combination_zero_p): New function.
787 2013-12-13 Nick Clifton <nickc@redhat.com>
789 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
790 true if the current function has the wakeup attribute.
791 (msp430_start_function): Note if the function has the wakeup
793 (msp430_attribute_table): Add wakeup attribute.
794 (msp430_expand_epilogue): Add support for wakeup functions.
795 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
796 the DINT instruction.
797 * doc/extend.texi: Document the wakeup attribute.
799 2013-12-13 Kai Tietz <kitetz@redhat.com>
802 * config/i386/i386.c (ix86_option_override_internal): Set for
803 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
806 2013-12-12 Jeff Law <law@redhat.com>
808 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
809 for zero-extended MULT simple LEA pattern.
811 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
814 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
817 2013-12-12 Jakub Jelinek <jakub@redhat.com>
820 * gimplify.c (omp_check_private): Add copyprivate argument, if it
821 is true, don't check omp_privatize_by_reference.
822 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
823 decl is private in outer context. Adjust omp_check_private caller.
825 2013-12-11 Jeff Law <law@redhat.com>
827 PR rtl-optimization/59446
828 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
829 test for crossing a loop header.
831 2013-12-11 Sriraman Tallam <tmsriram@google.com>
834 * config/i386/i386.c (get_builtin): New function.
835 (ix86_builtin_vectorized_function): Replace all instances of
836 ix86_builtins[...] with get_builtin(...).
837 (ix86_builtin_reciprocal): Ditto.
839 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
841 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
842 (lang_hooks_for_cilkplus): Remove.
843 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
844 (lhd_install_body_with_frame_cleanup): Likewise.
845 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
846 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
847 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
848 (LANG_HOOKS_CILKPLUS): Likewise.
849 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
850 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
851 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
852 (gimplify_call_expr): Likewise.
854 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
856 * expr.c (expand_assignment): Remove dependency on
857 flag_strict_volatile_bitfields. Always set the memory
859 (expand_expr_real_1): Likewise.
861 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
864 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
865 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
866 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
868 (store_fixed_bit_field_1): New function.
869 (store_split_bit_field): Limit the unit size to the memory mode size,
870 to prevent recursion.
872 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
873 Sandra Loosemore <sandra@codesourcery.com>
879 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
880 and bitregion_end parameters. Test for compliance with C++
882 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
883 Add fallback logic for cases where -fstrict-volatile-bitfields
884 is supposed to apply, but cannot.
885 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
886 extract_fixed_bit_field_1 to do the extraction.
887 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
888 Call extract_fixed_bit_field_1 to do the real work.
889 (extract_fixed_bit_field_1): New function.
891 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
897 * expmed.c (strict_volatile_bitfield_p): New function.
898 (store_bit_field_1): Don't special-case strict volatile
900 (store_bit_field): Handle strict volatile bitfields here instead.
901 (store_fixed_bit_field): Don't special-case strict volatile
903 (extract_bit_field_1): Don't special-case strict volatile
905 (extract_bit_field): Handle strict volatile bitfields here instead.
906 (extract_fixed_bit_field): Don't special-case strict volatile
907 bitfields here. Simplify surrounding code to resemble that in
908 store_fixed_bit_field.
909 * doc/invoke.texi (Code Gen Options): Update
910 -fstrict-volatile-bitfields description.
912 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
914 * configure.ac: Add check for aarch64 assembler -mabi support.
915 * configure: Regenerate.
916 * config.in: Regenerate.
917 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
918 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
919 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
920 if assembler does not support -mabi and option ilp32 is selected.
921 * doc/install.texi: Added note that building gcc 4.9 and after
922 with pre 2.24 binutils will not support -mabi=ilp32.
924 2013-12-11 Marek Polacek <polacek@redhat.com>
927 * expr.c (expand_expr_real_1): Remove assert dealing with
928 internal calls and turn that into a condition instead.
930 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
932 * config/arm/arm.opt (mlra): Enable LRA by default.
934 2013-12-11 Jakub Jelinek <jakub@redhat.com>
936 PR tree-optimization/59417
937 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
938 in a different bb rhan var, only duplicate points-to info and
939 not alignment info and don't duplicate range info.
940 * tree-ssa-loop-niter.c (determine_value_range): Instead of
941 assertion failure handle inconsistencies in range info by only
942 using var's range info and not PHI result range infos.
944 PR tree-optimization/59386
945 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
946 unshare_expr (id->retval) before passing it to gimple_build_assign.
948 2013-12-11 Bin Cheng <bin.cheng@arm.com>
951 2013-12-10 Bin Cheng <bin.cheng@arm.com>
952 PR tree-optimization/41488
953 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
954 for PEELED_CHREC kind IV.
955 * tree-scalar-evolution.c: Include necessary header files.
956 (peeled_chrec_map, simplify_peeled_chrec): New.
957 (analyze_evolution_in_loop): New static variable.
958 Call simplify_peeled_chrec.
959 (scev_initialize): Initialize peeled_chrec_map.
960 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
962 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
965 * config/i386/i386.md (*movsf_internal): Set mode to SI for
968 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
970 PR rtl-optimization/58295
971 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
972 WORD_REGISTER_OPERATIONS targets.
974 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
976 * genrecog.c (validate_pattern): Treat all messages except missing
978 * config/epiphany/epiphany.md: Remove constraints from
980 * config/h8300/h8300.md: Remove constraints from define_splits.
981 * config/msp430/msp430.md: Likewise.
982 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
983 nonimmediate_operand rather than general_operand for operand 0.
984 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
985 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
986 Use match_operator rather than match_test to invoke general_operand.
987 * config/v850/v850.md (*movqi_internal, *movhi_internal)
988 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
990 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
992 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
993 register_operand rather than pointer_operand. Add modes to the
995 (insn_ldna_add<bitsuffix>): Likewise.
996 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
997 (insn_ldnt_add<bitsuffix>): Likewise.
998 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
999 (insn_ld_add_L2<bitsuffix>): Likewise.
1000 (insn_ldna_add_L2<bitsuffix>): Likewise.
1001 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1002 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1003 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1004 (insn_ld_add_miss<bitsuffix>): Likewise.
1005 (insn_ldna_add_miss<bitsuffix>): Likewise.
1006 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1007 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1008 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1009 (insn_st_add<bitsuffix>): Likewise.
1010 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1011 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1012 (insn_stnt_add<bitsuffix>): Likewise.
1013 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1014 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1015 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1016 reg_or_0_operand for operand 0.
1017 (insn_v2<pack_insn>): Likewise.
1018 (vec_pack_hipart_v4hi): Likewise.
1019 (insn_v2packh): Likewise.
1020 (vec_pack_ssat_v2si): Likewise.
1021 (insn_v4packsc): Likewise.
1023 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1025 * basic-block.h (gcov_working_set_t): Put back typedef.
1026 * gcov-io.h (gcov_bucket_type): Likewise.
1027 (gcov_working_set_info, gcov_working_set_t): Likewise.
1029 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1031 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1033 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1034 rename to cgraph_inline_failed_t.
1035 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1037 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1039 * conditions.h (CC_STATUS): Remove typedef.
1040 * bitmap.h (bitmap_obstack): Remove typedef.
1041 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1043 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1045 (bitmap_iterator): Remove typedef.
1046 * target.h (cumulative_args_t, print_switch_type,
1047 secondary_reload_info): Remove typedef.
1048 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1049 dw_cfi_oprnd_struct alias.
1050 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1051 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1052 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1054 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1056 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1057 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1059 * params.h (param_info, compiler_param): Remove typedef.
1060 * opts.h (cl_deferred_param): Remove typedef.
1061 * sreal.h (sreal): Remove typedef.
1062 * ddg.h (dep_type, dep_data_type): Remove typedef.
1063 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1065 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1066 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1067 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1068 and rename to aff_tree.
1069 * sched-int.h (region): Remove typedef.
1070 * diagnostic.h (diagnostic_info,
1071 diagnostic_classification_change_t): Remove typedef.
1072 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1074 * sbitmap.h (sbitmap_iterator): Remove typedef.
1075 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1076 Remove typedef and rename to imm_use_iterator.
1077 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1079 * ggc-internal.h (ggc_statistics): Remove typedef.
1080 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1081 rename to cselib_val.
1082 * tree-core.h (alias_pair): Remove typedef.
1083 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1085 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1087 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1088 * tree-data-ref.h (conflict_function): Remove typedef.
1089 * tree-inline.h (copy_body_data): Remove typedef.
1090 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1091 edge_growth_cache_entry): Remove typedef.
1092 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1093 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1094 Remove typedef and rename to gimple_stmt_iterator.
1095 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1096 rename to ce_if_block.
1097 (edge_iterator): Remove typedef.
1098 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1099 and rename to ipa_agg_jf_item.
1100 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1101 ipa_parm_adjustment_t): Remove typedef.
1102 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1104 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1106 * gcov-io.h (gcov_bucket_type): Remove typedef.
1107 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1108 to gcov_working_set_t.
1109 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1110 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1111 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1112 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1113 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1114 replace_label_data): Remove typedef.
1115 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1116 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1117 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1118 sel_region_bb_info_def, succ_iterator): Remove typedef.
1119 (deps_where_def, deps_where_t): Remove typedef and rename to
1121 * coretypes.h: Adapt forward declarations.
1122 * tree-scalar-evolution.h: Likewise.
1123 * tree-ssa-address.h: Likewise.
1124 * tree-ssa-operands.h: Likewise.
1125 * function.h: Likewise.
1126 * config/frv/frv-protos.h: Likewise.
1127 * targhooks.h: Likewise.
1128 * basic_block.h: Likewise.
1129 * rtl.def: Adapt documentation.
1130 * doc/tm.texi: Likewise.
1131 * ipa-cp.c: Adapt uses.
1132 * bitmap.c: Likewise.
1133 * dwarf2out.c: Likewise.
1134 * target.def: Likewise.
1135 * ipa-inline-analysis.c: Likewise.
1136 * dwarf2cfi.c: Likewise.
1137 * tree-ssa-loop-ivopts.c: Likewise.
1138 * lto-cgraph.c: Likewise.
1139 * config/frv/frv.c: Likewise.
1140 * ifcvt.c: Likewise.
1141 * ipa-prop.c: Likewise.
1143 2013-12-10 Kai Tietz <ktietz@redhat.com>
1146 * config/i386/i386.c (ix86_expand_prologue): Address saved
1147 registers stack-relative, not via frame-pointer.
1149 2013-12-10 Richard Biener <rguenther@suse.de>
1152 * tree-ssa-structalias.c (solution_set_expand): Expand into
1153 a different possibly cached bitmap and return the result.
1154 (set_union_with_increment): Pass in a shared expanded bitmap
1156 (do_sd_constraint): Likewise.
1157 (do_ds_constraint): Likewise.
1158 (do_complex_constraint): Likewise.
1159 (solve_graph): Manage the shared expanded bitmap.
1161 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1163 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1164 (LOOP_VINFO_SCALAR_LOOP): Define.
1165 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1166 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1167 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1169 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1171 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1173 (release_bb_predicate): New function.
1174 (free_bb_predicate): Use it.
1175 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1176 just to immediately allocate it again.
1177 (add_to_predicate_list): Add loop argument. If basic blocks that
1178 dominate loop->latch don't insert any predicate.
1179 (add_to_dst_predicate_list): Adjust caller.
1180 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1181 handle it like flag_tree_loop_if_convert_stores.
1182 (insert_gimplified_predicates): Likewise.
1183 (ifcvt_can_use_mask_load_store): New function.
1184 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1185 argument, check if some conditional loads or stores can't be
1186 converted into MASK_LOAD or MASK_STORE.
1187 (if_convertible_stmt_p): Add any_mask_load_store argument,
1188 pass it down to if_convertible_gimple_assign_stmt_p.
1189 (predicate_bbs): Don't return bool, only check if the last stmt
1190 of a basic block is GIMPLE_COND and handle that. Adjust
1191 add_to_predicate_list caller.
1192 (if_convertible_loop_p_1): Only call predicate_bbs if
1193 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1194 afterwards, check gimple_code of stmts here. Replace is_predicated
1195 check with dominance check. Add any_mask_load_store argument,
1196 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1197 call if_convertible_phi_p only after all if_convertible_stmt_p
1199 (if_convertible_loop_p): Add any_mask_load_store argument,
1200 pass it down to if_convertible_loop_p_1.
1201 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1202 (combine_blocks): Add any_mask_load_store argument, pass
1203 it down to insert_gimplified_predicates and call predicate_mem_writes
1204 if it is set. Call predicate_bbs.
1205 (version_loop_for_if_conversion): New function.
1206 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1207 calls. Return todo flags instead of bool, call
1208 version_loop_for_if_conversion if if-conversion should be just
1209 for the vectorized loops and nothing else.
1210 (main_tree_if_conversion): Adjust caller. Don't call
1211 tree_if_conversion for dont_vectorize loops if if-conversion
1212 isn't explicitly enabled.
1213 * tree-vect-data-refs.c (vect_check_gather): Handle
1214 MASK_LOAD/MASK_STORE.
1215 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1216 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1217 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1218 expand_MASK_STORE): New functions.
1219 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1220 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1221 (vectorize_loops): Don't try to vectorize loops with
1222 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1223 loops, fold LOOP_VECTORIZED internal call depending on if loop
1224 has been vectorized or not.
1225 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1227 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1228 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1229 still to loop's entry or exit edge.
1230 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1231 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1232 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1234 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1235 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1236 right place in the CFG afterwards.
1237 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1239 * cfgloop.h (struct loop): Add dont_vectorize field.
1240 * tree-loop-distribution.c (copy_loop_before): Adjust
1241 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1242 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1243 * passes.def: Add a note that pass_vectorize must immediately follow
1245 * tree-predcom.c (split_data_refs_to_components): Give up if
1247 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
1249 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1251 (vectorizable_mask_load_store): New function.
1252 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1253 (vect_transform_stmt): Handle MASK_STORE.
1254 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1255 DR_STMT where lhs is NULL.
1256 * optabs.h (can_vec_perm_p): Fix up comment typo.
1257 (can_vec_mask_load_store_p): New prototype.
1258 * optabs.c (can_vec_mask_load_store_p): New function.
1260 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1262 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1263 the extraction of a bit-field of null size.
1265 2013-12-10 Marek Polacek <polacek@redhat.com>
1268 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1269 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1270 instead of gimple_code.
1272 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1274 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1275 Add android definitions.
1276 (s390x-*-linux*): Use linux-protos.h.
1278 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1280 PR tree-optimization/41488
1281 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1282 for PEELED_CHREC kind IV.
1283 * tree-scalar-evolution.c: Include necessary header files.
1284 (peeled_chrec_map, simplify_peeled_chrec): New.
1285 (analyze_evolution_in_loop): New static variable.
1286 Call simplify_peeled_chrec.
1287 (scev_initialize): Initialize peeled_chrec_map.
1288 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1290 2013-12-09 Andrew Pinski <apinski@cavium.com>
1292 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1293 that options are conflicting ones.
1295 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1297 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1299 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1301 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1303 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1304 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1306 * cfganal.c (inverted_post_order_compute): Likewise.
1307 * cfgcleanup.c (try_optimize_cfg): Likewise.
1308 * cfgexpand.c (add_scope_conflicts): Likewise.
1309 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1310 * cfgrtl.c (relink_block_chain): Likewise.
1311 * dce.c (mark_artificial_uses): Likewise.
1312 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1313 * df-problems.c (df_lr_verify_solution_start,
1314 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1315 df_live_verify_solution_start, df_live_verify_solution_end,
1316 df_live_set_all_dirty, df_live_verify_transfer_functions,
1317 df_md_local_comput): Likewise.
1318 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1319 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1320 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1321 free_dominance_info): Likewise.
1322 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1323 * graph.c (draw_cfg_edges): Likewise.
1324 * graphite-scop-detection.c (print_graphite_scop_statistics,
1325 dot_all_scops_1): Likewise.
1326 * graphite.c (print_global_statistics,
1327 print_graphite_scop_statistics): Likewise.
1328 * ira.c (do_reload): Likewise.
1329 * loop-init.c (loop_optimizer_finalize): Likewise.
1330 * lto-streamer-in.c (input_function): Likewise.
1331 * lto-streamer-out.c (output_function): Likewise.
1332 * mcf.c (adjust_cfg_counts): Likewise.
1333 * predict.c (estimate_loops): Likewise.
1334 * sched-rgn.c (haifa_find_rgns): Likewise.
1335 * tree-cfg.c (split_critical_edges): Likewise.
1336 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1337 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1338 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1339 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1340 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1341 * vtable-verify.c (vtable_verify_main): Likewise.
1342 * web.c (web_main): Likewise.
1344 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1346 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1348 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1349 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1350 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1351 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1352 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1353 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1354 * config/sh/sh.c (sh_md_init_global): Likewise.
1355 * config/sh/sh_optimize_sett_clrt.cc
1356 (sh_optimize_sett_clrt::execute): Likewise.
1357 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1359 * dominance.c (calc_dfs_tree): Likewise.
1360 * final.c (final): Likewise.
1361 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1362 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1363 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1364 * lcm.c (compute_antinout_edge): Likewise.
1365 * mode-switching.c (optimize_mode_switching): Likewise.
1366 * postreload.c (reload_combine): Likewise.
1367 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1368 * tree-ssa-live.c (live_worklist): Likewise.
1370 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1372 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1374 * asan.c (transform_statements, execute_sanopt): Eliminate
1375 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1377 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1378 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1379 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1380 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1381 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1382 duplicate_computed_gotos): Likewise.
1383 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1384 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1385 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1386 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1387 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1388 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1390 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1391 verify_loop_structure): Likewise.
1392 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1393 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1394 verify_hot_cold_block_grouping, purge_all_dead_edges,
1395 fixup_abnormal_edges, record_effective_endpoints,
1396 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1397 break_superblocks): Likewise.
1398 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1399 cgraph_rebuild_references): Likewise.
1400 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1401 * combine.c (delete_noop_moves, create_log_links,
1402 combine_instructions): Likewise.
1403 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1404 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1406 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1407 c6x_reorg): Likewise.
1408 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1409 * config/frv/frv.c (frv_optimize_membar): Likewise.
1410 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1411 * config/ia64/ia64.c (ia64_reorg): Likewise.
1412 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1413 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1414 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1415 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1416 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1417 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1418 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1419 reorder_var_tracking_notes): Likewise.
1420 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1421 reorder_var_tracking_notes): Likewise.
1422 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1423 * cprop.c (compute_hash_table_work, compute_cprop_data,
1424 local_cprop_pass, find_implicit_sets): Likewise.
1425 * cse.c (cse_condition_code_reg): Likewise.
1426 * dce.c (prescan_insns_for_dce): Likewise.
1427 * df-core.c (df_compact_blocks): Likewise.
1428 * df-problems.c (df_word_lr_alloc): Likewise.
1429 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1430 df_update_entry_exit_and_calls): Likewise.
1431 * dominance.c (calculate_dominance_info, verify_dominators,
1432 debug_dominance_info): Likewise.
1433 * dse.c (dse_step5_nospill): Likewise.
1434 * except.c (finish_eh_generation): Likewise.
1435 * final.c (compute_alignments): Likewise.
1436 * function.c (thread_prologue_and_epilogue_insns,
1437 rest_of_match_asm_constraints): Likewise.
1438 * gcse.c (compute_hash_table_work, prune_expressions,
1439 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1440 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1441 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1442 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1443 find_explicit_erroneous_behaviour): Likewise.
1444 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1445 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1446 * haifa-sched.c (haifa_sched_init): Likewise.
1447 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1449 * ifcvt.c (if_convert): Likewise.
1450 * init-regs.c (initialize_uninitialized_regs): Likewise.
1451 * ipa-prop.c (ipcp_transform_function): Likewise.
1452 * ipa-pure-const.c (analyze_function): Likewise.
1453 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1454 * ira-build.c (form_loop_tree): Likewise.
1455 * ira-costs.c (find_costs_and_classes): Likewise.
1456 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1457 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1458 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1459 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1460 * jump.c (mark_all_labels): Likewise.
1461 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1462 compute_nearerout, compute_rev_insert_delete): Likewise.
1463 * loop-init.c (fix_loop_structure): Likewise.
1464 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1465 * lower-subreg.c (decompose_multiword_subregs,
1466 decompose_multiword_subregs): Likewise.
1467 * lra-assigns.c (assign_by_spills): Likewise.
1468 * lra-coalesce.c (lra_coalesce): Likewise.
1469 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1471 * lra-eliminations.c (lra_init_elimination): Likewise.
1472 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1473 lra_final_code_change): Likewise.
1474 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1475 update_inc_notes): Likewise.
1476 * mcf.c (adjust_cfg_counts): Likewise.
1477 * mode-switching.c (optimize_mode_switching): Likewise.
1478 * modulo-sched.c (rest_of_handle_sms): Likewise.
1479 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1480 expand_omp_target): Likewise.
1481 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1482 * postreload.c (reload_cse_regs_1): Likewise.
1483 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1484 tree_estimate_probability, expensive_function_p,
1485 estimate_bb_frequencies, compute_function_frequency): Likewise.
1486 * profile.c (is_inconsistent, compute_branch_probabilities,
1487 branch_prob): Likewise.
1488 * ree.c (find_removable_extensions): Likewise.
1489 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1490 * regcprop.c (copyprop_hardreg_forward): Likewise.
1491 * reginfo.c (init_subregs_of_mode): Likewise.
1492 * regrename.c (regrename_analyze): Likewise.
1493 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1495 * reload1.c (has_nonexceptional_receiver, reload,
1496 calculate_elim_costs_all_insns): Likewise.
1497 * resource.c (init_resource_info, free_resource_info): Likewise.
1498 * sched-ebb.c (schedule_ebbs): Likewise.
1499 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1500 haifa_find_rgns, sched_rgn_local_init): Likewise.
1501 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1502 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1503 make_regions_from_the_rest): Likewise.
1504 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1505 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1506 * store-motion.c (compute_store_table, build_store_vectors,
1507 one_store_motion_pass): Likewise.
1508 * tracer.c (tail_duplicate): Likewise.
1509 * trans-mem.c (compute_transaction_bits): Likewise.
1510 * tree-call-cdce.c (tree_call_cdce): Likewise.
1511 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1512 fold_cond_expr_cond, make_edges, assign_discriminators,
1513 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1514 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1515 execute_fixup_cfg): Likewise.
1516 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1517 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1519 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1520 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1521 mark_reachable_handlers): Likewise.
1522 * tree-emutls.c (lower_emutls_function_body): Likewise.
1523 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1524 * tree-inline.c (optimize_inline_calls): Likewise.
1525 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1526 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1527 * tree-object-size.c (compute_object_sizes): Likewise.
1528 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1529 insert_backedge_copies, tree_profiling): Likewise.
1530 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1531 * tree-sra.c (scan_function, sra_modify_function_body,
1532 propagate_dereference_distances, ipa_sra_modify_function_body,
1533 convert_callers): Likewise.
1534 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1535 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1536 create_outofssa_var_map, coalesce_partitions): Likewise.
1537 * tree-ssa-copy.c (init_copy_prop): Likewise.
1538 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1539 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1540 eliminate_unnecessary_stmts): Likewise.
1541 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1543 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1544 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1545 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1546 analyze_memory_references, fill_always_executed_in,
1547 tree_ssa_lim_finalize): Likewise.
1548 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1550 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1551 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1552 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1553 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1554 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1556 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1557 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1558 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1559 tree_ssa_uncprop): Likewise.
1560 * tree-ssa-uninit.c (warn_uninitialized_vars,
1561 execute_late_warn_uninitialized): Likewise.
1562 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1563 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1565 * tree-switch-conversion.c (do_switchconv): Likewise.
1566 * tree-vect-generic.c (expand_vector_operations): Likewise.
1567 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1568 execute_vect_slp): Likewise.
1569 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1570 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1572 * ubsan.c (ubsan_pass): Likewise.
1573 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1574 gimple_find_values_to_profile): Likewise.
1575 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1576 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1578 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1580 * basic-block.h (last_basic_block): Eliminate macro.
1582 * asan.c (transform_statements): Eliminate use of last_basic_block
1583 in favor of last_basic_block_for_fn, in order to make use of cfun
1585 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1586 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1587 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1588 * cfg.c (compact_blocks): Likewise.
1589 * cfganal.c (mark_dfs_back_edges,
1590 control_dependences::control_dependences, post_order_compute,
1591 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1592 single_pred_before_succ_order): Likewise.
1593 * cfgbuild.c (make_edges): Likewise.
1594 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1595 * cfghooks.c (verify_flow_info): Likewise.
1596 * cfgloop.c (verify_loop_structure): Likewise.
1597 * cfgloopanal.c (just_once_each_iteration_p,
1598 mark_irreducible_loops): Likewise.
1599 * cfgloopmanip.c (fix_bb_placements, remove_path,
1600 update_dominators_in_loop): Likewise.
1601 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1602 break_superblocks, rtl_flow_call_edges_add): Likewise.
1603 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1604 * config/frv/frv.c (frv_optimize_membar): Likewise.
1605 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1606 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1607 * cprop.c (compute_local_properties, find_implicit_sets,
1608 bypass_conditional_jumps, one_cprop_pass): Likewise.
1609 * cse.c (cse_main): Likewise.
1610 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1611 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1612 * df-problems.c (df_lr_verify_solution_start,
1613 df_live_verify_solution_start, df_md_local_compute): Likewise.
1614 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1615 calc_idoms): Likewise.
1616 * domwalk.c (dom_walker::walk): Likewise.
1617 * dse.c (dse_step0, dse_step3): Likewise.
1618 * function.c (epilogue_done): Likewise.
1619 * gcse.c (alloc_gcse_mem, compute_local_properties,
1620 prune_insertions_deletions, compute_pre_data,
1621 pre_expr_reaches_here_p, one_pre_gcse_pass,
1622 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1623 one_code_hoisting_pass): Likewise.
1624 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1625 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1626 * haifa-sched.c (unlink_bb_notes): Likewise.
1627 * ipa-split.c (execute_split_functions): Likewise.
1628 * ira-build.c (create_loop_tree_nodes,
1629 remove_unnecessary_regions): Likewise.
1630 * ira-emit.c (ira_emit): Likewise.
1631 * ira.c (find_moveable_pseudos, ira): Likewise.
1632 * lcm.c (compute_antinout_edge, compute_laterin,
1633 compute_insert_delete, pre_edge_lcm, compute_available,
1634 compute_nearerout, compute_rev_insert_delete,
1635 pre_edge_rev_lcm): Likewise.
1636 * loop-unroll.c (opt_info_start_duplication,
1637 apply_opt_in_copies): Likewise.
1638 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1639 * lra-lives.c (lra_create_live_ranges): Likewise.
1640 * lra.c (lra): Likewise.
1641 * mode-switching.c (optimize_mode_switching): Likewise.
1642 * recog.c (split_all_insns): Likewise.
1643 * regcprop.c (copyprop_hardreg_forward): Likewise.
1644 * regrename.c (regrename_analyze): Likewise.
1645 * reload1.c (reload): Likewise.
1646 * resource.c (init_resource_info): Likewise.
1647 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1648 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1649 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1650 recompute_rev_top_order, sel_init_pipelining,
1651 make_regions_from_the_rest): Likewise.
1652 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1654 * tracer.c (tail_duplicate): Likewise.
1655 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1656 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1657 gimple_flow_call_edges_add): Likewise.
1658 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1659 cleanup_tree_cfg_1): Likewise.
1660 * tree-complex.c (tree_lower_complex): Likewise.
1661 * tree-inline.c (copy_cfg_body): Likewise.
1662 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1663 prepare_def_site_for, update_ssa): Likewise.
1664 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1665 * tree-ssa-dom.c (record_edge_info): Likewise.
1666 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1667 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1668 * tree-ssa-loop-manip.c (copy_phi_node_args
1669 gimple_duplicate_loop_to_header_edge): Likewise.
1670 * tree-ssa-pre.c (compute_antic): Likewise.
1671 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1672 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1673 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1674 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1675 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1676 * tree-stdarg.c (reachable_at_most_once): Likewise.
1677 * tree-vrp.c (find_assert_locations): Likewise.
1678 * var-tracking.c (vt_find_locations): Likewise.
1680 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1682 * basic-block.h (profile_status): Eliminate macro.
1684 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1685 profile_status macro in favor of profile_status_for_fn, making
1686 use of cfun explicit.
1687 * cfghooks.c (account_profile_record): Likewise.
1688 * cfgloopanal.c (single_likely_exit):
1689 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1690 * graphite.c (graphite_finalize):
1691 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1692 ubsan_expand_si_overflow_neg_check,
1693 ubsan_expand_si_overflow_mul_check): Likewise.
1694 * ipa-split.c (consider_split, execute_split_functions):
1695 * loop-unroll.c (decide_peel_simple):
1696 * optabs.c (emit_cmp_and_jump_insn_1):
1697 * predict.c (maybe_hot_edge_p, probably_never_executed,
1698 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1699 tree_estimate_probability_driver, estimate_bb_frequencies,
1700 compute_function_frequency, rebuild_frequencies): Likewise.
1701 * profile.c (compute_branch_probabilities): Likewise.
1702 * tree-cfg.c (gimple_account_profile_record): Likewise.
1703 * tree-inline.c (optimize_inline_calls): Likewise.
1705 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1707 * basic-block.h (label_to_block_map): Eliminate macro.
1709 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1710 with uses of label_to_block_map_for_fn, making uses of cfun be
1712 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1713 (verify_gimple_label): Likewise.
1715 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1717 * basic-block.h (basic_block_info): Eliminate macro.
1719 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1720 basic_block_info with basic_block_info_for_fn, making uses
1721 of cfun be explicit.
1722 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1724 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1726 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1728 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1729 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1730 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1731 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1732 * caller-save.c (insert_one_insn): Likewise.
1733 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1734 * cfgexpand.c (add_scope_conflicts): Likewise.
1735 * cfghooks.c (verify_flow_info): Likewise.
1736 * cfgloop.c (flow_loops_find): Likewise.
1737 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1738 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1739 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1740 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1741 * cse.c (cse_main): Likewise.
1742 * dce.c (fast_dce): Likewise.
1743 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1744 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1745 df_bb_replace, df_dump_region): Likewise.
1746 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1747 df_live_bb_local_compute, df_chain_remove_problem)
1748 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1749 df_md_bb_local_compute, df_md_local_compute,
1750 df_md_transfer_function): Likewise.
1751 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1752 df_reorganize_refs_by_insn, df_bb_refs_collect,
1753 df_record_entry_block_defs, df_update_entry_block_defs,
1754 df_record_exit_block_uses): Likewise.
1755 * dominance.c (nearest_common_dominator_for_set): Likewise.
1756 * gcse.c (hoist_code): Likewise.
1757 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1758 * ipa-inline-analysis.c (param_change_prob,
1759 estimate_function_body_sizes): Likewise.
1760 * ipa-split.c (dominated_by_forbidden): Likewise.
1761 * loop-unroll.c (apply_opt_in_copies): Likewise.
1762 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1763 * lra-lives.c (lra_create_live_ranges): Likewise.
1764 * predict.c (propagate_freq): Likewise.
1765 * regrename.c (regrename_analyze): Likewise.
1766 * regstat.c (regstat_bb_compute_ri,
1767 regstat_bb_compute_calls_crossed): Likewise.
1768 * resource.c (mark_target_live_regs): Likewise.
1769 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1770 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1771 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1772 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1773 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1774 * sched-vis.c (debug_bb_n_slim): Likewise.
1775 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1776 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1777 * sel-sched.c (remove_insns_that_need_bookkeeping)
1778 (current_region_empty_p, sel_region_init,
1779 simplify_changed_insns): Likewise.
1780 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1781 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1782 * tree-cfg.c (make_edges, end_recording_case_labels,
1783 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1784 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1785 gimple_purge_all_dead_eh_edges,
1786 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1787 * tree-cfgcleanup.c (fixup_noreturn_call,
1788 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1789 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1790 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1791 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1792 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1793 * tree-ssa-live.c (live_worklist): Likewise.
1794 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1795 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1796 * tree-ssa-pre.c (compute_antic): Likewise.
1797 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1798 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1799 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1800 same_succ_flush_bbs, update_worklist, set_cluster,
1801 same_phi_alternatives, find_clusters_1, apply_clusters,
1802 update_debug_stmts): Likewise.
1803 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1804 thread_through_all_blocks): Likewise.
1805 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1806 * tree-vrp.c (find_assert_locations): Likewise.
1808 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1810 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1812 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1813 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1814 (expunge_block): Likewise.
1815 * cfgrtl.c (create_basic_block_structure): Likewise.
1816 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1817 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1818 * tree-cfg.c (create_bb): Likewise.
1820 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1822 * basic-block.h (profile_status_for_function): Rename to...
1823 (profile_status_for_fn): ...this.
1825 * cfg.c (check_bb_profile): Update for renaming.
1826 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1827 * lto-streamer-in.c (input_cfg): Likewise.
1828 * lto-streamer-out.c (output_cfg): Likewise.
1829 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1830 maybe_hot_bb_p, probably_never_executed)
1831 (handle_missing_profiles): Likewise.
1832 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1833 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1835 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1837 * basic-block.h (label_to_block_map_for_function): Rename to...
1838 (label_to_block_map_for_fn): ...this.
1840 * lto-streamer-in.c (input_cfg): Update for renaming.
1841 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1843 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1845 * basic-block.h (last_basic_block_for_function): Rename to...
1846 (last_basic_block_for_fn): ...this.
1848 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1849 last_basic_block_for_function to last_basic_block_for_fn.
1850 * lto-streamer-in.c (input_cfg): Likewise.
1851 * lto-streamer-out.c (output_cfg): Likewise.
1852 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1853 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1856 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1858 * basic-block.h (basic_block_info_for_function): Rename to...
1859 (basic_block_info_for_fn): ...this.
1860 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1861 (BASIC_BLOCK_FOR_FN): ...this.
1862 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1863 (SET_BASIC_BLOCK_FOR_FN): ...this.
1865 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1866 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1867 * ipa-utils.c (ipa_merge_profiles): Likewise.
1868 * lto-streamer-in.c (make_new_block): Update for renaming of
1869 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1870 (input_cfg): Update for renamings.
1871 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1872 (dump_function_to_file): Update for renaming of
1873 basic_block_info_for_function to basic_block_info_for_fn.
1875 2013-12-09 Richard Biener <rguenther@suse.de>
1878 * tree-ssa-structalias.c (set_union_with_increment): Remove
1880 (do_complex_constraint): Call set_union_with_increment with
1881 the solution delta, not the full solution.
1882 (make_transitive_closure_constraints): Merge the two
1885 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1887 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1888 more address validation checks.
1890 2013-12-09 Marek Polacek <polacek@redhat.com>
1893 * vtable-verify.c (verify_bb_vtables): Check the return value
1894 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1896 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1898 * config/arm/arm.md (generic_sched): Add cortexa12.
1899 (generic_vfp): Likewise.
1900 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1901 (arm_cortex_a12_tune): New tuning struct.
1902 * config/arm/arm-cores.def: Add cortex-a12.
1903 * config/arm/arm-tables.opt: Regenerate.
1904 * config/arm/arm-tune.md: Likewise.
1905 * config/arm/bpabi.h: Add cortex-a12.
1906 * doc/invoke.texi: Document -mcpu=cortex-a12.
1908 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1910 * doc/install.texi (Prerequisites): Explicitly mention C library
1911 and its headers for multilib builds.
1913 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1917 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1918 OPT_mcbranchdi entry.
1919 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1921 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1922 and TARGET_CMPEQDI_T variables.
1923 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1925 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1927 * config/linux.h: Fix typo in a comment.
1929 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1931 * config.gcc (*linux*): Split libc selection from Android support.
1932 Add libc selection to all *linux* targets. Add Android support to
1933 architectures that support it.
1934 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1935 (mips*-*-linux*): Add Android support.
1937 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1938 Maxim Kuvyrkov <maxim@kugelworks.com>
1940 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1941 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1942 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1944 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1946 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1947 Define appropriately for Linux and uClinux targets.
1949 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1951 * config/linux.c (linux_has_ifunc_p): Use correct test.
1953 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1955 * config/linux.c (linux_android_has_ifunc_p): Rename to
1957 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1958 * config/linux-protos.h (linux_android_has_ifunc_p,)
1959 (linux_android_libc_has_function): Update declarations.
1960 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1961 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1963 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1965 * linux-android.c: Rename to linux.c.
1966 * t-linux-android: Rename to t-linux. Update references
1968 * config.gcc: Update references to t-linux-android and linux-android.o.
1970 2013-12-07 Alan Modra <amodra@gmail.com>
1972 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1975 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1977 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1979 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1981 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1984 2013-12-06 Caroline Tice <cmtice@google.com>
1986 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1987 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1988 vtable pointer with the results of the verification call, rather than
1989 only the uses in the next statement.
1991 2013-12-06 Andrew Pinski <apinski@cavium.com>
1994 * config/aarch64/aarch64.md (trap): New pattern.
1996 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1998 PR tree-optimization/59388
1999 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2000 gimplify tem after stmt rather than before it.
2002 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2003 (get_references_in_stmt): Don't record operand addresses, but
2004 operands themselves.
2005 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2006 Adjust for the pos -> ref change.
2008 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2010 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2012 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2013 (processor_alias_table): Likewise.
2014 (ix86_option_override_internal): Likewise.
2015 * config/i386/i386.h (target_cpu_default): Replace
2016 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2018 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2020 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2023 * config/i386/i386.c (type_natural_mode): Properly handle
2024 size 8 for !TARGET_64BIT.
2026 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2028 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2031 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2032 Mark Mitchell <mark@codesourcery.com>
2035 * config/arm/arm.md (trap): New pattern.
2036 * config/arm/types.md: Added a type for trap.
2038 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2040 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2042 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2045 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2046 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2047 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2048 (TARGET_BUILTIN_DECL): Define.
2049 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2050 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2051 (enum sparc_builtins): New enumeral type.
2052 (sparc_builtins): New static array.
2053 (sparc_builtins_icode): Likewise.
2054 (def_builtin): Accept a separate icode and save the result.
2055 (def_builtin_const): Likewise.
2056 (sparc_fpu_init_builtins): New function.
2057 (sparc_vis_init_builtins): Pass the builtin code.
2058 (sparc_init_builtins): Call it if TARGET_FPU.
2059 (sparc_builtin_decl): New function.
2060 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2061 (sparc_handle_vis_mul8x16): Use the builtin code.
2062 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2063 and SPARC_BUILTIN_PDISTN.
2064 (compound_expr): New helper function.
2065 (sparc_atomic_assign_expand_fenv): New function.
2066 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2068 (flush, flushdi): Merge into single pattern.
2069 (ldfsr): New instruction.
2072 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2074 * asan.c: Remove struct tags when referring to class varpool_node.
2075 * cgraph.h: Likewise.
2076 * cgraphbuild.c: Likewise.
2077 * cgraphunit.c: Likewise.
2078 * dbxout.c: Likewise.
2079 * dwarf2out.c: Likewise.
2080 * gimple-fold.c: Likewise.
2081 * ipa-devirt.c: Likewise.
2082 * ipa-ref-inline.h: Likewise.
2083 * ipa-ref.h: Likewise.
2084 * ipa-reference.c: Likewise.
2085 * ipa-utils.c: Likewise.
2087 * lto-cgraph.c: Likewise.
2088 * lto-streamer-out.c: Likewise.
2089 * lto-streamer.h: Likewise.
2090 * passes.c: Likewise.
2091 * toplev.c: Likewise.
2092 * tree-eh.c: Likewise.
2093 * tree-emutls.c: Likewise.
2094 * tree-pass.h: Likewise.
2095 * tree-ssa-structalias.c: Likewise.
2096 * tree-vectorizer.c: Likewise.
2098 * varasm.c: Likewise.
2099 * varpool.c: Likewise.
2101 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2103 * cgraphunit.c: Remove struct tags when referring to class
2104 ipa_opt_pass_d or class opt_pass.
2105 * function.h: Likewise.
2106 * lto-cgraph.c: Likewise.
2107 * pass_manager.h: Likewise.
2108 * passes.c: Likewise.
2109 * tree-pass.h: Likewise.
2111 2013-12-06 Richard Biener <rguenther@suse.de>
2113 PR tree-optimization/59058
2114 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2115 (LOOP_VINFO_NITERSM1): New macro.
2116 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2117 the vector loop entry test in terms of scalar latch executions.
2118 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2119 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2120 number of latch executions.
2121 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2122 (vect_analyze_loop_form): Likewise.
2123 (vect_generate_tmps_on_preheader): Compute the number of
2124 vectorized iterations differently.
2126 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2128 * config/score/score.c (score_force_temporary): Delete function.
2129 (score_split_symbol): Ditto.
2130 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2131 parentheses to silence ambiguity warning and reindent.
2133 2013-12-05 Marek Polacek <polacek@redhat.com>
2135 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2137 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2139 * config.gcc: Support --with-cpu=ia.
2141 * config/i386/i386.c (cpu_names): Add "ia".
2142 (processor_alias_table): Likewise.
2143 (ix86_option_override_internal): Disallow -march=ia.
2144 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2146 * doc/invoke.texi: Document -mtune=ia.
2148 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2150 PR rtl-optimization/59317
2151 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2154 2013-12-05 Martin Jambor <mjambor@suse.cz>
2157 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2158 non-BLKmode in their naturally aligned type.
2160 2013-12-05 Marek Polacek <polacek@redhat.com>
2164 * ubsan.c: Include rtl.h and expr.h.
2165 (ubsan_encode_value): Add new parameter. If expanding, assign
2166 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2167 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2168 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2169 * ubsan.h (ubsan_encode_value): Adjust declaration.
2170 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2171 ubsan_build_overflow_builtin above expand_normal call. Surround
2172 this call with push_temp_slots and pop_temp_slots.
2173 (ubsan_expand_si_overflow_neg_check): Likewise.
2174 (ubsan_expand_si_overflow_mul_check): Likewise.
2176 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2178 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2179 the get_alternative_base call with flag_expensive_optimizations.
2180 (alloc_cand_and_find_basis): Likewise.
2182 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2184 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2185 vec_select for overlapping register lanes.
2187 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2189 * config/i386/i386.c (ix86_expand_builtin): Generate
2190 reg for readflags built-in when optimizing.
2191 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2192 (pushfl<mode>2): This. Fix iterator.
2193 (*popfl<mode>): Rename to ...
2194 (*popfl<mode>1): This. Fix iterator.
2196 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2198 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2199 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2200 (ix86_init_mmx_sse_builtins): Define
2201 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2202 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2203 (ix86_expand_builtin): Expand them.
2204 * config/i386/ia32intrin.h (__readeflags): New.
2205 (__writeeflags): Ditto.
2206 * config/i386/i386.md (*pushfl<mode>): Ditto.
2207 (*popfl<mode>1): Ditto.
2209 2013-12-05 Richard Biener <rguenther@suse.de>
2211 PR tree-optimization/59374
2212 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2213 Commonize known and unknown dependence case fixing the allowed
2214 read-write dependence case and dropping code that should not matter.
2216 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2218 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2219 generation of predicated version.
2220 (epilogue_deallocate_stack): Ditto.
2221 (prologue_allocate_stack_pr): Add explicit predicated version.
2222 (epilogue_deallocate_stack_pr): Ditto.
2223 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2225 2013-12-05 Alan Modra <amodra@gmail.com>
2227 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2229 <recursive call for build != host>: Clear GMPINC. Don't bother
2232 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2233 Marek Polacek <polacek@redhat.com>
2235 * opts.c (common_handle_option): Handle
2236 -fsanitize=signed-integer-overflow.
2237 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2238 negv<mode>3, negv<mode>3_1): Define expands.
2239 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2240 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2241 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2242 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2243 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2244 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2245 PROB_ALWAYS): Define.
2246 (ubsan_build_overflow_builtin): Declare.
2247 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2249 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2250 (ubsan_build_overflow_builtin): New function.
2251 (instrument_si_overflow): Likewise.
2252 (ubsan_pass): Add signed integer overflow checking.
2253 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2254 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2255 * internal-fn.c: Include ubsan.h and target.h.
2256 (ubsan_expand_si_overflow_addsub_check): New function.
2257 (ubsan_expand_si_overflow_neg_check): Likewise.
2258 (ubsan_expand_si_overflow_mul_check): Likewise.
2259 (expand_UBSAN_CHECK_ADD): Likewise.
2260 (expand_UBSAN_CHECK_SUB): Likewise.
2261 (expand_UBSAN_CHECK_MUL): Likewise.
2262 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2263 (-A) + B -> B - A when doing the signed integer overflow checking.
2264 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2266 * tree-vrp.c (extract_range_basic): Handle internal calls.
2267 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2269 * asan.c: Include predict.h.
2270 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2271 * predict.c: Move the PROB_* macros...
2272 * predict.h (enum br_predictor): ...here.
2273 (PROB_LIKELY, PROB_UNLIKELY): Define.
2274 * trans-mem.c: Include predict.h.
2275 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2276 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2278 2013-12-04 Jeff Law <law@redhat.com>
2280 * common.opt: Split up -fisolate-erroneous-paths into
2281 -fisolate-erroneous-paths-dereference and
2282 -fisolate-erroneous-paths-attribute.
2283 * invoke.texi: Corresponding changes.
2284 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2285 what kind of statements can be used to infer a non-null range.
2286 * gimple.h (infer_nonnull_range): Update prototype.
2287 * tree-vrp.c (infer_value_range): Corresponding changes.
2288 * opts.c (default_options_table): Update due to option split.
2289 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2290 (find_implicit_erroneous_behaviour): Pass additional arguments
2291 to infer_nonnull_range.
2292 (find_explicit_erroneous_behaviour): Similarly.
2293 (gate_isolate_erroneous_paths): Check both of the new options.
2295 2013-12-04 Jeff Law <law@redhat.com>
2297 * expr.c (expand_assignment): Update comments.
2299 2013-12-04 Tobias Burnus <burnus@net-b.de>
2302 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2303 * tree.def (NAMELIST_DECL): Add.
2304 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2305 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2306 * dwarf2out.c (gen_namelist_decl): New function.
2307 (gen_decl_die, dwarf2out_decl): Call it.
2308 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2309 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2310 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2312 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2314 2013-12-03 Xinliang David Li <davidxl@google.com>
2316 * tree-ssa-structalias.c (constraint_set_union): Change return type
2318 (merge_node_constraints): Ditto.
2319 (unify_nodes): Update changed set when constraints set changes.
2321 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2323 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2325 * configure: Regenerated.
2327 * gdbasan.in: New file.
2329 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2331 PR rtl-optimization/58726
2332 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2333 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2335 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2336 Uros Bizjak <ubizjak@gmail.com>
2339 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2340 !TARGET_AVX there is misaligned MEM operand with vector mode
2341 and get_attr_ssememalign is 0, return false.
2342 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2343 computed alignment and for non-temporal loads/stores also
2344 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2345 * config/i386/sse.md
2346 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2347 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2348 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2349 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2350 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2351 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2352 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2353 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2354 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2355 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2356 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2357 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2358 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2359 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2360 * config/i386/i386.md (ssememalign): New define_attr.
2362 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2364 PR tree-optimization/59355
2365 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2366 * opts.c (common_handle_option): Fix comment spelling.
2368 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2370 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2371 (name_expansions): New static variable.
2372 (alt_base_map): Ditto.
2373 (get_alternative_base): New function.
2374 (find_basis_for_candidate): For CAND_REF, optionally call
2375 find_basis_for_base_expr with the returned value from
2376 get_alternative_base.
2377 (record_potential_basis): Add new parameter 'base' of type 'tree';
2378 add an assertion of non-NULL base; use base to set node->base_expr.
2379 (alloc_cand_and_find_basis): Update; call record_potential_basis
2380 for CAND_REF with the returned value from get_alternative_base.
2381 (replace_refs): Dump details on the replacing.
2382 (execute_strength_reduction): Call pointer_map_create for
2383 alt_base_map; call free_affine_expand_cache with &name_expansions.
2385 2013-12-03 Wei Mi <wmi@google.com>
2387 PR rtl-optimization/59020
2388 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2389 (sched_analyze_insn): Call try_group_insn.
2390 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2391 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2392 (group_insns_for_macro_fusion): Removed.
2393 (sched_init): Remove calling group_insns_for_macro_fusion.
2395 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2397 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2399 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2401 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2403 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2405 (aarch64_can_eliminate): Don't check elimination source when
2406 frame_pointer_required is false.
2408 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2410 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2411 position independent code.
2412 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2414 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2417 * config/i386/i386.c (emit_memset): Adjust destination address
2419 (expand_setmem_epilogue): Likewise.
2421 2013-12-03 Marek Polacek <polacek@redhat.com>
2424 * calls.c (expand_call): Disallow passing huge arguments by value.
2426 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2428 PR tree-optimization/59362
2429 * tree-object-size.c (object_sizes): Change into array of
2430 vec<unsigned HOST_WIDE_INT>.
2431 (compute_builtin_object_size): Check computed bitmap for
2432 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2433 vector if new SSA_NAMEs appeared.
2434 (init_object_sizes): Check computed bitmap for non-NULL.
2435 Call safe_grow on object_sizes elements instead of initializing
2437 (fini_object_sizes): Call release on object_sizes elements, don't
2441 * gimplify.c (nonlocal_vla_vars): New variable.
2442 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2443 nonlocal_vla_vars chain.
2444 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2445 if outer_bind has DECL_INITIAL (current_function_decl) block.
2448 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2450 * expr.h (struct saved_pending_stack_adjust): New type.
2451 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2453 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2454 and get_last_insn before do_pending_stack_adjust, call
2455 restore_pending_stack_adjust after delete_insns_since.
2456 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2457 before calling emit_conditional_move.
2458 * expmed.c (expand_sdiv_pow2): Likewise.
2459 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2461 2013-12-02 Jeff Law <law@redhat.com>
2463 PR tree-optimization/59322
2464 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2465 Remove code which copied jump threading paths.
2467 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2470 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2471 for saving in cl_target_option.
2472 (ix86_tune_string): Ditto.
2473 (ix86_cmodel): Ditto.
2475 (ix86_asm_dialect): Ditto.
2476 (ix86_branch_cost): Ditto.
2477 (ix86_dump_tunes): Ditto.
2478 (ix86_force_align_arg_pointer): Ditto.
2479 (ix86_force_drap): Ditto.
2480 (ix86_incoming_stack_boundary_arg): Ditto.
2481 (ix86_pmode): Ditto.
2482 (ix86_preferred_stack_boundary_arg): Ditto.
2483 (ix86_recip_name): Ditto.
2484 (ix86_regparm): Ditto.
2485 (ix86_section_threshold): Ditto.
2486 (ix86_sse2avx): Ditto.
2487 (ix86_stack_protector_guard): Ditto.
2488 (ix86_stringop_alg): Ditto.
2489 (ix86_tls_dialect): Ditto.
2490 (ix86_tune_ctrl_string): Ditto.
2491 (ix86_tune_memcpy_strategy): Ditto.
2492 (ix86_tune_memset_strategy): Ditto.
2493 (ix86_tune_no_default): Ditto.
2494 (ix86_veclibabi_type): Ditto.
2495 * config/i386/i386.c (function_specific_save): Save the above
2496 variables in gcc_options to cl_target_option.
2497 (function_specific_restore): Do the reverse done in
2498 function_specific_save.
2499 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2500 and ix86_tune_string to use the opts structure.
2501 (ix86_option_override_internal):Change
2502 ix86_incoming_stack_boundary_arg to
2503 opts->x_ix86_incoming_stack_boundary_arg
2505 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2507 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2508 in #ifndef IN_LIBGCC2 / #endif.
2510 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2512 PR tree-optimization/59358
2513 * tree-vrp.c (union_ranges): To check for the partially overlapping
2514 ranges or adjacent ranges, also compare *vr0max with vr1max.
2516 2013-12-02 Sterling Augustine  <saugustine@google.com>
2518 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2519 when there isn't a skeleton die.
2521 2013-12-02 Marek Polacek <polacek@redhat.com>
2524 * doc/invoke.texi: Document -fsanitize=return.
2526 2013-12-02 Tobias Burnus <burnus@net-b.de>
2527 Manuel López-Ibáñez <manu@gcc.gnu.org>
2530 * doc/invoke.texi: Add missing @opindex.
2531 (-fsanitize=): Use @gcctabopt instead of @itemize.
2533 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2535 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2536 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2537 targets like arm-none-eabi.
2538 * expr.c (expand_assignment): Handle normal fields like bit regions.
2540 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2543 * function.c (invoke_set_current_function_hook): Call
2544 targetm.set_current_function after setting this_fn_optabs.
2546 2013-12-02 Richard Biener <rguenther@suse.de>
2548 PR tree-optimization/59139
2549 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2550 code in get_val_for.
2551 (get_val_for): Use gcc_checking_asserts.
2553 2013-12-02 Richard Biener <rguenther@suse.de>
2556 * tree-ssa-operands.c (opf_implicit): Remove.
2557 (opf_address_taken): New flag.
2558 (get_expr_operands): Remove early out, pass down opf_address_taken for
2559 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2560 (get_indirect_ref_operands): Rename to ...
2561 (get_mem_ref_operands): ... this.
2562 (get_asm_expr_operands): Rename to ...
2563 (get_asm_stmt_operands): ... this.
2565 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2567 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2569 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2571 PR tree-optimization/59356
2572 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2573 offset computation using the precision of the index type.
2575 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2578 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2579 when rclass is GENERAL_REGS.
2581 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2583 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2584 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2586 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2588 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2591 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2593 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2595 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2596 Eric Botcazou <ebotcazou@adacore.com>
2598 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2599 as applied to nonzero_sign_valid when last_set_mode has less precision
2602 2013-11-30 Tobias Burnus <burnus@net-b.de>
2605 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2606 environment variable and link to a list with flags.
2607 (-fsanitize=thread): Ditto and update link.
2609 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2611 PR rtl-optimization/59340
2612 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2615 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2617 * lra.c (lra): Set lra_in_progress before check_rtl call.
2618 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2619 adding clobber regs when LRA is running.
2621 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2624 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2626 2013-11-29 Richard Biener <rguenther@suse.de>
2629 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2630 free_stmt_operands, update_stmt_operands): Add struct function
2632 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2633 function argument from fini_ssa_operands, verify_ssa_operands,
2634 free_stmt_operands and update_stmt_operands everywhere.
2635 * tree-ssanames.h (release_ssa_name_fn): New.
2636 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2637 * tree-ssanames.c (release_ssa_name): Rename to ...
2638 (release_ssa_name_fn): ... this and add struct function argument.
2639 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2640 (update_stmt_fn): New function.
2641 * tree-cfg.c (move_block_to_fn): Adjust.
2642 * tree-if-conv.c (free_bb_predicate): Likewise.
2643 * tree-ssa.c (verify_ssa): Likewise.
2644 (delete_tree_ssa): Likewise.
2645 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2646 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2647 update_stmt_fn instead of update_stmt.
2649 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2651 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2654 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2656 * config/arm/arm.md (store_minmaxsi): Use only when
2657 optimize_function_for_size_p.
2659 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2660 Yury Gribov <y.gribov@samsung.com>
2663 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2664 * gcc.c: Using libsanitizer spec instead of explicit libs.
2666 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2669 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2670 * cgraph.h (varpool_node): Add need_bounds_init field.
2671 * lto-cgraph.c (lto_output_varpool_node): Output
2672 need_bounds_init value.
2673 (input_varpool_node): Read need_bounds_init value.
2674 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2677 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2678 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2679 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2680 (gen_type_die_with_usage): Skip pointer bounds.
2681 (dwarf2out_global_decl): Likewise.
2684 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2685 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2686 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2687 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2688 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2689 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2690 (gimple_call_with_bounds_p): New.
2691 (gimple_call_set_with_bounds): New.
2692 (gimple_call_num_nobnd_args): Remove.
2693 (gimple_call_nobnd_arg): Remove.
2694 * tree.h (CALL_WITH_BOUNDS_P): New.
2695 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2698 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2699 * common.opt (fcheck-pointer-bounds): Move to ...
2700 * c-family/c.opt: ... here.
2701 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2702 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2703 * langhooks.h (lang_hooks): Remove chkp_supported field.
2704 * toplev.c (process_options): Remove chkp_supported check.
2707 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2708 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2709 * tree.h (POINTER_BOUNDS_P): New.
2710 (BOUNDED_TYPE_P): New.
2712 (pointer_bounds_type_node): New.
2713 * tree.c (build_common_tree_nodes): Initialize
2714 pointer_bounds_type_node.
2715 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2716 (gimple_call_num_nobnd_args): New.
2717 (gimple_call_nobnd_arg): New.
2718 (gimple_return_retbnd): New.
2719 (gimple_return_set_retbnd): New
2720 * gimple.c (gimple_build_return): Increase number of ops
2721 for return statement.
2722 (gimple_call_get_nobnd_arg_index): New.
2723 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2726 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2727 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2728 with "chkp ctor" and "bnd_legacy" attributes.
2729 * gimplify.c (gimplify_init_constructor): Avoid infinite
2730 loop during gimplification of bounds initializer.
2733 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2734 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2735 (handle_bnd_legacy): New.
2736 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2737 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2741 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2742 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2743 (BT_FN_PTR_CONST_PTR): New.
2744 (BT_FN_CONST_PTR_CONST_PTR): New.
2745 (BT_FN_PTR_CONST_PTR_SIZE): New.
2746 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2747 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2748 (BT_FN_VOID_CONST_PTR_SIZE): New.
2749 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2750 * chkp-builtins.def: New.
2751 * builtins.def: include chkp-builtins.def.
2752 (DEF_CHKP_BUILTIN): New.
2753 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2754 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2755 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2756 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2757 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2758 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2759 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2760 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2761 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2762 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2763 * common.opt (fcheck-pointer-bounds): New.
2764 * toplev.c (process_options): Check Pointer Bounds Checker is
2766 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2769 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2770 * target.def (builtin_chkp_function): New.
2771 (chkp_bound_type): New.
2772 (chkp_bound_mode): New.
2773 (fn_abi_va_list_bounds_size): New.
2774 (load_bounds_for_arg): New.
2775 (store_bounds_for_arg): New.
2776 * targhooks.h (default_load_bounds_for_arg): New.
2777 (default_store_bounds_for_arg): New.
2778 (default_fn_abi_va_list_bounds_size): New.
2779 (default_chkp_bound_type): New.
2780 (default_chkp_bound_mode): New.
2781 (default_builtin_chkp_function): New.
2782 * targhooks.c (default_load_bounds_for_arg): New.
2783 (default_store_bounds_for_arg): New.
2784 (default_fn_abi_va_list_bounds_size): New.
2785 (default_chkp_bound_type): New.
2786 (default_chkp_bound_mode); New.
2787 (default_builtin_chkp_function): New.
2788 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2789 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2790 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2791 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2792 (TARGET_CHKP_BOUND_TYPE): New.
2793 (TARGET_CHKP_BOUND_MODE): New.
2794 * doc/tm.texi: Regenerated.
2795 * langhooks.h (lang_hooks): Add chkp_supported field.
2796 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2797 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2800 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2801 * config/i386/constraints.md (B): New.
2804 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2805 * config/i386/i386-modes.def (BND32): New.
2807 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2808 * config/i386/i386.c (isa_opts): Add mmpx.
2809 (regclass_map): Add bound registers.
2810 (dbx_register_map): Likewise.
2811 (dbx64_register_map): Likewise.
2812 (svr4_dbx_register_map): Likewise.
2814 (ix86_option_override_internal): Support MPX ISA.
2815 (ix86_conditional_register_usage): Support bound registers.
2816 (print_reg): Likewise.
2817 (ix86_code_end): Add MPX bnd prefix.
2818 (output_set_got): Likewise.
2819 (ix86_output_call_insn): Likewise.
2820 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2821 (ix86_print_operand_punct_valid_p): Likewise.
2822 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2824 (ix86_class_likely_spilled_p): Add bound regs support.
2825 (ix86_hard_regno_mode_ok): Likewise.
2826 (x86_order_regs_for_local_alloc): Likewise.
2827 (ix86_bnd_prefixed_insn_p): New.
2828 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2829 (FIXED_REGISTERS): Add bound registers.
2830 (CALL_USED_REGISTERS): Likewise.
2831 (REG_ALLOC_ORDER): Likewise.
2832 (HARD_REGNO_NREGS): Likewise.
2834 (VALID_BND_REG_MODE): New.
2835 (FIRST_BND_REG): New.
2836 (LAST_BND_REG): New.
2837 (reg_class): Add BND_REGS.
2838 (REG_CLASS_NAMES): Likewise.
2839 (REG_CLASS_CONTENTS): Likewise.
2841 (ANY_BND_REG_P): New.
2843 (HI_REGISTER_NAMES): Add bound registers.
2844 * config/i386/i386.md (UNSPEC_BNDMK): New.
2845 (UNSPEC_BNDMK_ADDR): New.
2846 (UNSPEC_BNDSTX): New.
2847 (UNSPEC_BNDLDX): New.
2848 (UNSPEC_BNDLDX_ADDR): New.
2849 (UNSPEC_BNDCL): New.
2850 (UNSPEC_BNDCU): New.
2851 (UNSPEC_BNDCN): New.
2852 (UNSPEC_MPX_FENCE): New.
2855 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2856 (length_immediate): Likewise.
2857 (prefix_0f): Likewise.
2859 (prefix_rep): Check for bnd prefix.
2860 (length_nobnd): New.
2861 (length): Use length_nobnd if specified.
2866 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2869 (simple_return_internal): Likewise.
2870 (simple_return_pop_internal): Likewise.
2871 (*indirect_jump): Add MPX bnd prefix.
2872 (*tablejump_1): Likewise.
2873 (simple_return_internal_long): Likewise.
2874 (simple_return_indirect_internal): Likewise.
2878 (*mov<mode>_internal_mpx): New.
2879 (<mode>_<bndcheck>): New.
2880 (*<mode>_<bndcheck>): New.
2885 * config/i386/predicates.md (lea_address_operand): Rename to...
2886 (address_no_seg_operand): ... this.
2887 (address_mpx_no_base_operand): New.
2888 (address_mpx_no_index_operand): New.
2889 (bnd_mem_operator): New.
2890 * config/i386/i386.opt (mmpx): New.
2891 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2892 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2895 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2896 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2897 * tree.def (POINTER_BOUNDS_TYPE): New.
2898 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2899 (POINTER_BOUNDS_MODE): New.
2900 (make_pointer_bounds_mode): New.
2901 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2902 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2903 (layout_type): Support POINTER_BOUNDS_TYPE.
2904 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2905 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2906 (type_contains_placeholder_1): Likewise.
2907 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2908 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2909 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2911 2013-11-29 Richard Biener <rguenther@suse.de>
2914 * tree-cfg.c (verify_expr): Restrict bounds verification of
2915 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2917 2013-11-29 Richard Biener <rguenther@suse.de>
2919 PR tree-optimization/59334
2920 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2923 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2924 Richard Biener <rguenther@suse.de>
2927 * omp-low.c (simd_clone_create): Return NULL if for definition
2928 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2929 before calling cgraph_function_versioning.
2930 (expand_simd_clones): Look for "omp declare simd" attribute first.
2931 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2932 Punt if node->global.inlined_to.
2933 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2934 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2935 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2937 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2940 * tree-core.h (enum omp_clause_schedule_kind): Add
2941 OMP_CLAUSE_SCHEDULE_LAST.
2942 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2943 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2944 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2945 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2946 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2947 (DFS_write_tree_body): Handle OMP_CLAUSE.
2948 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2949 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2950 (write_ts_omp_clause_tree_pointers): New function.
2951 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2952 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2953 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2954 (unpack_value_fields): Call it for OMP_CLAUSE.
2955 (streamer_alloc_tree): Handle OMP_CLAUSE.
2956 (lto_input_ts_omp_clause_tree_pointers): New function.
2957 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2959 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2961 * doc/implement-c.texi: Document C11 implementation-defined
2962 behavior. Refer to -ffp-contract=fast for contraction behavior.
2963 * doc/invoke.texi (-std=c99, std=c11): Update description of
2965 (-std=gnu99): Don't mention as future default.
2966 (-std=gnu11): Mention as intended future default.
2967 * doc/standards.texi: Update descriptions of C99 and C11 support.
2968 Limit statement about C99 facilities for freestanding
2969 implementations to some platforms only.
2971 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2974 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2976 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2979 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2980 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2981 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2982 Don't call lra_init_elimination.
2983 (ira): Call ira_setup_eliminable_regset without arguments.
2984 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2985 from ira_setup_eliminable_regset call.
2986 * gcse.c (calculate_bb_reg_pressure): Ditto.
2987 * haifa-sched.c (sched_init): Ditto.
2988 * lra.h (lra_init_elimination): Remove the prototype.
2989 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2990 used_insn_alternative upper.
2991 (lra_eliminate_regs_1): Add one more parameter.
2992 (lra-eliminate): Ditto.
2993 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2994 (setup_sp_offset): New.
2995 (lra_process_new_insns): Call setup_sp_offset.
2996 (lra): Add argument to lra_eliminate calls.
2997 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2998 (get_equiv_with_elimination): New.
2999 (process_addr_reg): Call get_equiv_with_elimination instead of
3000 get_equiv_substitution.
3001 (equiv_address_substitution): Ditto.
3002 (loc_equivalence_change_p): Ditto.
3003 (loc_equivalence_callback, lra_constraints): Ditto.
3004 (curr_insn_transform): Ditto. Print the sp offset
3005 (process_alt_operands): Prevent stack pointer reloads.
3006 (lra_constraints): Remove one argument from lra_eliminate call.
3007 Move it up. Mark used hard regs bfore it. Use
3008 get_equiv_with_elimination instead of get_equiv_substitution.
3009 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3010 assert for param values combination. Use sp offset. Add argument
3011 to lra_eliminate_regs_1 calls.
3012 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3013 (curr_sp_change): New static var.
3014 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3015 Don't prevent elimination to sp if we can calculate its change.
3016 Pass the argument to mark_not_eliminable calls.
3017 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3018 argument to lra_eliminate_regs_1 call.
3019 (update_reg_eliminate): Move calculation of hard regs for spill
3020 lower. Switch off lra_in_progress temporarily to generate regs
3021 involved into elimination.
3022 (lra_init_elimination): Rename to init_elimination. Make it
3023 static. Set up insn sp offset, check the offsets at the end of BBs.
3024 (process_insn_for_elimination): Add parameter. Pass its value to
3025 eliminate_regs_in_insn.
3026 (lra_eliminate): : Add parameter. Pass its value to
3027 process_insn_for_elimination. Add assert for param values
3028 combination. Call init_elimination. Don't update offsets in
3029 equivalence substitutions.
3030 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3031 for created stack slot.
3032 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3035 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3037 * config/arm/iterators.md (vrint_conds): New int attribute.
3038 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3039 (smax<mode>3): Likewise.
3040 (smin<mode>3): Likewise.
3042 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3044 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3045 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3046 * tree-ssanames.h (set_range_info): Add range_type argument.
3047 (duplicate_ssa_name_range_info): Likewise.
3048 * tree-ssanames.c (set_range_info): Take the range type as argument
3049 and store it in SSA_NAME_ANTI_RANGE_P.
3050 (duplicate_ssa_name_range_info): Likewise.
3051 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3052 (set_nonzero_bits): Update call to set_range_info.
3053 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3054 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3055 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3056 (vrp_finalize): Likewise, passing anti-ranges directly.
3058 2013-11-28 Richard Biener <rguenther@suse.de>
3060 PR tree-optimization/59330
3061 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3062 and fix delayed marking of free calls not necessary.
3064 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3066 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3068 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3070 2013-11-28 Terry Guo <terry.guo@arm.com>
3072 * config/arm/arm.c (v7m_extra_costs): New table.
3073 (arm_v7m_tune): Use it.
3075 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3077 * config/sol2.h (TIME_LIBRARY): Define.
3079 2013-11-28 Richard Biener <rguenther@suse.de>
3082 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3083 CONST_DECLs in function context are not indexable.
3085 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3087 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3088 not optimized for size.
3090 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3092 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3094 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3095 data->asan_base as base for vars and update asan_alignb.
3096 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3097 Pass them to asan_emit_stack_protection.
3098 * asan.c (asan_detect_stack_use_after_return): New variable.
3099 (asan_emit_stack_protection): Add pbase and alignb arguments.
3100 Implement use after return sanitization.
3101 * asan.h (asan_emit_stack_protection): Adjust prototype.
3102 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3104 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3106 * common.opt: Introduced a new option -fsimd-cost-model.
3107 * doc/invoke.texi: Introduced a new openmp-simd warning and
3108 a new -fsimd-cost-model option.
3109 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3110 to rely on the particular loop info.
3111 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3112 (vect_peeling_hash_choose_best_peeling): Ditto.
3113 (vect_enhance_data_refs_alignment): Ditto.
3114 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3115 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3116 plus added openmp-simd warining.
3118 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3120 PR rtl-optimization/59311
3121 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3122 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3124 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3126 * var-tracking.c (track_expr_p): Do not track declarations for parts
3127 of tracked parameters.
3128 (add_stores): Do not track values for tracked parameters passed in
3130 (vt_get_decl_and_offset): Handle PARALLEL.
3131 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3133 2013-11-27 Jeff Law <law@redhat.com>
3135 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3136 clobber the loop structure thread_block was unsuccessful. If
3137 thread_block was unsuccessful, cleanup appropriately.
3139 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3141 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3142 (score_char_to_class): Likewise.
3144 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3146 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3147 the overflow bit set.
3149 2013-11-27 Richard Biener <rguenther@suse.de>
3152 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3154 (rebuild_cgraph_edges): Likewise.
3155 * ipa-inline-analysis.c (estimate_function_body_sizes):
3156 Skip internal calls.
3157 * tree-inline.c (estimate_num_insns): Estimate size of internal
3159 (gimple_expand_calls_inline): Do not try inline-expanding
3161 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3162 force_vect and simduid.
3163 (input_struct_function_base): Stream has_force_vect_loops
3164 and has_simduid_loops.
3165 (input_function): Adjust.
3166 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3167 force_vect and simduid.
3168 (output_struct_function_base): Stream has_force_vect_loops
3169 and has_simduid_loops.
3171 2013-11-27 Kai Tietz <ktietz@redhat.com>
3173 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3176 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3178 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3179 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3181 2013-11-27 Marek Polacek <polacek@redhat.com>
3184 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3185 instead of walk_gimple_op.
3186 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3188 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3189 Jakub Jelinek <jakub@redhat.com>
3191 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3192 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3193 (struct cgraph_node): Add simdclone and simd_clones fields.
3194 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3195 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3196 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3197 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3198 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3199 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3200 * doc/tm.texi: Regenerated.
3201 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3202 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3203 attribute is present.
3204 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3205 (simd_clone_vector_of_formal_parm_types): New function.
3206 (simd_clone_struct_alloc, simd_clone_struct_copy,
3207 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3208 simd_clone_compute_base_data_type, simd_clone_mangle,
3209 simd_clone_create, simd_clone_adjust_return_type,
3210 create_tmp_simd_array, simd_clone_adjust_argument_types,
3211 simd_clone_init_simd_arrays): New functions.
3212 (struct modify_stmt_info): New type.
3213 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3214 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3216 (pass_data_omp_simd_clone): New variable.
3217 (pass_omp_simd_clone): New class.
3218 (make_pass_omp_simd_clone): New function.
3219 * passes.def (pass_omp_simd_clone): New.
3220 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3221 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3222 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3223 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3224 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3225 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3226 * tree-vect-data-refs.c: Include cgraph.h.
3227 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3228 and find_data_references_in_bb, if find_data_references_in_stmt
3229 fails, still allow calls to #pragma omp declare simd functions
3230 in #pragma omp simd loops unless they contain data references among
3231 the call arguments or in lhs.
3232 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3234 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3236 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3237 call_simd_clone_vec_info_type.
3238 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3239 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3240 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3241 tree-scalar-evolution.h and cgraph.h.
3242 (vectorizable_call): Handle calls without lhs. Assert
3243 !stmt_can_throw_internal instead of failing for it. Don't update
3245 (struct simd_call_arg_info): New.
3246 (vectorizable_simd_clone_call): New function.
3247 (vect_transform_stmt): Call it.
3248 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3250 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3251 if cgraph_function_with_gimple_body_p is true.
3253 2013-11-27 Tom de Vries <tom@codesourcery.com>
3254 Marc Glisse <marc.glisse@inria.fr>
3257 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3259 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3260 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3263 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3266 * expr.c (emit_group_store): Don't write past the end of the structure.
3267 (store_bit_field): Fix formatting.
3269 2013-11-27 Richard Biener <rguenther@suse.de>
3271 PR tree-optimization/59288
3272 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3273 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3275 2013-11-27 Marek Polacek <polacek@redhat.com>
3277 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3278 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3279 rather than ADDR_EXPRs.
3281 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3283 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3285 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3287 * gengtype.c (struct seen_tag): New.
3288 (already_seen_tag): New.
3289 (mark_tag_as_seen): New.
3290 (walk_subclasses): Support having multiple subclasses using the
3291 same tag by tracking which tags have already been seen, and using
3292 this to avoid adding duplicate cases to the "switch" statement.
3293 The call to already_seen_tag introduces an O(N^2) when running
3294 gengtype on N, the number of tags, due to the repeated linear
3295 search, but currently max(N) is relatively small (the number of
3296 GSS codes, which is 26).
3297 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3300 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3301 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3302 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3303 GIMPLE_OMP_RETURN happens to share the data layout of
3304 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3305 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3306 underlying GSS value from GSS_OMP_PARALLEL to
3307 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3308 not directly related; they merely share in-memory layout.
3309 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3310 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3312 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3314 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3316 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3317 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3318 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3319 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3322 * gimple.h (gimple_statement_resx): New subclass of
3323 gimple_statement_eh_ctrl, with the invariant that
3324 stmt->code == GIMPLE_RESX.
3325 (gimple_statement_eh_dispatch): New subclass of
3326 gimple_statement_eh_ctrl, with the invariant that
3327 stmt->code == GIMPLE_EH_DISPATH.
3329 (gimple_statement_omp_parallel): The existing class expressed
3330 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3331 are not all related, so it makes more sense for this class to
3332 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3333 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3334 rename the existing gimple_statement_omp_parallel class to...
3335 (gimple_statement_omp_parallel_layout): ...this, expressing
3336 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3337 (gimple_statement_omp_taskreg): New subclass of
3338 gimple_statement_omp_parallel_layout, expressing the invariant
3339 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3340 as used by the various gimple_omp_taskreg_ accessors.
3341 (gimple_statement_omp_parallel): Reintroduce this class, this time
3342 as a subclass of gimple_statement_omp_taskreg to express the
3343 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3344 (gimple_statement_omp_target) New class, subclassing
3345 gimple_statement_omp_parallel_layout, to express the invariant
3346 stmt->code == GIMPLE_OMP_TARGET.
3347 (gimple_statement_omp_task): Update to inherit from
3348 gimple_statement_omp_taskreg rather than
3349 gimple_statement_omp_parallel.
3351 (gimple_statement_omp_single): Rename to...
3352 (gimple_statement_omp_single_layout): ...this, expressing the
3353 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3354 (gimple_statement_omp_single): ...and reintroduce this name as
3355 a subclass of gimple_statement_omp_single_layout, expressing
3356 the invariant that code == GIMPLE_OMP_SINGLE.
3357 (gimple_statement_omp_teams): New class, subclassing
3358 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3360 (gimple_statement_omp_atomic_store): Rename to...
3361 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3362 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3363 (gimple_statement_omp_atomic_store): ...and reintroduce this
3364 name as a subclass of gimple_statement_omp_atomic_store_layout
3365 with code == GIMPLE_OMP_ATOMIC_STORE.
3366 (gimple_statement_omp_return): New class, subclassing
3367 gimple_statement_omp_atomic_store_layout for the code
3370 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3371 (is_a_helper <gimple_statement_resx>::test): New.
3372 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3373 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3374 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3375 (is_a_helper <gimple_statement_omp_return>::test): New.
3376 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3377 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3378 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3380 (is_a_helper <gimple_statement_omp_target>::test): New.
3381 (is_a_helper <gimple_statement_omp_single>::test): Only check
3382 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3383 (is_a_helper <gimple_statement_omp_teams>::test): New.
3385 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3386 (is_a_helper <const gimple_statement_resx>::test): New.
3387 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3388 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3389 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3390 (is_a_helper <const gimple_statement_omp_return>::test): New.
3391 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3392 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3393 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3395 (is_a_helper <const gimple_statement_omp_target>::test): New.
3396 (is_a_helper <const gimple_statement_omp_single>::test): Only
3397 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3398 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3400 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3401 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3402 gimple_statement_omp_atomic_store with downcasts to
3403 gimple_statement_omp_return, thus requiring that the code be
3405 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3406 downcasts to gimple_statement_eh_ctrl with downcasts to
3407 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3408 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3409 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3410 downcasts to gimple_statement_eh_dispatch, thus requiring that
3411 the code be GIMPLE_EH_DISPATCH.
3412 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3413 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3414 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3415 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3416 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3417 gimple_statement_omp_parallel with downcasts to
3418 gimple_statement_omp_taskreg, thus requiring that the code be
3419 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3420 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3421 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3422 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3423 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3424 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3425 gimple_statement_omp_parallel with downcasts to
3426 gimple_statement_omp_target, thus requiring that the code be
3428 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3429 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3430 gimple_statement_omp_single with downcasts to
3431 gimple_statement_omp_teams, thus requiring that the code be
3434 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3435 gimple_statement_resx.
3436 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3437 gimple_statement_eh_dispatch.
3439 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3441 PR tree-optimization/59014
3442 * tree-vrp.c (register_edge_assert_for_1): Don't look
3443 through conversions from non-integral types or through
3444 narrowing conversions.
3447 * config/i386/i386.c (device_alg): Fix up formatting.
3448 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3449 similarly to count && count < epilogue_size_needed. Fix up
3451 * builtins.c (determine_block_size): Fix comment typo.
3454 * ubsan.c (ubsan_source_location): Don't add any location
3455 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3456 (ubsan_create_data): Strip block info from LOC.
3459 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3460 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3462 PR rtl-optimization/59166
3463 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3464 DF_REF_LOC in validate_change call.
3465 (split_live_ranges_for_shrink_wrap): Likewise.
3468 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3469 of references to constant size types in simd loops, defer emitting
3470 initializer for the new_var, emit it later on only if not using
3474 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3475 for the inner loop if collapse_bb is non-NULL.
3476 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3478 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3480 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3481 a constant immediate before force_reg.
3483 2013-11-26 Richard Biener <rguenther@suse.de>
3485 PR tree-optimization/59245
3486 * tree-vrp.c (set_value_range): Assert that we don't have
3487 overflowed constants (but our infinities).
3488 (set_value_range_to_value): Drop all overflow flags.
3489 (vrp_visit_phi_node): Likewise.
3490 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3491 to set a constant range.
3493 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3496 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3497 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3498 for zero_extend case.
3500 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3503 * configure.ac (install_gold_as_default): New. Set to yes for
3504 --disable-ld or --enable-gold=default.
3505 (gcc_cv_ld_gold_srcdir): New.
3506 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3507 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3508 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3509 * configure: Regenerated.
3511 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3512 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3513 (original) [collect-ld && -fuse-ld=bfd]: Set to
3514 $ORIGINAL_LD_BFD_FOR_TARGET.
3515 (original) [collect-ld && -fuse-ld=gold]: Set to
3516 $ORIGINAL_LD_GOLD_FOR_TARGET.
3517 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3518 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3520 2013-11-26 Terry Guo <terry.guo@arm.com>
3522 * config/arm/arm.c (require_pic_register): Handle high pic base
3523 register for thumb-1.
3524 (arm_load_pic_register): Also initialize high pic base register.
3525 * doc/invoke.texi: Update documentation for option -mpic-register.
3527 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3531 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3532 Prefix function names with 'sh_'. Make them non-static.
3533 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3534 sh_max_mov_insn_displacement): Add declarations.
3535 * config/sh/constraints.md (Q): Reject QImode.
3536 (Sdd): Use match_code "mem".
3537 (Snd): Fix erroneous matching of non-memory operands.
3538 * config/sh/predicates.md (short_displacement_mem_operand): New
3540 (general_movsrc_operand): Disallow PC relative QImode loads.
3541 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3542 (*movqi, *movhi): Merge both insns into...
3543 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3544 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3545 on the operand types.
3547 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3549 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3550 Remove unused variable save_config.
3551 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3554 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3556 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3557 using other intrinsics.
3558 (vtbx3_<psu>8): Likewise.
3560 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3562 * config/aarch64/aarch64-builtins.c
3563 (aarch64_types_bsl_p_qualifiers): New.
3564 (aarch64_types_bsl_s_qualifiers): Likewise.
3565 (aarch64_types_bsl_u_qualifiers): Likewise.
3566 (TYPES_BSL_P): Likewise.
3567 (TYPES_BSL_S): Likewise.
3568 (TYPES_BSL_U): Likewise.
3569 (BUILTIN_VALLDIF): Likewise.
3570 (BUILTIN_VDQQH): Likewise.
3571 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3572 * config/aarch64/aarch64-simd.md
3573 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3574 (aarch64_simd_bsl<mode>): Likewise.
3575 * config/aarch64/arm_neon.h
3576 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3577 * config/aarch64/iterators.md (VALLDIF): New.
3578 (Vbtype): Handle more modes.
3580 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3582 * config/aarch64/aarch64-builtins.c
3583 (aarch64_type_qualifiers): Add qualifier_poly.
3584 (aarch64_build_scalar_type): Also build Poly types.
3585 (aarch64_build_vector_type): Likewise.
3586 (aarch64_build_type): Likewise.
3587 (aarch64_build_signed_type): New.
3588 (aarch64_build_unsigned_type): Likewise.
3589 (aarch64_build_poly_type): Likewise.
3590 (aarch64_init_simd_builtins): Also handle Poly types.
3592 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3594 * config/aarch64/aarch64-builtins.c
3595 (VAR1): Use new naming scheme for aarch64_builtins.
3596 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3598 2013-11-26 Richard Biener <rguenther@suse.de>
3600 PR tree-optimization/59287
3601 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3602 Remove no longer necessary special-casing of union accesses.
3604 2013-11-26 Richard Biener <rguenther@suse.de>
3606 * pretty-print.c (output_buffer::~output_buffer): Really
3609 2013-11-25 Jeff Law <law@redhat.com>
3611 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3612 invalidate loop information.
3614 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3616 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3618 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3622 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3624 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3625 previously visited basic blocks before recursing instead of only one
3628 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3630 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3631 * config/aarch64/aarch64-cores.def (cortex-a53):
3632 Use cortexa53 tuning struct.
3634 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3637 * fold-const.c: Include hash-table.h.
3639 2013-11-25 Marek Polacek <polacek@redhat.com>
3642 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3644 2013-11-25 Richard Biener <rguenther@suse.de>
3646 * tree-dfa.c: Remove unused convert.h include.
3648 2013-11-25 Terry Guo <terry.guo@arm.com>
3650 * doc/invoke.texi (-mslow-flash-data): Document new option.
3651 * config/arm/arm.opt (mslow-flash-data): New option.
3652 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3654 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3656 (arm_disable_literal_pool): Declare it.
3657 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3658 (arm_option_override): Handle new option.
3659 (thumb2_legitimate_address_p): Don't allow symbol references when
3660 literal pools are disabled.
3661 (arm_max_const_double_inline_cost): New function.
3662 * config/arm/arm.md (types.md): Include it before ...
3663 (use_literal_pool): New attribute.
3664 (enabled): Use new attribute.
3665 (split pattern): Replace symbol+offset with MOVW/MOVT.
3667 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3670 Revert previous commit.
3672 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3674 * jump.c (reset_insn_reg_label_operand_notes): New function,
3676 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3677 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3679 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3680 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3681 expensive CFG cleanup is called for.
3682 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3683 (cfg_layout_finalize): Delete dead jump tables before re-building
3685 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3686 basic blocks, not before.
3687 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3689 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3690 insns chain of a scheduling extended basic block, they cannot appear
3691 there in cfglayout mode.
3693 2013-11-24 Tobias Burnus <burnus@net-b.de>
3695 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3697 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3699 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3702 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3704 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3706 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3708 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3710 2013-11-23 David Edelson <dje.gcc@gmail.com>
3711 Andrew Dixie <andrewd@gentrack.com>
3714 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3715 (COLLECT_SHARED_FINI_FUNC): Define.
3717 * collect2.c (aix_shared_initname): Declare.
3718 (aix_shared_fininame): Declare.
3719 (symkind): Add SYM_AIXI and SYM_AIXD.
3720 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3721 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3722 (aixlazy_flag): Parse.
3723 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3724 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3726 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3728 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3729 (rs6000_xcoff_select_section): Place decls with stricter alignment
3730 into named sections.
3731 (rs6000_xcoff_unique_section): Allow unique sections for
3732 uninitialized data with strict alignment.
3734 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3736 PR tree-optimization/59154
3737 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3738 rhs1 of a cast and new_op is invariant, fold_convert it.
3739 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3740 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3742 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3745 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3746 Declare as MULTI_ARG_1_SF instruction.
3747 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3748 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3749 from *xop_vmfrcz_<mode>.
3750 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3751 to merge scalar result with __A.
3752 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3755 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3757 * gimplify.h (recalculate_side_effects): Delete.
3758 * gimplify.c (recalculate_side_effects): Make static and add comment.
3760 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3762 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3763 for the destination of a define_peephole2. Likewise register_operand
3764 rather than arith_reg_operand. Remove constraints from
3767 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3769 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3771 (mn10300_store_multiple_operation_p): Declare.
3772 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3774 (mn10300_store_multiple_operation_p): ...this and remove mode
3776 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3779 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3781 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3782 (pop_multiple_operation): Delete.
3783 (analyze_push_multiple_operation): Declare.
3784 (analyze_pop_multiple_operation): Declare.
3785 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3786 (analyze_push_multiple_operation): ...this and remove mode argument.
3787 (pop_multiple_operation): Rename to...
3788 (analyze_pop_multiple_operation): ...this and remove mode argument.
3789 * config/bfin/predicates.md (push_multiple_operation): Define.
3790 (pop_multiple_operation): Likewise.
3792 2013-11-23 Alan Modra <amodra@gmail.com>
3794 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3796 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3799 * common.opt (static-liblsan): Add.
3800 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3802 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3803 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3805 * opts.c (common_handle_option): Handle -fsanitize=leak.
3806 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3807 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3808 (LIBUBSAN_EARLY_SPEC): Remove.
3809 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3810 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3811 (sanitize_spec_function): Handle %sanitize(leak).
3812 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3814 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3815 Jakub Jelinek <jakub@redhat.com>
3817 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3818 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3819 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3820 (ipa_modify_formal_parameters): Adjust caller. Remove
3821 synth_parm_prefix argument. Use operator enum instead of bit fields.
3822 Add assert for properly handling vector of references. Handle
3823 creating brand new parameters.
3824 (ipa_modify_call_arguments): Use operator enum instead of bit
3826 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3828 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3830 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3831 Use operator enum instead of bit fields.
3832 * ipa-prop.h (enum ipa_parm_op): New.
3833 (struct ipa_parm_adjustment): New field op. Rename reduction
3834 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3836 (ipa_modify_formal_parameters): Remove last argument.
3837 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3838 ipa_get_adjustment_candidate): New prototypes.
3839 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3840 enum. Set arg_prefix.
3841 (get_adjustment_for_base): Use operator enum.
3842 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3844 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3845 (ipa_sra_modify_function_body): Same. No longer static.
3846 (sra_ipa_reset_debug_stmts): Use operator enum.
3847 (modify_function): Do not pass prefix argument.
3849 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3851 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3852 (ubsan_pass): Ignore clobber stmts.
3854 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3855 * opts.c (common_handle_option): Add -fsanitize=return.
3856 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3857 or it into SANITIZE_UNDEFINED.
3859 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3860 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3861 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3862 Don't instrument accesses to VAR_DECLs which are known to fit
3863 into their bounds and the vars are known to have shadow bytes
3864 indicating allowed access.
3865 (asan_dynamic_init_call): New function.
3866 (asan_add_global): If vnode->dynamically_initialized,
3867 set __has_dynamic_init to 1 instead of 0.
3868 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3869 * asan.h (asan_dynamic_init_call): New prototype.
3870 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3872 2013-11-22 Martin Jambor <mjambor@suse.cz>
3874 PR rtl-optimization/10474
3875 * ira.c (interesting_dest_for_shprep_1): New function.
3876 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3877 also check parallels.
3879 2013-11-22 Jeff Law <law@redhat.com>
3881 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3882 NULL for RHS, which we used to invalidate equivalences.
3883 (record_temporary_equivalences_from_phis): New bitmap arguments
3884 and a boolean indicating if we have passed a backedge. If we
3885 have passed a backedge, then set the appropriate bit in the
3886 bitmaps for the SRC & DEST of PHIs creating equivalences.
3887 (invalidate_equivalences, dummy_simplify): New functions.
3888 (cond_arg_set_in_b): Remove.
3889 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3890 arguments and a boolean indicating if we have passed a backedge.
3891 If we have passed a backedge, then perform invalidations as needed.
3892 (thread_around_empty_blocks): If we have seen a backedge, then
3893 use the dummy simplify routine.
3894 (thread_through_normal_block): Likewise. Pass bitmaps and
3895 backedge status to children. Do not pessimize so much when
3896 traversing backedges in the CFG.
3897 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3898 If we have seen a backedge, then use the dummy simplify routine.
3899 Do not pessimize so much when traversing backedges.
3901 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3903 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3904 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3906 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3908 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3909 PTA_PCLMUL and PTA_RDRND for Silvermont.
3910 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3913 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3915 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3917 * hooks.h (hook_uint_mode_0): Add Prototype.
3918 * hooks.c (hook_uint_mode_0): New default function.
3919 * target.def (atomic_align_for_mode): New target hook.
3920 * tree.c (build_atomic_base): Add alignment override parameter.
3921 (build_common_tree_nodes): Use atomic alignment override.
3922 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3923 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3925 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3927 * gimple.h: Remove all includes.
3928 (recalculate_side_effects): Move prototype to gimplify.h.
3929 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3930 * gengtype.c (open_base_files): Add gimple.h include list.
3931 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3932 * gimple.c: Adjust include list.
3933 (recalculate_side_effects): Move to gimplify.c.
3934 * gimplify.c: Adjust include list.
3935 (recalculate_side_effects): Relocate from gimple.c.
3936 * alias.c: Add required include files removed from gimple.h.
3938 * builtins.c: Likewise.
3939 * calls.c: Likewise.
3940 * cfgexpand.c: Likewise.
3941 * cfgloop.c: Likewise.
3942 * cfgloopmanip.c: Likewise.
3943 * cgraphbuild.c: Likewise.
3944 * cgraph.c: Likewise.
3945 * cgraphclones.c: Likewise.
3946 * cgraphunit.c: Likewise.
3947 * cilk-common.c: Likewise.
3948 * data-streamer.c: Likewise.
3949 * data-streamer-in.c: Likewise.
3950 * data-streamer-out.c: Likewise.
3952 * dwarf2out.c: Likewise.
3953 * emit-rtl.c: Likewise.
3954 * except.c: Likewise.
3956 * fold-const.c: Likewise.
3957 * function.c: Likewise.
3958 * gimple-builder.c: Likewise.
3959 * gimple-expr.c: Likewise.
3960 * gimple-fold.c: Likewise.
3961 * gimple-iterator.c: Likewise.
3962 * gimple-low.c: Likewise.
3963 * gimple-pretty-print.c: Likewise.
3964 * gimple-ssa-isolate-paths.c: Likewise.
3965 * gimple-ssa-strength-reduction.c: Likewise.
3966 * gimple-streamer-in.c: Likewise.
3967 * gimple-streamer-out.c: Likewise.
3968 * gimple-walk.c: Likewise.
3969 * gimplify-me.c: Likewise.
3970 * graphite-blocking.c: Likewise.
3971 * graphite.c: Likewise.
3972 * graphite-clast-to-gimple.c: Likewise.
3973 * graphite-dependences.c: Likewise.
3974 * graphite-interchange.c: Likewise.
3975 * graphite-optimize-isl.c: Likewise.
3976 * graphite-poly.c: Likewise.
3977 * graphite-scop-detection.c: Likewise.
3978 * graphite-sese-to-poly.c: Likewise.
3979 * internal-fn.c: Likewise.
3981 * ipa-cp.c: Likewise.
3982 * ipa-devirt.c: Likewise.
3983 * ipa-inline-analysis.c: Likewise.
3984 * ipa-inline.c: Likewise.
3985 * ipa-profile.c: Likewise.
3986 * ipa-prop.c: Likewise.
3987 * ipa-pure-const.c: Likewise.
3988 * ipa-reference.c: Likewise.
3989 * ipa-split.c: Likewise.
3990 * ipa-utils.c: Likewise.
3991 * langhooks.c: Likewise.
3992 * lto-cgraph.c: Likewise.
3993 * lto-compress.c: Likewise.
3994 * lto-opts.c: Likewise.
3995 * lto-section-in.c: Likewise.
3996 * lto-section-out.c: Likewise.
3997 * lto-streamer.c: Likewise.
3998 * lto-streamer-in.c: Likewise.
3999 * lto-streamer-out.c: Likewise.
4000 * omp-low.c: Likewise.
4001 * opts-global.c: Likewise.
4002 * passes.c: Likewise.
4003 * predict.c: Likewise.
4004 * profile.c: Likewise.
4007 * stor-layout.c: Likewise.
4008 * symtab.c: Likewise.
4009 * targhooks.c: Likewise.
4010 * toplev.c: Likewise.
4011 * tracer.c: Likewise.
4012 * trans-mem.c: Likewise.
4013 * tree-affine.c: Likewise.
4015 * tree-call-cdce.c: Likewise.
4016 * tree-cfg.c: Likewise.
4017 * tree-cfgcleanup.c: Likewise.
4018 * tree-chrec.c: Likewise.
4019 * tree-complex.c: Likewise.
4020 * tree-data-ref.c: Likewise.
4021 * tree-dfa.c: Likewise.
4022 * tree-eh.c: Likewise.
4023 * tree-emutls.c: Likewise.
4024 * tree-if-conv.c: Likewise.
4025 * tree-inline.c: Likewise.
4026 * tree-into-ssa.c: Likewise.
4027 * tree-loop-distribution.c: Likewise.
4028 * tree-nested.c: Likewise.
4029 * tree-nrv.c: Likewise.
4030 * tree-object-size.c: Likewise.
4031 * tree-outof-ssa.c: Likewise.
4032 * tree-parloops.c: Likewise.
4033 * tree-phinodes.c: Likewise.
4034 * tree-predcom.c: Likewise.
4035 * tree-pretty-print.c: Likewise.
4036 * tree-profile.c: Likewise.
4037 * tree-scalar-evolution.c: Likewise.
4038 * tree-sra.c: Likewise.
4039 * tree-ssa-address.c: Likewise.
4040 * tree-ssa-alias.c: Likewise.
4041 * tree-ssa.c: Likewise.
4042 * tree-ssa-ccp.c: Likewise.
4043 * tree-ssa-coalesce.c: Likewise.
4044 * tree-ssa-copy.c: Likewise.
4045 * tree-ssa-copyrename.c: Likewise.
4046 * tree-ssa-dce.c: Likewise.
4047 * tree-ssa-dom.c: Likewise.
4048 * tree-ssa-dse.c: Likewise.
4049 * tree-ssa-forwprop.c: Likewise.
4050 * tree-ssa-ifcombine.c: Likewise.
4051 * tree-ssa-live.c: Likewise.
4052 * tree-ssa-loop.c: Likewise.
4053 * tree-ssa-loop-ch.c: Likewise.
4054 * tree-ssa-loop-im.c: Likewise.
4055 * tree-ssa-loop-ivcanon.c: Likewise.
4056 * tree-ssa-loop-ivopts.c: Likewise.
4057 * tree-ssa-loop-manip.c: Likewise.
4058 * tree-ssa-loop-niter.c: Likewise.
4059 * tree-ssa-loop-prefetch.c: Likewise.
4060 * tree-ssa-loop-unswitch.c: Likewise.
4061 * tree-ssa-math-opts.c: Likewise.
4062 * tree-ssanames.c: Likewise.
4063 * tree-ssa-operands.c: Likewise.
4064 * tree-ssa-phiopt.c: Likewise.
4065 * tree-ssa-phiprop.c: Likewise.
4066 * tree-ssa-pre.c: Likewise.
4067 * tree-ssa-propagate.c: Likewise.
4068 * tree-ssa-reassoc.c: Likewise.
4069 * tree-ssa-sccvn.c: Likewise.
4070 * tree-ssa-sink.c: Likewise.
4071 * tree-ssa-strlen.c: Likewise.
4072 * tree-ssa-structalias.c: Likewise.
4073 * tree-ssa-tail-merge.c: Likewise.
4074 * tree-ssa-ter.c: Likewise.
4075 * tree-ssa-threadedge.c: Likewise.
4076 * tree-ssa-threadupdate.c: Likewise.
4077 * tree-ssa-uncprop.c: Likewise.
4078 * tree-ssa-uninit.c: Likewise.
4079 * tree-stdarg.c: Likewise.
4080 * tree-streamer.c: Likewise.
4081 * tree-streamer-in.c: Likewise.
4082 * tree-streamer-out.c: Likewise.
4083 * tree-switch-conversion.c: Likewise.
4084 * tree-tailcall.c: Likewise.
4085 * tree-vect-data-refs.c: Likewise.
4086 * tree-vect-generic.c: Likewise.
4087 * tree-vect-loop.c: Likewise.
4088 * tree-vect-loop-manip.c: Likewise.
4089 * tree-vectorizer.c: Likewise.
4090 * tree-vect-patterns.c: Likewise.
4091 * tree-vect-slp.c: Likewise.
4092 * tree-vect-stmts.c: Likewise.
4093 * tree-vrp.c: Likewise.
4095 * ubsan.c: Likewise.
4096 * value-prof.c: Likewise.
4097 * varpool.c: Likewise.
4098 * var-tracking.c: Likewise.
4099 * vtable-verify.c: Likewise.
4100 * config/darwin.c: Likewise.
4101 * config/aarch64/aarch64-builtins.c: Likewise.
4102 * config/aarch64/aarch64.c: Likewise.
4103 * config/alpha/alpha.c: Likewise.
4104 * config/i386/i386.c: Likewise.
4105 * config/i386/winnt.c: Likewise.
4106 * config/ia64/ia64.c: Likewise.
4107 * config/m32c/m32c.c: Likewise.
4108 * config/mep/mep.c: Likewise.
4109 * config/mips/mips.c: Likewise.
4110 * config/rs6000/rs6000.c: Likewise.
4111 * config/s390/s390.c: Likewise.
4112 * config/sh/sh.c: Likewise.
4113 * config/sparc/sparc.c: Likewise.
4114 * config/spu/spu.c: Likewise.
4115 * config/stormy16/stormy16.c: Likewise.
4116 * config/tilegx/tilegx.c: Likewise.
4117 * config/tilepro/tilepro.c: Likewise.
4118 * config/xtensa/xtensa.c: Likewise.
4120 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4123 * arm.md (negdi_extendsidi): Fix invalid split.
4125 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4127 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4128 (vmov_n_f64): Likewise.
4129 (vmov_n_p8): Likewise.
4130 (vmov_n_p16): Likewise.
4131 (vmov_n_s8): Likewise.
4132 (vmov_n_s16): Likewise.
4133 (vmov_n_s32): Likewise.
4134 (vmov_n_s64): Likewise.
4135 (vmov_n_u8): Likewise.
4136 (vmov_n_u16): Likewise.
4137 (vmov_n_u32): Likewise.
4138 (vmov_n_u64): Likewise.
4139 (vmovq_n_f32): Likewise.
4140 (vmovq_n_f64): Likewise.
4141 (vmovq_n_p8): Likewise.
4142 (vmovq_n_p16): Likewise.
4143 (vmovq_n_s8): Likewise.
4144 (vmovq_n_s16): Likewise.
4145 (vmovq_n_s32): Likewise.
4146 (vmovq_n_s64): Likewise.
4147 (vmovq_n_u8): Likewise.
4148 (vmovq_n_u16): Likewise.
4149 (vmovq_n_u32): Likewise.
4150 (vmovq_n_u64): Likewise.
4152 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4154 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4155 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4156 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4157 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4158 and also change to float UNSPEC.
4159 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4160 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4161 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4162 result access for big-endian.
4163 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4164 intrinsics for big-endian.
4165 * config/aarch64/iterators.md (VDQV): Add V2DI.
4167 (vp): New mode attribute.
4169 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4171 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4172 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4175 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4177 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4178 for big-endian element order.
4179 (aarch64_simd_vec_setv2di): Likewise.
4180 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4181 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4182 (vec_extract): Expand using aarch64_get_lane.
4183 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4185 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4187 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4188 and stores to be ABI compliant.
4190 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4192 * input.h (input_line): Remove.
4193 (input_filename): Likewise.
4194 (in_system_header): Likewise.
4195 * tree.h (EXPR_LOC_OR_HERE): Remove.
4196 * config/bfin/bfin.c (output_file_start): Remove use of
4197 input_filename macro.
4198 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4199 * gimplify.c (internal_get_tmp_var): Likewise.
4200 EXPR_LOC_OR_HERE macro.
4201 (shortcut_cond_expr): Likewise.
4202 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4203 use of input_filename macro.
4204 * tree.c (get_file_function_name): Likewise.
4206 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4208 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4210 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4212 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4213 (same sized) elements even if the type of the CONSTRUCTOR has
4214 vector mode and target is a REG.
4216 2013-11-22 Richard Biener <rguenther@suse.de>
4219 2013-11-21 Richard Biener <rguenther@suse.de>
4221 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4222 nb_iterations_upper_bound by one.
4224 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4226 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4229 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4230 core-avx-i, core-avx2 and slm.
4232 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4234 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4236 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4238 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4239 (stzx_24_<mode>): Likewise mra_operand.
4241 2013-11-22 Jeff Law <law@redhat.com>
4243 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4244 (thread_block_1): Do not cancel jump threads which go from
4245 inside a loop, through the header, then back inside the loop.
4246 (bb_ends_with_multiway_branch): New function.
4247 (thread_through_all_blocks): Handle threading cases which start
4248 in a loop through the loop header to a point in the loop.
4250 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4251 jump thread path properly.
4253 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4255 * vec.h (auto_vec): New class.
4256 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4257 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4258 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4259 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4260 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4261 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4262 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4263 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4264 appropriate instead of vec for local variables.
4266 2013-11-21 Teresa Johnson <tejohnson@google.com>
4269 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4270 not understood by old_insns_match_p.
4272 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4274 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4275 little endian change.
4276 (vec_pack_sfix_trunc_v2df): Likewise.
4277 (vec_pack_ufix_trunc_v2df): Likewise.
4278 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4279 double checking of endianness.
4281 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4283 * tree-vect-generic.c (optimize_vector_constructor): New function.
4284 (expand_vector_operations_1): Call it.
4286 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4288 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4289 ix86_zero_extend_to_Pmode where appropriate.
4290 (ix86_expand_builtin): Ditto.
4292 2013-11-21 Cary Coutant <ccoutant@google.com>
4294 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4295 (add_linkage_name): Don't add linkage name for -g1.
4296 (decls_for_scope): Process subblocks for -g1.
4297 (dwarf2out_source_line): Output line tables for -g1.
4298 (dwarf2out_finish): Likewise.
4299 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4300 unused scopes for -g1.
4301 * opts.c (common_handle_option): Handle -g same as -g2.
4302 * doc/invoke.texi: Update description for -g1.
4304 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4306 * doc/extend.texi: Document htm builtins.
4308 2013-11-21 Jeff Law <law@redhat.com>
4310 PR tree-optimization/59221
4311 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4312 temporary equivalences when threading through joiner blocks.
4314 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4316 PR rtl-optimization/55950
4317 * real.c (real_sqrt): Remove function.
4318 * real.h (real_sqrt): Remove prototype.
4319 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4320 SQRT using real_sqrt.
4322 2013-11-21 Richard Biener <rguenther@suse.de>
4324 PR tree-optimization/59058
4325 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4326 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4327 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4328 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4329 (NITERS_KNOWN_P): Fold into ...
4330 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4331 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4332 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4333 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4334 (vect_do_peeling_for_alignment): Re-use precomputed niter
4335 instead of re-emitting it.
4336 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4337 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4338 * tree-vect-loop.c (vect_get_loop_niters): Use
4339 number_of_latch_executions.
4340 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4341 (vect_analyze_loop_form): Simplify.
4342 (vect_analyze_loop_operations): Move epilogue peeling code ...
4343 (vect_analyze_loop_2): ... here and adjust it to compute
4344 LOOP_VINFO_PEELING_FOR_NITER.
4345 (vect_estimate_min_profitable_iters): Use
4346 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4347 (vect_build_loop_niters): Emit on the preheader.
4348 (vect_generate_tmps_on_preheader): Likewise.
4349 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4350 of recomputing it. Adjust.
4352 2013-11-21 Richard Biener <rguenther@suse.de>
4354 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4355 LOC_LINE): Remove wrappers and fix all users.
4356 (struct _loop_vec_info): Remove loop_line_number member.
4357 (LOOP_VINFO_LOC): Remove.
4358 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4359 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4362 2013-11-21 Richard Biener <rguenther@suse.de>
4364 * tree-ssa-forwprop.c (simplify_vce): New function.
4365 (ssa_forward_propagate_and_combine): Call it.
4367 2013-11-21 Richard Biener <rguenther@suse.de>
4369 * tree-vect-loop-manip.c (vect_build_loop_niters,
4370 vect_generate_tmps_on_preheader): Move ...
4371 * tree-vect-loop.c (vect_build_loop_niters,
4372 vect_generate_tmps_on_preheader): ... here and simplify.
4373 (vect_transform_loop): Call them here and pass down results
4375 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4376 Get niter variables from caller.
4377 (vect_do_peeling_for_alignment): Likewise.
4378 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4379 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4382 2013-11-21 Richard Biener <rguenther@suse.de>
4384 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4385 nb_iterations_upper_bound by one.
4387 2013-11-21 Richard Biener <rguenther@suse.de>
4389 PR tree-optimization/59058
4390 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4391 (build_size_arg_loc): Apply niter adjustment here.
4392 (generate_memset_builtin): Adjust.
4393 (generate_memcpy_builtin): Likewise.
4394 (classify_partition): Do not use number_of_exit_cond_executions
4395 but record whether niter needs to be adjusted.
4397 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4399 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4402 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4405 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4406 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4407 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4408 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4409 sh_optimize_sett_clrt pass.o to extra_objs.
4411 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4413 * cfg.c (dump_edge_info): Remove redundant comment.
4414 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4415 EXIT_BLOCK_PTR in comment.
4416 (try_optimize_cfg): Likewise.
4417 * cfgrtl.c (last_bb_in_partition): Likewise.
4418 * cgraph.c (cgraph_node_cannot_return): Likewise.
4419 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4420 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4421 * ipa-split.c (consider_split): Likewise.
4422 * profile.c (find_spanning_tree): Likewise.
4423 * sched-int.h (common_sched_info_def.add_block): Likewise.
4424 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4425 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4426 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4427 in comments to now removed ENTRY_BLOCK_PTR macro.
4428 (tree_forwarder_block_p): Reword reference in comment to
4430 * tree-inline.c (copy_cfg_body): Reword references in comments to
4431 now removed ENTRY_BLOCK_PTR macro.
4432 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4433 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4434 a comma to the comment to clarify the meaning.
4436 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4438 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4440 (free_gimplify_stack): Add prototype.
4441 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4442 (struct gimplify_ctx): Relocate here.
4443 (gimplify_ctxp): Make static.
4444 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4445 list of struct gimplify_ctx.
4446 (push_gimplify_context): Add default parameters and allocate a struct
4448 (pop_gimplify_context): Free a struct back to the pool.
4449 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4450 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4451 use a local 'struct gimplify_ctx'.
4452 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4453 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4455 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4456 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4457 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4458 lower_omp_teams, execute_lower_omp): Likewise.
4459 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4460 * tree-inline.c (optimize_inline_calls): Likewise.
4462 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4464 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4465 (vsx_extract_<mode>): Likewise.
4466 (*vsx_extract_<mode>_one_le): New LE variant on
4467 *vsx_extract_<mode>_zero.
4468 (vsx_extract_v4sf): Adjust for little endian.
4470 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4472 PR rtl-optimization/59133
4473 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4475 (lra_create_new_reg_with_unique_value): Pass new argument value.
4476 (lra_emit_add, lra_emit_move): Ditto.
4477 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4478 (change_class): Rename to lra_change_class. Move to lra-int.h.
4479 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4481 (process_addr_reg, process_addr): Ditto.
4482 (curr_insn_transform): Ditto. Add check on old pseudo for
4484 * lra-int.h (lra_get_regno_hard_regno): Move below.
4485 (lra_change_class): Renamed change_class from lra.c.
4487 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4489 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4490 the children of a NULL pointer.
4492 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4494 * lra.c (lra): Set lra_in_progress before check_rtl call.
4495 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4496 adding clobber regs when LRA is running.
4498 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4500 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4501 restriction for ISA_MIPS32R2.
4502 (ISA_HAS_LXC1_SXC1): New macro.
4503 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4504 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4505 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4506 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4507 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4508 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4509 (*<ANYF:storex>_<P:mode>): Likewise.
4511 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4513 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4514 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4515 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4516 * config/mips/mips.md (recip_condition): Remove mode attribute.
4517 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4519 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4521 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4524 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4525 Make sure neg2_ovf is set before being used.
4527 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4529 * plugin.def: Add comment about register_callback and
4530 invoke_plugin_callbacks_full.
4532 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4533 Handle PLUGIN_INCLUDE_FILE event.
4535 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4537 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4538 allow subregs of TDmode in FPRs of smaller size in little-endian.
4539 (rs6000_split_multireg_move): When splitting an access to TDmode
4540 in FPRs, do not use simplify_gen_subreg.
4542 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4545 * real.c: Remove comment about decimal string conversion and
4547 (real_from_string): Use MPFR to convert nonzero decimal constant
4550 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4552 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4553 endianness of the D registers for the legacy encodings.
4555 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4557 PR rtl-optimization/54300
4558 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4559 outputs in a single-set are killed from the value chains.
4561 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4563 * cgraph.h (varpool_node): Add need_bounds_init field.
4564 * lto-cgraph.c (lto_output_varpool_node): Output
4565 need_bounds_init value.
4566 (input_varpool_node): Read need_bounds_init value.
4567 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4569 2013-11-20 Jan Hubicka <jh@suse.cz>
4571 * opts.c (finish_options): Imply -ffat-lto-objects with
4572 -fno-use-linker-plugin.
4573 * common.opt (fuse-linker-plugin): Add var.
4575 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4577 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4578 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4579 (gen_type_die_with_usage): Skip pointer bounds.
4580 (dwarf2out_global_decl): Likewise.
4582 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4584 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4587 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4590 * config/i386/i386.c (ix86_option_override_internal): Add missed
4591 argument prefix for 'ix86_fpmath'.
4592 * config/i386/ssemath.h: Add missed definition of
4593 TARGET_FPMATH_DEFAULT_P macros.
4595 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4596 Mike Stump <mikestump@comcast.net>
4597 Richard Sandiford <rdsandiford@googlemail.com>
4599 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4600 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4601 tree_fits_shwi_p or tree_fits_uhwi_p.
4602 * builtins.c (fold_builtin_powi): Likewise.
4603 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4605 * dbxout.c (dbxout_symbol): Likewise.
4606 * expr.c (expand_expr_real_1): Likewise.
4607 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4608 (fold_binary_loc): Likewise.
4609 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4610 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4611 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4612 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4613 * stor-layout.c (compute_record_mode): Likewise.
4614 * tree-cfg.c (verify_expr): Likewise.
4615 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4616 * tree-pretty-print.c (dump_array_domain): Likewise.
4617 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4618 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4619 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4620 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4621 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4622 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4623 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4624 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4625 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4626 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4627 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4628 (create_variable_info_for_1): Likewise.
4629 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4630 (vect_verify_datarefs_alignment): Likewise.
4631 (vect_analyze_data_ref_accesses): Likewise.
4632 (vect_prune_runtime_alias_test_list): Likewise.
4633 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4635 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4637 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4638 overflow. Use tree_to_shwi.
4640 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4642 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4643 HOST_WIDE_INTs when folding (x >> c) << c.
4645 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4646 Dominik Vogt <vogt@linux.vnet.ibm.com>
4648 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4649 int comparisons with an out of range condition code.
4650 (s390_optimize_nonescaping_tx): Skip empty BBs.
4651 Generate the new tbegin RTX when removing the FPR clobbers (with
4653 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4654 result before doing the retry calculations.
4655 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4657 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4658 the TDB setting part of an tbegin.
4659 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4660 ("tx_assist"): Set unused argument to an immediate zero instead of
4661 loading zero into a GPR and pass it as argument.
4662 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4663 Remove inline and related attributes.
4664 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4665 (__TM_is_illegal, __TM_is_footprint_exceeded)
4666 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4668 2013-11-20 Richard Biener <rguenther@suse.de>
4671 * lto-opts.c (lto_write_options): Write defaults only if
4672 they were not explicitely specified. Also write
4673 -ffp-contract default.
4674 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4676 (run_gcc): Pass through -ffp-contract.
4678 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4680 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4682 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4684 * config/aarch64/aarch64-builtins.c
4685 (aarch64_simd_itype): Remove.
4686 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4687 (VAR1): Use qualifiers.
4688 (aarch64_build_scalar_type): New.
4689 (aarch64_build_vector_type): Likewise.
4690 (aarch64_build_type): Likewise.
4691 (aarch64_init_simd_builtins): Refactor, remove special cases,
4692 consolidate main loop.
4693 (aarch64_simd_expand_args): Likewise.
4695 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4698 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4700 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4702 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4704 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4706 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4707 to "vec<>" instances.
4708 (build_pretty_printer): Register the vec<>* prettyprinter.
4710 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4712 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4713 (GdbSubprinter.handles_type): New.
4714 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4715 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4716 (GdbPrettyPrinters.add_printer): Remove in favor of...
4717 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4718 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4719 (GdbPrettyPrinters.__call__): Update search for subprinter
4720 to use handles_type method.
4721 (build_pretty_printer): Update registration of subprinters to
4722 use the new API above, supporting multiple spelling of each type,
4723 and allowing for future regex-based subprinters.
4725 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4727 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4728 V16QI vector splat case for little endian.
4730 2013-11-19 Jeff Law <law@redhat.com>
4732 * tree-ssa-threadedge.c (thread_across_edge): After threading
4733 through a joiner, allow threading a normal block requiring duplication.
4735 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4736 jump threading requests that would muck up the loop structures.
4738 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4739 * tree-ssa-threadupdate.h: Likewise.
4741 2013-11-19 Mike Stump <mikestump@comcast.net>
4743 * gdbinit.in: Add pmz to print out mpz values.
4745 2013-11-20 Jan Hubicka <jh@suse.cz>
4747 * common.opt (ffat-lto-objects): Disable by default.
4748 * doc/invoke.texi (fat-lto-objects): Update documentation.
4749 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4751 2013-11-19 Martin Jambor <mjambor@suse.cz>
4753 PR rtl-optimization/59099
4754 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4756 (ira): Move init_reg_equiv and call to
4757 split_live_ranges_for_shrink_wrap up, remove analyses around call
4758 to find_moveable_pseudos.
4760 2013-11-20 Alan Modra <amodra@gmail.com>
4762 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4763 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4764 to strict alignment on older processors when little-endian.
4765 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4768 2013-11-19 Teresa Johnson <tejohnson@google.com>
4770 * common/config/i386/i386-common.c: Enable
4771 -freorder-blocks-and-partition at -O2 and up for x86.
4772 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4773 * opts.c (finish_options): Only warn if
4774 -freorder-blocks-and-partition was set on command line.
4776 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4778 * final.c (final_scan_insn): Emit a label for the split
4779 cold function part. Label name is formed by suffixing
4780 the original function name with "cold".
4782 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4784 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4785 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4786 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4787 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4788 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4790 (EXIT_BLOCK_PTR): Likewise.
4791 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4792 (FOR_ALL_BB_FN): Update for renaming of
4793 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4795 * cfg.c (init_flow): Likewise.
4796 (check_bb_profile): Likewise.
4797 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4798 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4799 * cfghooks.c (account_profile_record): Likewise.
4800 * cfgloop.c (init_loops_structure): Likewise.
4801 * cgraphbuild.c (record_eh_tables): Likewise.
4802 (compute_call_stmt_bb_frequency): Likewise.
4803 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4804 * lto-streamer-in.c (input_cfg): Likewise.
4805 * predict.c (maybe_hot_frequency_p): Likewise.
4806 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4807 * tree-inline.c (initialize_cfun): Likewise.
4808 (copy_cfg_body): Likewise.
4809 (copy_body): Likewise.
4810 (tree_function_versioning): Likewise.
4812 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4813 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4814 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4815 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4816 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4817 (connect_traces): Likewise.
4818 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4819 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4820 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4822 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4824 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4825 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4826 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4827 (rotate_loop): Likewise.
4828 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4829 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4831 (alloc_aux_for_edges): Likewise.
4832 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4833 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4835 (compact_blocks): Likewise.
4836 (clear_edges): Likewise.
4837 * cfganal.c (single_pred_before_succ_order): Remove usage of
4838 ENTRY_BLOCK_PTR macro.
4839 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4840 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4841 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4842 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4843 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4845 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4846 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4848 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4849 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4850 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4851 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4852 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4853 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4855 (print_edge_list): Likewise.
4856 (create_edge_list): Likewise.
4857 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4858 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4860 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4862 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4863 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4864 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4865 (try_optimize_cfg): Likewise.
4866 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4867 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4868 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4869 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4870 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4871 (try_forward_edges): Likewise.
4872 (try_simplify_condjump): Likewise.
4873 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4874 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4875 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4876 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4878 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4879 (expand_gimple_tailcall): Likewise.
4880 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4881 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4882 (tidy_fallthru_edges): Likewise.
4883 (verify_flow_info): Likewise.
4884 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4885 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4886 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4887 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4888 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4889 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4890 (get_loop_body_in_dom_order): Likewise.
4891 (get_loop_body): Likewise.
4892 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4893 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4894 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4896 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4897 (fix_bb_placement): Likewise.
4898 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4899 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4900 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4901 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4903 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4904 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4905 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4906 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4908 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4909 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4910 (fixup_reorder_chain): Likewise.
4911 (relink_block_chain): Likewise.
4912 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4913 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4914 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4915 (force_one_exit_fallthru): Likewise.
4916 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4918 (rtl_verify_edges): Likewise.
4919 (commit_edge_insertions): Likewise.
4920 (commit_one_edge_insertion): Likewise.
4921 (rtl_split_edge): Likewise.
4922 (force_nonfallthru_and_redirect): Likewise.
4923 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4924 (skip_insns_after_block): Likewise.
4925 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4927 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4928 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4930 (contains_no_active_insn_p): Likewise.
4931 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4932 (entry_of_function): Likewise.
4933 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4934 (fixup_new_cold_bb): Likewise.
4935 (patch_jump_insn): Likewise.
4936 (try_redirect_by_replacing_jump): Likewise.
4937 (block_label): Likewise.
4938 (could_fall_through): Likewise.
4939 (can_fallthru): Likewise.
4940 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4941 ENTRY_BLOCK_PTR macro.
4942 (rebuild_cgraph_edges): Likewise.
4943 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4944 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4945 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4946 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4947 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4948 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4949 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4950 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4952 (reg_nonzero_bits_for_combine): Likewise.
4953 (set_nonzero_bits_and_sign_copies): Likewise.
4954 (combine_instructions): Likewise.
4955 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4957 (bypass_conditional_jumps): Likewise.
4958 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4959 (find_implicit_sets): Likewise.
4960 (cprop_jump): Likewise.
4961 * cse.c (cse_cc_succs): Likewise.
4962 (cse_find_path): Likewise.
4963 * df-problems.c (df_lr_confluence_0): Likewise.
4964 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4965 ENTRY_BLOCK_PTR macro.
4966 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4967 * dominance.c (iterate_fix_dominators): Remove usage of
4968 ENTRY_BLOCK_PTR macro.
4969 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4970 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4971 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4973 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4975 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4977 * domwalk.c (cmp_bb_postorder): Likewise.
4978 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4979 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4981 (sjlj_emit_function_enter): Likewise.
4982 * final.c (compute_alignments): Likewise.
4983 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4984 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4985 (reposition_prologue_and_epilogue_notes): Remove usage of
4986 EXIT_BLOCK_PTR macro.
4987 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4989 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4990 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4991 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4992 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4993 (compute_code_hoist_vbeinout): Likewise.
4994 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4995 (pre_expr_reaches_here_p_work): Likewise.
4996 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4997 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4999 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5000 ENTRY_BLOCK_PTR macro.
5001 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5003 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5004 ENTRY_BLOCK_PTR macro.
5005 * graphite-scop-detection.c (build_scops): Likewise.
5006 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5007 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5008 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5010 (unlink_bb_notes): Likewise.
5011 (create_check_block_twin): Likewise.
5012 (init_before_recovery): Likewise.
5013 (sched_extend_bb): Likewise.
5014 (priority): Likewise.
5015 * hw-doloop.c (reorder_loops): Likewise.
5016 (discover_loop): Likewise.
5017 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5018 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5019 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5020 (block_has_only_trap): Likewise.
5021 (cond_exec_find_if_block): Likewise.
5022 (merge_if_block): Likewise.
5023 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5024 ENTRY_BLOCK_PTR macro.
5025 (record_modified): Likewise.
5026 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5027 EXIT_BLOCK_PTR macro.
5028 (local_pure_const): Likewise.
5029 * ipa-split.c (split_function): Remove uses of macros:
5030 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5031 (find_split_points): Likewise.
5032 (consider_split): Likewise.
5033 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5034 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5035 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5036 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5037 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5038 ENTRY_BLOCK_PTR macro.
5039 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5040 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5041 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5042 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5043 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5045 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5047 (compute_farthest): Likewise.
5048 (compute_available): Likewise.
5049 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5050 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5052 (compute_earliest): Likewise.
5053 (compute_antinout_edge): Likewise.
5054 * loop-iv.c (simplify_using_initial_values): Remove usage of
5055 ENTRY_BLOCK_PTR macro.
5056 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5058 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5060 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5062 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5063 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5064 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5066 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5068 * lto-streamer-out.c (output_cfg): Likewise.
5069 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5071 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5072 * mode-switching.c (optimize_mode_switching): Likewise.
5073 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5074 * modulo-sched.c (rest_of_handle_sms): Likewise.
5075 (canon_loop): Likewise.
5076 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5077 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5078 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5079 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5081 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5082 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5083 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5084 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5085 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5086 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5087 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5088 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5089 (gimple_predict_edge): Likewise.
5090 (probably_never_executed): Likewise.
5091 * profile.c (find_spanning_tree): Remove uses of macros:
5092 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5093 (branch_prob): Likewise.
5094 (compute_branch_probabilities): Likewise.
5095 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5096 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5097 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5098 (set_bb_counts): Likewise.
5099 (correct_negative_edge_counts): Likewise.
5100 (get_exec_counts): Likewise.
5101 (instrument_values): Likewise.
5102 (instrument_edges): Likewise.
5103 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5105 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5106 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5107 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5108 (reg_to_stack): Likewise.
5109 * regs.h (REG_N_SETS): Likewise.
5110 * reload.c (find_dummy_reload): Likewise.
5111 (combine_reloads): Likewise.
5112 (push_reload): Likewise.
5113 * reload1.c (has_nonexceptional_receiver): Remove usage of
5114 EXIT_BLOCK_PTR macro.
5115 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5117 (find_basic_block): Likewise.
5118 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5119 (schedule_ebbs): Likewise.
5120 * sched-int.h (sel_sched_p): Likewise.
5121 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5123 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5124 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5126 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5127 (extend_rgns): Likewise.
5128 (find_single_block_region): Likewise.
5129 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5130 ENTRY_BLOCK_PTR macro.
5131 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5132 (sel_create_recovery_block): Likewise.
5133 (bb_ends_ebb_p): Likewise.
5134 (sel_bb_end): Likewise.
5135 (sel_bb_head): Likewise.
5136 (free_lv_sets): Likewise.
5137 (init_lv_sets): Likewise.
5138 (tidy_control_flow): Likewise.
5139 (maybe_tidy_empty_bb): Likewise.
5140 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5141 (_succ_iter_start): Likewise.
5142 (sel_bb_empty_or_nop_p): Likewise.
5143 (get_loop_exit_edges_unique_dests): Likewise.
5144 (inner_loop_header_p): Likewise.
5145 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5146 (find_block_for_bookkeeping): Likewise.
5147 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5148 (insert_store): Likewise.
5149 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5150 ENTRY_BLOCK_PTR macro.
5151 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5152 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5153 (gate_tm_init): Likewise.
5154 (tm_region_init): Likewise.
5155 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5156 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5157 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5158 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5160 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5161 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5163 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5165 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5167 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5169 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5170 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5171 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5172 (build_gimple_cfg): Likewise.
5173 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5174 (gimple_can_merge_blocks_p): Likewise.
5175 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5176 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5177 * tree-complex.c (update_parameter_components): Remove usage of
5178 ENTRY_BLOCK_PTR macro.
5179 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5180 EXIT_BLOCK_PTR macro.
5181 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5182 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5183 (delete_unreachable_blocks_update_callgraph): Likewise.
5184 (initialize_cfun): Likewise.
5185 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5186 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5187 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5188 * tree-into-ssa.c (update_ssa): Likewise.
5189 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5190 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5191 (rewrite_into_ssa): Likewise.
5192 (rewrite_debug_stmt_uses): Likewise.
5193 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5194 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5195 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5196 ENTRY_BLOCK_PTR macro.
5197 * tree-scalar-evolution.h (block_before_loop): Likewise.
5198 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5199 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5201 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5203 (propagate_dereference_distances): Remove uses of macros:
5204 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5205 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5207 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5208 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5209 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5210 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5211 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5212 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5213 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5214 (mark_control_dependent_edges_necessary): Remove uses of macros:
5215 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5216 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5217 ENTRY_BLOCK_PTR macro.
5218 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5219 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5220 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5221 (calculate_live_on_exit): Likewise.
5222 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5223 (loe_visit_block): Likewise.
5224 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5225 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5226 (live_on_entry): Likewise.
5227 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5228 EXIT_BLOCK_PTR macro.
5229 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5230 ENTRY_BLOCK_PTR macro.
5231 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5232 (bound_difference): Likewise.
5233 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5234 of EXIT_BLOCK_PTR macro.
5235 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5236 of ENTRY_BLOCK_PTR macro.
5237 * tree-ssa-math-opts.c (register_division_in): Likewise.
5238 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5239 * tree-ssa-pre.c (compute_avail): Likewise.
5240 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5241 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5242 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5243 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5244 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5246 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5247 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5248 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5249 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5250 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5251 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5252 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5253 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5254 (find_pdom): Likewise.
5255 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5256 * tree-stdarg.c (reachable_at_most_once): Likewise.
5257 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5258 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5259 (eliminate_tail_call): Likewise.
5260 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5262 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5263 * var-tracking.c (vt_initialize): Remove uses of macros:
5264 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5265 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5266 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5267 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5269 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5271 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5272 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5273 of EXIT_BLOCK_PTR macro.
5274 * config/arm/arm.c (require_pic_register): Remove usage of
5275 ENTRY_BLOCK_PTR macro.
5276 (arm_r3_live_at_start_p): Likewise.
5277 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5278 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5279 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5280 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5281 ENTRY_BLOCK_PTR macro.
5282 * config/i386/i386.c (ix86_count_insn): Likewise.
5283 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5284 (ix86_pad_short_function): Likewise.
5285 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5286 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5287 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5288 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5289 (ix86_expand_epilogue): Likewise.
5290 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5291 (ia64_expand_prologue): Likewise.
5293 2013-11-19 Catherine Moore <clm@codesourcery.com>
5295 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5296 * config/mips/mips.opt (mfix-rm7000): New option.
5297 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5298 * config/mips/mips.c (mips_reorg_process_insns): Disable
5299 noreorder for TARGET_FIX_RM7000.
5301 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5303 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5305 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5307 * config/arm/arm.c (arm_new_rtx_costs):
5308 Handle narrow mode add-shifts properly.
5309 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5310 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5313 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5315 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5317 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5319 * config/rs6000/vector.md ("mov<mode>"): Do not call
5320 rs6000_emit_le_vsx_move to move into or out of GPRs.
5321 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5322 source and destination are not GPR hard regs.
5324 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5326 * basic-block.h (n_edges_for_function): Rename macro to...
5327 (n_edges_for_fn): ...this.
5328 (n_edges): Eliminate macro as work towards making uses of
5331 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5332 to "n_edges_for_fn".
5334 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5335 (clear_edges): Likewise.
5336 (free_edge): Likewise.
5337 * cfghooks.c (dump_flow_info): Likewise.
5338 * cprop.c (is_too_expensive): Likewise.
5339 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5340 * gcse.c (is_too_expensive): Likewise.
5341 (prune_insertions_deletions): Likewise.
5342 * mcf.c (create_fixup_graph): Likewise.
5343 * sched-rgn.c (haifa_find_rgns): Likewise.
5344 * tree-cfg.c (gimple_dump_cfg): Likewise.
5345 * var-tracking.c (variable_tracking_main_1): Likewise.
5347 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5349 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5352 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5354 * config/aarch64/aarch64.md
5355 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5357 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5359 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5361 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5363 * varasm.c (align_variable): Give error instead of warning for
5364 unsupported alignment.
5365 (assemble_noswitch_variable): Likewise.
5367 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5369 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5372 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5374 * loop-doloop.c (doloop_optimize_loops): Remove unused
5375 loop iterator argument from FOR_EACH_LOOP.
5377 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5379 Convert gimple types from a union to C++ inheritance.
5380 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5381 * coretypes.h (union gimple_statement_d): Remove declaration.
5382 (gimple): Convert from being a "union gimple_statement_d *"
5383 to a "struct gimple_statement_base *".
5384 (const_gimple): Likewise (with "const").
5385 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5386 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5387 * gimple-pretty-print.c (debug): Change parameter from a
5388 "gimple_statement_d &" to a "gimple_statement_base &".
5389 (debug): Change parameter from a "gimple_statement_d *" to
5390 a "gimple_statement_base *".
5391 * gimple-pretty-print.h (debug): Update declarations as above.
5392 * gimple.c (gimple_alloc_stat): Update for renaming of
5393 ggc_alloc_cleared_gimple_statement_d_stat to
5394 ggc_alloc_cleared_gimple_statement_stat.
5395 * gimple.h: Include "is-a.h" for use by is_a_helper
5396 specializations in followup autogenerated patch.
5397 (struct gimple statement_base): Make this type usable as a base
5398 class by adding "desc", "tag" and "variable_size" to GTY, thus
5399 using opting-in to gengtype's support for simple inheritance.
5400 (gimple_statement_with_ops_base): Convert to a subclass of
5401 gimple_statement_base, dropping initial "gsbase" field. Note that
5402 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5403 (gimple_statement_with_ops): Convert to a subclass of
5404 gimple_statement_with_ops_base, dropping initial "opbase" field.
5405 Add tag value to GTY marking. Update marking of op field to
5406 reflect how num_ops field is accessed via inheritance.
5407 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5408 gimple_statement_with_ops_base, dropping initial "opbase" field.
5409 Add tag value to GTY marking.
5410 (gimple_statement_with_memory_ops): Convert to a subclass of
5411 public gimple_statement_with_memory_ops_base, dropping initial
5412 "membase" field. Add tag value to GTY marking. Update marking
5413 of op field to reflect how num_ops field is accessed via inheritance.
5414 (gimple_statement_call): Analogous changes that also update the
5415 marking of the "u" union.
5416 (gimple_statement_omp): Convert to a subclass of
5417 gimple_statement_base, dropping initial "gsbase" field, adding
5418 tag value to GTY marking.
5419 (gimple_statement_bind): Likewise.
5420 (gimple_statement_catch): Likewise.
5421 (gimple_statement_eh_filter): Likewise.
5422 (gimple_statement_eh_else): Likewise.
5423 (gimple_statement_eh_mnt): Likewise.
5424 (gimple_statement_phi): Likewise.
5425 (gimple_statement_eh_ctrl): Likewise.
5426 (gimple_statement_try): Likewise.
5427 (gimple_statement_wce): Likewise.
5428 (gimple_statement_asm): Convert to a subclass of
5429 gimple_statement_with_memory_ops_base, dropping initial
5430 "membase" field, adding tag value to GTY marking, and updating
5431 marking of op field.
5432 (gimple_statement_omp_critical): Convert to a subclass of
5433 gimple_statement_omp, dropping initial "omp" field, adding tag
5434 value to GTY marking.
5435 (gimple_statement_omp_for): Likewise.
5436 (gimple_statement_omp_parallel): Likewise.
5437 (gimple_statement_omp_task): Convert to a subclass of
5438 gimple_statement_omp_parallel, dropping initial "par" field,
5439 adding tag value to GTY marking.
5440 (gimple_statement_omp_sections): Convert to a subclass of
5441 gimple_statement_omp, dropping initial "omp" field, adding
5442 tag value to GTY marking.
5443 (gimple_statement_omp_continue): Convert to a subclass of
5444 gimple_statement_base, dropping initial "gsbase" field, adding
5445 tag value to GTY marking.
5446 (gimple_statement_omp_single): Convert to a subclass of
5447 gimple_statement_omp, dropping initial "omp" field, adding
5448 tag value to GTY marking.
5449 (gimple_statement_omp_atomic_load): Convert to a subclass of
5450 gimple_statement_base, dropping initial "gsbase" field, adding
5451 tag value to GTY marking.
5452 (gimple_statement_omp_atomic_store): Convert to a subclass of
5453 gimple_statement_base, dropping initial "gsbase" field, adding
5454 tag value to GTY marking.
5455 (gimple_statement_transaction): Convert to a subclass of
5456 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5457 field, adding tag value to GTY marking.
5458 (union gimple_statement_d): Remove.
5459 * system.h (CONST_CAST_GIMPLE): Update to use
5460 "struct gimple_statement_base *" rather than
5461 "union gimple_statement_d *".
5462 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5463 gimple_statement_d to gimple_statement_base.
5465 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5466 (gimple_set_use_ops): Port from union to usage of as_a.
5467 (gimple_set_vuse): Likewise.
5468 (gimple_set_vdef): Likewise.
5469 (gimple_call_internal_fn): Port from union to a static_cast,
5470 given that the type has already been asserted.
5471 (gimple_omp_body_ptr): Port from unchecked union usage to
5473 (gimple_omp_set_body): Likewise.
5475 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5476 gimple types to a true class hierarchy.
5477 (update_call_edge_frequencies): Likewise.
5478 (gsi_insert_seq_nodes_before): Likewise.
5479 (gsi_insert_seq_nodes_after): Likewise.
5480 (gsi_split_seq_after): Likewise.
5481 (gsi_set_stmt): Likewise.
5482 (gsi_split_seq_before): Likewise.
5483 (gsi_remove): Likewise.
5484 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5485 (gsi_next): Likewise.
5486 (gsi_prev): Likewise.
5487 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5488 * gimple-ssa.h (gimple_vuse_op): Likewise.
5489 (gimple_vdef_op): Likewise.
5490 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5491 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5492 * gimple.c (gimple_set_code): Likewise.
5493 (gimple_alloc_stat): Likewise.
5494 (gimple_set_subcode): Likewise.
5495 (gimple_build_call_internal_1): Likewise.
5496 (gimple_check_failed): Likewise.
5497 (gimple_call_flags): Likewise.
5498 (gimple_set_bb): Likewise.
5499 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5500 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5501 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5502 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5503 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5504 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5505 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5506 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5507 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5508 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5509 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5510 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5511 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5512 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5513 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5514 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5515 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5516 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5517 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5518 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5519 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5520 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5521 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5522 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5523 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5524 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5526 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5528 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5530 (is_a_helper <const gimple_statement_omp_atomic_store>
5531 (const_gimple)): Likewise.
5532 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5534 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5536 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5538 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5540 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5542 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5544 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5546 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5547 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5549 (gimple_seq_last): Update for conversion of gimple types to a true
5551 (gimple_seq_set_last): Likewise.
5552 (gimple_code): Likewise.
5553 (gimple_bb): Likewise.
5554 (gimple_block): Likewise.
5555 (gimple_set_block): Likewise.
5556 (gimple_location): Likewise.
5557 (gimple_location_ptr): Likewise.
5558 (gimple_set_location): Likewise.
5559 (gimple_no_warning_p): Likewise.
5560 (gimple_set_no_warning): Likewise.
5561 (gimple_set_visited): Likewise.
5562 (gimple_visited_p): Likewise.
5563 (gimple_set_plf): Likewise.
5564 (gimple_plf): Likewise.
5565 (gimple_set_uid): Likewise.
5566 (gimple_uid): Likewise.
5567 (gimple_init_singleton): Likewise.
5568 (gimple_modified_p): Likewise.
5569 (gimple_set_modified): Likewise.
5570 (gimple_expr_code): Likewise.
5571 (gimple_has_volatile_ops): Likewise.
5572 (gimple_set_has_volatile_ops): Likewise.
5573 (gimple_omp_subcode): Likewise.
5574 (gimple_omp_set_subcode): Likewise.
5575 (gimple_omp_return_set_nowait): Likewise.
5576 (gimple_omp_section_set_last): Likewise.
5577 (gimple_omp_parallel_set_combined_p): Likewise.
5578 (gimple_omp_atomic_set_need_value): Likewise.
5579 (gimple_omp_atomic_set_seq_cst): Likewise.
5580 (gimple_num_ops): Likewise.
5581 (gimple_set_num_ops): Likewise.
5582 (gimple_assign_nontemporal_move_p): Likewise.
5583 (gimple_assign_set_nontemporal_move): Likewise.
5584 (gimple_assign_rhs_code): Likewise.
5585 (gimple_assign_set_rhs_code): Likewise.
5586 (gimple_call_internal_p): Likewise.
5587 (gimple_call_with_bounds_p): Likewise.
5588 (gimple_call_set_with_bounds): Likewise.
5589 (gimple_call_set_tail): Likewise.
5590 (gimple_call_tail_p): Likewise.
5591 (gimple_call_set_return_slot_opt): Likewise.
5592 (gimple_call_return_slot_opt_p): Likewise.
5593 (gimple_call_set_from_thunk): Likewise.
5594 (gimple_call_from_thunk_p): Likewise.
5595 (gimple_call_set_va_arg_pack): Likewise.
5596 (gimple_call_va_arg_pack_p): Likewise.
5597 (gimple_call_set_nothrow): Likewise.
5598 (gimple_call_set_alloca_for_var): Likewise.
5599 (gimple_call_alloca_for_var_p): Likewise.
5600 (gimple_call_copy_flags): Likewise.
5601 (gimple_cond_code): Likewise.
5602 (gimple_cond_set_code): Likewise.
5603 (gimple_cond_make_false): Likewise.
5604 (gimple_cond_make_true): Likewise.
5605 (gimple_asm_volatile_p): Likewise.
5606 (gimple_asm_set_volatile): Likewise.
5607 (gimple_asm_set_input): Likewise.
5608 (gimple_asm_input_p): Likewise.
5609 (gimple_try_kind): Likewise.
5610 (gimple_try_set_kind): Likewise.
5611 (gimple_try_catch_is_cleanup): Likewise.
5612 (gimple_try_set_catch_is_cleanup): Likewise.
5613 (gimple_wce_cleanup_eh_only): Likewise.
5614 (gimple_wce_set_cleanup_eh_only): Likewise.
5615 (gimple_debug_bind_p): Likewise.
5616 (gimple_debug_source_bind_p): Likewise.
5617 (gimple_omp_for_set_kind): Likewise.
5618 (gimple_omp_for_set_combined_p): Likewise.
5619 (gimple_omp_for_set_combined_into_p): Likewise.
5620 (gimple_omp_target_set_kind): Likewise.
5621 (gimple_transaction_subcode): Likewise.
5622 (gimple_transaction_set_subcode): Likewise.
5623 (gimple_predict_predictor): Likewise.
5624 (gimple_predict_set_predictor): Likewise.
5625 (gimple_predict_outcome): Likewise.
5626 (gimple_predict_set_outcome): Likewise.
5627 (gimple_transaction_set_label): Likewise.
5628 (gimple_transaction_set_body): Likewise.
5629 (gimple_transaction_label_ptr): Likewise.
5630 (gimple_transaction_label): Likewise.
5631 (gimple_transaction_body_ptr): Likewise.
5632 (gimple_omp_continue_set_control_use): Likewise.
5633 (gimple_omp_continue_control_use_ptr): Likewise.
5634 (gimple_omp_continue_control_use): Likewise.
5635 (gimple_omp_continue_set_control_def): Likewise.
5636 (gimple_omp_continue_control_def_ptr): Likewise.
5637 (gimple_omp_continue_control_def): Likewise.
5638 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5639 (gimple_omp_atomic_load_rhs): Likewise.
5640 (gimple_omp_atomic_load_set_rhs): Likewise.
5641 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5642 (gimple_omp_atomic_load_lhs): Likewise.
5643 (gimple_omp_atomic_load_set_lhs): Likewise.
5644 (gimple_omp_atomic_store_val_ptr): Likewise.
5645 (gimple_omp_atomic_store_val): Likewise.
5646 (gimple_omp_atomic_store_set_val): Likewise.
5647 (gimple_omp_for_cond): Likewise.
5648 (gimple_omp_for_set_cond): Likewise.
5649 (gimple_omp_sections_set_control): Likewise.
5650 (gimple_omp_sections_control_ptr): Likewise.
5651 (gimple_omp_sections_control): Likewise.
5652 (gimple_omp_sections_set_clauses): Likewise.
5653 (gimple_omp_sections_clauses_ptr): Likewise.
5654 (gimple_omp_sections_clauses): Likewise.
5655 (gimple_omp_teams_set_clauses): Likewise.
5656 (gimple_omp_teams_clauses_ptr): Likewise.
5657 (gimple_omp_teams_clauses): Likewise.
5658 (gimple_omp_target_set_data_arg): Likewise.
5659 (gimple_omp_target_data_arg_ptr): Likewise.
5660 (gimple_omp_target_data_arg): Likewise.
5661 (gimple_omp_target_set_child_fn): Likewise.
5662 (gimple_omp_target_child_fn_ptr): Likewise.
5663 (gimple_omp_target_child_fn): Likewise.
5664 (gimple_omp_target_set_clauses): Likewise.
5665 (gimple_omp_target_clauses_ptr): Likewise.
5666 (gimple_omp_target_clauses): Likewise.
5667 (gimple_omp_single_set_clauses): Likewise.
5668 (gimple_omp_single_clauses_ptr): Likewise.
5669 (gimple_omp_single_clauses): Likewise.
5670 (gimple_omp_task_set_arg_align): Likewise.
5671 (gimple_omp_task_arg_align_ptr): Likewise.
5672 (gimple_omp_task_arg_align): Likewise.
5673 (gimple_omp_task_set_arg_size): Likewise.
5674 (gimple_omp_task_arg_size_ptr): Likewise.
5675 (gimple_omp_task_arg_size): Likewise.
5676 (gimple_omp_task_set_copy_fn): Likewise.
5677 (gimple_omp_task_copy_fn_ptr): Likewise.
5678 (gimple_omp_task_copy_fn): Likewise.
5679 (gimple_omp_task_set_data_arg): Likewise.
5680 (gimple_omp_task_data_arg_ptr): Likewise.
5681 (gimple_omp_task_data_arg): Likewise.
5682 (gimple_omp_task_set_child_fn): Likewise.
5683 (gimple_omp_task_child_fn_ptr): Likewise.
5684 (gimple_omp_task_child_fn): Likewise.
5685 (gimple_omp_task_set_clauses): Likewise.
5686 (gimple_omp_task_clauses_ptr): Likewise.
5687 (gimple_omp_task_clauses): Likewise.
5688 (gimple_omp_parallel_set_data_arg): Likewise.
5689 (gimple_omp_parallel_data_arg_ptr): Likewise.
5690 (gimple_omp_parallel_data_arg): Likewise.
5691 (gimple_omp_parallel_set_child_fn): Likewise.
5692 (gimple_omp_parallel_child_fn_ptr): Likewise.
5693 (gimple_omp_parallel_child_fn): Likewise.
5694 (gimple_omp_parallel_set_clauses): Likewise.
5695 (gimple_omp_parallel_clauses_ptr): Likewise.
5696 (gimple_omp_parallel_clauses): Likewise.
5697 (gimple_omp_for_set_pre_body): Likewise.
5698 (gimple_omp_for_pre_body_ptr): Likewise.
5699 (gimple_omp_for_set_incr): Likewise.
5700 (gimple_omp_for_incr_ptr): Likewise.
5701 (gimple_omp_for_incr): Likewise.
5702 (gimple_omp_for_set_final): Likewise.
5703 (gimple_omp_for_final_ptr): Likewise.
5704 (gimple_omp_for_final): Likewise.
5705 (gimple_omp_for_set_initial): Likewise.
5706 (gimple_omp_for_initial_ptr): Likewise.
5707 (gimple_omp_for_initial): Likewise.
5708 (gimple_omp_for_set_index): Likewise.
5709 (gimple_omp_for_index_ptr): Likewise.
5710 (gimple_omp_for_index): Likewise.
5711 (gimple_omp_for_collapse): Likewise.
5712 (gimple_omp_for_set_clauses): Likewise.
5713 (gimple_omp_for_clauses_ptr): Likewise.
5714 (gimple_omp_for_clauses): Likewise.
5715 (gimple_omp_critical_set_name): Likewise.
5716 (gimple_omp_critical_name_ptr): Likewise.
5717 (gimple_omp_critical_name): Likewise.
5718 (gimple_eh_dispatch_set_region): Likewise.
5719 (gimple_eh_dispatch_region): Likewise.
5720 (gimple_resx_set_region): Likewise.
5721 (gimple_resx_region): Likewise.
5722 (gimple_phi_set_arg): Likewise.
5723 (gimple_phi_arg): Likewise.
5724 (gimple_phi_set_result): Likewise.
5725 (gimple_phi_result_ptr): Likewise.
5726 (gimple_phi_result): Likewise.
5727 (gimple_phi_num_args): Likewise.
5728 (gimple_phi_capacity): Likewise.
5729 (gimple_wce_set_cleanup): Likewise.
5730 (gimple_wce_cleanup_ptr): Likewise.
5731 (gimple_try_set_cleanup): Likewise.
5732 (gimple_try_set_eval): Likewise.
5733 (gimple_try_cleanup_ptr): Likewise.
5734 (gimple_try_eval_ptr): Likewise.
5735 (gimple_eh_else_set_e_body): Likewise.
5736 (gimple_eh_else_set_n_body): Likewise.
5737 (gimple_eh_else_e_body_ptr): Likewise.
5738 (gimple_eh_else_n_body_ptr): Likewise.
5739 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5740 (gimple_eh_must_not_throw_fndecl): Likewise.
5741 (gimple_eh_filter_set_failure): Likewise.
5742 (gimple_eh_filter_set_types): Likewise.
5743 (gimple_eh_filter_failure_ptr): Likewise.
5744 (gimple_eh_filter_types_ptr): Likewise.
5745 (gimple_eh_filter_types): Likewise.
5746 (gimple_catch_set_handler): Likewise.
5747 (gimple_catch_set_types): Likewise.
5748 (gimple_catch_handler_ptr): Likewise.
5749 (gimple_catch_types_ptr): Likewise.
5750 (gimple_catch_types): Likewise.
5751 (gimple_asm_string): Likewise.
5752 (gimple_asm_set_label_op): Likewise.
5753 (gimple_asm_label_op): Likewise.
5754 (gimple_asm_set_clobber_op): Likewise.
5755 (gimple_asm_clobber_op): Likewise.
5756 (gimple_asm_set_output_op): Likewise.
5757 (gimple_asm_output_op_ptr): Likewise.
5758 (gimple_asm_output_op): Likewise.
5759 (gimple_asm_set_input_op): Likewise.
5760 (gimple_asm_input_op_ptr): Likewise.
5761 (gimple_asm_input_op): Likewise.
5762 (gimple_asm_nlabels): Likewise.
5763 (gimple_asm_nclobbers): Likewise.
5764 (gimple_asm_noutputs): Likewise.
5765 (gimple_asm_ninputs): Likewise.
5766 (gimple_bind_set_block): Likewise.
5767 (gimple_bind_block): Likewise.
5768 (gimple_bind_add_seq): Likewise.
5769 (gimple_bind_add_stmt): Likewise.
5770 (gimple_bind_set_body): Likewise.
5771 (gimple_bind_body_ptr): Likewise.
5772 (gimple_bind_append_vars): Likewise.
5773 (gimple_bind_set_vars): Likewise.
5774 (gimple_bind_vars): Likewise.
5775 (gimple_call_clobber_set): Likewise.
5776 (gimple_call_use_set): Likewise.
5777 (gimple_call_set_internal_fn): Likewise.
5778 (gimple_call_set_fntype): Likewise.
5779 (gimple_call_fntype): Likewise.
5780 (gimple_omp_return_lhs_ptr): Likewise.
5781 (gimple_omp_return_lhs): Likewise.
5782 (gimple_omp_return_set_lhs): Likewise.
5783 (gimple_omp_taskreg_set_data_arg): Likewise.
5784 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5785 (gimple_omp_taskreg_data_arg): Likewise.
5786 (gimple_omp_taskreg_set_child_fn): Likewise.
5787 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5788 (gimple_omp_taskreg_child_fn): Likewise.
5789 (gimple_omp_taskreg_set_clauses): Likewise.
5790 (gimple_omp_taskreg_clauses_ptr): Likewise.
5791 (gimple_omp_taskreg_clauses): Likewise.
5792 (gimple_vuse): Likewise.
5793 (gimple_vdef): Likewise.
5794 (gimple_vuse_ptr): Likewise.
5795 (gimple_vdef_ptr): Likewise.
5796 * tree-inline.c (copy_debug_stmt): Likewise.
5797 * tree-phinodes.c (make_phi_node): Likewise.
5799 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5800 (is_a_helper <gimple_statement_with_ops>::test): New.
5801 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5802 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5804 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5805 access to use of as_a.
5806 * gimple.c (gimple_build_asm_1): Likewise.
5807 (gimple_build_try): Likewise. Also, return a specific subclass
5808 rather than just gimple.
5809 (gimple_build_resx): Port from union access to use of as_a.
5810 (gimple_build_eh_dispatch): Likewise.
5811 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5812 now that gengtype no longer provides a typed allocator function.
5813 (gimple_copy): Likewise.
5814 * gimple.h (gimple_build_try): Return a specific subclass rather
5816 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5817 with subclass access by making use of new return type of
5819 * tree-phinodes.c: (allocate_phi_node): Return a
5820 "gimple_statement_phi *" rather than just a gimple.
5821 (resize_phi_node): Likewise.
5822 (make_phi_node): Replace union access with subclass access by
5823 making use of new return type of allocate_phi_node.
5824 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5825 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5827 (remove_phi_args): Update for change to remove_phi_arg_num.
5829 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5830 code field to reflect inheritance, rather than embedding of
5831 the base gimple type.
5833 2013-11-19 Richard Biener <rguenther@suse.de>
5835 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5836 and destructor and make fel_next a member function.
5837 (fel_next): Transform into ...
5838 (loop_iterator::next): ... this.
5839 (fel_init): Transform into ...
5840 (loop_iterator::loop_iterator): ... this.
5841 (loop_iterator::~loop_iterator): New.
5842 (FOR_EACH_LOOP): Remove loop-iterator argument.
5843 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5844 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5845 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5846 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5847 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5848 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5849 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5850 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5851 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5852 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5853 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5854 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5855 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5856 FOR_EACH_LOOP_BREAK with break.
5858 2013-11-19 Richard Biener <rguenther@suse.de>
5860 PR tree-optimization/59164
5861 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5863 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5864 whether we can create an epilogue loop to reflect thecases where
5867 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5869 * graphite-sese-to-poly.c: Include expr.h.
5871 2013-11-19 Richard Biener <rguenther@suse.de>
5874 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5875 loads into stmts that may clobber it.
5877 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5879 * cgraphunit.c (symtab_terminator): New variable.
5880 (queued_nodes): Renamed from first. Use symtab_terminator as
5882 (analyze_functions): Adjust accordingly.
5883 (cgraph_process_new_functions): Return void.
5884 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5886 2013-11-19 Marek Polacek <polacek@redhat.com>
5888 * opts.c (common_handle_option): Add -fsanitize=null option.
5889 Turn off -fdelete-null-pointer-checks option when doing the
5890 NULL pointer checking.
5891 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5892 * tree-pass.h (make_pass_ubsan): Declare.
5893 (make_pass_sanopt): Declare.
5894 * timevar.def (TV_TREE_UBSAN): New timevar.
5895 * passes.def: Add pass_sanopt and pass_ubsan.
5896 * ubsan.h (ubsan_null_ckind): New enum.
5897 (ubsan_mismatch_data): New struct.
5898 (ubsan_expand_null_ifn): Declare.
5899 (ubsan_create_data): Adjust declaration.
5900 (ubsan_type_descriptor): Likewise.
5901 * asan.c: Include "ubsan.h".
5902 (pass_data_sanopt): New pass.
5903 (execute_sanopt): New function.
5904 (gate_sanopt): Likewise.
5905 (make_pass_sanopt): Likewise.
5906 (class pass_sanopt): New class.
5907 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5908 gimple-iterator.h and cfgloop.h.
5909 (PROB_VERY_UNLIKELY): Define.
5910 (tree_type_map_hash): New function.
5911 (ubsan_type_descriptor): Add new parameter.
5912 Improve type name generation.
5913 (ubsan_create_data): Add new parameter. Add pointer data into
5915 (ubsan_expand_null_ifn): New function.
5916 (instrument_member_call): Likewise.
5917 (instrument_mem_ref): Likewise.
5918 (instrument_null): Likewise.
5919 (ubsan_pass): Likewise.
5920 (gate_ubsan): Likewise.
5921 (make_pass_ubsan): Likewise.
5922 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5923 (class pass_ubsan): New class.
5924 (pass_data_ubsan): New pass.
5925 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5926 * internal-fn.c (expand_UBSAN_NULL): New function.
5927 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5928 even when !flag_toplevel_reorder.
5929 * internal-fn.def (UBSAN_NULL): New.
5931 2013-11-19 Jan Hubicka <jh@suse.cz>
5933 * cgraph.c (cgraph_create_indirect_edge): Use
5934 get_polymorphic_call_info.
5935 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5936 maybe_in_construction and maybe_derived_type.
5937 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5938 (ipa_dummy_polymorphic_call_context): New global var.
5939 (possible_polymorphic_call_targets): Add context paramter.
5940 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5941 (possible_polymorphic_call_target_p): Likewise.
5942 (get_polymorphic_call_info): New function.
5943 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5944 (add_type_duplicate): Remove forgotten debug output.
5945 (method_class_type): Add sanity check.
5946 (maybe_record_node): Add FINALP parameter.
5947 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5948 by info by get_binfo_at_offset.
5949 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5950 parameters; pass them to record-binfo.
5951 (polymorphic_call_target_d): Add context and FINAL.
5952 (polymorphic_call_target_hasher::hash): Hash context.
5953 (polymorphic_call_target_hasher::equal): Compare context.
5954 (free_polymorphic_call_targets_hash):
5955 (get_class_context): New function.
5956 (contains_type_p): New function.
5957 (get_polymorphic_call_info): New function.
5958 (walk_bases): New function.
5959 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5960 (dump_possible_polymorphic_call_targets): Dump context.
5961 (possible_polymorphic_call_target_p): Add context.
5962 (update_type_inheritance_graph): Update comment.s
5963 (ipa_set_jf_known_type): Assert that compoentn type is known.
5964 (ipa_note_param_call): Do not tamper with offsets.
5965 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5967 (update_indirect_edges_after_inlining): Likewise.
5968 (ipa_write_indirect_edge_info): Stream new fields.
5969 (ipa_read_indirect_edge_info): Stream in new fields.
5971 2013-11-19 Jan Hubicka <jh@suse.cz>
5973 * tree-pretty-print.c (dump_generic_node): Print class type of
5976 2013-11-19 Joey Ye <joey.ye@arm.com>
5978 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5979 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5981 * config/arm/arm.c (arm_option_override): By default disable
5982 -marm-pic-data-is-text-relative.
5983 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5984 (arm_assemble_integer): Likewise.
5985 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5986 New macro to initialize -marm-pic-data-is-text-relative.
5988 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5990 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5991 (address_cost_data): New field.
5992 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5993 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5995 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5997 * config/aarch64/aarch64.md: Remove v8type from all insns.
5999 2013-11-19 Richard Biener <rguenther@suse.de>
6001 PR tree-optimization/57517
6002 * tree-predcom.c (combinable_refs_p): Verify the combination
6003 is always executed when the refs are.
6005 2013-11-19 Jeff Law <law@redhat.com>
6007 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6008 (copy_phi_arg_into_existing_phi): New function.
6009 (any_remaining_duplicated_blocks): Likewise.
6010 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6011 blocks on a jump threading path.
6013 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6014 thread through a joiner which has the latch edge.
6016 2013-11-19 Jan Hubicka <jh@suse.cz>
6018 * md.texi (setmem): Document new parameter.
6019 * optabs.c (maybe_gen_insn): Support 9 operands.
6020 * builtins.c (determine_block_size): Add probable_max_size;
6021 support anti-ranges.
6022 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6024 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6025 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6027 * expr.h (emit_block_move_hints, clear_storage_hints,
6028 set_storage_via_setmem): Update prototype.
6029 * i386.md (setmem, movmem patterns): Add 9th operand.
6030 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6031 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6032 argument; pass it to decide_alg.
6034 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6036 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6037 (n_basic_blocks_for_fn): ...this.
6039 (n_basic_blocks): Eliminate macro as work towards making uses of
6042 * cfgloop.c (init_loops_structure): Update for renaming of
6043 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6044 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6045 * ipa-utils.c (ipa_merge_profiles): Likewise.
6046 * lto-streamer-in.c (make_new_block): Likewise.
6047 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6048 (dump_function_to_file): Likewise.
6050 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6051 macro with "n_basic_blocks_for_fn (cfun)".
6052 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6053 (duplicate_computed_gotos): Likewise.
6054 (reorder_basic_blocks): Likewise.
6055 * bt-load.c (augment_live_range): Likewise.
6056 * cfg.c (expunge_block): Likewise.
6057 (compact_blocks): Likewise.
6058 * cfganal.c (single_pred_before_succ_order): Likewise.
6059 (compute_idf): Likewise.
6060 (flow_dfs_compute_reverse_init): Likewise.
6061 (pre_and_rev_post_order_compute): Likewise.
6062 (pre_and_rev_post_order_compute_fn): Likewise.
6063 (inverted_post_order_compute): Likewise.
6064 (post_order_compute): Likewise.
6065 (print_edge_list): Likewise.
6066 (find_unreachable_blocks): Likewise.
6067 (mark_dfs_back_edges): Likewise.
6068 * cfgcleanup.c (try_optimize_cfg): Likewise.
6069 (try_forward_edges): Likewise.
6070 * cfghooks.c (dump_flow_info): Likewise.
6071 * cfgloop.c (verify_loop_structure): Likewise.
6072 (get_loop_body): Likewise.
6073 (flow_loops_find): Likewise.
6074 * cfgloopmanip.c (add_loop): Likewise.
6075 (remove_path): Likewise.
6076 (find_path): Likewise.
6077 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6078 (rtl_verify_bb_layout): Likewise.
6079 (entry_of_function): Likewise.
6080 (rtl_create_basic_block): Likewise.
6081 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6082 * cprop.c (one_cprop_pass): Likewise.
6083 (is_too_expensive): Likewise.
6084 * df-core.c (df_compute_cfg_image): Likewise.
6085 (df_compact_blocks): Likewise.
6086 (df_worklist_dataflow_doublequeue): Likewise.
6087 * dominance.c (calculate_dominance_info): Likewise.
6088 (calc_dfs_tree): Likewise.
6089 (calc_dfs_tree_nonrec): Likewise.
6090 (init_dom_info): Likewise.
6091 * domwalk.c (cmp_bb_postorder): Likewise.
6092 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6093 (generate_setjmp_warnings): Likewise.
6094 * fwprop.c (build_single_def_use_links): Likewise.
6095 * gcse.c (is_too_expensive): Likewise.
6096 (one_code_hoisting_pass): Likewise.
6097 (one_pre_gcse_pass): Likewise.
6098 * graphite.c (graphite_initialize): Likewise.
6099 * haifa-sched.c (haifa_sched_init): Likewise.
6100 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6101 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6102 * ira-build.c (ira_build): Likewise.
6103 * lcm.c (compute_nearerout): Likewise.
6104 (compute_available): Likewise.
6105 (compute_laterin): Likewise.
6106 (compute_antinout_edge): Likewise.
6107 * lra-lives.c (lra_create_live_ranges): Likewise.
6108 * lra.c (has_nonexceptional_receiver): Likewise.
6109 * mcf.c (create_fixup_graph): Likewise.
6110 * profile.c (branch_prob): Likewise.
6111 * reg-stack.c (convert_regs_2): Likewise.
6112 * regrename.c (regrename_analyze): Likewise.
6113 * reload1.c (has_nonexceptional_receiver): Likewise.
6114 * reorg.c (dbr_schedule): Likewise.
6115 * sched-deps.c (sched_deps_init): Likewise.
6116 * sched-ebb.c (schedule_ebbs): Likewise.
6117 * sched-rgn.c (extend_regions): Likewise.
6118 (schedule_insns): Likewise.
6119 (sched_rgn_init): Likewise.
6120 (extend_rgns): Likewise.
6121 (haifa_find_rgns): Likewise.
6122 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6123 (sel_recompute_toporder): Likewise.
6124 * sel-sched.c (run_selective_scheduling): Likewise.
6125 * store-motion.c (one_store_motion_pass): Likewise.
6126 (remove_reachable_equiv_notes): Likewise.
6127 * tracer.c (tracer): Likewise.
6128 (tail_duplicate): Likewise.
6129 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6130 (dump_cfg_stats): Likewise.
6131 (gimple_dump_cfg): Likewise.
6132 (create_bb): Likewise.
6133 (build_gimple_cfg): Likewise.
6134 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6135 * tree-inline.c (optimize_inline_calls): Likewise.
6136 (fold_marked_statements): Likewise.
6137 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6138 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6139 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6140 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6141 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6142 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6143 * tree-ssa-pre.c (do_pre): Likewise.
6144 (init_pre): Likewise.
6145 (compute_avail): Likewise.
6146 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6147 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6148 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6149 (init_worklist): Likewise.
6150 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6151 * var-tracking.c (variable_tracking_main_1): Likewise.
6152 (vt_find_locations): Likewise.
6153 (vt_stack_adjustments): Likewise.
6154 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6155 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6157 2013-11-18 Jan Hubicka <jh@suse.cz>
6159 * profile.c (compute_branch_probabilities): Do not sanity check
6162 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6164 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6166 * fold-const.c (fold_single_bit_test_into_sign_test)
6167 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6169 2013-11-18 Teresa Johnson <tejohnson@google.com>
6171 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6172 cfglayout after bb reordering.
6173 * passes.def: Move compgotos before bb reordering since it goes into
6176 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6178 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6179 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6181 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6182 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6183 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6184 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6185 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6186 Remove all_lto_gen_passes.
6187 * passes.c (pass_manager::dump_passes): Remove its use.
6188 (pass_manager::register_pass): Likewise.
6189 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6190 (pass_manager::pass_manager): Don't initialize or use it.
6191 (write_lto): New static function.
6192 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6193 instead of using all_lto_gen_passes.
6194 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6195 pass_ipa_lto_finish_out): Delete.
6196 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6197 make_pass_ipa_lto_finish_out): Don't declare.
6199 2013-11-18 Jeff Law <law@redhat.com>
6201 * tree-ssa-threadupdate.c (redirection_data): Record two
6202 duplicated blocks instead of just one.
6203 (local_info): Explain why we don't create a template for the
6204 second duplicated block in a thread path.
6205 (create_block_for_threading): Accept argument indicating array
6206 index into redirection_data to store its result.
6207 (lookup_redirection_data): Initialize both duplicate blocks.
6208 (ssa_create_duplicates): If a jump threading path needs multiple
6209 blocks duplicated, then duplicate them.
6210 (ssa_fix_duplicate_block_edges): Corresponding changes.
6211 (ssa_fixup_template_block, thread_single_edge): Likewise.
6213 2013-11-18 Marek Polacek <polacek@redhat.com>
6215 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6217 2013-11-18 Andrew Pinski <apinski@cavium.com>
6218 Steve Ellcey <sellcey@mips.com>
6221 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6222 type restriction from equality_operator on conditonal move.
6223 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6224 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6226 2013-11-18 Jeff Law <law@redhat.com>
6228 * tree-ssa-threadupdate.c: Fix file block comment.
6229 Fix minor indention issue.
6231 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6233 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6234 ix86_address_subreg_operand. Move subreg checks to
6235 ix86_validate_address_register. Move address override check to
6236 ix86_legitimate_address_p.
6237 (ix86_validate_address_register): New function.
6238 (ix86_legitimate_address_p): Call ix86_validate_address_register
6239 to validate base and index registers. Add address override check
6240 from ix86_decompose_address.
6241 (ix86_decompose_address): Remove.
6243 2013-11-18 Richard Biener <rguenther@suse.de>
6245 PR tree-optimization/59125
6246 PR tree-optimization/54570
6247 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6248 is not complete do not treat component-references with offset zero
6249 but different fields as equal.
6250 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6251 (compute_object_sizes): Apply TLC. Propagate the constant
6252 results into all uses and fold their stmts.
6253 * passes.def (pass_all_optimizations): Move pass_object_sizes
6254 after the first pass_forwprop and before pass_fre.
6256 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6258 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6259 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6260 (tree_ctz): Remove cast to unsigned type.
6261 * builtins.c (fold_builtin_memory_op): Likewise.
6262 * dwarf2out.c (descr_info_loc): Likewise.
6263 * godump.c (go_output_typedef): Likewise.
6264 * omp-low.c (expand_omp_simd): Likewise.
6265 * stor-layout.c (excess_unit_span): Likewise.
6266 * tree-object-size.c (addr_object_size): Likewise.
6267 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6268 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6269 (simplify_rotate): Likewise.
6270 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6271 (handle_pointer_plus): Likewise.
6272 * tree-switch-conversion.c (check_range): Likewise.
6273 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6274 * tsan.c (instrument_builtin_call): Likewise.
6275 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6276 * trans-mem.c (tm_log_add): Likewise.
6277 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6278 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6279 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6280 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6282 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6284 * tree.h (host_integerp, tree_low_cst): Delete.
6285 * tree.c (host_integerp, tree_low_cst): Delete.
6287 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6289 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6291 * fold-const.c (fold_binary_loc): Likewise.
6292 * expr.c (store_constructor): Use tree_to_uhwi rather than
6294 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6295 * stmt.c (emit_case_dispatch_table): Likewise.
6296 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6298 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6300 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6301 config/aarch64/aarch64.c, config/alpha/predicates.md,
6302 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6303 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6304 config/mep/mep-pragma.c, config/mips/mips.c,
6305 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6306 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6307 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6308 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6309 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6310 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6311 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6312 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6313 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6314 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6316 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6318 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6319 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6320 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6321 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6322 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6323 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6324 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6325 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6326 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6327 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6328 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6330 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6332 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6333 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6335 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6337 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6340 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6342 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6343 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6344 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6345 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6346 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6347 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6348 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6349 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6350 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6351 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6352 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6353 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6354 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6355 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6356 tree_fits_uhwi_p throughout.
6358 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6360 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6361 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6362 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6363 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6364 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6365 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6366 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6367 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6368 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6369 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6370 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6371 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6372 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6375 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6377 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6378 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6380 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6382 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6383 flag if it kills its address, not its post-increment.
6385 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6387 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6388 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6389 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6390 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6391 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6392 (gimple_call_with_bounds_p): New.
6393 (gimple_call_set_with_bounds): New.
6394 (gimple_call_num_nobnd_args): Remove.
6395 (gimple_call_nobnd_arg): Remove.
6396 * tree.h (CALL_WITH_BOUNDS_P): New.
6397 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6399 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6401 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6402 (symtab_node_name): Rename to symtab_node::name.
6403 (cgraph_node_asm_name): Remove.
6404 (varpool_node_asm_name): Remove.
6405 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6406 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6407 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6408 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6409 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6411 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6413 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6414 * config/arm/arm.c (arm_cortex_a53_tune): New.
6415 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6417 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6419 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6420 (case ${target}): Add bdver4.
6421 * config/i386/bdver3.md: Add bdver4.
6422 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6423 -march=native recognize bdver4 processors.
6424 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6425 bdver4 def_and_undef
6426 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6427 (m_BDVER4): New definition.
6428 (m_AMD_MULTIPLE): Includes m_BDVER4.
6429 (processor_target_table): Add bdver4 entry.
6430 (static const char *const cpu_names): Add bdver4 entry.
6431 (software_prefetching_beneficial_p): Add bdver3.
6432 (ix86_option_override_internal): Add bdver4 instruction sets.
6433 (ix86_issue_rate): Add bdver4.
6434 (ix86_adjust_cost): Add bdver4.
6435 (ia32_multipass_dfa_lookahead): Add bdver4.
6436 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6437 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6438 (has_dispatch): Add bdver4.
6439 * config/i386/i386.h (TARGET_BDVER4): New definition.
6440 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6441 (enum processor_type): Add PROCESSOR_BDVER4.
6442 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6443 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6444 * doc/extend.texi: Add details about bdver4.
6445 * doc/invoke.texi: Add details about bdver4. Add
6446 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6448 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6450 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6451 sdmode_stack_slot also in little-endian mode.
6453 2013-11-17 Jan Hubicka <jh@suse.cz>
6455 * doc/md.texi (setmem, movstr): Update documentation.
6456 * builtins.c (determine_block_size): New function.
6457 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6458 (expand_builtin_memset_args): Use it and pass it to
6459 set_storage_via_setmem.
6460 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6461 parameters; update call to expander.
6462 (emit_block_move_hints): Add min_size/max_size parameters.
6463 (clear_storage_hints): Likewise.
6464 (set_storage_via_setmem): Likewise.
6465 (clear_storage): Update.
6466 * expr.h (emit_block_move_hints, clear_storage_hints,
6467 set_storage_via_setmem): Update prototypes.
6468 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6469 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6470 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6471 * i386.md (movmem, setmem): Pass parameters.
6473 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6476 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6477 reject non-integer subregs.
6478 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6479 Move check for invalid x32 constant addresses ...
6480 (ix86_legitimate_address_p): ... here.
6482 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6484 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6485 parameter and use it in REG_FRAME_RELATED_EXPR note.
6486 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6488 (rs6000_emit_prologue): Likewise, but for little endian VSX
6489 stores, pass the source register of the store instead.
6491 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6493 * gimple.h: Reorder prototypes to match .c declaration order, and
6494 remove protyotypes for functions not in gimple.c.
6495 (LABEL): Move to tree-into-ssa.c.
6496 * gimple.c: Remove unused prototypes.
6497 (get_base_address): Move to tree.c.
6498 * tree.c (get_base_address): Relocate from gimple.c.
6499 * builtins.h (validate_gimple_arglist): Add prototype.
6500 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6501 * cfgexpand.h: New File.
6502 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6503 * tree.h (build_addr): Move to tree-nested.h.
6504 * tree-nested.h: New File.
6505 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6507 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6508 * ipa-inline-analysis.c: Include cfgexpand.h.
6509 * cgraphunit.c: Include tree-nested.h.
6510 * omp-low.c: Likewise.
6511 * tree-parloops.c: Likewise.
6512 * gimple-low.h: Likewise.
6513 * tree-profile.h: Likewise.
6514 * expr.c: Include cfgexpand.h.
6515 * tree-affine.c: Likewise.
6516 * tree-ssa.c: Likewise.
6517 * tree-ssa-loop-im.c: Include trans-mem.h.
6518 * tree-ssa-tail-merge.c: Likewise.
6519 * value-prof.c: Include builtins.h and tree-nested.h.
6520 * tree-into-ssa.c (LABEL): Define here.
6522 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6524 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6525 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6526 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6527 (make_pass_arc_predicate_delay_insns): New function.
6528 (arc_init): Register pass_arc_predicate_delay_insns if
6529 flag_delayed_branch is active.
6531 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6533 * config/arc/constraints.md (Rcq): Simplify register number test.
6535 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6537 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6539 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6541 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6544 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6546 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6547 * gimple-pretty-print.c (dump_omp_for): Add case for
6548 GF_OMP_FOR_KIND_CILKSIMD.
6549 * gimple.h (enum gf_mask): Restructure entries to add
6550 GF_OMP_FOR_KIND_CILKSIMD.
6551 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6552 (gimplify_omp_for): Handle CILK_SIMD.
6553 (gimplify_expr): Add ccase for CILK_SIMD.
6554 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6555 (build_outer_var_ref): Same.
6556 (check_omp_nesting_restrictions): Same.
6557 (lower_rec_input_clauses): Same.
6558 (lower_lastprivate_clauses): Same.
6559 (expand_omp_for): Same.
6560 (execute_expand_omp): Check flag_enable_cilkplus.
6561 (execute_lower_omp): Same.
6562 (diagnose_sb_0): Handle CILK_SIMD.
6563 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6564 (setjmp_or_longjmp_p): New.
6565 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6566 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6567 * tree.def: Add tree code for CILK_SIMD.
6569 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6571 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6573 (altivec_vperm_<mode>): Revert earlier little endian change.
6574 (*altivec_vperm_<mode>_internal): Remove.
6575 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6576 (*altivec_vperm_<mode>_uns_internal): Remove.
6577 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6579 2013-11-15 Jeff Law <law@redhat.com>
6581 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6582 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6583 * gimple-ssa-isolate-paths.c
6584 (find_implicit_erroneous_behaviour): Corresponding changes.
6585 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6586 (find_explicit_erroneous_behaviour): Likewise.
6588 2013-11-15 Jeff Law <law@redhat.com>
6590 * ifcvt.c (find_cond_trap): Properly handle case where
6593 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6595 * configure: Regenerate.
6597 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6599 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6600 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6601 where it is incorrect or missing.
6603 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6605 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6607 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6608 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6610 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6611 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6612 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6614 2013-11-15 Richard Biener <rguenther@suse.de>
6616 PR tree-optimization/50262
6617 * tree-ssa-alias.h (struct pt_solution): Split
6618 vars_contains_global into vars_contains_nonlocal,
6619 vars_contains_escaped and vars_contains_escaped_heap.
6620 * tree-ssa-structalias.c (label_visit): Expand comment.
6621 (handle_lhs_call): Adjust comment.
6622 (set_uids_in_ptset): Set the new flags appropriately.
6623 (pt_solution_set): Adjust.
6624 (pt_solution_set_var): Likewise.
6625 (pt_solution_ior_into): Likewise.
6626 (pt_solution_includes_global): Likewise.
6627 (pt_solutions_intersect_1): Optimize escaped handling.
6628 (compute_points_to_sets): Remove heap variable globalization.
6629 (ipa_escaped_pt): Adjust initializer.
6630 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6631 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6632 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6634 2013-11-15 Richard Biener <rguenther@suse.de>
6636 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6637 to distribute all stores.
6639 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6641 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6643 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6645 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6646 * configure.ac: Determine target_header_dir earlier.
6647 (--with-glibc-version): New configure option.
6648 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6649 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6650 * configure: Regenerate.
6651 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6652 native toolchains for default.
6653 (--with-glibc-version): Document.
6655 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6657 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6659 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6661 * lto-streamer-in.c (input function): Call cgraph_create_node if
6662 cgraph_get_node failed.
6664 2013-11-14 Olivier Hainque <hainque@adacore.com>
6666 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6667 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6668 small. Factorize size threshold computation from the existing one.
6669 (expand_used_vars): Refine comment.
6671 2013-11-14 Cong Hou <congh@google.com>
6673 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6674 address field as it can be obtained from dr. Rename the struct.
6675 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6676 steps of data references during sort.
6677 (vect_prune_runtime_alias_test_list): Adjust with the change to
6678 struct dr_with_seg_len.
6679 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6680 Adjust with the change to struct dr_with_seg_len.
6682 2013-11-14 Jeff Law <law@redhat.com>
6685 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6686 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6687 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6688 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6689 edges, then ignore it. If the statement exhibiting erroneous
6690 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6691 then we can not optimize.
6692 (find_explicit_erroneous_behaviour): Likewise.
6694 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6696 * gimplify-me.h: New file. Add prototypes.
6697 * gimplify.h: Don't include gimple.h.
6698 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6699 Relocate from gimple.h.
6700 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6701 is_gimple_sizepos): Move to gimplify.h.
6702 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6703 (enum gsi_iterator_update): Move to gimple-iterator.h.
6704 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6705 * gimplify-me.c: New File.
6706 (force_gimple_operand_1, force_gimple_operand,
6707 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6708 gimple_regimplify_operands): Relocate from gimplify.c.
6709 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6710 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6711 gimple_regimplify_operands): Move to gimplify-me.c.
6712 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6714 * Makefile.in (OBJS): Add gimplify-me.o
6715 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6717 * cfgloopmanip.c: Likewise.
6718 * cgraphunit.c: Likewise.
6719 * cilk-common.c: Likewise.
6720 * fold-const.c: Likewise.
6721 * function.c: Likewise.
6722 * gimple-expr.c: Likewise.
6723 * gimple-fold.c: Likewise.
6724 * gimple-ssa-strength-reduction.c: Likewise.
6725 * gimple.c: Likewise.
6726 * graphite-clast-to-gimple.c: Likewise.
6727 * graphite-sese-to-poly.c: Likewise.
6728 * ipa-prop.c: Likewise.
6729 * ipa-split.c: Likewise.
6731 * langhooks.c: Likewise.
6732 * omp-low.c: Likewise.
6734 * stor-layout.c: Likewise.
6735 * targhooks.c: Likewise.
6736 * trans-mem.c: Likewise.
6737 * tree-affine.c: Likewise.
6738 * tree-cfg.c: Likewise.
6739 * tree-cfgcleanup.c: Likewise.
6740 * tree-complex.c: Likewise.
6741 * tree-if-conv.c: Likewise.
6742 * tree-inline.c: Likewise.
6743 * tree-loop-distribution.c: Likewise.
6744 * tree-nested.c: Likewise.
6745 * tree-parloops.c: Likewise.
6746 * tree-predcom.c: Likewise.
6747 * tree-profile.c: Likewise.
6748 * tree-scalar-evolution.c: Likewise.
6749 * tree-sra.c: Likewise.
6750 * tree-ssa-address.c: Likewise.
6751 * tree-ssa-ccp.c: Likewise.
6752 * tree-ssa-dce.c: Likewise.
6753 * tree-ssa-forwprop.c: Likewise.
6754 * tree-ssa-ifcombine.c: Likewise.
6755 * tree-ssa-loop-im.c: Likewise.
6756 * tree-ssa-loop-ivopts.c: Likewise.
6757 * tree-ssa-loop-manip.c: Likewise.
6758 * tree-ssa-loop-niter.c: Likewise.
6759 * tree-ssa-loop-prefetch.c: Likewise.
6760 * tree-ssa-loop-unswitch.c: Likewise.
6761 * tree-ssa-math-opts.c: Likewise.
6762 * tree-ssa-phiopt.c: Likewise.
6763 * tree-ssa-phiprop.c: Likewise.
6764 * tree-ssa-pre.c: Likewise.
6765 * tree-ssa-propagate.c: Likewise.
6766 * tree-ssa-reassoc.c: Likewise.
6767 * tree-ssa-sccvn.c: Likewise.
6768 * tree-ssa-strlen.c: Likewise.
6769 * tree-ssa.c: Likewise.
6770 * tree-switch-conversion.c: Likewise.
6771 * tree-tailcall.c: Likewise.
6772 * tree-vect-data-refs.c: Likewise.
6773 * tree-vect-generic.c: Likewise.
6774 * tree-vect-loop-manip.c: Likewise.
6775 * tree-vect-loop.c: Likewise.
6776 * tree-vect-patterns.c: Likewise.
6777 * tree-vect-stmts.c: Likewise.
6780 * value-prof.c: Likewise.
6781 * config/aarch64/aarch64.c: Likewise.
6782 * config/alpha/alpha.c: Likewise.
6783 * config/darwin.c: Likewise.
6784 * config/i386/i386.c: Likewise.
6785 * config/ia64/ia64.c: Likewise.
6786 * config/mep/mep.c: Likewise.
6787 * config/mips/mips.c: Likewise.
6788 * config/rs6000/rs6000.c: Likewise.
6789 * config/s390/s390.c: Likewise.
6790 * config/sh/sh.c: Likewise.
6791 * config/sparc/sparc.c: Likewise.
6792 * config/spu/spu.c: Likewise.
6793 * config/stormy16/stormy16.c: Likewise.
6794 * config/tilegx/tilegx.c: Likewise.
6795 * config/tilepro/tilepro.c: Likewise.
6796 * config/xtensa/xtensa.c: Likewise.
6798 2013-11-14 Diego Novillo <dnovillo@google.com>
6800 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6802 2013-11-14 Diego Novillo <dnovillo@google.com>
6804 * tree.h: Include fold-const.h.
6805 (aggregate_value_p): Moved to function.h.
6806 (alloca_call_p): Moved to calls.h.
6807 (allocate_struct_function): Moved to function.h.
6808 (apply_tm_attr): Moved to attribs.h.
6809 (array_at_struct_end_p): Moved to expr.h.
6810 (array_ref_element_size): Moved to tree-dfa.h.
6811 (array_ref_low_bound): Moved to tree-dfa.h.
6812 (array_ref_up_bound): Moved to tree.h.
6813 (assemble_alias): Moved to cgraph.h.
6814 (bit_from_pos): Moved to stor-layout.h.
6815 (build_addr): Moved to tree-nested.h.
6816 (build_duplicate_type): Moved to tree-inline.h.
6817 (build_fold_addr_expr): Moved to fold-const.h.
6818 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6819 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6820 (build_fold_indirect_ref): Moved to fold-const.h.
6821 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6822 (build_personality_function): Moved to tree.h.
6823 (build_range_check): Moved to fold-const.h.
6824 (build_simple_mem_ref): Moved to fold-const.h.
6825 (build_simple_mem_ref_loc): Moved to fold-const.h.
6826 (build_tm_abort_call): Moved to trans-mem.h.
6827 (byte_from_pos): Moved to stor-layout.h.
6828 (call_expr_flags): Moved to calls.h.
6829 (can_move_by_pieces): Moved to expr.h.
6830 (categorize_ctor_elements): Moved to expr.h.
6831 (change_decl_assembler_name): Moved to gcc-symtab.h.
6832 (combine_comparisons): Moved to fold-const.h.
6833 (complete_ctor_at_level_p): Moved to tree.h.
6834 (component_ref_field_offset): Moved to tree-dfa.h.
6835 (compute_builtin_object_size): Moved to tree-object-size.h.
6836 (compute_record_mode): Moved to stor-layout.h.
6837 (constant_boolean_node): Moved to fold-const.h.
6838 (constructor_static_from_elts_p): Moved to varasm.h.
6839 (cxx11_attribute_p): Moved to attribs.h.
6840 (debug_body): Moved to print-tree.h.
6841 (debug_find_tree): Moved to tree-inline.h.
6842 (debug_fold_checksum): Moved to fold-const.h.
6843 (debug_head): Moved to print-tree.h.
6844 (debug_head): Moved to print-tree.h.
6845 (debug_raw): Moved to print-tree.h.
6846 (debug_tree): Moved to print-tree.h.
6847 (debug_vec_tree): Moved to print-tree.h.
6848 (debug_verbose): Moved to print-tree.h.
6849 (debug_verbose): Moved to print-tree.h.
6850 (decl_attributes): Moved to attribs.h.
6851 (decl_binds_to_current_def_p): Moved to varasm.h.
6852 (decl_default_tls_model): Moved to varasm.h.
6853 (decl_replaceable_p): Moved to varasm.h.
6854 (div_if_zero_remainder): Moved to fold-const.h.
6855 (double_int mem_ref_offset): Moved to fold-const.h.
6856 (dump_addr): Moved to print-tree.h.
6857 (element_precision): Moved to machmode.h.
6858 (expand_dummy_function_end): Moved to function.h.
6859 (expand_function_end): Moved to function.h.
6860 (expand_function_start): Moved to function.h.
6861 (expand_label): Moved to stmt.h.
6862 (expr_first): Moved to tree-iterator.h.
6863 (expr_last): Moved to tree-iterator.h.
6864 (finalize_size_functions): Moved to stor-layout.h.
6865 (finish_builtin_struct): Moved to stor-layout.h.
6866 (finish_record_layout): Moved to stor-layout.h.
6867 (fixup_signed_type): Moved to stor-layout.h.
6868 (fixup_unsigned_type): Moved to stor-layout.h.
6869 (flags_from_decl_or_type): Moved to calls.h.
6870 (fold): Moved to fold-const.h.
6871 (fold_abs_const): Moved to fold-const.h.
6872 (fold_binary): Moved to fold-const.h.
6873 (fold_binary_loc): Moved to fold-const.h.
6874 (fold_binary_to_constant): Moved to fold-const.h.
6875 (fold_build1): Moved to fold-const.h.
6876 (fold_build1_initializer_loc): Moved to fold-const.h.
6877 (fold_build1_loc): Moved to fold-const.h.
6878 (fold_build1_stat_loc): Moved to fold-const.h.
6879 (fold_build2): Moved to fold-const.h.
6880 (fold_build2_initializer_loc): Moved to fold-const.h.
6881 (fold_build2_loc): Moved to fold-const.h.
6882 (fold_build2_stat_loc): Moved to fold-const.h.
6883 (fold_build3): Moved to fold-const.h.
6884 (fold_build3_loc): Moved to fold-const.h.
6885 (fold_build3_stat_loc): Moved to fold-const.h.
6886 (fold_build_call_array): Moved to fold-const.h.
6887 (fold_build_call_array_initializer): Moved to fold-const.h.
6888 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6889 (fold_build_call_array_loc): Moved to fold-const.h.
6890 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6891 (fold_convert): Moved to fold-const.h.
6892 (fold_convert_loc): Moved to fold-const.h.
6893 (fold_convertible_p): Moved to fold-const.h.
6894 (fold_defer_overflow_warnings): Moved to fold-const.h.
6895 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6896 (fold_fma): Moved to fold-const.h.
6897 (fold_ignored_result): Moved to fold-const.h.
6898 (fold_indirect_ref): Moved to fold-const.h.
6899 (fold_indirect_ref_1): Moved to fold-const.h.
6900 (fold_indirect_ref_loc): Moved to fold-const.h.
6901 (fold_read_from_constant_string): Moved to fold-const.h.
6902 (fold_real_zero_addition_p): Moved to fold-const.h.
6903 (fold_single_bit_test): Moved to fold-const.h.
6904 (fold_strip_sign_ops): Moved to fold-const.h.
6905 (fold_ternary): Moved to fold-const.h.
6906 (fold_ternary_loc): Moved to fold-const.h.
6907 (fold_unary): Moved to tree-data-ref.h.
6908 (fold_unary_ignore_overflow): Moved to fold-const.h.
6909 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6910 (fold_unary_loc): Moved to fold-const.h.
6911 (fold_unary_to_constant): Moved to fold-const.h.
6912 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6913 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6914 (folding_initializer): Moved to fold-const.h.
6915 (free_temp_slots): Moved to function.h.
6916 (generate_setjmp_warnings): Moved to function.h.
6917 (get_attribute_name): Moved to attribs.h.
6918 (get_identifier): Moved to stringpool.h.
6919 (get_identifier_with_length): Moved to stringpool.h.
6920 (get_inner_reference): Moved to tree.h.
6921 (gimple_alloca_call_p): Moved to calls.h.
6922 (gimplify_parameters): Moved to function.h.
6923 (highest_pow2_factor): Moved to expr.h.
6924 (indent_to): Moved to print-tree.h.
6925 (init_attributes): Moved to attribs.h.
6926 (init_dummy_function_start): Moved to function.h.
6927 (init_function_start): Moved to function.h.
6928 (init_inline_once): Moved to tree-inline.h.
6929 (init_object_sizes): Moved to tree-object-size.h.
6930 (init_temp_slots): Moved to function.h.
6931 (init_tree_optimization_optabs): Moved to optabs.h.
6932 (initialize_sizetypes): Moved to stor-layout.h.
6933 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6934 (initializer_constant_valid_p): Moved to varasm.h.
6935 (int_const_binop): Moved to fold-const.h.
6936 (internal_reference_types): Moved to stor-layout.h.
6937 (invert_tree_comparison): Moved to fold-const.h.
6938 (invert_truthvalue): Moved to fold-const.h.
6939 (invert_truthvalue_loc): Moved to fold-const.h.
6940 (is_tm_ending_fndecl): Moved to trans-mem.h.
6941 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6942 (is_tm_pure): Moved to trans-mem.h.
6943 (is_tm_safe): Moved to trans-mem.h.
6944 (layout_decl): Moved to stor-layout.h.
6945 (layout_type): Moved to stor-layout.h.
6946 (lookup_attribute_spec): Moved to attribs.h.
6947 (make_accum_type): Moved to stor-layout.h.
6948 (make_decl_one_only): Moved to varasm.h.
6949 (make_decl_rtl): Moved to tree.h.
6950 (make_decl_rtl_for_debug): Moved to varasm.h.
6951 (make_fract_type): Moved to stor-layout.h.
6952 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6953 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6954 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6955 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6956 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6957 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6958 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6959 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6960 (make_range): Moved to fold-const.h.
6961 (make_range_step): Moved to fold-const.h.
6962 (make_sat_signed_accum_type): Moved to stor-layout.h.
6963 (make_sat_signed_fract_type): Moved to stor-layout.h.
6964 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6965 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6966 (make_signed_accum_type): Moved to stor-layout.h.
6967 (make_signed_fract_type): Moved to stor-layout.h.
6968 (make_signed_type): Moved to stor-layout.h.
6969 (make_unsigned_accum_type): Moved to stor-layout.h.
6970 (make_unsigned_fract_type): Moved to stor-layout.h.
6971 (make_unsigned_type): Moved to stor-layout.h.
6972 (mark_decl_referenced): Moved to varasm.h.
6973 (mark_referenced): Moved to varasm.h.
6974 (may_negate_without_overflow_p): Moved to fold-const.h.
6975 (maybe_get_identifier): Moved to stringpool.h.
6976 (merge_ranges): Moved to fold-const.h.
6977 (merge_weak): Moved to varasm.h.
6978 (mode_for_size_tree): Moved to stor-layout.h.
6979 (multiple_of_p): Moved to fold-const.h.
6980 (must_pass_in_stack_var_size): Moved to calls.h.
6981 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6982 (native_encode_expr): Moved to fold-const.h.
6983 (native_interpret_expr): Moved to fold-const.h.
6984 (non_lvalue): Moved to fold-const.h.
6985 (non_lvalue_loc): Moved to fold-const.h.
6986 (normalize_offset): Moved to stor-layout.h.
6987 (normalize_rli): Moved to stor-layout.h.
6988 (notice_global_symbol): Moved to varasm.h.
6989 (omit_one_operand): Moved to fold-const.h.
6990 (omit_one_operand_loc): Moved to fold-const.h.
6991 (omit_two_operands): Moved to fold-const.h.
6992 (omit_two_operands_loc): Moved to fold-const.h.
6993 (operand_equal_p): Moved to tree-data-ref.h.
6994 (parse_input_constraint): Moved to stmt.h.
6995 (parse_output_constraint): Moved to stmt.h.
6996 (place_field): Moved to stor-layout.h.
6997 (pop_function_context): Moved to function.h.
6998 (pop_temp_slots): Moved to function.h.
6999 (pos_from_bit): Moved to stor-layout.h.
7000 (preserve_temp_slots): Moved to function.h.
7001 (print_node): Moved to print-tree.h.
7002 (print_node_brief): Moved to print-tree.h.
7003 (print_rtl): Moved to rtl.h.
7004 (process_pending_assemble_externals): Moved to varasm.h.
7005 (ptr_difference_const): Moved to fold-const.h.
7006 (push_function_context): Moved to function.h.
7007 (push_struct_function): Moved to function.h.
7008 (push_temp_slots): Moved to function.h.
7009 (record_tm_replacement): Moved to trans-mem.h.
7010 (relayout_decl): Moved to stor-layout.h.
7011 (resolve_asm_operand_names): Moved to stmt.h.
7012 (resolve_unique_section): Moved to varasm.h.
7013 (rli_size_so_far): Moved to stor-layout.h.
7014 (rli_size_unit_so_far): Moved to stor-layout.h.
7015 (round_down): Moved to fold-const.h.
7016 (round_down_loc): Moved to fold-const.h.
7017 (round_up): Moved to fold-const.h.
7018 (round_up_loc): Moved to fold-const.h.
7019 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7020 (set_decl_rtl): Moved to tree.h.
7021 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7022 (set_user_assembler_name): Moved to varasm.h.
7023 (setjmp_call_p): Moved to calls.h.
7024 (size_binop): Moved to fold-const.h.
7025 (size_binop_loc): Moved to fold-const.h.
7026 (size_diffop): Moved to fold-const.h.
7027 (size_diffop_loc): Moved to fold-const.h.
7028 (size_int_kind): Moved to fold-const.h.
7029 (stack_protect_epilogue): Moved to function.h.
7030 (start_record_layout): Moved to stor-layout.h.
7031 (supports_one_only): Moved to varasm.h.
7032 (swap_tree_comparison): Moved to fold-const.h.
7033 (tm_malloc_replacement): Moved to trans-mem.h.
7034 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7035 (tree build_invariant_address): Moved to fold-const.h.
7036 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7037 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7038 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7039 (tree_expr_nonnegative_p): Moved to fold-const.h.
7040 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7041 (tree_output_constant_def): Moved to varasm.h.
7042 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7043 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7044 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7045 (tree_swap_operands_p): Moved to fold-const.h.
7046 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7047 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7048 (update_alignment_for_field): Moved to stor-layout.h.
7049 (use_register_for_decl): Moved to function.h.
7050 (variable_size): Moved to rtl.h.
7051 (vector_type_mode): Moved to stor-layout.h.
7052 * cgraph.h: Corresponding changes.
7053 * emit-rtl.h: Corresponding changes.
7054 * expr.h: Corresponding changes.
7055 * function.h: Corresponding changes.
7056 * optabs.h: Corresponding changes.
7057 * trans-mem.h: Corresponding changes.
7058 Protect against multiple inclusion.
7059 * tree-inline.h: Corresponding changes.
7060 * tree-iterator.h: Corresponding changes.
7061 * tree-dfa.h: Include expr.h.
7062 * tree-ssanames.h: Include stringpool.h.
7063 * attribs.h: New file.
7064 * calls.h: New file.
7065 * fold-const.h: New file.
7066 * gcc-symtab.h: New file.
7067 * print-rtl.h: New file.
7068 * print-tree.h: New file.
7070 * stor-layout.h: New file.
7071 * strinpool.h: New file.
7072 * tree-nested.h: New file
7073 * tree-object-size.h: New file.
7074 * varasm.h: New file.
7076 2013-11-14 Diego Novillo <dnovillo@google.com>
7078 * alias.c: Include varasm.h.
7080 * asan.c: Include calls.h.
7081 Include stor-layout.h.
7083 * attribs.c: Include stringpool.h.
7085 Include stor-layout.h.
7086 * builtins.c: Include stringpool.h.
7087 Include stor-layout.h.
7090 Include tree-object-size.h.
7091 * calls.c: Include stor-layout.h.
7093 Include stringpool.h.
7095 * cfgexpand.c: Include stringpool.h.
7097 Include stor-layout.h.
7099 Include print-tree.h.
7100 * cgraph.c: Include varasm.h.
7102 Include print-tree.h.
7103 * cgraphclones.c: Include stringpool.h.
7106 Move inclusion of rtl.h earlier in the file.
7107 * cgraphunit.c: Include varasm.h.
7108 Include stor-layout.h.
7109 Include stringpool.h.
7110 * cilk-common.c: Include stringpool.h.
7111 Include stor-layout.h.
7112 * combine.c: Include stor-layout.h.
7113 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7114 Include stringpool.h.
7116 * config/aarch64/aarch64.c: Include stringpool.h.
7117 Include stor-layout.h.
7120 * config/alpha/alpha.c: Include stor-layout.h.
7123 * config/arc/arc.c: Include varasm.h.
7124 Include stor-layout.h.
7125 Include stringpool.h.
7127 * config/arm/arm.c: Include stringpool.h.
7128 Include stor-layout.h.
7131 * config/avr/avr-c.c: Include stor-layout.h.
7132 * config/avr/avr-log.c: Include print-tree.h.
7133 * config/avr/avr.c: Include print-tree.h.
7135 Include stor-layout.h.
7136 Include stringpool.h.
7137 * config/bfin/bfin.c: Include varasm.h.
7139 * config/c6x/c6x.c: Include stor-layout.h.
7142 Include stringpool.h.
7143 * config/cr16/cr16.c: Include stor-layout.h.
7145 * config/cris/cris.c: Include varasm.h.
7146 Include stor-layout.h.
7149 * config/darwin.c: Include stringpool.h.
7151 Include stor-layout.h.
7152 * config/epiphany/epiphany.c: Include stor-layout.h.
7155 Include stringpool.h.
7156 * config/fr30/fr30.c: Include stor-layout.h.
7158 * config/frv/frv.c: Include varasm.h.
7159 Include stor-layout.h.
7160 Include stringpool.h.
7161 * config/h8300/h8300.c: Include stor-layout.h.
7164 Include stringpool.h.
7165 * config/i386/i386.c: Include stringpool.h.
7168 Include stor-layout.h.
7170 * config/i386/winnt-cxx.c: Include stringpool.h.
7172 * config/i386/winnt.c: Include stringpool.h.
7174 * config/ia64/ia64-c.c: Include stringpool.h.
7175 * config/ia64/ia64.c: Include stringpool.h.
7176 Include stor-layout.h.
7179 * config/iq2000/iq2000.c: Include stor-layout.h.
7182 * config/lm32/lm32.c: Include calls.h.
7183 * config/m32c/m32c.c: Include stor-layout.h.
7186 * config/m32r/m32r.c: Include stor-layout.h.
7188 Include stringpool.h.
7190 * config/m68k/m68k.c: Include calls.h.
7191 Include stor-layout.h.
7193 * config/mcore/mcore.c: Include stor-layout.h.
7195 Include stringpool.h.
7197 * config/mep/mep.c: Include varasm.h.
7199 Include stringpool.h.
7200 Include stor-layout.h.
7201 * config/microblaze/microblaze.c: Include varasm.h.
7202 Include stor-layout.h.
7204 * config/mips/mips.c: Include varasm.h.
7205 Include stringpool.h.
7206 Include stor-layout.h.
7208 * config/mmix/mmix.c: Include varasm.h.
7209 Include stor-layout.h.
7211 * config/mn10300/mn10300.c: Include stor-layout.h.
7214 * config/moxie/moxie.c: Include stor-layout.h.
7217 * config/msp430/msp430.c: Include stor-layout.h.
7219 * config/nds32/nds32.c: Include stor-layout.h.
7222 * config/pa/pa.c: Include stor-layout.h.
7223 Include stringpool.h.
7226 * config/pdp11/pdp11.c: Include stor-layout.h.
7229 * config/picochip/picochip.c: Include calls.h.
7230 Include stor-layout.h.
7231 Include stringpool.h.
7233 * config/rl78/rl78.c: Include varasm.h.
7234 Include stor-layout.h.
7236 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7237 Include stringpool.h.
7238 * config/rs6000/rs6000.c: Include stringpool.h.
7239 Include stor-layout.h.
7241 Include print-tree.h.
7243 * config/rx/rx.c: Include varasm.h.
7244 Include stor-layout.h.
7246 * config/s390/s390.c: Include print-tree.h.
7247 Include stringpool.h.
7248 Include stor-layout.h.
7251 * config/score/score.c: Include stringpool.h.
7254 Include stor-layout.h.
7255 * config/sh/sh-c.c: Include stringpool.h.
7256 Include attribs.h.h.
7257 * config/sh/sh.c: Include stringpool.h.
7258 Include stor-layout.h.
7261 * config/sol2-c.c: Include stringpool.h.
7263 * config/sol2-cxx.c: Include stringpool.h.
7264 * config/sol2.c: Include stringpool.h.
7266 * config/sparc/sparc.c: Include stringpool.h.
7267 Include stor-layout.h.
7270 * config/spu/spu-c.c: Include stringpool.h.
7271 * config/spu/spu.c: Include stringpool.h.
7272 Include stor-layout.h.
7275 * config/stormy16/stormy16.c: Include stringpool.h.
7276 Include stor-layout.h.
7279 * config/tilegx/tilegx.c: Include stringpool.h.
7280 Include stor-layout.h.
7283 * config/tilepro/tilepro.c: Include stringpool.h.
7284 Include stor-layout.h.
7287 * config/v850/v850-c.c: Include stringpool.h.
7289 * config/v850/v850.c: Include stringpool.h.
7290 Include stor-layout.h.
7293 * config/vax/vax.c: Include calls.h.
7295 * config/vms/vms.c: Include stringpool.h.
7296 * config/vxworks.c: Include stringpool.h.
7297 * config/xtensa/xtensa.c: Include stringpool.h.
7298 Include stor-layout.h.
7301 * convert.c: Include stor-layout.h.
7302 * coverage.c: Include stringpool.h.
7303 Include stor-layout.h.
7304 * dbxout.c: Include varasm.h.
7305 Include stor-layout.h.
7306 * dojump.c: Include stor-layout.h.
7307 * dse.c: Include stor-layout.h.
7308 * dwarf2asm.c: Include stringpool.h.
7310 * dwarf2cfi.c: Include stor-layout.h.
7311 * dwarf2out.c: Include rtl.h.
7312 Include stringpool.h.
7313 Include stor-layout.h.
7317 Move inclusion of rtl.h earlier in the file.
7318 * emit-rtl.c: Include varasm.h.
7319 * except.c: Include stringpool.h.
7320 Include stor-layout.h.
7321 * explow.c: Include stor-layout.h.
7322 * expmed.c: Include stor-layout.h.
7323 * expr.c: Include stringpool.h.
7324 Include stor-layout.h.
7327 * final.c: Include varasm.h.
7328 * fold-const.c: Include stor-layout.h.
7330 Include tree-iterator.h.
7331 * function.c: Include stor-layout.h.
7333 Include stringpool.h.
7334 * genattrtab.c (write_header): Emit includes for varasm.h,
7335 stor-layout.h and calls.h.
7336 * genautomata.c (main): Likewise.
7337 * genemit.c: Likewise.
7338 * genopinit.c: Likewise.
7339 * genoutput.c (output_prologue): Likewise.
7340 * genpeep.c: Likewise.
7341 * genpreds.c (write_insn_preds_c): Likewise.
7342 * gengtype.c (open_base_files): Add stringpool.h.
7343 * gimple-expr.c: Include stringpool.h.
7344 Include stor-layout.h.
7345 * gimple-fold.c: Include stringpool.h.
7348 Include stor-layout.h.
7349 * gimple-low.c: Include tree-nested.h.
7351 * gimple-pretty-print.c: Include stringpool.h.
7352 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7354 * gimple-walk.c: Include stmt.h.
7355 * gimple.c: Include calls.h.
7357 Include stor-layout.h.
7358 * gimplify.c: Include stringpool.h.
7361 Include stor-layout.h.
7363 Include print-tree.h.
7365 * gimplify-me.c: Include stmt.h
7366 Include stor-layout.h
7367 * internal-fn.c: Include stor-layout.h.
7368 * ipa-devirt.c: Include print-tree.h.
7370 * ipa-inline-analysis.c: Include stor-layout.h.
7371 Include stringpool.h.
7372 Include print-tree.h.
7373 * ipa-inline.c: Include trans-mem.h.
7375 * ipa-prop.c: Include expr.h.
7376 Include stor-layout.h.
7377 Include print-tree.h.
7378 * ipa-pure-const.c: Include print-tree.h.
7380 * ipa-reference.c: Include calls.h.
7381 * ipa-split.c: Include stringpool.h.
7384 * ipa.c: Include calls.h.
7385 Include stringpool.h.
7386 * langhooks.c: Include stringpool.h.
7388 * lto-cgraph.c: Include stringpool.h.
7389 * lto-streamer-in.c: Include stringpool.h.
7390 * lto-streamer-out.c: Include stor-layout.h.
7391 Include stringpool.h.
7392 * omp-low.c: Include stringpool.h.
7393 Include stor-layout.h.
7395 * optabs.c: Include stor-layout.h.
7396 Include stringpool.h.
7398 * passes.c: Include varasm.h.
7399 * predict.c: Include calls.h.
7400 * print-rtl.c: Include print-tree.h.
7401 * print-tree.c: Include varasm.h.
7402 Include print-rtl.h.
7403 Include stor-layout.h.
7404 * realmpfr.c: Include stor-layout.h.
7405 * reg-stack.c: Include varasm.h.
7406 * sdbout.c: Include varasm.h.
7407 Include stor-layout.h.
7408 * simplify-rtx.c: Include varasm.h.
7409 * stmt.c: Include varasm.h.
7410 Include stor-layout.h.
7411 * stor-layout.c: Include stor-layout.h.
7412 Include stringpool.h.
7414 Include print-tree.h.
7415 * symtab.c: Include rtl.h.
7416 Include print-tree.h.
7420 * targhooks.c: Include stor-layout.h.
7422 * toplev.c: Include varasm.h.
7423 Include tree-inline.h.
7424 * trans-mem.c: Include calls.h.
7428 * tree-affine.c: Include expr.h.
7429 * tree-browser.c: Include print-tree.h.
7430 * tree-call-cdce.c: Include stor-layout.h.
7431 * tree-cfg.c: Include trans-mem.h.
7432 Include stor-layout.h.
7433 Include print-tree.h.
7434 * tree-complex.c: Include stor-layout.h.
7435 * tree-data-ref.c: Include expr.h.
7436 * tree-dfa.c: Include stor-layout.h.
7437 * tree-eh.c: Include expr.h.
7439 * tree-emutls.c: Include stor-layout.h.
7441 * tree-if-conv.c: Include stor-layout.h.
7442 * tree-inline.c: Include stor-layout.h.
7444 * tree-loop-distribution.c: Include stor-layout.h.
7445 * tree-nested.c: Include stringpool.h.
7446 Include stor-layout.h.
7447 * tree-object-size.c: Include tree-object-size.h.
7448 * tree-outof-ssa.c: Include stor-layout.h.
7449 * tree-parloops.c: Include stor-layout.h.
7450 Include tree-nested.h.
7451 * tree-pretty-print.c: Include stor-layout.h.
7453 * tree-profile.c: Include varasm.h.
7454 Include tree-nested.h.
7455 * tree-scalar-evolution.c: Include expr.h.
7456 * tree-sra.c: Include stor-layout.h.
7457 * tree-ssa-address.c: Include stor-layout.h.
7458 * tree-ssa-ccp.c: Include stor-layout.h.
7459 * tree-ssa-dce.c: Include calls.h.
7460 * tree-ssa-dom.c: Include stor-layout.h.
7461 * tree-ssa-forwprop.c: Include stor-layout.h.
7462 * tree-ssa-ifcombine.c: Include stor-layout.h.
7463 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7464 * tree-ssa-loop-niter.c: Include calls.h.
7466 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7467 * tree-ssa-math-opts.c: Include stor-layout.h.
7468 * tree-ssa-operands.c: Include stmt.h.
7469 Include print-tree.h.
7470 * tree-ssa-phiopt.c: Include stor-layout.h.
7471 * tree-ssa-reassoc.c: Include stor-layout.h.
7472 * tree-ssa-sccvn.c: Include stor-layout.h.
7473 * tree-ssa-sink.c: Include stor-layout.h.
7474 * tree-ssa-strlen.c: Include stor-layout.h.
7475 * tree-ssa-structalias.c: Include stor-layout.h.
7477 * tree-ssa-tail-merge.c: Include stor-layout.h.
7478 Include trans-mem.h.
7479 * tree-ssa-uncprop.c: Include stor-layout.h.
7480 * tree-ssa.c: Include stor-layout.h.
7481 * tree-ssanames.c: Include stor-layout.h.
7482 * tree-streamer-in.c: Include stringpool.h.
7483 * tree-streamer-out.c: Include stor-layout.h.
7484 * tree-switch-conversion.c: Include varasm.h.
7485 Include stor-layout.h.
7486 * tree-tailcall.c: Include stor-layout.h.
7487 * tree-vect-data-refs.c: Include stor-layout.h.
7488 * tree-vect-generic.c: Include stor-layout.h.
7489 * tree-vect-loop.c: Include stor-layout.h.
7490 * tree-vect-patterns.c: Include stor-layout.h.
7491 * tree-vect-slp.c: Include stor-layout.h.
7492 * tree-vect-stmts.c: Include stor-layout.h.
7493 * tree-vectorizer.c: Include stor-layout.h.
7494 * tree-vrp.c: Include stor-layout.h.
7496 * tree.c: Include stor-layout.h.
7500 * tsan.c: Include expr.h.
7501 * ubsan.c: Include stor-layout.h.
7502 Include stringpool.h.
7503 * value-prof.c: Include tree-nested.h.
7505 * var-tracking.c: Include varasm.h.
7506 Include stor-layout.h.
7507 * varasm.c: Include stor-layout.h.
7508 Include stringpool.h.
7509 Include gcc-symtab.h.
7511 * varpool.c: Include varasm.h.
7512 * vmsdbgout.c: Include varasm.h.
7513 * xcoffout.c: Include varasm.h.
7515 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7517 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7520 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7522 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7524 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7525 Alan Modra <amodra@gmail.com>
7527 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7528 (RS6000_SAVE_TOC): Remove.
7529 (RS6000_TOC_SAVE_SLOT): New macro.
7530 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7531 (rs6000_parm_start): Use it.
7532 (rs6000_function_arg_advance_1): Likewise.
7533 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7534 (rs6000_emit_epilogue): Likewise.
7535 (rs6000_call_aix): Likewise.
7536 (rs6000_output_function_prologue): Do not save/restore r11
7537 around calling _mcount for ABI_ELFv2.
7539 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7540 Alan Modra <amodra@gmail.com>
7542 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7544 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7545 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7546 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7547 (rs6000_function_parms_need_stack): Likewise.
7548 (rs6000_reg_parm_stack_space): Likewise.
7549 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7550 returning a register argument.
7552 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7553 Michael Gschwind <mkg@us.ibm.com>
7555 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7556 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7557 (FUNCTION_VALUE_REGNO_P): Use them.
7558 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7559 (rs6000_return_in_msb): New function.
7560 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7561 Handle aggregates of up to 16 bytes for ELFv2.
7562 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7564 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7565 Michael Gschwind <mkg@us.ibm.com>
7567 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7568 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7569 (rs6000_discover_homogeneous_aggregate): Likewise.
7570 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7571 (rs6000_function_arg_advance_1): Likewise.
7572 (rs6000_function_arg): Likewise.
7573 (rs6000_arg_partial_bytes): Likewise.
7574 (rs6000_psave_function_arg): Handle BLKmode arguments.
7576 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7577 Michael Gschwind <mkg@us.ibm.com>
7579 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7580 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7581 (rs6000_discover_homogeneous_aggregate): Likewise.
7582 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7583 (rs6000_function_arg_advance_1): Likewise.
7584 (rs6000_function_arg): Likewise.
7585 (rs6000_arg_partial_bytes): Likewise.
7586 (rs6000_psave_function_arg): Handle BLKmode arguments.
7588 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7590 * config/rs6000/rs6000.c (machine_function): New member
7592 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7593 (rs6000_output_mi_thunk): Set r2_setup_needed.
7594 (rs6000_output_function_prologue): Output global entry point
7595 prologue and local entry point marker if needed for ABI_ELFv2.
7596 Output -mprofile-kernel code here.
7597 (output_function_profiler): Do not output -mprofile-kernel
7598 code here; moved to rs6000_output_function_prologue.
7599 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7601 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7602 (rs6000_output_function_entry): Likewise.
7603 (rs6000_assemble_integer): Likewise.
7604 (rs6000_elf_encode_section_info): Likewise.
7605 (rs6000_elf_declare_function_name): Do not create dot symbols
7606 or .opd section for ABI_ELFv2.
7608 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7609 (rs6000_trampoline_init): Likewise.
7610 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7612 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7613 for function descriptors in ABI_ELFv2.
7615 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7616 on ABI_AIX only, not ABI_ELFv2.
7617 ("*call_value_indirect_aix<mode>"): Likewise.
7618 ("*call_indirect_elfv2<mode>"): New pattern.
7619 ("*call_value_indirect_elfv2<mode>"): Likewise.
7621 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7622 check for function descriptors in ABI_ELFv2.
7623 ("current_file_function_operand"): Likewise.
7625 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7627 (FUNC_NAME): Define ELFv2 variant.
7628 (JUMP_TARGET): Likewise.
7629 (FUNC_START): Likewise.
7630 (HIDDEN_FUNC): Likewise.
7631 (FUNC_END): Likeiwse.
7633 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7635 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7636 and --with-abi=elfv2.
7637 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7638 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7639 (mabi=elfv2): Likewise.
7640 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7641 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7643 (ELFv2_ABI_CHECK): New macro.
7644 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7645 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7646 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7647 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7648 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7651 (debug_stack_info): Likewise.
7652 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7653 (rs6000_legitimize_tls_address): Likewise.
7654 (rs6000_conditional_register_usage): Likewise.
7655 (rs6000_emit_move): Likewise.
7656 (init_cumulative_args): Likewise.
7657 (rs6000_function_arg_advance_1): Likewise.
7658 (rs6000_function_arg): Likewise.
7659 (rs6000_arg_partial_bytes): Likewise.
7660 (rs6000_output_function_entry): Likewise.
7661 (rs6000_assemble_integer): Likewise.
7662 (rs6000_savres_strategy): Likewise.
7663 (rs6000_stack_info): Likewise.
7664 (rs6000_function_ok_for_sibcall): Likewise.
7665 (rs6000_emit_load_toc_table): Likewise.
7666 (rs6000_savres_routine_name): Likewise.
7667 (ptr_regno_for_savres): Likewise.
7668 (rs6000_emit_prologue): Likewise.
7669 (rs6000_emit_epilogue): Likewise.
7670 (rs6000_output_function_epilogue): Likewise.
7671 (output_profile_hook): Likewise.
7672 (output_function_profiler): Likewise.
7673 (rs6000_trampoline_size): Likewise.
7674 (rs6000_trampoline_init): Likewise.
7675 (rs6000_elf_output_toc_section_asm_op): Likewise.
7676 (rs6000_elf_encode_section_info): Likewise.
7677 (rs6000_elf_reloc_rw_mask): Likewise.
7678 (rs6000_elf_declare_function_name): Likewise.
7679 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7680 except that rs6000_compat_align_parm is always assumed false.
7681 (rs6000_gimplify_va_arg): Likewise.
7682 (rs6000_call_aix): Update comment.
7683 (rs6000_sibcall_aix): Likewise.
7684 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7685 Treat ABI_ELFv2 the same as ABI_AIX.
7686 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7687 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7688 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7689 ("load_toc_aix_si"): Likewise.
7690 ("load_toc_aix_di"): Likewise.
7692 ("call_value"): Likewise.
7693 ("*call_local_aix<mode>"): Likewise.
7694 ("*call_value_local_aix<mode>"): Likewise.
7695 ("*call_nonlocal_aix<mode>"): Likewise.
7696 ("*call_value_nonlocal_aix<mode>"): Likewise.
7697 ("*call_indirect_aix<mode>"): Likewise.
7698 ("*call_value_indirect_aix<mode>"): Likewise.
7699 ("sibcall"): Likewise.
7700 ("sibcall_value"): Likewise.
7701 ("*sibcall_aix<mode>"): Likewise.
7702 ("*sibcall_value_aix<mode>"): Likewise.
7703 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7704 ("current_file_function_operand"): Likewise.
7706 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7708 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7709 by making use of the fact that for vector / floating point arguments
7710 passed both in VRs/FPRs and in the fixed parameter area, the partial
7711 bytes mechanism is in fact not used.
7713 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7715 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7716 (rs6000_finish_function_arg): Likewise.
7717 (rs6000_function_arg): Use rs6000_psave_function_arg and
7718 rs6000_finish_function_arg to handle both vector and floating
7719 point arguments that are also passed in GPRs / the stack.
7721 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7723 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7724 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7725 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7726 (rs6000_function_arg_advance_1):Likewise.
7727 (rs6000_darwin64_record_arg_recurse): Likewise.
7728 (rs6000_function_arg): Likewise.
7729 (rs6000_arg_partial_bytes): Likewise.
7731 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7733 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7734 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7735 (rs6000_savres_strategy): Likewise.
7736 (rs6000_return_addr): Likewise.
7737 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7738 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7739 (rs6000_emit_prologue): Likewise.
7740 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7741 (rs6000_elf_declare_function_name): Remove duplicated test.
7742 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7743 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7744 ("load_toc_v4_PIC_1_normal"): Likewise.
7745 ("load_toc_v4_PIC_1_476"): Likewise.
7746 ("load_toc_v4_PIC_1b"): Likewise.
7747 ("load_toc_v4_PIC_1b_normal"): Likewise.
7748 ("load_toc_v4_PIC_1b_476"): Likewise.
7749 ("load_toc_v4_PIC_2"): Likewise.
7750 ("load_toc_v4_PIC_3b"): Likewise.
7751 ("load_toc_v4_PIC_3c"): Likewise.
7752 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7753 (RS6000_SAVE_AREA): Likewise.
7754 (FP_ARG_MAX_REG): Likewise.
7755 (RETURN_ADDRESS_OFFSET): Likewise.
7756 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7758 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7759 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7761 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7763 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7764 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7765 Create call insn directly instead of via various gen_... routines.
7766 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7767 (rs6000_sibcall_aix): New function.
7768 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7769 (TOC_SAVE_OFFSET_64BIT): Likewise.
7770 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7771 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7772 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7773 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7774 ("call" expander): Call rs6000_call_aix.
7775 ("call_value" expander): Likewise.
7776 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7777 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7778 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7779 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7780 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7781 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7782 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7783 ("*call_nonlocal_aix<mode>"): ... this pattern.
7784 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7785 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7786 ("*call_local_aix<mode>"): New insn pattern.
7787 ("*call_value_local_aix<mode>"): Likewise.
7788 ("sibcall" expander): Call rs6000_sibcall_aix.
7789 ("sibcall_value" expander): Likewise. Move earlier in file.
7790 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7791 ("*sibcall_aix<mode>"): ... this pattern.
7792 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7793 ("*sibcall_value_aix<mode>"): ... this pattern.
7794 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7795 (rs6000_call_aix): Add prototype.
7796 (rs6000_sibcall_aix): Likewise.
7798 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7801 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7802 isn't confused by the artificial decl.
7804 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7806 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7807 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7808 Instead, add USEs of all modified call-saved CR fields to the
7809 insn storing the result to the stack slot, and provide an
7810 appropriate REG_FRAME_RELATED_EXPR for that insn.
7811 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7812 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7814 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7815 Alan Modra <amodra@gmail.com>
7817 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7818 of re-evaluating REG_PARM_STACK_SPACE target macro.
7819 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7820 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7821 (assign_parm_find_entry_rtl): Update call.
7822 * calls.c (initialize_argument_information): Update call.
7823 (emit_library_call_value_1): Likewise.
7824 * expr.h (locate_and_pad_parm): Update prototype.
7826 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7828 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7831 2013-11-14 DJ Delorie <dj@redhat.com>
7833 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7836 2013-11-14 Jeff Law <law@redhat.com>
7838 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7839 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7841 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7843 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7846 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7848 * config/aarch64/aarch64-cores.def (example-1): Remove.
7849 (example-2): Likewise.
7850 * config/aarch64/aarch64-tune.md: Regenerate.
7851 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7852 (generic_sched): Remove "large", "small".
7853 * config/aarch64/large.md: Delete.
7854 * config/aarch64/small.md: Delete.
7856 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7858 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7859 * config/aarch64/aarch64-tune.md: Regenerate.
7860 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7861 (generic_sched): "no" if we are tuning for cortexa15.
7862 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7865 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7867 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7868 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7869 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7870 (all_cores): Use cortexa53 when tuning for "generic".
7871 (aarch64_override_options): Fix comment.
7872 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7873 * config/aarch64/aarch64-generic.md: Delete.
7875 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7877 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7879 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7881 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7882 (generic_rtx_cost_table): Remove.
7883 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7884 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7886 (cpu_rtx_cost_table): Remove.
7888 2013-11-14 Julian Brown <julian@codesourcery.com>
7889 Joey Ye <joey.ye@arm.com>
7891 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7892 (arm_v7m_tune): New.
7893 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7894 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7895 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7896 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7898 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7901 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7904 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7905 Uros Bizjak <ubizjak@gmail.com>
7908 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7909 operands[2] satisfies_constraint_Z that might have bit 31 set.
7911 2013-11-13 Jeff Law <law@redhat.com>
7913 PR tree-optimization/59102
7914 * gimple-ssa-isolate-paths.c
7915 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7916 gimple assignment before looking at gimple_assign_lhs.
7918 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7920 * ira.c: Add comment about threads at the top of file.
7922 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7924 * ira-color.c (coalesce_allocnos): Don't allocate and free
7927 2013-11-14 Tom de Vries <tom@codesourcery.com>
7929 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7930 equality for GIMPLE_ASSIGN.
7932 2013-11-14 Tom de Vries <tom@codesourcery.com>
7934 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7936 (gimple_equal_p): ... here.
7938 2013-11-14 Tom de Vries <tom@codesourcery.com>
7940 * trans-mem.c (is_tm_ending): New function.
7941 * gimple.h (is_tm_ending): Declare.
7942 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7944 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7946 2013-11-14 Tom de Vries <tom@codesourcery.com>
7948 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7950 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7952 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7953 (struct walk_stmt_info): Relocate here from gimple.h.
7954 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7955 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7956 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7957 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7958 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7959 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7960 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7961 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7962 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7963 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7964 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7965 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7966 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7967 (struct walk_stmt_info): Move to gimple-walk.h.
7968 (gimple_seq_set_location): Move to gimple.c
7969 * gimple-walk.c: New File.
7970 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7971 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7972 walk_stmt_load_store_ops): Relocate here from gimple.c.
7973 * gimple-iterator.c: Include gimple-iterator.h.
7974 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7975 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7976 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7978 (gimple_seq_set_location): Relocate from gimple.h.
7979 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7980 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7981 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7982 * Makefile.in (OBJS): Add gimple-walk.o
7983 * asan.c: Update Include list as required for gimple-iterator.h and
7985 * cfgexpand.c: Likewise.
7986 * cfgloop.c: Likewise.
7987 * cfgloopmanip.c: Likewise.
7988 * cgraph.c: Likewise.
7989 * cgraphbuild.c: Likewise.
7990 * cgraphunit.c: Likewise.
7991 * gimple-fold.c: Likewise.
7992 * gimple-low.c: Likewise.
7993 * gimple-pretty-print.c: Likewise.
7994 * gimple-ssa-isolate-paths.c: Likewise.
7995 * gimple-ssa-strength-reduction.c: Likewise.
7996 * gimple-streamer-in.c: Likewise.
7997 * gimple-streamer-out.c: Likewise.
7998 * gimplify.c: Likewise.
7999 * graphite-blocking.c: Likewise.
8000 * graphite-clast-to-gimple.c: Likewise.
8001 * graphite-dependences.c: Likewise.
8002 * graphite-interchange.c: Likewise.
8003 * graphite-optimize-isl.c: Likewise.
8004 * graphite-poly.c: Likewise.
8005 * graphite-scop-detection.c: Likewise.
8006 * graphite-sese-to-poly.c: Likewise.
8007 * graphite.c: Likewise.
8008 * ipa-inline-analysis.c: Likewise.
8009 * ipa-profile.c: Likewise.
8010 * ipa-prop.c: Likewise.
8011 * ipa-pure-const.c: Likewise.
8012 * ipa-split.c: Likewise.
8013 * lto-streamer-in.c: Likewise.
8014 * lto-streamer-out.c: Likewise.
8015 * omp-low.c: Likewise.
8016 * predict.c: Likewise.
8017 * profile.c: Likewise.
8019 * tracer.c: Likewise.
8020 * trans-mem.c: Likewise.
8021 * tree-call-cdce.c: Likewise.
8022 * tree-cfg.c: Likewise.
8023 * tree-cfgcleanup.c: Likewise.
8024 * tree-complex.c: Likewise.
8025 * tree-data-ref.c: Likewise.
8026 * tree-dfa.c: Likewise.
8027 * tree-eh.c: Likewise.
8028 * tree-emutls.c: Likewise.
8029 * tree-if-conv.c: Likewise.
8030 * tree-inline.c: Likewise.
8031 * tree-into-ssa.c: Likewise.
8032 * tree-loop-distribution.c: Likewise.
8033 * tree-nested.c: Likewise.
8034 * tree-nrv.c: Likewise.
8035 * tree-object-size.c: Likewise.
8036 * tree-outof-ssa.c: Likewise.
8037 * tree-parloops.c: Likewise.
8038 * tree-predcom.c: Likewise.
8039 * tree-profile.c: Likewise.
8040 * tree-scalar-evolution.c: Likewise.
8041 * tree-sra.c: Likewise.
8042 * tree-ssa-ccp.c: Likewise.
8043 * tree-ssa-coalesce.c: Likewise.
8044 * tree-ssa-copy.c: Likewise.
8045 * tree-ssa-copyrename.c: Likewise.
8046 * tree-ssa-dce.c: Likewise.
8047 * tree-ssa-dom.c: Likewise.
8048 * tree-ssa-dse.c: Likewise.
8049 * tree-ssa-forwprop.c: Likewise.
8050 * tree-ssa-ifcombine.c: Likewise.
8051 * tree-ssa-live.c: Likewise.
8052 * tree-ssa-loop-ch.c: Likewise.
8053 * tree-ssa-loop-im.c: Likewise.
8054 * tree-ssa-loop-ivcanon.c: Likewise.
8055 * tree-ssa-loop-ivopts.c: Likewise.
8056 * tree-ssa-loop-manip.c: Likewise.
8057 * tree-ssa-loop-niter.c: Likewise.
8058 * tree-ssa-loop-prefetch.c: Likewise.
8059 * tree-ssa-loop.c: Likewise.
8060 * tree-ssa-math-opts.c: Likewise.
8061 * tree-ssa-phiopt.c: Likewise.
8062 * tree-ssa-phiprop.c: Likewise.
8063 * tree-ssa-pre.c: Likewise.
8064 * tree-ssa-propagate.c: Likewise.
8065 * tree-ssa-reassoc.c: Likewise.
8066 * tree-ssa-sink.c: Likewise.
8067 * tree-ssa-strlen.c: Likewise.
8068 * tree-ssa-structalias.c: Likewise.
8069 * tree-ssa-tail-merge.c: Likewise.
8070 * tree-ssa-ter.c: Likewise.
8071 * tree-ssa-threadedge.c: Likewise.
8072 * tree-ssa-threadupdate.c: Likewise.
8073 * tree-ssa-uncprop.c: Likewise.
8074 * tree-ssa-uninit.c: Likewise.
8075 * tree-ssa.c: Likewise.
8076 * tree-stdarg.c: Likewise.
8077 * tree-switch-conversion.c: Likewise.
8078 * tree-tailcall.c: Likewise.
8079 * tree-vect-data-refs.c: Likewise.
8080 * tree-vect-generic.c: Likewise.
8081 * tree-vect-loop-manip.c: Likewise.
8082 * tree-vect-loop.c: Likewise.
8083 * tree-vect-patterns.c: Likewise.
8084 * tree-vect-slp.c: Likewise.
8085 * tree-vect-stmts.c: Likewise.
8086 * tree-vectorizer.c: Likewise.
8087 * tree-vrp.c: Likewise.
8090 * value-prof.c: Likewise.
8091 * vtable-verify.c: Likewise.
8093 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8095 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8098 2013-11-13 Jeff Law <law@redhat.com>
8100 * PR middle-end/59119
8101 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8102 function, extracted from gimple_ssa_isolate_erroneous_paths.
8103 (find_explicit_erroneous_behaviour): Similarly.
8104 (insert_trap_and_remove_trailing_statements): Remove statements
8107 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8109 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8110 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8111 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8112 looking at INSN_CODE.
8113 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8114 active_insn_p object, respect basic block boundaries.
8115 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8116 follows immediately after the jump table data label.
8117 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8118 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8119 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8121 2013-11-13 Teresa Johnson <tejohnson@google.com>
8124 * predict.c (drop_profile): Error is currently too strict.
8125 (handle_missing_profiles): Pass call_count to drop_profile.
8127 2013-11-13 Teresa Johnson <tejohnson@google.com>
8130 * ipa-inline.c (edge_badness): Fix overflow.
8132 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8134 PR rtl-optimization/59036
8135 * ira-color.c (struct allocno_color_data): Add new members
8136 first_thread_allocno, next_thread_allocno, thread_freq.
8137 (sorted_copies): New static var.
8138 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8139 (allocno_thread_conflict_p, merge_threads)
8140 (form_threads_from_copies, form_threads_from_bucket)
8141 (form_threads_from_colorable_allocno, init_allocno_threads): New
8143 (bucket_allocno_compare_func): Add comparison by thread frequency
8145 (add_allocno_to_ordered_bucket): Rename to
8146 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8147 (push_only_colorable): Call form_threads_from_bucket.
8148 (color_pass): Call init_allocno_threads. Use
8149 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8150 for nuillify allocno color data.
8151 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8152 (coalesce_allocnos): Use static sorted copies.
8154 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8156 * passes.c (execute_todo): Don't call do_per_function if
8158 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8159 execute_function_dump if dump_file is NULL.
8161 2013-11-13 Martin Jambor <mjambor@suse.cz>
8163 * cgraph.c (cgraph_get_create_node): Do what
8164 cgraph_get_create_real_symbol_node used to do.
8165 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8166 call cgraph_get_create_node.
8167 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8168 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8169 cgraph_get_create_node. Assert we get a node.
8171 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8173 * config/aarch64/aarch64-simd.md (vec_extract): New.
8175 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8177 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8180 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8182 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8183 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8184 or if optimization is enabled.
8185 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8186 require that all the names based on a PARM_DECL or a RESULT_DECL that
8187 isn't ignored for debug info be coalesced.
8189 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8191 * config/c6x/c6x.c: Include "gimple-expr.h".
8193 2013-11-13 Richard Biener <rguenther@suse.de>
8195 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8196 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8197 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8198 dealing with type mismatches inside component reference chains.
8200 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8202 PR tree-optimization/59077
8203 * ipa-pure-const.c (better_state): Update *state.
8205 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8207 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8208 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8209 Update offset calculations.
8211 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8214 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8215 for fields. Do not add the attribute if the size is negative.
8217 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8219 * config/arm/arm.c: Include aarch-cost-tables.h.
8220 (generic_extra_costs): Move from here...
8221 * config/arm/aarch-cost-tables.h: ... To here. New file.
8223 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8225 Sergey Lega <sergey.s.lega@intel.com>
8226 Anna Tikhonova <anna.tikhonova@intel.com>
8227 Ilya Tocar <ilya.tocar@intel.com>
8228 Andrey Turetskiy <andrey.turetskiy@intel.com>
8229 Ilya Verbin <ilya.verbin@intel.com>
8230 Kirill Yukhin <kirill.yukhin@intel.com>
8231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8233 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8234 * config/i386/predicate.md (const_0_to_4_operand): New.
8235 (const_0_to_5_operand): Ditto.
8236 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8237 (UNSPEC_COMPRESS_STORE): Ditto.
8238 (UNSPEC_EXPAND): Ditto.
8239 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8240 (define_mode_attr ssescalarsize): Ditto.
8241 (avx512f_load<mode>_mask): Ditto.
8242 (avx512f_store<mode>_mask): Ditto.
8243 (avx512f_storedqu<mode>_mask): Ditto.
8244 (avx512f_vmcmp<mode>3_mask): Ditto.
8245 (avx512f_fmadd_<mode>_mask): Ditto.
8246 (avx512f_fmadd_<mode>_mask3): Ditto.
8247 (avx512f_fmsub_<mode>_mask): Ditto.
8248 (avx512f_fmsub_<mode>_mask3): Ditto.
8249 (avx512f_fnmadd_<mode>_mask): Ditto.
8250 (avx512f_fnmadd_<mode>_mask3): Ditto.
8251 (avx512f_fnmsub_<mode>_mask): Ditto.
8252 (avx512f_fnmsub_<mode>_mask3): Ditto.
8253 (avx512f_fmaddsub_<mode>_mask): Ditto.
8254 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8255 (avx512f_fmsubadd_<mode>_mask): Ditto.
8256 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8257 (vec_unpacku_float_lo_v16si): Ditto.
8258 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8259 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8260 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8261 (vec_extract_lo_<mode>_maskm): Ditto.
8262 (vec_extract_hi_<mode>_maskm): Ditto.
8263 (avx512f_vternlog<mode>_mask): Ditto.
8264 (avx512f_shufps512_mask): Ditto.
8265 (avx512f_fixupimm<mode>_mask): Ditto.
8266 (avx512f_shufpd512_mask): Ditto.
8267 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8268 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8269 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8270 (ashr<mode>3<mask_name>): Ditto.
8271 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8272 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8273 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8274 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8275 (avx512f_pshufdv3_mask): Ditto.
8276 (avx512f_perm<mode>_mask): Ditto.
8277 (avx512f_vpermi2var<mode>3_mask): Ditto.
8278 (avx512f_vpermt2var<mode>3_mask): Ditto.
8279 (avx512f_compress<mode>_mask): Ditto.
8280 (avx512f_compressstore<mode>_mask): Ditto.
8281 (avx512f_expand<mode>_mask): Ditto.
8282 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8284 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8285 (<plusminus_insn><mode>3<mask_name>): Ditto.
8286 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8287 (mul<mode>3<mask_name>): Ditto.
8288 (*mul<mode>3<mask_name>): Ditto.
8289 (<sse>_div<mode>3<mask_name>): Ditto.
8290 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8291 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8292 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8293 (<code><mode>3<mask_name>/smaxmin): Ditto.
8294 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8295 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8296 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8297 (ufloatv16siv16sf2<mask_name>): Ditto.
8298 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8299 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8300 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8301 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8302 (ufloatv8siv8df<mask_name>): Ditto.
8303 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8304 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8305 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8306 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8307 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8308 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8309 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8310 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8311 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8312 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8313 (vec_extract_lo_<mode><mask_name>): Ditto.
8314 (vec_extract_hi_<mode><mask_name>): Ditto.
8315 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8316 (avx512f_movddup512<mask_name>): Ditto.
8317 (avx512f_unpcklpd512<mask_name>): Ditto.
8318 (*avx512f_unpcklpd512<mask_name>): Ditto.
8319 (*avx512f_vmscalef<mode>): Ditto.
8320 (avx512f_scalef<mode><mask_name>): Ditto.
8321 (avx512f_getexp<mode><mask_name>): Ditto.
8322 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8323 (avx512f_rndscale<mode><mask_name>): Ditto.
8324 (avx512f_shufps512_1<mask_name>): Ditto.
8325 (avx512f_shufpd512_1<mask_name>): Ditto.
8326 (<plusminus_insn><mode>3<mask_name>): Ditto.
8327 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8328 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8329 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8330 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8331 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8332 (mul<mode>3<mask_name>): Ditto.
8333 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8334 (<shift_insn><mode>3<mask_name>): Ditto.
8335 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8336 (avx512f_<rotate><mode><mask_name>): Ditto.
8337 (<code><mode>3<mask_name>/maxmin): Ditto.
8338 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8339 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8340 (*andnot<mode>3<mask_name>): Ditto.
8341 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8342 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8343 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8344 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8345 (vec_set_lo_<mode><mask_name>): Ditto.
8346 (vec_set_hi_<mode><mask_name>): Ditto.
8347 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8348 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8349 (avx512f_pshufd_1<mask_name>): Ditto.
8350 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8351 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8352 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8353 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8354 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8355 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8356 (avx512er_exp2<mode><mask_name>): Ditto.
8357 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8358 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8359 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8360 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8361 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8362 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8363 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8364 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8365 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8366 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8367 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8368 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8369 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8370 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8371 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8372 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8373 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8374 (avx512f_getmant<mode><mask_name>): Ditto.
8375 (clz<mode>2<mask_name>): Ditto.
8376 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8377 (*srcp14<mode>): Remove visibility.
8378 (*rsqrt14<mode>): Ditto.
8379 (*fma_fmsub_<mode>): Ditto.
8380 (*fma_fnmadd_<mode>): Ditto.
8381 (*avx512f_rndscale<mode>): Ditto.
8382 * config/i386/subst.md: New file.
8384 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8386 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8387 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8388 (atomic_load_explicit, atomic_exchange_explicit)
8389 (atomic_compare_exchange_strong_explicit)
8390 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8391 declare variable initialized with PTR argument.
8393 2013-11-12 Jeff Law <law@redhat.com>
8395 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8396 backedge_seen_p. Set, use and pass it to children appropriately.
8397 (thread_through_normal_block): Similarly.
8398 (thread_across_edge): Similarly.
8400 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8401 memory references as volatile.
8402 (insert_trap_and_remove_trailing_statements): Fix comment.
8404 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8407 * ira-costs.c (record_operand_costs): Check operands number for
8410 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8413 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8414 constraints that would allow DImode into the traditional Altivec
8415 registers, but cause undesirable code generation when loading 0 as
8417 (movdi_internal64): Likewise.
8418 (cmp<mode>_fpr): Do not use %x for CR register output.
8419 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8420 -mallow-upper-sf debug switches are used.
8422 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8424 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8425 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8426 Relocate prototypes from gimple.h.
8427 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8428 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8430 * gimple.h: Move some prototypes to gimplify.h.
8431 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8433 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8434 Relocate from gimpify.c.
8435 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8436 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8437 is_gimple_reg_rhs) Relocate from gimplify.c.
8438 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8439 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8440 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8441 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8442 is_gimple_reg_rhs): Move to gimple-expr.c.
8443 (should_carry_location_p): Move to gimple.c.
8444 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8446 (annotate_one_with_location, annotate_all_with_location_after,
8447 annotate_all_with_location): Move to gimple.c.
8448 (compare_case_labels, sort_case_labels,
8449 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8450 (rhs_predicate_for): Make static.
8451 (gimplify_assign): Relocate from gimple.c.
8452 * gimple.c (gimplify_assign): Move to gimplify.c.
8453 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8454 annotate_one_with_location, annotate_all_with_location_after,
8455 annotate_all_with_location, compare_case_labels, sort_case_labels,
8456 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8457 * tree.h (unshare_expr, unshare_expr_without_location,
8458 mark_addressable): Move prototypes to gimplify.h.
8459 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8461 * asan.c: Include gimplify.h rather than gimple.h.
8462 * cfgloopmanip.c: Likewise.
8463 * cgraphunit.c: Likewise.
8464 * cilk-common.c: Likewise.
8465 * dwarf2out.c: Dont include gimple.h.
8466 * fold-const.c: Include gimplify.h rather than gimple.h.
8467 * function.c: Likewise.
8468 * gimple-fold.c: Likewise.
8469 * gimple-ssa-strength-reduction.c: Likewise.
8470 * graphite-clast-to-gimple.c: Likewise.
8471 * graphite-sese-to-poly.c: Likewise.
8472 * ipa-prop.c: Likewise.
8473 * ipa-split.c: Likewise.
8475 * langhooks.c: Dont include gimple.h.
8476 * loop-init.c: Include gimplify.h rather than gimple.h.
8477 * omp-low.c: Likewise.
8479 * stor-layout.c: Likewise.
8480 * targhooks.c: Likewise.
8481 * trans-mem.c: Likewise.
8482 * tree-affine.c: Likewise.
8483 * tree-cfg.c: Likewise.
8484 * tree-cfgcleanup.c: Likewise.
8485 * tree-complex.c: Likewise.
8486 * tree-if-conv.c: Likewise.
8487 * tree-inline.c: Likewise.
8488 * tree-iterator.c: Likewise.
8489 * tree-loop-distribution.c: Likewise.
8490 * tree-nested.c: Likewise.
8491 * tree-parloops.c: Likewise.
8492 * tree-predcom.c: Likewise.
8493 * tree-profile.c: Likewise.
8494 * tree-scalar-evolution.c: Likewise.
8495 * tree-sra.c: Likewise.
8496 * tree-ssa-address.c: Likewise.
8497 * tree-ssa-ccp.c: Likewise.
8498 * tree-ssa-dce.c: Likewise.
8499 * tree-ssa-forwprop.c: Likewise.
8500 * tree-ssa-ifcombine.c: Likewise.
8501 * tree-ssa-loop-im.c: Likewise.
8502 * tree-ssa-loop-ivopts.c: Likewise.
8503 * tree-ssa-loop-manip.c: Likewise.
8504 * tree-ssa-loop-niter.c: Likewise.
8505 * tree-ssa-loop-prefetch.c: Likewise.
8506 * tree-ssa-loop-unswitch.c: Likewise.
8507 * tree-ssa-math-opts.c: Likewise.
8508 * tree-ssa-phiopt.c: Likewise.
8509 * tree-ssa-phiprop.c: Likewise.
8510 * tree-ssa-pre.c: Likewise.
8511 * tree-ssa-propagate.c: Likewise.
8512 * tree-ssa-reassoc.c: Likewise.
8513 * tree-ssa-sccvn.c: Likewise.
8514 * tree-ssa-strlen.c: Likewise.
8515 * tree-ssa.c: Likewise.
8516 * tree-switch-conversio: Likewise.n.c
8517 * tree-tailcall.c: Likewise.
8518 * tree-vect-data-refs.c: Likewise.
8519 * tree-vect-generic.c: Likewise.
8520 * tree-vect-loop-manip.c: Likewise.
8521 * tree-vect-loop.c: Likewise.
8522 * tree-vect-patterns.c: Likewise.
8523 * tree-vect-stmts.c: Likewise.
8525 * value-prof.c: Likewise.
8526 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8527 * config/alpha/alpha.c: Likewise.
8528 * config/darwin.c: Likewise.
8529 * config/i386/i386.c: Likewise.
8530 * config/ia64/ia64.c: Likewise.
8531 * config/mep/mep.c: Likewise.
8532 * config/mips/mips.c: Likewise.
8533 * config/rs6000/rs6000.c: Likewise.
8534 * config/s390/s390.c: Likewise.
8535 * config/sh/sh.c: Likewise.
8536 * config/sparc/sparc.c: Likewise.
8537 * config/spu/spu.c: Likewise.
8538 * config/stormy16/stormy16.c: Likewise.
8539 * config/tilegx/tilegx.c: Likewise.
8540 * config/tilepro/tilepro.c: Likewise.
8541 * config/xtensa/xtensa.c: Likewise.
8543 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8545 * tree.c (grow_tree_vec_stat): New function ...
8546 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8547 and macro front-end.
8549 2013-11-12 Marek Polacek <polacek@redhat.com>
8551 * final.c (update_alignments): Initialize label to NULL_RTX.
8553 2013-11-12 Jeff Law <law@redhat.com>
8555 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8556 (insert_trap_and_remove_trailing_statements): New argument OP which
8557 is the NULL pointer. Emit the trap after the load/store through
8558 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8559 when trivial to do so.
8560 (isolate_path): Corresponding changes.
8561 (gimple_ssa_isolate_erroneous_path): Likewise.
8563 2013-11-12 Teresa Johnson <tejohnson@google.com>
8564 Jan Hubicka <jh@suse.cz>
8566 * predict.c (drop_profile): New function.
8567 (handle_missing_profiles): Ditto.
8568 (counts_to_freqs): Don't overwrite estimated frequencies
8569 when function has no profile counts.
8570 * predict.h (handle_missing_profiles): Declare.
8571 * tree-inline.c (freqs_to_counts): New function.
8572 (copy_cfg_body): Invoke freqs_to_counts as needed.
8573 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8575 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8578 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8580 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8582 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8585 * config/i386/i386.c (ix86_option_override_internal): Check
8586 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8587 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8588 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8589 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8591 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8592 Clear m_COREI7_AVX and update comments.
8593 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8595 2013-11-12 Martin Jambor <mjambor@suse.cz>
8597 PR rtl-optimization/10474
8598 * ira.c (interesting_dest_for_shprep): New function.
8599 (split_live_ranges_for_shrink_wrap): Likewise.
8600 (find_moveable_pseudos): Move calculation of dominance info,
8601 df_analysios and the final anlyses to...
8602 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8604 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8606 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8607 Handle type conversion.
8609 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8610 Jan Hubicka <jh@suse.cz>
8612 * cgraph.c (dump_cgraph_node): Profile dump added.
8613 * cgraph.h (struct cgraph_node): New time profile variable added.
8614 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8615 * gcov-io.h (gcov_type): New profiler type introduced.
8616 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8617 (input_node): Time profiler is read from LTO stream.
8618 * predict.c (maybe_hot_count_p): Hot prediction changed.
8619 * profile.c (instrument_values): New case for time profiler added.
8620 (compute_value_histograms): Read of time profile.
8621 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8622 * tree-profile.c (init_ic_make_global_vars): Time profiler
8624 (gimple_init_edge_profiler): TP function instrumentation.
8625 (gimple_gen_time_profiler): New.
8626 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8628 (dump_histogram_value): TP type added to dumps.
8629 (visit_hist): More sensitive check that takes TP into account.
8630 (gimple_find_values_to_profile): TP instrumentation.
8631 * value-prof.h (hist_type): New histogram type added.
8632 (struct histogram_value_t): Pointer to struct function added.
8633 * libgcc/Makefile.in: New GCOV merge function for TP added.
8634 * libgcov.c: function_counter variable introduced.
8635 (_gcov_merge_time_profile): New.
8636 (_gcov_time_profiler): New.
8638 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8639 Jeff Law <law@redhat.com>
8641 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8642 ao_ref_init_from_ptr_and_size for builtins.
8644 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8645 H.J. Lu <hongjiu.lu@intel.com>
8648 * config/i386/x86-tune.def
8649 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8650 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8651 * config/i386/i386.h
8652 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8653 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8654 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8655 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8656 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8657 misaligned_prologue_used. Check that
8658 desired_aling <= epilogue_size_needed.
8660 2013-11-11 Cong Hou <congh@google.com>
8662 PR tree-optimization/59050
8663 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8665 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8668 * expmed.c (emit_store_flag): Fail for const-const comparison.
8670 2013-11-11 Tristan Gingold <gingold@adacore.com>
8671 Eric Botcazou <ebotcazou@adacore.com>
8673 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8674 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8675 * tree.def (CONSTRUCTOR): Likewise.
8676 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8677 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8678 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8680 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8682 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8685 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8687 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8690 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8692 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8694 2013-11-08 Jeff Law <law@redhat.com>
8696 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8697 threading paths first, then perform PHI node checks if applicable.
8699 2013-11-10 Karlson2k <k2k@narod.ru>
8700 Kai Tietz <ktietz@redhat.com>
8703 * configure.ac: Adding for exported symbols check
8704 and for rdynamic-check executable-extension.
8705 * configure: Regenerated.
8707 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8709 * mode-switching.c (optimize_mode_switching): Mark block as
8710 nontransparent, if last_mode at block exit is different from no_mode.
8712 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8714 * function.c (NAME__MAIN): Move to...
8715 * cfgexpand.c (NAME__MAIN): ...here.
8717 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8719 * target.def (can_use_doloop_p): New hook.
8720 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8721 * doc/tm.texi: Regenerate.
8722 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8723 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8724 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8725 * targhooks.h (can_use_doloop_if_innermost): Declare.
8726 * targhooks.c (can_use_doloop_if_innermost): New function.
8727 * target.h: Include double-int.h.
8728 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8729 Remove iteration count, maximum iteration count, loop depth and
8730 enter-at-top inputs from doloop_begin and doloop_end.
8731 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8733 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8734 (TARGET_CAN_USE_DOLOOP_P): Define.
8735 * config/arm/thumb2.md (doloop_end): Update for new interface.
8736 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8737 * config/bfin/bfin.md (doloop_end): Update for new interface.
8738 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8739 (TARGET_CAN_USE_DOLOOP_P): Define.
8740 * config/c6x/c6x.md (doloop_end): Update for new interface.
8741 * config/ia64/ia64.md (doloop_end): Update for new interface.
8742 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8743 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8745 * config/mep/mep.c (mep_emit_doloop): Likewise.
8746 (TARGET_CAN_USE_DOLOOP_P): Define.
8747 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8748 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8749 * config/s390/s390.md (doloop_end): Update for new interface.
8750 * config/sh/sh.md (doloop_end): Likewise.
8751 * config/spu/spu.md (doloop_end): Likewise.
8752 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8753 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8754 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8755 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8756 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8757 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8759 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8761 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8764 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8767 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8768 Joseph Myers <joseph@codesourcery.com>
8770 * ginclude/stdatomic.h: New file.
8771 * Makefile.in (USER_H): Add stdatomic.h.
8773 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8775 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8778 2013-11-08 Jeff Law <law@redhat.com>
8780 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8781 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8782 (ssa_redirect_edges, thread_block_1): Use it.
8783 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8784 (thread_through_all_blocks, register_jump_thread): Likewise.
8785 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8787 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8789 * config/arm/aarch-common.c
8790 (search_term): New typedef.
8791 (shift_rtx_costs): New array.
8792 (arm_rtx_shift_left_p): New.
8793 (arm_find_sub_rtx_with_search_term): Likewise.
8794 (arm_find_sub_rtx_with_code): Likewise.
8795 (arm_early_load_addr_dep): Add sanity checking.
8796 (arm_no_early_alu_shift_dep): Likewise.
8797 (arm_no_early_alu_shift_value_dep): Likewise.
8798 (arm_no_early_mul_dep): Likewise.
8799 (arm_no_early_store_addr_dep): Likewise.
8801 2013-11-08 Richard Biener <rguenther@suse.de>
8803 PR tree-optimization/59047
8804 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8806 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8808 * common.opt (fcheck-pointer-bounds): Move to ...
8809 * c-family/c.opt: ... here.
8810 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8811 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8812 * langhooks.h (lang_hooks): Remove chkp_supported field.
8813 * toplev.c (process_options): Remove chkp_supported check.
8815 2013-11-08 Richard Biener <rguenther@suse.de>
8817 PR tree-optimization/59038
8818 PR tree-optimization/58955
8819 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8820 previous change. Handle known dependences correctly.
8822 2013-11-08 Tom de Vries <tom@codesourcery.com>
8824 * config/rs6000/t-xilinx: Remove duplicate contents.
8826 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8827 Joseph Myers <joseph@codesourcery.com>
8829 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8830 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8831 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8832 (struct tree_base): Add atomic_flag field.
8833 * tree.h (TYPE_ATOMIC): New accessor macro.
8834 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8835 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8836 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8837 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8838 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8839 (find_atomic_core_type): New function.
8840 (build_qualified_type): Adjust alignment for qualified types.
8841 (build_atomic_base): New function
8842 (build_common_tree_nodes): Build atomicQI_type_node,
8843 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8845 * print-tree.c (print_node): Print atomic qualifier.
8846 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8847 * target.def (atomic_assign_expand_fenv): New hook.
8848 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8849 * doc/tm.texi: Regenerate.
8850 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8851 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8852 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8853 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8855 * config/i386/i386.c (enum ix86_builtins): Add
8856 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8857 IX86_BUILTIN_FNCLEX.
8858 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8859 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8860 (ix86_expand_builtin): Handle the new built-in functions.
8861 (ix86_atomic_assign_expand_fenv): New function.
8862 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8863 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8864 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8865 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8867 2013-11-07 Steve Ellcey <sellcey@mips.com>
8869 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8870 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8871 (MULTILIB_DIRNAMES): Add fp64 directory.
8872 (MULTILIB_EXCEPTIONS): Add new exclusions.
8874 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8876 * gimplify.c (gimple_regimplify_operands): Do not set
8878 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8879 (rewrite_close_phi_out_of_ssa): Same.
8880 (rewrite_phi_out_of_ssa): Same.
8881 (rewrite_degenerate_phi): Same.
8882 (handle_scalar_deps_crossing_scop_limits): Same.
8883 * tree-if-conv.c (predicate_scalar_phi): Same.
8884 * tree-parloops.c (create_loads_for_reductions): Same.
8885 (create_final_loads_for_reduction): Same.
8886 (create_loads_and_stores_for_name): Same.
8887 (transform_to_exit_first_loop): Same.
8888 (create_parallel_loop): Same.
8889 * tree-ssa-loop-im.c
8890 (move_computations_dom_walker::before_dom_children): Same.
8891 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8892 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8893 * tree-ssa-propagate.c (substitute_and_fold): Same.
8894 * tree-vect-loop.c (vect_finalize_reduction): Same.
8895 * tree-vect-stmts.c (vectorizable_call): Same.
8897 2013-11-07 Mike Stump <mikestump@comcast.net>
8899 * config/pdp11/pdp11.c: Include dbxout.h.
8900 * config/picochip/picochip.c: Likewise.
8902 2013-11-07 Cong Hou <congh@google.com>
8904 PR tree-optimization/56764
8905 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8906 Combine alias checks if it is possible to amortize the runtime
8907 overhead. Return the number of alias checks after merging.
8908 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8909 Use the function vect_create_cond_for_alias_checks () to check
8910 the number of alias checks.
8912 2013-11-07 Jeff Law <law@redhat.com>
8914 * varpool.c (ctor_for_folding): Fix typo in comment.
8916 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8918 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8919 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8921 2013-11-07 Jeff Law <law@redhat.com>
8923 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8925 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8926 No longer check if we have __builtin_trap, assume it's available.
8928 2013-11-07 Diego Novillo <dnovillo@google.com>
8930 * attribs.c (lookup_scoped_attribute_spec): Make static.
8931 (get_attribute_namespace): Likewise.
8932 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8933 (validate_arglist): Move earlier in the file. Make static.
8934 (expand_stack_restore): Move from stmt.c
8935 (expand_stack_save): Move from stmt.c
8936 (rewrite_call_expr_array): Move earlier in the file.
8937 (rewrite_call_expr_valist): Likewise.
8938 * cfgexpand.c: Include hard-reg-set.h before tree.h
8941 (expand_asm_loc): Move from stmt.c.
8942 (n_occurrences): Move from stmt.c.
8943 (check_operand_nalternatives): Move from stmt.c.
8944 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8945 (expand_asm_operands): Move from stmt.c
8946 (expand_asm_stmt): Move from stmt.c
8947 (expand_computed_goto): Move from stmt.c
8948 (expand_goto): Move from stmt.c
8949 (expand_null_return_1): Move from stmt.c
8950 (expand_null_return): Move from stmt.c
8951 (expand_value_return): Move from stmt.c
8952 (expand_return): Move from stmt.c
8953 (expand_main_function): Move from function.c
8954 (stack_protect_prologue): Move from function.c
8955 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8956 (build_function_decl_skip_args): Move from tree.c.
8957 * explow.c (tree_expr_size): Move from tree.c.
8958 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8959 (fields_length): Move from tree.c.
8960 * fold-const.c (size_low_cst): Move from tree.c.
8961 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8962 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8963 (fold_build3_initializer_loc): Remove.
8964 (tree_invalid_nonnegative_warnv_p): Make static.
8965 * function.c (expand_main_function): Move to cfgexpand.c.
8966 (stack_protect_prologue): Move to cfgexpand.c.
8967 (set_insn_locations): Move earlier in the file.
8968 * gimple-fold.c: Include langhooks.h.
8969 (truth_type_for): Move from tree.c.
8970 * print-tree.c (print_vec_tree): Remove.
8971 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8972 (expand_goto): Move to cfgexpand.c.
8973 (n_occurrences): Move to cfgexpand.c.
8974 (expand_asm_loc): Move to cfgexpand.c
8975 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8976 (expand_asm_operands): Move to cfgexpand.c.
8977 (expand_asm_stmt): Move to cfgexpand.c.
8978 (check_operand_nalternatives): Move to cfgexpand.c
8979 (expand_null_return): Move to cfgexpand.c.
8980 (expand_value_return): Move to cfgexpand.c.
8981 (expand_null_return_1): Move to cfgexpand.c.
8982 (expand_return): Move to cfgexpand.c.
8983 (expand_stack_save): Move to builtins.c.
8984 (expand_stack_restore): Move to builtins.c
8985 * symtab.c: Include output.h.
8986 (decl_assembler_name_hash): Move from tree.c.
8987 (decl_assembler_name_equal): Move from tree.c.
8988 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8989 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8990 (range_in_array_bounds_p): Move from tree.c.
8991 * tree-object-size.c (fini_object_sizes): Make static.
8992 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8993 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8994 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8995 (tree_expr_size): Move to explow.c.
8996 (decl_assembler_name_hash): Move to symtab.c.
8997 (real_twop): Remove.
8998 (tree_expr_size): Move to explow.c.
8999 (stabilize_reference_1): Move earlier in the file. Make static.
9000 (omp_remove_redundant_declare_simd_attrs): Remove.
9001 (simple_cst_list_equal): Move earlier in the file. Make static.
9002 (size_low_cst): Move to fold-const.c.
9003 (build_type_no_quals): Remove.
9004 (build_function_type_skip_args): Move to cgraphclones.c.
9005 (build_function_decl_skip_args): Move to cgraphclones.c.
9006 (in_array_bounds_p): Move to tree-eh.c.
9007 (range_in_array_bounds_p): Move to tree-eh.c.
9008 (truth_type_for): Move to gimple-fold.c.
9009 (list_equal_p): Remove.
9010 * tree.h (decl_assembler_name_equal): Remove.
9011 (decl_assembler_name_hash): Remove.
9012 (truth_type_for): Remove.
9013 (build_type_no_quals): Remove.
9014 (build_function_decl_skip_args): Remove.
9015 (in_array_bounds_p): Remove.
9016 (range_in_array_bounds_p): Remove.
9017 (size_low_cst): Remove.
9018 (omp_remove_redundant_declare_simd_attrs): Remove.
9019 (tree_expr_size): Remove.
9020 (fields_length): Remove.
9021 (stabilize_reference_1): Remove.
9022 (expand_goto): Remove.
9023 (expand_stack_save): Remove.
9024 (expand_stack_restore): Remove.
9025 (expand_return): Remove.
9026 (fold_build3_initializer_loc): Remove.
9027 (tree_expr_nonzero_p): Remove.
9028 (tree_invalid_nonnegative_warnv_p): Remove.
9029 (tree_expr_nonzero_warnv_p): Remove.
9030 (fold_builtin_snprintf_chk): Remove.
9031 (validate_arglist): Remove.
9032 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9033 (simple_cst_list_equal): Remove.
9034 (real_twop): Remove.
9035 (expand_main_function): Remove.
9036 (stack_protect_prologue): Remove.
9037 (print_vec_tree): Remove.
9038 (lookup_scoped_attribute_spec): Remove.
9039 (get_attribute_namespace): Remove.
9040 (expand_computed_goto): Remove.
9041 (expand_asm_stmt): Remove.
9042 (list_equal_p): Remove.
9043 (ssa_name_nonnegative_p): Remove.
9044 (fini_object_sizes): Remove.
9045 (addr_expr_of_non_mem_decl_p): Remove.
9046 (is_tm_safe_or_pure): Move to trans-mem.c.
9047 (more_const_call_expr_args_p): Remove.
9048 (save_vtable_map_decl): Remove.
9050 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9052 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9053 linker plugins, too.
9055 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9056 link to libgomp and its dependencies.
9057 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9058 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9059 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9060 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9062 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9064 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9065 (determine_value_range): Add loop argument. Use get_range_info to
9067 (bound_difference): Adjust caller.
9069 2013-11-07 Richard Biener <rguenther@suse.de>
9070 Jakub Jelinek <jakub@redhat.com>
9072 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9073 latches from header PHI arguments from the latch edge.
9075 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9078 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9080 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9082 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9083 misaligned_prologue_used when it has been set.
9085 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9086 Jakub Jelinek <jakub@redhat.com>
9089 * asan.c (get_mem_refs_of_builtin_call): Allow
9090 integer literals as addresses in instrumented builtins.
9092 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9094 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9095 Explain why plus_constant is not used.
9097 2013-11-07 Richard Biener <rguenther@suse.de>
9099 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9100 (canonicalize_value): ... this. Also handle stripping of
9102 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9103 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9104 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9106 2013-11-07 Richard Biener <rguenther@suse.de>
9108 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9110 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9113 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9114 with stack_pointer_rtx.
9116 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9118 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9119 using operand_equal_p.
9121 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9123 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9124 * tree-affine.c (get_inner_reference_aff): Return base.
9125 * tree-affine.h (get_inner_reference_aff): Change prototype.
9127 2013-11-06 Tobias Burnus <burnus@net-b.de>
9129 * doc/invoke.texi (Wdate-time): Fix typo.
9131 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9133 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9134 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9135 fp_arith_reg_operand instead of arith_reg_operand.
9137 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9139 * config/sh/sh.md (adddi3): Remove empty constraints.
9140 Remove can_create_pseudo_p and arith_reg_operand check.
9141 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9142 Split before reload.
9144 2013-11-06 Jeff Law <law@redhat.com>
9145 Tom Tromey <tromey@redhat.com>
9147 * gdbinit.in: Disable strict type checking.
9149 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9151 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9152 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9153 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9154 (rest_of_handle_live_range_shrinkage): Ditto
9155 (class pass_live_range_shrinkage): Ditto.
9156 (pass_data_live_range_shrinkage): Ditto.
9157 (make_pass_live_range_shrinkage): Ditto.
9158 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9159 (finish_live_range_shrinkage): Ditto.
9160 * sched-deps.c (create_insn_reg_set): Make void return value.
9161 * passes.def: Add pass_live_range_shrinkage.
9162 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9163 * haifa-sched.c (live_range_shrinkage_p): New.
9164 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9166 (rank_for_schedule): Add code for pressure relief through live
9168 (schedule_insn): Print more debug info.
9169 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9170 through live range shrinkage.
9171 * doc/invoke.texi (-flive-range-shrinkage): New.
9172 * common.opt (flive-range-shrinkage): New.
9174 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9177 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9178 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9179 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9180 RTXes that return in AVX256 register.
9182 2013-11-06 Richard Biener <rguenther@suse.de>
9184 PR tree-optimization/58653
9185 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9186 (prepare_initializers_chain): Adjust.
9188 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9190 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9191 (gimple_in_transaction): Use bb_in_transaction.
9192 * basic-block.h (bb_in_transaction): Relocate here and rename.
9193 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9195 2013-11-06 Richard Biener <rguenther@suse.de>
9197 * tree.c (drop_tree_overflow): New function.
9198 * tree.h (drop_tree_overflow): Declare.
9199 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9200 * tree-vrp.c (range_int_cst_singleton_p): Use
9201 is_overflow_infinity instead of testing TREE_OVERFLOW.
9202 (extract_range_from_assert): Likewise.
9203 (zero_nonzero_bits_from_vr): Likewise.
9204 (extract_range_basic): Likewise.
9205 (register_new_assert_for): Use drop_tree_overflow.
9206 (vrp_visit_phi_node): Likewise.
9208 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9210 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9211 checking for leaf functions without dynamic stack allocation.
9212 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9213 (ia64_expand_prologue): Likewise.
9214 * config/mips/mips.c (mips_expand_prologue): Likewise.
9215 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9216 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9217 (sparc_flat_expand_prologue): Likewise.
9219 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9221 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9222 (__ST3_LANE_FUNC): Likewise.
9223 (__ST4_LANE_FUNC): Likewise.
9225 2013-11-06 Nick Clifton <nickc@redhat.com>
9227 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9228 name returned by msp430_mcu_name.
9229 (LIB_SPEC): If a -T option has not been specified then set a
9230 default, mcu-specific, linker script.
9231 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9232 * config/msp430/msp430.c (msp430x_names): Likewise.
9233 Alpha sort the names for ease of comparison.
9234 (msp430_mcu_name): New function: Returns a string suitable for
9235 use as a C preprocessor symbol based upon the name of the MCU
9237 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9239 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9241 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9242 unless it is the last part of a spec substring.
9243 * doc/invoke.texi (Spec Files): Document space insertion
9246 2013-11-06 Christian Bruel <christian.bruel@st.com>
9248 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9249 Factorize probabilities, Use adjust_address instead of
9250 adjust_automodify_address when possible. Enable for optimize.
9251 (sh_expand_strlen): New function.
9252 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9253 * config/sh/sh.md (strlensi): New pattern.
9254 (UNSPEC_BUILTIN_STRLEN): Define.
9256 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9259 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9260 (expand_assignment): If *bitpos is negative, set *offset
9261 and adjust *bitpos, so that it is not negative.
9263 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9265 * config/i386/bdver3.md : Added two additional decoder units
9266 to support issue rate of 4 and remodeled vector unit.
9267 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9268 architectures is set to 4.
9269 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9270 lookahead is set to 4 for BD architectures.
9272 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9274 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9275 Remove restriction against use of VSX instructions when generating
9276 code for little endian mode.
9278 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9280 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9281 for both big and little endian.
9282 (mulv8hi3): Swap input operands for merge high and merge low
9283 instructions for little endian.
9285 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9287 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9288 define_insn to define_expand that uses even patterns for big
9289 endian and odd patterns for little endian.
9290 (vec_widen_smult_even_v16qi): Likewise.
9291 (vec_widen_umult_even_v8hi): Likewise.
9292 (vec_widen_smult_even_v8hi): Likewise.
9293 (vec_widen_umult_odd_v16qi): Likewise.
9294 (vec_widen_smult_odd_v16qi): Likewise.
9295 (vec_widen_umult_odd_v8hi): Likewise.
9296 (vec_widen_smult_odd_v8hi): Likewise.
9297 (altivec_vmuleub): New define_insn.
9298 (altivec_vmuloub): Likewise.
9299 (altivec_vmulesb): Likewise.
9300 (altivec_vmulosb): Likewise.
9301 (altivec_vmuleuh): Likewise.
9302 (altivec_vmulouh): Likewise.
9303 (altivec_vmulesh): Likewise.
9304 (altivec_vmulosh): Likewise.
9306 2013-11-05 Mike Stump <mikestump@comcast.net>
9308 * Makefile.in (mostlyclean): Remove c-family objects.
9310 2013-11-05 Ian Lance Taylor <iant@google.com>
9312 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9313 If possible, add .cfi directives to record change to bx.
9314 * config/i386/i386.c (ix86_emit_cfi): New function.
9315 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9317 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9319 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9320 immediately after a label for a tablejump pattern.
9322 * config/arm/arm.c (is_jump_table): Remove.
9323 (create_fix_barrier): Use tablejump_p instead.
9324 (arm_reorg): Likewise.
9325 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9326 (thumb2_output_casesi): Likewise.
9327 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9328 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9329 casesi_shift_media, casesi_load_media): Likewise.
9330 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9331 * config/microblaze/microblaze.md: Likewise.
9333 2013-11-05 Tobias Burnus <burnus@net-b.de>
9335 * doc/invoke.texi (-Wdate-time): Document.
9337 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9339 * double-int.c (lshift_double, rshift_double): Remove
9340 SHIFT_COUNT_TRUNCATED handling.
9342 2013-11-05 Jeff Law <law@redhat.com>
9344 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9345 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9346 * gimple-ssa-isolate-paths.c: New file.
9347 * gimple.c (check_loadstore): New function.
9348 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9349 Verify OP is in the argument list and the argument corresponding
9350 to OP is a pointer type. Use operand_equal_p rather than
9351 pointer equality when testing if OP is on the nonnull list.
9352 Use check_loadstore rather than count_ptr_derefs. Handle
9353 GIMPLE_RETURN statements.
9354 * tree-vrp.c (infer_nonnull_range): Remove.
9355 * gimple.h (infer_nonnull_range): Declare.
9356 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9357 * passes.def: Add pass_isolate_erroneous_paths.
9358 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9359 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9360 * tree-ssa.c (struct count_ptr_d): Remove.
9361 (count_ptr_derefs, count_uses_and_derefs): Remove.
9362 * tree-ssa.h (count_uses_and_derefs): Remove.
9364 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9366 PR rtl-optimization/58997
9367 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9368 get_iv_value to be in iv->mode rather than iv->extend_mode.
9369 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9370 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9371 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9374 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9376 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9378 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9379 Move to gimple-expr.h.
9380 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9381 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9382 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9383 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9385 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9386 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9387 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9388 is_gimple_address, is_gimple_invariant_address,
9389 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9390 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9391 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9392 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9393 gimple_decl_printable_name, useless_type_conversion_p,
9394 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9396 * gimple-expr.c: New File.
9397 (useless_type_conversion_p, gimple_set_body, gimple_body,
9398 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9399 gimple_can_coalesce_p, extract_ops_from_tree_1,
9400 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9401 is_gimple_address, is_gimple_invariant_address,
9402 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9403 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9404 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9405 is_gimple_mem_ref_addr): Relocate here.
9406 * Makefile.in (OBJS): Add gimple-expr.o.
9408 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9410 * gengtype-parse.c (struct_field_seq): Support empty structs.
9412 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9414 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9416 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9418 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9420 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9422 (LONG_DOUBLE_TYPE_SIZE): New define.
9423 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9425 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9428 * doc/extend.texi [visibility ("visibility_type")]: Add example
9429 about visibility attribute on namespace declaration.
9431 2013-11-05 Richard Biener <rguenther@suse.de>
9434 * passes.def (all_passes): Start with pass_fixup_cfg again.
9436 2013-11-05 Richard Biener <rguenther@suse.de>
9438 PR tree-optimization/58955
9439 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9442 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9444 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9446 (vec_pack_ufix_trunc_v2df): Likewise.
9448 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9451 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9452 pattern, instead of word_mode.
9454 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9456 (set_storage_via_setmem): Likewise.
9458 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9460 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9461 gimple.h and the rest of the condition in eliminate_build.
9462 (eliminate_build): Call new routine.
9463 * gimple.h (phi_ssa_name_p): Delete.
9465 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9467 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9468 case of no prefix and reserving zero slots, because when that's the
9469 case we'll never get here.
9470 * vec.h (va_heap::reserve): Don't try and handle
9471 vec_prefix::calculate_allocation returning zero because that should
9474 2013-11-05 Richard Biener <rguenther@suse.de>
9477 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9478 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9479 process trailing array detection before diving into the
9480 view-converted object (and possibly apply some extra offset).
9482 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9484 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9486 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9488 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9490 PR tree-optimization/58958
9491 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9492 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9494 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9496 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9497 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9499 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9501 PR tree-optimization/58984
9502 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9503 set *SIZE_P if non-NULL on success.
9504 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9506 (ipcp_transform_function): Likewise. Punt if size of access
9507 is different from TYPE_SIZE on v->value's type.
9509 2013-11-05 Tobias Burnus <burnus@net-b.de>
9511 * doc/invoke.texi (-fopenmp-simd): Document new option.
9512 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9513 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9514 * tree.c (attribute_value_equal): Ditto.
9516 2013-11-04 Wei Mi <wmi@google.com>
9518 * sched-rgn.c (add_branch_dependences): Keep insns in
9519 a SCHED_GROUP at the end of BB to remain their location.
9521 2013-11-04 Wei Mi <wmi@google.com>
9523 * config/i386/i386.c (memory_address_length): Extract a part
9524 of code to rip_relative_addr_p.
9525 (rip_relative_addr_p): New Function.
9526 (ix86_macro_fusion_p): Ditto.
9527 (ix86_macro_fusion_pair_p): Ditto.
9528 * config/i386/i386.h: Add new tune features about macro-fusion.
9529 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9530 * doc/tm.texi: Generated.
9531 * doc/tm.texi.in: Ditto.
9532 * haifa-sched.c (try_group_insn): New Function.
9533 (group_insns_for_macro_fusion): Ditto.
9534 (sched_init): Call group_insns_for_macro_fusion.
9535 * target.def: Add two hooks: macro_fusion_p and
9536 macro_fusion_pair_p.
9538 2013-11-04 Kostya Serebryany <kcc@google.com>
9540 Update to match the changed asan API.
9541 * asan.c (asan_function_start): New function.
9542 (asan_emit_stack_protection): Update the string stored in the
9543 stack red zone to match new API. Store the PC of the current
9544 function in the red zone.
9545 (asan_global_struct): Update the __asan_global definition to match
9547 (asan_add_global): Ditto.
9548 * asan.h (asan_function_start): New prototype.
9549 * final.c (final_start_function): Call asan_function_start.
9550 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9553 2013-11-04 Wei Mi <wmi@google.com>
9555 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9556 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9557 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9558 (ix86_issue_rate): Ditto.
9559 (ix86_adjust_cost): Ditto.
9560 (ia32_multipass_dfa_lookahead): Ditto.
9561 (ix86_sched_init_global): Ditto.
9562 (get_builtin_code_for_version): Ditto.
9563 * config/i386/i386.h (enum target_cpu_default): Ditto.
9564 (enum processor_type): Ditto.
9565 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9567 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9569 PR rtl-optimization/58967
9570 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9571 !lra_in_progress for mode sizes bigger word.
9573 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9575 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9576 arguments to merge instruction for little endian.
9577 (vec_widen_umult_lo_v16qi): Likewise.
9578 (vec_widen_smult_hi_v16qi): Likewise.
9579 (vec_widen_smult_lo_v16qi): Likewise.
9580 (vec_widen_umult_hi_v8hi): Likewise.
9581 (vec_widen_umult_lo_v8hi): Likewise.
9582 (vec_widen_smult_hi_v8hi): Likewise.
9583 (vec_widen_smult_lo_v8hi): Likewise.
9585 2013-11-04 Ian Lance Taylor <iant@google.com>
9587 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9588 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9589 builtins that take pointers.
9590 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9591 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9592 (run_gcc): Pass -fnon-call-exceptions.
9594 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9596 * optabs.c (expand_vec_perm): Revert one incorrect line from
9599 PR tree-optimization/58978
9600 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9601 use_stmt by single_imm_use directly. Only call single_imm_use
9604 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9606 PR rtl-optimization/58968
9607 * lra-spills.c (return_regno_p): New function.
9608 (lra_final_code_change): Use it.
9610 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9612 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9613 * target.def (float_exceptions_rounding_supported_p): New hook.
9614 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9616 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9617 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9619 * doc/tm.texi: Regenerate.
9620 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9621 * config/rs6000/rs6000-linux.c: New file.
9622 * config/rs6000/rs6000-protos.h
9623 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9624 * config/rs6000/linux.h
9625 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9626 * config/rs6000/linux64.h
9627 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9628 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9629 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9631 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9633 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9634 Replace the define_insn_and_split with a define_insn and two
9635 define_splits, with the split after reload re-permuting the source
9636 register to its original value.
9637 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9638 (*vsx_le_perm_store_v8hi): Likewise.
9639 (*vsx_le_perm_store_v16qi): Likewise.
9641 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9643 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9646 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9648 PR tree-optimization/58946
9649 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9650 bbs with bbinfo[idx].op != NULL before all blocks with
9651 bbinfo[idx].op == NULL.
9653 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9655 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9656 (avr_dump_double_int_hex): Likewise.
9657 (avr_log_vadump): Remove %D and %X handling.
9658 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9659 (avr_map_op_t): Change map from double_int to unsigned int.
9660 (avr_map_op): Update accordingly.
9661 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9662 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9663 unsigned ints rather than double_ints.
9665 2013-11-03 Marek Polacek <polacek@redhat.com>
9667 Implement -fsanitize=vla-bound.
9668 * opts.c (common_handle_option): Handle vla-bound.
9669 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9670 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9671 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9673 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9675 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9678 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9680 * config/i386/constraints.md (Ts, Tv): New address constrains.
9681 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9682 constraint for address_no_seg_operand.
9683 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9684 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9685 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9686 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9687 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9688 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9689 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9690 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9691 constraint for vsib_address_operand.
9693 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9695 * gcse.c (pre_delete): Remove references to regmove from comments.
9696 * recog.c: (validate_replace_rtx_1): Likewise.
9697 * config/rl78/rl78.c: Likewise.
9698 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9699 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9700 * common/config/mmix/mmix-common.c: Likewise.
9702 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9704 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9705 * gimplify.c (gimplify_compound_lval): Likewise.
9706 * graphite-clast-to-gimple.c (gloog): Likewise.
9707 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9708 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9709 (limit_scop); Likewise.
9710 (build_scops): Likewise.
9711 (dot_scop): Likewise.
9712 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9713 (build_scop_drs): Likewise.
9714 (insert_stmts): Likewise.
9715 (insert_out_of_ssa_copy): Likewise.
9716 (remove_phi): Likewise.
9717 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9718 * hw-doloop.c (discover_loop): Likewise.
9719 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9720 * tree-dfa.c (dump_enumerated_decls): Likewise.
9721 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9722 * tree-inline.c (tree_function_versioning): Likewise.
9723 * tree-loop-distribution.c (build_rdg): Likewise.
9724 (rdg_flag_vertex_and_dependent): Likewise.
9725 (distribute_loop): Likewise.
9726 * tree-parloops.c (loop_parallel_p): Likewise.
9727 (eliminate_local_variables): Likewise.
9728 (separate_decls_in_region): Likewise.
9729 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9730 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9731 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9732 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9733 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9734 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9735 (vectorizable_condition): Likewise.
9737 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9739 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9740 * configure: Regenerate.
9741 * config/i386/i386.md (*movdi_internal): Change
9742 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9743 (*movdf_internal): Ditto.
9744 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9745 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9746 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9748 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9750 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9753 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9755 Automated part of renaming of symtab_node_base to symtab_node.
9757 Patch autogenerated by rename_symtab.py from
9758 https://github.com/davidmalcolm/gcc-refactoring-scripts
9759 revision 58bb219cc090b2f4516a9297d868c245495ee622
9760 with ChangeLog entry fixed up by hand.
9762 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9764 (cgraph_node_for_asm): Likewise.
9765 * cgraph.h (symtab_node_base): Likewise.
9766 (cgraph_node): Likewise.
9767 (varpool_node): Likewise.
9768 (is_a_helper <cgraph_node>::test): Likewise.
9769 (is_a_helper <varpool_node>::test): Likewise.
9770 (symtab_nodes): Likewise.
9771 (symtab_register_node): Likewise.
9772 (symtab_unregister_node): Likewise.
9773 (symtab_remove_node): Likewise.
9774 (symtab_get_node): Likewise.
9775 (symtab_node_for_asm): Likewise.
9776 (symtab_node_asm_name): Likewise.
9777 (symtab_node_name): Likewise.
9778 (symtab_insert_node_to_hashtable): Likewise.
9779 (symtab_add_to_same_comdat_group): Likewise.
9780 (symtab_dissolve_same_comdat_group_list): Likewise.
9781 (dump_symtab_node): Likewise.
9782 (debug_symtab_node): Likewise.
9783 (dump_symtab_base): Likewise.
9784 (verify_symtab_node): Likewise.
9785 (verify_symtab_base): Likewise.
9786 (symtab_used_from_object_file_p): Likewise.
9787 (symtab_alias_ultimate_target): Likewise.
9788 (symtab_resolve_alias): Likewise.
9789 (fixup_same_cpp_alias_visibility): Likewise.
9790 (symtab_for_node_and_aliases): Likewise.
9791 (symtab_nonoverwritable_alias): Likewise.
9792 (availability symtab_node_availability): Likewise.
9793 (symtab_semantically_equivalent_p): Likewise.
9794 (fixup_same_cpp_alias_visibility): Likewise.
9795 (symtab_prevail_in_asm_name_hash): Likewise.
9797 (varpool): Likewise.
9798 (varpool_first_variable): Likewise.
9799 (varpool_next_variable): Likewise.
9800 (varpool_first_static_initializer): Likewise.
9801 (varpool_next_static_initializer): Likewise.
9802 (varpool_first_defined_variable): Likewise.
9803 (varpool_next_defined_variable): Likewise.
9804 (cgraph_first_defined_function): Likewise.
9805 (cgraph_next_defined_function): Likewise.
9806 (cgraph_first_function): Likewise.
9807 (cgraph_next_function): Likewise.
9808 (cgraph_first_function_with_gimple_body): Likewise.
9809 (cgraph_next_function_with_gimple_body): Likewise.
9810 (symtab_alias_target): Likewise.
9811 (symtab_real_symbol_p): Likewise.
9812 (symtab_can_be_discarded): Likewise.
9813 * cgraphbuild.c (mark_address): Likewise.
9814 (mark_load): Likewise.
9815 (mark_store): Likewise.
9816 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9818 (enqueue_node): Likewise.
9819 (referred_to_p): Likewise.
9820 (cgraph_process_same_body_aliases): Likewise.
9821 (analyze_functions): Likewise.
9822 (handle_alias_pairs): Likewise.
9823 (output_weakrefs): Likewise.
9824 (compile): Likewise.
9825 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9826 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9827 * ipa-prop.c (remove_described_reference): Likewise.
9828 (try_decrement_rdesc_refcount): Likewise.
9829 (ipa_edge_duplication_hook): Likewise.
9830 * ipa-ref.c (ipa_record_reference): Likewise.
9831 (ipa_maybe_record_reference): Likewise.
9832 (ipa_clone_ref): Likewise.
9833 (ipa_clone_references): Likewise.
9834 (ipa_clone_referring): Likewise.
9835 (ipa_find_reference): Likewise.
9836 (ipa_remove_stmt_references): Likewise.
9837 (ipa_clear_stmts_in_references): Likewise.
9838 * ipa-ref.h (symtab_node_base): Likewise.
9839 (ipa_ref): Likewise.
9840 (ipa_record_reference): Likewise.
9841 (ipa_maybe_record_reference): Likewise.
9842 (ipa_clone_references): Likewise.
9843 (ipa_clone_referring): Likewise.
9844 (ipa_clone_ref): Likewise.
9845 (ipa_find_reference): Likewise.
9846 (ipa_remove_stmt_references): Likewise.
9847 (ipa_clear_stmts_in_references): Likewise.
9848 * ipa-reference.c (ipa_reference_write_optimization_summary):
9850 * ipa.c (enqueue_node): Likewise.
9851 (process_references): Likewise.
9852 (walk_polymorphic_call_targets): Likewise.
9853 (symtab_remove_unreachable_nodes): Likewise.
9854 (address_taken_from_non_vtable_p): Likewise.
9855 (comdat_can_be_unshared_p_1): Likewise.
9856 (comdat_can_be_unshared_p): Likewise.
9857 (can_replace_by_local_alias): Likewise.
9858 (function_and_variable_visibility): Likewise.
9859 * is-a.h: Likewise (within example in comment).
9860 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9861 (lto_symtab_encoder_encode): Likewise.
9862 (lto_symtab_encoder_delete_node): Likewise.
9863 (lto_symtab_encoder_in_partition_p): Likewise.
9864 (lto_set_symtab_encoder_in_partition): Likewise.
9865 (output_refs): Likewise.
9866 (compute_ltrans_boundary): Likewise.
9867 (output_symtab): Likewise.
9868 (input_node): Likewise.
9869 (input_ref): Likewise.
9870 (input_edge): Likewise.
9871 (input_cgraph_1): Likewise.
9872 (input_refs): Likewise.
9873 (output_cgraph_opt_summary): Likewise.
9874 (input_node_opt_summary): Likewise.
9875 (input_cgraph_opt_section): Likewise.
9876 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9878 * lto-streamer-out.c (lto_output): Likewise.
9879 (output_symbol_p): Likewise.
9880 (produce_symtab): Likewise.
9881 * lto-streamer.h (lto_encoder_entry): Likewise.
9882 (lto_free_function_in_decl_state_for_node): Likewise.
9883 (lto_symtab_encoder_encode): Likewise.
9884 (lto_symtab_encoder_delete_node): Likewise.
9885 (lto_symtab_encoder_in_partition_p): Likewise.
9886 (lto_set_symtab_encoder_in_partition): Likewise.
9887 (lto_symtab_encoder_lookup): Likewise.
9888 (lsei_node): Likewise.
9889 (lto_symtab_encoder_deref): Likewise.
9890 * symtab.c (symtab_hash): Likewise.
9891 (assembler_name_hash): Likewise.
9892 (symtab_nodes): Likewise.
9893 (hash_node): Likewise.
9894 (eq_node): Likewise.
9895 (hash_node_by_assembler_name): Likewise.
9896 (eq_assembler_name): Likewise.
9897 (insert_to_assembler_name_hash): Likewise.
9898 (unlink_from_assembler_name_hash): Likewise.
9899 (symtab_prevail_in_asm_name_hash): Likewise.
9900 (symtab_register_node): Likewise.
9901 (symtab_insert_node_to_hashtable): Likewise.
9902 (symtab_unregister_node): Likewise.
9903 (symtab_get_node): Likewise.
9904 (symtab_remove_node): Likewise.
9905 (symtab_initialize_asm_name_hash): Likewise.
9906 (symtab_node_for_asm): Likewise.
9907 (symtab_add_to_same_comdat_group): Likewise.
9908 (symtab_dissolve_same_comdat_group_list): Likewise.
9909 (symtab_node_asm_name): Likewise.
9910 (symtab_node_name): Likewise.
9911 (dump_symtab_base): Likewise.
9912 (dump_symtab_node): Likewise.
9913 (dump_symtab): Likewise.
9914 (debug_symtab_node): Likewise.
9915 (verify_symtab_base): Likewise.
9916 (verify_symtab_node): Likewise.
9917 (verify_symtab): Likewise.
9918 (symtab_used_from_object_file_p): Likewise.
9919 (symtab_node_availability): Likewise.
9920 (symtab_alias_ultimate_target): Likewise.
9921 (fixup_same_cpp_alias_visibility): Likewise.
9922 (symtab_resolve_alias): Likewise.
9923 (symtab_for_node_and_aliases): Likewise.
9924 (symtab_for_node_and_aliases): Likewise.
9925 (symtab_nonoverwritable_alias_1): Likewise.
9926 (symtab_nonoverwritable_alias): Likewise.
9927 (symtab_semantically_equivalent_p): Likewise.
9928 * value-prof.c (init_node_map): Likewise.
9929 * varasm.c (find_decl): Likewise.
9930 * varpool.c (varpool_node_for_asm): Likewise.
9931 (varpool_remove_unreferenced_decls): Likewise.
9933 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9935 Manual part of renaming of symtab_node_base to symtab_node.
9937 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9938 clashes with the preferred name for the base class.
9939 (const_symtab_node): Remove redundant typedef.
9941 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9943 * optabs.c (expand_vec_perm): Avoid vector mode punning
9944 SUBREGs in SET_DEST.
9945 * expmed.c (store_bit_field_1): Likewise.
9946 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9947 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9948 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9949 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9950 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9951 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9952 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9953 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9954 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9955 expand_vec_perm_vpshufb2_vpermq,
9956 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9957 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9958 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9959 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9962 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9964 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9965 Use gcc_unreachable for unhandled modes. Do not check results of
9966 expand_simple_binop. If not expanded to target, move the result.
9968 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9969 Shiva Chen <shiva0217@gmail.com>
9971 * config.gcc (nds32*-*-*): Add nds32 target.
9972 * config/nds32/nds32.c: New file.
9973 * config/nds32/nds32.h: New file.
9974 * config/nds32/nds32.md: New file.
9975 * config/nds32/constants.md: New file.
9976 * config/nds32/constraints.md: New file.
9977 * config/nds32/iterators.md: New file.
9978 * config/nds32/nds32-doubleword.md: New file.
9979 * config/nds32/nds32-intrinsic.md: New file.
9980 * config/nds32/nds32_intrinsic.h: New file.
9981 * config/nds32/nds32-modes.def: New file.
9982 * config/nds32/nds32-multiple.md: New file.
9983 * config/nds32/nds32.opt: New file.
9984 * config/nds32/nds32-opts.h: New file.
9985 * config/nds32/nds32-protos.h: New file.
9986 * config/nds32/nds32-peephole2.md: New file.
9987 * config/nds32/pipelines.md: New file.
9988 * config/nds32/predicates.md: New file.
9989 * config/nds32/t-mlibs: New file.
9990 * common/config/nds32: New directory and files.
9992 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9993 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9994 * doc/install.texi (Cross-Compiler-Specific Options): Document
9995 --with-nds32-lib for nds32 target.
9996 * doc/extend.texi (Function Attributes, Target Builtins): Document
9997 nds32 specific attributes.
9999 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10001 * lra-constraints (process_alt_operands): Use the result
10002 elimination register for operand when matching constraints.
10004 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10006 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10007 (remove_range_assertions): Call it.
10009 * tree.c (tree_ctz): New function.
10010 * tree.h (tree_ctz): New prototype.
10011 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10012 first argument from tree to const_tree.
10013 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10014 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10015 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10017 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10018 * tree-vect-loop.c (vect_analyze_loop_operations,
10019 vect_transform_loop): Don't force scalar loop for bound just because
10020 number of iterations is unknown, only do it if it is not known to be
10021 a multiple of vectorization_factor.
10022 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10024 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10025 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10026 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10027 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10028 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10029 a default def isn't partially constant.
10030 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10031 is known to be partially zero.
10032 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10033 to see if a default def isn't partially constant.
10034 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10035 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10037 (set_nonzero_bits, get_nonzero_bits): New functions.
10039 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10040 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10041 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10042 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10043 uses but in the condition and ASSERT_EXPR and the other successor of
10044 the predecessor bb is __builtin_unreachable (), set_range_info of the
10045 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10047 2013-10-31 Martin Jambor <mjambor@suse.cz>
10049 PR rtl-optimization/58934
10051 2013-10-30 Martin Jambor <mjambor@suse.cz>
10052 PR rtl-optimization/10474
10053 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10055 (interesting_dest_for_shprep): New function.
10056 (split_live_ranges_for_shrink_wrap): Likewise.
10057 (ira): Calculate dominance info and df analysis. Call
10058 split_live_ranges_for_shrink_wrap.
10060 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10061 Yury Gribov <y.gribov@samsung.com>
10064 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10065 shadow pointer to avoid clobbering the main one.
10067 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10069 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10071 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10074 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10075 it for calling update_costs_from_allocno.
10076 (assign_hard_reg): Call restore_costs_from_copies only for
10077 !retry_p. Pass new argument to update_costs_from_copies.
10078 (color_pass): Pass new argument to update_costs_from_copies.
10079 (ira_mark_allocation_change): Ditto.
10081 2013-10-30 Sharad Singhai <singhai@google.com>
10083 PR middle-end/58134
10084 * opts.c (common_handle_option): Remove deprecated option
10085 -ftree-vectorizer-verbose.
10086 * doc/invoke.texi (Debugging Options): Ditto.
10087 * opts-global.c (handle_common_deferred_options): Ditto.
10088 (dump_remap_tree_vectorizer_verbose): Delete.
10089 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10091 2013-10-30 DJ Delorie <dj@redhat.com>
10093 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10094 that take no arguments.
10096 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10099 * reload1.c (update_eliminables_and_spill): New function, broken
10101 (reload): Use it. Check for frame size change after frame size
10102 alignment, and call update_eliminables_and_spill first if continue-ing.
10104 2013-10-30 Cong Hou <congh@google.com>
10107 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10108 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10109 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10111 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10113 PR rtl-optimization/58369
10114 * reload1.c (compute_reload_subreg_offset): New function.
10115 (choose_reload_regs): Use it to pass endian-correct
10116 offset to subreg_regno_offset.
10118 2013-10-30 Tobias Burnus <burnus@net-b.de>
10121 * tree-cfg.c (replace_loop_annotate): Replace warning by
10124 2013-10-30 Jason Merrill <jason@redhat.com>
10126 * configure.ac (loose_warn): Add -Wno-format if
10127 --disable-build-format-warnings.
10129 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10131 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10132 onto multiple lines to make things easier for rename_symtab.py.
10134 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10135 (symtab_semantically_equivalent_p): Likewise.
10137 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10140 * lra.c (check_rtl): Remove address check before LRA work.
10142 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10144 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10145 POINTER_PLUS_EXPR in the defining statement.
10147 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10149 * regmove.c: Remove.
10150 * tree-pass.h (make_pass_regmove): Remove.
10151 * timevar.def (TV_REGMOVE): Remove.
10152 * passes.def (pass_regmove): Remove.
10153 * opts.c (default_options_table): Remove entry for regmove.
10154 * doc/passes.texi: Remove regmove pass description.
10155 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10157 (-fdump-rtl-regmove): Ditto.
10158 * common.opt (foptimize-register-move, fregmove): Ignore.
10159 * Makefile.in (OBJS): Remove regmove.o.
10160 * regmove.c: Remove.
10161 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10163 (struct ira_allocno) New member allocno_prefs.
10164 (ALLOCNO_PREFS): New macro.
10165 (ira_prefs, ira_prefs_num): New external vars.
10166 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10167 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10168 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10170 (ira_add_allocno_copy_to_list): Remove prototype.
10171 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10172 (ira_pref_iterator): New type.
10173 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10174 (FOR_EACH_PREF): New macro.
10175 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10176 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10178 (ira_setup_alts): New function.
10179 (decrease_live_ranges_number): New function.
10180 (ira): Call the above function.
10181 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10182 (ira_create_allocno): Initialize allocno prefs.
10183 (pref_pool, pref_vec): New static vars.
10184 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10186 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10187 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10188 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10189 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10190 (ira_add_allocno_copy_to_list): Make static. Rename to
10191 add_allocno_copy_to_list.
10192 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10193 swap_allocno_copy_ends_if_necessary.
10194 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10195 ira_remove_allocno_prefs.
10196 (ira_flattening): Ditto.
10197 (ira_build): Call initiate_prefs, print_prefs.
10198 (ira_destroy): Call finish_prefs.
10199 * ira-color.c (struct update_cost_record): New.
10200 (struct allocno_color_data): Add new member update_cost_records.
10201 (update_cost_record_pool): New static var.
10202 (init_update_cost_records, get_update_cost_record): New functions.
10203 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10204 (struct update_cost_queue_elem): Add member from.
10205 (initiate_cost_update): Call init_update_cost_records.
10206 (finish_cost_update): Call finish_update_cost_records.
10207 (queue_update_cost, get_next_update_cost): Add new param from.
10208 (Update_allocno_cost, update_costs_from_allocno): New functions.
10209 (update_costs_from_prefs): Ditto.
10210 (update_copy_costs): Rename to update_costs_from_copies.
10211 (restore_costs_from_copies): New function.
10212 (update_conflict_hard_regno_costs): Don't go back.
10213 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10215 (pop_allocnos): Add priniting more debug info.
10216 (color_allocnos): Remove prefs for conflicting hard regs.
10217 Call update_costs_from_prefs.
10218 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10219 (get_dup_num): Rename, modify, and move to ira.c
10220 (process_regs_for_copy): Add prefs.
10221 (add_insn_allocno_copies): Put src as first arg of
10222 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10223 * ira-costs.c (record_reg_classes): Modify and move code into
10224 record_operands_costs.
10225 (find_costs_and_classes): Create prefs for the hard reg of small
10227 (process_bb_node_for_hard_reg_moves): Add prefs.
10229 2013-10-30 Richard Biener <rguenther@suse.de>
10231 PR middle-end/57100
10232 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10233 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10235 (pre_and_rev_post_order_compute): ... which now wraps it.
10236 * graph.c (draw_cfg_nodes_no_loops): Use
10237 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10240 2013-10-30 Christian Bruel <christian.bruel@st.com>
10242 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10243 (sh_expand_cmpstr): Handle known align and schedule improvements.
10244 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10245 * config/sh/sh.md (cmpstrnsi): New pattern.
10247 2013-10-30 Martin Jambor <mjambor@suse.cz>
10249 PR rtl-optimization/10474
10250 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10252 (interesting_dest_for_shprep): New function.
10253 (split_live_ranges_for_shrink_wrap): Likewise.
10254 (ira): Calculate dominance info and df analysis. Call
10255 split_live_ranges_for_shrink_wrap.
10257 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10260 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10262 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10264 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10265 * tree.h (POINTER_BOUNDS_P): New.
10266 (BOUNDED_TYPE_P): New.
10268 (pointer_bounds_type_node): New.
10269 * tree.c (build_common_tree_nodes): Initialize
10270 pointer_bounds_type_node.
10271 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10272 (gimple_call_num_nobnd_args): New.
10273 (gimple_call_nobnd_arg): New.
10274 (gimple_return_retbnd): New.
10275 (gimple_return_set_retbnd): New
10276 * gimple.c (gimple_build_return): Increase number of ops
10277 for return statement.
10278 (gimple_call_get_nobnd_arg_index): New.
10279 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10281 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10283 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10284 with "chkp ctor" and "bnd_legacy" attributes.
10285 * gimplify.c (gimplify_init_constructor): Avoid infinite
10286 loop during gimplification of bounds initializer.
10288 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10290 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10291 (handle_bnd_legacy): New.
10292 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10293 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10296 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10298 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10299 (BT_FN_PTR_CONST_PTR): New.
10300 (BT_FN_CONST_PTR_CONST_PTR): New.
10301 (BT_FN_PTR_CONST_PTR_SIZE): New.
10302 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10303 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10304 (BT_FN_VOID_CONST_PTR_SIZE): New.
10305 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10306 * chkp-builtins.def: New.
10307 * builtins.def: include chkp-builtins.def.
10308 (DEF_CHKP_BUILTIN): New.
10309 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10310 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10311 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10312 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10313 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10314 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10315 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10316 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10317 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10318 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10319 * common.opt (fcheck-pointer-bounds): New.
10320 * toplev.c (process_options): Check Pointer Bounds Checker is
10322 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10324 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10326 * target.def (builtin_chkp_function): New.
10327 (chkp_bound_type): New.
10328 (chkp_bound_mode): New.
10329 (fn_abi_va_list_bounds_size): New.
10330 (load_bounds_for_arg): New.
10331 (store_bounds_for_arg): New.
10332 * targhooks.h (default_load_bounds_for_arg): New.
10333 (default_store_bounds_for_arg): New.
10334 (default_fn_abi_va_list_bounds_size): New.
10335 (default_chkp_bound_type): New.
10336 (default_chkp_bound_mode): New.
10337 (default_builtin_chkp_function): New.
10338 * targhooks.c (default_load_bounds_for_arg): New.
10339 (default_store_bounds_for_arg): New.
10340 (default_fn_abi_va_list_bounds_size): New.
10341 (default_chkp_bound_type): New.
10342 (default_chkp_bound_mode); New.
10343 (default_builtin_chkp_function): New.
10344 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10345 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10346 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10347 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10348 (TARGET_CHKP_BOUND_TYPE): New.
10349 (TARGET_CHKP_BOUND_MODE): New.
10350 * doc/tm.texi: Regenerated.
10351 * langhooks.h (lang_hooks): Add chkp_supported field.
10352 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10353 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10355 2013-10-29 Andrew Pinski <apinski@cavium.com>
10357 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10358 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10359 fails, combining the branches anyways.
10360 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10361 increases the number of combinings.
10362 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10364 2013-10-29 Mike Stump <mikestump@comcast.net>
10366 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10367 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10368 (make_vector_mode): Increase namebuf to 16.
10369 (emit_insn_modes_h): When processing BImode, don't
10370 also match partial int modes.
10371 (emit_class_narrowest_mode): Likewise.
10373 * config/bfin/bfin-modes.def: Add precision to PDI.
10374 * config/m32c/m32c-modes.def: Add precision to PSI.
10375 * config/msp430/msp430-modes.def: Add precision to PSI.
10376 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10377 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10379 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10382 * config/sh/sh.md (*addc): Rename existing variations to ...
10383 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10384 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10385 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10386 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10388 2013-10-29 Teresa Johnson <tejohnson@google.com>
10391 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10392 insanities when updating probabilities.
10394 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10396 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10397 prettyprinter for cgraph_node to reflect the conversion of the
10398 symtable types to a C++ class hierarchy: it now *is* a
10399 symtab_node_base, rather than having one (named "symbol").
10401 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10403 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10404 __cilkrts_pop_frame. If matched, then return true for built-in
10406 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10407 BUILT_IN_CILK_POP_FRAME case.
10408 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10409 (lhs_cilk_detect_spawn): Likewise.
10410 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10411 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10412 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10413 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10414 (LANG_HOOKS_CILKPLUS): Likewise.
10415 * tree.h (CILK_SPAWN_FN): Likewise.
10416 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10417 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10418 (OBJS): Added cilk-common.o.
10419 (BUILTINS_DEF): Added cilk-builtins.def.
10420 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10421 (lhd_cilk_detect_spawn): Likewise.
10422 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10423 (struct lang_hooks): Added new field called "cilkplus."
10424 * cilk-common.c: New file.
10425 * cilk.h: Likewise.
10426 * cilk-builtins.def: Likewise.
10427 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10428 "__cilk" macro and set it to 200.
10429 * function.h (struct function::cilk_frame_decl): New field.
10430 (struct function::is_cilk_function): Likewise.
10431 (struct function::calls_cilk_spawn): Likewise.
10432 * gimplify.c (gimplify_call_expr): Added a check if the function call
10433 being gimplified is a spawn detach point. If so, then add pop_frame
10434 and detach function calls.
10435 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10436 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10437 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10438 function. If so, added a _Cilk_sync and gimplified it.
10439 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10440 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10441 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10443 (can_inline_edge_p): Prevent inling of spawnee function.
10444 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10445 for functions that use Cilk keywords.
10446 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10447 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10448 CILK_SYNC_STMT cases.
10449 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10451 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10452 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10453 * passes.texi (Cilk Keywords): New section that describes the compiler
10454 code changes for handling Cilk Keywords.
10456 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10458 Patch autogenerated by refactor_symtab.py from
10459 https://github.com/davidmalcolm/gcc-refactoring-scripts
10460 revision 58bb219cc090b2f4516a9297d868c245495ee622
10462 * asan.c (asan_finish_file): Update for conversion of symtab types to
10463 a true class hierarchy.
10464 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10465 * cgraph.c (cgraph_get_body): Likewise.
10466 (cgraph_get_create_real_symbol_node): Likewise.
10467 (verify_cgraph_node): Likewise.
10468 (verify_edge_corresponds_to_fndecl): Likewise.
10469 (verify_edge_count_and_frequency): Likewise.
10470 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10471 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10472 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10473 (cgraph_node_cannot_return): Likewise.
10474 (cgraph_set_pure_flag_1): Likewise.
10475 (cgraph_set_const_flag_1): Likewise.
10476 (cgraph_set_nothrow_flag_1): Likewise.
10477 (cgraph_make_node_local_1): Likewise.
10478 (cgraph_for_node_and_aliases): Likewise.
10479 (cgraph_for_node_thunks_and_aliases): Likewise.
10480 (cgraph_node_can_be_local_p): Likewise.
10481 (cgraph_node_cannot_be_local_p_1): Likewise.
10482 (cgraph_function_body_availability): Likewise.
10483 (dump_cgraph_node): Likewise.
10484 (cgraph_rtl_info): Likewise.
10485 (cgraph_mark_address_taken_node): Likewise.
10486 (cgraph_remove_node): Likewise.
10487 (cgraph_release_function_body): Likewise.
10488 (cgraph_update_edges_for_call_stmt_node): Likewise.
10489 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10490 (cgraph_make_edge_direct): Likewise.
10491 (cgraph_resolve_speculation): Likewise.
10492 (cgraph_speculative_call_info): Likewise.
10493 (cgraph_turn_edge_to_speculative): Likewise.
10494 (cgraph_create_edge_1): Likewise.
10495 (cgraph_set_call_stmt): Likewise.
10496 (cgraph_node_for_asm): Likewise.
10497 (cgraph_add_thunk): Likewise.
10498 (cgraph_same_body_alias): Likewise.
10499 (cgraph_create_function_alias): Likewise.
10500 (cgraph_create_node): Likewise.
10501 (cgraph_create_empty_node): Likewise.
10502 (record_function_versions): Likewise.
10503 (used_from_object_file_p): Likewise.
10504 * cgraph.h (symtab_can_be_discarded): Likewise.
10505 (symtab_real_symbol_p): Likewise.
10506 (cgraph_mark_force_output_node): Likewise.
10507 (cgraph_edge_recursive_p): Likewise.
10508 (symtab_alias_target): Likewise.
10509 (varpool_all_refs_explicit_p): Likewise.
10510 (varpool_can_remove_if_no_refs): Likewise.
10511 (cgraph_only_called_directly_or_aliased_p): Likewise.
10512 (cgraph_next_function_with_gimple_body): Likewise.
10513 (cgraph_first_function_with_gimple_body): Likewise.
10514 (cgraph_function_with_gimple_body_p): Likewise.
10515 (cgraph_next_function): Likewise.
10516 (cgraph_first_function): Likewise.
10517 (cgraph_next_defined_function): Likewise.
10518 (cgraph_first_defined_function): Likewise.
10519 (varpool_next_defined_variable): Likewise.
10520 (varpool_first_defined_variable): Likewise.
10521 (varpool_next_static_initializer): Likewise.
10522 (varpool_first_static_initializer): Likewise.
10523 (varpool_next_variable): Likewise.
10524 (varpool_first_variable): Likewise.
10525 (varpool_node_name): Likewise.
10526 (varpool): Likewise.
10527 (cgraph): Likewise.
10528 (is_a_helper <varpool_node>::test): Likewise.
10529 (is_a_helper <cgraph_node>::test): Likewise.
10530 (varpool_variable_node): Likewise.
10531 (cgraph_function_or_thunk_node): Likewise.
10532 (varpool_alias_target): Likewise.
10533 (cgraph_alias_target): Likewise.
10534 (cgraph_node_name): Likewise.
10535 (varpool_node_asm_name): Likewise.
10536 (cgraph_node_asm_name): Likewise.
10537 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10538 (cgraph_rebuild_references): Likewise.
10539 (rebuild_cgraph_edges): Likewise.
10540 (record_eh_tables): Likewise.
10541 (build_cgraph_edges): Likewise.
10542 (mark_store): Likewise.
10543 (mark_load): Likewise.
10544 (mark_address): Likewise.
10545 (record_type_list): Likewise.
10546 (record_reference): Likewise.
10547 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10548 (cgraph_materialize_clone): Likewise.
10549 (cgraph_function_versioning): Likewise.
10550 (cgraph_copy_node_for_versioning): Likewise.
10551 (update_call_expr): Likewise.
10552 (cgraph_find_replacement_node): Likewise.
10553 (cgraph_create_virtual_clone): Likewise.
10554 (cgraph_clone_node): Likewise.
10555 * cgraphunit.c (compile): Likewise.
10556 (output_weakrefs): Likewise.
10557 (output_in_order): Likewise.
10558 (expand_function): Likewise.
10559 (assemble_thunks_and_aliases): Likewise.
10560 (expand_thunk): Likewise.
10561 (mark_functions_to_output): Likewise.
10562 (handle_alias_pairs): Likewise.
10563 (analyze_functions): Likewise.
10564 (walk_polymorphic_call_targets): Likewise.
10565 (varpool_finalize_decl): Likewise.
10566 (process_function_and_variable_attributes): Likewise.
10567 (cgraph_process_same_body_aliases): Likewise.
10568 (analyze_function): Likewise.
10569 (cgraph_add_new_function): Likewise.
10570 (cgraph_finalize_function): Likewise.
10571 (referred_to_p): Likewise.
10572 (cgraph_reset_node): Likewise.
10573 (cgraph_process_new_functions): Likewise.
10574 (enqueue_node): Likewise.
10575 (decide_is_symbol_needed): Likewise.
10576 * coverage.c (coverage_compute_profile_id): Likewise.
10577 * dbxout.c (dbxout_expand_expr): Likewise.
10578 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10579 (reference_to_unused): Likewise.
10580 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10581 * gimplify.c (unvisit_body): Likewise.
10582 (unshare_body): Likewise.
10583 * ipa-cp.c (ipcp_generate_summary): Likewise.
10584 (ipcp_decision_stage): Likewise.
10585 (identify_dead_nodes): Likewise.
10586 (decide_whether_version_node): Likewise.
10587 (decide_about_value): Likewise.
10588 (perhaps_add_new_callers): Likewise.
10589 (create_specialized_node): Likewise.
10590 (update_profiling_info): Likewise.
10591 (ipcp_propagate_stage): Likewise.
10592 (estimate_local_effects): Likewise.
10593 (good_cloning_opportunity_p): Likewise.
10594 (devirtualization_time_bonus): Likewise.
10595 (propagate_constants_accross_call): Likewise.
10596 (initialize_node_lattices): Likewise.
10597 (ipcp_cloning_candidate_p): Likewise.
10598 (determine_versionability): Likewise.
10599 (print_all_lattices): Likewise.
10600 (print_lattice): Likewise.
10601 (ipcp_discover_new_direct_edges): Likewise.
10602 * ipa-devirt.c (ipa_devirt): Likewise.
10603 (likely_target_p): Likewise.
10604 (update_type_inheritance_graph): Likewise.
10605 (possible_polymorphic_call_target_p): Likewise.
10606 (dump_possible_polymorphic_call_targets): Likewise.
10607 (devirt_variable_node_removal_hook): Likewise.
10608 (record_binfo): Likewise.
10609 (maybe_record_node): Likewise.
10610 (build_type_inheritance_graph): Likewise.
10611 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10612 (inline_generate_summary): Likewise.
10613 (inline_analyze_function): Likewise.
10614 (do_estimate_growth): Likewise.
10615 (simple_edge_hints): Likewise.
10616 (estimate_node_size_and_time): Likewise.
10617 (estimate_edge_devirt_benefit): Likewise.
10618 (compute_inline_parameters): Likewise.
10619 (estimate_function_body_sizes): Likewise.
10620 (compute_bb_predicates): Likewise.
10621 (initialize_inline_failed): Likewise.
10622 (dump_inline_summary): Likewise.
10623 (dump_inline_edge_summary): Likewise.
10624 * ipa-inline-transform.c (inline_transform): Likewise.
10625 (preserve_function_body_p): Likewise.
10626 (save_inline_function_body): Likewise.
10627 (inline_call): Likewise.
10628 (clone_inlined_nodes): Likewise.
10629 (can_remove_node_now_p): Likewise.
10630 (can_remove_node_now_p_1): Likewise.
10631 * ipa-inline.c (early_inliner): Likewise.
10632 (early_inline_small_functions): Likewise.
10633 (inline_always_inline_functions): Likewise.
10634 (ipa_inline): Likewise.
10635 (flatten_function): Likewise.
10636 (inline_small_functions): Likewise.
10637 (speculation_useful_p): Likewise.
10638 (recursive_inlining): Likewise.
10639 (update_caller_keys): Likewise.
10640 (reset_edge_caches): Likewise.
10641 (update_edge_key): Likewise.
10642 (edge_badness): Likewise.
10643 (relative_time_benefit): Likewise.
10644 (want_inline_self_recursive_call_p): Likewise.
10645 (want_inline_small_function_p): Likewise.
10646 (want_early_inline_function_p): Likewise.
10647 (num_calls): Likewise.
10648 (can_early_inline_edge_p): Likewise.
10649 (can_inline_edge_p): Likewise.
10650 (report_inline_failed_reason): Likewise.
10651 * ipa-profile.c (ipa_profile): Likewise.
10652 (ipa_propagate_frequency): Likewise.
10653 (ipa_propagate_frequency_1): Likewise.
10654 (ipa_profile_generate_summary): Likewise.
10655 * ipa-prop.c (ipcp_transform_function): Likewise.
10656 (read_replacements_section): Likewise.
10657 (ipa_prop_read_section): Likewise.
10658 (ipa_modify_call_arguments): Likewise.
10659 (ipa_print_node_params): Likewise.
10660 (propagate_controlled_uses): Likewise.
10661 (update_indirect_edges_after_inlining): Likewise.
10662 (remove_described_reference): Likewise.
10663 (ipa_make_edge_direct_to_target): Likewise.
10664 (ipa_analyze_node): Likewise.
10665 (ipa_analyze_params_uses): Likewise.
10666 (ipa_compute_jump_functions): Likewise.
10667 (ipa_get_callee_param_type): Likewise.
10668 (ipa_print_node_jump_functions): Likewise.
10669 (ipa_initialize_node_params): Likewise.
10670 (ipa_populate_param_decls): Likewise.
10671 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10672 (write_agg_replacement_chain): Likewise.
10673 (ipa_write_node_info): Likewise.
10674 (ipa_edge_duplication_hook): Likewise.
10675 (try_decrement_rdesc_refcount): Likewise.
10676 * ipa-pure-const.c (propagate_nothrow): Likewise.
10677 (propagate_pure_const): Likewise.
10678 (pure_const_read_summary): Likewise.
10679 (pure_const_write_summary): Likewise.
10680 (analyze_function): Likewise.
10681 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10682 (ipa_ref_referring_ref_list): Likewise.
10683 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10684 (ipa_remove_stmt_references): Likewise.
10685 (ipa_find_reference): Likewise.
10686 (ipa_dump_referring): Likewise.
10687 (ipa_dump_references): Likewise.
10688 (ipa_record_reference): Likewise.
10689 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10690 (ipa_reference_write_optimization_summary): Likewise.
10691 (write_node_summary_p): Likewise.
10692 (propagate): Likewise.
10693 (read_write_all_from_decl): Likewise.
10694 (generate_summary): Likewise.
10695 (analyze_function): Likewise.
10696 (propagate_bits): Likewise.
10697 (ipa_reference_get_not_written_global): Likewise.
10698 (ipa_reference_get_not_read_global): Likewise.
10699 * ipa-split.c (execute_split_functions): Likewise.
10700 (split_function): Likewise.
10701 * ipa-utils.c (ipa_merge_profiles): Likewise.
10702 (dump_cgraph_node_set): Likewise.
10703 (ipa_reverse_postorder): Likewise.
10704 (ipa_edge_within_scc): Likewise.
10705 (ipa_get_nodes_in_cycle): Likewise.
10706 (ipa_free_postorder_info): Likewise.
10707 (ipa_reduced_postorder): Likewise.
10708 (searchc): Likewise.
10709 (recursive_call_p): Likewise.
10710 * ipa.c (ipa_cdtor_merge): Likewise.
10711 (record_cdtor_fn): Likewise.
10712 (function_and_variable_visibility): Likewise.
10713 (varpool_externally_visible_p): Likewise.
10714 (cgraph_externally_visible_p): Likewise.
10715 (comdat_can_be_unshared_p): Likewise.
10716 (comdat_can_be_unshared_p_1): Likewise.
10717 (address_taken_from_non_vtable_p): Likewise.
10718 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10719 (symtab_remove_unreachable_nodes): Likewise.
10720 (walk_polymorphic_call_targets): Likewise.
10721 (process_references): Likewise.
10722 (enqueue_node): Likewise.
10723 (has_addr_references_p): Likewise.
10724 (cgraph_non_local_node_p_1): Likewise.
10725 * is-a.h (varpool_analyze_node): Likewise.
10726 * lto-cgraph.c (input_symtab): Likewise.
10727 (merge_profile_summaries): Likewise.
10728 (input_cgraph_1): Likewise.
10729 (input_edge): Likewise.
10730 (input_varpool_node): Likewise.
10731 (input_node): Likewise.
10732 (input_overwrite_node): Likewise.
10733 (compute_ltrans_boundary): Likewise.
10734 (output_refs): Likewise.
10735 (lto_output_varpool_node): Likewise.
10736 (lto_output_node): Likewise.
10737 (reachable_from_other_partition_p): Likewise.
10738 (referenced_from_other_partition_p): Likewise.
10739 (lto_output_edge): Likewise.
10740 (output_node_opt_summary): Likewise.
10741 (add_node_to): Likewise.
10742 (reachable_from_this_partition_p): Likewise.
10743 (lto_set_symtab_encoder_in_partition): Likewise.
10744 (lto_symtab_encoder_in_partition_p): Likewise.
10745 (lto_set_symtab_encoder_encode_initializer): Likewise.
10746 (lto_symtab_encoder_encode_initializer_p): Likewise.
10747 (lto_set_symtab_encoder_encode_body): Likewise.
10748 (lto_symtab_encoder_encode_body_p): Likewise.
10749 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10751 * lto-streamer-in.c (lto_read_body): Likewise.
10752 (fixup_call_stmt_edges): Likewise.
10753 (fixup_call_stmt_edges_1): Likewise.
10754 * lto-streamer-out.c (produce_symtab): Likewise.
10755 (output_symbol_p): Likewise.
10756 (write_symbol): Likewise.
10757 (lto_output): Likewise.
10758 (copy_function): Likewise.
10759 (output_function): Likewise.
10760 * passes.c (function_called_by_processed_nodes_p): Likewise.
10761 (ipa_write_optimization_summaries): Likewise.
10762 (ipa_write_summaries): Likewise.
10763 (do_per_function_toporder): Likewise.
10764 (do_per_function): Likewise.
10765 (dump_passes): Likewise.
10766 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10767 (symtab_nonoverwritable_alias): Likewise.
10768 (symtab_nonoverwritable_alias_1): Likewise.
10769 (symtab_for_node_and_aliases): Likewise.
10770 (symtab_resolve_alias): Likewise.
10771 (fixup_same_cpp_alias_visibility): Likewise.
10772 (symtab_alias_ultimate_target): Likewise.
10773 (symtab_used_from_object_file_p): Likewise.
10774 (verify_symtab_base): Likewise.
10775 (dump_symtab_base): Likewise.
10776 (symtab_node_name): Likewise.
10777 (symtab_node_asm_name): Likewise.
10778 (symtab_dissolve_same_comdat_group_list): Likewise.
10779 (symtab_add_to_same_comdat_group): Likewise.
10780 (symtab_unregister_node): Likewise.
10781 (symtab_insert_node_to_hashtable): Likewise.
10782 (symtab_register_node): Likewise.
10783 (unlink_from_assembler_name_hash): Likewise.
10784 (insert_to_assembler_name_hash): Likewise.
10785 (eq_assembler_name): Likewise.
10786 (hash_node_by_assembler_name): Likewise.
10787 (eq_node): Likewise.
10788 (hash_node): Likewise.
10789 * toplev.c (wrapup_global_declaration_2): Likewise.
10790 * trans-mem.c (ipa_tm_execute): Likewise.
10791 (ipa_tm_transform_clone): Likewise.
10792 (ipa_tm_transform_transaction): Likewise.
10793 (ipa_tm_transform_calls_redirect): Likewise.
10794 (ipa_tm_insert_gettmclone_call): Likewise.
10795 (ipa_tm_insert_irr_call): Likewise.
10796 (ipa_tm_create_version): Likewise.
10797 (ipa_tm_create_version_alias): Likewise.
10798 (ipa_tm_mark_forced_by_abi_node): Likewise.
10799 (ipa_tm_mark_force_output_node): Likewise.
10800 (ipa_tm_diagnose_tm_safe): Likewise.
10801 (ipa_tm_mayenterirr_function): Likewise.
10802 (ipa_tm_scan_irr_function): Likewise.
10803 (ipa_tm_note_irrevocable): Likewise.
10804 (ipa_tm_scan_calls_clone): Likewise.
10805 (get_cg_data): Likewise.
10806 * tree-eh.c (tree_could_trap_p): Likewise.
10807 * tree-emutls.c (ipa_lower_emutls): Likewise.
10808 (create_emultls_var): Likewise.
10809 (lower_emutls_function_body): Likewise.
10810 (gen_emutls_addr): Likewise.
10811 (emutls_decl): Likewise.
10812 (new_emutls_decl): Likewise.
10813 * tree-inline.c (tree_function_versioning): Likewise.
10814 (optimize_inline_calls): Likewise.
10815 (expand_call_inline): Likewise.
10816 (estimate_num_insns): Likewise.
10817 (copy_bb): Likewise.
10818 (delete_unreachable_blocks_update_callgraph): Likewise.
10819 * tree-nested.c (gimplify_all_functions): Likewise.
10820 (create_nesting_tree): Likewise.
10821 (check_for_nested_with_variably_modified): Likewise.
10822 * tree-pretty-print.c (dump_function_header): Likewise.
10823 * tree-profile.c (tree_profiling): Likewise.
10824 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10825 (modify_function): Likewise.
10826 (convert_callers): Likewise.
10827 (convert_callers_for_node): Likewise.
10828 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10829 (associate_varinfo_to_alias): Likewise.
10830 (create_variable_info_for): Likewise.
10831 (get_constraint_for_ssa_var): Likewise.
10832 * tree-vectorizer.c (increase_alignment): Likewise.
10833 * tree.c (find_decls_types_in_var): Likewise.
10834 (find_decls_types_in_node): Likewise.
10835 (free_lang_data_in_decl): Likewise.
10836 * value-prof.c (gimple_ic_transform): Likewise.
10837 (gimple_ic): Likewise.
10838 (check_ic_target): Likewise.
10839 (init_node_map): Likewise.
10840 * varasm.c (decl_binds_to_current_def_p): Likewise.
10841 (default_binds_local_p_1): Likewise.
10842 (dump_tm_clone_pairs): Likewise.
10843 (assemble_alias): Likewise.
10844 (find_decl): Likewise.
10845 (mark_decl_referenced): Likewise.
10846 * varpool.c (varpool_for_node_and_aliases): Likewise.
10847 (varpool_extra_name_alias): Likewise.
10848 (varpool_create_variable_alias): Likewise.
10849 (add_new_static_var): Likewise.
10850 (varpool_finalize_named_section_flags): Likewise.
10851 (varpool_remove_unreferenced_decls): Likewise.
10852 (enqueue_node): Likewise.
10853 (varpool_assemble_decl): Likewise.
10854 (assemble_aliases): Likewise.
10855 (varpool_analyze_node): Likewise.
10856 (cgraph_variable_initializer_availability): Likewise.
10857 (varpool_add_new_variable): Likewise.
10858 (ctor_for_folding): Likewise.
10859 (dump_varpool_node): Likewise.
10860 (varpool_remove_initializer): Likewise.
10861 (varpool_remove_node): Likewise.
10862 (varpool_node_for_decl): Likewise.
10863 (varpool_create_empty_node): Likewise.
10864 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10865 (ix86_get_function_versions_dispatcher): Likewise.
10867 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10869 * cgraph.h (symtab_node_base): Convert to a class;
10870 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10871 chain_next/prev from symtab_node_def.
10872 (cgraph_node): Inherit from symtab_node; add GTY option
10873 tag ("SYMTAB_FUNCTION").
10874 (varpool_node): Inherit from symtab_node; add GTY option
10875 tag ("SYMTAB_VARIABLE").
10876 (symtab_node_def): Remove.
10877 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10878 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10879 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10880 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10882 * ipa-ref.h (symtab_node_def): Drop.
10883 (symtab_node): Change underlying type from symtab_node_def to
10885 (const_symtab_node): Likwise.
10887 * is-a.h: Update examples in comment.
10889 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10890 (assembler_name_hash): Likewise.
10892 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10894 * doc/tree-ssa.texi (gimple_phi_result): Document.
10895 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10896 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10897 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10898 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10900 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10902 * expr.h: Revert change and include tree-core.h.
10903 * rtl.h: Revert change and don't include tree-core.h.
10905 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10907 * config/darwin.c: Include gimple.h.
10908 * config/i386/winnt.c: Likewise.
10910 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10912 PR tree-optimization/19831
10913 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10915 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10917 * tree-outof-ssa.h: Remove include files.
10918 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10919 * expr.c: Likewise.
10920 * tree-ssa-coalesce.c: Likewise.
10921 * cfgexpand.c: Likewise.
10922 * tree-ssa-ter.c: Likewise.
10923 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10924 * lto-streamer.h: Likewise.
10925 * cgraphbuild.c: Add gimple.h to include list.
10926 * data-streamer-in.c: Likewise.
10927 * ipa-cp.c: Likewise.
10928 * tree-streamer.c: Likewise.
10929 * lto-compress.c: Likewise.
10930 * ipa-reference.c: Likewise.
10931 * data-streamer-out.c: Likewise.
10932 * lto-cgraph.c: Likewise.
10933 * cgraphclones.c: Likewise.
10934 * ipa-utils.c: Likewise.
10935 * data-streamer.c: Likewise.
10936 * ipa-split.c: Likewise.
10937 * lto-section-in.c: Likewise.
10938 * tree-streamer-out.c: Likewise.
10939 * ipa-prop.c: Likewise.
10940 * tree-streamer-in.c: Likewise.
10941 * symtab.c: Likewise.
10942 * opts-global.c: Likewise.
10943 * lto-opts.c: Likewise.
10944 * lto-section-out.c: Likewise.
10945 * lto-streamer.c: Likewise.
10946 * rtl.h: Add tree-core.h to include list.
10947 * expr.h: Remove tree-core.h from include list.
10948 * gimple.h: Likewise.
10949 * ipa-utils.h: Likewise.
10950 * streamer-hooks.h: Likewise.
10951 * streamer-hooks.c: Include input.h.
10953 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10955 * config/arm/arm.c (cortexa7_extra_costs): New table.
10956 (arm_cortex_a7_tune): New.
10957 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10959 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10961 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10963 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10965 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10966 to use autogenerated markers for a class-hierarchy, every class
10967 must have a GTY marker.
10968 * gengtype.h (struct type): Add linked list of subclasses to
10969 the "s" member of the union.
10970 (add_subclass): New decl.
10971 * gengtype-state.c (read_state_struct_type): Set up subclass
10973 * gengtype.c (get_ultimate_base_class): New.
10974 (add_subclass): New.
10975 (new_structure): Set up subclass linked list.
10976 (set_gc_used_type): Propagate usage information to subclasses.
10977 (output_mangled_typename): Use get_ultimate_base_class.
10978 (walk_subclasses): Use the subclass linked list, avoiding an
10979 O(N^2) when writing out all types.
10980 (walk_type): Issue an error if the base class is missing a tag,
10981 rather than generating bogus C code. Add a gcc_unreachable
10982 default case, in case people omit tags from concrete subclasses,
10983 or get the values wrong.
10984 (write_func_for_structure): Issue an error for subclasses for
10985 which the base doesn't have a "desc", since otherwise the
10986 autogenerated routines for the base would silently fail to visit
10987 any subclass fields.
10988 (write_root): Use get_ultimate_base_class, tweaking constness of
10989 tp to match that function's signature.
10991 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10993 * doc/gty.texi (GTY Options): Add note about inheritance to
10994 description of desc and tag.
10995 (Inheritance and GTY): New.
10997 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10999 * gengtype-parse.c (opts_have): Drop "static" so that
11000 we can use this from gengtype.c.
11001 * gengtype.c (set_gc_used_type): Mark any base class as used;
11002 update field traversal to visit inherited fields.
11003 (output_mangled_typename): Convert references to classes within
11004 an inheritance hierarchy to reference the ultimate base class,
11005 since only it will have gt_ functions.
11006 (get_string_option): New.
11007 (walk_subclasses): New.
11008 (walk_type): Treat GTY structs that have a "desc" as being the
11009 root of an inheritance hierarchy. Generate a switch on it
11010 within the marking function which walks all subclasses, adding
11011 cases for them via walk_subclasses. For subclasses, visit all
11012 fields of the type (including inherited ones).
11013 (write_func_for_structure): Don't write fns for subclasses, only
11014 for the ultimate base class within an inheritance hierarchy.
11015 Subclasses-marking will be handled by the base class marking functions.
11016 (write_types): Likewise.
11017 (write_local_func_for_structure): Likewise.
11018 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11019 a "tag" option (and are thus concrete subclasses).
11020 (write_root): Use the marker function for the ultimate base class.
11021 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11022 (opts_have): Add declaration.
11024 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11026 * lra-spills.c (lra_final_code_change): Remove useless move insns
11027 originated from moves of pseudos.
11029 2013-10-28 Jeff Law <law@redhat.com>
11031 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11033 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11035 * df-scan.c (df_collection_rec): Adjust.
11036 (copy_defs): New constant.
11037 (copy_uses): Likewise.
11038 (copy_eq_uses): Likewise.
11039 (copy_mw): Likewise.
11040 (copy_all): Likewise.
11041 (df_insn_rescan): Adjust.
11042 (df_notes_rescan): Likewise.
11043 (df_swap_refs): Likewise.
11044 (df_sort_and_compress_refs): Likewise.
11045 (df_sort_and_compress_mws): Likewise.
11046 (df_install_refs): Likewise.
11047 (df_install_mws): Likewise.
11048 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11050 (df_bb_refs_record): Adjust.
11051 (df_record_entry_block_defs): Likewise.
11052 (df_record_exit_block_defs): Likewise.
11053 (df_refs_verify): Likewise.
11054 (df_mws_verify): Likewise.
11055 (df_insn_refs_verify): Likewise.
11056 (df_bb_verify): Likewise.
11057 * ipa-pure-const.c (finish_state): Remove.
11058 (propagate): Adjust.
11059 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11060 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11061 var-tracking.c: Adjust.
11062 * vec.c (stack_vecs): Remove.
11063 (register_stack_vec): Likewise.
11064 (stack_vec_register_index): Likewise.
11065 (unregister_stack_vec): Likewise.
11066 * vec.h (struct va_stack): Remove.
11067 (struct vec<T, A, vl_ptr>): Specialize as
11068 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11069 allocation strategy compatable with the vl_ptr layout.
11070 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11071 specialization anyway.
11072 (class stack_vec): New class.
11073 (vec_stack_alloc): Remove.
11074 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11076 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11078 Sergey Lega <sergey.s.lega@intel.com>
11079 Anna Tikhonova <anna.tikhonova@intel.com>
11080 Ilya Tocar <ilya.tocar@intel.com>
11081 Andrey Turetskiy <andrey.turetskiy@intel.com>
11082 Ilya Verbin <ilya.verbin@intel.com>
11083 Kirill Yukhin <kirill.yukhin@intel.com>
11084 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11086 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11087 (*prefetch_avx512pf_<mode>): New.
11088 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11089 (avx512f_maskcmp<mode>3): Ditto.
11090 (vashrv16si3): Ditto.
11092 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11093 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11094 Sergey Lega <sergey.s.lega@intel.com>
11095 Anna Tikhonova <anna.tikhonova@intel.com>
11096 Ilya Tocar <ilya.tocar@intel.com>
11097 Andrey Turetskiy <andrey.turetskiy@intel.com>
11098 Ilya Verbin <ilya.verbin@intel.com>
11099 Kirill Yukhin <kirill.yukhin@intel.com>
11100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11102 * config/i386/i386.md (any_truncate): New.
11103 (trunsuffix): Ditto.
11104 * config/i386/predicates.md (const_8_to_9_operand): New.
11105 (const_10_to_11_operand): Ditto.
11106 (const_12_to_13_operand): Ditto.
11107 (const_14_to_15_operand): Ditto.
11108 (const_16_to_19_operand): Ditto.
11109 (const_20_to_23_operand): Ditto.
11110 (const_24_to_27_operand): Ditto.
11111 (const_28_to_31_operand): Ditto.
11112 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11113 (cvtusi2<ssescalarmodesuffix>32): New.
11114 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11115 (ufloatv16siv16sf2): Ditto.
11116 (avx512f_fix_notruncv16sfv16si): Ditto.
11117 (avx512f_ufix_notruncv16sfv16si): Ditto.
11118 (avx512f_vcvtss2usi): Ditto.
11119 (avx512f_vcvtss2usiq): Ditto.
11120 (avx512f_vcvttss2usi): Ditto.
11121 (avx512f_vcvttss2usiq): Ditto.
11122 (avx512f_vcvtsd2usi): Ditto.
11123 (avx512f_vcvtsd2usiq): Ditto.
11124 (avx512f_vcvttsd2usi): Ditto.
11125 (avx512f_vcvttsd2usiq): Ditto.
11126 (ufloatv8siv8df): Ditto.
11127 (avx512f_cvtdq2pd512_2): Ditto.
11128 (avx512f_cvtpd2dq512): Ditto.
11129 (avx512f_ufix_notruncv8dfv8si): Ditto.
11130 (avx512f_cvtpd2ps512): Ditto.
11131 (vec_unpacks_lo_v16sf): Ditto.
11132 (vec_unpacks_hi_v16sf): Ditto.
11133 (vec_unpacks_float_hi_v16si): Ditto.
11134 (vec_unpacks_float_lo_v16si): Ditto.
11135 (avx512f_unpckhps512): Ditto.
11136 (avx512f_unpcklps512): Ditto.
11137 (avx512f_movshdup512): Ditto.
11138 (avx512f_movsldup512): Ditto.
11139 (vec_extract_lo_v32hi): Ditto.
11140 (vec_extract_hi_v32hi): Ditto.
11141 (vec_extract_lo_v64qi): Ditto.
11142 (vec_extract_hi_v64qi): Ditto.
11143 (avx512f_unpckhpd512): Ditto.
11144 (avx512f_movddup512): Ditto.
11145 (avx512f_unpcklpd512): Ditto.
11146 (*avx512f_unpcklpd512): Ditto.
11147 (avx512f_shufps512_1): Ditto.
11148 (avx512f_shufpd512_1): Ditto.
11149 (avx512f_interleave_highv8di): Ditto.
11150 (avx512f_interleave_lowv8di): Ditto.
11151 (PMOV_DST_MODE): Ditto.
11152 (pmov_src_mode): Ditto.
11153 (pmov_src_lower): Ditto.
11154 (pmov_suff): Ditto.
11155 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11156 (*avx512f_<code>v8div16qi2): Ditto.
11157 (*avx512f_<code>v8div16qi2_store): Ditto.
11158 (vec_widen_umult_even_v16si): Ditto.
11159 (*vec_widen_umult_even_v16si): Ditto.
11160 (vec_widen_smult_even_v16si): Ditto.
11161 (*vec_widen_smult_even_v16si): Ditto.
11162 (avx512f_interleave_highv16si): Ditto.
11163 (avx512f_interleave_lowv16si): Ditto.
11164 (avx512f_<code>v16qiv16si2): Ditto.
11165 (avx512f_<code>v16hiv16si2): Ditto.
11166 (avx512f_<code>v8qiv8di2): Ditto.
11167 (avx512f_<code>v8hiv8di2): Ditto.
11168 (avx512f_<code>v8siv8di2): Ditto.
11169 (avx512cd_maskb_vec_dupv8di): Ditto.
11170 (avx512cd_maskw_vec_dupv16si): Ditto.
11171 (avx512f_vcvtph2ps512): Ditto.
11172 (avx512f_vcvtps2ph512): Ditto.
11173 (VEC_EXTRACT_MODE): Extened with wider modes.
11174 (VEC_PERM_AVX2): Ditto.
11175 (VEC_PERM_CONST): Ditto.
11177 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11179 * config/arc/arc.c (arc_ccfsm_post_advance):
11180 Add comment about TYPE_RETURN.
11182 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11184 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11185 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11186 (strip_offset): Convert offset to unsigned number.
11188 2013-10-27 Tom de Vries <tom@codesourcery.com>
11190 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11191 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11193 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11195 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11196 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11197 (TARGET_BIG_ENDIAN): New macro.
11198 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11199 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11200 * config/sh/sh.c: Likewise.
11201 * config/sh/sh.h: Likewise.
11203 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11205 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11206 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11208 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11210 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11212 (cmpstr_t, cmpstrsi): Fix formatting.
11214 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11217 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11218 addressing, do not use general_operand for memory operands.
11220 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11223 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11224 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11226 2013-10-26 Jeff Law <law@redhat.com>
11228 * predict.c (PRED_MUDFLAP): Remove.
11229 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11231 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11232 (OBJS): Remove tree-nomudflap.o
11233 (GTFILES): Remove tree-mudflap.c
11234 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11235 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11236 (mfwrap_spec, mflib_spec): Likewise.
11237 (cpp_unique_options, cc1_options, static_specs): Likewise.
11238 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11239 * passes.def: Likewise.
11240 * toplev.c (compile_file, process_options): Likewise.
11241 * tree-inline.c (copy_tree_r): Likewise.
11242 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11243 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11244 (build_constant_desc, output_constant_def_contents): Likewise.
11245 (categorize_decl_for_section): Likewise.
11246 * tree-mudflap.c: Removed.
11247 * tree-mudflap.h: Removed.
11248 * tree-nomudflap.c: Removed.
11249 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11250 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11251 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11252 * config/sol2.h (MFLIB_SPEC): Likewise.
11253 * doc/install.texi: Remove mudflap references.
11254 * doc/passes.texi: Similarly.
11255 * doc/sourcebuild.texi: Similarly.
11256 * doc/invoke.texi: Remove mudlfap related options.
11258 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11260 PR rtl-optimization/58759
11261 * lra-constraints.c (lra_constraints): Remove wrong condition to
11262 remove insn setting up an equivalent pseudo.
11264 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11266 * config/rs6000/rs6000-protos.h
11267 (rs6000_secondary_memory_needed_mode): New prototype.
11268 * config/rs6000/rs6000.c: Include ira.h.
11269 (TARGET_LRA_P): Redefine.
11270 (rs6000_legitimate_offset_address_p): Call
11271 legitimate_constant_pool_address_p in strict mode for LRA.
11272 (rs6000_legitimate_address_p): Ditto.
11273 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11274 (rs6000_emit_move): Add LRA version of code to generate load/store
11276 (rs6000_secondary_memory_needed_mode): New.
11277 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11278 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11279 constants, memory, and FP registers.
11280 (rs6000_lra_p): New.
11281 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11282 * config/rs6000/rs6000.opt (mlra): New option.
11283 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11285 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11287 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11288 has_single_use () and not do the conversion if has_single_use ()
11289 returns false for the multiplication result.
11291 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11293 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11294 to "NODE", since this works on a "tree", not an
11296 (CONSTANT_CLASS_P): Likewise.
11297 (TYPE_P): Likewise.
11298 (DECL_P): Likewise.
11299 (INDIRECT_REF_P): Likewise.
11300 (REFERENCE_CLASS_P): Likewise.
11301 (COMPARISON_CLASS_P): Likewise.
11302 (UNARY_CLASS_P): Likewise.
11303 (BINARY_CLASS_P): Likewise.
11304 (STATEMENT_CLASS_P): Likewise.
11305 (VL_EXP_CLASS_P): Likewise.
11306 (EXPRESSION_CLASS_P): Likewise.
11307 (IS_TYPE_OR_DECL_P): Likewise.
11309 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11311 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11312 ADDR_EXPR in the defining statement.
11314 2013-10-25 Richard Biener <rguenther@suse.de>
11316 PR tree-optimization/58626
11317 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11318 anti_dd, output_dd and input_dd.
11319 (struct rdg_edge): Remove level and relation members.
11320 (RDGE_LEVEL, RDGE_RELATION): Remove.
11321 (dot_rdg_1): Adjust.
11322 (create_rdg_edge_for_ddr): Remove.
11323 (create_rdg_edges_for_scalar): Adjust.
11324 (create_edge_for_control_dependence): Likewise.
11325 (create_rdg_edges): Split into ...
11326 (create_rdg_flow_edges): ... this
11327 (create_rdg_cd_edges): ... and this.
11328 (free_rdg): Adjust.
11329 (build_rdg): Likewise, do not compute data dependences or
11330 add edges for them.
11331 (pg_add_dependence_edges): New function.
11333 (distribute_loop): First apply all non-dependence based
11334 partition mergings. Then compute dependences between partitions
11335 and merge and order partitions according to them.
11337 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11339 PR rtl-optimization/58831
11340 * alias.c (init_alias_analysis): At the beginning of each iteration,
11341 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11343 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11345 * recog.c (search_ofs): New static variable moved from...
11346 (peep2_find_free_register): ...here.
11347 (peephole2_optimize): Initialize it.
11349 2013-10-25 Tobias Burnus <burnus@net-b.de>
11351 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11353 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11355 * config/i386/i386.h (TARGET_MPX): New define.
11356 (TARGET_MPX_P): Ditto.
11358 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11360 * config/i386/constraints.md (B): New.
11363 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11364 * config/i386/i386-modes.def (BND32): New.
11366 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11367 * config/i386/i386.c (isa_opts): Add mmpx.
11368 (regclass_map): Add bound registers.
11369 (dbx_register_map): Likewise.
11370 (dbx64_register_map): Likewise.
11371 (svr4_dbx_register_map): Likewise.
11373 (ix86_option_override_internal): Support MPX ISA.
11374 (ix86_conditional_register_usage): Support bound registers.
11375 (print_reg): Likewise.
11376 (ix86_code_end): Add MPX bnd prefix.
11377 (output_set_got): Likewise.
11378 (ix86_output_call_insn): Likewise.
11379 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11380 (ix86_print_operand_punct_valid_p): Likewise.
11381 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11383 (ix86_class_likely_spilled_p): Add bound regs support.
11384 (ix86_hard_regno_mode_ok): Likewise.
11385 (x86_order_regs_for_local_alloc): Likewise.
11386 (ix86_bnd_prefixed_insn_p): New.
11387 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11388 (FIXED_REGISTERS): Add bound registers.
11389 (CALL_USED_REGISTERS): Likewise.
11390 (REG_ALLOC_ORDER): Likewise.
11391 (HARD_REGNO_NREGS): Likewise.
11393 (VALID_BND_REG_MODE): New.
11394 (FIRST_BND_REG): New.
11395 (LAST_BND_REG): New.
11396 (reg_class): Add BND_REGS.
11397 (REG_CLASS_NAMES): Likewise.
11398 (REG_CLASS_CONTENTS): Likewise.
11399 (BND_REGNO_P): New.
11400 (ANY_BND_REG_P): New.
11402 (HI_REGISTER_NAMES): Add bound registers.
11403 * config/i386/i386.md (UNSPEC_BNDMK): New.
11404 (UNSPEC_BNDMK_ADDR): New.
11405 (UNSPEC_BNDSTX): New.
11406 (UNSPEC_BNDLDX): New.
11407 (UNSPEC_BNDLDX_ADDR): New.
11408 (UNSPEC_BNDCL): New.
11409 (UNSPEC_BNDCU): New.
11410 (UNSPEC_BNDCN): New.
11411 (UNSPEC_MPX_FENCE): New.
11414 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11415 (length_immediate): Likewise.
11416 (prefix_0f): Likewise.
11417 (memory): Likewise.
11418 (prefix_rep): Check for bnd prefix.
11419 (length_nobnd): New.
11420 (length): Use length_nobnd if specified.
11425 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11426 (*jcc_2): Likewise.
11428 (simple_return_internal): Likewise.
11429 (simple_return_pop_internal): Likewise.
11430 (*indirect_jump): Add MPX bnd prefix.
11431 (*tablejump_1): Likewise.
11432 (simple_return_internal_long): Likewise.
11433 (simple_return_indirect_internal): Likewise.
11437 (*mov<mode>_internal_mpx): New.
11438 (<mode>_<bndcheck>): New.
11439 (*<mode>_<bndcheck>): New.
11441 (*<mode>_ldx): New.
11443 (*<mode>_stx): New.
11444 * config/i386/predicates.md (lea_address_operand): Rename to...
11445 (address_no_seg_operand): ... this.
11446 (address_mpx_no_base_operand): New.
11447 (address_mpx_no_index_operand): New.
11448 (bnd_mem_operator): New.
11449 * config/i386/i386.opt (mmpx): New.
11450 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11451 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11453 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11455 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11456 * tree.def (POINTER_BOUNDS_TYPE): New.
11457 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11458 (POINTER_BOUNDS_MODE): New.
11459 (make_pointer_bounds_mode): New.
11460 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11461 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11462 (layout_type): Support POINTER_BOUNDS_TYPE.
11463 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11464 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11465 (type_contains_placeholder_1): Likewise.
11466 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11467 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11468 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11470 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11472 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11473 mode of address computation when calling memory_address_addr_space.
11475 2013-08-24 Richard Henderson <rth@twiddle.net>
11478 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11479 instead of create_convert_operand_to.
11480 (maybe_emit_sync_lock_test_and_set): Likewise.
11481 (expand_atomic_compare_and_swap): Likewise.
11482 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11484 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11486 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11487 Change param_is to use the struct and not the pointer to the struct.
11489 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11491 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11492 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11493 Move to targhooks.c.
11494 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11495 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11496 Relocate from gimplify.c.
11497 * targhooks.h: Add 2 prototypes.
11498 * tree.h: Delete 2 prototypes.
11500 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11502 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11503 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11505 2013-10-24 Cong Hou <congh@google.com>
11507 * convert.c (convert_to_real): Guard those unsafe math function
11508 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11511 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11514 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11516 (cgraph_create_edge): Use the new argument.
11517 (cgraph_create_indirect_edge): Likewise.
11519 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11521 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11522 TYPE_UNCOND_BRANCH.
11523 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11524 changes statep->state.
11526 2013-10-24 Tobias Burnus <burnus@net-b.de>
11529 * tree-cfg.c (replace_loop_annotate): New function.
11530 (execute_build_cfg): Call it.
11531 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11532 * internal-fn.c (expand_ANNOTATE): New function.
11533 * internal-fn.def (ANNOTATE): Define as new internal function.
11534 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11535 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11536 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11537 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11538 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11540 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11541 Marcus Shawcroft <marcus.shawcroft@arm.com>
11543 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11544 Special case reload SP+C into none GENERAL_REGS.
11546 2013-10-24 Michael Matz <matz@suse.de>
11548 * gengtype.c (is_file_equal): Check that files will be same length.
11550 2013-10-25 Christian Bruel <christian.bruel@st.com>
11552 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11553 * config/sh/t-sh (sh-mem.o): New rule.
11554 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11555 (sh_expand_cmpstr): New function.
11556 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11557 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11558 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11559 (rotlhi3_8): Rename.
11561 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11563 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11564 * Makefile.in (CXXDEPMODE): Assign and change users.
11565 (CCDEPMODE): Delete.
11566 * configure: Regenerate.
11568 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11570 * gengtype-parse.c (require_without_advance): New.
11571 (type): For GTY-marked types that are not GTY((user)), parse any
11572 base classes, requiring them to be single-inheritance, and not
11573 be templates. For non-GTY-marked types and GTY((user)),
11574 continue to skip over any C++ inheritance specification.
11575 * gengtype-state.c (state_writer::write_state_struct_type):
11576 Write base class of type (if any).
11577 (read_state_struct_type): Read base class of type (if any).
11578 * gengtype.c (new_structure): Add a "base_class" parameter.
11579 (create_optional_field_): Update for new parameter to new_structure.
11580 (adjust_field_rtx_def): Likewise.
11581 (adjust_field_tree_exp): Likewise.
11582 * gengtype.h (struct type): Add "base_class" field to the s
11584 (new_structure): Add "base" parameter.
11586 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11589 * config/i386/i386.c (ix86_option_override_internal):
11590 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11591 (ix86_valid_target_attribute_tree):
11592 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11593 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11595 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11597 * tree-ssa-loop.h: Remove include files.
11598 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11599 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11600 * graphite-clast-to-gimple.c: Likewise.
11601 * graphite-scop-detection.c: Likewise.
11602 * graphite-sese-to-poly.c: Likewise.
11603 * ipa-inline-analysis.c: Likewise.
11604 * ipa-pure-const.c: Likewise.
11605 * loop-init.c: Likewise.
11606 * passes.c: Likewise.
11607 * predict.c: Likewise.
11608 * tree-cfg.c: Likewise.
11609 * tree-cfgcleanup.c: Likewise.
11610 * tree-chrec.c: Likewise.
11611 * tree-data-ref.c: Likewise.
11612 * tree-loop-distribution.c: Likewise.
11613 * tree-parloops.c: Likewise.
11614 * tree-predcom.c: Likewise.
11615 * tree-scalar-evolution.c: Likewise.
11616 * tree-ssa-address.c: Likewise.
11617 * tree-ssa.c: Likewise.
11618 * tree-ssa-dce.c: Likewise.
11619 * tree-ssa-loop.c: Likewise.
11620 * tree-ssa-loop-im.c: Likewise.
11621 * tree-ssa-loop-ivcanon.c: Likewise.
11622 * tree-ssa-loop-ivopts.c: Likewise.
11623 * tree-ssa-loop-manip.c: Likewise.
11624 * tree-ssa-loop-niter.c: Likewise.
11625 * tree-ssa-loop-prefetch.c: Likewise.
11626 * tree-ssa-loop-unswitch.c: Likewise.
11627 * tree-ssa-reassoc.c: Likewise.
11628 * tree-vect-data-refs.c: Likewise.
11629 * tree-vect-loop.c: Likewise.
11630 * tree-vect-loop-manip.c: Likewise.
11631 * tree-vectorizer.c: Likewise.
11632 * tree-vect-stmts.c: Likewise.
11633 * tree-vrp.c: Likewise.
11635 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11637 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11639 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11641 PR tree-optimization/58775
11642 PR tree-optimization/58791
11643 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11644 (insert_stmt_after): Rewritten, don't move the stmt, but really
11646 (get_stmt_uid_with_default): Remove.
11647 (build_and_add_sum): Use insert_stmt_after and
11648 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11649 (update_range_test): Set uid on stmts added by
11650 force_gimple_operand_gsi. Don't immediately modify statements
11651 in inter-bb optimization, just update oe->op values.
11652 (optimize_range_tests): Return bool whether any changed have been made.
11653 (update_ops): New function.
11654 (struct inter_bb_range_test_entry): New type.
11655 (maybe_optimize_range_tests): Perform statement changes here.
11656 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11657 ensure_ops_are_available): Remove.
11658 (find_insert_point): Rewritten.
11659 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11660 return LHS of the (new resp. old) stmt. Don't call
11661 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11662 instead of last, move new stmt at the right place.
11663 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11664 (negate_value): Likewise. Set uids.
11665 (break_up_subtract_bb): Initialize uids.
11666 (reassociate_bb): Adjust rewrite_expr_tree caller.
11667 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11669 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11672 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11673 TARGET_32BIT final condition.
11674 (mulsi3_internal2 and splitter): Same.
11676 2013-10-23 Jeff Law <law@redhat.com>
11678 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11679 through joiner blocks with abnormal outgoing edges.
11681 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11682 Add parameter JOINERS, to allow/disallow threading through joiner
11684 (thread_block): New. Call thread_block_1.
11685 (mark_threaded_blocks): Remove code to filter out certain cases
11686 of threading through joiner blocks.
11687 (thread_through_all_blocks): Document how we can have a dangling
11688 edge AUX field and clear it.
11690 2013-10-23 Ian Lance Taylor <iant@google.com>
11692 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11693 (C++ Dialect Options): Likewise.
11694 (Optimize Options): Likewise.
11696 2013-10-23 Tom de Vries <tom@codesourcery.com>
11698 PR tree-optimization/58805
11699 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11701 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11703 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11704 sequence based on get_range_info returned range.
11706 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11708 * tree-ssa.h: Remove all #include's
11709 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11710 * alias.c: Move required includes from tree-ssa.h.
11711 * asan.c: Likewise.
11712 * builtins.c: Likewise.
11713 * calls.c: Likewise.
11714 * cfgexpand.c: Likewise.
11715 * cfghooks.c: Likewise.
11716 * cfgloop.c: Likewise.
11717 * cfgloopmanip.c: Likewise.
11718 * cgraph.c: Likewise.
11719 * cgraphbuild.c: Likewise.
11720 * cgraphclones.c: Likewise.
11721 * cgraphunit.c: Likewise.
11723 * except.c: Likewise.
11724 * expr.c: Likewise.
11725 * final.c: Likewise.
11726 * fold-const.c: Likewise.
11727 * ggc-page.c: Likewise.
11728 * gimple-builder.c: Likewise.
11729 * gimple-fold.c: Likewise.
11730 * gimple-iterator.c: Likewise.
11731 * gimple-low.c: Likewise.
11732 * gimple-pretty-print.c: Likewise.
11733 * gimple-ssa-strength-reduction.c: Likewise.
11734 * gimple-streamer-in.c: Likewise.
11735 * gimple-streamer-out.c: Likewise.
11736 * gimplify.c: Likewise.
11737 * graphite-blocking.c: Likewise.
11738 * graphite-clast-to-gimple.c: Likewise.
11739 * graphite-dependences.c: Likewise.
11740 * graphite-interchange.c: Likewise.
11741 * graphite-optimize-isl.c: Likewise.
11742 * graphite-poly.c: Likewise.
11743 * graphite-scop-detection.c: Likewise.
11744 * graphite-sese-to-poly.c: Likewise.
11745 * graphite.c: Likewise.
11746 * ipa-cp.c: Likewise.
11747 * ipa-inline-analysis.c: Likewise.
11748 * ipa-inline-transform.c: Likewise.
11749 * ipa-inline.c: Likewise.
11750 * ipa-prop.c: Likewise.
11751 * ipa-pure-const.c: Likewise.
11752 * ipa-reference.c: Likewise.
11753 * ipa-split.c: Likewise.
11754 * ipa-utils.c: Likewise.
11755 * loop-init.c: Likewise.
11756 * lto-cgraph.c: Likewise.
11757 * lto-section-in.c: Likewise.
11758 * lto-section-out.c: Likewise.
11759 * lto-streamer-in.c: Likewise.
11760 * lto-streamer-out.c: Likewise.
11761 * lto-streamer.c: Likewise.
11762 * omp-low.c: Likewise.
11763 * passes.c: Likewise.
11764 * predict.c: Likewise.
11765 * print-tree.c: Likewise.
11766 * profile.c: Likewise.
11767 * sese.c: Likewise.
11768 * targhooks.c: Likewise.
11769 * tracer.c: Likewise.
11770 * trans-mem.c: Likewise.
11771 * tree-call-cdce.c: Likewise.
11772 * tree-cfg.c: Likewise.
11773 * tree-cfgcleanup.c: Likewise.
11774 * tree-chrec.c: Likewise.
11775 * tree-complex.c: Likewise.
11776 * tree-data-ref.c: Likewise.
11777 * tree-dfa.c: Likewise.
11778 * tree-eh.c: Likewise.
11779 * tree-emutls.c: Likewise.
11780 * tree-if-conv.c: Likewise.
11781 * tree-inline.c: Likewise.
11782 * tree-into-ssa.c: Likewise.
11783 * tree-loop-distribution.c: Likewise.
11784 * tree-mudflap.c: Likewise.
11785 * tree-nested.c: Likewise.
11786 * tree-nrv.c: Likewise.
11787 * tree-object-size.c: Likewise.
11788 * tree-outof-ssa.c: Likewise.
11789 * tree-parloops.c: Likewise.
11790 * tree-phinodes.c: Likewise.
11791 * tree-predcom.c: Likewise.
11792 * tree-pretty-print.c: Likewise.
11793 * tree-profile.c: Likewise.
11794 * tree-scalar-evolution.c: Likewise.
11795 * tree-sra.c: Likewise.
11796 * tree-ssa-address.c: Likewise.
11797 * tree-ssa-alias.c: Likewise.
11798 * tree-ssa-ccp.c: Likewise.
11799 * tree-ssa-coalesce.c: Likewise.
11800 * tree-ssa-copy.c: Likewise.
11801 * tree-ssa-copyrename.c: Likewise.
11802 * tree-ssa-dce.c: Likewise.
11803 * tree-ssa-dom.c: Likewise.
11804 * tree-ssa-dse.c: Likewise.
11805 * tree-ssa-forwprop.c: Likewise.
11806 * tree-ssa-ifcombine.c: Likewise.
11807 * tree-ssa-live.c: Likewise.
11808 * tree-ssa-loop-ch.c: Likewise.
11809 * tree-ssa-loop-im.c: Likewise.
11810 * tree-ssa-loop-ivcanon.c: Likewise.
11811 * tree-ssa-loop-ivopts.c: Likewise.
11812 * tree-ssa-loop-manip.c: Likewise.
11813 * tree-ssa-loop-niter.c: Likewise.
11814 * tree-ssa-loop-prefetch.c: Likewise.
11815 * tree-ssa-loop-unswitch.c: Likewise.
11816 * tree-ssa-loop.c: Likewise.
11817 * tree-ssa-math-opts.c: Likewise.
11818 * tree-ssa-operands.c: Likewise.
11819 * tree-ssa-phiopt.c: Likewise.
11820 * tree-ssa-phiprop.c: Likewise.
11821 * tree-ssa-pre.c: Likewise.
11822 * tree-ssa-propagate.c: Likewise.
11823 * tree-ssa-reassoc.c: Likewise.
11824 * tree-ssa-sccvn.c: Likewise.
11825 * tree-ssa-sink.c: Likewise.
11826 * tree-ssa-strlen.c: Likewise.
11827 * tree-ssa-structalias.c: Likewise.
11828 * tree-ssa-tail-merge.c: Likewise.
11829 * tree-ssa-ter.c: Likewise.
11830 * tree-ssa-threadedge.c: Likewise.
11831 * tree-ssa-threadupdate.c: Likewise.
11832 * tree-ssa-uncprop.c: Likewise.
11833 * tree-ssa-uninit.c: Likewise.
11834 * tree-ssa.c: Likewise.
11835 * tree-ssanames.c: Likewise.
11836 * tree-stdarg.c: Likewise.
11837 * tree-streamer-in.c: Likewise.
11838 * tree-switch-conversion.c: Likewise.
11839 * tree-tailcall.c: Likewise.
11840 * tree-vect-data-refs.c: Likewise.
11841 * tree-vect-generic.c: Likewise.
11842 * tree-vect-loop-manip.c: Likewise.
11843 * tree-vect-loop.c: Likewise.
11844 * tree-vect-patterns.c: Likewise.
11845 * tree-vect-slp.c: Likewise.
11846 * tree-vect-stmts.c: Likewise.
11847 * tree-vectorizer.c: Likewise.
11848 * tree-vrp.c: Likewise.
11849 * tree.c: Likewise.
11850 * tsan.c: Likewise.
11851 * value-prof.c: Likewise.
11852 * var-tracking.c: Likewise.
11853 * varpool.c: Likewise.
11854 * vtable-verify.c: Likewise.
11856 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11858 * config/tilegx/tilegx.c: Include "tree.h".
11860 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11862 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11863 the info, not after it.
11864 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11865 dump_ssaname_info call.
11866 (pp_gimple_stmt_1): Adjust caller.
11867 (dump_phi_nodes): Likewise. Don't print "# " here.
11869 2013-10-22 Jan Hubicka <jh@suse.cz>
11871 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11873 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11874 * i386.c (expand_small_movmem_or_setmem): New function.
11875 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11877 (alg_usable_p): Add support for value ranges; cleanup.
11878 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11880 2013-10-22 Sterling Augustine <saugustine@google.com>
11882 * doc/invoke.texi: Document -ggnu-pubnames.
11883 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11885 * dwarf2out.c: Include gdb/gdb-index.h.
11886 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11887 debug_generate_pub_sections.
11888 (is_java, output_pubtables, output_pubname): New functions.
11889 (include_pubname_in_output): Handle debug_generate_pub_sections at
11891 (size_of_pubnames): Use new local space_for_flags based on
11892 debug_generate_pub_sections.
11893 (output_pubnames): Unify pubnames and pubtypes output logic.
11894 Genericize comments. Call output_pubname.
11895 (dwarf2out_finish): Move logic to output_pubnames and call it.
11897 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11900 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11901 Remove CCCmode handling.
11902 <case LTU>: Return 'c' suffix for CCCmode.
11903 <case GEU>: Return 'nc' suffix for CCCmode.
11904 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11905 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11906 (*sub<mode>3_cc_overflow): Ditto.
11907 (*subsi3_zext_cc_overflow): Ditto.
11909 2013-10-22 Steve Ellcey <sellcey@mips.com>
11911 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11912 (AND (NOT OP1) (NOT OP2)).
11914 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11916 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11917 meaning of merge-high and merge-low masks for little endian; avoid
11918 use of vector-pack masks for little endian for mismatched modes.
11920 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11922 * config/tilepro/tilepro.c: Include "tree.h".
11924 2013-10-22 Andreas Schwab <schwab@suse.de>
11926 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11929 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11931 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11932 [Ed Smith-Rowland]): New entries.
11933 ([Stephen M. Webb]): Update.
11935 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11937 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11939 2013-10-21 Marek Polacek <polacek@redhat.com>
11941 PR middle-end/58809
11942 * fold-const.c (fold_range_test): Return 0 if the type is not
11945 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11947 * system.h: Move hwint.h include further down.
11948 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11949 gcc_checking_asserts.
11950 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11952 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11954 Fix volatile issues in optimize_bit_field_compare.
11955 * fold-const.c (optimize_bit_field_compare): Bail out if
11956 lvolatilep or rvolatilep.
11958 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11960 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11961 and get_inner_reference returning different pmode for non-volatile
11962 bit-field members dependent on flag_strict_volatile_bitfields.
11963 * stor-layout.c (layout_decl): Remove special handling of
11964 flag_strict_volatile_bitfields.
11965 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11966 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11968 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11970 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11973 2013-10-21 Jeff Law <law@redhat.com>
11975 * tree-ssa-threadedge.c (thread_through_normal_block): New
11976 argument VISITED. Remove VISISTED as a local variable. When we
11977 have a threadable jump, verify the destination of the jump has not
11979 (thread_across_edge): Allocate VISITED bitmap once at function
11980 scope and use it throughout. Make sure to set appropriate bits in
11981 VISITED for E (start of jump thread path).
11982 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11983 through a joiner if any edge on the path has a recorded jump thread.
11985 2013-10-21 Ian Lance Taylor <iant@google.com>
11987 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11988 don't imply that attributes can solve all problems.
11989 (Directory Options): Fix typo.
11991 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11993 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11994 extend and extend_add.
11996 2013-10-21 Richard Biener <rguenther@suse.de>
11998 PR tree-optimization/58794
11999 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12000 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12002 2013-10-21 Richard Biener <rguenther@suse.de>
12004 PR middle-end/58742
12005 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12006 to (T) X for sign-changing conversions (or no conversion).
12008 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12010 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12012 2013-10-20 Jan Hubicka <jh@suse.cz>
12014 * config/i386/i386-tune.def: Add comment; organize into categories
12016 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12018 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12019 argument. Update function comment.
12020 (expand_set_or_movmem_via_rep): New function combining
12021 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12022 (expand_movmem_via_rep_mov): Remove.
12023 expand_setmem_via_rep_stos): Remove.
12024 (expand_movmem_epilogue): Update calls correspondingly.
12025 (expand_setmem_epilogue_via_loop): Likewise.
12026 (emit_memset): New.
12027 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12028 (expand_set_or_movmem_prologue): New function combining
12029 expand_movmem_prologue and expand_setmem_prologue.
12030 (expand_movmem_prologue): Remove.
12031 (expand_setmem_prologue): Remove.
12032 (expand_set_or_movmem_constant_prologue): New function combining
12033 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12034 (expand_constant_movmem_prologue): Remove.
12035 (expand_constant_setmem_prologue): Remove.
12036 (promote_duplicated_reg): Allow vector-const0 value.
12037 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12038 and ix86_expand_setmem.
12039 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12040 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12042 2013-10-21 Diego Novillo <dnovillo@google.com>
12044 * asan.c: Include tree.h
12045 * bb-reorder.c: Likewise.
12046 * cfgcleanup.c: Likewise.
12047 * cfgloopmanip.c: Likewise.
12048 * data-streamer-in.c: Likewise.
12049 * data-streamer-out.c: Likewise.
12050 * data-streamer.c: Likewise.
12051 * dwarf2cfi.c: Likewise.
12052 * graphite-blocking.c: Likewise.
12053 * graphite-clast-to-gimple.c: Likewise.
12054 * graphite-dependences.c: Likewise.
12055 * graphite-interchange.c: Likewise.
12056 * graphite-optimize-isl.c: Likewise.
12057 * graphite-poly.c: Likewise.
12058 * graphite-scop-detection.c: Likewise.
12059 * graphite-sese-to-poly.c: Likewise.
12060 * graphite.c: Likewise.
12061 * ipa-devirt.c: Likewise.
12062 * ipa-profile.c: Likewise.
12065 * loop-init.c: Likewise.
12066 * loop-unroll.c: Likewise.
12067 * lower-subreg.c: Likewise.
12068 * lto/lto-object.c: Likewise.
12069 * recog.c: Likewise.
12070 * reginfo.c: Likewise.
12071 * tree-loop-distribution.c: Likewise.
12072 * tree-parloops.c: Likewise.
12073 * tree-ssa-strlen.c: Likewise.
12074 * tree-streamer.c: Likewise.
12075 * value-prof.c: Likewise.
12076 * target-globals.c: Likewise.
12077 * expr.h: Include tree-core.h instead of tree.h.
12078 * gimple.h: Likewise.
12079 * ipa-prop.h: Likewise.
12080 * ipa-utils.h: Likewise.
12081 * lto-streamer.h: Likewise.
12082 * streamer-hooks.h: Likewise.
12083 * ipa-reference.h: Include cgraph.h instead of tree.h.
12084 * cgraph.h: Include basic-block.h instead of tree.h.
12085 * tree-streamer.h: Do not include tree.h.
12086 * genattrtab.c (write_header): Generate inclusion of tree.h.
12087 * genautomata.c (main): Likewise.
12088 * genemit.c: Likewise.
12089 * genopinit.c: Likewise.
12090 * genoutput.c (output_prologue): Likewise.
12091 * genpeep.c: Likewise.
12093 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12095 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12097 (vec_unpacku_hi_v8hi): Likewise.
12098 (vec_unpacku_lo_v16qi): Likewise.
12099 (vec_unpacku_lo_v8hi): Likewise.
12101 2013-10-20 Jan Hubicka <jh@suse.cz>
12103 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12104 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12105 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12107 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12109 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12110 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12112 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12114 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12117 * system.h: Undef m_slot.
12119 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12121 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12122 all elements for both endian flavors.
12124 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12127 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12128 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12129 and SI_REG for 64bit SYSV ABI targets.
12131 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12133 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12134 to multi_reg_return. Clarify that we are skipping USEs of multiple
12135 return registers. Use bool type where appropriate.
12137 2013-10-18 Jan Hubicka <jh@suse.cz>
12139 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12140 for cold functions.
12141 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12142 (X86_TUNE_PUSH_MEMORY): Likewise.
12143 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12144 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12145 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12147 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12148 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12150 (ix86_option_override_internal): Update to use tune features instead
12153 2013-10-18 Cong Hou <congh@google.com>
12155 PR tree-optimization/58508
12156 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12157 statement that contains data refs with zero-step.
12159 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12161 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12162 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12163 * gimple-low.c (gimple_check_call_arg,
12164 gimple_check_call_matching_types): Move to cgraph.c.
12165 * gimple-low.h: Remove prototype.
12166 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12167 Relocate from gimple-low.c.
12168 * cgraph.h: Add prototype. Don't include basic-block.h.
12169 * gimplify.c: Add gimple-low to include list.
12170 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12171 * tree-eh.c: Add gimple-low to include list.
12172 * tree-nested.c: Likewise.
12173 * cfgexpand.c: Add tree-ssa-address.h to include list.
12174 * expr.c: Likewise.
12175 * gimple-fold.c: Likewise.
12176 * gimple-ssa-strength-reduction.c: Likewise.
12177 * trans-mem.c: Likewise.
12178 * tree-mudflap.c: Likewise.
12179 * tree-ssa-loop-ivopts.c: Likewise.
12180 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12181 (degenerate_phi_result): Move to tree-phinodes.c.
12182 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12183 * tree-ssa-threadedge.c: Likewise.
12184 * tree-vrp.c: Likewise.
12185 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12186 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12187 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12188 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12189 * tree-ssa-forwprop.c: Likewise.
12190 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12191 pass_data_cleanup_cfg_post_optimizing,
12192 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12193 * tree-optimize.c: Delete File.
12194 * graphite.c: Include tree-cfgcleanup.h.
12195 * passes.c: Likewise.
12196 * tree-cfg.c: Likewise.
12197 * tree-profile.c: Likewise.
12198 * tree-ssa-dse.c: Likewise.
12199 * tree-ssa-loop-ivcanon.c: Likewise.
12200 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12201 * tree-outof-ssa.c: Include sbitmap.h.
12202 * tree-ssa-live.c: Likewise.
12203 * tree-ssa-propagate.c: Likewise.
12204 * tree-ssa-structalias.c: Likewise.
12205 * tree-stdarg.c: Likewise.
12206 * Makefile.in (OBJS): Delete tree-optimize.o.
12207 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12208 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12209 * varasm.c: Include basic-block.h.
12210 * cfgloop.h: Include function.h instead of basic-block.h
12211 (bb_loop_depth): Move to cfgloop.c.
12212 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12214 2013-10-18 Teresa Johnson <tejohnson@google.com>
12216 * predict.c (probably_never_executed): Compare frequency-based
12217 count to number of training runs.
12218 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12220 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12222 * config/arm/arm.c (cortexa9_extra_costs): New table.
12223 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12225 2013-10-18 Jeff Law <law@redhat.com>
12227 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12229 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12230 (register_jump_thread): Add "registered_jump_thread" debug
12232 * dbgcnt.def (registered_jump_thread): New debug counter.
12234 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12236 * config/rs6000/rs6000.c: Include cgraph.h.
12238 2013-10-18 Teresa Johnson <tejohnson@google.com>
12240 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12241 weights during merging.
12243 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12245 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12246 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12247 * tree-ssa-operands.h: Remove prototype.
12248 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12249 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12250 * gimple.h: Add prototype.
12251 * gimple-ssa.h: Include tree-ssa-operands.h.
12252 * tree-dump.c: Add tree-cfg.h to include list.
12253 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12254 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12255 * config/i386/i386.c: Don't include tree-flow.h.
12256 * config/rs6000/rs6000.c: Likewise.
12258 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12260 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12262 2013-10-18 Richard Biener <rguenther@suse.de>
12264 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12265 or TYPE_UNSIGNED of integral types.
12266 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12267 NULL_TREE for zero-precision integral types.
12269 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12271 * config/aarch64/arm_neon.h
12272 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12274 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12277 * opth-gen.awk: Define target_flags_explicit.
12279 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12281 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12282 fields to the reg_addr array that describes the valid addressing
12283 mode for any register, general purpose registers, floating point
12284 registers, and Altivec registers.
12285 (FIRST_RELOAD_REG_CLASS): Likewise.
12286 (LAST_RELOAD_REG_CLASS): Likewise.
12287 (struct reload_reg_map_type): Likewise.
12288 (reload_reg_map_type): Likewise.
12289 (RELOAD_REG_VALID): Likewise.
12290 (RELOAD_REG_MULTIPLE): Likewise.
12291 (RELOAD_REG_INDEXED): Likewise.
12292 (RELOAD_REG_OFFSET): Likewise.
12293 (RELOAD_REG_PRE_INCDEC): Likewise.
12294 (RELOAD_REG_PRE_MODIFY): Likewise.
12295 (reg_addr): Likewise.
12296 (mode_supports_pre_incdec_p): New helper functions to say whether
12297 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12298 (mode_supports_pre_modify_p): Likewise.
12299 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12300 print the valid address mode bits for each mode.
12301 (rs6000_debug_print_mode): Likewise.
12302 (rs6000_debug_reg_global): Likewise.
12303 (rs6000_setup_reg_addr_masks): New function to set up the address
12304 mask bits for each type.
12305 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12306 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12307 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12308 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12309 PRE_MODIFY are supported.
12310 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12311 registers, instead of {src,dest}_av_p.
12312 (rs6000_print_options_internal): Tweak the debug output slightly.
12314 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12316 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12319 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12321 * tree-flow.h (struct omp_region): Move to omp-low.c.
12322 Remove omp_ prototypes and variables.
12323 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12324 (copy_var_decl): Relocate prototype from tree-flow.h.
12325 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12326 * tree.h: Move prototype to omp-low.h.
12327 * omp-low.h: New File. Relocate prototypes here.
12328 * omp-low.c (struct omp_region): Make local here.
12329 (root_omp_region): Make static.
12330 (copy_var_decl) Move to gimple.c.
12331 (new_omp_region): Make static.
12332 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12333 * tree-cfg.c: Include omp-low.h.
12334 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12335 * gimplify.c: Include omp-low.h.
12336 * tree-parloops.c: Likewise.
12338 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12340 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12341 operands are in memory, prefer to force non-matched operand 1 to
12344 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12347 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12348 restrict TImode addresses to single indirect registers if both
12349 -mquad-memory and -mvsx-timode are used.
12350 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12351 we should emit load/store quad. Remove using %y for quad memory
12354 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12355 constraints to allow load/store quad on machines where TImode is
12356 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12357 for TImode to load integer constants.
12359 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12361 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12363 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12365 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12366 handling of STACK_REG.
12368 2013-10-17 Richard Biener <rguenther@suse.de>
12370 PR tree-optimization/58143
12371 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12373 (rewrite_to_defined_overflow): Likewise.
12374 (move_computations_dom_walker::before_dom): Rewrite stmts
12375 with undefined signed overflow that are not always executed
12376 into unsigned arithmetic.
12378 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12381 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12382 explicit isa flag to be an options variable, instead of using
12383 global_options_set. Remove define from rs6000.h.
12384 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12386 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12387 Initialize rs6000_isa_flags_explicit.
12388 (rs6000_function_specific_save): Add gcc_options* parameter, so
12389 that the powerpc builds after the 2013-10-15 changes.
12390 (rs6000_function_specific_restore): Likewise.
12392 2013-10-16 DJ Delorie <dj@redhat.com>
12394 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12395 op is a REG before checking REGNO.
12396 (rl78_alloc_physical_registers): Verify pattern is a SET before
12399 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12401 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12403 (vec_unpacks_lo_v4sf): Likewise.
12404 (vec_unpacks_float_hi_v4si): Likewise.
12405 (vec_unpacks_float_lo_v4si): Likewise.
12406 (vec_unpacku_float_hi_v4si): Likewise.
12407 (vec_unpacku_float_lo_v4si): Likewise.
12409 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12411 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12412 (vsx_concat_v2sf): Likewise.
12414 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12416 * config/aarch64/aarch64.md
12417 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12419 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12421 PR tree-optimization/58697
12422 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12423 estimated_loop_iterations_int.
12424 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12425 (get_max_loop_iterations_int): New. HWINT version of
12426 get_max_loop_iterations.
12427 * cfgloop.h: Add prototypes.
12428 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12429 * loop-unroll.c (decide_peel_once_rolling): Call
12430 get_estimated_loop_iterations_int.
12431 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12432 * tree-ssa-loop-niter.h: Tweak prototypes.
12434 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12436 * gengtype-parse.c (struct_field_seq): Ignore access-control
12437 keywords ("public:" etc).
12439 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12441 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12442 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12444 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12446 * config/arm/arm.opt (mlra): New option.
12447 * config/arm/arm.c (arm_lra_p): New function.
12448 (TARGET_LRA_P): Define.
12450 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12452 * tree-core.h (tree_code_name): Remove.
12453 * tree.h (get_tree_code_name): New prototype.
12454 * tree.c (tree_code_name): Make static.
12455 (get_tree_code_name): New function.
12456 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12457 tree_class_check_failed, tree_range_check_failed,
12458 tree_not_class_check_failed, omp_clause_check_failed,
12459 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12460 wrapper get_tree_code_name instead of calling tree_code_name directly.
12461 * tree-vrp.c (dump_asserts_for): Likewise.
12462 * tree-dump.c (dequeue_and_dump): Likewise.
12463 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12464 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12465 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12466 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12467 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12468 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12469 dump_gimple_omp_for): Likewise.
12470 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12471 * tree-ssa-pre.c (print_pre_expr): Likewise.
12472 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12473 * print-tree.c (print_node_brief, print_node): Likewise.
12474 * gimple.c (gimple_check_failed): Likewise.
12475 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12476 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12477 * config/mep/mep.c (mep_validate_vliw): Likewise.
12478 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12479 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12481 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12483 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12486 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12488 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12489 (MULTILIB_MATCHES): Add multilib for -march=v8.
12491 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12494 * optc-save-gen.awk: Add extra parameter to the save and restore
12496 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12497 * tree.c (build_optimization_node): New parameter. Add extra parameter
12498 to call to cl_optimization_save.
12499 (build_target_option_node): New parameter. Add extra parameter
12500 to call to cl_target_option_save.
12501 * tree.h (build_optimization_node): New parameter.
12502 (build_target_option_node): New parameter.
12503 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12504 build_optimization_node and build_target_option_node.
12505 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12506 (handle_pragma_push_options): Ditto.
12507 * toplev.c (process_options): Ditto.
12508 * opts.c (init_options_struct): Check for opts_set non-null.
12509 * target.def (target_option.save): New parameter.
12510 (target_option.restore): New parameter.
12511 * tm.texi: Generate.
12512 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12513 (ix86_pragma_target_parse): Ditto.
12514 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12517 to build_optimization_node and build_target_option_node.
12518 (rs6000_valid_attribute_p): Ditto.
12519 (rs6000_pragma_target_parse): Ditto.
12520 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12522 * config/i386/i386.h:
12523 TARGET_64BIT_P: New Macro
12524 TARGET_MMX_P: New Macro.
12525 TARGET_3DNOW_P: New Macro.
12526 TARGET_3DNOW_A_P: New Macro.
12527 TARGET_SSE_P: New Macro.
12528 TARGET_SSE2_P: New Macro.
12529 TARGET_SSE3_P: New Macro.
12530 TARGET_SSSE3_P: New Macro.
12531 TARGET_SSE4_1_P: New Macro.
12532 TARGET_SSE4_2_P: New Macro.
12533 TARGET_AVX_P: New Macro.
12534 TARGET_AVX2_P: New Macro.
12535 TARGET_AVX512F_P: New Macro.
12536 TARGET_AVX512PF_P: New Macro.
12537 TARGET_AVX512ER_P: New Macro.
12538 TARGET_AVX512CD_P: New Macro.
12539 TARGET_FMA_P: New Macro.
12540 TARGET_SSE4A_P: New Macro.
12541 TARGET_FMA4_P: New Macro.
12542 TARGET_XOP_P: New Macro.
12543 TARGET_LWP_P: New Macro.
12544 TARGET_ABM_P: New Macro.
12545 TARGET_BMI_P: New Macro.
12546 TARGET_BMI2_P: New Macro.
12547 TARGET_LZCNT_P: New Macro.
12548 TARGET_TBM_P: New Macro.
12549 TARGET_POPCNT_P: New Macro.
12550 TARGET_SAHF_P: New Macro.
12551 TARGET_MOVBE_P: New Macro.
12552 TARGET_CRC32_P: New Macro.
12553 TARGET_AES_P: New Macro.
12554 TARGET_PCLMUL_P: New Macro.
12555 TARGET_CMPXCHG16B_P: New Macro.
12556 TARGET_FSGSBASE_P: New Macro.
12557 TARGET_RDRND_P: New Macro.
12558 TARGET_F16C_P: New Macro.
12559 TARGET_RTM_P: New Macro.
12560 TARGET_HLE_P: New Macro.
12561 TARGET_RDSEED_P: New Macro.
12562 TARGET_PRFCHW_P: New Macro.
12563 TARGET_ADX_P: New Macro.
12564 TARGET_FXSR_P: New Macro.
12565 TARGET_XSAVE_P: New Macro.
12566 TARGET_XSAVEOPT_P: New Macro.
12567 TARGET_LP64_P: New Macro.
12568 TARGET_X32_P: New Macro.
12569 TARGET_FPMATH_DEFAULT_P: New Macro.
12570 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12571 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12573 Change ix86_tune_string to access opts->x_ix86_tune_string.
12574 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12575 Change ix86_arch_string to access opts->x_ix86_arch_string.
12576 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12577 Change ix86_pmode to access opts->x_ix86_pmode.
12578 Change ix86_abi to access opts->x_ix86_abi.
12579 Change ix86_cmodel to access opts->x_ix86_cmodel.
12580 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12581 Change ix86_isa_flags_explicit to access
12582 opts->x_ix86_isa_flags_explicit.
12583 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12584 Change ix86_regparm to access opts->x_ix86_regparm.
12585 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12586 Change ix86_preferred_stack_boundary_arg to access
12587 opts->x_ix86_preferred_stack_boundary_arg.
12588 Change ix86_force_align_arg_pointer to access
12589 opts->x_ix86_force_align_arg_pointer.
12590 Change ix86_incoming_stack_boundar_arg to access
12591 opts->x_ix86_incoming_stack_boundar_arg.
12592 Change ix86_fpmath to access opts->x_ix86_fpmath.
12593 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12594 Change ix86_recip_name to access opts->x_ix86_recip_name.
12595 Change ix86_stack_protector_guard to access
12596 opts->x_ix86_stack_protector_guard.
12597 Change ix86_tune_memcpy_strategy to access
12598 opts->x_ix86_tune_memcpy_strategy.
12599 Change ix86_tune_memset_strategy to access
12600 opts->x_ix86_tune_memset_strategy.
12601 Change global_options to access opts.
12602 Change global_options_set to access opts_set.
12603 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12604 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12605 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12606 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12607 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12608 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12609 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12610 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12611 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12612 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12613 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12614 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12615 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12616 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12617 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12618 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12619 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12620 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12621 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12622 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12623 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12624 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12625 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12626 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12627 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12628 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12629 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12630 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12631 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12632 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12633 Change TARGET_AES to TARGET_AES_P (opts->...).
12634 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12635 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12636 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12637 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12638 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12639 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12640 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12641 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12642 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12643 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12644 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12645 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12646 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12647 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12648 Change TARGET_X32 to TARGET_X32_P (opts->...).
12649 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12650 Change TARGET_FLOAT_RETURNS_IN_80387 to
12651 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12652 (ix86_function_specific_save): New parameter. Use opts-> fields
12653 to replace global fields.
12654 (ix86_function_specific_restore): Ditto.
12655 (ix86_valid_target_attribute_inner_p): New parameters.
12656 Fix recursive call.
12657 Fix call to ix86_handle_option and set_option.
12658 (ix86_valid_target_attribute_tree): New parameters.
12659 Change global_options to access opts.
12660 Change global_options_set to access opts_set.
12661 Fix call to ix86_valid_target_attribute_inner_p.
12662 Change ix86_tune_string to access opts->x_ix86_tune_string.
12663 Change ix86_arch_string to access opts->x_ix86_arch_string.
12664 Change ix86_fpmath to access opts->x_ix86_fpmath
12665 Fix call to ix86_option_override_internal.
12666 Fix call to ix86_add_new_builtins.
12667 Fix calls to build_optimization_node and build_target_option_node.
12668 (ix86_valid_target_attribute_p): Remove access to global_options.
12669 Use new gcc_options structure func_options.
12670 Fix call to ix86_valid_target_attribute_tree.
12671 Fix call to build_optimization_node.
12672 (get_builtin_code_for_version): Fix call to
12673 ix86_valid_target_attribute_tree.
12675 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12677 * Makefile.in (PICFLAG): New.
12678 (enable_host_shared): New.
12679 (INTERNAL_CFLAGS): Use PICFLAG.
12680 (LIBIBERTY): Use pic build of libiberty.a if configured with
12681 --enable-host-shared.
12682 * configure.ac: Add --enable-host-shared, setting up new
12684 * configure: Regenerate.
12685 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12686 (--enable-host-shared): New option.
12688 2013-10-15 Richard Biener <rguenther@suse.de>
12690 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12691 for built-in functions.
12693 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12695 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12696 (optimize_range_tests_1): New function,
12697 extracted from optimize_range_tests.
12698 (optimize_range_tests_xor): Similarly.
12699 (optimize_range_tests_diff): New function.
12700 (optimize_range_tests): Use optimize_range_tests_1.
12702 2013-10-15 Cong Hou <congh@google.com>
12704 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12705 requirement of the reduction pattern so that one operand of the
12706 reduction operation can come from outside of the loop.
12708 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12710 * config/arm/neon-schedgen.ml: Remove.
12711 * config/arm/cortex-a9-neon.md: Remove comment regarding
12714 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12716 * config/arm/types: Remove old neon types.
12718 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12720 * config/arm/cortex-a7.md
12721 (cortex_a7_neon_type): New.
12722 (cortex_a7_neon_mul): Update for new types.
12723 (cortex_a7_neon_mla): Likewise.
12724 (cortex_a7_neon): Likewise.
12726 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12728 * config/arm/cortex-a15-neon.md
12729 (cortex_a15_neon_type): New,
12731 (cortex_a15_neon_int_1): Remove.
12732 (cortex_a15_neon_int_2): Likewise.
12733 (cortex_a15_neon_int_3): Likewise.
12734 (cortex_a15_neon_int_4): Likewise.
12735 (cortex_a15_neon_int_5): Likewise.
12736 (cortex_a15_neon_vqneg_vqabs): Likewise.
12737 (cortex_a15_neon_vmov): Likewise.
12738 (cortex_a15_neon_vaba): Likewise.
12739 (cortex_a15_neon_vaba_qqq): Likewise.
12740 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12741 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12742 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12744 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12745 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12746 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12747 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12748 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12749 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12750 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12751 (cortex_a15_neon_shift_1): Likewise.
12752 (cortex_a15_neon_shift_2): Likewise.
12753 (cortex_a15_neon_shift_3): Likewise.
12754 (cortex_a15_neon_vshl_ddd): Likewise.
12755 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12756 (cortex_a15_neon_vsra_vrsra): Likewise.
12757 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12758 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12759 (cortex_a15_neon_bp_3cycle): Likewise.
12760 (cortex_a15_neon_ldm_2): Likewise.
12761 (cortex_a15_neon_stm_2): Likewise.
12762 (cortex_a15_neon_mcr): Likewise.
12763 (cortex_a15_neon_mrc): Likewise.
12764 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12765 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12766 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12767 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12768 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12769 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12770 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12771 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12772 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12773 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12774 (cortex_a15_neon_bp_simple): Likewise.
12775 (cortex_a15_neon_bp_2cycle): Likewise.
12776 (cortex_a15_neon_bp_3cycle): Likewise.
12777 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12778 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12779 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12780 (cortex_a15_neon_vld2_4_regs): Likewise.
12781 (cortex_a15_neon_vld3_vld4): Likewise.
12782 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12783 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12784 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12785 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12786 (cortex_a15_neon_vst3_vst4): Rename to...
12787 (cortex_a15_neon_vst4): This, update for new attributes.
12788 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12789 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12790 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12791 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12792 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12793 (cortex_a15_neon_ldm_2): Likewise.
12794 (cortex_a15_neon_stm_2): Likewise.
12795 (cortex_a15_neon_mcr): Likewise.
12796 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12797 (cortex_a15_neon_mrc): Likewise.
12798 (cortex_a15_neon_mrrc): Likewise.
12800 (cortex_a15_neon_abd): New.
12801 (cortex_a15_neon_abd_q): Likewise.
12802 (cortex_a15_neon_aba): Likewise.
12803 (cortex_a15_neon_aba_q): Likewise.
12804 (cortex_a15_neon_acc): Likewise.
12805 (cortex_a15_neon_acc_q): Likewise.
12806 (cortex_a15_neon_arith_basic): Likewise.
12807 (cortex_a15_neon_arith_complex): Likewise.
12808 (cortex_a15_neon_multiply): Likewise.
12809 (cortex_a15_neon_multiply_q): Likewise.
12810 (cortex_a15_neon_mla): Likewise.
12811 (cortex_a15_neon_mla_q): Likewise.
12812 (cortex_a15_neon_sat_mla_long): Likewise.
12813 (cortex_a15_neon_shift_acc): Likewise.
12814 (cortex_a15_neon_shift_imm_basic): Likewise.
12815 (cortex_a15_neon_shift_imm_complex): Likewise.
12816 (cortex_a15_neon_shift_reg_basic): Likewise.
12817 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12818 (cortex_a15_neon_shift_reg_complex): Likewise.
12819 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12820 (cortex_a15_neon_fp_negabs): Likewise
12821 (cortex_a15_neon_fp_arith): Likewise
12822 (cortex_a15_neon_fp_arith_q): Likewise
12823 (cortex_a15_neon_fp_cvt_int): Likewise
12824 (cortex_a15_neon_fp_cvt_int_q): Likewise
12825 (cortex_a15_neon_fp_cvt_16): Likewise
12826 (cortex_a15_neon_fp_mul): Likewise
12827 (cortex_a15_neon_fp_mul_q): Likewise
12828 (cortex_a15_neon_fp_mla): Likewise
12829 (cortex_a15_neon_fp_mla_q): Likewise
12830 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12831 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12832 (cortex_a15_neon_bitops): Likewise.
12833 (cortex_a15_neon_bitops_q): Likewise.
12834 (cortex_a15_neon_from_gp): Likewise.
12835 (cortex_a15_neon_from_gp_q): Likewise.
12836 (cortex_a15_neon_tbl3_tbl4): Likewise.
12837 (cortex_a15_neon_zip_q): Likewise.
12838 (cortex_a15_neon_to_gp): Likewise.
12839 (cortex_a15_neon_load_a): Likewise.
12840 (cortex_a15_neon_load_b): Likewise.
12841 (cortex_a15_neon_load_c): Likewise.
12842 (cortex_a15_neon_load_d): Likewise.
12843 (cortex_a15_neon_load_e): Likewise.
12844 (cortex_a15_neon_load_f): Likewise.
12845 (cortex_a15_neon_store_a): Likewise.
12846 (cortex_a15_neon_store_b): Likewise.
12847 (cortex_a15_neon_store_c): Likewise.
12848 (cortex_a15_neon_store_d): Likewise.
12849 (cortex_a15_neon_store_e): Likewise.
12850 (cortex_a15_neon_store_f): Likewise.
12851 (cortex_a15_neon_store_g): Likewise.
12852 (cortex_a15_neon_store_h): Likewise.
12853 (cortex_a15_vfp_to_from_gp): Likewise.
12855 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12857 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12859 (cortex_a9_neon_vshl_ddd): Remove.
12860 (cortex_a9_neon_vst3_vst4): Likewise.
12861 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12863 (cortex_a9_neon_bit_ops_q): New.
12865 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12866 (cortex_a9_neon_int_2): Likewise.
12867 (cortex_a9_neon_int_3): Likewise.
12868 (cortex_a9_neon_int_4): Likewise.
12869 (cortex_a9_neon_int_5): Likewise.
12870 (cortex_a9_neon_vqneg_vqabs): Likewise.
12871 (cortex_a9_neon_vmov): Likewise.
12872 (cortex_a9_neon_vaba): Likewise.
12873 (cortex_a9_neon_vaba_qqq): Likewise.
12874 (cortex_a9_neon_shift_1): Likewise.
12875 (cortex_a9_neon_shift_2): Likewise.
12876 (cortex_a9_neon_shift_3): Likewise.
12877 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12878 (cortex_a9_neon_vsra_vrsra): Likewise.
12879 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12880 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12881 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12883 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12884 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12885 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12887 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12888 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12889 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12890 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12891 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12892 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12893 (cortex_a9_neon_fp_vsum): Likewise.
12894 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12895 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12896 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12897 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12898 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12899 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12900 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12901 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12902 (cortex_a9_neon_bp_simple): Likewise.
12903 (cortex_a9_neon_bp_2cycle): Likewise.
12904 (cortex_a9_neon_bp_3cycle): Likewise.
12905 (cortex_a9_neon_ldr): Likewise.
12906 (cortex_a9_neon_str): Likewise.
12907 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12908 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12909 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12910 (cortex_a9_neon_vld2_4_regs): Likewise.
12911 (cortex_a9_neon_vld3_vld4): Likewise.
12912 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12913 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12914 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12915 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12916 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12917 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12918 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12919 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12920 (cortex_a9_neon_mcr): Likewise.
12921 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12922 (cortex_a9_neon_mrc): Likewise.
12923 (cortex_a9_neon_mrrc): Likewise.
12925 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12927 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12929 (cortex_a8_neon_vshl_ddd): Remove.
12930 (cortex_a8_neon_vst3_vst4): Likewise.
12931 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12933 (cortex_a8_neon_bit_ops_q): New.
12935 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12936 (cortex_a8_neon_int_2): Likewise..
12937 (cortex_a8_neon_int_3): Likewise.
12938 (cortex_a8_neon_int_5): Likewise.
12939 (cortex_a8_neon_vqneg_vqabs): Likewise.
12940 (cortex_a8_neon_int_4): Likewise.
12941 (cortex_a8_neon_vaba): Likewise.
12942 (cortex_a8_neon_vaba_qqq): Likewise.
12943 (cortex_a8_neon_shift_1): Likewise.
12944 (cortex_a8_neon_shift_2): Likewise.
12945 (cortex_a8_neon_shift_3): Likewise.
12946 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12947 (cortex_a8_neon_vsra_vrsra): Likewise.
12948 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12949 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12950 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12952 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12953 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12954 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12956 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12957 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12958 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12959 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12960 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12961 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12962 (cortex_a8_neon_fp_vsum): Likewise.
12963 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12964 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12965 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12966 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12967 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12968 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12969 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12970 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12971 (cortex_a8_neon_bp_simple): Likewise.
12972 (cortex_a8_neon_bp_2cycle): Likewise.
12973 (cortex_a8_neon_bp_3cycle): Likewise.
12974 (cortex_a8_neon_ldr): Likewise.
12975 (cortex_a8_neon_str): Likewise.
12976 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12977 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12978 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12979 (cortex_a8_neon_vld2_4_regs): Likewise.
12980 (cortex_a8_neon_vld3_vld4): Likewise.
12981 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12982 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12983 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12984 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12985 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12986 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12987 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12988 (cortex_a8_neon_mcr): Likewise.
12989 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12990 (cortex_a8_neon_mrc): Likewise.
12991 (cortex_a8_neon_mrrc): Likewise.
12993 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12995 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12997 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12998 (aarch64_simd_dup<mode>): Add "type" attribute.
12999 (aarch64_dup_lane<mode>): Likewise.
13000 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13001 (*aarch64_simd_mov<mode>): Likewise.
13002 (aarch64_simd_mov_from_<mode>low): Likewise.
13003 (aarch64_simd_mov_from_<mode>high): Likewise.
13004 (orn<mode>3): Likewise.
13005 (bic<mode>3): Likewise.
13006 (add<mode>3): Likewise.
13007 (sub<mode>3): Likewise.
13008 (mul<mode>3): Likewise.
13009 (*aarch64_mul3_elt<mode>): Likewise.
13010 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13011 (*aarch64_mul3_elt_to_128df): Likewise.
13012 (*aarch64_mul3_elt_to_64v2df): Likewise.
13013 (neg<mode>2): Likewise.
13014 (abs<mode>2): Likewise.
13015 (abd<mode>_3): Likewise.
13016 (aba<mode>_3): Likewise.
13017 (fabd<mode>_3): Likewise.
13018 (*fabd_scalar<mode>3): Likewise.
13019 (and<mode>3): Likewise.
13020 (ior<mode>3): Likewise.
13021 (xor<mode>3): Likewise.
13022 (one_cmpl<mode>2): Likewise.
13023 (aarch64_simd_vec_set<mode>): Likewise.
13024 (aarch64_simd_lshr<mode>): Likewise.
13025 (aarch64_simd_ashr<mode>): Likewise.
13026 (aarch64_simd_imm_shl<mode>): Likewise.
13027 (aarch64_simd_reg_sshl<mode): Likewise.
13028 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13029 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13030 (aarch64_simd_vec_setv2di): Likewise.
13031 (aarch64_simd_vec_set<mode>): Likewise.
13032 (aarch64_mla<mode>): Likewise.
13033 (*aarch64_mla_elt<mode>): Likewise.
13034 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13035 (aarch64_mls<mode>): Likewise.
13036 (*aarch64_mls_elt<mode>): Likewise.
13037 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13038 (<su><maxmin><mode>3): Likewise.
13039 (move_lo_quad_<mode>): Likewise.
13040 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13041 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13042 (vec_pack_trunc_<mode>): Likewise.
13043 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13044 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13045 (*aarch64_<su>mlal_lo<mode>): Likewise.
13046 (*aarch64_<su>mlal_hi<mode>): Likewise.
13047 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13048 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13049 (*aarch64_<su>mlal<mode>): Likewise.
13050 (*aarch64_<su>mlsl<mode>): Likewise.
13051 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13052 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13053 (add<mode>3): Likewise.
13054 (sub<mode>3): Likewise.
13055 (mul<mode>3): Likewise.
13056 (div<mode>3): Likewise.
13057 (neg<mode>2): Likewise.
13058 (abs<mode>2): Likewise.
13059 (fma<mode>4): Likewise.
13060 (*aarch64_fma4_elt<mode>): Likewise.
13061 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13062 (*aarch64_fma4_elt_to_128df): Likewise.
13063 (*aarch64_fma4_elt_to_64v2df): Likewise.
13064 (fnma<mode>4): Likewise.
13065 (*aarch64_fnma4_elt<mode>): Likewise.
13066 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13067 (*aarch64_fnma4_elt_to_128df): Likewise.
13068 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13069 (<frint_pattern><mode>2): Likewise.
13070 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13071 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13072 (vec_unpacks_lo_v4sf): Likewise.
13073 (aarch64_float_extend_lo_v2df): Likewise.
13074 (vec_unpacks_hi_v4sf): Likewise.
13075 (aarch64_float_truncate_lo_v2sf): Likewise.
13076 (aarch64_float_truncate_hi_v4sf): Likewise.
13077 (aarch64_vmls<mode>): Likewise.
13078 (<su><maxmin><mode>3): Likewise.
13079 (<maxmin_uns><mode>3): Likewise.
13080 (reduc_<sur>plus_<mode>): Likewise.
13081 (reduc_<sur>plus_v2di): Likewise.
13082 (reduc_<sur>plus_v2si): Likewise.
13083 (reduc_<sur>plus_<mode>): Likewise.
13084 (aarch64_addpv4sf): Likewise.
13085 (clz<mode>2): Likewise.
13086 (reduc_<maxmin_uns>_<mode>): Likewise.
13087 (reduc_<maxmin_uns>_v2di): Likewise.
13088 (reduc_<maxmin_uns>_v2si): Likewise.
13089 (reduc_<maxmin_uns>_<mode>): Likewise.
13090 (reduc_<maxmin_uns>_v4sf): Likewise.
13091 (aarch64_simd_bsl<mode>_internal): Likewise.
13092 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13093 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13094 (aarch64_get_lane<mode>): Likewise.
13095 (*aarch64_combinez<mode>): Likewise.
13096 (aarch64_combine<mode>): Likewise.
13097 (aarch64_simd_combine<mode>): Likewise.
13098 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13099 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13100 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13101 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13102 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13103 (aarch64_<sur>h<addsub><mode>): Likewise.
13104 (aarch64_<sur><addsub>hn<mode>): Likewise.
13105 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13106 (aarch64_pmul<mode>): Likewise.
13107 (aarch64_<su_optab><optab><mode>): Likewise.
13108 (aarch64_<sur>qadd<mode>): Likewise.
13109 (aarch64_sqmovun<mode>): Likewise.
13110 (aarch64_<sur>qmovn<mode>): Likewise.
13111 (aarch64_s<optab><mode>): Likewise.
13112 (aarch64_sq<r>dmulh<mode>): Likewise.
13113 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13114 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13115 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13116 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13117 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13118 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13119 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13120 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13121 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13122 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13123 (aarch64_sqdmull<mode>): Likewise.
13124 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13125 (aarch64_sqdmull_n<mode>): Likewise.
13126 (aarch64_sqdmull2<mode>_internal): Likewise.
13127 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13128 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13129 (aarch64_<sur>shl<mode>): Likewise.
13130 (aarch64_<sur>q<r>shl<mode>
13131 (aarch64_<sur>shll_n<mode>): Likewise.
13132 (aarch64_<sur>shll2_n<mode>): Likewise.
13133 (aarch64_<sur>shr_n<mode>): Likewise.
13134 (aarch64_<sur>sra_n<mode>): Likewise.
13135 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13136 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13137 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13138 (aarch64_cm<optab><mode>): Likewise.
13139 (aarch64_cm<optab>di): Likewise.
13140 (aarch64_cm<optab><mode>): Likewise.
13141 (aarch64_cm<optab>di): Likewise.
13142 (aarch64_cmtst<mode>): Likewise.
13143 (aarch64_cmtstdi): Likewise.
13144 (aarch64_cm<optab><mode>): Likewise.
13145 (*aarch64_fac<optab><mode>): Likewise.
13146 (aarch64_addp<mode>): Likewise.
13147 (aarch64_addpdi): Likewise.
13148 (sqrt<mode>2): Likewise.
13149 (vec_load_lanesoi<mode>): Likewise.
13150 (vec_store_lanesoi<mode>): Likewise.
13151 (vec_load_lanesci<mode>): Likewise.
13152 (vec_store_lanesci<mode>): Likewise.
13153 (vec_load_lanesxi<mode>): Likewise.
13154 (vec_store_lanesxi<mode>): Likewise.
13155 (*aarch64_mov<mode>): Likewise.
13156 (aarch64_ld2<mode>_dreg): Likewise.
13157 (aarch64_ld2<mode>_dreg): Likewise.
13158 (aarch64_ld3<mode>_dreg): Likewise.
13159 (aarch64_ld3<mode>_dreg): Likewise.
13160 (aarch64_ld4<mode>_dreg): Likewise.
13161 (aarch64_ld4<mode>_dreg): Likewise.
13162 (aarch64_tbl1<mode>): Likewise.
13163 (aarch64_tbl2v16qi): Likewise.
13164 (aarch64_combinev16qi): Likewise.
13165 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13166 (aarch64_st2<mode>_dreg): Likewise.
13167 (aarch64_st2<mode>_dreg): Likewise.
13168 (aarch64_st3<mode>_dreg): Likewise.
13169 (aarch64_st3<mode>_dreg): Likewise.
13170 (aarch64_st4<mode>_dreg): Likewise.
13171 (aarch64_st4<mode>_dreg): Likewise.
13172 (*aarch64_simd_ld1r<mode>): Likewise.
13173 (aarch64_frecpe<mode>): Likewise.
13174 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13175 (aarch64_frecps<mode>): Likewise.
13177 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13179 * config/arm/iterators.md (V_elem_ch): New.
13181 (VQH_type): Likewise.
13182 * config/arm/arm.md (is_neon_type): New.
13183 (conds): Use is_neon_type.
13184 (anddi3_insn): Update type attribute.
13185 (xordi3_insn): Likewise.
13186 (one_cmpldi2): Likewise.
13187 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13188 * config/arm/neon.md (neon_mov): Update type attribute.
13189 (*movmisalign<mode>_neon_store): Likewise.
13190 (*movmisalign<mode>_neon_load): Likewise.
13191 (vec_set<mode>_internal): Likewise.
13192 (vec_set<mode>_internal): Likewise.
13193 (vec_setv2di_internal): Likewise.
13194 (vec_extract<mode>): Likewise.
13195 (vec_extract<mode>): Likewise.
13196 (vec_extractv2di): Likewise.
13197 (*add<mode>3_neon): Likewise.
13198 (adddi3_neon): Likewise.
13199 (*sub<mode>3_neon): Likewise.
13200 (subdi3_neon): Likewise.
13201 (fma<VCVTF:mode>4): Likewise.
13202 (fma<VCVTF:mode>4_intrinsic): Likewise.
13203 (*fmsub<VCVTF:mode>4): Likewise.
13204 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13205 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13206 (ior<mode>3): Likewise.
13207 (and<mode>3): Likewise.
13208 (orn<mode>3_neon): Likewise.
13209 (orndi3_neon): Likewise.
13210 (bic<mode>3_neon): Likewise.
13211 (bicdi3_neon): Likewise.
13212 (xor<mode>3): Likewise.
13213 (one_cmpl<mode>2): Likewise.
13214 (abs<mode>2): Likewise.
13215 (neg<mode>2): Likewise.
13216 (negdi2_neon): Likewise.
13217 (*umin<mode>3_neon): Likewise.
13218 (*umax<mode>3_neon): Likewise.
13219 (*smin<mode>3_neon): Likewise.
13220 (*smax<mode>3_neon): Likewise.
13221 (vashl<mode>3): Likewise.
13222 (vashr<mode>3_imm): Likewise.
13223 (vlshr<mode>3_imm): Likewise.
13224 (ashl<mode>3_signed): Likewise.
13225 (ashl<mode>3_unsigned): Likewise.
13226 (neon_load_count): Likewise.
13227 (ashldi3_neon_noclobber): Likewise.
13228 (ashldi3_neon): Likewise.
13229 (signed_shift_di3_neon): Likewise.
13230 (unsigned_shift_di3_neon): Likewise.
13231 (ashrdi3_neon_imm_noclobber): Likewise.
13232 (lshrdi3_neon_imm_noclobber): Likewise.
13233 (<shift>di3_neon): Likewise.
13234 (widen_ssum<mode>3): Likewise.
13235 (widen_usum<mode>3): Likewise.
13236 (quad_halves_<code>v4si): Likewise.
13237 (quad_halves_<code>v4sf): Likewise.
13238 (quad_halves_<code>v8hi): Likewise.
13239 (quad_halves_<code>v16qi): Likewise.
13240 (reduc_splus_v2di): Likewise.
13241 (neon_vpadd_internal<mode>): Likewise.
13242 (neon_vpsmin<mode>): Likewise.
13243 (neon_vpsmax<mode>): Likewise.
13244 (neon_vpumin<mode>): Likewise.
13245 (neon_vpumax<mode>): Likewise.
13246 (*ss_add<mode>_neon): Likewise.
13247 (*us_add<mode>_neon): Likewise.
13248 (*ss_sub<mode>_neon): Likewise.
13249 (*us_sub<mode>_neon): Likewise.
13250 (neon_vadd<mode>_unspec): Likewise.
13251 (neon_vaddl<mode>): Likewise.
13252 (neon_vaddw<mode>): Likewise.
13253 (neon_vhadd<mode>): Likewise.
13254 (neon_vqadd<mode>): Likewise.
13255 (neon_vaddhn<mode>): Likewise.
13256 (neon_vmul<mode>): Likewise.
13257 (neon_vfms<VCVTF:mode>): Likewise.
13258 (neon_vmlal<mode>): Likewise.
13259 (neon_vmls<mode>): Likewise.
13260 (neon_vmlsl<mode>): Likewise.
13261 (neon_vqdmulh<mode>): Likewise.
13262 (neon_vqdmlal<mode>): Likewise.
13263 (neon_vqdmlsl<mode>): Likewise.
13264 (neon_vmull<mode>): Likewise.
13265 (neon_vqdmull<mode>): Likewise.
13266 (neon_vsub<mode>_unspec): Likewise.
13267 (neon_vsubl<mode>): Likewise.
13268 (neon_vsubw<mode>): Likewise.
13269 (neon_vqsub<mode>): Likewise.
13270 (neon_vhsub<mode>): Likewise.
13271 (neon_vsubhn<mode>): Likewise.
13272 (neon_vceq<mode>): Likewise.
13273 (neon_vcge<mode>): Likewise.
13274 (neon_vcgeu<mode>): Likewise.
13275 (neon_vcgt<mode>): Likewise.
13276 (neon_vcgtu<mode>): Likewise.
13277 (neon_vcle<mode>): Likewise.
13278 (neon_vclt<mode>): Likewise.
13279 (neon_vcage<mode>): Likewise.
13280 (neon_vcagt<mode>): Likewise.
13281 (neon_vtst<mode>): Likewise.
13282 (neon_vabd<mode>): Likewise.
13283 (neon_vabdl<mode>): Likewise.
13284 (neon_vaba<mode>): Likewise.
13285 (neon_vabal<mode>): Likewise.
13286 (neon_vmax<mode>): Likewise.
13287 (neon_vmin<mode>): Likewise.
13288 (neon_vpaddl<mode>): Likewise.
13289 (neon_vpadal<mode>): Likewise.
13290 (neon_vpmax<mode>): Likewise.
13291 (neon_vpmin<mode>): Likewise.
13292 (neon_vrecps<mode>): Likewise.
13293 (neon_vrsqrts<mode>): Likewise.
13294 (neon_vqabs<mode>): Likewise.
13295 (neon_vqneg<mode>): Likewise.
13296 (neon_vcls<mode>): Likewise.
13297 (clz<mode>2): Likewise.
13298 (popcount<mode>2): Likewise.
13299 (neon_vrecpe<mode>): Likewise.
13300 (neon_vrsqrte<mode>): Likewise.
13301 (neon_vget_lane<mode>_sext_internal): Likewise.
13302 (neon_vget_lane<mode>_zext_internal): Likewise.
13303 (neon_vdup_n<mode>): Likewise.
13304 (neon_vdup_n<mode>): Likewise.
13305 (neon_vdup_nv2di): Likewise.
13306 (neon_vdup_lane<mode>_interal): Likewise.
13307 (*neon_vswp<mode>): Likewise.
13308 (neon_vcombine<mode>): Likewise.
13309 (float<mode><V_cvtto>2): Likewise.
13310 (floatuns<mode><V_cvtto>2): Likewise.
13311 (fix_trunc<mode><V_cvtto>2): Likewise.
13312 (fixuns_trunc<mode><V_cvtto>2
13313 (neon_vcvt<mode>): Likewise.
13314 (neon_vcvt<mode>): Likewise.
13315 (neon_vcvtv4sfv4hf): Likewise.
13316 (neon_vcvtv4hfv4sf): Likewise.
13317 (neon_vcvt_n<mode>): Likewise.
13318 (neon_vcvt_n<mode>): Likewise.
13319 (neon_vmovn<mode>): Likewise.
13320 (neon_vqmovn<mode>): Likewise.
13321 (neon_vqmovun<mode>): Likewise.
13322 (neon_vmovl<mode>): Likewise.
13323 (neon_vmul_lane<mode>): Likewise.
13324 (neon_vmul_lane<mode>): Likewise.
13325 (neon_vmull_lane<mode>): Likewise.
13326 (neon_vqdmull_lane<mode>): Likewise.
13327 (neon_vqdmulh_lane<mode>): Likewise.
13328 (neon_vqdmulh_lane<mode>): Likewise.
13329 (neon_vmla_lane<mode>): Likewise.
13330 (neon_vmla_lane<mode>): Likewise.
13331 (neon_vmlal_lane<mode>): Likewise.
13332 (neon_vqdmlal_lane<mode>): Likewise.
13333 (neon_vmls_lane<mode>): Likewise.
13334 (neon_vmls_lane<mode>): Likewise.
13335 (neon_vmlsl_lane<mode>): Likewise.
13336 (neon_vqdmlsl_lane<mode>): Likewise.
13337 (neon_vext<mode>): Likewise.
13338 (neon_vrev64<mode>): Likewise.
13339 (neon_vrev32<mode>): Likewise.
13340 (neon_vrev16<mode>): Likewise.
13341 (neon_vbsl<mode>_internal): Likewise.
13342 (neon_vshl<mode>): Likewise.
13343 (neon_vqshl<mode>): Likewise.
13344 (neon_vshr_n<mode>): Likewise.
13345 (neon_vshrn_n<mode>): Likewise.
13346 (neon_vqshrn_n<mode>): Likewise.
13347 (neon_vqshrun_n<mode>): Likewise.
13348 (neon_vshl_n<mode>): Likewise.
13349 (neon_vqshl_n<mode>): Likewise.
13350 (neon_vqshlu_n<mode>): Likewise.
13351 (neon_vshll_n<mode>): Likewise.
13352 (neon_vsra_n<mode>): Likewise.
13353 (neon_vsri_n<mode>): Likewise.
13354 (neon_vsli_n<mode>): Likewise.
13355 (neon_vtbl1v8qi): Likewise.
13356 (neon_vtbl2v8qi): Likewise.
13357 (neon_vtbl3v8qi): Likewise.
13358 (neon_vtbl4v8qi): Likewise.
13359 (neon_vtbl1v16qi): Likewise.
13360 (neon_vtbl2v16qi): Likewise.
13361 (neon_vcombinev16qi): Likewise.
13362 (neon_vtbx1v8qi): Likewise.
13363 (neon_vtbx2v8qi): Likewise.
13364 (neon_vtbx3v8qi): Likewise.
13365 (neon_vtbx4v8qi): Likewise.
13366 (*neon_vtrn<mode>_insn): Likewise.
13367 (*neon_vzip<mode>_insn): Likewise.
13368 (*neon_vuzp<mode>_insn): Likewise.
13369 (neon_vld1<mode>): Likewise.
13370 (neon_vld1_lane<mode>): Likewise.
13371 (neon_vld1_lane<mode>): Likewise.
13372 (neon_vld1_dup<mode>): Likewise.
13373 (neon_vld1_dup<mode>): Likewise.
13374 (neon_vld1_dupv2di): Likewise.
13375 (neon_vst1<mode>): Likewise.
13376 (neon_vst1_lane<mode>): Likewise.
13377 (neon_vst1_lane<mode>): Likewise.
13378 (neon_vld2<mode>): Likewise.
13379 (neon_vld2<mode>): Likewise.
13380 (neon_vld2_lane<mode>): Likewise.
13381 (neon_vld2_lane<mode>): Likewise.
13382 (neon_vld2_dup<mode>): Likewise.
13383 (neon_vst2<mode>): Likewise.
13384 (neon_vst2<mode>): Likewise.
13385 (neon_vst2_lane<mode>): Likewise.
13386 (neon_vst2_lane<mode>): Likewise.
13387 (neon_vld3<mode>): Likewise.
13388 (neon_vld3qa<mode>): Likewise.
13389 (neon_vld3qb<mode>): Likewise.
13390 (neon_vld3_lane<mode>): Likewise.
13391 (neon_vld3_lane<mode>): Likewise.
13392 (neon_vld3_dup<mode>): Likewise.
13393 (neon_vst3<mode>): Likewise.
13394 (neon_vst3qa<mode>): Likewise.
13395 (neon_vst3qb<mode>): Likewise.
13396 (neon_vst3_lane<mode>): Likewise.
13397 (neon_vst3_lane<mode>): Likewise.
13398 (neon_vld4<mode>): Likewise.
13399 (neon_vld4qa<mode>): Likewise.
13400 (neon_vld4qb<mode>): Likewise.
13401 (neon_vld4_lane<mode>): Likewise.
13402 (neon_vld4_lane<mode>): Likewise.
13403 (neon_vld4_dup<mode>): Likewise.
13404 (neon_vst4<mode>): Likewise.
13405 (neon_vst4qa<mode>): Likewise.
13406 (neon_vst4qb<mode>): Likewise.
13407 (neon_vst4_lane<mode>): Likewise.
13408 (neon_vst4_lane<mode>): Likewise.
13409 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13410 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13411 (neon_vec_<US>mult_lo_<mode>): Likewise.
13412 (neon_vec_<US>mult_hi_<mode>): Likewise.
13413 (neon_vec_<US>shiftl_<mode>): Likewise.
13414 (neon_unpack<US>_<mode>): Likewise.
13415 (neon_vec_<US>mult_<mode>): Likewise.
13416 (vec_pack_trunc_<mode>): Likewise.
13417 (neon_vec_pack_trunc_<mode>): Likewise.
13418 (neon_vabd<mode>_2): Likewise.
13419 (neon_vabd<mode>_3): Likewise.
13421 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13423 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13424 (load_pair): Update type attribute.
13425 (store_pair): Update type attribute.
13426 * config/aarch64/iterators.md (q): New.
13428 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13430 * config/arm/types.md: Add new types for Neon insns.
13432 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13434 Sergey Lega <sergey.s.lega@intel.com>
13435 Anna Tikhonova <anna.tikhonova@intel.com>
13436 Ilya Tocar <ilya.tocar@intel.com>
13437 Andrey Turetskiy <andrey.turetskiy@intel.com>
13438 Ilya Verbin <ilya.verbin@intel.com>
13439 Kirill Yukhin <kirill.yukhin@intel.com>
13440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13442 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13443 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13444 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13445 (rcp14<mode>): New.
13446 (srcp14<mode>): Ditto.
13447 (rsqrt14<mode>): Ditto.
13448 (rsqrt14<mode>): Ditto.
13449 (avx512f_vmscalef<mode>): Ditto.
13450 (avx512f_scalef<mode>): Ditto.
13451 (avx512f_getexp<mode>): Ditto.
13452 (avx512f_sgetexp<mode>): Ditto.
13453 (avx512f_fixupimm<mode>): Ditto.
13454 (avx512f_sfixupimm<mode>): Ditto.
13455 (avx512f_rndscale<mode>): Ditto.
13456 (*avx512er_exp2<mode>): Ditto.
13457 (*avx512er_rcp28<mode>): Ditto.
13458 (avx512er_rsqrt28<mode>): Ditto.
13459 (avx512f_getmant<mode>): Ditto.
13460 (avx512f_getmant<mode>): Ditto.
13461 (avx512f_rndscale<mode>): Fix formatting.
13463 2013-10-15 Martin Jambor <mjambor@suse.cz>
13465 * ipa-utils.h (ipa_edge_within_scc): Declare.
13466 * ipa-cp.c (edge_within_scc): Moved...
13467 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13469 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13471 Sergey Lega <sergey.s.lega@intel.com>
13472 Anna Tikhonova <anna.tikhonova@intel.com>
13473 Ilya Tocar <ilya.tocar@intel.com>
13474 Andrey Turetskiy <andrey.turetskiy@intel.com>
13475 Ilya Verbin <ilya.verbin@intel.com>
13476 Kirill Yukhin <kirill.yukhin@intel.com>
13477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13479 * config/i386/predicates.md (const_8_to_15_operand): New.
13480 (const_16_to_31_operand): Ditto.
13481 * config/i386/sse.md (V8FI): New.
13483 (reduc_splus_v8df): Ditto.
13484 (reduc_splus_v16sf): Ditto.
13485 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13486 (vec_extract_hi_<mode>): Ditto.
13487 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13488 (vec_set_lo_<mode>): Ditto.
13489 (vec_set_hi_<mode>): Ditto.
13490 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13491 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13492 (avx512f_pshufd_1): Ditto.
13493 (avx512f_broadcast<mode>): Ditto.
13494 (avx512f_broadcast<mode>): Ditto.
13495 (define_split): Split vec_extract_lo into move.
13496 (ssequartermode): Ditto.
13497 (ssedoublemode): Extened with wider modes.
13498 (vec_extract_lo_<mode>): Ditto.
13500 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13501 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13502 Sergey Lega <sergey.s.lega@intel.com>
13503 Anna Tikhonova <anna.tikhonova@intel.com>
13504 Ilya Tocar <ilya.tocar@intel.com>
13505 Andrey Turetskiy <andrey.turetskiy@intel.com>
13506 Ilya Verbin <ilya.verbin@intel.com>
13507 Kirill Yukhin <kirill.yukhin@intel.com>
13508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13510 * config/i386/predicates.md (register_or_constm1_operand): New.
13511 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13512 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13513 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13514 UNSPEC_SCATTER_PREFETCH
13516 (avx512f_ucmp<mode>3): Ditto.
13517 (avx512f_vternlog<mode>): Ditto.
13518 (avx512f_align<mode>): Ditto.
13519 (<shift_insn><mode>3): Ditto.
13520 (avx512f_<rotate>v<mode>): Ditto.
13521 (avx512f_<rotate><mode>): Ditto.
13522 (avx512f_eq<mode>3): Ditto.
13523 (avx512f_eq<mode>3_1): Ditto.
13524 (avx512f_gt<mode>3): Ditto.
13525 (avx512f_testm<mode>3): Ditto.
13526 (avx512f_testnm<mode>3): Ditto.
13527 (avx512pf_gatherpf<mode>): Ditto.
13528 (*avx512pf_gatherpf<mode>_mask): Ditto.
13529 (*avx512pf_gatherpf<mode>): Ditto.
13530 (avx512pf_scatterpf<mode>): Ditto.
13531 (*avx512pf_scatterpf<mode>_mask): Ditto.
13532 (*avx512pf_scatterpf<mode>): Ditto.
13533 (avx512f_vec_dup_gpr<mode>): Ditto.
13534 (clz<mode>2): Ditto.
13535 (conflict<mode>): Ditto.
13536 (REDUC_SMINMAX_MODE): Extened with wider modes.
13537 (reduc_<code>_<mode>): Ditto.
13538 (vlshr<mode>3): Ditto.
13539 (vashl<mode>3): Ditto.
13541 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13542 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13543 Sergey Lega <sergey.s.lega@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/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13554 (avx512fmaskmode): Ditto.
13555 (bcstscalarsuff): Ditto.
13556 (avx512f_blendm<mode>): Ditto.
13557 (cmp_imm_predicate): Ditto.
13558 (avx512f_cmp<mode>3): Ditto.
13559 (avx512f_vec_dup<mode>): Ditto.
13560 (avx512f_vec_dup_mem<mode>): Ditto.
13561 (avx512f_vpermi2var<mode>3): Ditto.
13562 (avx512f_vpermt2var<mode>3): Ditto.
13563 (vec_init<mode>): Ditto.
13564 (avx512f_gathersi<mode>): Ditto.
13565 (*avx512f_gathersi<mode>): Ditto.
13566 (*avx512f_gathersi<mode>_2): Ditto.
13567 (avx512f_gatherdi<mode>): Ditto.
13568 (*avx512f_gatherdi<mode>): Ditto.
13569 (*avx512f_gatherdi<mode>_2): Ditto.
13570 (avx512f_scattersi<mode>): Ditto.
13571 (*avx512f_scattersi<mode>): Ditto.
13572 (avx512f_scatterdi<mode>): Ditto.
13573 (*avx512f_scatterdi<mode>): Ditto.
13574 (sseintprefix): Extened with wider modes.
13575 (VEC_GATHER_IDXSI): Ditto.
13576 (VEC_GATHER_IDXDI): Ditto.
13577 (VEC_GATHER_SRCDI): Ditto.
13579 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13580 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13582 * config/arm/t-aprofile: New file.
13583 * config.gcc: Handle --with-multilib-list option.
13585 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13587 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13590 2013-10-15 Richard Biener <rguenther@suse.de>
13592 * tree-loop-distribution.c (build_empty_rdg): Inline into
13594 (rdg_flag_vertex): Inline into single user.
13595 (rdg_flag_vertex_and_dependent): Likewise.
13596 (build_rdg_partition_for_vertex): Remove processed bitmap.
13597 (rdg_build_partitions): Simplify.
13599 2013-10-15 Richard Biener <rguenther@suse.de>
13601 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13602 Restructure forwarding through conversions and copies to
13603 avoid performing copy-propagation the wrong way. Adjust
13604 recursion invocations.
13605 (forward_propagate_addr_expr): Add argument stating if we
13606 are recursing from a single-use.
13607 (ssa_forward_propagate_and_combine): Adjust.
13609 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13611 * dumpfile.h (gcc::dump_manager): New class, to hold state
13612 relating to dumpfile management.
13613 (get_dump_file_name): Remove in favor of method of dump_manager.
13614 (dump_initialized_p): Likewise.
13615 (dump_start): Likewise.
13616 (dump_finish): Likewise.
13617 (dump_switch_p): Likewise.
13618 (dump_register): Likewise.
13619 (get_dump_file_info): Likewise.
13620 * context.c (gcc::context::context): Construct the dump_manager
13622 * context.h (gcc::context::get_dumps): New.
13623 (gcc::context::m_dumps): New.
13624 * coverage.c (coverage_init): Port to dump_manager API.
13625 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13626 (extra_dump_files_in_use): Likewise.
13627 (extra_dump_files_alloced): Likewise.
13628 (gcc::dump_manager::dump_manager): New.
13629 (dump_register): Convert to...
13630 (gcc::dump_manager::dump_register): ...method, replacing
13631 function-static next_dump with m_next_dump field.
13632 (get_dump_file_info): Convert to...
13633 (gcc::dump_manager::get_dump_file_info): ...method.
13634 (get_dump_file_name): Convert to...
13635 (gcc::dump_manager::get_dump_file_name): ...method.
13636 (dump_start): Convert to...
13637 (gcc::dump_manager::dump_start): ...method.
13638 (dump_finish): Convert to...
13639 (gcc::dump_manager::dump_finish): ...method.
13640 (dump_begin): Replace body with...
13641 (gcc::dump_manager::dump_begin): ...new method.
13642 (dump_phase_enabled_p): Convert to...
13643 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13644 (dump_phase_enabled_p): Convert to...
13645 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13646 (dump_initialized_p): Convert to...
13647 (gcc::dump_manager::dump_initialized_p): ...method.
13648 (dump_flag_name): Replace body with...
13649 (gcc::dump_manager::dump_flag_name): ...new method.
13650 (dump_enable_all): Convert to...
13651 (gcc::dump_manager::dump_enable_all): ...new method.
13652 (opt_info_enable_passes): Convert to...
13653 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13654 (dump_switch_p_1): Convert to...
13655 (gcc::dump_manager::dump_switch_p_1): ...new method.
13656 (dump_switch_p): Convert to...
13657 (gcc::dump_manager::dump_switch_p): ...new method.
13658 (opt_info_switch_p): Port to dump_manager API.
13659 (enable_rtl_dump_file): Likewise.
13660 * opts-global.c (handle_common_deferred_options): Port to new
13662 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13663 (pass_manager::register_one_dump_file): Likewise.
13664 (pass_manager::register_pass): Likewise.
13665 (pass_init_dump_file): Likewise.
13666 (pass_fini_dump_file): Likewise.
13667 * statistics.c (statistics_early_init): Likewise.
13669 2013-10-14 Richard Biener <rguenther@suse.de>
13671 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13672 iterative_hash_canonical_type, gimple_canonical_type_hash,
13673 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13674 gimple_register_canonical_type, print_gimple_types_stats,
13675 free_gimple_type_tables): Move to lto/lto.c
13676 (gt-gimple.h): Do not include.
13677 * gimple.h (gimple_register_canonical_type,
13678 print_gimple_types_stats, free_gimple_type_tables): Remove.
13679 * Makefile.in (GTFILES): Remove gimple.c.
13681 2013-10-14 Travis Snoozy <quandary@remstate.com>
13684 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13685 scanning for msp430x targets.
13687 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13690 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13691 (registers_ok_for_ldd_peep): Move around.
13692 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13693 * config/sparc/sparc.md (widening peepholes): Use it.
13695 2013-10-14 Richard Biener <rguenther@suse.de>
13697 PR middle-end/58712
13698 PR middle-end/55358
13699 * gimple.c (iterative_hash_canonical_type): Make sure to
13700 record the hash into the correct hashtable slot.
13702 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13704 PR rtl-optimization/58662
13705 * combine.c (try_combine): Take into account death nodes on I2 when
13706 splitting a PARALLEL of two independent SETs. Fix dump message.
13708 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13711 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13712 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13714 * config/sh/t-sh (sh_treg_combine.o): New entry.
13715 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13716 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13717 (register_sh_passes): New function. Register sh_treg_combine pass.
13718 (sh_option_override): Invoke it.
13719 (sh_canonicalize_comparison): Handle op0_preserve_value.
13720 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13721 opportunities. Canonicalize branch condition.
13722 (nott): Allow only if pseudos can be created for non-SH2A.
13724 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13727 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13728 (ix86_expand_movmem): Replace copy_addr_to_reg with
13729 ix86_copy_addr_to_reg.
13730 (ix86_expand_setmem): Likewise.
13732 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13734 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13735 provided by ix86_fp_compare_mode instead of CCFPUmode.
13737 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13739 * config/aarch64/arm_neon.h
13740 (vtbx<1,3>_<psu>8): Fix register constriants.
13742 2013-10-11 Jeff Law <law@redhat.com>
13744 PR tree-optimization/58640
13745 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13746 threading paths that cross over two loop entry points.
13748 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13750 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13751 handle vector float as well.
13752 (*vsx_le_perm_load_v4si): Likewise.
13753 (*vsx_le_perm_store_v2di): Likewise.
13754 (*vsx_le_perm_store_v4si): Likewise.
13756 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13758 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13759 directly to circumvent subtract from splat{31} workaround.
13760 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13762 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13763 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13764 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13765 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13766 separate big and little endian logic.
13767 (*altivec_vperm_<mode>_internal): New define_insn.
13768 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13769 separate big and little endian logic.
13770 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13771 (vec_permv16qi): Add little endian logic.
13773 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13775 * doc/extend.texi (returns_nonnull): Remove arguments.
13777 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13779 Sergey Lega <sergey.s.lega@intel.com>
13780 Anna Tikhonova <anna.tikhonova@intel.com>
13781 Ilya Tocar <ilya.tocar@intel.com>
13782 Andrey Turetskiy <andrey.turetskiy@intel.com>
13783 Ilya Verbin <ilya.verbin@intel.com>
13784 Kirill Yukhin <kirill.yukhin@intel.com>
13785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13787 * config/i386/sse.md (VI48F_256_512): New.
13788 (avx2_permvar<mode>): Change to ...
13789 (<avx2_avx512f>_permvar<mode>): This.
13791 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13792 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13793 Sergey Lega <sergey.s.lega@intel.com>
13794 Anna Tikhonova <anna.tikhonova@intel.com>
13795 Ilya Tocar <ilya.tocar@intel.com>
13796 Andrey Turetskiy <andrey.turetskiy@intel.com>
13797 Ilya Verbin <ilya.verbin@intel.com>
13798 Kirill Yukhin <kirill.yukhin@intel.com>
13799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13801 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13802 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13803 * config/i386/sse.md (VI4_AVX): New.
13804 (sf2simodelower): Ditto.
13805 (sse2_cvtps2dq): Change to ...
13806 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13808 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13810 Sergey Lega <sergey.s.lega@intel.com>
13811 Anna Tikhonova <anna.tikhonova@intel.com>
13812 Ilya Tocar <ilya.tocar@intel.com>
13813 Andrey Turetskiy <andrey.turetskiy@intel.com>
13814 Ilya Verbin <ilya.verbin@intel.com>
13815 Kirill Yukhin <kirill.yukhin@intel.com>
13816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13818 * config/i386/sse.md (V_512): New.
13820 (vcond<V_512:mode><VF_512:mode>): Ditto.
13821 (vcond<V_512:mode><VI_512:mode>): Ditto.
13822 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13824 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13826 Sergey Lega <sergey.s.lega@intel.com>
13827 Anna Tikhonova <anna.tikhonova@intel.com>
13828 Ilya Tocar <ilya.tocar@intel.com>
13829 Andrey Turetskiy <andrey.turetskiy@intel.com>
13830 Ilya Verbin <ilya.verbin@intel.com>
13831 Kirill Yukhin <kirill.yukhin@intel.com>
13832 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13834 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13835 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13837 (fma<mode>4): Removed condition.
13838 (fms<mode>4): Ditto.
13839 (fnma<mode>4): Ditto.
13840 (fnms<mode>4): Ditto.
13841 (fma4i_fmadd_<mode>): Ditto.
13842 (*fma_fmadd_<mode>): Ditto.
13843 (*fma_fmsub_<mode>): Ditto.
13844 (*fma_fnmadd_<mode>): Ditto.
13845 (*fma_fnmsub_<mode>): Ditto.
13846 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13847 (*fma_fmaddsub_<mode>): Ditto.
13848 (*fma_fmsubadd_<mode>): Ditto.
13849 (*fmai_fmadd_<mode>): Ditto.
13850 (*fmai_fmsub_<mode>): Ditto.
13851 (*fmai_fnmadd_<mode>): Ditto.
13852 (*fmai_fnmsub_<mode>): Ditto.
13854 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13855 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13856 Sergey Lega <sergey.s.lega@intel.com>
13857 Anna Tikhonova <anna.tikhonova@intel.com>
13858 Ilya Tocar <ilya.tocar@intel.com>
13859 Andrey Turetskiy <andrey.turetskiy@intel.com>
13860 Ilya Verbin <ilya.verbin@intel.com>
13861 Kirill Yukhin <kirill.yukhin@intel.com>
13862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13864 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13865 (VI124_256): Changed to ...
13866 (VI124_256_48_512): This.
13867 (ssepackmode): Extended with wider modes.
13868 (<code><mode>3): Changed iterator.
13869 (*avx2_<code><mode>3): Ditto.
13870 (vec_pack_trunc_<mode>): Ditto.
13872 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13874 Sergey Lega <sergey.s.lega@intel.com>
13875 Anna Tikhonova <anna.tikhonova@intel.com>
13876 Ilya Tocar <ilya.tocar@intel.com>
13877 Andrey Turetskiy <andrey.turetskiy@intel.com>
13878 Ilya Verbin <ilya.verbin@intel.com>
13879 Kirill Yukhin <kirill.yukhin@intel.com>
13880 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13882 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13883 (VI8F_256_512): Ditto.
13884 (abs<mode>2): Changed iterator.
13885 (avx2_perm<mode>): Changed to ...
13886 (<avx2_avx512f>_perm<mode>): This.
13887 (avx2_perm<mode>_1): Changed to ...
13888 (<avx2_avx512f>_perm<mode>_1): This.
13890 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13892 Sergey Lega <sergey.s.lega@intel.com>
13893 Anna Tikhonova <anna.tikhonova@intel.com>
13894 Ilya Tocar <ilya.tocar@intel.com>
13895 Andrey Turetskiy <andrey.turetskiy@intel.com>
13896 Ilya Verbin <ilya.verbin@intel.com>
13897 Kirill Yukhin <kirill.yukhin@intel.com>
13898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13900 * config/i386/sse.md (VI48_AVX512F): New.
13901 (VI48_AVX2): Changed to ...
13902 (VI48_AVX2_48_AVX512F): This.
13903 (avx2_ashrv<mode>): Changed to ...
13904 (<avx2_avx512f>_ashrv<mode>): This.
13905 (avx2_<shift_insn>v<mode>): Changed to ...
13906 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13908 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13910 Sergey Lega <sergey.s.lega@intel.com>
13911 Anna Tikhonova <anna.tikhonova@intel.com>
13912 Ilya Tocar <ilya.tocar@intel.com>
13913 Andrey Turetskiy <andrey.turetskiy@intel.com>
13914 Ilya Verbin <ilya.verbin@intel.com>
13915 Kirill Yukhin <kirill.yukhin@intel.com>
13916 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13918 * config/i386/sse.md (VI4_AVX512F): New.
13919 (VI8_AVX2_AVX512F): Ditto.
13920 (mul<mode>3): Extended with wider modes.
13921 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13922 (mul<mode>3): Ditto.
13923 (vec_widen_<s>mult_odd_<mode>): Ditto.
13925 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13927 Sergey Lega <sergey.s.lega@intel.com>
13928 Anna Tikhonova <anna.tikhonova@intel.com>
13929 Ilya Tocar <ilya.tocar@intel.com>
13930 Andrey Turetskiy <andrey.turetskiy@intel.com>
13931 Ilya Verbin <ilya.verbin@intel.com>
13932 Kirill Yukhin <kirill.yukhin@intel.com>
13933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13935 * config/i386/sse.md (VI2_AVX512F): New.
13936 (VI124_AVX512F): Ditto.
13937 (sseunpackmode): Extended with wider modes.
13938 (sseunpackfltmode): Ditto.
13939 (vec_unpacks_float_hi_<mode>): Ditto.
13940 (vec_unpacks_float_lo_<mode>): Ditto.
13941 (vec_unpacku_float_hi_<mode>): Ditto.
13942 (vec_unpacku_float_lo_<mode>): Ditto.
13943 (vec_unpacks_lo_<mode>): Ditto.
13944 (vec_unpacks_hi_<mode>): Ditto.
13945 (vec_unpacku_lo_<mode>): Ditto.
13946 (vec_unpacku_hi_<mode>): Ditto.
13948 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13950 Sergey Lega <sergey.s.lega@intel.com>
13951 Anna Tikhonova <anna.tikhonova@intel.com>
13952 Ilya Tocar <ilya.tocar@intel.com>
13953 Andrey Turetskiy <andrey.turetskiy@intel.com>
13954 Ilya Verbin <ilya.verbin@intel.com>
13955 Kirill Yukhin <kirill.yukhin@intel.com>
13956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13958 * config/i386/i386.md (multdiv): New.
13959 (multdiv_mnemonic): Ditto.
13960 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13961 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13962 (<sse>_vmdiv<mode>3): Removed.
13964 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13966 Sergey Lega <sergey.s.lega@intel.com>
13967 Anna Tikhonova <anna.tikhonova@intel.com>
13968 Ilya Tocar <ilya.tocar@intel.com>
13969 Andrey Turetskiy <andrey.turetskiy@intel.com>
13970 Ilya Verbin <ilya.verbin@intel.com>
13971 Kirill Yukhin <kirill.yukhin@intel.com>
13972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13974 * config/i386/sse.md (V): Extended with wider modes.
13976 (ssehalfvecmode): Ditto.
13978 (ssepackfltmode): Ditto.
13979 (avx_vec_concat<mode>): Ditto.
13980 (V_256_512): New iterator.
13981 (VF2_512_256): Ditto.
13982 (si2dfmode): New attribute.
13983 (si2dfmodelower): Ditto.
13984 (sf2dfmode): Ditto.
13985 (concat_tg_mode): Ditto.
13986 (floatv4siv4df2): Changed to ...
13987 (float<si2dfmodelower><mode>2): This.
13988 (avx_cvtps2pd256): Changed to ...
13989 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13990 (vec_pack_trunc_v4df): Changed to ...
13991 (vec_pack_trunc_<mode>): This.
13992 (avx_vpermil<mode>): Changed to ...
13993 (<sse2_avx_avx512f>_vpermil<mode>): This.
13994 (<fixsuffix>fix_truncv8dfv8si2): New.
13995 (vec_pack_sfix_trunc_v8df): Ditto.
13996 (avx512f_rndscale<mode>): Ditto.
13997 (avx512f_roundpd512): Ditto.
13998 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14000 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14001 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14002 Sergey Lega <sergey.s.lega@intel.com>
14003 Anna Tikhonova <anna.tikhonova@intel.com>
14004 Ilya Tocar <ilya.tocar@intel.com>
14005 Andrey Turetskiy <andrey.turetskiy@intel.com>
14006 Ilya Verbin <ilya.verbin@intel.com>
14007 Kirill Yukhin <kirill.yukhin@intel.com>
14008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14010 * config/i386/i386.md (any_fix): New iterator.
14011 (fixsuffix): New attribute.
14012 * config/i386/sse.md (VF1): Extened with wider modes.
14016 (sseintvecmodelower): Ditto.
14017 (ssescalarmode): Ditto.
14018 (ssescalarnum): Ditto.
14019 (VF1_128_256): New.
14020 (ssexmmmode): Ditto.
14021 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14022 (<sse>_rcp<mode>2): Change iterator.
14023 (rsqrt<mode>2): Ditto.
14024 (<sse>_rsqrt<mode>2): Ditto.
14025 (avx2_vec_dup<mode>): Ditto.
14026 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14027 (round<mode>2_sfix): Ditto.
14028 (avx2_pbroadcast<mode>): Ditto.
14029 (*andnot<mode>3): Handle XI mode.
14030 (*<code><mode>3): Ditto.
14031 (AVXTOSSEMODE): Removed.
14032 (avx_vpermil<mode>): Changed to ...
14033 (<sse2_avx_avx512f>_vpermil<mode>): This.
14035 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14036 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14037 Sergey Lega <sergey.s.lega@intel.com>
14038 Anna Tikhonova <anna.tikhonova@intel.com>
14039 Ilya Tocar <ilya.tocar@intel.com>
14040 Andrey Turetskiy <andrey.turetskiy@intel.com>
14041 Ilya Verbin <ilya.verbin@intel.com>
14042 Kirill Yukhin <kirill.yukhin@intel.com>
14043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14045 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14046 (<sse>_comi): Ditto.
14047 (<sse>_ucomi): Ditto.
14048 (sse_cvtss2siq_2): Ditto.
14049 (sse2_cvtsd2si): Ditto.
14050 (sse2_cvtsd2siq): Ditto.
14051 (sse2_cvttsd2si): Ditto.
14052 (sse2_cvttsd2siq): Ditto.
14053 (<shift_insn><mode>3): Ditto.
14054 (sse2_cvtsi2sdq): Update constraint and prefix.
14055 (sse_cvtsi2ss): Update prefix.
14056 (sse_cvtsi2ssq): Ditto.
14058 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14060 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14061 ignore internal calls.
14063 2013-10-11 Richard Biener <rguenther@suse.de>
14065 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14066 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14067 TREE_OVERFLOW is set.
14069 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14071 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14073 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14074 * gimple.h: Likewise.
14076 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14078 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14081 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14083 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14084 * configure: Regenerate.
14086 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14088 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14089 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14090 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14091 similarly pp_right_paren.
14092 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14093 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14094 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14095 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14097 (omp_declare_simd_clauses_equal,
14098 omp_remove_redundant_declare_simd_attrs): New functions.
14099 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14100 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14101 * tree.h (OMP_LOOP_CHECK): Define.
14102 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14103 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14104 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14105 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14106 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14107 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14108 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14109 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14110 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14111 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14112 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14113 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14114 (omp_remove_redundant_declare_simd_attrs): New prototype.
14115 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14116 GIMPLE_OMP_TEAMS): New codes.
14117 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14118 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14120 (target_nesting_level): New variable.
14121 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14122 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14123 for collapse > 1 static schedule unless ordered.
14124 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14125 (determine_parallel_type): Adjust get_ws_args_for caller.
14126 (install_var_field): Handle mask & 4 for double indirection.
14127 (scan_sharing_clauses): Ignore shared clause on teams construct.
14128 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14129 (create_omp_child_function): If inside target or declare target
14130 constructs, set "omp declare target" attribute on the child function.
14131 (find_combined_for): New function.
14132 (scan_omp_parallel): Handle combined loops.
14133 (scan_omp_target, scan_omp_teams): New functions.
14134 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14135 restrictions and set ctx->cancellable for cancellable constructs.
14136 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14137 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14138 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14139 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14140 (omp_clause_aligned_alignment): New function.
14141 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14142 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14143 on teams constructs. Handle user defined reductions and new
14144 OpenMP 4.0 clauses.
14145 (lower_reduction_clauses): Don't set placeholder to address of ref
14146 if it has already the right type.
14147 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14148 (expand_parallel_call): Use the new non-_start suffixed builtins,
14149 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14150 and GOMP_parallel_end after the call.
14151 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14152 (expand_omp_for_init_counts): Handle combined loops.
14153 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14155 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14156 end of cancellable loops.
14157 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14158 Likewise. Handle collapse > 1 loops.
14159 (expand_omp_simd): Handle combined loops.
14160 (expand_omp_for): Add inner_stmt argument, adjust callers of
14161 expand_omp_for* functions, use expand_omp_for_static*chunk even
14162 for collapse > 1 unless ordered.
14163 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14164 of cancellable sections.
14165 (expand_omp_single): Remove need_barrier variable, just rely on
14166 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14167 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14168 (expand_omp_atomic_load, expand_omp_atomic_store,
14169 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14170 (expand_omp_target): New function.
14171 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14172 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14173 (build_omp_regions_1): Immediately close region for
14174 GF_OMP_TARGET_KIND_UPDATE.
14175 (maybe_add_implicit_barrier_cancel): New function.
14176 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14178 (lower_omp_single): Likewise. Add clobber after the barrier.
14179 (lower_omp_taskgroup): New function.
14180 (lower_omp_for): Handle combined loops. Adjust
14181 lower_rec_input_clauses caller. Handle cancellation.
14182 (lower_depend_clauses): New function.
14183 (lower_omp_taskreg): Lower depend clauses. Adjust
14184 lower_rec_input_clauses caller. Add clobber after the call. Handle
14186 (lower_omp_target, lower_omp_teams): New functions.
14187 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14188 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14189 and GOMP_cancellation_point calls.
14190 (lower_omp): Fold stmts inside of target region.
14191 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14192 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14193 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14194 (BT_FN_VOID_OMPFN_PTR_UINT,
14195 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14196 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14197 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14198 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14199 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14200 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14201 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14202 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14203 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14204 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14205 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14206 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14207 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14208 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14209 BUILT_IN_GOMP_PARALLEL_END.
14210 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14211 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14212 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14213 GF_OMP_FOR_KIND_DISTRIBUTE.
14214 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14215 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14216 (dump_gimple_omp_return): Print lhs if it has any.
14217 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14218 gimple_omp_atomic_seq_cst_p.
14219 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14220 and GIMPLE_OMP_TEAMS.
14221 * langhooks.c (lhd_omp_mappable_type): New function.
14222 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14223 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14225 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14226 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14227 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14228 (struct gimplify_omp_ctx): Add combined_loop field.
14229 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14230 on stmts inside of target region.
14231 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14232 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14233 ORT_TARGET and ORT_TARGET_DATA.
14234 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14236 (omp_notice_threadprivate_variable): Complain about threadprivate
14237 variables in target region.
14238 (omp_notice_variable): Complain about vars with non-mappable type
14239 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14240 (omp_check_private): Ignore ORT_TARGET* regions.
14241 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14242 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14243 (find_combined_omp_for): New function.
14244 (gimplify_omp_for): Handle gimplification of combined loops.
14245 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14247 (gimplify_omp_target_update): New function.
14248 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14249 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14250 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14251 (gimplify_body): If fndecl has "omp declare target" attribute, add
14252 implicit ORT_TARGET context around it.
14253 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14254 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14255 * tree-nested.c (convert_nonlocal_reference_stmt,
14256 convert_local_reference_stmt, convert_gimple_call): Handle
14257 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14258 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14259 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14260 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14261 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14262 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14263 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14264 BUILT_IN_GOMP_LOOP_END_CANCEL,
14265 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14266 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14267 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14268 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14269 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14270 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14271 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14272 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14273 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14274 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14275 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14276 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14277 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14278 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14279 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14280 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14281 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14282 gimple_build_omp_teams): New functions.
14283 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14284 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14285 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14286 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14287 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14288 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14289 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14290 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14291 GF_OMP_ATOMIC_SEQ_CST): New.
14292 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14293 gimple_build_omp_teams): New prototypes.
14294 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14295 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14296 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14297 GIMPLE_OMP_SINGLE as end of range.
14298 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14299 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14300 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14301 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14302 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14303 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14304 gimple_omp_target_kind, gimple_omp_target_set_kind,
14305 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14306 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14307 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14308 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14309 gimple_omp_teams_set_clauses): New inlines.
14310 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14311 and GIMPLE_OMP_TASKGROUP.
14312 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14313 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14314 enum omp_clause_proc_bind_kind): New.
14315 (union omp_clause_subcode): Add depend_kind, map_kind and
14316 proc_bind_kind fields.
14317 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14318 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14319 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14320 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14321 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14323 2013-10-10 Teresa Johnson <tejohnson@google.com>
14325 * predict.c (tree_estimate_probability): Add new parameter
14326 for estimate_bb_frequencies.
14327 (estimate_bb_frequencies): Add new parameter to force estimation.
14328 (rebuild_frequencies): When max frequency in function is small,
14329 recompute counts from frequencies.
14330 * predict.h (estimate_bb_frequencies): New parameter.
14332 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14334 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14335 optimizations are disabled.
14337 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14339 * coverage.c (coverage_finish): Fix leak of da_file_name.
14341 2013-10-10 Jan Hubicka <jh@suse.cz>
14343 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14344 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14345 Bobcat and generic.
14347 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14349 PR middle-end/58670
14350 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14351 if any labels are in FALLTHRU_BB, use a special label emitted
14352 immediately after the asm goto insn rather than label_rtx
14354 (expand_asm_stmt): Adjust caller.
14355 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14356 edge if the last insn in predecessor is a jump with single successor,
14357 but it isn't simplejump_p.
14359 2013-10-10 Richard Biener <rguenther@suse.de>
14361 PR tree-optimization/58656
14362 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14364 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14366 * gimplify.c: Include expr.h and tm_p.h for targets with special
14367 va-arg padding requirements.
14369 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14371 * tree-flow.h: Move some prototypes to gimple.h.
14372 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14373 * gimple.h: Relocate some prototypes from tree-flow.h
14374 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14375 Move to gimplify.c.
14376 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14377 (build_va_arg_indirect_ref): Relocate and make static.
14378 (std_gimplify_va_arg_expr): Relocate here.
14379 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14380 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14382 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14384 * doc/md.texi: Document the mnemonic attribute.
14386 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14389 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14390 (set_attr_alternative x ...) when searching for user defined
14391 mnemonic attribute.
14393 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14395 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14397 2013-10-09 Easwaran Raman <eraman@google.com>
14399 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14400 * cfgexpand.c (defer_stack_allocation): ...use here
14401 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14403 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14405 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14406 (operand_equal_for_value_replacement): New function, extracted from
14407 value_replacement and enhanced to catch more cases.
14408 (value_replacement): Use operand_equal_for_value_replacement.
14410 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14412 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14413 get_max_loop_iterations.
14415 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14417 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14418 Place comment above function.
14420 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14422 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14423 are not related to tree-cfg.c.
14424 * tree-ssa-address.h: New file. Relocate prototypes.
14425 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14426 (addr_for_mem_ref): New. Combine call to get_address_description and
14427 return addr_for_mem_ref.
14428 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14429 * tree-ssa-live.h: Adjust prototypes.
14430 * passes.c: Include tree-ssa-live.h.
14431 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14432 * graphite.c (graphite_transform_loops): Make static.
14433 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14434 make_pass_graphite, pass_data_graphite_transforms,
14435 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14436 * ipa-pure-const.c (warn_function_noreturn): Make static.
14437 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14438 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14439 Relocate from tree-cfg.c
14440 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14442 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14443 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14444 Move to ipa-pure-const.c.
14445 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14446 Relocate from tree-optimize.c.
14447 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14448 make_pass_fixup_cfg): Move to tree-cfg.c.
14449 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14450 Relocate some prototypes.
14451 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14452 * tree-dump.c (dump_function_to_file): Remove prototype.
14453 Add tree-flow.h to the include file.
14454 * tree-dump.h: Remove prototype.
14455 * tree-parloops.h: New File. Add prototypes.
14456 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14457 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14458 from tree-ssa-loop.c.
14459 * tree-predcom.c (run_tree_predictive_commoning,
14460 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14461 Relocate here from tree-ssa-loop.c.
14462 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14463 ssa_name_values.release ().
14464 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14465 (ssa_name_values): Relocate from tree-flow.h.
14466 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14467 * tree-ssa-loop.c (run_tree_predictive_commoning,
14468 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14469 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14470 make_pass_graphite, pass_data_graphite_transforms,
14471 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14472 tree_parallelize_loops, pass_data_parallelize_loops,
14473 make_pass_parallelize_loops): Move to other files.
14474 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14476 * tree.h: Remove prototypes from tree-address.c.
14478 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14480 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14481 (struct int_tree_map): Move to tree-hasher.h
14482 (SCALE, LABEL, PERCENT): Move to gimple.h
14483 * tree-flow-inline.h: Delete. Move functions to other files.
14484 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14485 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14486 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14487 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14488 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14489 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14490 * tree-hasher.h: Don't include tree-flow.h.
14491 (struct int_tree_map): Relocate from tree-flow.h.
14492 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14493 tree-flow-inline.h and make static.
14494 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14495 tree-flow-inline.h.
14496 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14497 tree-flow-inline.h and make static.
14498 * tree.h (is_global_var, may_be_aliased): Relocate from
14499 tree-flow-inline.h.
14500 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14501 * value-prof.c: No longer include tree-flow-inline.h.
14502 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14504 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14506 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14507 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14508 (enum move_pos): Move to tree-ssa-loop-im.h
14509 * cfgloop.h: Move some prototypes.
14510 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14511 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14512 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14513 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14514 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14515 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14516 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14517 (enum move_pos): Relocate here.
14518 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14520 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14521 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14522 make_pass_lim): Relocate here from tree-ssa-loop.c.
14523 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14525 (loop_edge_to_cancel, unloop_loops): Make static.
14526 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14527 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14528 (tree_complete_unroll, gate_tree_complete_unroll,
14529 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14530 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14531 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14532 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14533 (stmt_invariant_in_loop_p): Remove unused function.
14534 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14535 * tree-ssa-loop-manip.h: New file. Add prototypes.
14536 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14537 (gcov_type_to_double_int): Move to cfgloop.h.
14538 (double_int_cmp, bound_index,
14539 estimate_numbers_of_iterations_loop): Make static.
14540 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14541 (max_loop_iterations): Factor out get_max_loop_iterations.
14542 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14544 * tree-ssa-loop-niter.h: New file. Add prototypes.
14545 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14546 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14547 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14548 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14549 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14550 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14551 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14552 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14553 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14554 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14555 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14556 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14557 pass_data_complete_unroll, make_pass_complete_unroll,
14558 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14559 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14560 tree-ssa-loop-ivcanon.c.
14561 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14562 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14563 tree-ssa-loop-prefetch.c.
14564 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14565 tree-ssa-loop-im.c.
14566 (get_lsm_tmp_name): Relocate and add suffix parameter.
14567 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14568 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14569 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14570 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14571 (get_estimated_loop_iterations): Factor out accessor from
14572 estimated_loop_iterations in tree-ssa-loop-niter.c.
14573 (get_max_loop_iterations): Factor out accessor from
14574 _max_loop_iterations in tree-ssa-niter.c.
14575 * loop-unroll.c (decide_unroll_constant_iterations,
14576 decide_unroll_runtime_iterations, decide_peel_simple,
14577 decide_unroll_stupid): Use new get_* accessors.
14579 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14581 PR tree-optimization/20318
14582 * doc/extend.texi (returns_nonnull): New function attribute.
14583 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14585 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14586 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14588 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14590 PR middle-end/58570
14591 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14592 false if both components are bitfields.
14594 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14596 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14597 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14598 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14599 * config/aarch64/aarch64.h
14600 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14601 * config/aarch64/aarch64-simd-builtins.def
14602 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14604 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14606 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14608 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14610 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14612 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14614 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14615 (vneg_f64): New intrinsic.
14616 (vneg_s8): Asm replaced with C.
14617 (vneg_s16): Likewise.
14618 (vneg_s32): Likewise.
14619 (vneg_s64): New intrinsic.
14620 (vnegq_f32): Asm replaced with C.
14621 (vnegq_f64): Likewise.
14622 (vnegq_s8): Likewise.
14623 (vnegq_s16): Likewise.
14624 (vnegq_s32): Likewise.
14625 (vnegq_s64): Likewise.
14627 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14629 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14631 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14633 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14634 packed stack special handling.
14635 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14636 back to fixed stack slots for FPRs saved due to stdarg.
14638 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14640 * config/s390/s390.c (s390_frame_info): Restructure function.
14642 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14644 * config/s390/s390.c (struct s390_frame_layout): New field
14646 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14647 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14648 regs_ever_clobbered to char*.
14649 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14650 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14651 (s390_register_info): Enable FPR save slots. Move/Copy some
14652 functionality into ...
14653 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14654 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14656 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14657 not imply a stack frame.
14658 (s390_init_frame_layout): Remove variable clobbered_regs.
14659 (s390_update_register_info): Remove function.
14660 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14661 cannot be used for register renaming.
14662 (s390_hard_regno_scratch_ok): New function.
14663 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14664 (s390_initial_elimination_offset): Change offset calculation of
14665 the return address pointer.
14666 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14667 (restore_gprs): Set frame related flag.
14668 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14669 (s390_emit_prologue): Call s390_register_info instead of
14670 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14671 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14672 (s390_optimize_prologue): Call s390_optimize_register_info.
14673 Try to remove also FPR slot save/restore INSNs. Remove frame
14674 related flags from restore INSNs.
14676 2013-10-08 DJ Delorie <dj@redhat.com>
14678 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14681 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14682 avoid conflict with the MI use of %c.
14683 * config/rl78/rl78-real.md: change %c to %C throughout.
14684 * config/rl78/rl78-virt.md: Likewise.
14686 2013-10-08 Jan Hubicka <jh@suse.cz>
14688 * config/i386/i386.c (ix86_option_override_internal): Switch
14689 to SSE math for -ffast-math when target ISA supports SSE2.
14691 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14693 * tree-flow.h: Remove some prototypes.
14694 * tree.h: Remove some protypes, add a couple.
14695 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14696 using_eh_for_cleanups_p): Add interface routines for front ends.
14697 * tree-eh.h: New file. Add protoptyes.
14698 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14699 (add_stmt_to_eh_lp_fn): Make static.
14700 (lower_try_finally): Use new using_eh_for_cleanups_p.
14701 * emit-rtl.c: Include tree-eh.h.
14702 * gimple.h: Include tree-eh.h.
14704 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14706 PR tree-optimization/58480
14707 * tree-vrp.c (infer_nonnull_range): New function.
14708 (infer_value_range): Call infer_nonnull_range.
14710 2013-10-08 Dehao Chen <dehao@google.com>
14712 PR tree-optimization/58619
14713 * tree-inline.c (copy_phis_for_bb): Combine location data
14716 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14719 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14720 RTX_FRAME_RELATED_P on INSN.
14722 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14724 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14725 (altivec_expand_vec_perm_const): Call it.
14727 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14729 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14730 sequences for LE VSX loads and stores at expand time.
14731 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14733 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14734 (rs6000_gen_le_vsx_permute): New.
14735 (rs6000_gen_le_vsx_load): New.
14736 (rs6000_gen_le_vsx_store): New.
14737 (rs6000_gen_le_vsx_move): New.
14738 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14739 (*vsx_le_perm_load_v4si): New.
14740 (*vsx_le_perm_load_v8hi): New.
14741 (*vsx_le_perm_load_v16qi): New.
14742 (*vsx_le_perm_store_v2di): New.
14743 (*vsx_le_perm_store_v4si): New.
14744 (*vsx_le_perm_store_v8hi): New.
14745 (*vsx_le_perm_store_v16qi): New.
14746 (*vsx_xxpermdi2_le_<mode>): New.
14747 (*vsx_xxpermdi4_le_<mode>): New.
14748 (*vsx_xxpermdi8_le_V8HI): New.
14749 (*vsx_xxpermdi16_le_V16QI): New.
14750 (*vsx_lxvd2x2_le_<mode>): New.
14751 (*vsx_lxvd2x4_le_<mode>): New.
14752 (*vsx_lxvd2x8_le_V8HI): New.
14753 (*vsx_lxvd2x16_le_V16QI): New.
14754 (*vsx_stxvd2x2_le_<mode>): New.
14755 (*vsx_stxvd2x4_le_<mode>): New.
14756 (*vsx_stxvd2x8_le_V8HI): New.
14757 (*vsx_stxvd2x16_le_V16QI): New.
14759 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14761 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14763 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14765 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14766 loop to work also for 31bit ABI.
14767 Save the stack pointer for frame_size > 0.
14769 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14771 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14772 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14773 constraint letters from expanders.
14774 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14775 retry count to general_operand.
14776 ("tabort"): Give operand 0 a mode.
14777 ("tabort_1"): Add mode and constraint letter for operand 0.
14778 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14780 2013-10-04 Jeff Law <law@redhat.com>
14782 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14784 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14786 (thread_across_edge): Here. Call it.
14788 2013-10-04 Cary Coutant <ccoutant@google.com>
14790 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14791 discarding a location list expression (or a piece of one).
14793 2013-10-03 Jan Hubicka <jh@suse.cz>
14795 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14796 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14797 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14799 2013-10-03 Jan Hubicka <jh@suse.cz>
14801 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14802 accumulate-outgoing-args when producing unwind info.
14804 2013-10-03 Wei Mi <wmi@google.com>
14806 * lra-constraints.c (insert_move_for_subreg): New function
14807 extracted from simplify_operand_subreg.
14808 (simplify_operand_subreg): Add reload for paradoxical subreg.
14810 2013-10-03 Rong Xu <xur@google.com>
14812 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14813 the candidate of builtin_expect such that we should fix the
14814 size/time estimation.
14815 (estimate_function_body_sizes): Do the acutally size/time fix-up
14816 for builtin_expect.
14818 2013-10-03 Rong Xu <xur@google.com>
14820 * predict.c (tree_predict_by_opcode): Get the probability
14821 for builtin_expect from param builtin_expect_probability.
14822 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14823 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14824 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14826 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14829 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14830 * calls.c (alloca_call_p): Use get_callee_fndecl.
14831 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14832 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14834 (vrp_visit_stmt): Remove duplicated code.
14836 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14838 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14839 ceildf2, btruncdf2, instead of vsx_* name.
14841 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14842 iterators to only do V2DF and V4SF here. Move the DF code to
14843 rs6000.md where it is combined with SF mode. Replace <VSv> with
14844 just 'v' since only vector operations are handled with these insns
14845 after moving the DF support to rs6000.md.
14846 (vsx_sub<mode>3): Likewise.
14847 (vsx_mul<mode>3): Likewise.
14848 (vsx_div<mode>3): Likewise.
14849 (vsx_fre<mode>2): Likewise.
14850 (vsx_neg<mode>2): Likewise.
14851 (vsx_abs<mode>2): Likewise.
14852 (vsx_nabs<mode>2): Likewise.
14853 (vsx_smax<mode>3): Likewise.
14854 (vsx_smin<mode>3): Likewise.
14855 (vsx_sqrt<mode>2): Likewise.
14856 (vsx_rsqrte<mode>2): Likewise.
14857 (vsx_fms<mode>4): Likewise.
14858 (vsx_nfma<mode>4): Likewise.
14859 (vsx_copysign<mode>3): Likewise.
14860 (vsx_btrunc<mode>2): Likewise.
14861 (vsx_floor<mode>2): Likewise.
14862 (vsx_ceil<mode>2): Likewise.
14863 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14864 (vsx_sminsf3): Likewise.
14865 (vsx_fmadf4): Likewise.
14866 (vsx_fmsdf4): Likewise.
14867 (vsx_nfmadf4): Likewise.
14868 (vsx_nfmsdf4): Likewise.
14869 (vsx_cmpdf_internal1): Likewise.
14871 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14872 simpler to select whether a target has SPE or traditional floating
14873 point support in iterators.
14874 (TARGET_DF_SPE): Likewise.
14875 (TARGET_SF_FPR): Likewise.
14876 (TARGET_DF_FPR): Likewise.
14877 (TARGET_SF_INSN): Macros to say whether floating point support
14878 exists for a given operation for expanders.
14879 (TARGET_DF_INSN): Likewise.
14881 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14882 combining of SF/DF mode operations, using both traditional and VSX
14890 (abs<mode>2): Combine SF/DF modes using traditional floating point
14891 instructions. Add support for using the upper DF registers with
14892 VSX support, and SF registers with power8-vector support. Update
14893 expanders for operations supported by both the SPE and traditional
14894 floating point units.
14895 (abs<mode>2_fpr): Likewise.
14896 (nabs<mode>2): Likewise.
14897 (nabs<mode>2_fpr): Likewise.
14898 (neg<mode>2): Likewise.
14899 (neg<mode>2_fpr): Likewise.
14900 (add<mode>3): Likewise.
14901 (add<mode>3_fpr): Likewise.
14902 (sub<mode>3): Likewise.
14903 (sub<mode>3_fpr): Likewise.
14904 (mul<mode>3): Likewise.
14905 (mul<mode>3_fpr): Likewise.
14906 (div<mode>3): Likewise.
14907 (div<mode>3_fpr): Likewise.
14908 (sqrt<mode>3): Likewise.
14909 (sqrt<mode>3_fpr): Likewise.
14910 (fre<Fs>): Likewise.
14911 (rsqrt<mode>2): Likewise.
14912 (cmp<mode>_fpr): Likewise.
14913 (smax<mode>3): Likewise.
14914 (smin<mode>3): Likewise.
14915 (smax<mode>3_vsx): Likewise.
14916 (smin<mode>3_vsx): Likewise.
14917 (negsf2): Delete SF operations that are merged with DF.
14918 (abssf2): Likewise.
14919 (addsf3): Likewise.
14920 (subsf3): Likewise.
14921 (mulsf3): Likewise.
14922 (divsf3): Likewise.
14924 (fmasf4_fpr): Likewise.
14925 (fmssf4_fpr): Likewise.
14926 (nfmasf4_fpr): Likewise.
14927 (nfmssf4_fpr): Likewise.
14928 (sqrtsf2): Likewise.
14929 (rsqrtsf_internal1): Likewise.
14930 (smaxsf3): Likewise.
14931 (sminsf3): Likewise.
14932 (cmpsf_internal1): Likewise.
14933 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14934 (negdf2): Delete DF operations that are merged with SF.
14935 (absdf2): Likewise.
14936 (nabsdf2): Likewise.
14937 (adddf3): Likewise.
14938 (subdf3): Likewise.
14939 (muldf3): Likewise.
14940 (divdf3): Likewise.
14942 (rsqrtdf_internal1): Likewise.
14943 (fmadf4_fpr): Likewise.
14944 (fmsdf4_fpr): Likewise.
14945 (nfmadf4_fpr): Likewise.
14946 (nfmsdf4_fpr): Likewise.
14947 (sqrtdf2): Likewise.
14948 (smaxdf3): Likewise.
14949 (smindf3): Likewise.
14950 (cmpdf_internal1): Likewise.
14951 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14952 (btrunc<mode>2): Delete separate expander, and combine with the
14953 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14954 (btrunc<mode>2_fpr): Likewise.
14955 (ceil<mode>2): Likewise.
14956 (ceil<mode>2_fpr): Likewise.
14957 (floor<mode>2): Likewise.
14958 (floor<mode>2_fpr): Likewise.
14959 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14960 Add support for using the upper registers with VSX and
14961 power8-vector. Move insns to be closer to the define_expands. On
14962 VSX systems, prefer the traditional form of FMA over the VSX
14963 version, since the traditional form allows the target not to
14964 overlap with the inputs.
14965 (fms<mode>4_fpr): Likewise.
14966 (nfma<mode>4_fpr): Likewise.
14967 (nfms<mode>4_fpr): Likewise.
14969 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14970 Richard Earnshaw <richard.earnshaw@arm.com>
14972 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14973 (struct mult_cost_table): Likewise.
14974 (struct mem_cost_table): Likewise.
14975 (struct fp_cost_table): Likewise.
14976 (struct vector_cost_table): Likewise.
14977 (cpu_cost_table): Likewise.
14978 * config/arm/arm.opt (mold-rts-costs): New option.
14979 (mnew-generic-costs): Likewise.
14980 * config/arm/arm.c (generic_extra_costs): New table.
14981 (cortexa15_extra_costs): Likewise.
14982 (arm_slowmul_tune): Use NULL as new costs.
14983 (arm_fastmul_tune): Likewise.
14984 (arm_strongarm_tune): Likewise.
14985 (arm_xscale_tune): Likewise.
14986 (arm_9e_tune): Likewise.
14987 (arm_v6t2_tune): Likewise.
14988 (arm_cortex_a5_tune): Likewise.
14989 (arm_cortex_a9_tune): Likewise.
14990 (arm_v6m_tune): Likewise.
14991 (arm_fa726te_tune): Likewise.
14992 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14993 (arm_cortex_tune): Use generict_extra_costs.
14994 (shifter_op_p): New function.
14995 (arm_unspec_cost): Likewise.
14996 (LIBCALL_COST): Define.
14997 (arm_new_rtx_costs): New function.
14998 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14999 table is available. Use old costs otherwise unless mnew-generic-costs
15001 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15002 (cpu_cost_table): Declare.
15004 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15007 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15008 (*subs_mul_imm_<mode>)
15009 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15010 (*sub_<shift>_<mode>)
15011 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15012 Remove k constraint.
15014 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15016 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15018 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15020 2013-10-02 Teresa Johnson <tejohnson@google.com>
15022 * predict.c (probably_never_executed): New function.
15023 (probably_never_executed_bb_p): Invoke probably_never_executed.
15024 (probably_never_executed_edge_p): Ditto.
15025 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15026 Treat profile insanities conservatively.
15028 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15030 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15032 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15034 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15035 use it. Use smaller increase for scratch. Don't increase reject
15036 for early clobber scratch.
15037 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15038 setting eliminated regs except setting fp from hfp.
15039 (lra_eliminate): Check lra_insn_recog_data on NULL.
15041 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15044 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15045 setting -mvsx-timode by default until the underlying problem is fixed.
15046 (RS6000_CPU, power7 defaults): Likewise.
15048 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15050 * config/x-linux (host-linux.o): Remove header dependencies.
15051 Use $(COMPILE) and $(POSTCOMPILE).
15052 * config/t-linux-android (linux-android.o): Ditto.
15054 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15056 * Makefile.in (expmed.o-warn): Remove.
15058 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15060 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15061 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15063 2013-10-02 Teresa Johnson <tejohnson@google.com>
15065 * dojump.c (do_jump_1): Divide probability between
15066 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15068 2013-10-02 Tom Tromey <tromey@redhat.com>
15070 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15072 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15074 * tree-flow.h: Remove some prototypes.
15075 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15076 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15077 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15078 mark_virtual_phi_result_for_renaming): Relocate here.
15079 * tree-into-ssa.h: Add prototypes.
15080 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15081 single_pred_before_succ_order.
15082 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15083 (nonfreeing_call_p) Move to gimple.c.
15084 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15086 * basic-block.h (single_pred_before_succ_order): Add prototype.
15087 * gimple.c (nonfreeing_call_p): Relocate here.
15088 * gimple.h: Add prototype.
15089 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15090 * tree-ssa-dom.h: New file. Relocate prototypes here.
15091 * tree-ssa.h: Include tree-ssa-dom.h.
15093 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15095 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15096 Use $(COMPILE) and $(POSTCOMPILE).
15098 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15100 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15102 * tree-flow.h: Remove some prototypes.
15103 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15104 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15105 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15106 propagate_tree_value*): Move from here to...
15107 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15108 propagate_tree_value*): Relocate here.
15109 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15110 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15111 * gimple-fold.c: Remove gimple-fold.h from include list.
15112 * tree-vrp.c: Remove gimple-fold.h from include list.
15113 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15114 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15115 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15116 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15117 * sese.c: Add tree-ssa-propagate.h to include list.
15119 2013-10-02 Richard Biener <rguenther@suse.de>
15121 * tree-loop-distribution.c: Include tree-vectorizer.h for
15122 find_loop_location.
15123 (enum partition_kind): Remove PKIND_REDUCTION.
15124 (struct partition_s): Remove has_writes member, add reduction_p member.
15125 (partition_alloc): Adjust.
15126 (partition_builtin_p): Likewise.
15127 (partition_has_writes): Remove.
15128 (partition_reduction_p): New function.
15129 (partition_merge_into): Likewise.
15130 (generate_code_for_partition): Commonize builtin partition
15132 (rdg_cannot_recompute_vertex_p): Remove.
15133 (already_processed_vertex_p): Likewise.
15134 (rdg_flag_vertex): Do not set has_writes.
15135 (classify_partition): Adjust.
15136 (rdg_build_partitions): Do not set has_writes, treat all
15137 partitions as useful.
15138 (distribute_loop): Record number of library calls generated. Adjust.
15139 (tree_loop_distribution): Report number of loops and library
15140 calls generated as opt-info.
15142 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15144 * tree-flow.h: Include new .h files. Move prototypes.
15145 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15146 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15147 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15148 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15149 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15150 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15151 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15152 * tree.h (get_ref_base_and_extent): Move prototype out.
15153 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15155 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15156 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15157 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15158 * tree-scalar-evolution.c: Include tree.h.
15159 * sese.c: Include tree.h.
15160 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15161 * dwarf2out.c: Include tree-dfa.h.
15162 * tree-chrec.c: Include tree.h.
15163 * tree-data-ref.c: Include tree.h.
15165 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15167 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15170 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15172 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15173 Use $(COMPILE) and $(POSTCOMPILE).
15174 (sol2-cxx.o): Likewise.
15175 (sol2-stubs.o): Likewise.
15176 (sol2.o): Likewise.
15177 * config/x-solaris (host-solaris.o): Likewise.
15179 * config/sparc/t-sparc (sparc.o): Remove.
15180 (sparc-c.o): Remove header dependencies.
15181 Use $(COMPILE) and $(POSTCOMPILE).
15182 * config/sparc/x-sparc: Likewise.
15184 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15186 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15187 * config/arc/arc700.md: Likewise.
15188 * config/arc/arc-modes.def: Likewise.
15189 * config/arc/arc-simd.h: Likewise.
15190 * config/arc/t-arc-uClibc: Likewise.
15191 * config/arc/t-arc-newlib: Likewise.
15193 2013-10-02 Renlin Li <renlin.li@arm.com>
15195 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15197 (aarch64_expand_epilogue): Likewise.
15199 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15200 Yufeng Zhang <yufeng.zhang@arm.com>
15202 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15204 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15205 'base_in' represent a conversion and legal_cast_p_1 holds; set
15206 'base_in' with the returned value from get_unwidened.
15208 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15210 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15211 plus_constant is not used.
15213 2013-10-01 Wei Mi <wmi@google.com>
15215 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15216 * config/i386/i386.md: Add define_peephole2 to
15217 break partial reg stall for cvtss2sd/cvtsd2ss.
15219 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15221 * config/arc/arc.c (pass_arc_ifcvt::clone):
15222 Update for ctxt_ -> m_ctxt change.
15224 2013-10-01 Jeff Law <law@redhat.com>
15226 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15227 outgoing_edge and intermediate_edge fields. Instead store the path.
15228 (redirection_data::hash): Hash on the last edge's destination index.
15229 (redirection_data::equal): Check the entire thread path.
15230 (lookup_redirectio_data): Corresponding changes.
15231 (create_edge_and_update_destination_phis): Likewise.
15232 (thread_single_edge): Likewise.
15234 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15235 Diego Novillo <dnovillo@google.com>
15237 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15238 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15239 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15240 versions of these patterns.
15242 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15243 (__builtin_arc_aligned): Likewise.
15245 * config/arc/arc.md: Expand adc_0 comment stating the intended
15246 purpose and why it isn't ready.
15247 Replace commented out call_value_via_label_mixed with a
15248 plain comment about bl_s.
15250 * config/arc/arc.c (stdio.h): Don't include directly.
15251 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15252 Remove if (1) condition.
15253 (arc_encode_section_info): Fix comment.
15255 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15257 * config/arc/arc.c (arc_conditional_register_usage):
15258 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15259 Also set reg_alloc_order for DMA config regs.
15261 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15262 Jeremy Bennett <jeremy.bennett@embecosm.com>
15264 * doc/install.texi (--with-cpu): Mention ARC.
15265 (arc-*-elf32): New paragraph.
15266 (arc-linux-uclibc): Likewise.
15267 * doc/md.texi (Machine Constraints): Add ARC part.
15268 * doc/invoke.texi: (menu): Add ARC Options.
15269 (Machine Dependent Options) <ARC Options>: Add synopsis.
15270 (node ARC Options): Add.
15271 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15272 (ARC Built-in Functions): New section defining
15273 generic ARC built-in functions.
15274 (ARC SIMD Built-in Functions): New section defining SIMD specific
15275 built-in functions.
15276 (Declaring Attributes of Functions): Extended
15277 description of short_call and long_call attributes for ARC and
15278 added index entries.
15280 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15281 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15282 Joern Rennecke <joern.rennecke@embecosm.com>
15283 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15284 Brendan Kehoe <brendan@zen.org>
15285 Michael Eager <eager@eagercon.com>
15286 Simon Cook <simon.cook@embecosm.com>
15287 Jeremy Bennett <jeremy.bennett@embecosm.com>
15289 * config/arc, common/config/arc: New directories.
15291 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15292 Brendan Kehoe <brendan@zen.org>
15293 Simon Cook <simon.cook@embecosm.com>
15295 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15297 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15299 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15300 * tree-ssa-coalesce.h: New. Move prototype to here.
15301 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15302 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15303 (gimple_can_coalesce_p): Move to...
15304 * gimple.c (gimple_can_coalesce_p): Here.
15306 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15308 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15309 (dump_decl_set): Move to gimple.c.
15310 * gimple.h: Don't include tree-ssa-operands.h.
15311 (dump_decl_set): Add prototype.
15312 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15313 Move to gimple-ssa.h.
15314 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15315 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15316 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15317 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15318 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15320 (dump_decl_set): Relocate here.
15321 * gimple-ssa.h: New file.
15322 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15323 Relocate from gimple.h.
15324 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15325 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15326 swap_tree_operands and remove non-ssa path.
15327 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15328 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15330 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15331 vect_is_simple_reduction_1): Use swap_ssa_operands.
15332 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15333 (enum need_phi_state): Move to tree-into-ssa.c.
15334 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15335 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15336 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15337 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15338 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15339 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15340 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15341 num_imm_uses): Move to ssa-iterators.h.
15342 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15343 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15345 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15346 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15347 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15348 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15349 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15350 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15351 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15352 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15353 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15354 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15355 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15356 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15357 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15358 (set_phi_nodes): Move to tree-phinodes.h.
15359 * tree-ssa-operands.h (enum ssa_op_iter_type,
15360 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15361 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15362 (dump_decl_set): Remove prototype.
15363 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15364 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15365 (set_phi_nodes): Relocate from tree-flow-inline.h.
15366 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15368 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15369 include list. Temporarily add gimple.h to include list.
15370 * ssa-iterators.h: New file.
15371 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15372 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15373 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15374 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15375 Relocate from tree-ssa-operands.h.
15376 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15377 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15378 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15379 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15380 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15381 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15382 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15383 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15384 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15385 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15386 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15387 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15388 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15389 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15390 Relocate from tree-flow-inline.h.
15391 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15393 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15396 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15397 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15398 Insert '\t' to output template.
15399 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15400 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15401 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15402 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15404 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15406 * doc/install.texi (Host/target specific installation notes for GCC):
15407 Put @anchor before @heading.
15408 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15409 Use @email for email addresses.
15411 2013-10-01 Jeff Law <law@redhat.com>
15413 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15414 a vec. Only delete the path if we create one without successfully
15415 registering a jump thread.
15416 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15418 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15419 (paths): New vector of jump threading paths.
15420 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15421 (THREAD_PATH): New accessor macro for the entire thread path.
15422 (lookup_redirection_data): Get intermediate and final outgoing edge
15423 from the thread path.
15424 (create_edge_and_update_destination_phis): Copy the threading path.
15425 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15426 jump threading path.
15427 (ssa_redirect_edges): Get edges and block types from the jump threading
15428 path. Free the path vector.
15429 (thread_block): Get edges from the jump threading path. Look at the
15430 entire path to see if we thread to a loop exit. If we cancel a jump
15431 thread request, then free the path vector.
15432 (thread_single_edge): Get edges and block types from the jump threading
15433 path. Free the path vector.
15434 (thread_through_loop_header): Get edges and block types from the jump
15435 threading path. Free the path vector.
15436 (mark_threaded_blocks): Iterate over the vector of paths and store
15437 the path on the appropriate edge. Get edges and block types from the
15438 jump threading path.
15439 (mark_threaded_blocks): Get edges and block types from the jump
15440 threading path. Free the path vector.
15441 (thread_through_all_blocks): Use the vector of paths rather than
15442 a vector of 3-edge sets.
15443 (register_jump_thread): Accept pointer to a path vector rather
15444 than the path vector itself. Store the path vector for later use.
15447 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15448 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15451 * config/s390/s390.c (s390_split_branches): Modify check for table
15453 (s390_chunkify_start): Rearrange table jump insn check in order to
15454 deal with compare and branch insns correctly.
15456 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15460 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15461 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15462 define_insn_and_split.
15463 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15464 (shiftsi3_compare): New pattern.
15465 (rrx): New pattern.
15466 * config/arm/unspecs.md (UNSPEC_RRX): New.
15468 2013-10-01 Alan Modra <amodra@gmail.com>
15470 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15471 casing inout operands.
15473 2013-10-01 Richard Biener <rguenther@suse.de>
15475 PR tree-optimization/58553
15476 * tree-loop-distribution.c (struct partition_s): Add niter member.
15477 (classify_partition): Populate niter member for the partition
15478 and properly identify whether the relevant store happens before
15479 or after the loop exit.
15480 (generate_memset_builtin): Use niter member from the partition.
15481 (generate_memcpy_builtin): Likewise.
15483 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15485 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15486 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15488 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15490 * basic-block.h (edge_list): Prefix member names with "m_".
15491 * context.h (context): Likewise.
15492 * domwalk.h (dom_walker): Likewise.
15493 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15494 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15495 * hash-table.h (hash_table): Likewise.
15496 * machmode.h (bit_field_mode_iterator): Likewise.
15497 * pass_manager.h (pass_list): Likewise.
15498 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15499 * tree-pass.h (pass_data): Likewise.
15500 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15501 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15502 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15503 * asan.c (pass_data_asan): Update accordingly.
15504 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15505 (control_dependences::control_dependences): Likewise.
15506 (control_dependences::~control_dependences): Likewise.
15507 (control_dependences::~control_dependences): Likewise.
15508 (control_dependences::get_edges_dependent_on): Likewise.
15509 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15510 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15511 * context.c (gcc::context::context): Likewise.
15512 * cprop.c (pass_rtl_cprop::clone): Likewise.
15513 * domwalk.c (dom_walker::walk): Likewise.
15514 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15515 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15516 * mode-switching.c (pass_mode_switching::clone): Likewise.
15517 * passes.c (opt_pass::opt_pass): Likewise.
15518 (pass_manager::pass_manager): Likewise.
15519 * predict.c (pass_strip_predict_hints::clone): Likewise.
15520 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15521 (pass_split_all_insns::clone): Likewise.
15522 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15524 (bit_field_mode_iterator::next_mode): Likewise.
15525 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15526 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15527 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15528 * tree-complex.c (pass_lower_complex::clone): Likewise.
15529 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15530 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15531 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15532 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15533 (pass_fold_builtins::clone): Likewise.
15534 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15535 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15536 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15537 (pass_cd_dce::clone): Likewise.
15538 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15539 (pass_phi_only_cprop::clone): Likewise.
15540 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15541 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15542 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15543 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15544 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15545 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15546 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15547 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15548 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15549 * tree-vrp.c (pass_vrp::clone): Likewise.
15550 * tsan.c (pass_tsan::clone): Likewise.
15552 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15554 PR middle-end/58564
15555 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15556 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15558 PR middle-end/58564
15559 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15560 optimization, punt if sign_bit_p looked through any zero extension.
15562 2013-09-30 Teresa Johnson <tejohnson@google.com>
15564 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15565 Update redirected out edge count in joiner case.
15566 (ssa_redirect_edges): Common the joiner and non-joiner cases
15567 so that joiner case gets profile updates.
15569 2013-09-30 Richard Biener <rguenther@suse.de>
15571 PR tree-optimization/58554
15572 * tree-loop-distribution.c (classify_partition): Require
15573 unconditionally executed stores for memcpy and memset recognition.
15574 (tree_loop_distribution): Calculate dominance info.
15576 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15578 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15579 (NO_PROFILE_COUNTERS): Likewise.
15580 (PROFILE_HOOK): Likewise.
15581 (FUNCTION_PROFILER): Likewise.
15582 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15584 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15586 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15587 calls and defines in TARGET_MACHO conditional.
15588 (load_macho_picbase_di): Likewise.
15589 (reload_macho_picbase): Likewise.
15590 (reload_macho_picbase_si): Likewise.
15591 (reload_macho_picbase_di): Likewise.
15592 (nonlocal_goto_receiver): Likewise.
15594 2013-09-30 Nick Clifton <nickc@redhat.com>
15596 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15597 that use the MSP430X ISA.
15598 (msp430_option_override): Scan -mmcu command line option for any
15599 MCU name that supports the MSP430X ISA.
15600 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15601 -mmcu options which enable the MSP430X ISA.
15603 2013-09-30 Richard Biener <rguenther@suse.de>
15605 PR middle-end/58532
15606 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15607 before looking for setjmp-like calls.
15609 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15612 * config/darwin-protos.h (machopic_get_function_picbase): New.
15613 * config/darwin.c (machopic_get_function_picbase): New.
15614 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15615 label for a new func. (load_macho_picbase_di): Likewise.
15616 (reload_macho_picbase): New expand.
15617 (reload_macho_picbase_si): New insn.
15618 (reload_macho_picbase_di): New insn.
15619 (nonlocal_goto_receiver): New define and split.
15620 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15621 (unspecv enum): Add UNSPECV_NLGR.
15623 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15625 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15626 that altivec registers are correctly sized on Darwin.
15628 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15630 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15631 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15632 * config/x-darwin (host-darwin.o): Likewise.
15633 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15634 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15635 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15637 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15639 * doc/invoke.texi: Fix usage of @tie{} command.
15641 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15643 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15645 2013-09-28 Jan Hubicka <jh@suse.cz>
15647 * config/i386/x86-tune.def: Add documentation for each of the options;
15650 2013-09-28 Jan Hubicka <jh@suse.cz>
15652 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15654 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15655 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15656 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15657 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15658 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15660 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15662 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15663 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15664 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15665 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15666 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15667 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15668 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15669 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15670 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15671 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15672 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15673 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15674 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15675 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15676 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15677 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15678 gimple.h, godump.c, graphite-clast-to-gimple.c,
15679 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15680 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15681 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15682 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15683 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15684 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15685 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15686 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15687 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15688 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15689 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15690 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15691 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15692 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15693 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15694 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15695 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15696 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15697 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15698 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15699 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15700 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15701 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15702 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15703 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15704 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15705 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15706 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15707 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15708 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15709 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15710 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15711 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15712 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15713 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15714 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15715 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15716 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15717 whitespace before "(".
15719 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15721 * expr.h (extract_bit_field): Remove packedp parameter.
15722 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15723 from forward declaration.
15724 (store_split_bit_field): Remove packedp arg from calls to
15725 extract_fixed_bit_field.
15726 (extract_bit_field_1): Remove packedp parameter and packedp
15727 argument from recursive calls and calls to extract_fixed_bit_field.
15728 (extract_bit_field): Remove packedp parameter and corresponding
15729 arg to extract_bit_field_1.
15730 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15732 (extract_split_bit_field): Remove packedp arg from call to
15733 extract_fixed_bit_field.
15734 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15735 (copy_blkmode_from_reg): Likewise.
15736 (copy_blkmode_to_reg): Likewise.
15737 (read_complex_part): Likewise.
15738 (store_field): Likewise.
15739 (expand_expr_real_1): Likewise.
15740 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15741 to extract_bit_field.
15742 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15743 call to extract_bit_field.
15744 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15745 call to extract_bit_field.
15746 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15747 and special packedp behavior from -fstrict-volatile-bitfields
15750 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15752 * lra-eliminations.c (init_elim_table): Guard value_p.
15754 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15756 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15757 DFmode, DImode, and SFmode in the upper VSX registers based on the
15758 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15759 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15760 of the VSX register handling.
15762 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15763 (f32_sv): Likewise.
15764 (zero_extendsidi2_lfiwzx): Add support for loading into the
15765 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15766 only do VSX memory options on Altivec registers.
15767 (extendsidi2_lfiwax): Likewise.
15768 (extendsfdf2_fpr): Likewise.
15769 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15770 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15771 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15772 (movdi_internal64): Likewise.
15774 2013-09-27 Xinliang David Li <davidxl@google.com>
15776 * opts.c (finish_options): Adjust parameters
15777 according to vect cost model.
15778 (common_handle_option): Set dynamic vect cost
15780 targhooks.c (default_add_stmt_cost): Compute stmt cost
15782 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15783 Use helper function.
15784 * tree-vectorizer.h (unlimited_cost_model): New function.
15785 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15786 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15788 (vect_enhance_data_refs_alignment): Ditto.
15789 * flag-types.h: New enum.
15790 * common/config/i386/i386-common.c (ix86_option_init_struct):
15791 No need to initialize vect_cost_model flag.
15792 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15795 2013-09-27 Diego Novillo <dnovillo@google.com>
15797 * gimple.h (enum ssa_mode): Remove.
15799 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15801 * cfgloop.h (number_of_loops): Fix typo in check for null.
15803 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15805 PR middle-end/58551
15806 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15807 are children of outermost saved_cfun's loop, and set it up to
15808 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15809 if loop != loop0 and SESE region contains bbs that belong to loop0.
15811 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15813 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15814 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15815 (set_address_segment, set_address_base, set_address_index)
15816 (set_address_disp): Accept the argument unconditionally.
15817 (baseness): Remove must_be_base_p and must_be_index_p checks.
15818 (decompose_normal_address): Classify as much as possible in the
15821 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15823 * cse.c (count_reg_usage): Handle INT_LIST.
15824 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15825 * reginfo.c (reg_scan_mark_refs): Likewise.
15826 * reload1.c (eliminate_regs_1): Likewise.
15828 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15830 PR middle-end/58547
15831 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15834 2013-09-27 Richard Biener <rguenther@suse.de>
15836 PR tree-optimization/58459
15837 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15838 restriction not propagating into loops.
15840 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15842 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15843 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15844 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15846 2013-09-26 Richard Biener <rguenther@suse.de>
15848 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15850 2013-09-26 Richard Biener <rguenther@suse.de>
15852 * alias.h (component_uses_parent_alias_set): Rename to ...
15853 (component_uses_parent_alias_set_from): ... this.
15854 * alias.c (component_uses_parent_alias_set): Rename to ...
15855 (component_uses_parent_alias_set_from): ... this and return
15856 the desired parent.
15857 (reference_alias_ptr_type_1): Use the result from
15858 component_uses_parent_alias_set_from instead of stripping
15859 components one at a time.
15860 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15862 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15864 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15865 Move prototypes to...
15866 * tree-ssa-ter.h: New File. Move prototypes here.
15867 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15868 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15869 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15870 from is_replaceable_p.
15871 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15872 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15873 (process_replaceable): Use ter_is_replaceable_p.
15874 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15875 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15876 newly refactored ssa_is_replaceable_p.
15877 * cfgexpand.c: Include tree-outof-ssa.h.
15878 * ssaexpand.h: Delete.
15880 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15882 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15883 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15885 (create_gimple_tmp): Delete.
15886 (get_expr_type, build_assign, build_type_cast): Move to...
15887 * gimple-builder.c: New File.
15888 (get_expr_type): Relocate from gimple.c.
15889 (build_assign, build_type_cast): Change to only create ssanames.
15890 * gimple.h: Move prototypes to...
15891 * gimple-builder.h: New File. Here.
15892 * tree-ssa.h: And here.
15893 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15894 count_uses_and_derefs): Relocate from gimple.c.
15895 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15896 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15897 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15898 gimple_replace_ssa_lhs.
15899 * asan.c: Include gimple-builder.h.
15900 * Makefile.in: Add gimple-builder.o.
15902 2013-09-26 Richard Biener <rguenther@suse.de>
15904 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15905 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15906 (loe_visit_block): Use gcc_checking_assert.
15907 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15908 gimple_assign_ssa_name_copy_p.
15909 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15912 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15914 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15915 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15917 2013-09-26 Richard Biener <rguenther@suse.de>
15919 PR tree-optimization/58539
15920 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15921 the fact that debug statements are not taking part in loop-closed
15924 2013-09-26 Nick Clifton <nickc@redhat.com>
15926 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15927 time warning message.
15928 (msp430_print_operand_raw): Delete unused letter parameter.
15929 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15930 (msp430_print_operand_address): New function.
15931 (msp430_print_operand): Move address printing code from here to
15933 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15935 (zero_extendpsisi2): Likewise.
15936 (extendpsisi2): New pattern.
15937 (andneghi3): New pattern.
15939 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15941 * config/aarch64/aarch64.opt (mlra): New option.
15942 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15943 (TARGET_LRA_P): Define.
15945 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15947 * expr.c (expand_assignment): Remove obsolete comment.
15949 2013-09-25 Jeff Law <law@redhat.com>
15951 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15952 tree-ssa-threadupdate.h.
15953 (register_jump_thread): Similarly.
15954 * tree-ssa-threadupdate.h: New header file.
15955 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15956 * tree-vrp.c: Likewise.
15957 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15958 (thread_around_empty_blocks): Change type of path vector argument to
15959 an edge,type pair from just an edge. Initialize both elements when
15960 appending to a jump threading path. Tweak references to elements
15962 (thread_across_edge): Similarly. Release memory for the elements
15964 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15965 (dump_jump_thread_path): New function broken out from
15966 register_jump_thread.
15967 (register_jump_thread): Use dump_jump_thread_path. Change type of
15968 path vector entries. Search the path for NULL edges and dump
15969 the path if one is found. Tweak the conversion of path to 3-edge
15970 form to use the block copy type information embedded in the path.
15972 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15974 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15976 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15977 Vladimir Makarov <vmakarov@redhat.com>
15979 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15980 from the least significant bit.
15981 (strip_address_mutations): Add bitfield operations handling.
15982 (must_be_index_p): Add shifting and rotate operations handling.
15983 (set_address_base): Use must_be_base_p predicate.
15984 (set_address_index): Use must_be_index_p predicate.
15986 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15988 Sergey Lega <sergey.s.lega@intel.com>
15989 Anna Tikhonova <anna.tikhonova@intel.com>
15990 Ilya Tocar <ilya.tocar@intel.com>
15991 Andrey Turetskiy <andrey.turetskiy@intel.com>
15992 Ilya Verbin <ilya.verbin@intel.com>
15993 Kirill Yukhin <kirill.yukhin@intel.com>
15994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15996 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15998 (ix86_expand_vector_move_misalign): Support new unaligned load and
15999 stores and use new names.
16000 (CODE_FOR_sse2_storedqu): Rename to ...
16001 (CODE_FOR_sse2_storedquv16qi): ... this.
16002 (CODE_FOR_sse2_loaddqu): Rename to ...
16003 (CODE_FOR_sse2_loaddquv16qi): ... this.
16004 (CODE_FOR_avx_loaddqu256): Rename to ...
16005 (CODE_FOR_avx_loaddquv32qi): ... this.
16006 (CODE_FOR_avx_storedqu256): Rename to ...
16007 (CODE_FOR_avx_storedquv32qi): ... this.
16008 * config/i386/i386.md (fpint_logic): New.
16009 * config/i386/sse.md (VMOVE): Extend for AVX512.
16013 (VI_UNALIGNED_LOADSTORE): Ditto.
16014 (sse2_avx_avx512f): Ditto.
16015 (sse2_avx2): Extend for AVX512.
16016 (sse4_1_avx2): Ditto.
16017 (avx2_avx512f): New.
16018 (sse): Extend for AVX512.
16021 (avxsizesuffix): Ditto.
16022 (sseintvecmode): Ditto.
16023 (ssePSmode): Ditto.
16024 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16025 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16026 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16027 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16028 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16029 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16030 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16031 (STORENT_MODE): Extend for AVX512.
16032 (*absneg<mode>2): Replace constraint "x" with "v".
16033 (*mul<mode>3): Ditto.
16034 (*ieee_smin<mode>3): Ditto.
16035 (*ieee_smax<mode>3): Ditto.
16036 (avx_cmp<mode>3): Replace VF with VF_128_256.
16037 (*<sse>_maskcmp<mode>3_comm): Ditto.
16038 (<sse>_maskcmp<mode>3): Ditto.
16039 (<sse>_andnot<mode>3): Extend for AVX512.
16040 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16041 (<code><mode>3, fpint_logic): New.
16042 (*<code><mode>3): Extend for AVX512.
16043 (avx512flogicsuff): New.
16044 (avx512f_<logic><mode>): Ditto.
16045 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16047 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16048 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16049 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16050 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16051 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16052 (xop_vpermil2<mode>3): Ditto.
16053 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16054 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16055 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16056 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16058 2013-09-25 Tom Tromey <tromey@redhat.com>
16060 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16061 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16062 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16063 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16064 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16065 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16066 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16067 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16068 (GRAPHITE_HTAB_H): Remove.
16070 2013-09-25 Tom Tromey <tromey@redhat.com>
16072 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16074 2013-09-25 Tom Tromey <tromey@redhat.com>
16076 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16078 2013-09-25 Tom Tromey <tromey@redhat.com>
16080 * config/i386/t-i386 (i386.o): Remove.
16081 (i386-c.o): Use COMPILE and POSTCOMPILE.
16083 2013-09-25 Tom Tromey <tromey@redhat.com>
16085 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16087 2013-09-25 Tom Tromey <tromey@redhat.com>
16089 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16090 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16091 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16092 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16093 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16094 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16095 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16096 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16097 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16098 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16099 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16100 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16101 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16102 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16103 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16104 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16105 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16106 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16107 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16108 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16109 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16110 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16111 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16112 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16113 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16114 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16115 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16116 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16117 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16118 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16119 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16120 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16121 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16122 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16123 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16124 (graphite-clast-to-gimple.o, graphite-dependences.o)
16125 (graphite-interchange.o, graphite-poly.o)
16126 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16127 (graphite-optimize-isl.o, tree-vect-loop.o)
16128 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16129 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16130 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16131 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16132 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16133 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16134 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16135 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16136 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16137 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16138 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16139 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16140 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16141 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16142 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16143 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16144 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16145 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16146 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16147 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16148 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16149 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16150 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16151 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16152 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16153 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16154 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16155 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16156 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16157 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16158 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16159 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16160 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16161 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16162 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16163 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16164 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16165 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16166 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16167 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16168 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16169 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16170 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16171 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16172 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16173 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16174 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16175 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16176 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16177 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16178 (gcov-dump.o): Remove.
16179 (default-c.o): Use COMPILE and POSTCOMPILE.
16180 (CFLAGS-gcc.o): New variable.
16181 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16183 2013-09-25 Tom Tromey <tromey@redhat.com>
16185 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16186 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16187 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16188 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16189 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16190 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16191 (c-family/array-notation-common.o, c-family/stub-objc.o)
16192 (c-family/c-ubsan.o): Remove.
16194 2013-09-25 Tom Tromey <tromey@redhat.com>
16196 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16198 2013-09-25 Tom Tromey <tromey@redhat.com>
16200 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16201 to add -DENABLE_SHARED_LIBGCC.
16202 (gcc.o): Don't use subshell.
16204 2013-09-25 Tom Tromey <tromey@redhat.com>
16206 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16207 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16208 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16209 * configure, config.in: Rebuild.
16211 2013-09-25 Tom Tromey <tromey@redhat.com>
16213 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16214 (COMPILE, POSTCOMPILE): New variables.
16215 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16216 (DEPFILES): New variable.
16217 Include ".Po" files.
16218 * configure.ac: Add checks for dependency checking.
16219 * configure, aclocal.m4: Regenerate.
16221 2013-09-25 Tom Tromey <tromey@redhat.com>
16223 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16224 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16226 2013-09-25 Tom Tromey <tromey@redhat.com>
16228 * Makefile.in (generated_files): Add options.h,
16229 target-hooks-def.h, insn-opinit.h,
16230 common/common-target-hooks-def.h, pass-instances.def,
16231 c-family/c-target-hooks-def.h.
16233 2013-09-25 Jeff Law <law@redhat.com>
16235 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16236 than foo[foo.length () - 1] to access last member in a vec.
16237 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16239 2013-09-25 Richard Biener <rguenther@suse.de>
16241 PR middle-end/58521
16242 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16244 2013-09-25 Jan Hubicka <jh@suse.cz>
16246 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16249 2013-09-25 Marek Polacek <polacek@redhat.com>
16252 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16253 when determining the type name.
16255 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16257 * config/sh/sh.md: Fix formatting.
16259 2013-09-24 Xinliang David Li <davidxl@google.com>
16261 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16262 max peel iterations parameter.
16263 * param.def: New parameter.
16264 * doc/invoke.texi: Document New parameter.
16266 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16268 * gimple-pretty-print.c: Various whitespace tweaks.
16269 * tree-core.h: Likewise.
16270 * tree-pretty-print.c: Likewise.
16271 * tree-ssa-alias.c: Likewise.
16272 * tree-ssa-copy.c: Likewise.
16273 * tree-ssanames.c: Likewise.
16274 * tree-ssanames.h: Likewise.
16275 * tree-vrp.c: Likewise.
16277 2013-09-24 Alan Modra <amodra@gmail.com>
16279 PR middle-end/57134
16280 PR middle-end/57586
16281 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16282 for output operands that disallow regs. Don't use EXPAND_WRITE on
16285 2013-09-24 Richard Biener <rguenther@suse.de>
16287 PR middle-end/58513
16288 * tree.c (reference_alias_ptr_type): Move ...
16289 * alias.c (reference_alias_ptr_type): ... here and implement
16290 in terms of the new reference_alias_ptr_type_1.
16291 (ref_all_alias_ptr_type_p): New helper.
16292 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16293 use ref_all_alias_ptr_type_p.
16294 (get_deref_alias_set): Add flag_strict_aliasing check here.
16295 (reference_alias_ptr_type_1): New function, split out from ...
16296 (get_alias_set): ... here.
16297 (alias_ptr_types_compatible_p): New function.
16298 * alias.h (reference_alias_ptr_type): Declare.
16299 (alias_ptr_types_compatible_p): Likewise.
16300 * tree.h (reference_alias_ptr_type): Remove.
16301 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16302 to compare MEM_REF alias types.
16304 2013-09-24 Richard Biener <rguenther@suse.de>
16306 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16308 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16310 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16311 reload helper function arrays into a single array reg_addr.
16312 (reload_fpr_gpr): Likewise.
16313 (reload_gpr_vsx): Likewise.
16314 (reload_vsx_gpr): Likewise.
16315 (struct rs6000_reg_addr): Likewise.
16316 (reg_addr): Likewise.
16317 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16318 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16319 (rs6000_init_hard_regno_mode_ok): Likewise.
16320 (rs6000_secondary_reload_direct_move): Likewise.
16321 (rs6000_secondary_reload): Likewise.
16323 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16324 constraints: wu, ww, and wy. Repurpose wv constraint added during
16325 power8 changes. Put wg constraint in alphabetical order.
16327 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16328 for future work to add ISA 2.07 VSX single precision support.
16329 (-mvsx-scalar-double): Change default from -1 to 1, update
16330 documentation comment.
16331 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16332 (-mupper-regs-df): New debug switch to control whether DF values
16333 can go in the traditional Altivec registers.
16334 (-mupper-regs-sf): New debug switch to control whether SF values
16335 can go in the traditional Altivec registers.
16337 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16338 and wy constraints.
16339 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16340 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16341 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16342 (rs6000_debug_legitimate_address_p): Print if we are running
16343 before, during, or after reload.
16344 (rs6000_secondary_reload): Add a comment.
16345 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16347 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16348 constraints. Update documentation string.
16349 (wd constraint): Likewise.
16350 (wf constraint): Likewise.
16351 (wg constraint): Likewise.
16352 (wn constraint): Likewise.
16353 (ws constraint): Likewise.
16354 (wt constraint): Likewise.
16355 (wx constraint): Likewise.
16356 (wz constraint): Likewise.
16357 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16359 (ww constraint): Likewise.
16360 (wy constraint): Likewise.
16361 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16362 in the previous submissions.
16363 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16365 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16367 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16368 (REG_BR_PROB): Say that the probability is stored in an int_list.
16369 * reg-notes.def: Update commentary to mention INT_LIST.
16370 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16371 (INT_LIST): New rtx.
16372 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16373 * rtlanal.c (int_reg_note_p): New function.
16374 (alloc_reg_note): Assert that the note does not have an int argument.
16375 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16376 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16377 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16378 rather than an INSN_LIST. Handle INT_LIST.
16379 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16380 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16381 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16382 Manipulate them as ints rather than rtxes.
16383 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16384 * regmove.c (copy_src_to_dest): Likewise.
16385 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16387 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16388 into the cases that need it.
16389 * config/arm/arm.c (arm_unwind_emit): Likewise.
16391 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16392 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16393 * loop-doloop.c (add_test, doloop_modify): Likewise.
16394 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16395 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16396 * predict.c (combine_predictions_for_insn): Likewise.
16397 * print-rtl.c (print_rtx): Handle INT_LIST.
16398 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16399 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16400 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16401 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16402 (ix86_split_fp_branch, predict_jump): Likewise.
16403 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16404 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16405 * config/spu/spu.c (ea_load_store_inline): Likewise.
16407 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16408 value of a REG_BR_PROB note.
16409 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16410 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16411 * emit-rtl.c (try_split): Likewise.
16412 * predict.c (br_prob_note_reliable_p): Likewise.
16413 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16414 * reorg.c (mostly_true_jump): Likewise.
16415 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16416 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16417 * config/i386/i386.c (ix86_print_operand): Likewise.
16418 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16419 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16420 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16421 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16422 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16423 * config/sparc/sparc.c (output_cbranch): Likewise.
16424 * config/spu/spu.c (get_branch_target): Likewise.
16425 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16426 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16428 2013-09-23 Jan Hubicka <jh@suse.cz>
16430 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16432 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16433 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16435 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16436 (gimple_fold_call): Dump inconsistent devirtualizations; add
16437 sanity check for type based devirtualizations.
16438 * ipa-prop.c: Include ipa-utils.h
16439 (ipa_intraprocedural_devirtualization): Add sanity check.
16440 (try_make_edge_direct_virtual_call): Likewise.
16442 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16444 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16445 assignment statements.
16447 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16449 * gimple-pretty-print.c (dump_ssaname_info): New function.
16450 (dump_gimple_phi): Call it.
16451 (pp_gimple_stmt_1): Likewise.
16452 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16453 (range_info_def): Declare.
16454 * tree-pretty-print.c (pp_double_int): New function.
16455 (dump_generic_node): Call it.
16456 * tree-pretty-print.h (pp_double_int): Declare.
16457 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16458 * tree-ssanames.h (range_info_def): New structure.
16459 (value_range_type): Move definition here.
16460 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16462 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16464 (set_range_info): New function.
16465 (get_range_info): Likewise.
16466 (duplicate_ssa_name_range_info): Likewise.
16467 (duplicate_ssa_name_fn): Check pointer type and call
16468 duplicate_ssa_name_range_info.
16469 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16470 * tree-vrp.c (value_range_type): Remove definition, now in
16472 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16473 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16474 (SSA_NAME_RANGE_INFO): New macro.
16476 2013-09-23 Richard Biener <rguenther@suse.de>
16478 PR tree-optimization/58464
16479 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16480 (phi_trans_add): Change to add conditionally on being not present.
16481 (phi_translate_1): Remove recursion detection here.
16482 (phi_translate): Pre-seed the cache with NULL to catch
16483 recursion here in a more generic way.
16484 (bitmap_find_leader): Adjust comment.
16485 (get_representative_for): Dump value-numbers.
16486 (create_expression_by_pieces): Likewise.
16487 (insert_into_preds_of_block): Likewise.
16489 2013-09-23 Christian Bruel <christian.bruel@st.com>
16492 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16493 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16495 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16498 2013-09-20 Renlin Li <renlin.li@arm.com>
16500 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16502 (aarch64_expand_epilogue): Likewise.
16503 (aarch64_legitimize_reload_address): Likewise.
16505 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16507 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16508 NULL_TREE before pushing them onto the vector. Likewise for labels.
16510 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16512 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16513 comparison operators when -fno-trapping-math is in effect.
16514 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16515 comparison operators in TFmode and assert that unsupported operators
16517 (ia64_print_operand): Likewise.
16519 2013-09-21 Jan Hubicka <jh@suse.cz>
16521 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16522 (sse_typeless_stores): Enable for core
16523 (sse_load0_by_pxor): Likewise.
16524 (four_jump_limit): Disable for core.
16525 (pad_returns): Likewise.
16526 (avoid_vector_decode): Likewise.
16527 (fuse_cmp_and_branch): Enable for cores.
16528 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16530 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16532 PR middle-end/56791
16533 * config/pa/pa.c (pa_option_override): Disable auto increment and
16534 decrement instructions until reload is completed.
16536 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16537 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16538 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16540 2013-09-20 DJ Delorie <dj@redhat.com>
16541 Nick Clifton <nickc@redhat.com>
16543 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16544 (need_to_save): Save bank 0 on interrupts.
16545 (characterize_address): Strip far address wrappers.
16546 (rl78_as_legitimate_address): Likewise.
16547 (transcode_memory_rtx): Likewise.
16548 (rl78_peep_movhi_p): Disable this peephole after devirt.
16549 (rl78_propogate_register_origins): Forget all origins when a
16551 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16552 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16554 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16555 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16556 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16558 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16560 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16562 * config/pa/pa.md: In "scc" insn patterns, change output template to
16563 handle const0_rtx in reg_or_0_operand operands.
16565 2013-09-20 Martin Husemann <martin@NetBSD.org>
16568 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16569 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16571 2013-09-20 Richard Biener <rguenther@suse.de>
16573 PR middle-end/58484
16574 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16575 remembering SSA name version and block index.
16576 (new_scev_info_str): Adjust.
16577 (hash_scev_info): Likewise. Also hash the block index.
16578 (eq_scev_info): Adjust.
16579 (find_var_scev_info): Likewise.
16580 (struct instantiate_cache_entry): Remove.
16581 (struct instantiate_cache_type): Use a htab to map name, block
16583 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16584 (get_instantiated_value_entry): Likewise.
16585 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16586 (instantiate_scev_name): Adjust.
16588 2013-09-20 Jeff Law <law@redhat.com>
16590 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16592 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16594 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16595 Call aarch64_simd_expand_args to update op[argc].
16597 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16599 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16602 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16604 * gengtype.c (file_rules): Added rule for *.cc files.
16605 (get_output_file_with_visibility): Give fatal message when no
16608 2013-09-20 Renlin Li <renlin.li@arm.com>
16610 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16611 (aarch64_expand_epilogue): Likewise.
16612 (aarch64_legitimize_reload_address): Likewise.
16614 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16616 PR middle-end/57748
16617 * expr.c (expand_assignment): Remove misalignp code path.
16619 2013-09-20 Marek Polacek <polacek@redhat.com>
16622 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16623 TYPE_PRECISION. Add asserts.
16625 2013-09-20 Richard Biener <rguenther@suse.de>
16627 PR tree-optimization/58453
16628 * tree-loop-distribution.c (distribute_loop): Apply the cost
16629 model for -ftree-loop-distribute-patterns, too.
16631 2013-09-20 Richard Biener <rguenther@suse.de>
16633 PR middle-end/58473
16634 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16635 make type comparison less strict.
16637 2013-09-20 Alan Modra <amodra@gmail.com>
16639 * configure: Regenerate.
16640 * aclocal.m4: Regenerate.
16642 2013-09-20 Marek Polacek <polacek@redhat.com>
16645 * doc/extend.texi: Document that attribute used is meant to be used
16646 on variables with static storage duration.
16648 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16650 PR tree-optimization/58472
16651 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16652 simd_lane_access set inv_p = false.
16653 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16654 the simduid magic VAR_DECL.
16656 2013-09-19 Jan Hubicka <jh@suse.cz>
16658 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16660 2013-09-17 Jeff Law <law@redhat.com>
16662 * tree-ssa-dom.c (record_temporary_equivalences): New function
16663 split out of dom_opt_dom_walker::after_dom_children.
16664 (dom_opt_dom_walker::thread_across_edge): Move common code
16665 in here from dom_opt_dom_walker::after_dom_children.
16666 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16668 2013-09-19 Jan Hubicka <jh@suse.cz>
16670 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16671 (TARGET_GENERIC): Use PROCESOR_GENERIC
16672 (enum processor_type): Unify generic32 and 64.
16673 * i386.md (cpu): Likewise.
16674 * x86-tune.def (use_leave): Enable for generic32.
16675 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16676 * athlon.md: Change generic64 to generic in all occurences.
16677 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16678 (ix86_target_macros_internal): Likewise.
16679 * driver-i386.c (host_detect_local_cpu): Likewise.
16680 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16682 (generic_memcpy, generic_memset, generic_cost): This one.
16683 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16684 (m_GENERIC32, m_GENERIC64): Remove.
16685 (m_GENERIC): Turn into one flag.
16686 (processor_target): Unify generic tunnings.
16687 (ix86_option_override_internal): Replace generic32/64 by generic.
16688 (ix86_issue_rate): Likewise.
16689 (ix86_adjust_cost): Likewise.
16691 2013-09-19 Jan Hubicka <jh@suse.cz>
16693 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16694 of speculative flag.
16696 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16698 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16699 GOMP_sections_start, even if !exit_reachable.
16701 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16703 * lra-constraints.c (need_for_all_save_p): Use macro
16704 HARD_REGNO_CALL_PART_CLOBBERED.
16705 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16706 set up pseudo conflict hard regs.
16708 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16711 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16714 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16716 PR rtl-optimization/58438
16717 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16718 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16719 from previous subpasses.
16721 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16723 * arm.c (arm_get_frame_offsets): Validate architecture supports
16724 LDRD/STRD before accepting the tuning preference.
16725 (arm_expand_prologue): Likewise.
16726 (arm_expand_epilogue): Likewise.
16728 2013-09-18 Richard Biener <rguenther@suse.de>
16730 PR tree-optimization/58417
16731 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16732 have chrecs with symbols defined in the loop as operands.
16733 (chrec_fold_multiply): Likewise.
16734 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16735 parameters before folding binary operations.
16736 (struct instantiate_cache_entry_hasher): Remove.
16737 (struct instantiate_cache_type): Use a pointer-map.
16738 (instantiate_cache_type::instantiate_cache_type): New function.
16739 (instantiate_cache_type::get): Likewise.
16740 (instantiate_cache_type::set): Likewise.
16741 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16742 (get_instantiated_value_entry): Likewise.
16743 (global_cache): New global.
16744 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16745 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16746 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16747 (instantiate_scev_name): Adjust.
16748 (instantiate_scev): Construct global instead of local cache.
16749 (resolve_mixers): Likewise.
16751 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16752 Paolo Carlini <paolo.carlini@oracle.com>
16755 * doc/implement-cxx.texi: Fix references to the C++ standards.
16757 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16759 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16760 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16761 simd_lane_access drs, update also DR_ALIGNED_TO.
16763 2013-09-18 Marek Polacek <polacek@redhat.com>
16766 * doc/extend.texi: Document no_sanitize_undefined attribute.
16767 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16768 no_sanitize_undefined attribute.
16770 2013-09-18 Nick Clifton <nickc@redhat.com>
16772 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16773 (ASM_DECLARE_FUNCTION_NAME): Define.
16775 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16777 * compare-elim.c (find_comparison_dom_walker): New class
16778 (find_comparisons_in_bb): Rename to
16779 find_comparison_dom_walker::before_dom_children
16780 (find_comparisons): Adjust
16781 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16783 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16784 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16785 (init_walk_dominator_tree): Remove declaration.
16786 (fini_walk_dominator_tree): Remove declaration.
16787 * fwprop.c (single_def_use_dom_walker): New class
16788 (single_def_use_enter_block): Convert to
16789 single_def_use_dom_walker::before_dom_children.
16790 (single_def_use_leave_block): Convert to
16791 single_def_use_dom_walker::after_dom_children.
16792 (build_single_def_use_links): Adjust.
16793 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16795 (find_candidates_in_block): Convert to
16796 find_candidates_dom_walker::before_dom_children.
16797 (execute_strength_reduction): Adjust.
16798 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16799 (sese_dom_walker): New class.
16800 (sese_dom_walker::sese_dom_walker): New constructor.
16801 (sese_dom_walker::~sese_dom_walker): New destructor.
16802 (build_sese_conditions_before): Convert to
16803 sese_dom_walker::before_dom_children.
16804 (build_sese_conditions_after): Convert to
16805 sese_dom_walker::after_dom_children.
16806 (build_poly_scop): Adjust
16807 * tree-into-ssa.c (rewrite_dom_walker): New class
16808 (rewrite_enter_block): Convert to
16809 rewrite_dom_walker::before_dom_children.
16810 (rewrite_leave_block): Convert to
16811 rewrite_dom_walker::after_dom_children.
16812 (rewrite_update_dom_walker): New class.
16813 (rewrite_update_enter_block): Convert to
16814 rewrite_update_dom_walker::before_dom_children.
16815 (rewrite_update_leave_block): Convert to
16816 rewrite_update_dom_walker::after_dom_children.
16817 (rewrite_blocks, rewrite_into_ssa): Adjust.
16818 (mark_def_dom_walker): New class.
16819 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16820 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16821 (mark_def_sites_blocks): Convert to
16822 mark_def_dom_walker::before_dom_children.
16823 (mark_def_site_blocks): Remove.
16824 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16825 (tree_ssa_dominator_optimize): Adjust.
16826 (dom_thread_across_edge): Convert to method
16827 dom_opt_dom_walker::thread_across_edge.
16828 (dom_opt_enter_block): Convert to member function
16829 dom_opt_dom_walker::before_dom_children.
16830 (dom_opt_leave_block): Convert to member function
16831 dom_opt_dom_walker::after_dom_children.
16832 * tree-ssa-dse.c (dse_dom_walker): New class.
16833 (dse_enter_block): Convert to member function
16834 dse_dom_walker::before_dom_children.
16835 (tree_ssa_dse): Adjust.
16836 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16837 (determine_invariantness_stmt): Convert to method
16838 invariantness_dom_walker::before_dom_children.
16839 (determine_invariantness): Remove
16840 (move_computations_dom_walker): New class.
16841 (move_computations_stmt): Convert to method
16842 move_computations_dom_walker::before_dom_children.
16843 (move_computations, tree_ssa_lim): Adjust.
16844 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16845 (nt_init_block): Convert to method
16846 notrappping_dom_walker::before_dom_children.
16847 (nt_fini_block): Convert to method
16848 method nontrapping_dom_walker::after_dom_children.
16849 (get_non_trapping): Adjust.
16850 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16851 (eliminate_bb): Convert to method
16852 eliminate_dom_walker::before_dom_children.
16853 (eliminate_leave_block): Convert to method
16854 eliminate_dom_walker::after_dom_children.
16855 (eliminate): Adjust.
16856 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16857 (strlen_enter_block): Convert to method
16858 strlen_dom_walker::before_dom_children.
16859 (strlen_leave_block): Convert to method
16860 method strlen_dom_walker::after_dom_children.
16861 (tree_ssa_strlen): Adjust.
16862 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16863 (tree_ssa_uncprop): Adjust.
16864 (uncprop_leave_block): Convert to method
16865 uncprop_dom_walker::after_dom_children.
16866 (uncprop_leave_block): Convert to method
16867 uncprop_dom_walker::before_dom_children.
16869 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16871 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16872 branch in same basic block. Check both src and dest of the move insn.
16874 2013-09-17 Nick Clifton <nickc@redhat.com>
16876 * config/rl78/rl78-real.md (bf): New pattern.
16878 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16879 (rl78_print_operand): Do not put a # before a %B.
16880 * config/rl78/rl78.opt: Tweak doc strings.
16882 2013-09-17 DJ Delorie <dj@redhat.com>
16884 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16885 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16886 (rl78_option_override): Likewise, if -mallregs.
16887 (is_virtual_register): Likewise.
16888 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16889 (REGNO_OK_FOR_BASE_P): Likewise.
16890 * config/rl78/rl78.opt (-mallregs): New.
16892 2013-09-17 Nick Clifton <nickc@redhat.com>
16894 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16895 For interrupt functions: save all call clobbered registers if the
16896 interrupt handler is not a leaf function.
16897 (rl78_expand_prologue): Always recompute the frame information.
16898 For interrupt functions: only select bank 0 if one of the bank 0
16899 registers is going to be psuhed.
16901 2013-09-17 DJ Delorie <dj@redhat.com>
16903 * config/rl78/constraints.md: For each W* constraint, rename to C*
16904 and create a W* constraint that checks for an optional ES: prefix
16906 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16907 (es_addr): New. Used to wrap far addresses.
16908 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16909 (rl78_es_base): New.
16910 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16911 wrapped far addresses.
16912 (rl78_print_operand_1): Unwrap far addresses before processing.
16913 (rl78_lo16): Wrap far addresses in unspecs.
16914 (rl78_es_addr): New.
16915 (rl78_es_base): New.
16916 (insn_ok_now): Check for not-yet-wrapped far addresses.
16917 (transcode_memory_rtx): Properly re-wrap far addresses.
16919 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16921 * config/sparc/t-rtems: Add leon3 multilibs.
16923 2013-09-17 Cong Hou <congh@google.com>
16925 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16926 when checking the dot production pattern. The type of rhs operand
16927 of multiply is now checked correctly.
16929 2013-09-17 Jeff Law <law@redhat.com>
16931 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16932 edge implied equivalences into successor phis.
16933 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16934 here from tree-ssa-threadedge.c.
16935 (mark_threaded_blocks): When threading through a joiner, if both
16936 successors of the joiner's clone reach the same block, verify the
16937 PHI arguments are equal. If not, cancel the jump threading request.
16938 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16939 tree-ssa-threadupdate.c
16940 (thread_across_edge): Don't check PHI argument equality when
16941 threading through joiner block here.
16943 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16945 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16946 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16947 (warn_uninit, warn_uninitialized_vars,
16948 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16949 Move to tree-ssa-uninit.c.
16950 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16951 (has_undefined_value_p): New. Pass dependant parts of
16952 ssa_undefined_value_p.
16953 (uninit_undefined_value_p): Use has_undefined_value_p.
16954 (warn_uninit, warn_uninitialized_vars,
16955 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16956 Move from tree-ssa.c.
16957 * tree-ssa.h: Adjust prototypes.
16959 2013-09-17 Jan Hubicka <jh@suse.cz>
16961 PR middle-end/58332
16962 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16963 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16964 FUNCTION_NOT_OPTIMIZED.
16965 * ipa-inline-analysis.c (compute_inline_parameters): Function
16966 not optimized is not inlinable unless it is alwaysinline.
16967 (inline_analyze_function): Force calls in not optimized
16968 function not inlinable.
16970 2013-09-17 Jan Hubicka <jh@suse.cz>
16972 PR middle-end/58329
16973 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16975 * ipa.c (function_and_variable_visibility): Likewise.
16976 * ipa-profile.c (ipa_profile): Likewise.
16978 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16981 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16982 attribute, and don't inline the resolver in this case.
16984 2013-09-17 Teresa Johnson <tejohnson@google.com>
16986 * coverage.c (get_coverage_counts): Add missing newline.
16988 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16990 PR tree-optimization/58088
16991 * fold-const.c (mask_with_trailing_zeros): New function.
16992 (fold_binary_loc): Make sure we don't recurse infinitely
16993 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16994 Use mask_with_trailing_zeros where appropriate.
16996 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16998 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16999 of 'prev' var to get better distance estimation.
17001 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17003 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17004 * tree-inline.c (is_parameter_of): New predicate.
17005 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17006 a parameter has been remapped.
17007 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17008 (optimize_inline_calls): Initialize transform_parameter.
17009 (copy_gimple_seq_and_replace_locals): Likewise.
17010 (tree_function_versioning): Likewise.
17011 (maybe_inline_call_in_expr): Likewise.
17013 2013-09-17 Nick Clifton <nickc@redhat.com>
17015 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17016 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17017 interrupt handlers.
17018 (is_attr_func): New function.
17019 (msp430_is_interrupt_func): New function.
17020 (is_naked_func): New function.
17021 (is_reentrant_func): New function.
17022 (is_critical_func): New function.
17023 (msp430_start_function): Add annotations for function attributes.
17024 (msp430_attr): New function.
17025 (msp430_attribute_table): New.
17026 (msp430_function_section): New function.
17027 (TARGET_ASM_FUNCTION_SECTION): Define.
17028 (msp430_builtin): New enum.
17029 (msp430_init_builtins): New function.
17030 (msp430_builtin_devl): New function.
17031 (msp430_expand_builtin): New function.
17032 (TARGET_INIT_BUILTINS): Define.
17033 (TARGET_EXPAND_BUILTINS): Define.
17034 (TARGET_BUILTIN_DECL): Define.
17035 (msp430_expand_prologue): Add support for naked, interrupt,
17036 critical and reentrant functions.
17037 (msp430_expand_epilogue): Likewise.
17038 (msp430_print_operand): Handle 'O' character.
17039 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17041 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17042 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17043 (pushm): Use a 'n' rather than an 'i' constraint.
17044 (msp_return): Add generation of the interrupt return instruction.
17045 (disable_interrupts): New pattern.
17046 (enable_interrupts): New pattern.
17047 (push_intr_state): New pattern.
17048 (pop_intr_state): New pattern.
17049 (bic_SR): New pattern.
17050 (bis_SR): New pattern.
17051 * doc/extend.texi: Document MSP430 function attributes and builtin
17054 2013-09-17 Richard Biener <rguenther@suse.de>
17056 PR tree-optimization/58432
17057 * tree-loop-distribution.c (tree_loop_distribution): Also
17058 scan PHIs for outside loop uses and seed a partition from them.
17060 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17062 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17063 (restructure_reference): Call backtrace_base_for_ref.
17065 2013-09-17 Alan Modra <amodra@gmail.com>
17068 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17071 2013-09-16 DJ Delorie <dj@redhat.com>
17073 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17074 vregs location for RL78/G10.
17075 (rl78_expand_prologue): Avoid SEL on G10.
17076 (rl78_expand_epilogue): Likewise.
17077 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17078 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17079 __RL78_G10__ when appropriate.
17080 (ASM_SPEC): Pass -mg10 along to the assembler.
17081 * config/rl78/rl78.md (sel_rb): Disable for G10.
17082 * config/rl78/rl78.opt: Add -mg10 option.
17083 * config/rl78/t-rl78: Add -mg10 multilib.
17085 2013-09-16 Xinliang David Li <davidxl@google.com>
17087 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17088 * omp-low.c (omp_max_vf): Ditto.
17089 (expand_omp_simd): Ditto.
17090 * tree-vectorizer.c (vectorize_loops): Ditto.
17091 (gate_vect_slp): Ditto.
17092 (gate_increase_alignment): Ditto.
17093 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17094 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17095 (gate_tree_vectorize): Name change.
17096 (tree_vectorize): Ditto.
17097 (pass_vectorize::gate): Call new function.
17098 (pass_vectorize::execute): Ditto.
17099 * opts.c: O3 default setting change.
17100 (finish_options): Check new flag.
17101 * doc/invoke.texi: Document new flags.
17102 * common.opt: New flags.
17104 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17106 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17107 (Condition Code): Don't reference it.
17108 * doc/tm.texi: Regenerate.
17110 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17112 PR middle-end/58418
17113 * lra-constraints.c (undo_optional_reloads): Consider all optional
17114 reload even if it did not get a hard reg.
17116 2013-09-16 Teresa Johnson <tejohnson@google.com>
17118 * dumpfile.c (dump_loc): Remove newline emission.
17119 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17120 emission to dump_printf_loc calls where missing.
17121 (vect_mark_for_runtime_alias_test): Ditto.
17122 (vect_analyze_data_ref_dependence): Ditto.
17123 (vect_analyze_data_ref_dependences): Ditto.
17124 (vect_slp_analyze_data_ref_dependence): Ditto.
17125 (vect_slp_analyze_data_ref_dependences): Ditto.
17126 (vect_compute_data_ref_alignment): Ditto.
17127 (vect_update_misalignment_for_peel): Ditto.
17128 (vect_verify_datarefs_alignment): Ditto.
17129 (vector_alignment_reachable_p): Ditto.
17130 (vect_get_data_access_cost): Ditto.
17131 (vect_enhance_data_refs_alignment): Ditto.
17132 (vect_find_same_alignment_drs): Ditto.
17133 (vect_analyze_data_refs_alignment): Ditto.
17134 (vect_analyze_group_access): Ditto.
17135 (vect_analyze_data_ref_access): Ditto.
17136 (vect_analyze_data_ref_accesses): Ditto.
17137 (vect_prune_runtime_alias_test_list): Ditto.
17138 (vect_analyze_data_refs): Ditto.
17139 (vect_create_addr_base_for_vector_ref): Ditto.
17140 (vect_create_data_ref_ptr): Ditto.
17141 (vect_grouped_store_supported): Ditto.
17142 (vect_grouped_load_supported): Ditto.
17143 * value-prof.c (check_counter): Ditto.
17144 (check_ic_target): Ditto.
17145 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17146 (vect_recog_widen_mult_pattern): Ditto.
17147 (vect_recog_widen_sum_pattern): Ditto.
17148 (vect_recog_over_widening_pattern): Ditto.
17149 (vect_recog_widen_shift_pattern): Ditto.
17150 (vect_recog_rotate_pattern): Ditto.
17151 (vect_recog_vector_vector_shift_pattern): Ditto.
17152 (vect_recog_divmod_pattern): Ditto.
17153 (vect_recog_mixed_size_cond_pattern): Ditto.
17154 (vect_recog_bool_pattern): Ditto.
17155 (vect_pattern_recog_1): Ditto.
17156 (vect_pattern_recog): Ditto.
17157 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17158 (vect_is_simple_iv_evolution): Ditto.
17159 (vect_analyze_scalar_cycles_1): Ditto.
17160 (vect_get_loop_niters): Ditto.
17161 (vect_analyze_loop_1): Ditto.
17162 (vect_analyze_loop_form): Ditto.
17163 (vect_analyze_loop_operations): Ditto.
17164 (vect_analyze_loop_2): Ditto.
17165 (vect_analyze_loop): Ditto.
17166 (report_vect_op): Ditto.
17167 (vect_is_slp_reduction): Ditto.
17168 (vect_is_simple_reduction_1): Ditto.
17169 (vect_get_known_peeling_cost): Ditto.
17170 (vect_estimate_min_profitable_iters): Ditto.
17171 (vect_model_reduction_cost): Ditto.
17172 (vect_model_induction_cost): Ditto.
17173 (get_initial_def_for_induction): Ditto.
17174 (vect_create_epilog_for_reduction): Ditto.
17175 (vectorizable_reduction): Ditto.
17176 (vectorizable_induction): Ditto.
17177 (vectorizable_live_operation): Ditto.
17178 (vect_loop_kill_debug_uses): Ditto.
17179 (vect_transform_loop): Ditto.
17180 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17181 (vect_stmt_relevant_p): Ditto.
17182 (process_use): Ditto.
17183 (vect_mark_stmts_to_be_vectorized): Ditto.
17184 (vect_model_simple_cost): Ditto.
17185 (vect_model_promotion_demotion_cost): Ditto.
17186 (vect_model_store_cost): Ditto.
17187 (vect_get_store_cost): Ditto.
17188 (vect_model_load_cost): Ditto.
17189 (vect_get_load_cost): Ditto.
17190 (vect_init_vector_1): Ditto.
17191 (vect_get_vec_def_for_operand): Ditto.
17192 (vect_finish_stmt_generation): Ditto.
17193 (vectorizable_call): Ditto.
17194 (vectorizable_conversion): Ditto.
17195 (vectorizable_assignment): Ditto.
17196 (vectorizable_shift): Ditto.
17197 (vectorizable_operation): Ditto.
17198 (vectorizable_store): Ditto.
17199 (vectorizable_load): Ditto.
17200 (vectorizable_condition): Ditto.
17201 (vect_analyze_stmt): Ditto.
17202 (vect_transform_stmt): Ditto.
17203 (vect_is_simple_use): Ditto.
17204 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17205 (vect_can_advance_ivs_p): Ditto.
17206 (vect_update_ivs_after_vectorizer): Ditto.
17207 (vect_do_peeling_for_loop_bound): Ditto.
17208 (vect_gen_niters_for_prolog_loop): Ditto.
17209 (vect_update_inits_of_drs): Ditto.
17210 (vect_create_cond_for_alias_checks): Ditto.
17211 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17212 (vect_build_slp_tree_1): Ditto.
17213 (vect_supported_load_permutation_p): Ditto.
17214 (vect_analyze_slp_instance): Ditto.
17215 (vect_analyze_slp): Ditto.
17216 (vect_make_slp_decision): Ditto.
17217 (vect_detect_hybrid_slp): Ditto.
17218 (vect_bb_vectorization_profitable_p): Ditto.
17219 (vect_slp_analyze_bb_1): Ditto.
17220 (vect_update_slp_costs_according_to_vf): Ditto.
17221 (vect_get_mask_element): Ditto.
17222 (vect_transform_slp_perm_load): Ditto.
17223 (vect_schedule_slp_instance): Ditto.
17224 (vect_schedule_slp): Ditto.
17225 (vect_slp_transform_bb): Ditto.
17226 * profile.c (read_profile_edge_counts): Ditto.
17227 (compute_branch_probabilities): Ditto.
17228 * coverage.c (get_coverage_counts): Ditto.
17230 2013-09-16 Diego Novillo <dnovillo@google.com>
17232 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17234 2013-09-16 Jan Hubicka <jh@suse.cz>
17236 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17237 abstract functions; for static functions check the presence of body.
17239 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17241 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17242 * config/aarch64/aarch64-simd.md
17243 (aarch64_mla_elt<mode>): New.
17244 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17245 (aarch64_mls_elt<mode>): Likewise.
17246 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17247 (aarch64_fma4_elt<mode>): Likewise.
17248 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17249 (aarch64_fma4_elt_to_128v2df): Likewise.
17250 (aarch64_fma4_elt_to_64df): Likewise.
17251 (fnma<mode>4): Likewise.
17252 (aarch64_fnma4_elt<mode>): Likewise.
17253 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17254 (aarch64_fnma4_elt_to_128v2df): Likewise.
17255 (aarch64_fnma4_elt_to_64df): Likewise.
17256 * config/aarch64/iterators.md (VDQSF): New.
17257 * config/aarch64/arm_neon.h
17258 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17259 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17261 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17263 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17264 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17265 (aarch64_mul3_elt_to_128df): Likewise.
17266 (aarch64_mul3_elt_to_64v2df): Likewise.
17267 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17269 (VMUL_CHANGE_NLANES) Likewise.
17272 * config/aarch64/arm_neon.h
17273 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17275 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17277 * config/aarch64/arm_neon.h
17278 (vcvtx_high_f32_f64): Fix parameters.
17280 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17281 Uros Bizjak <ubizjak@gmail.com>
17283 * config/alpha.c: Include tree-ssanames.h.
17285 2013-09-16 Richard Biener <rguenther@suse.de>
17287 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17288 (dot_rdg_1): Handle control_dd.
17289 (create_edge_for_control_dependence): New function.
17290 (create_rdg_edges): Add control dependences if asked for.
17291 (build_rdg): Likewise.
17292 (generate_loops_for_partition): If there are not necessary
17293 control stmts remove all their dependencies.
17294 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17295 (distribute_loop): Pass on control dependences.
17296 (tree_loop_distribution): Compute control dependences and remove
17297 restriction on number of loop nodes.
17299 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17301 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17302 for internal calls.
17304 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17306 * cse.c (try_const_anchors): Punt on CC modes.
17308 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17310 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17312 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17315 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17316 calls to word_mode.
17318 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17321 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17323 (darwin_objc1_section): Likewise.
17324 (darwin_file_end): Emit Image Info section when required.
17326 2013-09-14 Jan Hubicka <jh@suse.cz>
17328 * tree-into-ssa.c (gate_into_ssa): New.
17329 (pass_data_build_ssa): Use it.
17330 * cgraph.h (expand_thunk): Update prototype.
17331 * cgraphunit.c (analyze_function): Expand thunks early.
17332 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17333 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17334 set lowered flag; do not add new function.
17335 (assemble_thunks_and_aliases): Update.
17336 * tree-ssa.c (gate_init_datastructures): New gate.
17337 (pass_data_init_datastructures): Use it.
17339 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17342 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17343 xmm register set described in the psABI.
17345 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17347 * dwarf2out.c (should_emit_struct_debug): Add check
17348 for type_decl variable is not NULL.
17350 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17352 * config.gcc: Use new winnt-c.c target hooks
17353 * config/t-winnt: New file
17354 * config/winnt-c.c: New file
17355 * doc/tm.texi.in: Document new hook
17356 * doc/tm.texi: Regenerated
17358 2013-09-13 Jan Hubicka <jh@suse.cz>
17360 PR middle-end/58094
17361 * ipa-inline.c (check_callers): New function.
17362 (check_caller_edge): Remove.
17363 (want_inline_function_to_all_callers_p): Also permit alises that are
17365 (inline_to_all_callers): Terminate the walk when devirtualization
17366 introduce new calls.
17368 2013-09-13 Jan Hubicka <jh@suse.cz>
17370 * ipa-inline-analysis.c (struct growth_data): Add node.
17371 (do_estimate_growth_1): Fix detection of recursion.
17373 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17375 PR tree-optimization/58392
17376 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17377 to avoid shadowing of outer loop variable. If
17378 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17379 replace_by_duplicate_decl simduid of loops that have it set and
17380 set dest_cfun->has_simduid_loops and/or
17381 dest_cfun->has_force_vect_loops.
17382 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17383 instead of maybe_lookup_decl.
17384 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17385 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17386 call. Copy over force_vect and copy and remap simduid. Set
17387 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17388 (copy_cfg_body): Remove blocks_to_copy argument. Use
17389 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17390 caller. Don't set cfun->has_simduid_loops and/or
17391 cfun->has_force_vect_loops here.
17392 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17394 (expand_call_inline, tree_function_versioning): Adjust copy_body
17397 2013-09-13 Martin Jambor <mjambor@suse.cz>
17400 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17401 the assert if the edge was a speculative one.
17403 2013-09-13 Richard Biener <rguenther@suse.de>
17405 * tree-data-ref.h (known_dependences_p): Move here ...
17406 * tree-loop-distribution.c (known_dependences_p): ... from here.
17407 (dump_rdg_component, debug_rdg_component): Remove.
17408 (dump_rdg): Adjust.
17409 (generate_loops_for_partition): Use gimple_uid instead of
17410 relying on matching stmt visit order.
17411 (rdg_build_partitions): Take starting stmt vector.
17412 (ldist_gen): Merge into ...
17413 (distribute_loop): ... this function. Do not compute starting
17415 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17417 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17419 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17420 Set type attribute correctly. Set predicable_short_it attribute.
17421 (cmpsi_shiftsi): Remove %? from output template.
17423 2013-09-13 Richard Biener <rguenther@suse.de>
17425 * tree-loop-distribution.c (struct rdg_component,
17426 rdg_defs_used_in_other_loops_p, free_rdg_components,
17427 rdg_build_components): Remove.
17428 (stmts_from_loop): Do not record virtual PHIs.
17429 (generate_loops_for_partition): Skip virtual PHIs.
17430 (build_rdg_partition_for_component): Rename to ...
17431 (build_rdg_partition_for_vertex): ... this and adjust.
17432 (rdg_build_partitions): Take a vector of starting vertices
17433 instead of components. Remove unnecessary leftover handling.
17434 (ldist_gen): Do not build components or record other stores.
17435 (distribute_loop): Do not distribute loops containing stmts
17438 2013-09-13 Christian Bruel <christian.bruel@st.com>
17441 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17443 2013-09-13 Kai Tietz <ktietz@redhat.com>
17445 * config.gcc: Separate cases for mingw and cygwin targets,
17446 and add 64-bit cygwin target case.
17448 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17449 dll-export inline-functions.
17450 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17452 2013-09-13 Jeff Law <law@redhat.com>
17454 PR middle-end/58387
17456 2013-09-06 Jeff Law <law@redhat.com>
17458 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17459 edge implied equivalences into successor phis.
17461 2013-09-12 DJ Delorie <dj@redhat.com>
17463 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17466 2013-09-12 Brooks Moses <bmoses@google.com>
17469 * Makefile.in: Do not install driver binaries in $(target)/bin.
17471 2013-09-12 DJ Delorie <dj@redhat.com>
17473 * config/rl78/rl78.opt (mrelax): New.
17474 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17475 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17477 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17479 (rl78_expand_epilogue): Likewise.
17481 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17483 PR middle-end/58335
17484 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17485 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17486 pointer elimination with using remove_reg_equal_offset_note.
17488 2013-09-12 DJ Delorie <dj@redhat.com>
17490 * config/msp430/: New port.
17491 * config.gcc (msp430): Added.
17492 * doc/invoke.texi: Document MSP430 options.
17493 * doc/install.texi: Document msp430-elf
17494 * doc/md.texi: Document msp430-elf
17495 * doc/contrib.texi: Document msp430-elf
17497 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17500 2013-09-12 Martin Jambor <mjambor@suse.cz>
17503 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17504 reference descriptor is NULL.
17505 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17508 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17510 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17511 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17512 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17513 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17514 make_temp_ssa_name): move to tree-ssanames.h
17515 * tree-ssa-alias.h: Move prototype.
17516 * tree-ssa.h: Include tree-ssanames.h.
17517 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17518 * tree-ssanames.h: New. Move items from tree-flow*.h
17519 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17521 2013-09-12 Richard Biener <rguenther@suse.de>
17523 PR tree-optimization/58404
17524 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17525 propagate non-invariant addresses into dereferences wrapped
17526 in component references.
17528 2013-09-12 Richard Biener <rguenther@suse.de>
17530 PR tree-optimization/58402
17531 * passes.def: Move pass_late_warn_uninitialized later.
17533 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17535 * tree-ssa.h: New. Move content from tree-flow.h and
17536 tree-flow-inline.h.
17537 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17538 Move prototypes belonging to tree-ssa.c.
17539 * tree-flow-inline.h (redirect_edge_var_map_def,
17540 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17542 * gimple.h: Adjust prototypes.
17543 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17545 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17546 * tree.h: Move prototype to tree-ssa.h.
17547 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17548 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17549 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17550 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17551 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17552 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17553 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17554 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17555 graphite-blocking.c, graphite-clast-to-gimple.c,
17556 graphite-dependences.c, graphite-interchange.c,
17557 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17558 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17559 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17560 ipa-reference.c, ipa-split.c, ipa-utils.c,
17561 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17562 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17563 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17564 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17565 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17566 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17567 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17568 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17569 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17570 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17571 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17572 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17573 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17574 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17575 value-prof.c, var-tracking.c,
17576 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17578 2013-09-12 Richard Biener <rguenther@suse.de>
17580 PR tree-optimization/58396
17581 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17582 (build_rdg): Take a loop-nest parameter, fix memleaks.
17583 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17585 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17587 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17590 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17592 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17593 The FMA instruction names should have a 'v' prefix.
17595 2013-09-12 Richard Biener <rguenther@suse.de>
17597 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17598 (dot_rdg): Use popen instead of system in optional code.
17599 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17600 (already_processed_vertex_p): Adjust.
17601 (has_anti_or_output_dependence, predecessor_has_mem_write,
17602 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17603 rdg_flag_uses): Remove.
17604 (rdg_flag_vertex): Simplify.
17605 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17607 (build_rdg_partition_for_component): Process the first vertex
17608 of a component only.
17609 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17611 2013-09-12 Alan Modra <amodra@gmail.com>
17613 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17615 2013-09-11 DJ Delorie <dj@redhat.com>
17616 Nick Clifton <nickc@redhat.com>
17618 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17619 (rl78_stack_based_mem): New.
17620 * config/rl78/constraints.md (Iv08): New.
17629 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17631 (movsi): Change from expand to insn-and-split.
17632 (ashrsi3): Clobber AX.
17636 * config/rl78/rl78.md (CC_REG): Fix.
17637 (addsi3): Allow memory and immediate operands.
17638 (addsi3_internal): Split into...
17639 (addsi3_internal_virt): ...new, and ...
17640 (addsi3_internal_real): ...new.
17642 (subsi3_internal_virt): New.
17643 (subsi3_internal_real): New.
17644 (mulsi3): Add memory operand.
17645 (mulsi3_rl78): Likewise.
17646 (mulsi3_g13): Likewise.
17647 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17648 (cbranchqi4_real): Add more constraint options.
17649 (cbranchhi4_real): Expand pattern.
17650 (cbranchhi4_real_signed): New.
17651 (cbranchhi4_real_inverted): New.
17652 (cbranchsi4_real_lt): New.
17653 (cbranchsi4_real_ge): New.
17654 (cbranchsi4_real_signed): New.
17655 (cbranchsi4_real): New.
17657 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17659 (lshrsi3_virt): Likewise.
17660 (ashlsi3_virt): Likewise.
17661 (cbranchqi4_virt_signed): New.
17662 (cbranchhi4_virt_signed): New.
17663 (cbranchsi4_virt): New.
17664 * config/rl78/rl78.c: Whitespace fixes throughout.
17665 (move_elim_pass): New.
17666 (pass_data_rl78_move_elim): New.
17667 (pass_rl78_move_elim): New.
17668 (make_pass_rl78_move_elim): New.
17669 (rl78_devirt_info): Run devirt earlier.
17670 (rl78_move_elim_info): New.
17671 (rl78_asm_file_start): Register it.
17672 (rl78_split_movsi): New.
17673 (rl78_as_legitimate_address): Allow virtual base registers when
17675 (rl78_addr_space_convert): Remove spurious debug stuff.
17676 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17677 (rl78_print_operand): More cases for not printing '#'.
17678 (rl78_expand_compare): Remove most of the logic.
17679 (content_memory): New.
17680 (clear_content_memory): New.
17681 (get_content_index): New.
17682 (get_content_name): New.
17683 (display_content_memory): New.
17684 (update_content): New.
17685 (record_content): New.
17686 (already_contains): New.
17687 (insn_ok_now): Re-recog insns with virtual registers.
17688 (add_postponed_content_update): New.
17689 (process_postponed_content_update): New.
17690 (gen_and_emit_move): New.
17691 (transcode_memory_rtx): Record new location content.
17692 Use gen_and_emit_move.
17693 (force_into_acc): New.
17694 (move_to_acc): Use gen_and_emit_move.
17695 (move_from_acc): Likewise.
17696 (move_acc_to_reg): Likewise.
17697 (move_to_x): Likewise.
17698 (move_to_hl): Likewise.
17699 (move_to_de): Likewise.
17700 (rl78_alloc_physical_registers_op1): Record location content.
17701 (has_constraint): New.
17702 (rl78_alloc_physical_registers_op2): Record location content.
17703 Optimize use of HL.
17704 (rl78_alloc_physical_registers_ro1): Likewise.
17705 (rl78_alloc_physical_registers_cmp): Likewise.
17706 (rl78_alloc_physical_registers_umul): Likewise.
17707 (rl78_alloc_address_registers_macax): New.
17708 (rl78_alloc_physical_registers): Initialize and set location
17709 content memory as needed.
17710 (rl78_reorg): Make sure split2 is called.
17711 (rl78_rtx_costs): New.
17713 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17715 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17716 for (not (neg ...)) and (neg (not ...)) cases.
17718 2013-09-11 Richard Biener <rguenther@suse.de>
17720 PR middle-end/58377
17721 * passes.def: Split critical edges before late uninit warning passes.
17722 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17724 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17726 PR tree-optimization/58385
17727 * fold-const.c (build_range_check): If both low and high are NULL,
17728 use omit_one_operand_loc to preserve exp side-effects.
17730 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17732 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17734 2013-09-11 Richard Biener <rguenther@suse.de>
17736 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17737 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17738 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17739 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17740 stmts_from_loop, known_dependences_p, build_empty_rdg,
17741 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17742 * tree-loop-distribution.c: ... here.
17743 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17744 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17745 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17746 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17747 * tree-loop-distribution.c: ... here.
17748 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17749 (struct partition_s): Add loops member.
17750 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17751 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17752 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17754 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17755 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17756 Sergey Lega <sergey.s.lega@intel.com>
17757 Anna Tikhonova <anna.tikhonova@intel.com>
17758 Ilya Tocar <ilya.tocar@intel.com>
17759 Andrey Turetskiy <andrey.turetskiy@intel.com>
17760 Ilya Verbin <ilya.verbin@intel.com>
17761 Kirill Yukhin <kirill.yukhin@intel.com>
17762 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17764 * config/i386/constraints.md (k): New.
17766 * config/i386/i386.c (const regclass_map): Add new mask registers.
17767 (dbx_register_map): Ditto.
17768 (dbx64_register_map): Ditto.
17769 (svr4_dbx_register_map): Ditto.
17770 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17772 (ix86_preferred_reload_class): Disable constants for mask registers.
17773 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17774 (ix86_hard_regno_mode_ok): Support new mask registers.
17775 (x86_order_regs_for_local_alloc): Ditto.
17776 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17777 (FIXED_REGISTERS): Add new mask registers.
17778 (CALL_USED_REGISTERS): Ditto.
17779 (REG_ALLOC_ORDER): Ditto.
17780 (VALID_MASK_REG_MODE): New.
17781 (FIRST_MASK_REG): Ditto.
17782 (LAST_MASK_REG): Ditto.
17783 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17784 (MAYBE_MASK_CLASS_P): New.
17785 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17786 (REG_CLASS_CONTENTS): Ditto.
17787 (MASK_REGNO_P): New.
17788 (ANY_MASK_REG_P): Ditto.
17789 (HI_REGISTER_NAMES): Add new mask registers.
17790 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17791 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17793 (attribute "type"): Add mskmov, msklog.
17794 (attribute "length_immediate"): Support them.
17795 (attribute "memory"): Ditto.
17796 (attribute "prefix_0f"): Ditto.
17797 (*movhi_internal): Support new mask registers.
17798 (*movqi_internal): Ditto.
17799 (define_split): Split out clobber pattern is a logic
17800 insn on mask registers.
17801 (*k<logic><mode>): New.
17802 (*andhi_1): Extend to support mask regs.
17803 (*andqi_1): Extend to support mask regs.
17804 (kandn<mode>): New.
17805 (define_split): Split and-not to and and not if operands
17807 (*<code><mode>_1): Separate HI mode to new pattern...
17808 (*<code>hi_1): This.
17809 (*<code>qi_1): Extend to support mask regs.
17810 (kxnor<mode>): New.
17811 (kortestzhi): Ditto.
17812 (kortestchi): Ditto.
17814 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17815 (*one_cmplhi2_1): ...Here, now with mask registers support.
17816 (*one_cmplqi2_1): Support new mask registers.
17817 (HI/QImode arithmetics splitter): Don't split if mask registers
17819 (HI/QImode not splitter): Ditto.
17820 * config/i386/predicated.md (mask_reg_operand): New.
17821 (general_reg_operand): Ditto.
17823 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17825 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17826 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17828 2013-09-10 Jeff Law <law@redhat.com>
17830 PR tree-optimization/58380
17831 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17832 of threading through a buried loop header.
17834 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17835 return value for single successor case.
17837 2013-09-10 Jan Hubicka <jh@suse.cz>
17839 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17841 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17844 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17845 support conditional execution.
17846 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17848 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17850 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17852 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17853 Check destination too to check move insn.
17854 (undo_optional_reloads): Add check that the original peudo did not
17855 changed its allocation and the optional reload was inherited on last
17856 inheritance pass. Break loop after deciding to keep optional reload.
17857 (lra_undo_inheritance): Add check that inherited pseudo still in
17860 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17862 * config/aarch64/aarch64.md (generic_sched): New.
17863 * config/aarch64/aarch64-generic.md (load): Make conditional
17864 on generic_sched attribute.
17865 (nonload): Likewise.
17867 2013-09-10 Jan Hubicka <jh@suse.cz>
17869 * lto-cgraph.c: Include ipa-utils.h.
17870 (compute_ltrans_boundary): Also add possible targets into the boundary.
17872 2013-09-10 Jan Hubicka <jh@suse.cz>
17874 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17875 VAR_DECL of vtable rather than full expression.
17877 2013-09-10 Jan Hubicka <jh@suse.cz>
17878 Paolo Carlini <paolo.carlini@oracle.com>
17880 * cgraphunit.c (analyze_functions): Save input_location, set it
17881 to UNKNOWN_LOCATION and restore it at the end.
17883 2013-09-10 Martin Jambor <mjambor@suse.cz>
17885 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17886 represented by a thunk.
17888 2013-09-10 Jeff Law <law@redhat.com>
17890 PR tree-optimization/58343
17891 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17892 jump threading requests through loop headers buried in the middle
17893 of a jump threading path.
17895 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17896 in return value/type.
17898 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17900 PR rtl-optimization/58365
17901 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17902 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17905 2013-09-10 Richard Biener <rguenther@suse.de>
17907 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17908 * tree-data-ref.c (create_rdg_vertices): Collect all data
17909 references, signal failure to the caller, use data-ref API.
17910 (build_rdg): Compute data references only once. Maintain lifetime
17911 of data references and data dependences from within RDG.
17912 (free_rdg): Free dependence relations.
17913 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17914 inventing extra dependences.
17915 (distribute_loop): Update for RDG API changes.
17917 2013-09-10 Kai Tietz <ktietz@redhat.com>
17919 * doc/invoke.texi (fms-extensions): Document changed
17920 behavior for ms-abi targets.
17921 * config/i386/i386.c (ix86_option_override_internal):
17922 Set default value of option -fms-extension for ms-abi targets.
17924 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17926 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17928 2013-09-10 Alan Modra <amodra@gmail.com>
17931 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17933 2013-09-10 Alan Modra <amodra@gmail.com>
17935 * config/rs6000/predicates.md (add_cint_operand): New.
17936 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17937 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17938 using add_cint_operand.
17939 (largetoc_high_plus_aix): Likewise.
17941 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17943 PR tree-optimization/58364
17944 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17945 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17946 the current range can't be an unconditional true or false.
17948 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17950 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17952 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17954 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17956 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17959 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17961 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17963 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17964 NO_REGS for immediate that can't be moved directly into FP_REGS.
17966 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17968 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17969 comparison with negated operand.
17970 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17973 2013-09-09 Richard Biener <rguenther@suse.de>
17975 PR middle-end/58326
17976 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17977 of a subloop record all its block as affecting loop-closed SSA form.
17979 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17981 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17982 of an rtx/bitpos pair.
17983 (store_fixed_bit_field): Update accordingly.
17985 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17987 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17989 * builtins.c (expand_errno_check): Likewise.
17990 * dwarf2cfi.c (init_return_column_size): Likewise.
17991 * except.c (sjlj_mark_call_sites): Likewise.
17992 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17993 * lra-constraints.c (emit_inc): Likewise.
17994 * ree.c (combine_set_extension): Likewise.
17995 * regmove.c (fixup_match_2): Likewise.
17996 * reload1.c (inc_for_reload): Likewise.
17998 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18000 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18001 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18002 Use gen_int_mode with the mode of the associated simplify_* call.
18003 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18004 * expmed.c (expand_shift_1): Likewise.
18005 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18006 * loop-iv.c (iv_number_of_iterations): Likewise.
18007 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18008 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18010 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18012 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18013 of the associated expand_* call.
18014 (asan_emit_stack_protection): Likewise.
18015 * builtins.c (round_trampoline_addr): Likewise.
18016 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18017 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18018 (emit_store_flag): Likewise.
18019 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18020 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18022 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18023 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18024 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18025 * modulo-sched.c (generate_prolog_epilog): Likewise.
18026 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18027 (expand_ctz, expand_ffs, expand_unop): Likewise.
18029 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18031 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18032 of the associated gen_rtx_* call.
18033 * caller-save.c (init_caller_save): Likewise.
18034 * combine.c (find_split_point, make_extraction): Likewise.
18035 (make_compound_operation): Likewise.
18036 * dwarf2out.c (mem_loc_descriptor): Likewise.
18037 * explow.c (plus_constant, probe_stack_range): Likewise.
18038 * expmed.c (expand_mult_const): Likewise.
18039 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18040 * reload1.c (init_reload): Likewise.
18041 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18042 * var-tracking.c (adjust_mems): Likewise.
18043 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18044 rather than gen_rtx_fmt_ee.
18046 2013-09-09 Jan Hubicka <jh@suse.cz>
18048 PR middle-end/58294
18049 * value-prof.c (gimple_ic): Copy also abnormal edges.
18051 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18053 * asan.c (asan_shadow_cst): Use gen_int_mode.
18055 2013-09-08 Jan Hubicka <jh@suse.cz>
18057 * ipa-profile.c: Add toplevel comment.
18058 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18059 (contains_hot_call_p): New function.
18060 (ipa_propagate_frequency): Set frequencies based on counts when
18062 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18063 profile; do not tamper with profile after inlining if it is read.
18065 2013-09-08 Jan Hubicka <jh@suse.cz>
18067 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18070 2013-09-08 Jan Hubicka <jh@suse.cz>
18072 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18073 summary generation.
18075 2013-09-08 Jeff Law <law@redhat.com>
18078 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18081 2013-09-08 Andi Kleen <ak@linux.intel.com>
18083 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18085 2013-09-08 Jan Hubicka <jh@suse.cz>
18087 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18089 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18091 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18092 for non-debug insns.
18093 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18094 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18095 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18098 2013-09-08 Jan Hubicka <jh@suse.cz>
18100 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18101 targets and devirtualize to BUILT_IN_UNREACHABLE.
18102 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18103 * ipa.c (walk_polymorphic_call_targets): New function.
18104 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18105 functions; use the new timevar.
18106 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18107 was removed from the program.
18108 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18109 not consider it in the walk when its vtable is dead.
18110 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18112 (devirt_variable_node_removal_hook): New function.
18113 (possible_polymorphic_call_targets): Also register
18114 devirt_variable_node_removal_hook.
18115 (ipa_devirt): Do not do non-speculative devirtualization.
18116 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18118 2013-09-08 Jan Hubicka <jh@suse.cz>
18120 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18121 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18122 varpool_remove_variable_insertion_hook): Declare.
18123 * varpool.c (varpool_node_hook_list): New structure.
18124 (first_varpool_node_removal_hook,
18125 first_varpool_variable_insertion_hook): New variables.
18126 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18127 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18128 varpool_remove_variable_insertion_hook,
18129 varpool_call_variable_insertion_hooks): New functions.
18130 (varpool_remove_node): Use it.
18132 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18135 * diagnostic.c (diagnostic_build_prefix): When s.file is
18136 "<built-in>" don't output line and column numbers.
18138 2013-09-06 Jan Hubicka <jh@suse.cz>
18140 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18141 * lto-streamer-out.c: Stream thunks, too.
18142 * lto-streamer-in.c (input_function): Pop cfun here
18143 (lto_read_body): Instead of here.
18145 2013-09-06 Caroline Tice <cmtice@google.com>
18147 * doc/install.texi: Add documentation for the --enable-vtable-verify
18148 and the --disable-libvtv configure options.
18150 2013-09-06 Jeff Law <law@redhat.com>
18152 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18153 edge implied equivalences into successor phis.
18155 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18157 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18159 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18161 * resource.c (mark_target_live_regs): Compute resources taking
18162 into account if a call is predicated or not.
18164 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18166 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18167 the compiler in the function names.
18169 2013-09-06 Jan Hubicka <jh@suse.cz>
18171 PR middle-end/58094
18172 * ipa-inline.c (has_caller_p): New function.
18173 (want_inline_function_to_all_callers_p): Use it.
18174 (sum_callers, inline_to_all_callers): Break out from ...
18175 (ipa_inline): ... here.
18177 2013-09-06 Jan Hubicka <jh@suse.cz>
18179 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18180 only when AVX is enabled.
18182 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18184 * config/aarch64/aarch64.md
18185 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18186 is fpsimd_<load/store>2.
18187 (load_pair<mode>): Likewise.
18188 (store_pair<mode>): Likewise.
18190 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18192 * config/arm/types.md (type): Add "mrs" type.
18193 * config/aarch64/aarch64.md
18194 (aarch64_load_tp_hard): Make type "mrs".
18195 * config/arm/arm.md
18196 (load_tp_hard): Make type "mrs".
18197 * config/arm/cortex-a15.md: Update with new attributes.
18198 * config/arm/cortex-a5.md: Update with new attributes.
18199 * config/arm/cortex-a53.md: Update with new attributes.
18200 * config/arm/cortex-a7.md: Update with new attributes.
18201 * config/arm/cortex-a8.md: Update with new attributes.
18202 * config/arm/cortex-a9.md: Update with new attributes.
18203 * config/arm/cortex-m4.md: Update with new attributes.
18204 * config/arm/cortex-r4.md: Update with new attributes.
18205 * config/arm/fa526.md: Update with new attributes.
18206 * config/arm/fa606te.md: Update with new attributes.
18207 * config/arm/fa626te.md: Update with new attributes.
18208 * config/arm/fa726te.md: Update with new attributes.
18210 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18212 * config/aarch64/aarch64.md
18213 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18214 (*movtf_aarch64): Likewise.
18215 * config/arm/arm.md
18216 (thumb1_movdi_insn): Use "multiple" for type where more than one
18217 instruction is used for a move.
18218 (*arm32_movhf): Likewise.
18219 (*thumb_movdf_insn): Likewise.
18221 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18223 * config/arm/types.md (type): Rename fcpys to fmov.
18224 * config/arm/vfp.md
18225 (*arm_movsi_vfp): Rename type fcpys as fmov.
18226 (*thumb2_movsi_vfp): Likewise
18227 (*movhf_vfp_neon): Likewise
18228 (*movhf_vfp): Likewise
18229 (*movsf_vfp): Likewise
18230 (*thumb2_movsf_vfp): Likewise
18231 (*movsfcc_vfp): Likewise
18232 (*thumb2_movsfcc_vfp): Likewise
18233 * config/aarch64/aarch64-simd.md
18234 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18235 * config/aarch64/aarch64.md
18236 (*movsi_aarch64): Replace type mov_reg with fmovs.
18237 (*movdi_aarch64): Likewise
18238 (*movsf_aarch64): Likewise
18239 (*movdf_aarch64): Likewise
18241 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18242 * config/arm/iwmmxt.md
18243 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18244 * config/arm/arm1020e.md: Update with new attributes.
18245 * config/arm/cortex-a15-neon.md: Update with new attributes.
18246 * config/arm/cortex-a5.md: Update with new attributes.
18247 * config/arm/cortex-a53.md: Update with new attributes.
18248 * config/arm/cortex-a7.md: Update with new attributes.
18249 * config/arm/cortex-a8-neon.md: Update with new attributes.
18250 * config/arm/cortex-a9.md: Update with new attributes.
18251 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18252 * config/arm/cortex-r4f.md: Update with new attributes.
18253 * config/arm/marvell-pj4.md: Update with new attributes.
18254 * config/arm/vfp11.md: Update with new attributes.
18256 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18258 * config/aarch64/aarch64.md
18259 (*madd<mode>): Fix type attribute.
18260 (*maddsi_uxtw): Likewise.
18261 (*msub<mode>): Likewise.
18262 (*msubsi_uxtw): Likewise.
18263 (<su_optab>maddsidi4): Likewise.
18264 (<su_optab>msubsidi4): Likewise.
18266 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18268 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18269 * config/arm/arm.md (core_cycles): Remove fdiv.
18270 * config/arm/vfp.md:
18271 (*sqrtsf2_vfp): Update for attribute changes.
18272 (*sqrtdf2_vfp): Likewise.
18273 * config/aarch64/aarch64.md:
18274 (sqrt<mode>2): Update for attribute changes.
18275 * config/arm/arm1020e.md: Update with new attributes.
18276 * config/arm/cortex-a15-neon.md: Update with new attributes.
18277 * config/arm/cortex-a5.md: Update with new attributes.
18278 * config/arm/cortex-a53.md: Update with new attributes.
18279 * config/arm/cortex-a7.md: Update with new attributes.
18280 * config/arm/cortex-a8-neon.md: Update with new attributes.
18281 * config/arm/cortex-a9.md: Update with new attributes.
18282 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18283 * config/arm/cortex-r4f.md: Update with new attributes.
18284 * config/arm/marvell-pj4.md: Update with new attributes.
18285 * config/arm/vfp11.md: Update with new attributes.
18287 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18289 * config/arm/types.md
18290 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18291 * config/aarch64/aarch64.md
18292 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18294 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18295 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18296 (float<GPI:mode><GPF:mode>2): Likewise.
18297 * config/arm/vfp.md
18298 (*truncsisf2_vfp): Update with new attributes.
18299 (*truncsidf2_vfp): Likewise.
18300 (fixuns_truncsfsi2): Likewise.
18301 (fixuns_truncdfsi2): Likewise.
18302 (*floatsisf2_vfp): Likewise.
18303 (*floatsidf2_vfp): Likewise.
18304 (floatunssisf2): Likewise.
18305 (floatunssidf2): Likewise.
18306 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18307 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18308 * config/arm/arm1020e.md: Update with new attributes.
18309 * config/arm/cortex-a15-neon.md: Update with new attributes.
18310 * config/arm/cortex-a5.md: Update with new attributes.
18311 * config/arm/cortex-a53.md: Update with new attributes.
18312 * config/arm/cortex-a7.md: Update with new attributes.
18313 * config/arm/cortex-a8-neon.md: Update with new attributes.
18314 * config/arm/cortex-a9.md: Update with new attributes.
18315 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18316 * config/arm/cortex-r4f.md: Update with new attributes.
18317 * config/arm/marvell-pj4.md: Update with new attributes.
18318 * config/arm/vfp11.md: Update with new attributes.
18320 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18322 * config/aarch64/arm_neon.h
18323 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18324 (vqtbx<1,2,3,4><q>_s8): Likewise.
18326 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18328 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18329 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18330 (add<mode>3): Add type attribute.
18331 (add<mode>3): Likewise.
18332 (usadd<mode>3): Likewise.
18333 (ssadd<mode>3): Likewise.
18334 (sub<mode>3): Likewise.
18335 (sub<mode>3): Likewise.
18336 (ussub<mode>3): Likewise.
18337 (sssub<mode>3): Likewise.
18338 (ssmulsa3): Likewise.
18339 (usmulusa3): Likewise.
18340 (arm_usatsihi): Likewise.
18341 * config/arm/vfp.md
18342 (*movdi_vfp): Add types for all instructions.
18343 (*movdi_vfp_cortexa8): Likewise.
18344 (*movhf_vfp_neon): Likewise.
18345 (*movhf_vfp): Likewise.
18346 (*movdf_vfp): Likewise.
18347 (*thumb2_movdf_vfp): Likewise.
18348 (*thumb2_movdfcc_vfp): Likewise.
18349 * config/arm/arm.md: Add type attribute to all insn patterns.
18350 (*thumb1_adddi3): Add type attribute.
18351 (*arm_adddi3): Likewise.
18352 (*adddi_sesidi_di): Likewise.
18353 (*adddi_zesidi_di): Likewise.
18354 (*thumb1_addsi3): Likewise.
18355 (addsi3_compare0): Likewise.
18356 (*addsi3_compare0_scratch): Likewise.
18357 (*compare_negsi_si): Likewise.
18358 (cmpsi2_addneg): Likewise.
18359 (*addsi3_carryin_<optab>): Likewise.
18360 (*addsi3_carryin_alt2_<optab>): Likewise.
18361 (*addsi3_carryin_clobercc_<optab>): Likewise.
18362 (*subsi3_carryin): Likewise.
18363 (*subsi3_carryin_const): Likewise.
18364 (*subsi3_carryin_compare): Likewise.
18365 (*subsi3_carryin_compare_const): Likewise.
18366 (*arm_subdi3): Likewise.
18367 (*thumb_subdi3): Likewise.
18368 (*subdi_di_zesidi): Likewise.
18369 (*subdi_di_sesidi): Likewise.
18370 (*subdi_zesidi_di): Likewise.
18371 (*subdi_sesidi_di): Likewise.
18372 (*subdi_zesidi_ze): Likewise.
18373 (thumb1_subsi3_insn): Likewise.
18374 (*arm_subsi3_insn): Likewise.
18375 (*anddi3_insn): Likewise.
18376 (*anddi_zesidi_di): Likewise.
18377 (*anddi_sesdi_di): Likewise.
18378 (*ne_zeroextracts): Likewise.
18379 (*ne_zeroextracts): Likewise.
18380 (*ite_ne_zeroextr): Likewise.
18381 (*ite_ne_zeroextr): Likewise.
18382 (*anddi_notdi_di): Likewise.
18383 (*anddi_notzesidi): Likewise.
18384 (*anddi_notsesidi): Likewise.
18385 (andsi_notsi_si): Likewise.
18386 (thumb1_bicsi3): Likewise.
18387 (*iordi3_insn): Likewise.
18388 (*iordi_zesidi_di): Likewise.
18389 (*iordi_sesidi_di): Likewise.
18390 (*thumb1_iorsi3_insn): Likewise.
18391 (*xordi3_insn): Likewise.
18392 (*xordi_zesidi_di): Likewise.
18393 (*xordi_sesidi_di): Likewise.
18394 (*arm_xorsi3): Likewise.
18395 (*andsi_iorsi3_no): Likewise.
18396 (*smax_0): Likewise.
18397 (*smax_m1): Likewise.
18398 (*arm_smax_insn): Likewise.
18399 (*smin_0): Likewise.
18400 (*arm_smin_insn): Likewise.
18401 (*arm_umaxsi3): Likewise.
18402 (*arm_uminsi3): Likewise.
18403 (*minmax_arithsi): Likewise.
18404 (*minmax_arithsi_): Likewise.
18405 (*satsi_<SAT:code>): Likewise.
18406 (arm_ashldi3_1bit): Likewise.
18407 (arm_ashrdi3_1bit): Likewise.
18408 (arm_lshrdi3_1bit): Likewise.
18409 (*arm_negdi2): Likewise.
18410 (*thumb1_negdi2): Likewise.
18411 (*arm_negsi2): Likewise.
18412 (*thumb1_negsi2): Likewise.
18413 (*negdi_extendsid): Likewise.
18414 (*negdi_zero_extend): Likewise.
18415 (*arm_abssi2): Likewise.
18416 (*thumb1_abssi2): Likewise.
18417 (*arm_neg_abssi2): Likewise.
18418 (*thumb1_neg_abss): Likewise.
18419 (one_cmpldi2): Likewise.
18420 (extend<mode>di2): Likewise.
18421 (*compareqi_eq0): Likewise.
18422 (*arm_extendhisi2addsi): Likewise.
18423 (*arm_movdi): Likewise.
18424 (*thumb1_movdi_insn): Likewise.
18425 (*arm_movt): Likewise.
18426 (*thumb1_movsi_insn): Likewise.
18427 (pic_add_dot_plus_four): Likewise.
18428 (pic_add_dot_plus_eight): Likewise.
18429 (tls_load_dot_plus_eight): Likewise.
18430 (*thumb1_movhi_insn): Likewise.
18431 (*thumb1_movsf_insn): Likewise.
18432 (*movdf_soft_insn): Likewise.
18433 (*thumb_movdf_insn): Likewise.
18434 (cbranchsi4_insn): Likewise.
18435 (cbranchsi4_scratch): Likewise.
18436 (*negated_cbranchsi4): Likewise.
18437 (*tbit_cbranch): Likewise.
18438 (*tlobits_cbranch): Likewise.
18439 (*tstsi3_cbranch): Likewise.
18440 (*cbranchne_decr1): Likewise.
18441 (*addsi3_cbranch): Likewise.
18442 (*addsi3_cbranch_scratch): Likewise.
18443 (*arm_cmpdi_insn): Likewise.
18444 (*arm_cmpdi_unsig): Likewise.
18445 (*arm_cmpdi_zero): Likewise.
18446 (*thumb_cmpdi_zero): Likewise.
18447 (*deleted_compare): Likewise.
18448 (*mov_scc): Likewise.
18449 (*mov_negscc): Likewise.
18450 (*mov_notscc): Likewise.
18451 (*cstoresi_eq0_thumb1_insn): Likewise.
18452 (cstoresi_nltu_thumb1): Likewise.
18453 (cstoresi_ltu_thu): Likewise.
18454 (thumb1_addsi3_addgeu): Likewise.
18455 (*arm_jump): Likewise.
18456 (*thumb_jump): Likewise.
18457 (*check_arch2): Likewise.
18458 (arm_casesi_internal): Likewise.
18459 (thumb1_casesi_dispatch): Likewise.
18460 (*arm_indirect_jump): Likewise.
18461 (*thumb1_indirect_jump): Likewise.
18463 (*and_scc): Likewise.
18464 (*ior_scc): Likewise.
18465 (*compare_scc): Likewise.
18466 (*cond_move): Likewise.
18467 (*cond_arith): Likewise.
18468 (*cond_sub): Likewise.
18469 (*cmp_ite0): Likewise.
18470 (*cmp_ite1): Likewise.
18471 (*cmp_and): Likewise.
18472 (*cmp_ior): Likewise.
18473 (*ior_scc_scc): Likewise.
18474 (*ior_scc_scc_cmp): Likewise.
18475 (*and_scc_scc): Likewise.
18476 (*and_scc_scc_cmp): Likewise.
18477 (*and_scc_scc_nod): Likewise.
18478 (*negscc): Likewise.
18479 (movcond_addsi): Likewise.
18480 (movcond): Likewise.
18481 (*ifcompare_plus_move): Likewise.
18482 (*if_plus_move): Likewise.
18483 (*ifcompare_move_plus): Likewise.
18484 (*if_move_plus): Likewise.
18485 (*ifcompare_arith_arith): Likewise.
18486 (*if_arith_arith): Likewise.
18487 (*ifcompare_arith_move): Likewise.
18488 (*if_arith_move): Likewise.
18489 (*ifcompare_move_arith): Likewise.
18490 (*if_move_arith): Likewise.
18491 (*ifcompare_move_not): Likewise.
18492 (*if_move_not): Likewise.
18493 (*ifcompare_not_move): Likewise.
18494 (*if_not_move): Likewise.
18495 (*ifcompare_shift_move): Likewise.
18496 (*if_shift_move): Likewise.
18497 (*ifcompare_move_shift): Likewise.
18498 (*if_move_shift): Likewise.
18499 (*ifcompare_shift_shift): Likewise.
18500 (*ifcompare_not_arith): Likewise.
18501 (*ifcompare_arith_not): Likewise.
18502 (*if_arith_not): Likewise.
18503 (*ifcompare_neg_move): Likewise.
18504 (*if_neg_move): Likewise.
18505 (*ifcompare_move_neg): Likewise.
18506 (*if_move_neg): Likewise.
18507 (prologue_thumb1_interwork): Likewise.
18508 (*cond_move_not): Likewise.
18509 (*sign_extract_onebit): Likewise.
18510 (*not_signextract_onebit): Likewise.
18511 (stack_tie): Likewise.
18512 (align_4): Likewise.
18513 (align_8): Likewise.
18514 (consttable_end): Likewise.
18515 (consttable_1): Likewise.
18516 (consttable_2): Likewise.
18517 (consttable_4): Likewise.
18518 (consttable_8): Likewise.
18519 (consttable_16): Likewise.
18520 (*thumb1_tablejump): Likewise.
18521 (prefetch): Likewise.
18522 (force_register_use): Likewise.
18523 (thumb_eh_return): Likewise.
18524 (load_tp_hard): Likewise.
18525 (load_tp_soft): Likewise.
18526 (tlscall): Likewise.
18527 (*arm_movtas_ze): Likewise.
18528 (*arm_rev): Likewise.
18529 (*arm_revsh): Likewise.
18530 (*arm_rev16): Likewise.
18531 * config/arm/thumb2.md
18532 (*thumb2_smaxsi3): Likewise.
18533 (*thumb2_sminsi3): Likewise.
18534 (*thumb32_umaxsi3): Likewise.
18535 (*thumb2_uminsi3): Likewise.
18536 (*thumb2_negdi2): Likewise.
18537 (*thumb2_abssi2): Likewise.
18538 (*thumb2_neg_abss): Likewise.
18539 (*thumb2_movsi_insn): Likewise.
18540 (tls_load_dot_plus_four): Likewise.
18541 (*thumb2_movhi_insn): Likewise.
18542 (*thumb2_mov_scc): Likewise.
18543 (*thumb2_mov_negs): Likewise.
18544 (*thumb2_mov_negs): Likewise.
18545 (*thumb2_mov_nots): Likewise.
18546 (*thumb2_mov_nots): Likewise.
18547 (*thumb2_movsicc_): Likewise.
18548 (*thumb2_movsfcc_soft_insn): Likewise.
18549 (*thumb2_indirect_jump): Likewise.
18550 (*thumb2_and_scc): Likewise.
18551 (*thumb2_ior_scc): Likewise.
18552 (*thumb2_ior_scc_strict_it): Likewise.
18553 (*thumb2_cond_move): Likewise.
18554 (*thumb2_cond_arith): Likewise.
18555 (*thumb2_cond_ari): Likewise.
18556 (*thumb2_cond_sub): Likewise.
18557 (*thumb2_negscc): Likewise.
18558 (*thumb2_movcond): Likewise.
18559 (thumb2_casesi_internal): Likewise.
18560 (thumb2_casesi_internal_pic): Likewise.
18561 (*thumb2_alusi3_short): Likewise.
18562 (*thumb2_mov<mode>_shortim): Likewise.
18563 (*thumb2_addsi_short): Likewise.
18564 (*thumb2_subsi_short): Likewise.
18565 (thumb2_addsi3_compare0): Likewise.
18566 (*thumb2_cbz): Likewise.
18567 (*thumb2_cbnz): Likewise.
18568 (*thumb2_one_cmplsi2_short): Likewise.
18569 (*thumb2_negsi2_short): Likewise.
18570 (*orsi_notsi_si): Likewise.
18571 * config/arm/arm1020e.md: Update with new attributes.
18572 * config/arm/arm1026ejs.md: Update with new attributes.
18573 * config/arm/arm1136jfs.md: Update with new attributes.
18574 * config/arm/arm926ejs.md: Update with new attributes.
18575 * config/arm/cortex-a15.md: Update with new attributes.
18576 * config/arm/cortex-a5.md: Update with new attributes.
18577 * config/arm/cortex-a53.md: Update with new attributes.
18578 * config/arm/cortex-a7.md: Update with new attributes.
18579 * config/arm/cortex-a8.md: Update with new attributes.
18580 * config/arm/cortex-a9.md: Update with new attributes.
18581 * config/arm/cortex-m4.md: Update with new attributes.
18582 * config/arm/cortex-r4.md: Update with new attributes.
18583 * config/arm/fa526.md: Update with new attributes.
18584 * config/arm/fa606te.md: Update with new attributes.
18585 * config/arm/fa626te.md: Update with new attributes.
18586 * config/arm/fa726te.md: Update with new attributes.
18588 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18590 * config/aarch64/aarch64-simd.md
18591 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18592 <vwx> iterator to ensure correct register choice.
18593 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18594 (aarch64_sqdmull_n<mode>): Likewise.
18595 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18596 * config/aarch64/arm_neon.h
18597 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18598 (vml<as><q>_n_<su>16): Likewise.
18599 (vml<as>l_high_lane<q>_<su>16): Likewise.
18600 (vml<as>l_high_n_<su>16): Likewise.
18601 (vml<as>l_lane<q>_<su>16): Likewise.
18602 (vml<as>l_n_<su>16): Likewise.
18603 (vmul<q>_lane<q>_<su>16): Likewise.
18604 (vmul<q>_n_<su>16): Likewise.
18605 (vmull_lane<q>_<su>16): Likewise.
18606 (vmull_n_<su>16): Likewise.
18607 (vmull_high_lane<q>_<su>16): Likewise.
18608 (vmull_high_n_<su>16): Likewise.
18609 (vqrdmulh<q>_n_s16): Likewise.
18611 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18613 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18614 have the correct lane parameter.
18616 2013-09-06 Richard Biener <rguenther@suse.de>
18618 * cfganal.c (control_dependences::~control_dependences):
18619 Properly free all of the vector.
18621 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18624 * config/i386/i386.c (ix86_conditional_register_usage):
18625 Proper initialize extended SSE registers.
18627 2013-09-06 Jan Hubicka <jh@suse.cz>
18629 PR tree-optimization/58311
18630 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18632 2013-09-06 Jan Hubicka <jh@suse.cz>
18634 * Makefile.in (tree-sra.o): Update dependencies.
18635 * tree-sra.c: Include ipa-utils.h
18636 (scan_function): Use recursive_call_p.
18637 (has_caller_p): New function.
18638 (cgraph_for_node_and_aliases): Count also callers of aliases.
18640 2013-09-06 Jan Hubicka <jh@suse.cz>
18642 PR middle-end/58094
18643 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18644 * tree-tailcall.c: Include ipa-utils.h.
18645 (find_tail_calls): Use it.
18646 * ipa-pure-const.c (check_call): Likewise.
18647 * ipa-utils.c (recursive_call_p): New function.
18648 * ipa-utils.h (recursive_call_p): Dclare.
18649 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18650 (symtab_semantically_equivalent_p): New function.
18651 * Makefile.in (tree-tailcall.o): Update dependencies.
18653 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18655 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18656 non-inlinable part.
18658 2013-09-06 Richard Biener <rguenther@suse.de>
18660 * lto-streamer.h (lto_global_var_decls): Remove.
18661 * Makefile.in (OBJS): Remove lto-symtab.o.
18662 (lto-symtab.o): Remove.
18663 (GTFILES): Remove lto-symtab.c
18664 * lto-symtab.c: Move to lto/
18666 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18668 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18669 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18670 (UNSPEC_FPINT_RINT): New constant definitions.
18671 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18672 definition with 2 attributes.
18673 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18674 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18677 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18679 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18680 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18681 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18682 attribute to "z196_alone".
18683 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18686 2013-09-06 Richard Biener <rguenther@suse.de>
18688 * basic-block.h (class control_dependences): New.
18689 * tree-ssa-dce.c (control_dependence_map): Remove.
18691 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18692 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18693 find_pdom, find_control_dependence, find_all_control_dependences):
18695 (mark_control_dependent_edges_necessary,
18696 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18697 tree_dce_done, perform_tree_ssa_dce): Adjust.
18698 * cfganal.c (set_control_dependence_map_bit,
18699 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18700 find_all_control_dependences): Move from tree-ssa-dce.c and
18701 implement as methods of control_dependences class.
18702 (control_dependences::control_dependences): New.
18703 (control_dependences::~control_dependences): Likewise.
18704 (control_dependences::get_edges_dependent_on): Likewise.
18705 (control_dependences::get_edge): Likewise.
18707 2013-09-04 Jan Hubicka <jh@suse.cz>
18709 * tree.c (types_same_for_odr): Drop overactive check.
18710 * ipa-devirt.c (hash_type_name): Likewise.
18712 2013-09-04 Jan Hubicka <jh@suse.cz>
18714 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18715 (analyze_functions): ... here.
18717 2013-09-04 Jan Hubicka <jh@suse.cz>
18719 PR middle-end/58201
18720 * cgraphunit.c (analyze_functions): Clear AUX fields
18721 after processing; initialize assembler name has.
18723 2013-09-05 Jeff Law <law@redhat.com>
18725 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18726 from thread_around_empty_block. Record threading path into PATH.
18727 Recurse if threading through the initial block is successful.
18728 (thread_across_edge): Corresponding changes to slightly simplify.
18730 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18732 * config/aarch64/aarch64.md
18733 (type): Remove frecpe, frecps, frecpx.
18734 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18735 fix to be a TARGET_SIMD instruction.
18736 (aarch64_frecps): Remove.
18737 * config/aarch64/aarch64-simd.md
18738 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18739 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18741 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18742 Sofiane Naci <sofiane.naci@arm.com>
18744 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18745 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18746 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18747 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18748 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18749 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18750 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18751 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18752 into "clz, "rbit". Rename "shift" to "shift_imm".
18753 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18754 changes. Update for attribute changes all occurrences of arlo_* and
18756 * config/arm/arm-fixed.md: Update for attribute changes
18757 all occurrences of arlo_* types.
18758 * config/arm/thumb2.md: Update for attribute changes all occurrences
18760 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18761 (cortexa7_older_only): Likewise.
18762 (cortexa7_younger): Likewise.
18763 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18764 (1020alu_shift_op): Likewise.
18765 (1020alu_shift_reg_op): Likewise.
18766 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18767 (alu_shift_op): Likewise.
18768 (alu_shift_reg_op): Likewise.
18769 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18770 (11_alu_shift_op): Likewise.
18771 (11_alu_shift_reg_op): Likewise.
18772 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18773 (9_alu_shift_reg_op): Likewise.
18774 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18776 (cortex_a15_alu_shift): Likewise.
18777 (cortex_a15_alu_shift_reg): Likewise.
18778 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18780 (cortex_a5_alu_shift): Likewise.
18781 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18783 (cortex_a53_alu_shift): Likewise.
18784 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18786 (cortex_a7_alu_reg): Likewise.
18787 (cortex_a7_alu_shift): Likewise.
18788 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18790 (cortex_a8_alu_shift): Likewise.
18791 (cortex_a8_alu_shift_reg): Likewise.
18792 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18793 (cortex_a9_dp_shift): Likewise.
18794 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18796 * config/arm/cortex-r4.md
18797 (cortex_r4_alu): Update for attribute changes.
18798 (cortex_r4_mov): Likewise.
18799 (cortex_r4_alu_shift_reg): Likewise.
18800 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18801 (526_alu_shift_op): Likewise.
18802 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18803 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18804 (626te_alu_shift_op): Likewise.
18805 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18806 (726te_alu_shift_op): Likewise.
18807 (726te_alu_shift_reg_op): Likewise.
18808 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18809 (mp626_alu_shift_op): Likewise.
18810 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18811 (pj4_alu_conds): Likewise.
18812 (pj4_shift): Likewise.
18813 (pj4_shift_conds): Likewise.
18814 (pj4_alu_shift): Likewise.
18815 (pj4_alu_shift_conds): Likewise.
18816 * config/aarch64/aarch64.md: Update for attribute change
18817 all occurrences of arlo_* and shift* types.
18819 2013-09-05 Mike Stump <mikestump@comcast.net>
18821 * tree.h: Move documentation for tree_function_decl to tree-core.h
18822 with the declaration.
18824 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18827 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18828 looking for widest mode.
18830 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18832 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18834 2013-09-05 Richard Biener <rguenther@suse.de>
18836 PR tree-optimization/58137
18837 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18838 Do not create vectors of pointers.
18839 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18840 types for the components of the vector initializer.
18841 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18842 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18844 2013-09-05 Martin Jambor <mjambor@suse.cz>
18846 * ipa-prop.c (remove_described_reference): Accept missing references,
18847 return false if that hppens, otherwise return true.
18848 (cgraph_node_for_jfunc): New function.
18849 (try_decrement_rdesc_refcount): Likewise.
18850 (try_make_edge_direct_simple_call): Use them.
18851 (ipa_edge_removal_hook): Remove references from rdescs.
18852 (ipa_edge_duplication_hook): Clone rdescs and their references
18853 when the new edge has the same caller as the old one.
18854 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18855 reference before removing any edges.
18857 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18859 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18861 * thumb2.md (thumb2_storewb_parisi): New pattern.
18863 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18865 * config/aarch64/aarch64-option-extensions.def: Add
18866 AARCH64_OPT_EXTENSION of 'crc'.
18867 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18868 (AARCH64_ISA_CRC): Ditto.
18869 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18870 description of the CRC extension.
18872 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18874 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18875 * config/rs6000/linux.h: Ditto.
18876 * alpha/linux.h: Ditto.
18877 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18878 no_c99_libc_has_function.
18879 * config/c6x/uclinux-elf.h: Ditto.
18880 * config/lm32/uclinux-elf.h: Ditto.
18881 * config/m68k/uclinux.h: Ditto.
18882 * config/moxie/uclinux.h: Ditto.
18883 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18884 (crisv32-*-linux*, cris-*-linux*): Ditto.
18885 * config/bfin/bfin.c: Include "tm_p.h".
18887 2013-09-05 Richard Biener <rguenther@suse.de>
18889 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18890 check for a definition without a basic-block.
18892 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18893 Sofiane Naci <sofiane.naci@arm.com>
18895 * config/aarch64/aarch64.md
18896 (*movti_aarch64): Rename r_2_f and f_2_r.
18897 (*movsf_aarch64): Likewise.
18898 (*movdf_aarch64): Likewise.
18899 (*movtf_aarch64): Likewise.
18900 (aarch64_movdi_<mode>low): Likewise.
18901 (aarch64_movdi_<mode>high): Likewise.
18902 (aarch64_mov<mode>high_di): Likewise.
18903 (aarch64_mov<mode>low_di): Likewise.
18904 (aarch64_movtilow_tilow): Likewise.
18905 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18906 values to config/arm/types.md
18907 (attribute "conds"): Update for attribute change.
18908 (anddi3_insn): Likewise.
18909 (iordi3_insn): Likewise.
18910 (xordi3_insn): Likewise.
18911 (one_cmpldi2): Likewise.
18912 * config/arm/types.md (type): Add Neon types.
18913 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18914 use "type" attribute.
18915 (movmisalign<mode>_neon_store): Likewise.
18916 (movmisalign<mode>_neon_load): Likewise.
18917 (vec_set<mode>_internal): Likewise.
18918 (vec_setv2di_internal): Likewise.
18919 (vec_extract<mode>): Likewise.
18920 (vec_extractv2di): Likewise.
18921 (add<mode>3_neon): Likewise.
18922 (adddi3_neon): Likewise.
18923 (sub<mode>3_neon): Likewise.
18924 (subdi3_neon): Likewise.
18925 (mul<mode>3_neon): Likewise.
18926 (mul<mode>3add<mode>_neon): Likewise.
18927 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18928 (fma<VCVTF:mode>4)): Likewise.
18929 (fma<VCVTF:mode>4_intrinsic): Likewise.
18930 (fmsub<VCVTF:mode>4)): Likewise.
18931 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18932 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18933 (ior<mode>3): Likewise.
18934 (and<mode>3): Likewise.
18935 (anddi3_neon): Likewise.
18936 (orn<mode>3_neon): Likewise.
18937 (orndi3_neon): Likewise.
18938 (bic<mode>3_neon): Likewise.
18939 (bicdi3_neon): Likewise.
18940 (xor<mode>3): Likewise.
18941 (one_cmpl<mode>2): Likewise.
18942 (abs<mode>2): Likewise.
18943 (neg<mode>2): Likewise.
18944 (umin<mode>3_neon): Likewise.
18945 (umax<mode>3_neon): Likewise.
18946 (smin<mode>3_neon): Likewise.
18947 (smax<mode>3_neon): Likewise.
18948 (vashl<mode>3): Likewise.
18949 (vashr<mode>3_imm): Likewise.
18950 (vlshr<mode>3_imm): Likewise.
18951 (ashl<mode>3_signed): Likewise.
18952 (ashl<mode>3_unsigned): Likewise.
18953 (neon_load_count): Likewise.
18954 (ashldi3_neon_noclobber): Likewise.
18955 (signed_shift_di3_neon): Likewise.
18956 (unsigned_shift_di3_neon): Likewise.
18957 (ashrdi3_neon_imm_noclobber): Likewise.
18958 (lshrdi3_neon_imm_noclobber): Likewise.
18959 (widen_ssum<mode>3): Likewise.
18960 (widen_usum<mode>3): Likewise.
18961 (quad_halves_<code>v4si): Likewise.
18962 (quad_halves_<code>v4sf): Likewise.
18963 (quad_halves_<code>v8hi): Likewise.
18964 (quad_halves_<code>v16qi): Likewise.
18965 (reduc_splus_v2di): Likewise.
18966 (neon_vpadd_internal<mode>): Likewise.
18967 (neon_vpsmin<mode>): Likewise.
18968 (neon_vpsmax<mode>): Likewise.
18969 (neon_vpumin<mode>): Likewise.
18970 (neon_vpumax<mode>): Likewise.
18971 (ss_add<mode>_neon): Likewise.
18972 (us_add<mode>_neon): Likewise.
18973 (ss_sub<mode>_neon): Likewise.
18974 (us_sub<mode>_neon): Likewise.
18975 (neon_vadd<mode>_unspec): Likewise.
18976 (neon_vaddl<mode>): Likewise.
18977 (neon_vaddw<mode>): Likewise.
18978 (neon_vhadd<mode>): Likewise.
18979 (neon_vqadd<mode>): Likewise.
18980 (neon_vaddhn<mode>): Likewise.
18981 (neon_vmul<mode>): Likewise.
18982 (neon_vmla<mode>): Likewise.
18983 (neon_vmlal<mode>): Likewise.
18984 (neon_vmls<mode>): Likewise.
18985 (neon_vmlsl<mode>): Likewise.
18986 (neon_vqdmulh<mode>): Likewise.
18987 (neon_vqdmlal<mode>): Likewise.
18988 (neon_vqdmlsl<mode>): Likewise.
18989 (neon_vmull<mode>): Likewise.
18990 (neon_vqdmull<mode>): Likewise.
18991 (neon_vsub<mode>_unspec): Likewise.
18992 (neon_vsubl<mode>): Likewise.
18993 (neon_vsubw<mode>): Likewise.
18994 (neon_vqsub<mode>): Likewise.
18995 (neon_vhsub<mode>): Likewise.
18996 (neon_vsubhn<mode>): Likewise.
18997 (neon_vceq<mode>): Likewise.
18998 (neon_vcge<mode>): Likewise.
18999 (neon_vcgeu<mode>): Likewise.
19000 (neon_vcgt<mode>): Likewise.
19001 (neon_vcgtu<mode>): Likewise.
19002 (neon_vcle<mode>): Likewise.
19003 (neon_vclt<mode>): Likewise.
19004 (neon_vcage<mode>): Likewise.
19005 (neon_vcagt<mode>): Likewise.
19006 (neon_vtst<mode>): Likewise.
19007 (neon_vabd<mode>): Likewise.
19008 (neon_vabdl<mode>): Likewise.
19009 (neon_vaba<mode>): Likewise.
19010 (neon_vabal<mode>): Likewise.
19011 (neon_vmax<mode>): Likewise.
19012 (neon_vmin<mode>): Likewise.
19013 (neon_vpaddl<mode>): Likewise.
19014 (neon_vpadal<mode>): Likewise.
19015 (neon_vpmax<mode>): Likewise.
19016 (neon_vpmin<mode>): Likewise.
19017 (neon_vrecps<mode>): Likewise.
19018 (neon_vrsqrts<mode>): Likewise.
19019 (neon_vqabs<mode>): Likewise.
19020 (neon_vqneg<mode>): Likewise.
19021 (neon_vcls<mode>): Likewise.
19022 (clz<mode>2): Likewise.
19023 (popcount<mode>2): Likewise.
19024 (neon_vrecpe): Likewise.
19025 (neon_vrsqrte): Likewise.
19026 (neon_vget_lane<mode>_sext_internal): Likewise.
19027 (neon_vget_lane<mode>_zext_internal): Likewise.
19028 (neon_vdup_n<mode>): Likewise.
19029 (neon_vdup_nv2di): Likewise.
19030 (neon_vdpu_lane<mode>_internal): Likewise.
19031 (neon_vswp<mode>): Likewise.
19032 (float<mode><V_cvtto>2): Likewise.
19033 (floatuns<mode><V_cvtto>2): Likewise.
19034 (fix_trunc<mode><V_cvtto>)2): Likewise
19035 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19036 (neon_vcvt<mode>): Likewise.
19037 (neon_vcvtv4sfv4hf): Likewise.
19038 (neon_vcvtv4hfv4sf): Likewise.
19039 (neon_vcvt_n<mode>): Likewise.
19040 (neon_vmovn<mode>): Likewise.
19041 (neon_vqmovn<mode>): Likewise.
19042 (neon_vqmovun<mode>): Likewise.
19043 (neon_vmovl<mode>): Likewise.
19044 (neon_vmul_lane<mode>): Likewise.
19045 (neon_vmull_lane<mode>): Likewise.
19046 (neon_vqdmull_lane<mode>): Likewise.
19047 (neon_vqdmulh_lane<mode>): Likewise.
19048 (neon_vmla_lane<mode>): Likewise.
19049 (neon_vmlal_lane<mode>): Likewise.
19050 (neon_vqdmlal_lane<mode>): Likewise.
19051 (neon_vmls_lane<mode>): Likewise.
19052 (neon_vmlsl_lane<mode>): Likewise.
19053 (neon_vqdmlsl_lane<mode>): Likewise.
19054 (neon_vext<mode>): Likewise.
19055 (neon_vrev64<mode>): Likewise.
19056 (neon_vrev32<mode>): Likewise.
19057 (neon_vrev16<mode>): Likewise.
19058 (neon_vbsl<mode>_internal): Likewise.
19059 (neon_vshl<mode>): Likewise.
19060 (neon_vqshl<mode>): Likewise.
19061 (neon_vshr_n<mode>): Likewise.
19062 (neon_vshrn_n<mode>): Likewise.
19063 (neon_vqshrn_n<mode>): Likewise.
19064 (neon_vqshrun_n<mode>): Likewise.
19065 (neon_vshl_n<mode>): Likewise.
19066 (neon_vqshl_n<mode>): Likewise.
19067 (neon_vqshlu_n<mode>): Likewise.
19068 (neon_vshll_n<mode>): Likewise.
19069 (neon_vsra_n<mode>): Likewise.
19070 (neon_vsri_n<mode>): Likewise.
19071 (neon_vsli_n<mode>): Likewise.
19072 (neon_vtbl1v8qi): Likewise.
19073 (neon_vtbl2v8qi): Likewise.
19074 (neon_vtbl3v8qi): Likewise.
19075 (neon_vtbl4v8qi): Likewise.
19076 (neon_vtbx1v8qi): Likewise.
19077 (neon_vtbx2v8qi): Likewise.
19078 (neon_vtbx3v8qi): Likewise.
19079 (neon_vtbx4v8qi): Likewise.
19080 (neon_vtrn<mode>_internal): Likewise.
19081 (neon_vzip<mode>_internal): Likewise.
19082 (neon_vuzp<mode>_internal): Likewise.
19083 (neon_vld1<mode>): Likewise.
19084 (neon_vld1_lane<mode>): Likewise.
19085 (neon_vld1_dup<mode>): Likewise.
19086 (neon_vld1_dupv2di): Likewise.
19087 (neon_vst1<mode>): Likewise.
19088 (neon_vst1_lane<mode>): Likewise.
19089 (neon_vld2<mode>): Likewise.
19090 (neon_vld2_lane<mode>): Likewise.
19091 (neon_vld2_dup<mode>): Likewise.
19092 (neon_vst2<mode>): Likewise.
19093 (neon_vst2_lane<mode>): Likewise.
19094 (neon_vld3<mode>): Likewise.
19095 (neon_vld3qa<mode>): Likewise.
19096 (neon_vld3qb<mode>): Likewise.
19097 (neon_vld3_lane<mode>): Likewise.
19098 (neon_vld3_dup<mode>): Likewise.
19099 (neon_vst3<mode>): Likewise.
19100 (neon_vst3qa<mode>): Likewise.
19101 (neon_vst3qb<mode>): Likewise.
19102 (neon_vst3_lane<mode>): Likewise.
19103 (neon_vld4<mode>): Likewise.
19104 (neon_vld4qa<mode>): Likewise.
19105 (neon_vld4qb<mode>): Likewise.
19106 (neon_vld4_lane<mode>): Likewise.
19107 (neon_vld4_dup<mode>): Likewise.
19108 (neon_vst4<mode>): Likewise.
19109 (neon_vst4qa<mode>): Likewise.
19110 (neon_vst4qb<mode>): Likewise.
19111 (neon_vst4_lane<mode>): Likewise.
19112 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19113 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19114 (neon_vec_<US>mult_lo_<mode>): Likewise.
19115 (neon_vec_<US>mult_hi_<mode>): Likewise.
19116 (neon_vec_<US>shiftl_<mode>): Likewise.
19117 (neon_unpack<US>_<mode>): Likewise.
19118 (neon_vec_<US>mult_<mode>): Likewise.
19119 (vec_pack_trunc_<mode>): Likewise.
19120 (neon_vec_pack_trunk_<mode>): Likewise.
19121 (neon_vabd<mode>_2): Likewise.
19122 (neon_vabd<mode>_3): Likewise.
19123 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19124 (thumb2_movsi_vfp): Likewise.
19125 (movdi_vfp): Likewise.
19126 (movdi_vfp_cortexa8): Likewise.
19127 (movhf_vfp_neon): Likewise.
19128 (movhf_vfp): Likewiwse.
19129 (movsf_vfp): Likewiwse.
19130 (thumb2_movsf_vfp): Likewiwse.
19131 (movdf_vfp): Likewise.
19132 (thumb2_movdf_vfp): Likewise.
19133 (movsfcc_vfp): Likewise.
19134 (thumb2_movsfcc_vfp): Likewise.
19135 (movdfcc_vfp): Likewise.
19136 (thumb2_movdfcc_vfp): Likewise.
19137 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19138 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19139 (v10_v2c): Likewise.
19140 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19142 (cortex_a15_neon_int_2): Likewise.
19143 (cortex_a15_neon_int_3): Likewise.
19144 (cortex_a15_neon_int_4): Likewise.
19145 (cortex_a15_neon_int_5): Likewise.
19146 (cortex_a15_neon_vqneg_vqabs): Likewise.
19147 (cortex_a15_neon_vmov): Likewise.
19148 (cortex_a15_neon_vaba): Likewise.
19149 (cortex_a15_neon_vaba_qqq): Likewise.
19150 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19151 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19152 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19153 scalar_64_32_long_scalar): Likewise.
19154 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19155 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19156 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19157 lotype_qdd_64_32_long): Likewise.
19158 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19159 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19160 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19161 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19162 (cortex_a15_neon_shift_1): Likewise.
19163 (cortex_a15_neon_shift_2): Likewise.
19164 (cortex_a15_neon_shift_3): Likewise.
19165 (cortex_a15_neon_vshl_ddd): Likewise.
19166 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19167 (cortex_a15_neon_vsra_vrsra): Likewise.
19168 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19169 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19170 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19171 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19172 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19173 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19174 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19175 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19176 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19177 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19178 (cortex_a15_neon_bp_simple): Likewise.
19179 (cortex_a15_neon_bp_2cycle): Likewise.
19180 (cortex_a15_neon_bp_3cycle): Likewise.
19181 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19182 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19183 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19184 (cortex_a15_neon_vld2_4_regs): Likewise.
19185 (cortex_a15_neon_vld3_vld4): Likewise.
19186 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19187 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19188 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19189 (cortex_a15_neon_vst3_vst4): Likewise.
19190 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19191 (cortex_a15_neon_vld3_vld4_lane" 10
19192 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19193 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19194 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19195 (cortex_a15_neon_ldm_2): Likewise.0
19196 (cortex_a15_neon_stm_2): Likewise.
19197 (cortex_a15_neon_mcr): Likewise.
19198 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19199 (cortex_a15_neon_mrc): Likewise.
19200 (cortex_a15_neon_mrrc): Likewise.
19201 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19203 (cortex_a15_alu_shift): Likewise.
19204 (cortex_a15_alu_shift_reg): Likewise.
19205 (cortex_a15_mult32): Likewise.
19206 (cortex_a15_mult64): Likewise.
19207 (cortex_a15_block): Likewise.
19208 (cortex_a15_branch): Likewise.
19209 (cortex_a15_load1): Likewise.
19210 (cortex_a15_load3): Likewise.
19211 (cortex_a15_store1): Likewise.
19212 (cortex_a15_store3): Likewise.
19213 (cortex_a15_call): Likewise.
19214 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19215 (cortex_a5_f2r): Likewise.
19216 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19218 (cortex_a53_f2r): Likewise.
19219 * config/arm/cortex-a7.md
19220 (cortex_a7_branch): Update for attribute change.
19221 (cortex_a7_call): Likewise.
19222 (cortex_a7_alu_imm): Likewise.
19223 (cortex_a7_alu_reg): Likewise.
19224 (cortex_a7_alu_shift): Likewise.
19225 (cortex_a7_mul): Likewise.
19226 (cortex_a7_load1): Likewise.
19227 (cortex_a7_store1): Likewise.
19228 (cortex_a7_load2): Likewise.
19229 (cortex_a7_store2): Likewise.
19230 (cortex_a7_load3): Likewise.
19231 (cortex_a7_store3): Likewise.
19232 (cortex_a7_load4): Likewise.
19233 (cortex_a7_store4): Likewise.
19234 (cortex_a7_fpalu): Likewise.
19235 (cortex_a7_fconst): Likewise.
19236 (cortex_a7_fpmuls): Likewise.
19237 (cortex_a7_neon_mul): Likewise.
19238 (cortex_a7_fpmacs): Likewise.
19239 (cortex_a7_neon_mla: Likewise.
19240 (cortex_a7_fpmuld: Likewise.
19241 (cortex_a7_fpmacd: Likewise.
19242 (cortex_a7_fpfmad: Likewise.
19243 (cortex_a7_fdivs: Likewise.
19244 (cortex_a7_fdivd: Likewise.
19245 (cortex_a7_r2f: Likewise.
19246 (cortex_a7_f2r: Likewise.
19247 (cortex_a7_f_flags: Likewise.
19248 (cortex_a7_f_loads: Likewise.
19249 (cortex_a7_f_loadd: Likewise.
19250 (cortex_a7_f_stores: Likewise.
19251 (cortex_a7_f_stored: Likewise.
19252 (cortex_a7_neon): Likewise.
19253 * config/arm/cortex-a8-neon.md
19254 (cortex_a8_neon_mrc): Update for attribute change.
19255 (cortex_a8_neon_mrrc): Likewise.
19256 (cortex_a8_neon_int_1): Likewise.
19257 (cortex_a8_neon_int_2): Likewise.
19258 (cortex_a8_neon_int_3): Likewise.
19259 (cortex_a8_neon_int_4): Likewise.
19260 (cortex_a8_neon_int_5): Likewise.
19261 (cortex_a8_neon_vqneg_vqabs): Likewise.
19262 (cortex_a8_neon_vmov): Likewise.
19263 (cortex_a8_neon_vaba): Likewise.
19264 (cortex_a8_neon_vaba_qqq): Likewise.
19265 (cortex_a8_neon_vsma): Likewise.
19266 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19267 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19268 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19269 long_scalar): Likewise.
19270 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19271 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19272 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19273 long_scalar_qdd_64_32_long): Likewise.
19274 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19275 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19276 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19277 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19278 (cortex_a8_neon_shift_1): Likewise.
19279 (cortex_a8_neon_shift_2): Likewise.
19280 (cortex_a8_neon_shift_3): Likewise.
19281 (cortex_a8_neon_vshl_ddd): Likewise.
19282 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19283 (cortex_a8_neon_vsra_vrsra): Likewise.
19284 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19285 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19286 (cortex_a8_neon_fp_vsum): Likewise.
19287 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19288 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19289 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19290 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19291 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19292 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19293 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19294 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19295 (cortex_a8_neon_bp_simple): Likewise.
19296 (cortex_a8_neon_bp_2cycle): Likewise.
19297 (cortex_a8_neon_bp_3cycle): Likewise.
19298 (cortex_a8_neon_ldr): Likewise.
19299 (cortex_a8_neon_str): Likewise.
19300 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19301 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19302 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19303 (cortex_a8_neon_vld2_4_regs): Likewise.
19304 (cortex_a8_neon_vld3_vld4): Likewise.
19305 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19306 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19307 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19308 (cortex_a8_neon_vst3_vst4): Likewise.
19309 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19310 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19311 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19312 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19313 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19314 (cortex_a8_neon_mcr): Likewise.
19315 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19316 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19317 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19319 (ca9_neon_mrrc): Likewise.
19320 (cortex_a9_neon_int_1): Likewise.
19321 (cortex_a9_neon_int_2): Likewise.
19322 (cortex_a9_neon_int_3): Likewise.
19323 (cortex_a9_neon_int_4): Likewise.
19324 (cortex_a9_neon_int_5): Likewise.
19325 (cortex_a9_neon_vqneg_vqabs): Likewise.
19326 (cortex_a9_neon_vmov): Likewise.
19327 (cortex_a9_neon_vaba): Likewise.
19328 (cortex_a9_neon_vaba_qqq): Likewise.
19329 (cortex_a9_neon_vsma): Likewise.
19330 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19331 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19332 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19333 long_scalar): Likewise.
19334 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19335 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19336 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19337 long_scalar_qdd_64_32_long): Likewise.
19338 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19339 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19340 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19341 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19342 (cortex_a9_neon_shift_1): Likewise.
19343 (cortex_a9_neon_shift_2): Likewise.
19344 (cortex_a9_neon_shift_3): Likewise.
19345 (cortex_a9_neon_vshl_ddd): Likewise.
19346 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19347 (cortex_a9_neon_vsra_vrsra): Likewise.
19348 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19349 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19350 (cortex_a9_neon_fp_vsum): Likewise.
19351 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19352 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19353 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19354 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19355 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19356 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19357 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19358 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19359 (cortex_a9_neon_bp_simple): Likewise.
19360 (cortex_a9_neon_bp_2cycle): Likewise.
19361 (cortex_a9_neon_bp_3cycle): Likewise.
19362 (cortex_a9_neon_ldr): Likewise.
19363 (cortex_a9_neon_str): Likewise.
19364 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19365 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19366 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19367 (cortex_a9_neon_vld2_4_regs): Likewise.
19368 (cortex_a9_neon_vld3_vld4): Likewise.
19369 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19370 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19371 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19372 (cortex_a9_neon_vst3_vst4): Likewise.
19373 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19374 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19375 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19376 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19377 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19378 (cortex_a9_neon_mcr): Likewise.
19379 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19380 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19381 (cortex_a9_fps): Likewise.
19382 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19384 (cortex_m4_fmuls): Likewise.
19385 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19387 (cortex_r4_mrc): Likewise.
19388 * config/arm/iterators.md: Update comment referring to neon_type.
19389 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19390 (iwmmxt_movsi_insn): Likewise.
19391 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19393 (pj4_core_to_vfp): Likewise.
19394 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19396 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19397 (vfp_fstore): Likewise.
19398 * doc/md.texi: Change references to neon_type to refer to type.
19400 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19402 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19404 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19406 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19407 lglobl if not weak.
19409 2013-09-04 Easwaran Raman <eraman@google.com>
19411 PR middle-end/57370
19412 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19413 (build_and_add_sum): Use it.
19414 (appears_later_in_bb): Simplify code.
19416 2013-09-04 Teresa Johnson <tejohnson@google.com>
19418 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19420 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19422 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19424 2013-09-04 Jan Hubicka <jh@suse.cz>
19426 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19427 * ipa-devirt.c: Include diganostic.h
19428 (odr_type_d): Add types and types_set.
19429 (hash_type_name): Work for types with vtables during LTO.
19430 (odr_hasher::remove): Fix comment; destroy types_set.
19431 (add_type_duplicate): New function,
19432 (get_odr_type): Use it.
19433 (dump_type_inheritance_graph): Dump type duplicates.
19434 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19436 * tree.c (types_same_for_odr): Give exact answers on types with
19439 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19441 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19442 explaining their differences.
19444 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19446 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19448 2013-09-03 Jeff Law <law@redhat.com>
19450 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19451 when not threading through a joiner block. Pass joiner/no joiner
19452 state to register_jump_thread.
19453 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19454 state from argument rather than implying on path length.
19455 Dump the entire jump thread path into debugging dump.
19456 * tree-flow.h (register_jump_thread): Update prototype.
19458 2013-08-29 Xinliang David Li <davidxl@google.com>
19460 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19461 Remove a trivial gcc_assert.
19463 2013-08-29 Xinliang David Li <davidxl@google.com>
19465 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19466 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19467 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19468 Delay base decl alignment adjustment.
19469 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19470 * tree-vectorizer.h: New data structure.
19471 (set_dr_misalignment): New function.
19472 (dr_misalignment): Ditto.
19473 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19474 (vectorizable_load): Ditto.
19475 (ensure_base_align): New function.
19476 (vectorize_loops): Add dbg_cnt support.
19477 (execute_vect_slp): Ditto.
19478 * dbgcnt.def: New debug counter.
19479 * Makefile: New dependency.
19481 2013-09-03 Meador Inge <meadori@codesourcery.com>
19485 2013-08-30 Meador Inge <meadori@codesourcery.com>
19487 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19489 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19491 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19492 function descriptor.
19494 2013-09-03 Richard Biener <rguenther@suse.de>
19496 * tree-affine.c (add_elt_to_tree): Fix association issue,
19497 avoid useless converts and make sure to always return a
19498 properly typed result.
19500 2013-09-03 Richard Biener <rguenther@suse.de>
19502 PR middle-end/57656
19503 * fold-const.c (negate_expr_p): Fix division case.
19504 (negate_expr): Likewise.
19506 2013-09-03 Richard Biener <rguenther@suse.de>
19509 * tree-streamer-out.c: Include tm.h.
19510 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19512 2013-09-03 Jan Hubicka <jh@suse.cz>
19514 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19516 2013-09-03 Alan Modra <amodra@gmail.com>
19518 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19519 multilibs to big-endian target and vice versa.
19520 * config/rs6000/t-linux64: Use := assignment on all vars.
19521 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19522 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19523 * config/rs6000/t-linux64le: New file.
19524 * config/rs6000/t-linux64bele: New file.
19525 * config/rs6000/t-linux64lebe: New file.
19527 2013-09-02 Jan Hubicka <jh@suse.cz>
19529 * ipa-inline-transform.c (inline_transform): Do not
19530 optimize_inline_calls when not optimizing.
19532 2013-09-02 Jan Hubicka <jh@suse.cz>
19534 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19535 duplicated nodes for assembler names.
19536 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19537 hard registers from assembler name hash.
19539 2013-09-02 Jan Hubicka <jh@suse.cz>
19541 * ipa-split.c (execute_split_functions): Split externally visible
19542 functions called once.
19544 2013-09-02 Martin Jambor <mjambor@suse.cz>
19547 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19548 linked list. When finding the correct duplicate, also consider also
19549 the caller in additon to its inlined_to node.
19551 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19553 * config/aarch64/aarch64-simd-builtins.def
19554 (dup_lane_scalar): Remove.
19555 * config/aarch64/aarch64-simd.md
19556 (aarch64_simd_dup): Add 'w->w' alternative.
19557 (aarch64_dup_lane<mode>): Allow for VALL.
19558 (aarch64_dup_lane_scalar<mode>): Remove.
19559 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19560 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19561 (aarch64_get_lane_unsigned<mode>): Likewise.
19562 (aarch64_get_lane<mode>): Likewise.
19563 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19564 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19565 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19566 (VCON): Change container of V2SF.
19567 (vswap_width_name): Likewise.
19568 * config/aarch64/arm_neon.h
19569 (__aarch64_vdup_lane_any): New.
19570 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19571 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19572 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19574 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19576 PR middle-end/56382
19577 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19578 the source or the destination is a single hard register.
19580 2013-09-02 Richard Biener <rguenther@suse.de>
19582 PR middle-end/57511
19583 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19586 2013-09-02 Richard Biener <rguenther@suse.de>
19588 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19589 arithmetic to sizetype.
19591 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19593 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19594 Find auto-increment use both before and after candidate.
19596 2013-09-02 Marek Polacek <polacek@redhat.com>
19598 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19600 2013-09-01 Jan Hubicka <jh@suse.cz>
19602 * Makefile.in: Add ipa-profile.o
19603 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19604 * cgraph.c (struct cgraph_propagate_frequency_data,
19605 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19606 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19607 * cgraph.h (cgraph_propagate_frequency): Remove.
19608 * ipa-inline-analysis.c: Include ipa-utils.h;
19609 drop duplicated cfgloop.h.
19610 (inline_update_callee_summaries): Update.
19611 * ipa-profile.c: New file.
19612 * ipa-utils.h (ipa_propagate_frequency): Declare.
19613 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19614 data-streamer.h, value-prof.h.
19615 (symtab_remove_unreachable_nodes): Update profile.
19616 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19617 account_time_size, cmp_counts, dump_histogram,
19618 ipa_profile_generate_summary, ipa_profile_write_summary,
19619 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19620 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19621 Move to ipa-profile.c.
19623 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19625 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19627 2013-09-01 Jan Hubicka <jh@suse.cz>
19629 * common.opt (fdevirtualize-speculatively): New function.
19630 * invoke.texi (fdevirtualize-speculatively): Document.
19631 * ipa-devirt.c: Include ipa-inline.h
19632 (likely_target_p): New function.
19633 (ipa_devirt): New function.
19634 (gate_ipa_devirt): New function.
19635 (pass_data_ipa_devirt): New static var.
19636 (pass_ipa_devirt): Likewise.
19637 (make_pass_ipa_devirt): New function.
19638 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19639 (common_handle_option): Disable devirtualization when
19640 value range profiling is available.
19641 * passes.def (pass_ipa_devirt): Add.
19642 * timever.def (TV_IPA_DEVIRT): New timevar.
19643 * tree-pass.h (make_pass_ipa_devirt):
19645 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19647 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19648 include sanitize(undefined).
19650 2013-08-31 Diego Novillo <dnovillo@google.com>
19652 * Makefile.in (TREE_CORE_H): Define.
19654 (GTFILES): Add tree-core.h.
19655 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19657 * tree-core.h: New file.
19658 Move all data structures, enum, typedefs, global
19659 declarations and constants from ...
19660 * tree.h: ... here.
19662 2013-08-31 Jan Hubicka <jh@suse.cz>
19664 * bulitins.c (expand_builtin): Do not early exit for gcov
19665 instrumented functions.
19667 2013-08-31 Marek Polacek <polacek@redhat.com>
19669 * ubsan.c: Include tm_p.h.
19671 2013-08-31 Jan Hubicka <jh@suse.cz>
19673 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19676 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19677 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19678 * tree-cfg.c (verify_gimple_label): ... here.
19679 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19680 (ipa_merge_profiles): New function.
19681 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19682 (lto_input_function_body): Likewise.
19683 * ipa-utils.h (ipa_merge_profiles): Declare.
19684 * lto-streamer.h (lto_input_function_body): Update prototype.
19685 (emit_label_in_global_context_p): Remove.
19686 * lto-symtab.c: Include ipa-utils.h
19687 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19689 2013-08-31 Jan Hubicka <jh@suse.cz>
19691 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19693 2013-08-31 Jan Hubicka <jh@suse.cz>
19695 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19697 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19699 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19700 "cmp" RTX before signed_comparison_operator check to account
19701 for "code" changes.
19703 2013-08-30 Jan Hubicka <jh@suse.cz>
19705 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19706 (detect_type_change_1): Rename to ...
19707 (detect_type_change): ... this one; early return on non-polymorphic
19709 (detect_type_change_ssa): Add comp_type parameter; update
19710 use of detect_type_change.
19711 (compute_complex_assign_jump_func): Add param_type parameter;
19712 update use of detect_type_change_ssa.
19713 (compute_complex_ancestor_jump_func): Likewise.
19714 (ipa_get_callee_param_type): New function.
19715 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19716 update calls to the jump function computation functions.
19718 2013-08-30 Teresa Johnson <tejohnson@google.com>
19719 Steven Bosscher <steven@gcc.gnu.org>
19721 * cfgrtl.c (fixup_new_cold_bb): New routine.
19722 (commit_edge_insertions): Invoke fixup_partitions.
19723 (find_partition_fixes): New routine.
19724 (fixup_partitions): Ditto.
19725 (verify_hot_cold_block_grouping): Update comments.
19726 (rtl_verify_edges): Invoke find_partition_fixes.
19727 (rtl_verify_bb_pointers): Update comments.
19728 (rtl_verify_bb_layout): Ditto.
19729 * basic-block.h (probably_never_executed_edge_p): Declare.
19730 (fixup_partitions): Ditto.
19731 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19732 * bb-reorder.c (sanitize_hot_paths): New function.
19733 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19734 sanitize_hot_paths.
19735 * predict.c (probably_never_executed_edge_p): New routine.
19736 * cfg.c (check_bb_profile): Add partition insanity warnings.
19738 2013-08-30 Meador Inge <meadori@codesourcery.com>
19740 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19742 2013-08-30 Marek Polacek <polacek@redhat.com>
19744 * Makefile.in (ubsan.o): Add.
19745 (c-family/c-ubsan.o): Add.
19746 (builtins.o): Add ubsan.h dependency.
19747 * ubsan.h: New file.
19748 * ubsan.c: New file.
19749 * common.opt: Add -fsanitize=undefined option.
19750 (flag_sanitize): Add variable.
19751 (fsanitize=): Add option. Add Driver.
19752 (fsanitize=thread): Remove option.
19753 (fsanitize=address): Likewise.
19754 (static-libubsan): New option.
19755 * doc/invoke.texi: Document the new flag and -static-libubsan.
19756 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19757 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19758 * builtin-attrs.def (ATTR_COLD): Define.
19759 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19760 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19761 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19762 * flag-types.h (sanitize_code): New enum.
19763 * opts.c (common_handle_option): Parse command line arguments
19764 of -fsanitize=. Add -fsanitize=unreachable option.
19765 * varasm.c (get_variable_section): Adjust.
19766 (assemble_noswitch_variable): Likewise.
19767 (assemble_variable): Likewise.
19768 (output_constant_def_contents): Likewise.
19769 (categorize_decl_for_section): Likewise.
19770 (place_block_symbol): Likewise.
19771 (output_object_block): Likewise.
19772 * builtins.def: Likewise.
19773 * toplev.c (compile_file): Likewise.
19774 (process_options): Likewise.
19775 * cppbuiltin.c: Likewise.
19776 * tsan.c (tsan_pass): Likewise.
19777 (tsan_gate): Likewise.
19778 (tsan_gate_O0): Likewise.
19779 * cfgexpand.c (partition_stack_vars): Likewise.
19780 (expand_stack_vars): Likewise.
19781 (defer_stack_allocation): Likewise.
19782 (expand_used_vars): Likewise.
19783 * cfgcleanup.c (old_insns_match_p): Likewise.
19784 * asan.c (asan_finish_file): Likewise.
19785 (asan_instrument): Likewise.
19786 (gate_asan): Likewise.
19787 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19788 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19789 (asan_global_struct): Use pointer_sized_int_node instead
19790 calling build_nonstandard_integer_type.
19791 (initialize_sanitizer_builtins): Likewise.
19792 (asan_finish_file): Likewise.
19793 * gcc.c: Document %{%:function(args):X}.
19794 (static_spec_functions): Add sanitize.
19795 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19796 store funcval != NULL there.
19797 (do_spec_1): Adjust handle_spec_function caller.
19798 (handle_braces): Allow %:function(args) as condition.
19799 (sanitize_spec_function): New function.
19800 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19801 (LIBUBSAN_SPEC): Likewise.
19802 (LIBUBSAN_EARLY_SPEC): Likewise.
19803 (SANITIZER_SPEC): Handle libubsan.
19804 (SANITIZER_EARLY_SPEC): Likewise.
19805 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19806 instead of fsanitize=address.
19807 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19808 instead of fsanitize=address*.
19809 * builtins.c: Include ubsan.h.
19810 (fold_builtin_0): Instrument __builtin_unreachable.
19811 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19812 instead of flag_asan.
19813 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19814 (pointer_sized_int_node): Define.
19815 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19817 2013-08-30 Mike Stump <mikestump@comcast.net>
19819 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19822 2013-08-29 Jan Hubicka <jh@suse.cz>
19824 * cgraph.c (cgraph_function_body_availability): Handle weakref
19826 * passes.def: Remove pass_fixup_cfg.
19827 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19828 track when we need to remove functions.
19829 (gate_ipa_inline): Execute inlining always; add comment why.
19830 (pass_data_ipa_inline): Remove TODO_remove_functions.
19831 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19832 do not produce summaries.
19833 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19834 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19835 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19836 constant pool and vtable.
19838 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19840 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19841 New arm_neon.h's internal macros to specify 64-bit constants.
19842 Avoid using stdint.h's macros.
19844 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19846 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19847 before applying REG_P.
19849 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19851 PR tree-optimization/58277
19852 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19853 after seeing too many stmts with vdef in between dombb and current
19854 bb, invalidate everything.
19856 2013-08-30 Richard Biener <rguenther@suse.de>
19858 * fold-const.c (fold_single_bit_test): Fix overflow test.
19860 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19862 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19863 and which can live in a register, always retrieve the value on entry.
19864 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19865 passed by invisible reference specially.
19866 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19867 (vt_add_function_parameter): Correctly deal with a parameter passed by
19868 invisible reference.
19870 2013-08-30 Jan Hubicka <jh@suse.cz>
19872 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19874 2013-08-30 Richard Biener <rguenther@suse.de>
19876 PR tree-optimization/58228
19877 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19878 allow invariant loads in nested loop vectorization.
19880 2013-08-30 Richard Biener <rguenther@suse.de>
19882 PR tree-optimization/58223
19883 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19884 (has_anti_or_output_dependence): ... this and adjust to also
19885 look for output dependences.
19886 (mark_nodes_having_upstream_mem_writes): Adjust.
19887 (rdg_flag_uses): Likewise.
19889 2013-08-30 Richard Biener <rguenther@suse.de>
19891 PR tree-optimization/58010
19892 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19893 assert that we have a loop-closed PHI.
19895 2013-08-29 Jan Hubicka <jh@suse.cz>
19897 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19898 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19899 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19900 (lto_free_function_in_decl_state_for_node): New function.
19902 2013-08-29 Xinliang David Li <davidxl@google.com>
19904 * loop-unroll.c (report_unroll_peel): Minor message change.
19905 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19906 Emit alignment peeling message with default -fopt-info.
19907 (vect_loop_versioning): Emit loop version info message.
19908 * tree-vectorizer.c (vectorize_loops): Minor message change.
19909 (execute_vect_slp): Ditto.
19911 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19913 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19914 of the clone from the DECL_NAME of the original function.
19916 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19918 * passes.c (register_pass): Add overload.
19919 * tree-pass.h (register_pass): Forward declare it. Add comment.
19921 2013-08-29 Jan Hubicka <jh@suse.cz>
19923 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19924 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19925 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19926 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19927 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19928 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19929 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19930 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19932 2013-08-29 Teresa Johnson <tejohnson@google.com>
19934 * dumpfile.c (dump_loc): Output column number.
19935 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19936 * doc/invoke.texi: Document optall -fopt-info flag.
19937 * profile.c (read_profile_edge_counts): Use new dump framework.
19938 (compute_branch_probabilities): Ditto.
19939 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19940 when pass not in any opt group.
19941 * pass_manager.h (pass_manager::get_pass_profile): New method.
19942 * value-prof.c (check_counter): Use new dump framework.
19943 (check_ic_target): Ditto.
19944 * coverage.c (get_coverage_counts): Ditto.
19945 (coverage_init): Setup new dump framework.
19947 2013-08-29 Richard Biener <rguenther@suse.de>
19949 PR tree-optimization/58246
19950 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19951 handle the dominance check inside a basic-block.
19953 2013-08-29 Richard Biener <rguenther@suse.de>
19955 PR middle-end/57287
19956 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19957 of default defs that appear in abnormal PHI nodes.
19959 2013-08-29 Richard Biener <rguenther@suse.de>
19961 PR tree-optimization/57685
19962 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19963 single-use operands to avoid exponential complexity.
19965 2013-08-28 Dehao Chen <dehao@google.com>
19967 * ipa-inline.c (edge_badness): Fix integer underflow.
19969 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19971 * gtm-builtins.def (_ITM_free): Declare leaf.
19973 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19976 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19977 (*tls_local_dynamic_base_64_largepic): Likewise.
19978 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19979 Remove predicate from call operand.
19980 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19981 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19983 2013-08-28 Jeff Law <law@redhat.com>
19985 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19986 checks for the number of predecessors and successors allowed.
19987 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19988 which require copying a joiner block if there is a request which
19989 is a subpath that requires no joiner block copying.
19991 2013-08-28 Jan Hubicka <jh@suse.cz>
19993 * lto-streamer-out.c (DFS_write_tree_body): Drop
19994 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19995 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19996 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19997 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19998 Do not read DECL_ERROR_ISSUED.
19999 (unpack_ts_decl_with_vis_value_fields): Do not read
20001 (lto_input_ts_binfo_tree_pointers): Do not read
20002 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20003 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20004 write DECL_ERROR_ISSUED..
20005 (pack_ts_decl_with_vis_value_fields): Do not write
20007 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20008 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20009 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20010 * tree.h (tree_decl_common): Update comment.
20011 (DECL_ERROR_ISSUED): Remove.
20013 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20015 PR middle-end/58257
20016 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20018 2013-08-28 Jan Hubicka <jh@suse.cz>
20020 * builtins.def (free): Declare leaf.
20022 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20024 * gdbhooks.py: New.
20025 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20026 * configure: Regenerate.
20028 2013-08-27 Martin Jambor <mjambor@suse.cz>
20030 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20031 (ipa_ancestor_jf_data): Likewise.
20032 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20033 (ipa_get_jf_pass_through_type_preserved): New function.
20034 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20035 (ipa_get_jf_ancestor_type_preserved): New function.
20036 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20037 (ipa_get_jf_ancestor_result): Likewise.
20038 (propagate_vals_accross_pass_through): Use
20039 ipa_get_jf_pass_through_result to do all the value mappings.
20040 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20041 type_preserved flag.
20042 (ipa_set_jf_cst_copy): New function.
20043 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20044 (ipa_set_jf_arith_pass_through): Likewise.
20045 (ipa_set_ancestor_jf): Likewise.
20046 (compute_complex_assign_jump_func): Set type_preserved instead of
20048 (ipa_compute_jump_functions_for_edge): Likewise.
20049 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20050 (update_jump_functions_after_inlining): Update type_preserved.
20051 Explicitely create jump functions when combining one with pass_through.
20052 (ipa_write_jump_function): Stream the type_preserved flags.
20053 (ipa_read_jump_function): Likewise.
20055 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20056 Aldy Hernandez <aldyh@redhat.com>
20058 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20059 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20060 * function.h (struct function): Add has_force_vect_loops and
20062 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20063 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20065 * gimple.def: Update CLAUSES comments.
20066 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20067 (gimple_build_omp_for): Add argument to prototype.
20068 (gimple_omp_for_kind): New.
20069 (gimple_omp_for_set_kind): New.
20070 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20071 GOVD_DATA_SHARE_CLASS.
20072 (enum omp_region_type): Add ORT_SIMD.
20073 (gimple_add_tmp_var): Handle ORT_SIMD.
20074 (gimplify_var_or_parm_decl): Same.
20075 (is_gimple_stmt): Same.
20076 (omp_firstprivatize_variable): Same.
20077 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20078 (omp_notice_variable): Handle ORT_SIMD.
20079 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20080 (omp_check_private): Handle ORT_SIMD.
20081 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20082 OMP_CLAUSE_SAFELEN.
20083 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20084 Handle OMP_CLAUSE_LASTPRIVATE.
20085 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20086 OMP_CLAUSE_SAFELEN.
20087 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20088 (gimplify_expr): Handle OMP_SIMD.
20089 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20090 (expand_GOMP_SIMD_VF): New.
20091 (expand_GOMP_SIMD_LAST_LANE): New.
20092 * internal-fn.def (GOMP_SIMD_LANE): New.
20093 (GOMP_SIMD_VF): New.
20094 (GOMP_SIMD_LAST_LANE): New.
20095 * omp-low.c: Include target.h.
20096 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20097 OMP_CLAUSE_SAFELEN.
20098 (check_omp_nesting_restrictions): Same.
20100 (lower_rec_simd_input_clauses): New.
20101 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20103 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20104 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20105 (expand_omp_build_assign): New.
20106 (expand_omp_for_init_counts): New.
20107 (expand_omp_for_init_vars): New.
20108 (extract_omp_for_update_vars): New.
20109 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20110 and rewrite accordingly.
20111 (expand_omp_simd): New.
20112 (expand_omp_for): Use expand_omp_simd.
20113 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20114 (lower_omp_for): Do not lower the body.
20115 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20116 in their own loops.
20117 * tree-flow.h (find_omp_clause): Remove prototype.
20118 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20119 forcing vectorization of the loop, or if flag_tree_vectorize.
20120 (gate_tree_if_conversion): Similarly.
20121 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20122 gimple_build_omp_for.
20123 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20124 * tree-parloops (create_parallel_loop): Pass kind argument to
20125 gimple_build_omp_for.
20126 * tree-pretty-print.c (dump_omp_clause): Add cases for
20127 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20128 OMP_CLAUSE__SIMDUID_.
20129 (dump_generic_node): Handle OMP_SIMD.
20130 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20131 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20132 unroll OMP_SIMD loops here.
20133 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20134 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20136 (vect_analyze_data_refs): Handle simd loops.
20137 * tree-vect-loop.c (vectorizable_live_operation): Handle
20139 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20140 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20141 (vectorizable_load): Same.
20142 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20143 (struct simduid_to_vf): New.
20144 (simduid_to_vf::hash): New.
20145 (simduid_to-vf::equal): New.
20146 (struct simd_array_to_simduid): New.
20147 (simd_array_to_simduid::hash): New.
20148 (simd_array_to_simduid::equal): New.
20149 (adjust_simduid_builtins): New.
20150 (struct note_simd_array_uses_struct): New.
20151 (note_simd_array_uses_cb): New.
20152 (note_simd_array_uses): New.
20153 (vectorize_loops): Handle simd hints and adjust simd builtins
20155 * tree-vectorizer.h (struct _stmt_vec_info): Add
20156 simd_lane_access_p field.
20157 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20158 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20159 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20160 (omp_clause_code_name): Same.
20161 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20162 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20163 * tree.def (OMP_SIMD): New entry.
20164 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20165 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20166 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20167 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20168 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20169 (OMP_CLAUSE_LINEAR_STEP): New.
20170 (OMP_CLAUSE_SAFELEN_EXPR): New.
20171 (OMP_CLAUSE__SIMDUID__DECL): New.
20172 (find_omp_clause): New prototype.
20174 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20176 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20177 Haswell processor detection.
20179 2013-08-27 Christian Widmer <shadow@umbrox.de>
20182 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20183 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20184 AVX2 capable processors.
20186 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20188 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20189 of vget_low_* with implementations in terms of other intrinsics.
20191 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20193 PR middle-end/57219
20194 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20195 values to -1, 0 and 1.
20197 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20199 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20200 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20201 (<optab><mode>3_insn): Remove.
20202 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20203 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20204 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20205 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20206 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20207 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20208 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20209 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20210 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20211 (ror<mode>3_insn): Likewise.
20212 * config/aarch64/predicates.md (aarch64_simd_register): New.
20214 2013-08-27 Richard Biener <rguenther@suse.de>
20216 PR tree-optimization/57521
20217 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20218 one edge is non-critical.
20219 (find_phi_replacement_condition): Make sure to use a non-critical
20220 edge. Cleanup and remove old bug workarounds.
20221 (bb_postdominates_preds): Remove.
20222 (if_convertible_loop_p_1): Do not compute post-dominators.
20223 (combine_blocks): Do not free post-dominators.
20224 (main_tree_if_conversion): Likewise.
20225 (pass_data_if_conversion): Add TODO_verify_ssa.
20227 2013-08-27 DJ Delorie <dj@redhat.com>
20229 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20231 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20233 * function.c (assign_parm_find_data_types): Set passed_mode and
20234 nominal_mode to the TYPE_MODE of nominal_type for the built
20235 pointer type in case of the struct-pass-by-reference.
20237 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20239 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20240 (UINT16_TYPE): Change default to "unsigned int".
20242 * config/avr/avr.opt (mfract-convert-truncate): New option.
20243 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20244 is set, round negative fractional integers according to n1169
20245 when converting to integer types.
20247 2013-08-26 Jan Hubicka <jh@suse.cz>
20249 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20250 methods can not be called indirectly when their address is not taken.
20252 2013-08-26 Jan Hubicka <jh@suse.cz>
20254 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20257 2013-08-26 Jan Hubicka <jh@suse.cz>
20259 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20262 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20264 * reload.c (find_valid_class): Allow classes that do not include
20265 FIRST_PSEUDO_REGISTER - 1.
20267 2013-08-26 Jan Hubicka <jh@suse.cz>
20269 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20270 fix edge count/frequency when speculation failed; fix type check
20271 for the direct call.
20273 2013-08-26 Jan Hubicka <jh@suse.cz>
20275 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20277 2013-08-26 Jan Hubicka <jh@suse.cz>
20279 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20280 to be changed by edge redirection.
20282 2013-08-26 Jan Hubicka <jh@suse.cz>
20284 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20285 formating; add sanity check.
20286 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20287 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20288 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20289 (resolve_noninline_speculation): Update callee keys, too.
20291 2013-08-26 Jan Hubicka <jh@suse.cz>
20293 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20294 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20296 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20298 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20301 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20303 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20304 (x86_64_elf_select_section): Ditto.
20305 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20307 (ix86_pass_by_reference): Ditto.
20308 (output_set_got): Ditto.
20309 (ix86_unary_operator_ok): Ditto.
20310 (ix86_expand_builtin): Ditto.
20312 2013-08-23 Jan Hubicka <jh@suse.cz>
20314 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20316 2013-08-23 Jan Hubicka <jh@suse.cz>
20318 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20319 (tree_decl_with_vis): Add FINAL field.
20321 2013-08-23 Jeff Law <law@redhat.com>
20323 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20324 the debugging dump when the expression is fully redundant.
20326 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20328 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20329 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20330 * pretty-print.c (pp_formatted_text_data): Likewise.
20331 (pp_write_text_to_stream): Likewise.
20332 (pp_write_text_as_dot_label_to_stream): Likewise.
20333 (pp_append_r): Likewise.
20334 (pp_format): Likewise.
20335 (pp_flush): Likewise.
20336 (pp_clear_output_area): Likewise.
20337 (pp_append_text): Likewise.
20338 (pp_formatted_text): Likewise.
20339 (pp_remaining_character_count_for_line): Likewise.
20340 (pp_newline): Likewise.
20341 (pp_character): Likewise.
20342 (output_buffer::~output_buffer): Define.
20343 (pretty_printer::~pretty_printer): Destruct output buffer.
20344 * pretty-print.h (output_buffer::~output_buffer): Declare.
20345 (pretty_printer::~pretty_printer): Declare virtual.
20347 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20350 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20351 HOST_WIDE_INT_M1U): New macros.
20352 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20353 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20354 unsigned -1 for lshift.
20355 * cse.c (cse_insn): Likewise.
20356 * double-int.c (rshift_double, lshift_double): Likewise.
20357 * builtins.c (fold_builtin_bitop): Likewise.
20358 * combine.c (force_to_mode): Likewise.
20359 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20360 * simplify-rtx.c (simplify_const_unary_operation,
20361 simplify_const_binary_operation): Likewise.
20362 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20363 check_va_list_escapes): Likewise.
20364 * rtlanal.c (nonzero_bits1): Likewise.
20365 * expmed.c (expand_smod_pow2): Likewise.
20366 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20368 2013-08-23 Jan Hubicka <jh@suse.cz>
20370 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20371 as having address taken.
20373 2013-08-23 Jan Hubicka <jh@suse.cz>
20375 * ipa-utils.h (method_class_type): Declare.
20376 * ipa-devirt.c (method_class_type): Export.
20378 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20379 do not walk base classes of anonymous types.
20381 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20383 PR rtl-optimization/58220
20384 PR regression/58221
20385 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20386 handle SEQUENCE insns properly.
20388 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20390 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20392 (pp_newline_and_indent): Likewise.
20393 (pp_separate_with): Likewise.
20394 * pretty-print.c (pp_newline_and_flush): Define.
20395 (pp_newline_and_indent): Likewise.
20396 (pp_separate_with): Likewise.
20398 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20401 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20402 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20404 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20406 * config/i386/predicates.md (ext_sse_reg_operand): New.
20407 * config/i386/i386.md (*movti_internal): Use
20408 predicate to determine if EVEX is needed.
20409 (*movsi_internal): Ditto.
20410 (*movdf_internal): Ditto.
20411 (*movsf_internal): Ditto.
20412 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20414 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20416 PR tree-optimization/58209
20417 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20418 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20419 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20420 emit POINTER_PLUS_EXPR.
20421 (create_tailcall_accumulator): For pointer result type accumulate in
20424 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20426 * configure.ac: Add backslashes missing from the last change.
20427 * configure: Regenerate.
20429 2013-08-22 Jan Hubicka <jh@susue.cz>
20431 * ipa.c (function_and_variable_visibility): First remember function
20432 was global and then make it local.
20434 2013-08-22 Julian Brown <julian@codesourcery.com>
20436 * configure.ac: Add aarch64 to list of arches which use "nop" in
20438 * configure: Regenerate.
20440 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20442 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20443 gnu_libc_has_function.
20444 * config/s390/tpf.h: Likewise.
20446 2013-08-22 Jan Hubicka <jh@susue.cz>
20448 * timevar.c (validate_phases): Add cast.
20450 2013-08-22 Jan Hubicka <jh@susue.cz>
20452 * timevar.c (validate_phases): Use size_t for memory.
20453 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20455 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20457 * pretty-print.h (output_buffer::output_buffer): Declare.
20458 (pretty_printer::pretty_printer): Likewise.
20459 (pp_construct): Remove.
20460 * pretty-print.c (output_buffer::output_buffer): Define.
20461 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20462 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20463 (print_gimple_expr): Likewise.
20464 (print_gimple_seq): Likewise.
20465 (gimple_dump_bb): Likewise.
20466 * sched-vis.c (dump_value_slim): Likewise.
20467 (dump_insn_slim): Likewise.
20468 (dump_rtl_slim): Likewise.
20469 (str_pattern_slim): Likewise.
20470 * tree-mudflap.c (mf_varname_tree): Likewise.
20471 * graph.c (print_graph_cfg): Likewise.
20472 (start_graph_dump): Likewise.
20473 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20475 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20476 pretty printer initialization.
20477 * coretypes.h (diagnostic_context): Remove superflous type alias
20479 (pretty_printer): Likewise. Declare directly as a class.
20480 (pretty_print_info): Remove declaration as class.
20481 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20482 and pp_clear_output_area.
20483 (asan_add_global): Likewise.
20485 2013-08-22 Jan Hubicka <jh@suse.cz>
20487 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20488 * ipa-utils.h (update_type_inheritance_graph): Declare.
20489 (possible_polymorphic_call_target_p): Declare.
20490 (possible_polymorphic_call_target_p): New.
20491 * ipa-devirt.c: Update toplevel comments.
20492 (cached_polymorphic_call_targets): Move up.
20493 (odr_type_d): Move ID down.
20494 (polymorphic_type_binfo_p): Update comment.
20495 (odr_hasher::remove): Likewise;
20496 (get_odr_type): Set anonymous_namespace.
20497 (dump_odr_type): Dump it.
20498 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20499 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20500 (record_binfo): Add comment.
20501 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20503 (devirt_node_removal_hook): Do not iCE when cache is freed.
20504 (possible_polymorphic_call_target_p): New predicate.
20505 (update_type_inheritance_graph): New function.
20507 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20509 Sergey Lega <sergey.s.lega@intel.com>
20510 Anna Tikhonova <anna.tikhonova@intel.com>
20511 Ilya Tocar <ilya.tocar@intel.com>
20512 Andrey Turetskiy <andrey.turetskiy@intel.com>
20513 Ilya Verbin <ilya.verbin@intel.com>
20514 Kirill Yukhin <kirill.yukhin@intel.com>
20515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20517 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20518 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20519 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20520 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20521 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20522 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20523 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20524 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20525 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20526 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20527 OPT_mavx512pf, OPT_mavx512er cases.
20528 * config/i386/constraints.md (v): New constraint.
20529 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20530 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20531 (bit_AVX512CD): New.
20532 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20533 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20534 * config/i386/i386-c.c (ix86_target_macros_internal):
20535 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20537 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20538 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20539 * config/i386/i386.c (regclass_map, dbx_register_map)
20540 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20541 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20542 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20543 -mavx512pf options.
20544 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20545 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20546 -mavx512pf options. Fix formatting.
20547 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20548 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20549 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20550 -mavx512cd, -mavx512pf options.
20551 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20552 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20553 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20555 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20556 (ix86_set_reg_reg_cost): Ditto.
20557 (x86_order_regs_for_local_alloc): Ditto.
20558 (MAX_VECT_LEN): Extend to 64-byte.
20559 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20560 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20561 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20562 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20563 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20564 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20565 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20566 (SSE_REG_MODE_P): Support new modes.
20567 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20568 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20569 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20570 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20571 (REG_CLASS_CONTENTS): Add new registers.
20572 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20573 (EXT_REX_SSE_REGNO_P): New.
20574 (HI_REGISTER_NAMES): Add new registers.
20575 * config/i386/i386.md: Define constants for new registers.
20576 (mode): Add new 512-bit modes.
20577 (prefix): Support evex prefix.
20578 (isa): Support avx512f, noavx512f, fma_avx512f.
20579 (ssemodesuffix): Add new 512-bit modes.
20581 (*movxi_internal_avx512f): Ditto.
20582 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20584 (*movsi_internal): Likewise.
20585 (*movdf_internal): Likewise.
20586 (*movsf_internal): Likewise.
20587 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20588 (<code><mode>3): Likewise.
20589 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20591 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20592 with the new constraint "v".
20593 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20595 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20596 with the new constraint "v".
20597 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20598 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20599 (*<plusminus_insn><mode>3): Likewise.
20600 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20601 (*mul<mode>3): Likewise.
20602 (<sse>_vmmul<mode>3): Likewise.
20603 (<sse>_div<mode>3): Likewise.
20604 (<sse>_vmdiv<mode>3): Likewise.
20605 (<sse>_sqrt<mode>2): Likewise.
20606 (<sse>_vmsqrt<mode>2): Likewise.
20607 (*<code><mode>3_finite): Likewise.
20608 (*<code><mode>3) <smaxmin>: Likewise.
20609 (<sse>_vm<code><mode>3): Likewise.
20610 (*<code><mode>3) <any_logic>: Likewise.
20611 (*fma_fmadd_<mode>): Likewise.
20612 (*fma_fmsub_<mode>): Likewise.
20613 (*fma_fnmadd_<mode>): Likewise.
20614 (*fma_fnmsub_<mode>): Likewise.
20615 (*fma_fmaddsub_<mode>): Likewise.
20616 (*fma_fmsubadd_<mode>): Likewise.
20617 (*fmai_fmadd_<mode>): Likewise.
20618 (*fmai_fmsub_<mode>): Likewise.
20619 (*fmai_fnmadd_<mode>): Likewise.
20620 (*fmai_fnmsub_<mode>): Likewise.
20621 (sse_cvtsi2ss): Likewise.
20622 (sse_cvtsi2ssq): Likewise.
20623 (sse_cvtss2si): Likewise.
20624 (sse_cvtss2si_2): Likewise.
20625 (sse_cvtss2siq): Likewise.
20626 (sse_cvtss2siq_2): Likewise.
20627 (sse_cvttss2si): Likewise.
20628 (sse_cvtss2siq_2): Likewise.
20629 (float<sseintvecmodelower><mode>2): Likewise.
20630 (sse2_cvtsd2si_2): Likewise.
20631 (sse2_cvtsd2siq_2): Likewise.
20632 (*<plusminus_insn><mode>3): Likewise.
20633 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20634 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20635 (ashr<mode>3): Likewise.
20636 (<shift_insn><mode>3): Likewise.
20637 (avx2_<code><mode>3): Likewise.
20638 (*avx2_<code><mode>3): Likewise.
20639 (*andnot<mode>3): Likewise.
20640 (*<code><mode>3) <any_logic>: Likewise.
20641 (abs<mode>2): Likewise.
20642 (avx2_permvar<mode>): Likewise.
20643 (avx2_perm<mode>_1): Likewise.
20644 (*avx_vpermilp<mode>): Likewise.
20645 (avx_vpermilvar<mode>3): Likewise.
20646 (avx2_ashrv<mode>): Likewise.
20647 (avx2_<shift_insn>v<mode>): Likewise.
20648 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20650 * doc/rtl.texi: Document XImode.
20652 2013-08-21 Jeff Law <law@redhat.com>
20654 * tree-flow.h (register_jump_thread): Pass vector of edges
20655 instead of each important edge.
20656 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20657 thread path into a vector and pass that to register_jump_thread.
20658 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20659 passed in edge vector to the current 3-edge form.
20662 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20664 * dce.c (fini_dce): Call df_analyze again just in case
20665 delete_unmarked_insns removed anything.
20667 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20669 * reload.h (struct reg_equivs): Rename to ..
20670 (struct reg_equivs_s): .. this.
20672 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20674 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20676 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20678 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20680 2013-08-21 Jeff Law <law@redhat.com>
20682 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20683 simplify assignments too. If the RHS collapses to a singleton
20684 range, then return the value for the range.
20686 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20688 * config/i386/sse.md (V16): Rename to...
20690 (mov<mode>): Update iterator name.
20691 (*mov<mode>_internal): Ditto.
20692 (push<mode>1): Ditto.
20693 (movmisalign<mode>): Ditto.
20695 2013-08-20 Jan Hubicka <jh@suse.cz>
20698 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20699 entry for direct edges.
20700 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20702 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20704 Revert my last two changes, r201865 and r201864:
20707 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20709 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20710 instances can own GC refs.
20712 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20713 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20714 (gcc::context::gt_pch_nx): Likewise.
20715 (gcc::context::gt_pch_nx): Likewise.
20716 * ggc.h (gt_ggc_mx <T>): New.
20717 (gt_pch_nx_with_op <T>): New.
20718 (gt_pch_nx <T>): New.
20719 * passes.c (opt_pass::gt_ggc_mx): New.
20720 (opt_pass::gt_pch_nx): New.
20721 (opt_pass::gt_pch_nx_with_op): New.
20722 (pass_manager::gt_ggc_mx): New.
20723 (pass_manager::gt_pch_nx): New.
20724 (pass_manager::gt_pch_nx_with_op): New.
20725 (pass_manager::operator new): Use
20726 ggc_internal_cleared_alloc_stat rather than xcalloc.
20727 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20728 (pass_manager::gt_ggc_mx): New.
20729 (pass_manager::gt_pch_nx): New.
20730 (pass_manager::gt_pch_nx_with_op): New.
20731 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20732 (opt_pass::operator new): New.
20733 (opt_pass::gt_ggc_mx): New.
20734 (opt_pass::gt_pch_nx): New.
20735 (opt_pass::gt_pch_nx_with_op): New.
20738 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20740 * Makefile.in (GTFILES): Add context.h.
20741 * context.c (gcc::context::operator new): New.
20742 (gcc::context::gt_ggc_mx): New.
20743 (gcc::context::gt_pch_nx): New.
20744 (gcc::context::gt_pch_nx): New.
20745 * context.h (gcc::context): Add GTY((user)) marking.
20746 (gcc::context::operator new): New.
20747 (gcc::context::gt_ggc_mx): New.
20748 (gcc::context::gt_pch_nx): New.
20749 (gcc::context::gt_pch_nx): New.
20750 (g): Add GTY marking.
20751 (gt_ggc_mx (gcc::context *)): New.
20752 (gt_pch_nx (gcc::context *)): New.
20753 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20754 void *cookie)): New.
20755 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20757 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20759 * dce.c (fini_dce): Call df_analyze again just in case
20760 delete_unmarked_insns removed anything.
20762 2013-08-20 Teresa Johnson <tejohnson@google.com>
20764 PR rtl-optimizations/57451
20765 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20766 from crossing split section boundaries.
20768 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20770 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20771 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20772 with MULTLIB_DEFAULTS.
20774 2013-08-20 Nick Clifton <nickc@redhat.com>
20776 * target.def (narrow_volatile_bitfield): Note that the default
20777 value is false, not !TARGET_STRICT_ALIGN.
20778 * doc/tm.texi: Regenerate.
20780 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20782 Fix LIB_SPEC for systems without libpthread.
20784 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20785 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20787 * config/i386/linux-common.h: Likewise.
20788 * config/mips/linux-common.h: Likewise.
20790 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20792 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20795 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20797 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20798 instances can own GC refs.
20800 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20801 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20802 (gcc::context::gt_pch_nx): Likewise.
20803 (gcc::context::gt_pch_nx): Likewise.
20804 * ggc.h (gt_ggc_mx <T>): New.
20805 (gt_pch_nx_with_op <T>): New.
20806 (gt_pch_nx <T>): New.
20807 * passes.c (opt_pass::gt_ggc_mx): New.
20808 (opt_pass::gt_pch_nx): New.
20809 (opt_pass::gt_pch_nx_with_op): New.
20810 (pass_manager::gt_ggc_mx): New.
20811 (pass_manager::gt_pch_nx): New.
20812 (pass_manager::gt_pch_nx_with_op): New.
20813 (pass_manager::operator new): Use
20814 ggc_internal_cleared_alloc_stat rather than xcalloc.
20815 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20816 (pass_manager::gt_ggc_mx): New.
20817 (pass_manager::gt_pch_nx): New.
20818 (pass_manager::gt_pch_nx_with_op): New.
20819 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20820 (opt_pass::operator new): New.
20821 (opt_pass::gt_ggc_mx): New.
20822 (opt_pass::gt_pch_nx): New.
20823 (opt_pass::gt_pch_nx_with_op): New.
20825 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20827 * Makefile.in (GTFILES): Add context.h.
20828 * context.c (gcc::context::operator new): New.
20829 (gcc::context::gt_ggc_mx): New.
20830 (gcc::context::gt_pch_nx): New.
20831 (gcc::context::gt_pch_nx): New.
20832 * context.h (gcc::context): Add GTY((user)) marking.
20833 (gcc::context::operator new): New.
20834 (gcc::context::gt_ggc_mx): New.
20835 (gcc::context::gt_pch_nx): New.
20836 (gcc::context::gt_pch_nx): New.
20837 (g): Add GTY marking.
20838 (gt_ggc_mx (gcc::context *)): New.
20839 (gt_pch_nx (gcc::context *)): New.
20840 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20841 void *cookie)): New.
20842 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20844 2013-08-20 Alan Modra <amodra@gmail.com>
20847 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20848 (rs6000_emit_epilogue): Likewise.
20850 2013-08-19 Dehao Chen <dehao@google.com>
20852 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20854 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20855 Jakub Jelinek <jakub@redhat.com>
20857 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20858 (BUILT_IN_FABSD64): Likewise.
20859 (BUILT_IN_FABSD128): Likewise.
20860 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20861 (fold_builtin_1): Likewise.
20862 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20863 destination and source operands.
20864 (*abstd2_fpr): Likewise.
20865 (*nabstd2_fpr): Likewise.
20867 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20869 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20872 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20874 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20877 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20879 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20880 * builtins.c (default_libc_has_function): New.
20881 (gnu_libc_has_function): Ditto.
20882 (no_c99_libc_has_function): Ditto.
20883 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20884 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20885 (fold_builtin_sincos): Likewise.
20886 (fold_builtin_cexp): Likewise.
20887 * builtins.def (DEF_C94_BUILTIN): Likewise.
20888 (DEF_C99_BUILTIN): Likewise.
20889 (DEF_C99_C90RES_BUILTIN): Likewise.
20890 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20891 definitions to using this define.
20892 * config/darwin-protos.h (darwin_libc_has_function): New.
20893 * config/darwin.c (darwin_libc_has_function): Ditto.
20894 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20895 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20896 * config/darwin.h: Ditto.
20897 * config/elfos.h: Ditto.
20898 * config/freebsd.h: Ditto.
20899 * config/i386/cygming.h: Ditto.
20900 * config/i386/djgpp.h: Ditto.
20901 * config/i386/i386-interix.h: Ditto.
20902 * config/microblaze/microblaze.h: Ditto.
20903 * config/mmix/mmix.h: Ditto.
20904 * config/gnu-user.h: Ditto.
20905 * config/ia64/hpux.h: Ditto.
20906 * config/pa/pa-hpux.h: Ditto.
20907 * config/pdp11/pdp11.h: Ditto.
20908 * config/picochip/picochip.h: Ditto.
20909 * config/linux.h: Ditto.
20910 * config/netbsd.h: Ditto.
20911 * config/openbsd.h: Ditto.
20912 * config/rs6000/aix43.h: Ditto.
20913 * config/rs6000/aix51.h: Ditto.
20914 * config/rs6000/aix52.h: Ditto.
20915 * config/rs6000/aix53.h: Ditto.
20916 * config/rs6000/aix61.h: Ditto.
20917 * config/rs6000/darwin.h: Ditto.
20918 * config/rs6000/linux.h: Ditto.
20919 * config/rs6000/linux64.h: Ditto.
20920 * config/s390/tpf.h: Ditto.
20921 * config/sol2-10.h: Ditto.
20922 * config/sol2.h: Ditto.
20923 * config/vms/vms.h: Ditto.
20924 * config/vxworks.h: Ditto.
20925 * config/linux-android.c (linux_android_libc_has_function):
20926 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20927 * config/linux-protos.h (linux_android_libc_has_function):
20929 * config/i386/i386.c (ix86_libc_has_function): New.
20930 * config/i386/i386-protos.h
20931 (ix86_libc_has_function): New declaration.
20932 * config/i386/i386.md
20933 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20934 ("isinf<mode>2): Likewise.
20935 * convert.c (convert_to_integer): Using new target hook
20936 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20937 TARGET_C99_FUNCTIONS.
20938 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20939 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20940 * coretypes.h (function_class): New enum for different
20941 classes of functions.
20942 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20943 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20944 (TARGET_HAS_SINCOS): Likewise.
20945 (TARGET_LIBC_HAS_FUNCTION): New.
20946 * doc/tm.texi: Regenerated.
20947 * targhooks.h (default_libc_has_function): New declaration.
20948 (no_c99_libc_has_function): Ditto.
20949 (gnu_libc_has_function): Ditto.
20950 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20951 and TARGET_HAS_SINCOS.
20953 2013-08-18 Jan Hubicka <jh@suse.cz>
20955 * Makeifle-in (ipa-devirt.o): New.
20956 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20957 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20958 (analyze_functions): Look into possible targets of polymorphic call.
20959 * dumpfile.c (dump_files): Add type-inheritance dump.
20960 * dumpfile.h (TDI_inheritance): New.
20961 * ipa-devirt.c: New file.
20962 * ipa-utils.h (odr_type_d): Forward declare.
20963 (odr_type): New type.
20964 (build_type_inheritance_graph): Declare.
20965 (possible_polymorphic_call_targets): Declare and introduce inline
20966 variant when only edge is pased.
20967 (dump_possible_polymorphic_call_targets): Likewise.
20968 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20969 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20970 (types_same_for_odr): ... here.
20971 * tree.h (type_in_anonymous_namespace_p): Declare.
20973 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20975 PR tree-optimization/58006
20976 * tree-parloops.c (take_address_of): Don't ICE if get_name
20978 (eliminate_local_variables_stmt): Remove clobber stmts.
20980 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20982 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20983 error message is issued for an alias to undefined symbol.
20985 2013-08-18 Jan Hubicka <jh@suse.cz>
20987 * cgraph.c (cgraph_create_indirect_edge): Discover
20988 polymorphic calls and record basic info into indirect_info.
20989 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20990 devirtualization, ignore objc function calls.
20991 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20992 call with no parm index info.
20993 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20994 * tree.c (virtual_method_call_p): New function.
20995 * tree.h (virtual_method_call_p): Declare.
20997 2013-08-16 Jan Hubicka <jh@suse.cz>
20999 PR middle-end/58179
21000 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21002 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21004 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21007 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21009 * gengtype.c (type_for_name): Add special-case support for
21010 locating types within the "gcc::" namespace.
21011 (open_base_files): Emit a "using namespace gcc" directive.
21013 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21016 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21017 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21019 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21020 array instead of each individual operand as a separate argument.
21021 (emit_fusion_gpr_load): Likewise.
21022 (expand_fusion_gpr_load): Add new function declaration.
21024 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21025 signature to have the operands passed as an array, instead of as
21026 separate arguments. Allow ZERO_EXTEND to be in the memory
21027 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21028 depend on the register live/dead flags when peepholes are run.
21029 (expand_fusion_gpr_load): New function to be called from the
21030 peephole2 pass, to change the register that addis sets to be the
21032 (emit_fusion_gpr_load): Change the calling signature to have the
21033 operands passed as an array, instead of as separate arguments.
21034 Allow ZERO_EXTEND to be in the memory address, and also
21035 SIGN_EXTEND if -mpower8-fusion-sign.
21037 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21038 unspec enumeration.
21039 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21040 adjust the register addis loads up in the peephole2 pass. Do not
21041 depend on the register live/dead state when the peephole pass is done.
21043 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21045 * gengtype.c (create_user_defined_type): Ensure that the kind
21046 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21047 declaration is seen before the GTY((user)) marking.
21049 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21052 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21054 2013-08-16 Jan Hubicka <jh@suse.cz>
21056 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21057 arugment expected_type.
21058 (gimple_fold_call): Use it.
21059 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21060 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21061 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21062 (try_make_edge_direct_virtual_call): Likewise.
21063 * tree.c (obj_type_ref_class): New.
21064 * tree.h (obj_type_ref_class): Use it.
21066 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21068 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21069 (rtl_slim_pp): Likewise.
21070 (init_rtl_slim_pretty_print): Likewise.
21071 (dump_value_slim): Don't call it. Use local pretty printer.
21072 (dump_insn_slim): Likewise.
21073 (dump_rtl_slim): Likewise.
21074 (str_pattern_slim): Likewise.
21075 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21078 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21080 PR tree-optimization/58164
21081 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21082 walk gimple_goto_dest of GIMPLE_GOTO.
21084 PR tree-optimization/58165
21085 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21086 bi_call must be the last stmt in a bb, don't split_block, instead
21087 use fallthru edge from it and give up if there is none.
21088 Release conds vector when returning early.
21090 2013-08-14 Xinliang David Li <davidxl@google.com>
21092 * config/i386/i386.c (ix86_option_override_internal):
21093 Remove unused variable and field.
21095 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21098 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21099 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21100 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21101 and Linux, correct BLKmode alignment when 128-bit alignment is
21102 required and compatibility flag is not set.
21103 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21104 for zero-size arguments when compatibility flag is not set.
21106 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21108 PR tree-optimization/58145
21109 * tree-sra.c (build_ref_for_offset): If prev_base has
21110 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21112 2013-08-14 Xinliang David Li <davidxl@google.com>
21114 * config/i386/i386.c (ix86_option_override_internal):
21115 Fix uninitialized variable error.
21117 2013-08-14 Xinliang David Li <davidxl@google.com>
21119 * config/i386/i386.opt: Define two new options.
21120 * config/i386/x86-tune.def: Add arch selector field in macros.
21121 * config/i386/i386.h: Adjust macro definition.
21122 * config/i386/i386.c (ix86_option_override_internal):
21124 (parse_mtune_ctrl_str): New function.
21125 (set_ix86_tune_features): New function.
21126 (ix86_function_specific_restore): Call the new helper function.
21128 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21130 PR rtl-optimization/57662
21131 * sel-sched.c (code_motion_process_successors): When the current insn
21132 is removed after the recursive traversal, break from the loop.
21133 Add comments and debug printouts.
21135 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21136 Alexandre Oliva <aoliva@redhat.com>
21139 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21140 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21141 there also UNSPEC_PLTOFF.
21143 2013-08-14 Marek Polacek <polacek@redhat.com>
21145 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21146 NUM_CONDITIONS bit positions.
21148 2013-08-13 Cary Coutant <ccoutant@google.com>
21150 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21151 (attr_checksum): Hash vector contents instead of pointer.
21152 (attr_checksum_ordered): Likewise.
21154 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21156 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21157 when Pmode != word_mode. Add length_address attribute.
21158 (sse3_monitor_<mode>): Merge from sse3_monitor and
21159 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21160 Pmode != word_mode. Update insn length attribute.
21161 * config/i386/i386.c (ix86_option_override_internal): Update
21162 ix86_gen_monitor selection for merged sse3_monitor insn.
21164 2013-08-13 Julian Brown <julian@codesourcery.com>
21166 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21167 perform invalid legitimization on greater-than-word-size modes for
21168 TARGET_E500_DOUBLE.
21170 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21172 * ira.c (setup_class_translate_array): Use aclass instead of cl
21173 for classes not fully covered by allocno classes.
21175 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21177 PR tree-optimization/57661
21178 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21179 * tree-inline.c (tree_function_versioning): Initialize it.
21180 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21181 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21182 that is not being copied.
21185 * asan.c (instrument_strlen_call): Fix typo in comment.
21186 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21188 2013-08-13 Steve Ellcey <sellcey@mips.com>
21190 * config/mips/mips.md (prefetch): Use lw instead of ld on
21191 loongson in 32bit mode.
21193 2013-08-13 Nick Clifton <nickc@redhat.com>
21195 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21197 2013-08-13 Jan Hubicka <jh@suse.cz>
21199 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21200 introduced edge; fix typo in sanity check.
21201 (cgraph_resolve_speculation): Export; improve diagnostic.
21202 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21203 speculation at type mismatch.
21204 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21205 (cgraph_resolve_speculation): Declare.
21206 (symtab_can_be_discarded): New function.
21207 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21208 * ipa-inline-transform.c (speculation_removed): New global var.
21209 (clone_inlined_nodes): See if speculation can be removed.
21210 (inline_call): If speculations was removed, we growths may not match.
21211 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21212 (speculation_useful_p): New function.
21213 (resolve_noninline_speculation): New function.
21214 (inline_small_functions): Resolve useless speculations.
21215 * ipa-inline.h (speculation_useful_p): Declare
21216 * ipa.c (can_replace_by_local_alias): Simplify.
21217 (ipa_profile): Produce speculative calls in non-lto, too;
21218 add simple cost model; produce local aliases.
21220 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21222 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21225 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21227 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21229 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21231 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21232 iterator instead of X87MODEF.
21234 2013-08-12 Perez Read <netfirewall@gmail.com>
21237 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21238 operand 0 for intel asm alternative.
21239 (*movabs<mode>_2): Ditto for operand 1.
21241 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21243 * config/aarch64/arm_none.h
21244 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21246 2013-08-12 Nick Clifton <nickc@redhat.com>
21248 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21250 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21252 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21253 expand for QI/HImode operand to produce more effictive code for
21254 unsigned char(short) --> float(double) conversion.
21256 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21258 * doc/invoke.texi: Mention that -ftls-model does not force the final
21261 2013-08-12 Marek Polacek <polacek@redhat.com>
21262 Marc Glisse <marc.glisse@inria.fr>
21264 PR tree-optimization/57980
21265 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21266 when creating -1 constant.
21268 2013-08-10 Jan Hubicka <jh@suse.cz>
21270 Workaround binutils PR14342.
21271 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21272 (gimple_init_edge_profiler): Likewise.
21273 (gimple_gen_ic_func_profiler): Likewise.
21275 2013-08-09 Jan Hubicka <jh@suse.cz>
21277 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21279 2013-08-09 Xinliang David Li <davidxl@google.com>
21281 * config/i386/stringop.def: New file.
21282 * config/i386/stringop.opt: New file.
21283 * config/i386/i386-opts.h: Include stringopt.def.
21284 * config/i386/i386.opt: Include stringopt.opt.
21285 * config/i386/i386.c (ix86_option_override_internal):
21286 Override default size based stringop inline strategies with options.
21287 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21290 2013-08-09 Jan Hubicka <jh@suse.cz>
21292 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21294 2013-08-09 Jan Hubicka <jh@suse.cz>
21296 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21298 (dump_cgraph_node): Dump profile-id.
21299 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21300 and common_target_probability.
21301 * lto-cgraph.c (lto_output_edge): Stream common targets.
21302 (lto_output_node): Stream profile ids.
21303 (input_node): Stream profile ids.
21304 (input_edge): Stream common targets.
21305 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21306 * ipa.c: Include value-prof.h
21307 (ipa_profile_generate_summary): Turn indirect call statement histograms
21308 into common targets.
21309 (ipa_profile): Turn common targets into speculative edges.
21311 2013-08-09 Jan Hubicka <jh@suse.cz>
21313 * cgraph.h (cgraph_node): Add profile_id.
21314 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21315 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21316 (del_node_map): Update.
21317 (find_func_by_funcdef_no): Replace by ...
21318 (find_func_by_profile_id): ... this one.
21319 (gimple_ic_transform): Do not remove useful histograms when
21320 speculation is not done; dump info when indirect call removal
21322 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21323 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21324 (__gcov_indirect_call_profiler_v2): .. this one.
21325 * profile.h (init_node_map): Update.
21326 * coverage.c (coverage_compute_profile_id): New function.
21327 * coverage.h (coverage_compute_profile_id): Declare.
21328 * tree-profile.c (init_ic_make_global_vars): Make
21329 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21330 (gimple_init_edge_profiler): Update prototype of
21331 __gcov_indirect_call_profiler.
21332 (gimple_gen_ic_func_profiler): Simplify.
21333 (tree_profiling): Use init_node_map
21335 2013-08-09 Jan Hubicka <jh@suse.cz>
21337 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21338 non-speculative refs.
21339 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21340 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21341 (cgraph_set_call_stmt): Likewise.
21342 (cgraph_create_edge_1): Fix release checking compilatoin;
21343 clear lto_stmt_uid.
21344 (cgraph_free_edge): Free indirect info.
21345 (cgraph_turn_edge_to_speculative): New function.
21346 (cgraph_speculative_call_info): New function.
21347 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21348 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21349 (dump_cgraph_node): Dump speculation.
21350 (verify_edge_count_and_frequency): Accept speculative edges.
21351 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21352 (verify_cgraph_node): Handle speculation.
21353 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21354 (cgraph_set_call_stmt): Update prototype.
21355 (cgraph_make_edge_direct): Update prototype.
21356 (cgraph_speculative_call_info): Declare.
21357 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21358 to change; update call of ipa_find_references.
21359 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21360 lto_stmt_uid and speculative flags.
21361 (ipa_dump_references): Dump speculation.
21362 (ipa_clone_references): Clone speculative flag.
21363 (ipa_clone_referring): Likewise.
21364 (ipa_clone_ref): New function.
21365 (ipa_find_reference): Look into lto_stmt_uids
21366 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21367 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21368 (ipa_find_reference): Update declaration.
21369 (ipa_clone_ref): Declare.
21370 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21371 stream speculative flag.
21372 (lto_output_ref): Stream statements uids and speculation.
21373 (input_ref): Likewise.
21374 (input_edge): Stream speuclation.
21375 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21376 (cgraph_set_call_stmt_including_clones): Handle speculation.
21377 * ipa-inline.c (heap_edge_removal_hook): New function.
21378 (inline_small_functions): Register it.
21379 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21380 also initialize refs.
21381 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21383 (try_make_edge_direct_simple_call): Likewise.
21384 (try_make_edge_direct_simple_call): Likewise.
21385 (update_indirect_edges_after_inlining): Likewise.
21386 (remove_described_reference): Look proper lto_stmt_uid.
21387 (propagate_controlled_uses): Likewise.
21388 (propagate_controlled_uses): Liekwise.
21389 * tree-inline.c (copy_bb): Copy speculative edges.
21390 (redirect_all_calls): New function.
21391 (copy_cfg_body): Do redirection after loop info is updated.
21392 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21394 2013-08-09 Jan Hubicka <jh@suse.cz>
21396 * lto-streamer-out.c (output_function): Renumber PHIs.
21397 * lto-streamer-in.c (input_function): Likewise.
21399 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21401 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21402 (get_lane_unsigned): Likewise.
21403 (dup_lane_scalar): Likewise.
21404 (get_lane): enable for VALL.
21405 * config/aarch64/aarch64-simd.md
21406 (aarch64_dup_lane_scalar<mode>): Remove.
21407 (aarch64_get_lane_signed<mode>): Likewise.
21408 (aarch64_get_lane_unsigned<mode>): Likewise.
21409 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21410 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21411 (aarch64_get_lane<mode>): Enable for all vector modes.
21412 (aarch64_get_lanedi): Remove misleading constraints.
21413 * config/aarch64/arm_neon.h
21414 (__aarch64_vget_lane_any): Define.
21415 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21416 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21417 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21418 * config/aarch64/iterators.md (VDQQH): New.
21419 (VDQQHS): Likewise.
21420 (vwcore): Likewise.
21422 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21424 * configure.ac: Add GAS check for LEON instructions on SPARC.
21425 * configure: Regenerate.
21426 * config.in: Likewise.
21427 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21429 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21430 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21432 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21433 (AS_LEON_FLAG): New macro.
21434 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21435 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21436 Deal with LEON and LEON3 for the memory model.
21437 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21438 (atomic_compare_and_swap<mode>_1): Likewise.
21439 (*atomic_compare_and_swap<mode>_1): Likewise.
21441 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21443 * config/arm/neon.md (vcond): Fix floating-point vector
21444 comparisons against 0.
21446 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21448 * lra-constraints.c (emit_spill_move): Remove assert.
21449 (process_alt_operands): Add more debugging
21450 output. Increase reject for spilling into memory. Decrease
21451 reject for reloading scratch.
21452 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21454 2013-08-08 Steve Ellcey <sellcey@mips.com>
21456 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21457 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21458 micromips incompatible. Add nan2008.
21459 (MULTILIB_DIRNAMES): Add nan2008.
21460 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21461 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21462 and micromips incompatible. Add nan2008.
21463 (MULTILIB_DIRNAMES): Add nan2008.
21464 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21466 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21468 PR rtl-optimization/58079
21469 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21470 simplify_comparison has widened a comparison with an integer.
21472 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21474 * config/arm/neon.md (movmisalign<mode>): Disable when we
21475 don't allow unaligned accesses.
21476 (*movmisalign<mode>_neon_store): Likewise.
21477 (*movmisalign<mode>_neon_load): Likewise.
21478 (*movmisalign<mode>_neon_store): Likewise.
21479 (*movmisalign<mode>_neon_load): Likewise.
21481 2013-08-08 Jan Hubicka <jh@suse.cz>
21483 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21484 (make_pass_rebuild_cgraph_edges): Also clear references.
21485 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21486 * ipa-inline-transform.c (inline_transform): Remove all references
21488 * cgraphunit.c (expand_function): Remove all references after
21490 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21491 (ipa_find_reference): Rewrite to iterator.
21492 (remove_stmt_references): Likewise.
21493 (ipa_clear_stmts_in_references): New function.
21494 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21495 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21497 * ipa-split.c (split_function): Remove references in split function.
21499 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21502 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21503 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21505 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21508 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21509 suggested mode for the assignment isn't compatible with the
21510 registers required.
21512 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21515 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21517 2013-08-07 Xinliang David Li <davidxl@google.com>
21519 * config/i386/i386.opt: New option -mtune-ctrl=.
21520 * config/i386/x86-tune.def: New file.
21521 * config/i386/i386.h: include x86-tune.def.
21522 * config/i386/i386.c (ix86_option_override_internal):
21523 Parsing -mtune-ctrl= option and set tune features.
21525 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21528 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21529 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21532 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21534 * rtl.h (update_alignments): Declare.
21535 * final.c (grow_label_align): New function extracted from...
21536 (shorten_branches): ...here. Call it.
21537 (update_alignments): New function.
21538 * reorg.c (sibling_labels): New variable.
21539 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21540 the new label along with it onto the sibling_labels vector.
21541 (fill_simple_delay_slots): Adjust call to get_label_before.
21542 (fill_slots_from_thread): Likewise.
21543 (relax_delay_slots): Likewise.
21544 (make_return_insns): Likewise.
21545 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21547 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21549 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21550 document its semantics.
21551 (diagnostic_report_diagnostic): Adjust accordingly.
21553 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21555 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21556 (sparc_option_override): ...and port to new C++ pass API.
21557 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21559 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21561 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21563 2013-08-06 Caroline Tice <cmtice@google.com>
21565 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21566 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21567 * tree-pass.h: Add pass_vtable_verify.
21568 * varasm.c (assemble_variable): Add code to properly set the comdat
21569 section and name for the .vtable_map_vars section.
21570 (assemble_vtyv_preinit_initializer): New function.
21571 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21573 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21574 * vtable-verify.c: New file.
21575 * vtable-verify.h: New file.
21576 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21577 initialiation levels.
21578 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21579 * passes.def: Insert pass_vtable_verify.
21580 * aclocal.m4: Reorder includes.
21581 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21582 -fvtv-counts options.
21583 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21584 as appropriate, if -fvtable-verify=... is used.
21585 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21586 -fvtable-verify=... is used.
21587 * Makefile.in (OBJS): Add vtable-verify.o to list.
21588 (vtable-verify.o): Add new build rule.
21589 (GTFILES): Add vtable-verify.c to list.
21590 * common.opt (fvtable-verify=): New flag.
21591 (vtv_priority): Values for fvtable-verify= flag.
21592 (fvtv-counts): New flag.
21593 (fvtv-debug): New flag.
21594 * tree.h (save_vtable_map_decl): New extern function decl.
21596 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21598 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21599 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21600 (pass_data_rl78_devirt): ...new pass_data instance and...
21601 (make_pass_rl78_devirt): ...new function.
21602 (rl78_asm_file_start): Port pass registration to new C++ API.
21604 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21606 * coretypes.h (rtl_opt_pass): Add.
21607 (gcc::context): Add.
21608 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21609 (epiphany_init): Port to new C++ pass API.
21610 (epiphany_optimize_mode_switching): Likewise.
21611 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21612 (pass_manager::get_pass_mode_switching): New.
21613 (pass_manager::get_pass_peephole2): New.
21614 * mode-switching.c (pass_mode_switching): Add clone method.
21615 * recog.c (pass_peephole2): Add clone method.
21616 (pass_split_all_insns): Add clone method.
21618 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21620 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21621 (mips_option_override): ...here, porting to new C++ API for passes.
21623 2013-08-06 Jan Hubicka <jh@suse.cz>
21625 * cgraph.c (cgraph_get_body): New function based on lto.c
21627 * cgraph.h (cgraph_get_body): Declare.
21628 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21630 * cgraphunit.c (expand_function): Get body prior expanding.
21631 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21632 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21634 * passes.c (do_per_function_toporder): Get body.
21635 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21636 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21638 2013-08-06 Martin Jambor <mjambor@suse.cz>
21641 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21642 is not re-finalized. Rename second parameter to no_collect.
21644 2013-08-06 Martin Jambor <mjambor@suse.cz>
21646 PR middle-end/58041
21647 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21648 MEM_REF has proper alignment information.
21650 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21653 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21655 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21656 rtx (*) (rtx, ...) with insn_gen_fn.
21657 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21658 insn_gen_fn::stored_funcptr. Add initializer braces.
21660 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21662 Rewrite how instances of passes are cloned to remove assumptions
21663 about their sizes (thus allowing pass subclasses to have
21664 additional data fields, albeit non-GC-managed ones at this point).
21666 * passes.c (make_pass_instance): Now that passes have clone
21667 methods, rewrite this function to eliminate XNEW and memcpy
21668 calls that used hardcoded sizes. Since this function no longer
21669 creates pass instances, rename it to...
21670 (add_pass_instance): ...this. Document the old way that passes were
21671 numbered and flagged, and rework this function to continue using it.
21672 (next_pass_1): Add an initial_pass argument for use by
21674 (position_pass): When adding multiple instances of a pass, use
21675 the pass's clone method, rather than relying on the XNEW/memcpy
21676 within the former make_pass_instance (now add_pass_instance).
21677 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21678 the initial instance of the current pass within the pass manager.
21680 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21682 This is the automated part of the conversion of passes from C
21683 structs to C++ classes.
21685 Patch autogenerated by refactor_passes.py from
21686 https://github.com/davidmalcolm/gcc-refactoring-scripts
21687 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21689 * asan.c (pass_asan): Convert from a global struct to a subclass of
21690 gimple_opt_pass along with...
21691 (pass_data_asan): ...new pass_data instance and...
21692 (make_pass_asan): ...new function.
21693 (pass_asan_O0): Convert from a global struct to a subclass of
21694 gimple_opt_pass along with...
21695 (pass_data_asan_O0): ...new pass_data instance and...
21696 (make_pass_asan_O0): ...new function.
21697 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21698 subclass of rtl_opt_pass along with...
21699 (pass_data_inc_dec): ...new pass_data instance and...
21700 (make_pass_inc_dec): ...new function.
21701 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21702 a subclass of rtl_opt_pass along with...
21703 (pass_data_reorder_blocks): ...new pass_data instance and...
21704 (make_pass_reorder_blocks): ...new function.
21705 (pass_duplicate_computed_gotos): Convert from a global struct to a
21706 subclass of rtl_opt_pass along with...
21707 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21708 (make_pass_duplicate_computed_gotos): ...new function.
21709 (pass_partition_blocks): Convert from a global struct to a subclass of
21710 rtl_opt_pass along with...
21711 (pass_data_partition_blocks): ...new pass_data instance and...
21712 (make_pass_partition_blocks): ...new function.
21713 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21714 struct to a subclass of rtl_opt_pass along with...
21715 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21717 (make_pass_branch_target_load_optimize1): ...new function.
21718 (pass_branch_target_load_optimize2): Convert from a global struct to a
21719 subclass of rtl_opt_pass along with...
21720 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21722 (make_pass_branch_target_load_optimize2): ...new function.
21723 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21724 of rtl_opt_pass along with...
21725 (pass_data_jump): ...new pass_data instance and...
21726 (make_pass_jump): ...new function.
21727 (pass_jump2): Convert from a global struct to a subclass of
21728 rtl_opt_pass along with...
21729 (pass_data_jump2): ...new pass_data instance and...
21730 (make_pass_jump2): ...new function.
21731 * cfgexpand.c (pass_expand): Convert from a global struct to a
21732 subclass of rtl_opt_pass along with...
21733 (pass_data_expand): ...new pass_data instance and...
21734 (make_pass_expand): ...new function.
21735 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21736 of rtl_opt_pass along with...
21737 (pass_data_free_cfg): ...new pass_data instance and...
21738 (make_pass_free_cfg): ...new function.
21739 (pass_into_cfg_layout_mode): Convert from a global struct to a
21740 subclass of rtl_opt_pass along with...
21741 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21742 (make_pass_into_cfg_layout_mode): ...new function.
21743 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21744 subclass of rtl_opt_pass along with...
21745 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21746 (make_pass_outof_cfg_layout_mode): ...new function.
21747 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21748 struct to a subclass of gimple_opt_pass along with...
21749 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21750 (make_pass_build_cgraph_edges): ...new function.
21751 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21752 subclass of gimple_opt_pass along with...
21753 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21754 (make_pass_rebuild_cgraph_edges): ...new function.
21755 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21756 subclass of gimple_opt_pass along with...
21757 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21759 (make_pass_remove_cgraph_callee_edges): ...new function.
21760 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21761 struct to a subclass of rtl_opt_pass along with...
21762 (pass_data_stack_adjustments): ...new pass_data instance and...
21763 (make_pass_stack_adjustments): ...new function.
21764 * combine.c (pass_combine): Convert from a global struct to a subclass
21765 of rtl_opt_pass along with...
21766 (pass_data_combine): ...new pass_data instance and...
21767 (make_pass_combine): ...new function.
21768 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21769 global struct to a subclass of rtl_opt_pass along with...
21770 (pass_data_compare_elim_after_reload): ...new pass_data instance
21772 (make_pass_compare_elim_after_reload): ...new function.
21773 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21774 of rtl_opt_pass along with...
21775 (pass_data_rtl_cprop): ...new pass_data instance and...
21776 (make_pass_rtl_cprop): ...new function.
21777 * cse.c (pass_cse): Convert from a global struct to a subclass of
21778 rtl_opt_pass along with...
21779 (pass_data_cse): ...new pass_data instance and...
21780 (make_pass_cse): ...new function.
21781 (pass_cse2): Convert from a global struct to a subclass of
21782 rtl_opt_pass along with...
21783 (pass_data_cse2): ...new pass_data instance and...
21784 (make_pass_cse2): ...new function.
21785 (pass_cse_after_global_opts): Convert from a global struct to a
21786 subclass of rtl_opt_pass along with...
21787 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21788 (make_pass_cse_after_global_opts): ...new function.
21789 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21790 of rtl_opt_pass along with...
21791 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21792 (make_pass_ud_rtl_dce): ...new function.
21793 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21794 rtl_opt_pass along with...
21795 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21796 (make_pass_fast_rtl_dce): ...new function.
21797 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21798 a subclass of rtl_opt_pass along with...
21799 (pass_data_df_initialize_opt): ...new pass_data instance and...
21800 (make_pass_df_initialize_opt): ...new function.
21801 (pass_df_initialize_no_opt): Convert from a global struct to a
21802 subclass of rtl_opt_pass along with...
21803 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21804 (make_pass_df_initialize_no_opt): ...new function.
21805 (pass_df_finish): Convert from a global struct to a subclass of
21806 rtl_opt_pass along with...
21807 (pass_data_df_finish): ...new pass_data instance and...
21808 (make_pass_df_finish): ...new function.
21809 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21810 rtl_opt_pass along with...
21811 (pass_data_rtl_dse1): ...new pass_data instance and...
21812 (make_pass_rtl_dse1): ...new function.
21813 (pass_rtl_dse2): Convert from a global struct to a subclass of
21814 rtl_opt_pass along with...
21815 (pass_data_rtl_dse2): ...new pass_data instance and...
21816 (make_pass_rtl_dse2): ...new function.
21817 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21818 subclass of rtl_opt_pass along with...
21819 (pass_data_dwarf2_frame): ...new pass_data instance and...
21820 (make_pass_dwarf2_frame): ...new function.
21821 * except.c (pass_set_nothrow_function_flags): Convert from a global
21822 struct to a subclass of rtl_opt_pass along with...
21823 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21825 (make_pass_set_nothrow_function_flags): ...new function.
21826 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21827 subclass of rtl_opt_pass along with...
21828 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21830 (make_pass_convert_to_eh_region_ranges): ...new function.
21831 * final.c (pass_compute_alignments): Convert from a global struct to a
21832 subclass of rtl_opt_pass along with...
21833 (pass_data_compute_alignments): ...new pass_data instance and...
21834 (make_pass_compute_alignments): ...new function.
21835 (pass_final): Convert from a global struct to a subclass of
21836 rtl_opt_pass along with...
21837 (pass_data_final): ...new pass_data instance and...
21838 (make_pass_final): ...new function.
21839 (pass_shorten_branches): Convert from a global struct to a subclass of
21840 rtl_opt_pass along with...
21841 (pass_data_shorten_branches): ...new pass_data instance and...
21842 (make_pass_shorten_branches): ...new function.
21843 (pass_clean_state): Convert from a global struct to a subclass of
21844 rtl_opt_pass along with...
21845 (pass_data_clean_state): ...new pass_data instance and...
21846 (make_pass_clean_state): ...new function.
21847 * function.c (pass_instantiate_virtual_regs): Convert from a global
21848 struct to a subclass of rtl_opt_pass along with...
21849 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21850 (make_pass_instantiate_virtual_regs): ...new function.
21851 (pass_leaf_regs): Convert from a global struct to a subclass of
21852 rtl_opt_pass along with...
21853 (pass_data_leaf_regs): ...new pass_data instance and...
21854 (make_pass_leaf_regs): ...new function.
21855 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21856 subclass of rtl_opt_pass along with...
21857 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21859 (make_pass_thread_prologue_and_epilogue): ...new function.
21860 (pass_match_asm_constraints): Convert from a global struct to a
21861 subclass of rtl_opt_pass along with...
21862 (pass_data_match_asm_constraints): ...new pass_data instance and...
21863 (make_pass_match_asm_constraints): ...new function.
21864 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21865 subclass of rtl_opt_pass along with...
21866 (pass_data_rtl_fwprop): ...new pass_data instance and...
21867 (make_pass_rtl_fwprop): ...new function.
21868 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21869 rtl_opt_pass along with...
21870 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21871 (make_pass_rtl_fwprop_addr): ...new function.
21872 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21873 rtl_opt_pass along with...
21874 (pass_data_rtl_pre): ...new pass_data instance and...
21875 (make_pass_rtl_pre): ...new function.
21876 (pass_rtl_hoist): Convert from a global struct to a subclass of
21877 rtl_opt_pass along with...
21878 (pass_data_rtl_hoist): ...new pass_data instance and...
21879 (make_pass_rtl_hoist): ...new function.
21880 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21881 subclass of gimple_opt_pass along with...
21882 (pass_data_lower_cf): ...new pass_data instance and...
21883 (make_pass_lower_cf): ...new function.
21884 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21885 from a global struct to a subclass of gimple_opt_pass along with...
21886 (pass_data_strength_reduction): ...new pass_data instance and...
21887 (make_pass_strength_reduction): ...new function.
21888 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21889 of rtl_opt_pass along with...
21890 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21891 (make_pass_rtl_ifcvt): ...new function.
21892 (pass_if_after_combine): Convert from a global struct to a subclass of
21893 rtl_opt_pass along with...
21894 (pass_data_if_after_combine): ...new pass_data instance and...
21895 (make_pass_if_after_combine): ...new function.
21896 (pass_if_after_reload): Convert from a global struct to a subclass of
21897 rtl_opt_pass along with...
21898 (pass_data_if_after_reload): ...new pass_data instance and...
21899 (make_pass_if_after_reload): ...new function.
21900 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21901 a subclass of rtl_opt_pass along with...
21902 (pass_data_initialize_regs): ...new pass_data instance and...
21903 (make_pass_initialize_regs): ...new function.
21904 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21905 of ipa_opt_pass_d along with...
21906 (pass_data_ipa_cp): ...new pass_data instance and...
21907 (make_pass_ipa_cp): ...new function.
21908 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21909 global struct to a subclass of gimple_opt_pass along with...
21910 (pass_data_inline_parameters): ...new pass_data instance and...
21911 (make_pass_inline_parameters): ...new function.
21912 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21913 subclass of gimple_opt_pass along with...
21914 (pass_data_early_inline): ...new pass_data instance and...
21915 (make_pass_early_inline): ...new function.
21916 (pass_ipa_inline): Convert from a global struct to a subclass of
21917 ipa_opt_pass_d along with...
21918 (pass_data_ipa_inline): ...new pass_data instance and...
21919 (make_pass_ipa_inline): ...new function.
21920 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21921 struct to a subclass of gimple_opt_pass along with...
21922 (pass_data_local_pure_const): ...new pass_data instance and...
21923 (make_pass_local_pure_const): ...new function.
21924 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21925 ipa_opt_pass_d along with...
21926 (pass_data_ipa_pure_const): ...new pass_data instance and...
21927 (make_pass_ipa_pure_const): ...new function.
21928 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21929 to a subclass of ipa_opt_pass_d along with...
21930 (pass_data_ipa_reference): ...new pass_data instance and...
21931 (make_pass_ipa_reference): ...new function.
21932 * ipa-split.c (pass_split_functions): Convert from a global struct to
21933 a subclass of gimple_opt_pass along with...
21934 (pass_data_split_functions): ...new pass_data instance and...
21935 (make_pass_split_functions): ...new function.
21936 (pass_feedback_split_functions): Convert from a global struct to a
21937 subclass of gimple_opt_pass along with...
21938 (pass_data_feedback_split_functions): ...new pass_data instance and...
21939 (make_pass_feedback_split_functions): ...new function.
21940 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21941 global struct to a subclass of simple_ipa_opt_pass along with...
21942 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21944 (make_pass_ipa_function_and_variable_visibility): ...new function.
21945 (pass_ipa_free_inline_summary): Convert from a global struct to a
21946 subclass of simple_ipa_opt_pass along with...
21947 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21948 (make_pass_ipa_free_inline_summary): ...new function.
21949 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21950 subclass of ipa_opt_pass_d along with...
21951 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21953 (make_pass_ipa_whole_program_visibility): ...new function.
21954 (pass_ipa_profile): Convert from a global struct to a subclass of
21955 ipa_opt_pass_d along with...
21956 (pass_data_ipa_profile): ...new pass_data instance and...
21957 (make_pass_ipa_profile): ...new function.
21958 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21959 ipa_opt_pass_d along with...
21960 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21961 (make_pass_ipa_cdtor_merge): ...new function.
21962 * ira.c (pass_ira): Convert from a global struct to a subclass of
21963 rtl_opt_pass along with...
21964 (pass_data_ira): ...new pass_data instance and...
21965 (make_pass_ira): ...new function.
21966 (pass_reload): Convert from a global struct to a subclass of
21967 rtl_opt_pass along with...
21968 (pass_data_reload): ...new pass_data instance and...
21969 (make_pass_reload): ...new function.
21970 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21971 subclass of rtl_opt_pass along with...
21972 (pass_data_cleanup_barriers): ...new pass_data instance and...
21973 (make_pass_cleanup_barriers): ...new function.
21974 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21975 of rtl_opt_pass along with...
21976 (pass_data_loop2): ...new pass_data instance and...
21977 (make_pass_loop2): ...new function.
21978 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21979 rtl_opt_pass along with...
21980 (pass_data_rtl_loop_init): ...new pass_data instance and...
21981 (make_pass_rtl_loop_init): ...new function.
21982 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21983 rtl_opt_pass along with...
21984 (pass_data_rtl_loop_done): ...new pass_data instance and...
21985 (make_pass_rtl_loop_done): ...new function.
21986 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21987 subclass of rtl_opt_pass along with...
21988 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21989 (make_pass_rtl_move_loop_invariants): ...new function.
21990 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21991 rtl_opt_pass along with...
21992 (pass_data_rtl_unswitch): ...new pass_data instance and...
21993 (make_pass_rtl_unswitch): ...new function.
21994 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21995 subclass of rtl_opt_pass along with...
21996 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21998 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21999 (pass_rtl_doloop): Convert from a global struct to a subclass of
22000 rtl_opt_pass along with...
22001 (pass_data_rtl_doloop): ...new pass_data instance and...
22002 (make_pass_rtl_doloop): ...new function.
22003 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22004 a subclass of rtl_opt_pass along with...
22005 (pass_data_lower_subreg): ...new pass_data instance and...
22006 (make_pass_lower_subreg): ...new function.
22007 (pass_lower_subreg2): Convert from a global struct to a subclass of
22008 rtl_opt_pass along with...
22009 (pass_data_lower_subreg2): ...new pass_data instance and...
22010 (make_pass_lower_subreg2): ...new function.
22011 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22012 struct to a subclass of ipa_opt_pass_d along with...
22013 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22014 (make_pass_ipa_lto_gimple_out): ...new function.
22015 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22016 of ipa_opt_pass_d along with...
22017 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22018 (make_pass_ipa_lto_finish_out): ...new function.
22019 * mode-switching.c (pass_mode_switching): Convert from a global struct
22020 to a subclass of rtl_opt_pass along with...
22021 (pass_data_mode_switching): ...new pass_data instance and...
22022 (make_pass_mode_switching): ...new function.
22023 * modulo-sched.c (pass_sms): Convert from a global struct to a
22024 subclass of rtl_opt_pass along with...
22025 (pass_data_sms): ...new pass_data instance and...
22026 (make_pass_sms): ...new function.
22027 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22028 subclass of gimple_opt_pass along with...
22029 (pass_data_expand_omp): ...new pass_data instance and...
22030 (make_pass_expand_omp): ...new function.
22031 (pass_lower_omp): Convert from a global struct to a subclass of
22032 gimple_opt_pass along with...
22033 (pass_data_lower_omp): ...new pass_data instance and...
22034 (make_pass_lower_omp): ...new function.
22035 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22036 of gimple_opt_pass along with...
22037 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22038 (make_pass_diagnose_omp_blocks): ...new function.
22039 * passes.c (pass_early_local_passes): Convert from a global struct to
22040 a subclass of simple_ipa_opt_pass along with...
22041 (pass_data_early_local_passes): ...new pass_data instance and...
22042 (make_pass_early_local_passes): ...new function.
22043 (pass_all_early_optimizations): Convert from a global struct to a
22044 subclass of gimple_opt_pass along with...
22045 (pass_data_all_early_optimizations): ...new pass_data instance and...
22046 (make_pass_all_early_optimizations): ...new function.
22047 (pass_all_optimizations): Convert from a global struct to a subclass
22048 of gimple_opt_pass along with...
22049 (pass_data_all_optimizations): ...new pass_data instance and...
22050 (make_pass_all_optimizations): ...new function.
22051 (pass_all_optimizations_g): Convert from a global struct to a subclass
22052 of gimple_opt_pass along with...
22053 (pass_data_all_optimizations_g): ...new pass_data instance and...
22054 (make_pass_all_optimizations_g): ...new function.
22055 (pass_rest_of_compilation): Convert from a global struct to a subclass
22056 of rtl_opt_pass along with...
22057 (pass_data_rest_of_compilation): ...new pass_data instance and...
22058 (make_pass_rest_of_compilation): ...new function.
22059 (pass_postreload): Convert from a global struct to a subclass of
22060 rtl_opt_pass along with...
22061 (pass_data_postreload): ...new pass_data instance and...
22062 (make_pass_postreload): ...new function.
22063 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22064 subclass of rtl_opt_pass along with...
22065 (pass_data_gcse2): ...new pass_data instance and...
22066 (make_pass_gcse2): ...new function.
22067 * postreload.c (pass_postreload_cse): Convert from a global struct to
22068 a subclass of rtl_opt_pass along with...
22069 (pass_data_postreload_cse): ...new pass_data instance and...
22070 (make_pass_postreload_cse): ...new function.
22071 * predict.c (pass_profile): Convert from a global struct to a subclass
22072 of gimple_opt_pass along with...
22073 (pass_data_profile): ...new pass_data instance and...
22074 (make_pass_profile): ...new function.
22075 (pass_strip_predict_hints): Convert from a global struct to a subclass
22076 of gimple_opt_pass along with...
22077 (pass_data_strip_predict_hints): ...new pass_data instance and...
22078 (make_pass_strip_predict_hints): ...new function.
22079 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22080 of rtl_opt_pass along with...
22081 (pass_data_peephole2): ...new pass_data instance and...
22082 (make_pass_peephole2): ...new function.
22083 (pass_split_all_insns): Convert from a global struct to a subclass of
22084 rtl_opt_pass along with...
22085 (pass_data_split_all_insns): ...new pass_data instance and...
22086 (make_pass_split_all_insns): ...new function.
22087 (pass_split_after_reload): Convert from a global struct to a subclass
22088 of rtl_opt_pass along with...
22089 (pass_data_split_after_reload): ...new pass_data instance and...
22090 (make_pass_split_after_reload): ...new function.
22091 (pass_split_before_regstack): Convert from a global struct to a
22092 subclass of rtl_opt_pass along with...
22093 (pass_data_split_before_regstack): ...new pass_data instance and...
22094 (make_pass_split_before_regstack): ...new function.
22095 (pass_split_before_sched2): Convert from a global struct to a subclass
22096 of rtl_opt_pass along with...
22097 (pass_data_split_before_sched2): ...new pass_data instance and...
22098 (make_pass_split_before_sched2): ...new function.
22099 (pass_split_for_shorten_branches): Convert from a global struct to a
22100 subclass of rtl_opt_pass along with...
22101 (pass_data_split_for_shorten_branches): ...new pass_data instance
22103 (make_pass_split_for_shorten_branches): ...new function.
22104 * ree.c (pass_ree): Convert from a global struct to a subclass of
22105 rtl_opt_pass along with...
22106 (pass_data_ree): ...new pass_data instance and...
22107 (make_pass_ree): ...new function.
22108 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22109 subclass of rtl_opt_pass along with...
22110 (pass_data_stack_regs): ...new pass_data instance and...
22111 (make_pass_stack_regs): ...new function.
22112 (pass_stack_regs_run): Convert from a global struct to a subclass of
22113 rtl_opt_pass along with...
22114 (pass_data_stack_regs_run): ...new pass_data instance and...
22115 (make_pass_stack_regs_run): ...new function.
22116 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22117 subclass of rtl_opt_pass along with...
22118 (pass_data_cprop_hardreg): ...new pass_data instance and...
22119 (make_pass_cprop_hardreg): ...new function.
22120 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22121 subclass of rtl_opt_pass along with...
22122 (pass_data_reginfo_init): ...new pass_data instance and...
22123 (make_pass_reginfo_init): ...new function.
22124 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22125 of rtl_opt_pass along with...
22126 (pass_data_regmove): ...new pass_data instance and...
22127 (make_pass_regmove): ...new function.
22128 * regrename.c (pass_regrename): Convert from a global struct to a
22129 subclass of rtl_opt_pass along with...
22130 (pass_data_regrename): ...new pass_data instance and...
22131 (make_pass_regrename): ...new function.
22132 * reorg.c (pass_delay_slots): Convert from a global struct to a
22133 subclass of rtl_opt_pass along with...
22134 (pass_data_delay_slots): ...new pass_data instance and...
22135 (make_pass_delay_slots): ...new function.
22136 (pass_machine_reorg): Convert from a global struct to a subclass of
22137 rtl_opt_pass along with...
22138 (pass_data_machine_reorg): ...new pass_data instance and...
22139 (make_pass_machine_reorg): ...new function.
22140 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22141 of rtl_opt_pass along with...
22142 (pass_data_sched): ...new pass_data instance and...
22143 (make_pass_sched): ...new function.
22144 (pass_sched2): Convert from a global struct to a subclass of
22145 rtl_opt_pass along with...
22146 (pass_data_sched2): ...new pass_data instance and...
22147 (make_pass_sched2): ...new function.
22148 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22149 to a subclass of rtl_opt_pass along with...
22150 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22151 (make_pass_stack_ptr_mod): ...new function.
22152 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22153 to a subclass of rtl_opt_pass along with...
22154 (pass_data_rtl_store_motion): ...new pass_data instance and...
22155 (make_pass_rtl_store_motion): ...new function.
22156 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22157 of gimple_opt_pass along with...
22158 (pass_data_tracer): ...new pass_data instance and...
22159 (make_pass_tracer): ...new function.
22160 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22161 to a subclass of gimple_opt_pass along with...
22162 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22163 (make_pass_diagnose_tm_blocks): ...new function.
22164 (pass_lower_tm): Convert from a global struct to a subclass of
22165 gimple_opt_pass along with...
22166 (pass_data_lower_tm): ...new pass_data instance and...
22167 (make_pass_lower_tm): ...new function.
22168 (pass_tm_init): Convert from a global struct to a subclass of
22169 gimple_opt_pass along with...
22170 (pass_data_tm_init): ...new pass_data instance and...
22171 (make_pass_tm_init): ...new function.
22172 (pass_tm_mark): Convert from a global struct to a subclass of
22173 gimple_opt_pass along with...
22174 (pass_data_tm_mark): ...new pass_data instance and...
22175 (make_pass_tm_mark): ...new function.
22176 (pass_tm_edges): Convert from a global struct to a subclass of
22177 gimple_opt_pass along with...
22178 (pass_data_tm_edges): ...new pass_data instance and...
22179 (make_pass_tm_edges): ...new function.
22180 (pass_tm_memopt): Convert from a global struct to a subclass of
22181 gimple_opt_pass along with...
22182 (pass_data_tm_memopt): ...new pass_data instance and...
22183 (make_pass_tm_memopt): ...new function.
22184 (pass_ipa_tm): Convert from a global struct to a subclass of
22185 simple_ipa_opt_pass along with...
22186 (pass_data_ipa_tm): ...new pass_data instance and...
22187 (make_pass_ipa_tm): ...new function.
22188 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22189 subclass of gimple_opt_pass along with...
22190 (pass_data_call_cdce): ...new pass_data instance and...
22191 (make_pass_call_cdce): ...new function.
22192 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22193 subclass of gimple_opt_pass along with...
22194 (pass_data_build_cfg): ...new pass_data instance and...
22195 (make_pass_build_cfg): ...new function.
22196 (pass_split_crit_edges): Convert from a global struct to a subclass of
22197 gimple_opt_pass along with...
22198 (pass_data_split_crit_edges): ...new pass_data instance and...
22199 (make_pass_split_crit_edges): ...new function.
22200 (pass_warn_function_return): Convert from a global struct to a
22201 subclass of gimple_opt_pass along with...
22202 (pass_data_warn_function_return): ...new pass_data instance and...
22203 (make_pass_warn_function_return): ...new function.
22204 (pass_warn_function_noreturn): Convert from a global struct to a
22205 subclass of gimple_opt_pass along with...
22206 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22207 (make_pass_warn_function_noreturn): ...new function.
22208 (pass_warn_unused_result): Convert from a global struct to a subclass
22209 of gimple_opt_pass along with...
22210 (pass_data_warn_unused_result): ...new pass_data instance and...
22211 (make_pass_warn_unused_result): ...new function.
22212 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22213 a subclass of gimple_opt_pass along with...
22214 (pass_data_merge_phi): ...new pass_data instance and...
22215 (make_pass_merge_phi): ...new function.
22216 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22217 a subclass of gimple_opt_pass along with...
22218 (pass_data_lower_complex): ...new pass_data instance and...
22219 (make_pass_lower_complex): ...new function.
22220 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22221 gimple_opt_pass along with...
22222 (pass_data_lower_complex_O0): ...new pass_data instance and...
22223 (make_pass_lower_complex_O0): ...new function.
22224 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22225 subclass of gimple_opt_pass along with...
22226 (pass_data_lower_eh): ...new pass_data instance and...
22227 (make_pass_lower_eh): ...new function.
22228 (pass_refactor_eh): Convert from a global struct to a subclass of
22229 gimple_opt_pass along with...
22230 (pass_data_refactor_eh): ...new pass_data instance and...
22231 (make_pass_refactor_eh): ...new function.
22232 (pass_lower_resx): Convert from a global struct to a subclass of
22233 gimple_opt_pass along with...
22234 (pass_data_lower_resx): ...new pass_data instance and...
22235 (make_pass_lower_resx): ...new function.
22236 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22237 of gimple_opt_pass along with...
22238 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22239 (make_pass_lower_eh_dispatch): ...new function.
22240 (pass_cleanup_eh): Convert from a global struct to a subclass of
22241 gimple_opt_pass along with...
22242 (pass_data_cleanup_eh): ...new pass_data instance and...
22243 (make_pass_cleanup_eh): ...new function.
22244 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22245 to a subclass of simple_ipa_opt_pass along with...
22246 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22247 (make_pass_ipa_lower_emutls): ...new function.
22248 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22249 a subclass of gimple_opt_pass along with...
22250 (pass_data_if_conversion): ...new pass_data instance and...
22251 (make_pass_if_conversion): ...new function.
22252 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22253 subclass of gimple_opt_pass along with...
22254 (pass_data_build_ssa): ...new pass_data instance and...
22255 (make_pass_build_ssa): ...new function.
22256 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22257 global struct to a subclass of gimple_opt_pass along with...
22258 (pass_data_loop_distribution): ...new pass_data instance and...
22259 (make_pass_loop_distribution): ...new function.
22260 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22261 subclass of gimple_opt_pass along with...
22262 (pass_data_mudflap_1): ...new pass_data instance and...
22263 (make_pass_mudflap_1): ...new function.
22264 (pass_mudflap_2): Convert from a global struct to a subclass of
22265 gimple_opt_pass along with...
22266 (pass_data_mudflap_2): ...new pass_data instance and...
22267 (make_pass_mudflap_2): ...new function.
22268 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22269 subclass of gimple_opt_pass along with...
22270 (pass_data_mudflap_1): ...new pass_data instance and...
22271 (make_pass_mudflap_1): ...new function.
22272 (pass_mudflap_2): Convert from a global struct to a subclass of
22273 gimple_opt_pass along with...
22274 (pass_data_mudflap_2): ...new pass_data instance and...
22275 (make_pass_mudflap_2): ...new function.
22276 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22277 gimple_opt_pass along with...
22278 (pass_data_nrv): ...new pass_data instance and...
22279 (make_pass_nrv): ...new function.
22280 (pass_return_slot): Convert from a global struct to a subclass of
22281 gimple_opt_pass along with...
22282 (pass_data_return_slot): ...new pass_data instance and...
22283 (make_pass_return_slot): ...new function.
22284 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22285 to a subclass of gimple_opt_pass along with...
22286 (pass_data_object_sizes): ...new pass_data instance and...
22287 (make_pass_object_sizes): ...new function.
22288 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22289 global struct to a subclass of gimple_opt_pass along with...
22290 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22292 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22293 (pass_fixup_cfg): Convert from a global struct to a subclass of
22294 gimple_opt_pass along with...
22295 (pass_data_fixup_cfg): ...new pass_data instance and...
22296 (make_pass_fixup_cfg): ...new function.
22297 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22298 (make_pass_mudflap_1): ...new function.
22299 (pass_mudflap_2): Replace declaration with that of...
22300 (make_pass_mudflap_2): ...new function.
22301 (pass_asan): Replace declaration with that of...
22302 (make_pass_asan): ...new function.
22303 (pass_asan_O0): Replace declaration with that of...
22304 (make_pass_asan_O0): ...new function.
22305 (pass_tsan): Replace declaration with that of...
22306 (make_pass_tsan): ...new function.
22307 (pass_tsan_O0): Replace declaration with that of...
22308 (make_pass_tsan_O0): ...new function.
22309 (pass_lower_cf): Replace declaration with that of...
22310 (make_pass_lower_cf): ...new function.
22311 (pass_refactor_eh): Replace declaration with that of...
22312 (make_pass_refactor_eh): ...new function.
22313 (pass_lower_eh): Replace declaration with that of...
22314 (make_pass_lower_eh): ...new function.
22315 (pass_lower_eh_dispatch): Replace declaration with that of...
22316 (make_pass_lower_eh_dispatch): ...new function.
22317 (pass_lower_resx): Replace declaration with that of...
22318 (make_pass_lower_resx): ...new function.
22319 (pass_build_cfg): Replace declaration with that of...
22320 (make_pass_build_cfg): ...new function.
22321 (pass_early_tree_profile): Replace declaration with that of...
22322 (make_pass_early_tree_profile): ...new function.
22323 (pass_cleanup_eh): Replace declaration with that of...
22324 (make_pass_cleanup_eh): ...new function.
22325 (pass_sra): Replace declaration with that of...
22326 (make_pass_sra): ...new function.
22327 (pass_sra_early): Replace declaration with that of...
22328 (make_pass_sra_early): ...new function.
22329 (pass_early_ipa_sra): Replace declaration with that of...
22330 (make_pass_early_ipa_sra): ...new function.
22331 (pass_tail_recursion): Replace declaration with that of...
22332 (make_pass_tail_recursion): ...new function.
22333 (pass_tail_calls): Replace declaration with that of...
22334 (make_pass_tail_calls): ...new function.
22335 (pass_tree_loop): Replace declaration with that of...
22336 (make_pass_tree_loop): ...new function.
22337 (pass_tree_loop_init): Replace declaration with that of...
22338 (make_pass_tree_loop_init): ...new function.
22339 (pass_lim): Replace declaration with that of...
22340 (make_pass_lim): ...new function.
22341 (pass_tree_unswitch): Replace declaration with that of...
22342 (make_pass_tree_unswitch): ...new function.
22343 (pass_predcom): Replace declaration with that of...
22344 (make_pass_predcom): ...new function.
22345 (pass_iv_canon): Replace declaration with that of...
22346 (make_pass_iv_canon): ...new function.
22347 (pass_scev_cprop): Replace declaration with that of...
22348 (make_pass_scev_cprop): ...new function.
22349 (pass_empty_loop): Replace declaration with that of...
22350 (make_pass_empty_loop): ...new function.
22351 (pass_record_bounds): Replace declaration with that of...
22352 (make_pass_record_bounds): ...new function.
22353 (pass_graphite): Replace declaration with that of...
22354 (make_pass_graphite): ...new function.
22355 (pass_graphite_transforms): Replace declaration with that of...
22356 (make_pass_graphite_transforms): ...new function.
22357 (pass_if_conversion): Replace declaration with that of...
22358 (make_pass_if_conversion): ...new function.
22359 (pass_loop_distribution): Replace declaration with that of...
22360 (make_pass_loop_distribution): ...new function.
22361 (pass_vectorize): Replace declaration with that of...
22362 (make_pass_vectorize): ...new function.
22363 (pass_slp_vectorize): Replace declaration with that of...
22364 (make_pass_slp_vectorize): ...new function.
22365 (pass_complete_unroll): Replace declaration with that of...
22366 (make_pass_complete_unroll): ...new function.
22367 (pass_complete_unrolli): Replace declaration with that of...
22368 (make_pass_complete_unrolli): ...new function.
22369 (pass_parallelize_loops): Replace declaration with that of...
22370 (make_pass_parallelize_loops): ...new function.
22371 (pass_loop_prefetch): Replace declaration with that of...
22372 (make_pass_loop_prefetch): ...new function.
22373 (pass_iv_optimize): Replace declaration with that of...
22374 (make_pass_iv_optimize): ...new function.
22375 (pass_tree_loop_done): Replace declaration with that of...
22376 (make_pass_tree_loop_done): ...new function.
22377 (pass_ch): Replace declaration with that of...
22378 (make_pass_ch): ...new function.
22379 (pass_ccp): Replace declaration with that of...
22380 (make_pass_ccp): ...new function.
22381 (pass_phi_only_cprop): Replace declaration with that of...
22382 (make_pass_phi_only_cprop): ...new function.
22383 (pass_build_ssa): Replace declaration with that of...
22384 (make_pass_build_ssa): ...new function.
22385 (pass_build_alias): Replace declaration with that of...
22386 (make_pass_build_alias): ...new function.
22387 (pass_build_ealias): Replace declaration with that of...
22388 (make_pass_build_ealias): ...new function.
22389 (pass_dominator): Replace declaration with that of...
22390 (make_pass_dominator): ...new function.
22391 (pass_dce): Replace declaration with that of...
22392 (make_pass_dce): ...new function.
22393 (pass_dce_loop): Replace declaration with that of...
22394 (make_pass_dce_loop): ...new function.
22395 (pass_cd_dce): Replace declaration with that of...
22396 (make_pass_cd_dce): ...new function.
22397 (pass_call_cdce): Replace declaration with that of...
22398 (make_pass_call_cdce): ...new function.
22399 (pass_merge_phi): Replace declaration with that of...
22400 (make_pass_merge_phi): ...new function.
22401 (pass_split_crit_edges): Replace declaration with that of...
22402 (make_pass_split_crit_edges): ...new function.
22403 (pass_pre): Replace declaration with that of...
22404 (make_pass_pre): ...new function.
22405 (pass_profile): Replace declaration with that of...
22406 (make_pass_profile): ...new function.
22407 (pass_strip_predict_hints): Replace declaration with that of...
22408 (make_pass_strip_predict_hints): ...new function.
22409 (pass_lower_complex_O0): Replace declaration with that of...
22410 (make_pass_lower_complex_O0): ...new function.
22411 (pass_lower_complex): Replace declaration with that of...
22412 (make_pass_lower_complex): ...new function.
22413 (pass_lower_vector): Replace declaration with that of...
22414 (make_pass_lower_vector): ...new function.
22415 (pass_lower_vector_ssa): Replace declaration with that of...
22416 (make_pass_lower_vector_ssa): ...new function.
22417 (pass_lower_omp): Replace declaration with that of...
22418 (make_pass_lower_omp): ...new function.
22419 (pass_diagnose_omp_blocks): Replace declaration with that of...
22420 (make_pass_diagnose_omp_blocks): ...new function.
22421 (pass_expand_omp): Replace declaration with that of...
22422 (make_pass_expand_omp): ...new function.
22423 (pass_expand_omp_ssa): Replace declaration with that of...
22424 (make_pass_expand_omp_ssa): ...new function.
22425 (pass_object_sizes): Replace declaration with that of...
22426 (make_pass_object_sizes): ...new function.
22427 (pass_strlen): Replace declaration with that of...
22428 (make_pass_strlen): ...new function.
22429 (pass_fold_builtins): Replace declaration with that of...
22430 (make_pass_fold_builtins): ...new function.
22431 (pass_stdarg): Replace declaration with that of...
22432 (make_pass_stdarg): ...new function.
22433 (pass_early_warn_uninitialized): Replace declaration with that of...
22434 (make_pass_early_warn_uninitialized): ...new function.
22435 (pass_late_warn_uninitialized): Replace declaration with that of...
22436 (make_pass_late_warn_uninitialized): ...new function.
22437 (pass_cse_reciprocals): Replace declaration with that of...
22438 (make_pass_cse_reciprocals): ...new function.
22439 (pass_cse_sincos): Replace declaration with that of...
22440 (make_pass_cse_sincos): ...new function.
22441 (pass_optimize_bswap): Replace declaration with that of...
22442 (make_pass_optimize_bswap): ...new function.
22443 (pass_optimize_widening_mul): Replace declaration with that of...
22444 (make_pass_optimize_widening_mul): ...new function.
22445 (pass_warn_function_return): Replace declaration with that of...
22446 (make_pass_warn_function_return): ...new function.
22447 (pass_warn_function_noreturn): Replace declaration with that of...
22448 (make_pass_warn_function_noreturn): ...new function.
22449 (pass_cselim): Replace declaration with that of...
22450 (make_pass_cselim): ...new function.
22451 (pass_phiopt): Replace declaration with that of...
22452 (make_pass_phiopt): ...new function.
22453 (pass_forwprop): Replace declaration with that of...
22454 (make_pass_forwprop): ...new function.
22455 (pass_phiprop): Replace declaration with that of...
22456 (make_pass_phiprop): ...new function.
22457 (pass_tree_ifcombine): Replace declaration with that of...
22458 (make_pass_tree_ifcombine): ...new function.
22459 (pass_dse): Replace declaration with that of...
22460 (make_pass_dse): ...new function.
22461 (pass_nrv): Replace declaration with that of...
22462 (make_pass_nrv): ...new function.
22463 (pass_rename_ssa_copies): Replace declaration with that of...
22464 (make_pass_rename_ssa_copies): ...new function.
22465 (pass_sink_code): Replace declaration with that of...
22466 (make_pass_sink_code): ...new function.
22467 (pass_fre): Replace declaration with that of...
22468 (make_pass_fre): ...new function.
22469 (pass_check_data_deps): Replace declaration with that of...
22470 (make_pass_check_data_deps): ...new function.
22471 (pass_copy_prop): Replace declaration with that of...
22472 (make_pass_copy_prop): ...new function.
22473 (pass_vrp): Replace declaration with that of...
22474 (make_pass_vrp): ...new function.
22475 (pass_uncprop): Replace declaration with that of...
22476 (make_pass_uncprop): ...new function.
22477 (pass_return_slot): Replace declaration with that of...
22478 (make_pass_return_slot): ...new function.
22479 (pass_reassoc): Replace declaration with that of...
22480 (make_pass_reassoc): ...new function.
22481 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22482 (make_pass_rebuild_cgraph_edges): ...new function.
22483 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22484 (make_pass_remove_cgraph_callee_edges): ...new function.
22485 (pass_build_cgraph_edges): Replace declaration with that of...
22486 (make_pass_build_cgraph_edges): ...new function.
22487 (pass_local_pure_const): Replace declaration with that of...
22488 (make_pass_local_pure_const): ...new function.
22489 (pass_tracer): Replace declaration with that of...
22490 (make_pass_tracer): ...new function.
22491 (pass_warn_unused_result): Replace declaration with that of...
22492 (make_pass_warn_unused_result): ...new function.
22493 (pass_diagnose_tm_blocks): Replace declaration with that of...
22494 (make_pass_diagnose_tm_blocks): ...new function.
22495 (pass_lower_tm): Replace declaration with that of...
22496 (make_pass_lower_tm): ...new function.
22497 (pass_tm_init): Replace declaration with that of...
22498 (make_pass_tm_init): ...new function.
22499 (pass_tm_mark): Replace declaration with that of...
22500 (make_pass_tm_mark): ...new function.
22501 (pass_tm_memopt): Replace declaration with that of...
22502 (make_pass_tm_memopt): ...new function.
22503 (pass_tm_edges): Replace declaration with that of...
22504 (make_pass_tm_edges): ...new function.
22505 (pass_split_functions): Replace declaration with that of...
22506 (make_pass_split_functions): ...new function.
22507 (pass_feedback_split_functions): Replace declaration with that of...
22508 (make_pass_feedback_split_functions): ...new function.
22509 (pass_strength_reduction): Replace declaration with that of...
22510 (make_pass_strength_reduction): ...new function.
22511 (pass_ipa_lower_emutls): Replace declaration with that of...
22512 (make_pass_ipa_lower_emutls): ...new function.
22513 (pass_ipa_function_and_variable_visibility): Replace declaration with
22515 (make_pass_ipa_function_and_variable_visibility): ...new function.
22516 (pass_ipa_tree_profile): Replace declaration with that of...
22517 (make_pass_ipa_tree_profile): ...new function.
22518 (pass_early_local_passes): Replace declaration with that of...
22519 (make_pass_early_local_passes): ...new function.
22520 (pass_ipa_whole_program_visibility): Replace declaration with that
22522 (make_pass_ipa_whole_program_visibility): ...new function.
22523 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22524 (make_pass_ipa_lto_gimple_out): ...new function.
22525 (pass_ipa_increase_alignment): Replace declaration with that of...
22526 (make_pass_ipa_increase_alignment): ...new function.
22527 (pass_ipa_inline): Replace declaration with that of...
22528 (make_pass_ipa_inline): ...new function.
22529 (pass_ipa_free_lang_data): Replace declaration with that of...
22530 (make_pass_ipa_free_lang_data): ...new function.
22531 (pass_ipa_free_inline_summary): Replace declaration with that of...
22532 (make_pass_ipa_free_inline_summary): ...new function.
22533 (pass_ipa_cp): Replace declaration with that of...
22534 (make_pass_ipa_cp): ...new function.
22535 (pass_ipa_reference): Replace declaration with that of...
22536 (make_pass_ipa_reference): ...new function.
22537 (pass_ipa_pure_const): Replace declaration with that of...
22538 (make_pass_ipa_pure_const): ...new function.
22539 (pass_ipa_pta): Replace declaration with that of...
22540 (make_pass_ipa_pta): ...new function.
22541 (pass_ipa_lto_finish_out): Replace declaration with that of...
22542 (make_pass_ipa_lto_finish_out): ...new function.
22543 (pass_ipa_tm): Replace declaration with that of...
22544 (make_pass_ipa_tm): ...new function.
22545 (pass_ipa_profile): Replace declaration with that of...
22546 (make_pass_ipa_profile): ...new function.
22547 (pass_ipa_cdtor_merge): Replace declaration with that of...
22548 (make_pass_ipa_cdtor_merge): ...new function.
22549 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22551 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22552 (pass_init_datastructures): Replace declaration with that of...
22553 (make_pass_init_datastructures): ...new function.
22554 (pass_fixup_cfg): Replace declaration with that of...
22555 (make_pass_fixup_cfg): ...new function.
22556 (pass_expand): Replace declaration with that of...
22557 (make_pass_expand): ...new function.
22558 (pass_instantiate_virtual_regs): Replace declaration with that of...
22559 (make_pass_instantiate_virtual_regs): ...new function.
22560 (pass_rtl_fwprop): Replace declaration with that of...
22561 (make_pass_rtl_fwprop): ...new function.
22562 (pass_rtl_fwprop_addr): Replace declaration with that of...
22563 (make_pass_rtl_fwprop_addr): ...new function.
22564 (pass_jump): Replace declaration with that of...
22565 (make_pass_jump): ...new function.
22566 (pass_jump2): Replace declaration with that of...
22567 (make_pass_jump2): ...new function.
22568 (pass_lower_subreg): Replace declaration with that of...
22569 (make_pass_lower_subreg): ...new function.
22570 (pass_cse): Replace declaration with that of...
22571 (make_pass_cse): ...new function.
22572 (pass_fast_rtl_dce): Replace declaration with that of...
22573 (make_pass_fast_rtl_dce): ...new function.
22574 (pass_ud_rtl_dce): Replace declaration with that of...
22575 (make_pass_ud_rtl_dce): ...new function.
22576 (pass_rtl_dce): Replace declaration with that of...
22577 (make_pass_rtl_dce): ...new function.
22578 (pass_rtl_dse1): Replace declaration with that of...
22579 (make_pass_rtl_dse1): ...new function.
22580 (pass_rtl_dse2): Replace declaration with that of...
22581 (make_pass_rtl_dse2): ...new function.
22582 (pass_rtl_dse3): Replace declaration with that of...
22583 (make_pass_rtl_dse3): ...new function.
22584 (pass_rtl_cprop): Replace declaration with that of...
22585 (make_pass_rtl_cprop): ...new function.
22586 (pass_rtl_pre): Replace declaration with that of...
22587 (make_pass_rtl_pre): ...new function.
22588 (pass_rtl_hoist): Replace declaration with that of...
22589 (make_pass_rtl_hoist): ...new function.
22590 (pass_rtl_store_motion): Replace declaration with that of...
22591 (make_pass_rtl_store_motion): ...new function.
22592 (pass_cse_after_global_opts): Replace declaration with that of...
22593 (make_pass_cse_after_global_opts): ...new function.
22594 (pass_rtl_ifcvt): Replace declaration with that of...
22595 (make_pass_rtl_ifcvt): ...new function.
22596 (pass_into_cfg_layout_mode): Replace declaration with that of...
22597 (make_pass_into_cfg_layout_mode): ...new function.
22598 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22599 (make_pass_outof_cfg_layout_mode): ...new function.
22600 (pass_loop2): Replace declaration with that of...
22601 (make_pass_loop2): ...new function.
22602 (pass_rtl_loop_init): Replace declaration with that of...
22603 (make_pass_rtl_loop_init): ...new function.
22604 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22605 (make_pass_rtl_move_loop_invariants): ...new function.
22606 (pass_rtl_unswitch): Replace declaration with that of...
22607 (make_pass_rtl_unswitch): ...new function.
22608 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22609 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22610 (pass_rtl_doloop): Replace declaration with that of...
22611 (make_pass_rtl_doloop): ...new function.
22612 (pass_rtl_loop_done): Replace declaration with that of...
22613 (make_pass_rtl_loop_done): ...new function.
22614 (pass_web): Replace declaration with that of...
22615 (make_pass_web): ...new function.
22616 (pass_cse2): Replace declaration with that of...
22617 (make_pass_cse2): ...new function.
22618 (pass_df_initialize_opt): Replace declaration with that of...
22619 (make_pass_df_initialize_opt): ...new function.
22620 (pass_df_initialize_no_opt): Replace declaration with that of...
22621 (make_pass_df_initialize_no_opt): ...new function.
22622 (pass_reginfo_init): Replace declaration with that of...
22623 (make_pass_reginfo_init): ...new function.
22624 (pass_inc_dec): Replace declaration with that of...
22625 (make_pass_inc_dec): ...new function.
22626 (pass_stack_ptr_mod): Replace declaration with that of...
22627 (make_pass_stack_ptr_mod): ...new function.
22628 (pass_initialize_regs): Replace declaration with that of...
22629 (make_pass_initialize_regs): ...new function.
22630 (pass_combine): Replace declaration with that of...
22631 (make_pass_combine): ...new function.
22632 (pass_if_after_combine): Replace declaration with that of...
22633 (make_pass_if_after_combine): ...new function.
22634 (pass_ree): Replace declaration with that of...
22635 (make_pass_ree): ...new function.
22636 (pass_partition_blocks): Replace declaration with that of...
22637 (make_pass_partition_blocks): ...new function.
22638 (pass_match_asm_constraints): Replace declaration with that of...
22639 (make_pass_match_asm_constraints): ...new function.
22640 (pass_regmove): Replace declaration with that of...
22641 (make_pass_regmove): ...new function.
22642 (pass_split_all_insns): Replace declaration with that of...
22643 (make_pass_split_all_insns): ...new function.
22644 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22645 (make_pass_fast_rtl_byte_dce): ...new function.
22646 (pass_lower_subreg2): Replace declaration with that of...
22647 (make_pass_lower_subreg2): ...new function.
22648 (pass_mode_switching): Replace declaration with that of...
22649 (make_pass_mode_switching): ...new function.
22650 (pass_sms): Replace declaration with that of...
22651 (make_pass_sms): ...new function.
22652 (pass_sched): Replace declaration with that of...
22653 (make_pass_sched): ...new function.
22654 (pass_ira): Replace declaration with that of...
22655 (make_pass_ira): ...new function.
22656 (pass_reload): Replace declaration with that of...
22657 (make_pass_reload): ...new function.
22658 (pass_clean_state): Replace declaration with that of...
22659 (make_pass_clean_state): ...new function.
22660 (pass_branch_prob): Replace declaration with that of...
22661 (make_pass_branch_prob): ...new function.
22662 (pass_value_profile_transformations): Replace declaration with that
22664 (make_pass_value_profile_transformations): ...new function.
22665 (pass_postreload_cse): Replace declaration with that of...
22666 (make_pass_postreload_cse): ...new function.
22667 (pass_gcse2): Replace declaration with that of...
22668 (make_pass_gcse2): ...new function.
22669 (pass_split_after_reload): Replace declaration with that of...
22670 (make_pass_split_after_reload): ...new function.
22671 (pass_branch_target_load_optimize1): Replace declaration with that
22673 (make_pass_branch_target_load_optimize1): ...new function.
22674 (pass_thread_prologue_and_epilogue): Replace declaration with that
22676 (make_pass_thread_prologue_and_epilogue): ...new function.
22677 (pass_stack_adjustments): Replace declaration with that of...
22678 (make_pass_stack_adjustments): ...new function.
22679 (pass_peephole2): Replace declaration with that of...
22680 (make_pass_peephole2): ...new function.
22681 (pass_if_after_reload): Replace declaration with that of...
22682 (make_pass_if_after_reload): ...new function.
22683 (pass_regrename): Replace declaration with that of...
22684 (make_pass_regrename): ...new function.
22685 (pass_cprop_hardreg): Replace declaration with that of...
22686 (make_pass_cprop_hardreg): ...new function.
22687 (pass_reorder_blocks): Replace declaration with that of...
22688 (make_pass_reorder_blocks): ...new function.
22689 (pass_branch_target_load_optimize2): Replace declaration with that
22691 (make_pass_branch_target_load_optimize2): ...new function.
22692 (pass_leaf_regs): Replace declaration with that of...
22693 (make_pass_leaf_regs): ...new function.
22694 (pass_split_before_sched2): Replace declaration with that of...
22695 (make_pass_split_before_sched2): ...new function.
22696 (pass_compare_elim_after_reload): Replace declaration with that of...
22697 (make_pass_compare_elim_after_reload): ...new function.
22698 (pass_sched2): Replace declaration with that of...
22699 (make_pass_sched2): ...new function.
22700 (pass_stack_regs): Replace declaration with that of...
22701 (make_pass_stack_regs): ...new function.
22702 (pass_stack_regs_run): Replace declaration with that of...
22703 (make_pass_stack_regs_run): ...new function.
22704 (pass_df_finish): Replace declaration with that of...
22705 (make_pass_df_finish): ...new function.
22706 (pass_compute_alignments): Replace declaration with that of...
22707 (make_pass_compute_alignments): ...new function.
22708 (pass_duplicate_computed_gotos): Replace declaration with that of...
22709 (make_pass_duplicate_computed_gotos): ...new function.
22710 (pass_variable_tracking): Replace declaration with that of...
22711 (make_pass_variable_tracking): ...new function.
22712 (pass_free_cfg): Replace declaration with that of...
22713 (make_pass_free_cfg): ...new function.
22714 (pass_machine_reorg): Replace declaration with that of...
22715 (make_pass_machine_reorg): ...new function.
22716 (pass_cleanup_barriers): Replace declaration with that of...
22717 (make_pass_cleanup_barriers): ...new function.
22718 (pass_delay_slots): Replace declaration with that of...
22719 (make_pass_delay_slots): ...new function.
22720 (pass_split_for_shorten_branches): Replace declaration with that of...
22721 (make_pass_split_for_shorten_branches): ...new function.
22722 (pass_split_before_regstack): Replace declaration with that of...
22723 (make_pass_split_before_regstack): ...new function.
22724 (pass_convert_to_eh_region_ranges): Replace declaration with that
22726 (make_pass_convert_to_eh_region_ranges): ...new function.
22727 (pass_shorten_branches): Replace declaration with that of...
22728 (make_pass_shorten_branches): ...new function.
22729 (pass_set_nothrow_function_flags): Replace declaration with that of...
22730 (make_pass_set_nothrow_function_flags): ...new function.
22731 (pass_dwarf2_frame): Replace declaration with that of...
22732 (make_pass_dwarf2_frame): ...new function.
22733 (pass_final): Replace declaration with that of...
22734 (make_pass_final): ...new function.
22735 (pass_rtl_seqabstr): Replace declaration with that of...
22736 (make_pass_rtl_seqabstr): ...new function.
22737 (pass_release_ssa_names): Replace declaration with that of...
22738 (make_pass_release_ssa_names): ...new function.
22739 (pass_early_inline): Replace declaration with that of...
22740 (make_pass_early_inline): ...new function.
22741 (pass_inline_parameters): Replace declaration with that of...
22742 (make_pass_inline_parameters): ...new function.
22743 (pass_update_address_taken): Replace declaration with that of...
22744 (make_pass_update_address_taken): ...new function.
22745 (pass_convert_switch): Replace declaration with that of...
22746 (make_pass_convert_switch): ...new function.
22747 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22748 to a subclass of simple_ipa_opt_pass along with...
22749 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22750 (make_pass_ipa_tree_profile): ...new function.
22751 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22752 subclass of gimple_opt_pass along with...
22753 (pass_data_sra_early): ...new pass_data instance and...
22754 (make_pass_sra_early): ...new function.
22755 (pass_sra): Convert from a global struct to a subclass of
22756 gimple_opt_pass along with...
22757 (pass_data_sra): ...new pass_data instance and...
22758 (make_pass_sra): ...new function.
22759 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22760 gimple_opt_pass along with...
22761 (pass_data_early_ipa_sra): ...new pass_data instance and...
22762 (make_pass_early_ipa_sra): ...new function.
22763 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22764 subclass of gimple_opt_pass along with...
22765 (pass_data_ccp): ...new pass_data instance and...
22766 (make_pass_ccp): ...new function.
22767 (pass_fold_builtins): Convert from a global struct to a subclass of
22768 gimple_opt_pass along with...
22769 (pass_data_fold_builtins): ...new pass_data instance and...
22770 (make_pass_fold_builtins): ...new function.
22771 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22772 subclass of gimple_opt_pass along with...
22773 (pass_data_copy_prop): ...new pass_data instance and...
22774 (make_pass_copy_prop): ...new function.
22775 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22776 global struct to a subclass of gimple_opt_pass along with...
22777 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22778 (make_pass_rename_ssa_copies): ...new function.
22779 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22780 subclass of gimple_opt_pass along with...
22781 (pass_data_dce): ...new pass_data instance and...
22782 (make_pass_dce): ...new function.
22783 (pass_dce_loop): Convert from a global struct to a subclass of
22784 gimple_opt_pass along with...
22785 (pass_data_dce_loop): ...new pass_data instance and...
22786 (make_pass_dce_loop): ...new function.
22787 (pass_cd_dce): Convert from a global struct to a subclass of
22788 gimple_opt_pass along with...
22789 (pass_data_cd_dce): ...new pass_data instance and...
22790 (make_pass_cd_dce): ...new function.
22791 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22792 subclass of gimple_opt_pass along with...
22793 (pass_data_dominator): ...new pass_data instance and...
22794 (make_pass_dominator): ...new function.
22795 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22796 gimple_opt_pass along with...
22797 (pass_data_phi_only_cprop): ...new pass_data instance and...
22798 (make_pass_phi_only_cprop): ...new function.
22799 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22800 subclass of gimple_opt_pass along with...
22801 (pass_data_dse): ...new pass_data instance and...
22802 (make_pass_dse): ...new function.
22803 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22804 a subclass of gimple_opt_pass along with...
22805 (pass_data_forwprop): ...new pass_data instance and...
22806 (make_pass_forwprop): ...new function.
22807 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22808 struct to a subclass of gimple_opt_pass along with...
22809 (pass_data_tree_ifcombine): ...new pass_data instance and...
22810 (make_pass_tree_ifcombine): ...new function.
22811 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22812 subclass of gimple_opt_pass along with...
22813 (pass_data_ch): ...new pass_data instance and...
22814 (make_pass_ch): ...new function.
22815 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22816 subclass of gimple_opt_pass along with...
22817 (pass_data_tree_loop): ...new pass_data instance and...
22818 (make_pass_tree_loop): ...new function.
22819 (pass_tree_loop_init): Convert from a global struct to a subclass of
22820 gimple_opt_pass along with...
22821 (pass_data_tree_loop_init): ...new pass_data instance and...
22822 (make_pass_tree_loop_init): ...new function.
22823 (pass_lim): Convert from a global struct to a subclass of
22824 gimple_opt_pass along with...
22825 (pass_data_lim): ...new pass_data instance and...
22826 (make_pass_lim): ...new function.
22827 (pass_tree_unswitch): Convert from a global struct to a subclass of
22828 gimple_opt_pass along with...
22829 (pass_data_tree_unswitch): ...new pass_data instance and...
22830 (make_pass_tree_unswitch): ...new function.
22831 (pass_predcom): Convert from a global struct to a subclass of
22832 gimple_opt_pass along with...
22833 (pass_data_predcom): ...new pass_data instance and...
22834 (make_pass_predcom): ...new function.
22835 (pass_vectorize): Convert from a global struct to a subclass of
22836 gimple_opt_pass along with...
22837 (pass_data_vectorize): ...new pass_data instance and...
22838 (make_pass_vectorize): ...new function.
22839 (pass_graphite): Convert from a global struct to a subclass of
22840 gimple_opt_pass along with...
22841 (pass_data_graphite): ...new pass_data instance and...
22842 (make_pass_graphite): ...new function.
22843 (pass_graphite_transforms): Convert from a global struct to a subclass
22844 of gimple_opt_pass along with...
22845 (pass_data_graphite_transforms): ...new pass_data instance and...
22846 (make_pass_graphite_transforms): ...new function.
22847 (pass_check_data_deps): Convert from a global struct to a subclass of
22848 gimple_opt_pass along with...
22849 (pass_data_check_data_deps): ...new pass_data instance and...
22850 (make_pass_check_data_deps): ...new function.
22851 (pass_iv_canon): Convert from a global struct to a subclass of
22852 gimple_opt_pass along with...
22853 (pass_data_iv_canon): ...new pass_data instance and...
22854 (make_pass_iv_canon): ...new function.
22855 (pass_scev_cprop): Convert from a global struct to a subclass of
22856 gimple_opt_pass along with...
22857 (pass_data_scev_cprop): ...new pass_data instance and...
22858 (make_pass_scev_cprop): ...new function.
22859 (pass_record_bounds): Convert from a global struct to a subclass of
22860 gimple_opt_pass along with...
22861 (pass_data_record_bounds): ...new pass_data instance and...
22862 (make_pass_record_bounds): ...new function.
22863 (pass_complete_unroll): Convert from a global struct to a subclass of
22864 gimple_opt_pass along with...
22865 (pass_data_complete_unroll): ...new pass_data instance and...
22866 (make_pass_complete_unroll): ...new function.
22867 (pass_complete_unrolli): Convert from a global struct to a subclass of
22868 gimple_opt_pass along with...
22869 (pass_data_complete_unrolli): ...new pass_data instance and...
22870 (make_pass_complete_unrolli): ...new function.
22871 (pass_parallelize_loops): Convert from a global struct to a subclass
22872 of gimple_opt_pass along with...
22873 (pass_data_parallelize_loops): ...new pass_data instance and...
22874 (make_pass_parallelize_loops): ...new function.
22875 (pass_loop_prefetch): Convert from a global struct to a subclass of
22876 gimple_opt_pass along with...
22877 (pass_data_loop_prefetch): ...new pass_data instance and...
22878 (make_pass_loop_prefetch): ...new function.
22879 (pass_iv_optimize): Convert from a global struct to a subclass of
22880 gimple_opt_pass along with...
22881 (pass_data_iv_optimize): ...new pass_data instance and...
22882 (make_pass_iv_optimize): ...new function.
22883 (pass_tree_loop_done): Convert from a global struct to a subclass of
22884 gimple_opt_pass along with...
22885 (pass_data_tree_loop_done): ...new pass_data instance and...
22886 (make_pass_tree_loop_done): ...new function.
22887 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22888 struct to a subclass of gimple_opt_pass along with...
22889 (pass_data_cse_reciprocals): ...new pass_data instance and...
22890 (make_pass_cse_reciprocals): ...new function.
22891 (pass_cse_sincos): Convert from a global struct to a subclass of
22892 gimple_opt_pass along with...
22893 (pass_data_cse_sincos): ...new pass_data instance and...
22894 (make_pass_cse_sincos): ...new function.
22895 (pass_optimize_bswap): Convert from a global struct to a subclass of
22896 gimple_opt_pass along with...
22897 (pass_data_optimize_bswap): ...new pass_data instance and...
22898 (make_pass_optimize_bswap): ...new function.
22899 (pass_optimize_widening_mul): Convert from a global struct to a
22900 subclass of gimple_opt_pass along with...
22901 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22902 (make_pass_optimize_widening_mul): ...new function.
22903 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22904 subclass of gimple_opt_pass along with...
22905 (pass_data_phiopt): ...new pass_data instance and...
22906 (make_pass_phiopt): ...new function.
22907 (pass_cselim): Convert from a global struct to a subclass of
22908 gimple_opt_pass along with...
22909 (pass_data_cselim): ...new pass_data instance and...
22910 (make_pass_cselim): ...new function.
22911 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22912 subclass of gimple_opt_pass along with...
22913 (pass_data_phiprop): ...new pass_data instance and...
22914 (make_pass_phiprop): ...new function.
22915 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22916 subclass of gimple_opt_pass along with...
22917 (pass_data_pre): ...new pass_data instance and...
22918 (make_pass_pre): ...new function.
22919 (pass_fre): Convert from a global struct to a subclass of
22920 gimple_opt_pass along with...
22921 (pass_data_fre): ...new pass_data instance and...
22922 (make_pass_fre): ...new function.
22923 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22924 subclass of gimple_opt_pass along with...
22925 (pass_data_reassoc): ...new pass_data instance and...
22926 (make_pass_reassoc): ...new function.
22927 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22928 subclass of gimple_opt_pass along with...
22929 (pass_data_sink_code): ...new pass_data instance and...
22930 (make_pass_sink_code): ...new function.
22931 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22932 subclass of gimple_opt_pass along with...
22933 (pass_data_strlen): ...new pass_data instance and...
22934 (make_pass_strlen): ...new function.
22935 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22936 struct to a subclass of gimple_opt_pass along with...
22937 (pass_data_build_alias): ...new pass_data instance and...
22938 (make_pass_build_alias): ...new function.
22939 (pass_build_ealias): Convert from a global struct to a subclass of
22940 gimple_opt_pass along with...
22941 (pass_data_build_ealias): ...new pass_data instance and...
22942 (make_pass_build_ealias): ...new function.
22943 (pass_ipa_pta): Convert from a global struct to a subclass of
22944 simple_ipa_opt_pass along with...
22945 (pass_data_ipa_pta): ...new pass_data instance and...
22946 (make_pass_ipa_pta): ...new function.
22947 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22948 subclass of gimple_opt_pass along with...
22949 (pass_data_uncprop): ...new pass_data instance and...
22950 (make_pass_uncprop): ...new function.
22951 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22952 global struct to a subclass of gimple_opt_pass along with...
22953 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22954 (make_pass_late_warn_uninitialized): ...new function.
22955 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22956 to a subclass of gimple_opt_pass along with...
22957 (pass_data_init_datastructures): ...new pass_data instance and...
22958 (make_pass_init_datastructures): ...new function.
22959 (pass_early_warn_uninitialized): Convert from a global struct to a
22960 subclass of gimple_opt_pass along with...
22961 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22962 (make_pass_early_warn_uninitialized): ...new function.
22963 (pass_update_address_taken): Convert from a global struct to a
22964 subclass of gimple_opt_pass along with...
22965 (pass_data_update_address_taken): ...new pass_data instance and...
22966 (make_pass_update_address_taken): ...new function.
22967 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22968 struct to a subclass of gimple_opt_pass along with...
22969 (pass_data_release_ssa_names): ...new pass_data instance and...
22970 (make_pass_release_ssa_names): ...new function.
22971 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22972 subclass of gimple_opt_pass along with...
22973 (pass_data_stdarg): ...new pass_data instance and...
22974 (make_pass_stdarg): ...new function.
22975 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22976 global struct to a subclass of gimple_opt_pass along with...
22977 (pass_data_convert_switch): ...new pass_data instance and...
22978 (make_pass_convert_switch): ...new function.
22979 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22980 to a subclass of gimple_opt_pass along with...
22981 (pass_data_tail_recursion): ...new pass_data instance and...
22982 (make_pass_tail_recursion): ...new function.
22983 (pass_tail_calls): Convert from a global struct to a subclass of
22984 gimple_opt_pass along with...
22985 (pass_data_tail_calls): ...new pass_data instance and...
22986 (make_pass_tail_calls): ...new function.
22987 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22988 struct to a subclass of gimple_opt_pass along with...
22989 (pass_data_lower_vector): ...new pass_data instance and...
22990 (make_pass_lower_vector): ...new function.
22991 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22992 gimple_opt_pass along with...
22993 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22994 (make_pass_lower_vector_ssa): ...new function.
22995 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22996 to a subclass of gimple_opt_pass along with...
22997 (pass_data_slp_vectorize): ...new pass_data instance and...
22998 (make_pass_slp_vectorize): ...new function.
22999 (pass_ipa_increase_alignment): Convert from a global struct to a
23000 subclass of simple_ipa_opt_pass along with...
23001 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23002 (make_pass_ipa_increase_alignment): ...new function.
23003 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23004 gimple_opt_pass along with...
23005 (pass_data_vrp): ...new pass_data instance and...
23006 (make_pass_vrp): ...new function.
23007 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23008 subclass of simple_ipa_opt_pass along with...
23009 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23010 (make_pass_ipa_free_lang_data): ...new function.
23011 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23012 gimple_opt_pass along with...
23013 (pass_data_tsan): ...new pass_data instance and...
23014 (make_pass_tsan): ...new function.
23015 (pass_tsan_O0): Convert from a global struct to a subclass of
23016 gimple_opt_pass along with...
23017 (pass_data_tsan_O0): ...new pass_data instance and...
23018 (make_pass_tsan_O0): ...new function.
23019 * var-tracking.c (pass_variable_tracking): Convert from a global
23020 struct to a subclass of rtl_opt_pass along with...
23021 (pass_data_variable_tracking): ...new pass_data instance and...
23022 (make_pass_variable_tracking): ...new function.
23023 * web.c (pass_web): Convert from a global struct to a subclass of
23024 rtl_opt_pass along with...
23025 (pass_data_web): ...new pass_data instance and...
23026 (make_pass_web): ...new function.
23027 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23028 declaration with that of...
23029 (make_pass_mode_switch_use): ...new function.
23030 (pass_resolve_sw_modes): Replace declaration with that of...
23031 (make_pass_resolve_sw_modes): ...new function.
23032 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23033 from a global struct to a subclass of rtl_opt_pass along with...
23034 (pass_data_mode_switch_use): ...new pass_data instance and...
23035 (make_pass_mode_switch_use): ...new function.
23036 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23037 from a global struct to a subclass of rtl_opt_pass along with...
23038 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23039 (make_pass_resolve_sw_modes): ...new function.
23040 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23041 struct to a subclass of rtl_opt_pass along with...
23042 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23043 (make_pass_insert_vzeroupper): ...new function.
23044 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23045 global struct to a subclass of rtl_opt_pass along with...
23046 (pass_data_work_around_errata): ...new pass_data instance and...
23047 (make_pass_work_around_errata): ...new function.
23048 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23049 struct to a subclass of rtl_opt_pass along with...
23050 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23051 (make_pass_mips_machine_reorg2): ...new function.
23053 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23055 * passes.c (pass_manager::operator new): New.
23057 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23059 Handwritten part of conversion of passes to C++ classes.
23061 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23062 (toplev.o): Add dep on PASS_MANAGER_H.
23063 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23064 of early local pases to reflect this moving from a global to a
23065 member of gcc::pass_manager.
23066 (cgraph_add_new_function): Likewise.
23067 * lto-cgraph.c (lto_output_node): Update for conversion of
23068 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23069 * passes.c (opt_pass::clone): New.
23070 (opt_pass::gate): New.
23071 (opt_pass::execute): New.
23072 (opt_pass::opt_pass): New.
23073 (pass_manager::execute_early_local_passes): New.
23074 (pass_manager::execute_pass_mode_switching): new.
23075 (finish_optimization_passes): Convert to...
23076 (pass_manager::finish_optimization_passes): ...this.
23077 (finish_optimization_passes): Update for conversion of passes to
23079 (register_dump_files_1): Use has_gate since we cannot portably
23080 check a vtable entry against NULL.
23081 (dump_one_pass): Likewise.
23082 (ipa_write_summaries_2): Likewise.
23083 (ipa_write_optimization_summaries_1): Likewise.
23084 (ipa_read_summaries_1): Likewise.
23085 (ipa_read_optimization_summaries_1): Likewise.
23086 (execute_ipa_stmt_fixups): Likewise.
23087 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23088 pass-creation functions rather than wiring up globals, and
23089 storing the results in fields of pass_manager generated using
23090 pass-instances.def.
23091 (pass_manager::dump_profile_report): Update for conversion of
23092 passes to C++ classes.
23093 (pass_manager::execute_ipa_summary_passes): Likewise.
23094 (execute_one_ipa_transform_pass): Likewise.
23095 (execute_one_pass): Use has_gate and has_execute since we cannot
23096 portably check a vtable entry against NULL.
23097 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23098 (pass_manager): Use pass-instances.def to add fields for the
23099 various pass instances.
23100 * toplev.c (finalize): Update for move of
23101 finish_optimization_passes to a method of gcc::pass_manager.
23102 * toplev.h (finish_optimization_passes): Move to method of class
23104 * tree-pass.h (struct pass_data): New.
23105 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23106 (opt_pass::gate): Convert to virtual function.
23107 (opt_pass::~opt_pass): New.
23108 (opt_pass::clone): New.
23109 (opt_pass::execute): Convert to virtual function.
23110 (opt_pass::opt_pass): New.
23111 (opt_pass::ctxt_): new.
23112 (gimple_opt_pass): Convert to subclass of opt_pass.
23113 (gimple_opt_pass::gimple_opt_pass): New.
23114 (rtl_opt_pass): Convert to subclass of opt_pass.
23115 (rtl_opt_pass::rtl_opt_pass): New.
23116 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23117 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23118 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23119 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23120 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23121 invocation of pass_mode_switching to reflect this moving from a
23122 global to a member of gcc::pass_manager.
23123 (ix86_option_override): Rework how pass_insert_vzeroupper is
23124 added to the pass_manager to reflect autogenerated changes.
23125 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23127 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23129 PR rtl-optimization/57708
23130 * recog.c (peep2_find_free_register): Validate all regs in a
23133 2013-08-05 Jan Hubicka <jh@suse.cz>
23136 * cgraph.c (verify_cgraph_node): Accept local flags from other
23138 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23139 (function_and_variable_visibility): Likewise.
23140 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23142 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23144 * graph.c (init_graph_slim_pretty_print): Remove.
23145 (print_graph_cfg): Do not call it. Use local pretty printer.
23146 (start_graph_dump): Likewise.
23148 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23150 * gimple-pretty-print.c (buffer): Remove.
23151 (initialized): Likewise.
23152 (maybe_init_pretty_print): Likewise.
23153 (print_gimple_stmt): Do not call it. Use non-static local
23154 pretty_printer variable.
23155 (print_gimple_expr): Likewise.
23156 (print_gimple_seq): Likewise.
23157 (gimple_dump_bb): Likewise.
23159 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23161 * asan.c (asan_pp): Remove.
23162 (asan_pp_initialized): Likewise.
23163 (asan_pp_initialize): Likewise.
23164 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23165 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23166 (asan_add_global): Likewise.
23168 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23170 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23171 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23172 * pretty-print.c (pp_formatted_text_data): Likewise.
23173 (pp_indent): Rename from pp_base_indent.
23174 (pp_format): Rename from pp_base_format.
23175 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23176 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23177 (pp_flush): Rename from pp_base_flush.
23178 (pp_set_line_maximum_length): Rename from
23179 pp_base_set_line_maximum_length.
23180 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23181 (pp_set_prefix): Rename from pp_base_set_prefix.
23182 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23183 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23184 (pp_append_text): Rename from pp_base_append_text.
23185 (pp_formatted_text): Rename from pp_base_formatted_text.
23186 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23187 (pp_remaining_character_count_for_line): Rename from
23188 pp_base_remaining_character_count_for_line.
23189 (pp_newline): Rename from pp_base_newline.
23190 (pp_character): Rename from pp_base_character.
23191 (pp_string): Rename from pp_base_string.
23192 (pp_maybe_space): Rename from pp_base_maybe_space.
23193 * asan.c (asan_pp_string): Adjust.
23194 (asan_emit_stack_protection): Likewise.
23195 (asan_add_global): Likewise.
23196 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23197 * tree-mudflap.c (mf_varname_tree): Likewise.
23198 * tree-pretty-print.c (pp_tree_identifier): Rename from
23199 pp_base_tree_identifier.
23200 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23201 Declare as function.
23203 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23205 * pretty-print.h (pp_bar_bar): New.
23206 (pp_ampersand_ampersand): Likewise.
23207 (pp_less_equal): Likewise.
23208 (pp_greater_equal): Likewise.
23209 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23210 printer functions instead of pp_string or operators and punctuators.
23211 (dump_gimple_call): Likewise.
23212 (dump_gimple_omp_for): Likewise.
23213 (dump_gimple_transaction): Likewise.
23214 (dump_gimple_phi): Likewise.
23215 (pp_gimple_stmt_1): Likewise.
23216 * sched-vis.c (print_insn): Likewise.
23217 * tree-mudflap.c (mf_varname_tree): Likewise.
23218 * tree-pretty-print.c (dump_block_node): Likewise.
23219 (dump_generic_node): Likewise.
23221 2013-08-02 Jan Hubicka <jh@suse.cz>
23223 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23225 * lto-streamer-out.c (tree_is_indexable): Results decls and
23226 parm decls are not indexable.
23227 (DFS_write_tree_body): Do not follow args and results.
23228 (hash_tree): Likewise.
23229 (output_functions): Rearrange so struct function is needed
23230 only when real body is output; be able to also ouptut abstract
23231 functions; output DECL_ARGUMENTS and DECL_RESULT.
23232 (lto_output): When not in WPA, ale store abstract functions.
23233 (write_symbol): Do not care about RESULT_DECL.
23234 (output_symbol_p): Handle correctly sbtract decls.
23235 * lto-streamer-in.c (input_function): Rearrange so struct
23236 function can be NULL at entry; allow streaming of
23237 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23238 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23239 sanity check during LTO.
23240 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23241 RESULT_DECl and DECL_ARGUMENTS.
23242 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23245 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23247 * pretty-print.h (pp_underscore): New.
23249 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23250 printer functions instead of pp_character.
23251 (dump_binary_rhs): Likewise.
23252 (dump_ternary_rhs): Likewise.
23253 (dump_gimple_call_args): Likewise.
23254 (pp_points_to_solution): Likewise.
23255 (dump_gimple_call): Likewise.
23256 (dump_gimple_switch): Likewise.
23257 (dump_gimple_cond): Likewise.
23258 (dump_gimple_bind): Likewise.
23259 (dump_gimple_try): Likewise.
23260 (dump_gimple_omp_for): Likewise.
23261 (dump_gimple_omp_continue): Likewise.
23262 (dump_gimple_omp_single): Likewise.
23263 (dump_gimple_omp_sections): Likewise.
23264 (dump_gimple_omp_block): Likewise.
23265 (dump_gimple_omp_critical): Likewise.
23266 (dump_gimple_transaction): Likewise.
23267 (dump_gimple_asm): Likewise.
23268 (dump_gimple_phi): Likewise.
23269 (dump_gimple_omp_parallel): Likewise.
23270 (dump_gimple_omp_task): Likewise.
23271 (dump_gimple_omp_atomic_load): Likewise.
23272 (dump_gimple_omp_atomic_store): Likewise.
23273 (dump_gimple_mem_ops): Likewise.
23274 (pp_gimple_stmt_1): Likewise.
23275 (pp_cfg_jump): Likewise.
23276 (dump_implicit_edges): Likewise.
23277 (gimple_dump_bb_for_graph): Likewise.
23278 * graph.c (draw_cfg_node): Likewise.
23279 * langhooks.c (lhd_print_error_function): Likewise.
23280 * sched-vis.c (print_exp): Likewise.
23281 (print_value): Likewise.
23282 (print_pattern): Likewise.
23283 (print_insn): Likewise.
23284 (rtl_dump_bb_for_graph): Likewise.
23285 * tree-pretty-print.c (dump_function_declaration): Likewise.
23286 (dump_array_domain): Likewise.
23287 (dump_omp_clause): Likewise.
23288 (dump_location): Likewise.
23289 (dump_generic_node): Likewise.
23290 (print_struct_decl): Likewise.
23291 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23293 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23295 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23296 candidate table when replacing a candidate statement.
23297 (replace_rhs_if_not_dup): Likewise.
23298 (replace_one_candidate): Likewise.
23300 2013-08-02 Jan Hubicka <jh@suse.cz>
23301 Martin Liska <marxin.liska@gmail.com>
23303 * cgraphunit.c (add_new_function): Fix logic when adding from
23305 (assemble_thunk): Rename to ...
23306 (expand_thunk); .. this one; export; get it working with
23307 general functions; make produced gimple valid.
23308 * cgraph.h (expand_thunk): Declare.
23310 2013-08-02 Jan Hubicka <jh@suse.cz>
23312 * ipa-cp.c (gather_context_independent_values): Use
23313 ipa_get_param_move_cost.
23314 (get_replacement_map): Remove PARAM; move parameter folding
23316 (create_specialized_node): Update.
23317 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23318 assert that we have gimple body; update move_cost.
23319 (count_formal_params): Assert that we have gimple body.
23320 (ipa_dump_param): New function.
23321 (ipa_alloc_node_params): Break out from ...
23322 (ipa_initialize_node_params): ... here.
23323 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23324 (ipa_write_node_info): Stream move costs.
23325 (ipa_read_node_info): Read move costs.
23326 (ipa_update_after_lto_read): Do not recompute node params.
23327 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23328 (ipa_get_param): Check we are not in WPA.
23329 (ipa_get_param_move_cost): New.
23330 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23331 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23332 parm numbers to be present.
23334 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23336 PR rtl-optimization/58048
23337 * lra-constraints.c (process_alt_operands): Don't check asm
23338 operand on register.
23340 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23342 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23343 the implied StoreLoad barrier for atomic operations if before.
23345 2013-08-02 Jan Hubicka <jh@suse.cz>
23346 Martin Liska <marxin.liska@gmail.com>
23348 * cgraph.c (cgraph_function_body_availability): Do not check
23350 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23351 symtab_node_availability): Declare.
23352 * ipa.c (can_replace_by_local_alias): New.
23353 (function_and_variable_visibility): Use it.
23354 * symtab.c (symtab_for_node_and_aliases,
23355 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23357 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23359 PR rtl-optimization/57963
23360 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23361 (lra_constraints): Use them.
23363 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23365 * config/arm/types.md (define_attr "type"): Add "load_acq"
23367 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23369 (cortex_a53_store1): Likewise.
23371 2013-08-01 Jan Hubicka <jh@suse.cz>
23373 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23374 partitions are not needed.
23376 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23378 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23379 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23380 MAYBE_NON_Q_CLASS_P where appropriate.
23382 2013-08-01 Jan Hubicka <jh@suse.cz>
23384 * cgraph.h (release_function_body): Declare.
23385 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23386 of unused delcarations.
23388 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23390 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23391 RTL form when subtracting a constant.
23393 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23395 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23396 Generate canonical plus rtx with negated immediate instead of minus
23398 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23400 2013-08-01 Jan Hubicka <jh@suse.cz>
23402 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23403 (cgraph_release_function_body): Likewise.
23404 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23405 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23406 to used_as_abstract_origin.
23407 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23408 symbols used as abstract origins.
23409 * cgraphunit.c (analyze_functions): Update.
23410 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23411 used_as_abstract_origin.
23412 * tree-inline.c (tree_function_versioning): Update
23413 used_as_abstract_origin; be ready for DECL_RESULT and
23414 DECL_ARGUMENTS to be NULL.
23416 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23417 for abstract functions.
23418 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23421 2013-08-01 Jan Hubicka <jh@suse.cz>
23423 * profile.c (compute_value_histograms): Fix thinko.
23425 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23427 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23428 aarch-common-protos.h to extra_headers.
23429 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23430 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23431 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23433 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23435 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23436 Include "../arm/types.md". Define "type" attribute for all patterns.
23437 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23440 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23442 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23443 to support power8 load fusion.
23444 (fusion_gpr_mem_load): Likewise.
23446 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23448 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23449 declarations for power8 load fusion.
23450 (emit_fusion_gpr_load): Likewise.
23452 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23453 tuning for power8, turn on fusion mode by default. Turn on sign
23454 extending fusion mode if normal fusion mode is on, and we are at
23456 (fusion_gpr_load_p): New function, return true if we can fuse an
23457 addis instruction with a dependent load to a GPR.
23458 (emit_fusion_gpr_load): Emit the instructions for power8 load
23461 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23462 (VSX load fusion peepholes): New peepholes to fuse together an
23463 addi instruction with a VSX load instruction.
23465 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23466 peepholes to fuse an addis instruction with a load to a GPR base
23467 register. If we are supporting sign extending fusions, convert
23468 sign extending loads to zero extending loads and add an explicit
23471 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23473 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23474 aarch-common-protos.h to extra_headers.
23475 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23476 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23477 (arm_early_store_addr_dep): Likewise.
23478 (arm_no_early_alu_shift_dep): Likewise.
23479 (arm_no_early_alu_shift_value_dep): Likewise.
23480 (arm_no_early_mul_dep): Likewise.
23481 (arm_no_early_store_addr_dep): Likewise.
23482 (arm_mac_accumulator_is_mul_result): Likewise.
23483 (arm_mac_accumulator_is_result): Likewise.
23484 * config/arm/aarch-common.c: ... here. New file.
23485 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23487 (arm_early_store_addr_dep): Likewise.
23488 (arm_no_early_alu_shift_dep): Likewise.
23489 (arm_no_early_alu_shift_value_dep): Likewise.
23490 (arm_no_early_mul_dep): Likewise.
23491 (arm_no_early_store_addr_dep): Likewise.
23492 (arm_mac_accumulator_is_mul_result): Likewise.
23493 (arm_mac_accumulator_is_result): Likewise.
23494 * config/arm/aarch-common-protos.h: ... here. New file.
23495 * config/arm/t-arm (aarch-common.o): Define.
23497 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23499 * config/arm/arm.md: Include new file "types.md".
23500 (define_attr "type"): Move from here to ...
23501 (define_attr "mul32"): Likewise.
23502 (define_attr "mul64"): Likewise.
23503 * config/arm/types.md: ... here. New file.
23505 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23507 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23508 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23510 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23512 * gen-pass-instances.awk: Fix offset of substr().
23514 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23516 * Makefile.in (pass-instances.def): New.
23517 (passes.o): Replace dependency on passes.def with one on
23520 * gen-pass-instances.awk: New.
23522 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23523 rather than passes.def, updating local definition of NEXT_PASS
23524 macro to add an extra NUM parameter (currently unused).
23526 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23528 * Makefile.in (PASS_MANAGER_H): New.
23529 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23530 (passes.o): Likewise.
23531 (statistics.o): Likewise.
23532 (cgraphunit.o): Likewise.
23533 (context.o): Depend on PASS_MANAGER_H.
23535 * pass_manager.h: New.
23537 * cgraphunit.c (cgraph_add_new_function): Update for moves
23538 of globals to fields of pass_manager.
23539 (analyze_function): Likewise.
23540 (expand_function): Likewise.
23541 (ipa_passes): Likewise.
23542 (compile): Likewise.
23544 * context.c (context::context): New.
23545 * context.h (context::context): New.
23546 (context::get_passes): New.
23547 (context::passes_): New.
23549 * lto-cgraph.c (input_node): Update for moves of globals to
23550 fields of pass_manager.
23552 * passes.c (all_passes): Remove, in favor of a field of the
23553 same name within the new class pass_manager.
23554 (all_small_ipa_passes): Likewise.
23555 (all_lowering_passes): Likewise.
23556 (all_regular_ipa_passes): Likewise.
23557 (all_late_ipa_passes): Likewise.
23558 (all_lto_gen_passes): Likewise.
23559 (passes_by_id): Likewise.
23560 (passes_by_id_size): Likewise.
23561 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23562 the new class pass_manager.
23563 (set_pass_for_id): Convert to...
23564 (pass_manager::set_pass_for_id): ...method.
23565 (get_pass_for_id): Convert to...
23566 (pass_manager::get_pass_for_id): ...method.
23567 (register_one_dump_file): Move body of implementation into...
23568 (pass_manager::register_one_dump_file): ...here.
23569 (register_dump_files_1): Convert to...
23570 (pass_manager::register_dump_files_1): ...method.
23571 (register_dump_files): Convert to...
23572 (pass_manager::register_dump_files): ...method.
23573 (create_pass_tab): Update for moves of globals to fields of
23575 (dump_passes): Move body of implementation into...
23576 (pass_manager::dump_passes): ...here.
23577 (register_pass): Move body of implementation into...
23578 (pass_manager::register_pass): ...here.
23579 (init_optimization_passes): Convert into...
23580 (pass_manager::pass_manager): ...constructor for new
23581 pass_manager class, and initialize the pass_lists array.
23582 (check_profile_consistency): Update for moves of globals to
23583 fields of pass_manager.
23584 (dump_profile_report): Move body of implementation into...
23585 (pass_manager::dump_profile_report): ...here.
23586 (ipa_write_summaries_1): Update for moves of pass lists from
23587 being globals to fields of pass_manager.
23588 (ipa_write_optimization_summaries): Likewise.
23589 (ipa_read_summaries): Likewise.
23590 (ipa_read_optimization_summaries): Likewise.
23591 (execute_all_ipa_stmt_fixups): Likewise.
23593 * statistics.c (statistics_fini): Update for moves of globals to
23594 fields of pass_manager.
23596 * toplev.c (general_init): Replace call to
23597 init_optimization_passes with construction of the pass_manager
23600 * tree-pass.h (all_passes): Remove, in favor of a field of the
23601 same name within the new class pass_manager.
23602 (all_small_ipa_passes): Likewise.
23603 (all_lowering_passes): Likewise.
23604 (all_regular_ipa_passes): Likewise.
23605 (all_lto_gen_passes): Likewise.
23606 (all_late_ipa_passes): Likewise.
23607 (passes_by_id): Likewise.
23608 (passes_by_id_size): Likewise.
23609 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23610 the new class pass_manager.
23611 (get_pass_for_id): Remove.
23613 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23615 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23618 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23620 * arm.md (mulhi3): New expand pattern.
23622 2013-07-30 Jan Hubicka <jh@suse.cz>
23623 Martin Liska <marxin.liska@gmail.com>
23625 * profile.c (compute_value_histograms): Do not ICE when
23626 there is mismatch only on some counters.
23628 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23630 PR rtl-optimization/57637
23631 * function.c (move_insn_for_shrink_wrap): Also check the
23632 GEN set of the LIVE problem for the liveness analysis
23633 if it exists, otherwise give up.
23635 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23637 PR tree-optimization/57993
23638 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23639 replaced statement in the candidate table.
23640 (phi_add_costs): Return infinite cost when the hidden basis does
23641 not dominate all phis on which the candidate is dependent.
23642 (replace_one_candidate): Record replaced statement in the
23645 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23647 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23648 (ashlv2si3): New expander.
23649 (*ashlv2si3_i): New define_insn_and_split.
23650 * predicates.md (float_operation): Allow patterns with three
23651 basic sub-patterns.
23653 PR rtl-optimization/58021
23654 * mode-switching.c (create_pre_exit): Always split off preceding
23655 insns if we are not at the basic block head.
23657 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23659 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23660 (UCLIBC_DYNAMIC_LINKER): New macro.
23661 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23663 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23664 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23666 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23667 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23668 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23669 for SF and DF modes. Use ieee_quad_format for TF mode.
23670 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23671 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23672 (mips_option_override): Handle `-mnan=legacy'.
23673 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23674 `-mabs=2008' and `-mnan=2008'.
23675 (OPTION_DEFAULT_SPECS): Add "nan" default.
23676 (ASM_SPEC): Handle `-mnan='.
23677 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23678 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23679 comment accordingly.
23680 (neg<mode>2): Likewise.
23681 * config/mips/mips.opt (mabs, mnan): New options.
23682 * doc/install.texi (Configuration): Document `--with-nan=' option.
23683 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23685 (MIPS Options): Document them.
23686 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23687 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23688 * configure: Regenerate.
23689 * config.in: Regenerate.
23691 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23693 * config/i386/i386.md (float post-reload splitters): Do not check
23694 for subregs of SSE registers.
23696 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23697 H.J. Lu <hongjiu.lu@intel.com>
23701 * config/i386/i386.md (post-reload splitter
23702 to avoid partial SSE reg dependency stalls): New pattern.
23704 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23706 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23708 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23710 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23711 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23713 2013-07-26 Cary Coutant <ccoutant@google.com>
23715 * dwarf2out.c (die_checksum_ordered): Don't include template
23716 instantiations in signature.
23717 (is_template_parameter): New function.
23718 (is_template_instantiation): New function.
23719 (generate_skeleton_bottom_up): Don't include template instantiations
23721 (generate_skeleton): Likewise.
23722 (break_out_comdat_types): Move recursive call to break out nested
23724 (prune_unused_types_mark_generic_parms_dies): Call
23725 is_template_parameter.
23727 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23729 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23730 uses vector registers.
23731 * config/aarch64/iterators.md: Add attributes rtn and vas.
23733 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23734 Richard Earnshaw <richard.earnshaw@arm.com>
23736 * combine.c (simplify_comparison): Re-canonicalize operands
23738 * config/arm/arm.md (movcond_addsi): New splitter.
23740 2013-07-25 Sterling Augustine <saugustine@google.com>
23742 * dwarf2out.c (size_of_pubnames): Move code to...
23743 (include_pubname_in_output): ...here. New.
23744 (want_pubnames): Rearrange.
23745 (output_pubnames): Call include_pubname_in_output. Move assertion.
23747 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23749 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23751 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23754 * doc/extend.texi: Remove obsolete builtins. Fix
23755 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23757 2013-07-25 Jan Hubicka <jh@suse.cz>
23759 * cgraph.c (release_function_body): Break out from ...
23760 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23761 and DECL_ARGUMENTS.
23762 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23763 old_tree in the map.
23764 (create_specialized_node): Update.
23765 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23767 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23768 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23769 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23770 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23773 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23775 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23776 addsi3_carryin_alt2_<optab>): Correct output template.
23778 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23780 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23781 Adjust for arm_restrict_it.
23782 Remove trailing whitespace.
23784 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23786 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23787 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23789 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23791 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23793 PR rtl-optimization/57960
23794 * lra-constraints.c (process_alt_operands): Use the right mode
23795 when checking strict_low.
23797 2013-07-25 Jan Hubicka <jh@suse.cz>
23799 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23800 * cgraph.c (cgraph_remove_node): Do not release function body
23801 when in cgraph streaming.
23802 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23803 in other partitions are not considered reachable; fix handling of
23806 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23808 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23810 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23815 * config/arm/arm.md ("*sibcall_insn): Replace use of
23816 Ss with US. Adjust output for v5 and v4t.
23817 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23819 * config/arm/constraints.md ("Ss"): Rename to US.
23821 2013-07-25 Terry Guo <terry.guo@arm.com>
23823 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23824 shift_add/shift_sub0/shift_sub1 RTXs.
23826 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23827 Anton Blanchard <anton@au1.ibm.com>
23829 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23830 (altivec_vpks<VI_char>ss): Likewise.
23831 (altivec_vpks<VI_char>us): Likewise.
23832 (altivec_vpku<VI_char>us): Likewise.
23833 (altivec_vpku<VI_char>um): Likewise.
23835 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23837 Introduce context class.
23839 * Makefile.in (CONTEXT_H): New.
23840 (OBJS): Add context.o.
23841 (toplev.o): Add CONTEXT_H to dependencies.
23844 * toplev.c (general_init): Create the singleton gcc::context instance.
23850 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23852 PR rtl-optimization/57968
23853 * mode-switching.c (create_pre_exit): Allow instructions that
23854 don't set a return register to need a non-exit mode.
23856 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23857 Anton Blanchard <anton@au1.ibm.com>
23859 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23860 operands to vperm for little endian.
23861 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23862 of lvsl to create the control mask for a vperm for little endian.
23864 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23865 Anton Blanchard <anton@au1.ibm.com>
23867 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23868 two operands for little-endian.
23870 2013-07-23 Steve Ellcey <sellcey@mips.com>
23872 * config/mips/mips.c (mips_case_values_threshold): New.
23873 (TARGET_CASE_VALUES_THRESHOLD): Define.
23875 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23876 Anton Blanchard <anton@au1.ibm.com>
23878 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23879 selection of field for vector splat in little endian mode.
23881 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23883 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23884 expanders to rs6000.md.
23885 (ior<mode>3): Likewise.
23886 (and<mode>3): Likewise.
23887 (one_cmpl<mode>2): Likewise.
23888 (nor<mode>3): Likewise.
23889 (andc<mode>3): Likewise.
23890 (eqv<mode>3): Likewise.
23891 (nand<mode>3): Likewise.
23892 (orc<mode>3): Likewise.
23894 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23897 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23898 to split multi-word logical operations.
23899 (rs6000_split_logical_di): Likewise.
23900 (rs6000_split_logical): Likewise.
23902 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23903 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23904 and allow TImode operations in 32-bit.
23905 (vsx_and<mode>3_64bit): Likewise.
23906 (vsx_ior<mode>3_32bit): Likewise.
23907 (vsx_ior<mode>3_64bit): Likewise.
23908 (vsx_xor<mode>3_32bit): Likewise.
23909 (vsx_xor<mode>3_64bit): Likewise.
23910 (vsx_one_cmpl<mode>2_32bit): Likewise.
23911 (vsx_one_cmpl<mode>2_64bit): Likewise.
23912 (vsx_nor<mode>3_32bit): Likewise.
23913 (vsx_nor<mode>3_64bit): Likewise.
23914 (vsx_andc<mode>3_32bit): Likewise.
23915 (vsx_andc<mode>3_64bit): Likewise.
23916 (vsx_eqv<mode>3_32bit): Likewise.
23917 (vsx_eqv<mode>3_64bit): Likewise.
23918 (vsx_nand<mode>3_32bit): Likewise.
23919 (vsx_nand<mode>3_64bit): Likewise.
23920 (vsx_orc<mode>3_32bit): Likewise.
23921 (vsx_orc<mode>3_64bit): Likewise.
23923 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23924 logical types in GPRs.
23926 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23927 logical insns to rs6000.md, and allow TImode operations in
23929 (altivec_ior<mode>3): Likewise.
23930 (altivec_xor<mode>3): Likewise.
23931 (altivec_one_cmpl<mode>2): Likewise.
23932 (altivec_nor<mode>3): Likewise.
23933 (altivec_andc<mode>3): Likewise.
23935 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23936 attributes for moving the 128-bit logical operations into
23938 (BOOL_REGS_OUTPUT): Likewise.
23939 (BOOL_REGS_OP1): Likewise.
23940 (BOOL_REGS_OP2): Likewise.
23941 (BOOL_REGS_UNARY): Likewise.
23942 (BOOL_REGS_AND_CR0): Likewise.
23943 (one_cmpl<mode>2): Add support for DI logical operations on
23944 32-bit, splitting the operations to 32-bit.
23945 (anddi3): Likewise.
23946 (iordi3): Likewise.
23947 (xordi3): Likewise.
23948 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23949 changes to combine the 32/64-bit code, allow logical operations on
23950 TI mode in 32-bit, and to use similar match_operator patterns like
23951 scalar mode uses. Combine the Altivec and VSX code for logical
23952 operations, and move it here.
23953 (ior<mode>3, 128-bit types): Likewise.
23954 (xor<mode>3, 128-bit types): Likewise.
23955 (one_cmpl<mode>3, 128-bit types): Likewise.
23956 (nor<mode>3, 128-bit types): Likewise.
23957 (andc<mode>3, 128-bit types): Likewise.
23958 (eqv<mode>3, 128-bit types): Likewise.
23959 (nand<mode>3, 128-bit types): Likewise.
23960 (orc<mode>3, 128-bit types): Likewise.
23961 (and<mode>3_internal): Likewise.
23962 (bool<mode>3_internal): Likewise.
23963 (boolc<mode>3_internal1): Likewise.
23964 (boolc<mode>3_internal2): Likewise.
23965 (boolcc<mode>3_internal1): Likewise.
23966 (boolcc<mode>3_internal2): Likewise.
23967 (eqv<mode>3_internal1): Likewise.
23968 (eqv<mode>3_internal2): Likewise.
23969 (one_cmpl1<mode>3_internal): Likewise.
23971 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23973 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23974 Rename flag_stack_usage to flag_stack_usage_info.
23976 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23978 * config/microblaze/sync.md: New file.
23979 * config/microblaze/microblaze.md: Include sync.md
23980 * config/microblaze/microblaze.c: Add print_operand 'y'.
23981 * config/microblaze/constraints.md: Add memory_contraint
23982 'Q' which is a single register.
23984 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23986 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23988 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23990 * reload.c (find_reloads): Exit loop once we find this operand
23991 cannot be reloaded somehow for this alternative.
23993 * reload.c (find_reloads): Exit loop once we find a hard register.
23995 * rtlanal.c (computed_jump_p): Exit loop once we find label
23998 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24000 * cfgloopmanip.c (remove_path): Exit loop after setting
24003 * gensupport.c (subst_dup): Avoid loop if code is not
24004 MATCH_DUP nor MATCH_OP_DUP.
24006 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24008 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24010 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24012 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24013 true for SP_REGNUM if mode == ptr_mode.
24014 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24015 with value R0_REGNUM + 31.
24017 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24019 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24020 pad pointer-typed argument downward.
24022 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24024 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24025 and __ILP32__ when the ILP32 model is in use.
24027 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24029 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24030 (aarch64_load_symref_appropriately): In the case of
24031 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24032 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24033 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24034 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24035 if 'mode' doesn't equal to 'ptr_mode'.
24036 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24037 'vcall_offset'; change to call aarch64_emit_move differently depending
24038 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24039 to calculate the upper bound of 'vcall_offset'.
24040 (aarch64_cannot_force_const_mem): Change to also return true if
24042 (aarch64_legitimize_reload_address): In the case of large
24043 displacements, add new local variable 'xmode' and an assertion
24044 based on it; change to use 'xmode' to generate the new rtx and
24046 (aarch64_asm_trampoline_template): Change to generate the template
24047 differently depending on TARGET_ILP32 or not; change to use
24048 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24049 (aarch64_trampoline_size): Removed.
24050 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24051 and replace immediate literals with it. Change to use 'ptr_mode'
24052 instead of 'DImode' and call convert_memory_address if the mode
24053 of 'fnaddr' doesn't equal to 'ptr_mode'.
24054 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24056 (aarch64_elf_asm_destructor): Likewise.
24057 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24058 on TARGET_ILP32 instead of aarch64_trampoline_size.
24059 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24060 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24061 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24062 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24063 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24064 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24065 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24066 depending on the value of 'mode'.
24067 (add_losym_<mode>): New.
24068 (ldr_got_small_<mode>): New, based on ldr_got_small.
24069 (ldr_got_small): Remove.
24070 (ldr_got_small_sidi): New.
24071 * config/aarch64/iterators.md (P): New.
24072 (PTR): Change to 'ptr_mode' in the condition.
24074 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24076 * config.gcc (aarch64*-*-*): Support --with-abi.
24077 (aarch64*-*-elf): Support --with-multilib-list.
24078 (aarch64*-*-linux*): Likewise.
24079 (supported_defaults): Add abi to aarch64*-*-*.
24080 * configure.ac: Mention AArch64 for --with-multilib-list.
24081 * configure: Re-generated.
24082 * config/aarch64/biarchilp32.h: New file.
24083 * config/aarch64/biarchlp64.h: New file.
24084 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24086 (MULTILIB_DEFAULTS): Ditto.
24087 (DRIVER_SELF_SPECS): Ditto.
24088 (ASM_SPEC): Update to also substitute -mabi.
24089 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24090 file whose name depends on -mabi= and -mbig-endian.
24091 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24093 (POINTER_SIZE): New define.
24094 (POINTERS_EXTEND_UNSIGNED): Ditto.
24095 (enum aarch64_abi_type): New enumeration tag.
24096 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24097 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24098 (TARGET_ILP32): New define.
24099 * config/aarch64/aarch64.opt (mabi): New.
24100 (aarch64_abi): New.
24101 (ilp32, lp64): New values for -mabi.
24102 * config/aarch64/t-aarch64 (comma): New define.
24103 (MULTILIB_OPTIONS): Ditto.
24104 (MULTILIB_DIRNAMES): Ditto.
24105 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24106 * doc/invoke.texi: Document -mabi for AArch64.
24108 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24110 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24112 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24113 Anton Blanchard <anton@au1.ibm.com>
24115 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24116 endianness when selecting field to splat.
24118 2013-07-22 Eric Christopher <echristo@gmail.com>
24120 * dwarf2out.c (die_odr_checksum): New function to use
24121 CHECKSUM_ macros and ULEB128 for DIE tag.
24122 (generate_type_signature): Use.
24124 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24126 * config.gcc (sparc*-*-*): Accept leon3 processor.
24127 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24128 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24129 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24130 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24131 (mfix-ut699): Adjust comment.
24132 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24133 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24134 (CPP_CPU_SPEC): Likewise.
24135 (ASM_CPU_SPEC): Likewise.
24136 * config/sparc/sparc.c (leon3_cost): New constant.
24137 (sparc_option_override): Add leon3 support.
24138 (mem_ref): New function.
24139 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24140 (sparc_do_work_around_errata): Look into the instruction in the delay
24141 slot and adjust accordingly. Add fix for the data cache nullify issues
24142 of the UT699. Change insertion position for the NOP.
24143 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24144 (leon3_load): New reservation.
24145 (leon_store): Bump latency to 2.
24146 (grfpu): New automaton.
24147 (grfpu_alu): New unit.
24148 (grfpu_ds): Likewise.
24149 (leon_fp_alu): Adjust.
24150 (leon_fp_mult): Delete.
24151 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24152 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24153 * config/sparc/sparc.md (cpu): Add leon3.
24154 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24155 (swapsi): Likewise.
24156 (atomic_test_and_set): Likewise.
24157 (ldstub): Likewise.
24159 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24161 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24162 default for R5900 targets.
24163 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24164 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24165 * config/mips/mips.c (mips_option_override): Report an error for
24166 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24167 for -march=r5900 -mhard-float.
24169 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24171 * df-problems.c (can_move_insns_across): Exit loop once we
24172 find a non-fixed, non-global register.
24174 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24177 * omega.c (omega_eliminate_red): Break after setting red_found.
24178 (omega_problem_has_red_equations): Similarly after setting found.
24179 (omega_query_variable): Similarly after setting coupled.
24181 2013-07-22 Marek Polacek <polacek@redhat.com>
24183 * gimplify.c: Don't include gimple.h twice.
24185 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24187 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24188 instead of TARGET_THUMB1.
24189 (Pz): New constraint.
24190 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24192 (compare_negsi_si): Likewise.
24193 (compare_addsi2_op0): Likewise.
24194 (compare_addsi2_op1): Likewise.
24195 (addsi3_carryin_<optab>): Likewise.
24196 (addsi3_carryin_alt2_<optab>): Likewise.
24197 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24198 for arm_restrict_it.
24199 (subsi3_carryin): Likewise.
24200 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24201 (minmax_arithsi): Disable for arm_restrict_it.
24202 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24203 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24204 (satsi_<SAT:code>_shift): Likewise.
24205 (arm_shiftsi3): Add alternative for 16-bit encoding.
24206 (arm32_movhf): Disable for arm_restrict_it.
24207 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24208 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24210 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24212 * config/arm/arm.md (attribute "insn"): Delete.
24213 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24214 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24215 (not_shiftsi): Update for attribute change.
24216 (not_shiftsi_compare0): Likewise.
24217 (not_shiftsi_compare0_scratch): Likewise.
24218 (arm_one_cmplsi2): Likewise.
24219 (thumb1_one_cmplsi2): Likewise.
24220 (notsi_compare0): Likewise.
24221 (notsi_compare0_scratch): Likewise.
24222 (thumb1_movdi_insn): Likewise.
24223 (arm_movsi_insn): Likewise.
24224 (movhi_insn_arch4): Likewise.
24225 (movhi_bytes): Likewise.
24226 (arm_movqi_insn): Likewise.
24227 (thumb1_movqi_insn): Likewise.
24228 (arm32_movhf): Likewise.
24229 (thumb1_movhf): Likewise.
24230 (arm_movsf_soft_insn): Likewise.
24231 (thumb1_movsf_insn): Likewise.
24232 (thumb_movdf_insn): Likewise.
24233 (movsicc_insn): Likewise.
24234 (movsfcc_soft_insn): Likewise.
24235 (and_scc): Likewise.
24236 (cond_move): Likewise.
24237 (if_move_not): Likewise.
24238 (if_not_move): Likewise.
24239 (if_shift_move): Likewise.
24240 (if_move_shift): Likewise.
24241 (if_shift_shift): Likewise.
24242 (if_not_arith): Likewise.
24243 (if_arith_not): Likewise.
24244 (cond_move_not): Likewise.
24245 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24246 (neon_mov<mode>): Likewise.
24247 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24248 (thumb2_movsi_vfp): Likewise.
24249 (movsf_vfp): Likewise.
24250 (thumb2_movsf_vfp): Likewise.
24251 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24253 (cortexa7_older_only): Likewise.
24254 (cortexa7_younger): Likewise.
24255 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24256 (1020alu_shift_op): Likewise.
24257 (1020alu_shift_reg_op): Likewise.
24258 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24259 (alu_shift_op): Likewise.
24260 (alu_shift_reg_op): Likewise.
24261 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24262 (11_alu_shift_op): Likewise.
24263 (11_alu_shift_reg_op): Likewise.
24264 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24265 (9_alu_shift_reg_op): Likewise.
24266 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24268 (cortex_a15_alu_shift): Likewise.
24269 (cortex_a15_alu_shift_reg): Likewise.
24270 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24271 (cortex_a5_alu_shift): Likewise.
24272 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24274 (cortex_a53_alu_shift): Likewise.
24275 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24277 (cortex_a7_alu_reg): Likewise.
24278 (cortex_a7_alu_shift): Likewise.
24279 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24280 (cortex_a8_alu_shift): Likewise.
24281 (cortex_a8_alu_shift_reg): Likewise.
24282 (cortex_a8_mov): Likewise.
24283 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24284 (cortex_a9_dp_shift): Likewise.
24285 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24286 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24287 (cortex_r4_mov): Likewise.
24288 (cortex_r4_alu_shift): Likewise.
24289 (cortex_r4_alu_shift_reg): Likewise.
24290 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24291 (526_alu_shift_op): Likewise.
24292 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24293 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24294 (626te_alu_shift_op): Likewise.
24295 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24296 (726te_alu_op): Likewise.
24297 (726te_alu_shift_op): Likewise.
24298 (726te_alu_shift_reg_op): Likewise.
24299 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24300 (mp626_alu_shift_op): Likewise.
24301 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24302 (pj4_alu_e1_conds): Likewise.
24303 (pj4_alu): Likewise.
24304 (pj4_alu_conds): Likewise.
24305 (pj4_shift): Likewise.
24306 (pj4_shift_conds): Likewise.
24307 (pj4_alu_shift): Likewise.
24308 (pj4_alu_shift_conds): Likewise.
24310 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24312 * config/arm/predicates.md (shiftable_operator_strict_it):
24314 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24315 Disable cond_exec version for arm_restrict_it.
24316 (thumb2_smaxsi3): Convert to generate cond_exec.
24317 (thumb2_sminsi3): Likewise.
24318 (thumb32_umaxsi3): Likewise.
24319 (thumb2_uminsi3): Likewise.
24320 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24321 (thumb2_neg_abssi2): Likewise.
24322 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24323 (thumb2_movsicc_insn): Adjust alternatives.
24324 (thumb2_mov_negscc): Disable for arm_restrict_it.
24325 (thumb2_mov_negscc_strict_it): New pattern.
24326 (thumb2_mov_notscc_strict_it): New pattern.
24327 (thumb2_mov_notscc): Disable for arm_restrict_it.
24328 (thumb2_ior_scc): Likewise.
24329 (thumb2_ior_scc_strict_it): New pattern.
24330 (thumb2_cond_move): Adjust for arm_restrict_it.
24331 (thumb2_cond_arith): Disable for arm_restrict_it.
24332 (thumb2_cond_arith_strict_it): New pattern.
24333 (thumb2_cond_sub): Adjust for arm_restrict_it.
24334 (thumb2_movcond): Likewise.
24335 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24336 (thumb2_zero_extendhisi2_v6): Likewise.
24337 (thumb2_zero_extendqisi2_v6): Likewise.
24338 (orsi_notsi_si): Likewise.
24339 (orsi_not_shiftsi_si): Likewise.
24341 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24343 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24344 instruction sequence is 1 byte shorter.
24346 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24348 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24349 it is not needed after split.
24351 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24354 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24355 second label for nonlocal goto receivers. Don't output pic base labels
24356 unless we're producing PIC; mark that action unreachable().
24357 (ix86_save_reg): If the function contains a nonlocal label, save the
24359 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24360 * config/darwin.c (emitted_pic_label_num): New GTY.
24361 (update_pic_label_number_if_needed): New.
24362 (machopic_output_function_base_name): Adjust for nonlocal receiver
24364 (machopic_should_output_picbase_label): New.
24365 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24366 (nonlocal_goto_receiver): New insn and split.
24368 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24370 * config/aarch64/aarch64-builtins.c
24371 (aarch64_fold_builtin): Fold abs in all modes.
24372 * config/aarch64/aarch64-simd-builtins.def
24373 (abs): Enable for all modes.
24374 * config/aarch64/arm_neon.h
24375 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24376 (vabs_f64): Add missing intrinsic.
24378 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24380 * config/aarch64/arm_neon.h (vabs_s64): New function
24382 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24385 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24386 * config/avr/avr.md (adjust_len): Add `round'.
24387 * config/avr/avr-protos.h (avr_out_round): New prototype.
24388 (avr_out_plus): Add `out_label' argument.
24389 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24390 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24391 Handle the case where `insn' is just a pattern.
24392 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24393 (avr_out_round): New function.
24394 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24396 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24398 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24399 Add check for flag_stack_usage to handle -fstack-usage support
24401 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24404 interaction for new Power8 flags and VSX.
24406 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24408 PR middle-end/57698
24409 * tree-inline.c (expand_call_inline): Emit errors during
24410 early_inlining only if optimization is not turned on.
24412 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24416 * passes.c (init_optimization_passes): Move the construction of
24417 the pass hierarchy into a new passes.def file.
24419 * Makefile.in (passes.o): Add dependency on passes.def.
24421 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24423 * passes.c (init_optimization_passes): Introduce macros for
24424 constructing the tree of passes (INSERT_PASSES_AFTER,
24425 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24426 TERMINATE_PASS_LIST).
24428 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24429 Wei Mi <wmi@google.com>
24431 PR rtl-optimization/57878
24432 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24434 (reload_pseudo_compare_func): Check nregs first for reload
24437 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24439 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24441 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24443 * read-rtl.c (validate_const_int): Once an invalid character is
24444 seen, quit the loop.
24446 * gengtype.c (write_roots): Similarly once we find the "deletable"
24447 or "if_marked" option.
24449 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24451 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24452 "xtab" and "sat". Move value "clz" from here to ...
24453 (attriubte "type"): ... here.
24454 (satsi_<SAT:code>): Delete "insn" attribute.
24455 (satsi_<SAT:code>_shift): Likewise.
24456 (arm_zero_extendqisi2addsi): Likewise.
24457 (arm_extendqisi2addsi): Likewise.
24458 (clzsi2): Update for attribute changes.
24459 (rbitsi2): Likewise.
24460 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24462 (arm_usatsihi): Likewise.
24463 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24465 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24467 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24468 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24469 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24470 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24471 in alphabetical order.
24472 (attribute "core_cycles"): Update for attribute changes.
24473 (arm_addsi3): Likewise.
24474 (addsi3_compare0): Likewise.
24475 (addsi3_compare0_scratch): Likewise.
24476 (addsi3_compare_op1): Likewise.
24477 (addsi3_compare_op2): Likewise.
24478 (compare_addsi2_op0): Likewise.
24479 (compare_addsi2_op1): Likewise.
24480 (addsi3_carryin_shift_<optab>): Likewise.
24481 (subsi3_carryin_shift): Likewise.
24482 (rsbsi3_carryin_shift): Likewise.
24483 (arm_subsi3_insn): Likewise.
24484 (subsi3_compare0): Likewise.
24485 (subsi3_compare): Likewise.
24486 (arm_andsi3_insn): Likewise.
24487 (thumb1_andsi3_insn): Likewise.
24488 (andsi3_compare0): Likewise.
24489 (andsi3_compare0_scratch): Likewise.
24490 (zeroextractsi_compare0_scratch
24491 (andsi_not_shiftsi_si): Likewise.
24492 (iorsi3_insn): Likewise.
24493 (iorsi3_compare0): Likewise.
24494 (iorsi3_compare0_scratch): Likewise.
24495 (arm_xorsi3): Likewise.
24496 (thumb1_xorsi3_insn): Likewise.
24497 (xorsi3_compare0): Likewise.
24498 (xorsi3_compare0_scratch): Likewise.
24499 (satsi_<SAT:code>_shift): Likewise.
24501 (arm_shiftsi3): Likewise.
24502 (shiftsi3_compare0): Likewise.
24503 (not_shiftsi): Likewise.
24504 (not_shiftsi_compare0): Likewise.
24505 (not_shiftsi_compare0_scratch): Likewise.
24506 (arm_one_cmplsi2): Likewise.
24507 (thumb_one_complsi2): Likewise.
24508 (notsi_compare0): Likewise.
24509 (notsi_compare0_scratch): Likewise.
24510 (thumb1_zero_extendhisi2): Likewise.
24511 (arm_zero_extendhisi2): Likewise.
24512 (arm_zero_extendhisi2_v6): Likewise.
24513 (arm_zero_extendhisi2addsi): Likewise.
24514 (thumb1_zero_extendqisi2): Likewise.
24515 (thumb1_zero_extendqisi2_v6): Likewise.
24516 (arm_zero_extendqisi2): Likewise.
24517 (arm_zero_extendqisi2_v6): Likewise.
24518 (arm_zero_extendqisi2addsi): Likewise.
24519 (thumb1_extendhisi2): Likewise.
24520 (arm_extendhisi2): Likewise.
24521 (arm_extendhisi2_v6): Likewise.
24522 (arm_extendqisi): Likewise.
24523 (arm_extendqisi_v6): Likewise.
24524 (arm_extendqisi2addsi): Likewise.
24525 (thumb1_extendqisi2): Likewise.
24526 (thumb1_movdi_insn): Likewise.
24527 (arm_movsi_insn): Likewise.
24528 (movsi_compare0): Likewise.
24529 (movhi_insn_arch4): Likewise.
24530 (movhi_bytes): Likewise.
24531 (arm_movqi_insn): Likewise.
24532 (thumb1_movqi_insn): Likewise.
24533 (arm32_movhf): Likewise.
24534 (thumb1_movhf): Likewise.
24535 (arm_movsf_soft_insn): Likewise.
24536 (thumb1_movsf_insn): Likewise.
24537 (movdf_soft_insn): Likewise.
24538 (thumb_movdf_insn): Likewise.
24539 (arm_cmpsi_insn): Likewise.
24540 (cmpsi_shiftsi): Likewise.
24541 (cmpsi_shiftsi_swp): Likewise.
24542 (arm_cmpsi_negshiftsi_si): Likewise.
24543 (movsicc_insn): Likewise.
24544 (movsfcc_soft_insn): Likewise.
24545 (arith_shiftsi): Likewise.
24546 (arith_shiftsi_compare0
24547 (arith_shiftsi_compare0_scratch
24548 (sub_shiftsi): Likewise.
24549 (sub_shiftsi_compare0
24550 (sub_shiftsi_compare0_scratch
24551 (and_scc): Likewise.
24552 (cond_move): Likewise.
24553 (if_plus_move): Likewise.
24554 (if_move_plus): Likewise.
24555 (if_move_not): Likewise.
24556 (if_not_move): Likewise.
24557 (if_shift_move): Likewise.
24558 (if_move_shift): Likewise.
24559 (if_shift_shift): Likewise.
24560 (if_not_arith): Likewise.
24561 (if_arith_not): Likewise.
24562 (cond_move_not): Likewise.
24563 (thumb1_ashlsi3): Set type attribute.
24564 (thumb1_ashrsi3): Likewise.
24565 (thumb1_lshrsi3): Likewise.
24566 (thumb1_rotrsi3): Likewise.
24567 (shiftsi3_compare0_scratch): Likewise.
24568 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24569 (neon_mov<mode>): Likewise.
24570 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24572 (thumb2_movsi_insn): Likewise.
24573 (thumb2_cmpsi_neg_shiftsi): Likewise.
24574 (thumb2_extendqisi_v6): Likewise.
24575 (thumb2_zero_extendhisi2_v6): Likewise.
24576 (thumb2_zero_extendqisi2_v6): Likewise.
24577 (thumb2_shiftsi3_short): Likewise.
24578 (thumb2_addsi3_compare0_scratch): Likewise.
24579 (orsi_not_shiftsi_si): Likewise.
24580 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24581 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24583 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24584 (1020alu_shift_op): Likewise.
24585 (1020alu_shift_reg_op): Likewise.
24586 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24587 (alu_shift_op): Likewise.
24588 (alu_shift_reg_op): Likewise.
24589 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24590 (11_alu_shift_op): Likewise.
24591 (11_alu_shift_reg_op): Likewise.
24592 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24593 (9_alu_shift_reg_op): Likewise.
24594 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24596 (cortex_a15_alu_shift): Likewise.
24597 (cortex_a15_alu_shift_reg): Likewise.
24598 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24600 (cortex_a5_alu_shift): Likewise.
24601 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24603 (cortex_a53_alu_shift): Likewise.
24604 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24606 (cortex_a7_alu_reg): Likewise.
24607 (cortex_a7_alu_shift): Likewise.
24608 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24610 (cortex_a8_alu_shift): Likewise.
24611 (cortex_a8_alu_shift_reg): Likewise.
24612 (cortex_a8_mov): Likewise.
24613 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24614 (cortex_a9_dp_shift): Likewise.
24615 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24617 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24619 (cortex_r4_mov): Likewise.
24620 (cortex_r4_alu_shift): Likewise.
24621 (cortex_r4_alu_shift_reg): Likewise.
24622 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24623 (526_alu_shift_op): Likewise.
24624 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24625 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24626 (626te_alu_shift_op): Likewise.
24627 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24628 (726te_alu_op): Likewise.
24629 (726te_alu_shift_op): Likewise.
24630 (726te_alu_shift_reg_op): Likewise.
24631 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24632 (mp626_alu_shift_op): Likewise.
24633 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24634 (pj4_alu_e1_conds): Likewise.
24635 (pj4_alu): Likewise.
24636 (pj4_alu_conds): Likewise.
24637 (pj4_shift): Likewise.
24638 (pj4_shift_conds): Likewise.
24639 (pj4_alu_shift): Likewise.
24640 (pj4_alu_shift_conds): Likewise.
24641 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24643 (cortexa7_older_only): Likewise.
24644 (cortexa7_younger): Likewise.
24646 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24648 * ipa-pure-const.c (generate_summary): Rename to...
24649 (pure_const_generate_summary): ... this.
24651 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24653 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24655 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24658 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24661 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24663 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24664 enabled without -march=zEC12.
24665 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24668 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24670 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24671 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24672 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24673 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24674 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24675 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24676 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24678 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24679 and ISA_HAS_NMADD3_NMSUB3.
24680 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24681 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24682 (nmsub4<mode>, nmsub3<mode>): Likewise.
24683 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24685 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24687 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24688 TARGET_MIPS5400 checking.
24690 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24691 Peter Bergner <bergner@vnet.ibm.com>
24693 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24694 registers in the comment.
24695 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24696 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24697 rather than FIRST_PSEUDO_REGISTERS.
24699 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24701 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24702 enable extra ISA flags with TARGET_HTM.
24704 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24706 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24709 2013-07-15 Cong Hou <congh@google.com>
24711 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24712 in compare function for sorting.
24714 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24716 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24717 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24718 * config/rs6000/rs6000.opt: Add -mhtm option.
24719 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24720 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24721 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24722 __HTM__ if the HTM instructions are available.
24723 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24724 htm_spr_reg_operand): New define_predicates.
24725 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24726 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24728 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24729 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24730 HTM builtin functions.
24731 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24732 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24733 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24734 (rs6000_builtin_mask_calculate): Likewise.
24735 (rs6000_option_override_internal): Likewise.
24736 (bdesc_htm): Add new HTM builtin support.
24737 (htm_spr_num): New function.
24738 (htm_spr_regno): Likewise.
24739 (rs6000_htm_spr_icode): Likewise.
24740 (htm_expand_builtin): Likewise.
24741 (htm_init_builtins): Likewise.
24742 (rs6000_expand_builtin): Add support for HTM builtin functions.
24743 (rs6000_init_builtins): Likewise.
24744 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24746 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24747 (TARGET_HTM, MASK_HTM): Define macros.
24748 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24749 (FIXED_REGISTERS): Likewise.
24750 (CALL_USED_REGISTERS): Likewise.
24751 (CALL_REALLY_USED_REGISTERS): Likewise.
24752 (REG_ALLOC_ORDER): Likewise.
24753 (enum reg_class): Likewise.
24754 (REG_CLASS_NAMES): Likewise.
24755 (REG_CLASS_CONTENTS): Likewise.
24756 (REGISTER_NAMES): Likewise.
24757 (ADDITIONAL_REGISTER_NAMES): Likewise.
24758 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24759 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24760 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24761 * config/rs6000/htm.md: New file.
24762 * config/rs6000/htmintrin.h: New file.
24763 * config/rs6000/htmxlintrin.h: New file.
24765 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24767 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24768 Define SYMBOL_TINY_GOT, update comment.
24769 * config/aarch64/aarch64.c
24770 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24771 (aarch64_expand_mov_immediate): Likewise.
24772 (aarch64_print_operand): Likewise.
24773 (aarch64_classify_symbol): Likewise.
24774 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24775 (ldr_got_tiny): Define.
24777 2013-07-13 Tobias Grosser <tobias@grosser.es>
24779 PR tree-optimization/54094
24780 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24781 scheduling dimension for the parallelism check from the polyhedral
24782 information in the AST.
24783 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24786 2013-07-13 Jason Merrill <jason@redhat.com>
24788 * print-tree.c (debug_vec_tree): Use debug_raw.
24789 (debug_raw (vec<tree, va_gc> &)): New.
24790 (debug_raw (vec<tree, va_gc> *)): New.
24791 * tree.h: Declare them.
24793 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24795 * ifcvt.c (ifcvt_after_combine): New static variable.
24796 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24798 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24799 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24800 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24802 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24804 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24806 2013-07-12 Michael Matz <matz@suse.de>
24808 PR middle-end/55771
24809 * convert.c (convert_to_real): Reject non-float inner types.
24811 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24813 * config/aarch64/aarch64-protos.h
24814 (aarch64_simd_immediate_valid_for_move): Remove.
24815 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24816 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24818 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24820 2013-07-11 Steve Ellcey <sellcey@mips.com>
24822 * config/mips/mips.c (mips_conditional_register_usage): Do not
24823 use t[0-7] registers in MIPS16 mode when optimizing for size.
24825 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24827 * config/i386/i386.c (dispatch_function_versions): Fix array
24828 indexing of function_version_info to match actual_versions.
24830 2013-07-11 Teresa Johnson <tejohnson@google.com>
24832 * vec.h (struct va_gc): Move release out-of-line.
24833 (va_gc::release): Call ggc_free on released vec.
24835 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24837 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24838 Require GOT register as additional operand in UNSPEC.
24839 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24840 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24841 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24842 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24843 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24844 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24845 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24847 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24850 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24851 name seen by assembler/linker rather if available.
24853 2013-07-11 Andreas Schwab <schwab@suse.de>
24855 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24857 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24859 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24861 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24863 * doc/tm.texi.in: Move hook documentation to ....
24864 * target.def: ... here.
24866 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24867 text on @hook line.
24868 * doc/tm.texi: Regenerate.
24870 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24873 * doc/invoke.texi: Document -Wconditionally-supported.
24875 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24878 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24881 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24884 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24885 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24886 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24887 Remove duplicate devices.
24888 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24889 * config/avr/t-multilib: Regenerate.
24890 * config/avr/avr-tables.opt: Regenerate.
24891 * doc/avr-mmcu.texi: Regenerate.
24893 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24896 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24898 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24900 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24901 the cost of MULT when optimizing for size.
24903 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24905 * config/cr16/cr16-protos.h: Don't include target.h.
24907 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24909 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24910 adjust register size for TDmode and TFmode for VSX registers.
24912 2013-07-08 Kai Tietz <ktietz@redhat.com>
24915 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24916 hook_bool_const_tree_true.
24918 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24920 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24921 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24922 * config/s390/s390.md: Define FPR*_REGNUM constants.
24923 Fix FPR2_REGNUM constant (18 -> 17).
24924 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24925 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24926 ("trunc<BFP:mode><DFP_ALL:mode>2")
24927 ("trunc<DFP_ALL:mode><BFP:mode>2")
24928 ("*extend<BFP:mode><DFP_ALL:mode>2")
24929 ("*extend<DFP_ALL:mode><BFP:mode>2")
24930 ("extend<BFP:mode><DFP_ALL:mode>2")
24931 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24934 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24936 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24938 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24940 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24941 and cfun_fpr_bit_p to cfun_fpr_save_p.
24942 (s390_frame_area, s390_register_info, s390_frame_info)
24943 (s390_emit_prologue, s390_emit_epilogue)
24944 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24946 * config/s390/s390.h: Define *_REGNUM macros for floating point
24949 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24951 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24953 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24955 PR rtl-optimization/57786
24956 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24957 and break out of the loop when it is set to false.
24959 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24962 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24963 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24964 (const_int 63)) 0)).
24965 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24966 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24967 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24969 PR rtl-optimization/57829
24970 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24971 mask bits outside of mode are just sign-extension from mode to HWI.
24973 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24975 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24976 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24977 adjust_address instead of change_address to keep info about alignment.
24978 (emit_strmov): Remove.
24979 (emit_memmov): New function.
24980 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24981 (expand_movmem_epilogue): Likewise and return updated rtx for
24983 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24984 destination and source.
24985 (decide_alignment): Refactor, handle vector_loop.
24986 (ix86_expand_movmem): Likewise.
24987 (ix86_expand_setmem): Likewise.
24988 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24990 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24992 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24993 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24995 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24997 * config/i386/sse.md (sse_movlhps): Change alternative 3
24998 of operand 2 to "m".
25000 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25003 * config/i386/sse.md (iptr): New mode attribute.
25004 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25005 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25006 (<sse>_vmmul<mode>3): Ditto.
25007 (<sse>_vmdiv<mode>3): Ditto.
25008 (sse_vmrcpv4sf2): Ditto.
25009 (<sse>_vmsqrt<mode>2): Ditto.
25010 (sse_vmrsqrtv4sf2): Ditto.
25011 (<sse>_vm<code><mode>3): Ditto.
25012 (avx_vmcmp<mode>3): Ditto.
25013 (<sse>_vmmaskcmp<mode>3): Ditto.
25014 (<sse>_comi): Ditto.
25015 (<sse>_ucomi): Ditto.
25016 (*xop_vmfrcz_<mode>): Ditto.
25017 (*fmai_fmadd_<mode>): Ditto.
25018 (*fmai_fmsub_<mode>): Ditto.
25019 (*fmai_fnmadd_<mode>): Ditto.
25020 (*fmai_fnmsub_<mode>): Ditto.
25021 (*fma4i_vmfmadd_<mode>): Ditto.
25022 (*fma4i_vmfmsub_<mode>): Ditto.
25023 (*fma4i_vmfnmadd_<mode>): Ditto.
25024 (*fma4i_vmfnmsub_<mode>): Ditto.
25025 (*xop_vmfrcz_<mode>): Ditto.
25026 (sse_cvtps2pi): Ditto.
25027 (sse_cvttps2pi): Ditto.
25028 (sse_cvtss2si): Ditto.
25029 (sse_cvtss2si_2): Ditto.
25030 (sse_cvtss2siq_2): Ditto.
25031 (sse_cvttss2si): Ditto.
25032 (sse_cvttss2siq): Ditto.
25033 (sse_cvtsd2si): Ditto.
25034 (sse_cvtsd2si_2): Ditto.
25035 (sse_cvtsd2siq_2): Ditto.
25036 (sse_cvttsd2si): Ditto.
25037 (sse_cvttsd2siq): Ditto.
25038 (sse_cvtsd2ss): Ditto.
25039 (sse_cvtss2sd): Ditto.
25040 (avx2_pbroadcast<mode>): Ditto.
25041 (avx2_pbroadcast<mode>_1): Ditto.
25042 (*avx_vperm_broadcast_v4sf): Ditto.
25044 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25045 (sse_movlhps): Ditto.
25046 (sse_storehps): Ditto.
25047 (sse_loadhps): Ditto.
25048 (sse_storelps): Ditto.
25049 (sse_loadlps): Ditto.
25050 (*vec_concatv4sf): Ditto.
25051 (*vec_interleave_highv2df): Ditto.
25052 (*vec_interleave_lowv2df): Ditto.
25053 (*vec_extractv2df_1_sse): Ditto.
25054 (*vec_extractv2df_0_sse): Ditto.
25055 (sse2_storelpd): Ditto.
25056 (sse2_loadlpd): Ditto.
25057 (sse2_movsd): Ditto.
25058 (*vec_concatv4si): Ditto.
25059 (vec_concatv2di): Ditto.
25061 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25062 for Intel asm dialect.
25063 (mmx_punpcklwd): Ditto.
25064 (mmx_punpckldq): Ditto.
25066 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25067 for intel assembler dialect.
25069 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25072 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25073 for BUILT_IN_C{LZ,LRSB}*.
25074 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25075 * tree-vrp.c (extract_range_basic): Handle
25076 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25077 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25078 fall thru to code calling set_value*.
25079 * builtins.c (expand_builtin): Remove *IMAX cases.
25080 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25081 if width is bigger than 2*HWI.
25083 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25085 PR rtl-optimization/55342
25086 * lra-int.h (lra_subreg_reload_pseudos): New.
25087 * lra.c: Add undoing optional reloads to the block diagram.
25088 (lra_subreg_reload_pseudos): New.
25089 (lra_optional_reload_pseudos): Change comments.
25090 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25091 lra_optional_reload_pseudos after undo transformations.
25092 * lra-assigns.c (pseudo_prefix_title): New.
25093 (lra_setup_reg_renumber): Use it.
25094 (spill_for): Ditto. Check subreg reload pseudos too.
25095 (assign_by_spills): Consider subreg reload pseudos too.
25096 * lra-constraints.c (simplify_operand_subreg): Use
25097 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25098 (curr_insn_transform): Recognize and do optional reloads.
25099 (undo_optional_reloads): New.
25100 (lra_undo_inheritance): Call undo_optional_reloads.
25102 2013-07-05 Thomas Quinot <quinot@adacore.com>
25104 * tree-complex.c (expand_complex_operations_1): Fix typo.
25106 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25108 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25109 (tune_params): New member 'const vec_costs'.
25110 * config/aarch64/aarch64.c (generic_vector_cost): New.
25111 (generic_tunings): New member 'generic_vector_cost'.
25112 (aarch64_builtin_vectorization_cost): New.
25113 (aarch64_add_stmt_cost): New.
25114 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25115 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25117 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25120 * config/i386/predicates.md (vsib_address_operand): Disallow
25121 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25123 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25125 PR middle-end/55030
25126 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25127 expand_builtin_setjmp_receiver.
25128 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25129 with NULL for the label parameter.
25130 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25131 the frame-pointer. Adjust comments.
25132 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25133 only if LABEL is non-NULL.
25135 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25137 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25138 (ARM_ABI_AAPCS64): Ditto.
25140 (ARM_DEFAULT_ABI): Ditto.
25142 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25144 * config/aarch64/aarch64-builtins.c
25145 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25146 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25148 * config/aarch64/aarch64-simd.md
25149 (aarch64_ld1<VALL:mode>): New.
25150 (aarch64_st1<VALL:mode>): Likewise.
25151 * config/aarch64/arm_neon.h
25152 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25154 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25156 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25158 (ix86_option_override_internal):Turn on all -mavx target flags by
25159 default as they are dependent on AVX anyway.
25161 2013-07-02 Cary Coutant <ccoutant@google.com>
25163 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25164 deterministic hash.
25165 (loc_checksum_ordered): Likewise.
25166 (hash_loc_operands): Remove inline keyword.
25168 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25170 PR tree-optimization/57741
25171 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25172 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25173 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25174 Allow REAL_CST step_exprs if flag_associative_math.
25175 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25177 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25179 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25181 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25183 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25185 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25187 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25189 (iorsi3_insn): Likewise.
25190 (arm_xorsi3): Likewise.
25192 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25194 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25196 (attribute "type"): ... here, and prefix with "wmmx_".
25197 (attribute "core_cycles"): Update for attribute changes.
25198 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25199 (tbcstv4hi): Likewise.
25200 (tbcstv2si): Likewise.
25201 (iwmmxt_iordi3): Likewise.
25202 (iwmmxt_xordi3): Likewise.
25203 (iwmmxt_anddi3): Likewise.
25204 (iwmmxt_nanddi3): Likewise.
25205 (iwmmxt_arm_movdi): Likewise.
25206 (iwmmxt_movsi_insn): Likewise.
25207 (mov<mode>_internal): Likewise.
25208 (and<mode>3_iwmmxt): Likewise.
25209 (ior<mode>3_iwmmxt): Likewise.
25210 (xor<mode>3_iwmmxt): Likewise.
25211 (add<mode>3_iwmmxt): Likewise.
25212 (ssaddv8qi3): Likewise.
25213 (ssaddv4hi3): Likewise.
25214 (ssaddv2si3): Likewise.
25215 (usaddv8qi3): Likewise.
25216 (usaddv4hi3): Likewise.
25217 (usaddv2si3): Likewise.
25218 (sub<mode>3_iwmmxt): Likewise.
25219 (sssubv8qi3): Likewise.
25220 (sssubv4hi3): Likewise.
25221 (sssubv2si3): Likewise.
25222 (ussubv8qi3): Likewise.
25223 (ussubv4hi3): Likewise.
25224 (ussubv2si3): Likewise.
25225 (mulv4hi3_iwmmxt): Likewise.
25226 (smulv4hi3_highpart): Likewise.
25227 (umulv4hi3_highpart): Likewise.
25228 (iwmmxt_wmacs): Likewise.
25229 (iwmmxt_wmacsz): Likewise.
25230 (iwmmxt_wmacu): Likewise.
25231 (iwmmxt_wmacuz): Likewise.
25232 (iwmmxt_clrdi): Likewise.
25233 (iwmmxt_clrv8qi): Likewise.
25234 (iwmmxt_clr4hi): Likewise.
25235 (iwmmxt_clr2si): Likewise.
25236 (iwmmxt_uavgrndv8qi3): Likewise.
25237 (iwmmxt_uavgrndv4hi3): Likewise.
25238 (iwmmxt_uavgv8qi3): Likewise.
25239 (iwmmxt_uavgv4hi3): Likewise.
25240 (iwmmxt_tinsrb): Likewise.
25241 (iwmmxt_tinsrh): Likewise.
25242 (iwmmxt_tinsrw): Likewise.
25243 (iwmmxt_textrmub): Likewise.
25244 (iwmmxt_textrmsb): Likewise.
25245 (iwmmxt_textrmuh): Likewise.
25246 (iwmmxt_textrmsh): Likewise.
25247 (iwmmxt_textrmw): Likewise.
25248 (iwmxxt_wshufh): Likewise.
25249 (eqv8qi3): Likewise.
25250 (eqv4hi3): Likewise.
25251 (eqv2si3): Likewise.
25252 (gtuv8qi3): Likewise.
25253 (gtuv4hi3): Likewise.
25254 (gtuv2si3): Likewise.
25255 (gtv8qi3): Likewise.
25256 (gtv4hi3): Likewise.
25257 (gtv2si3): Likewise.
25258 (smax<mode>3_iwmmxt): Likewise.
25259 (umax<mode>3_iwmmxt): Likewise.
25260 (smin<mode>3_iwmmxt): Likewise.
25261 (umin<mode>3_iwmmxt): Likewise.
25262 (iwmmxt_wpackhss): Likewise.
25263 (iwmmxt_wpackwss): Likewise.
25264 (iwmmxt_wpackdss): Likewise.
25265 (iwmmxt_wpackhus): Likewise.
25266 (iwmmxt_wpackwus): Likewise.
25267 (iwmmxt_wpackdus): Likewise.
25268 (iwmmxt_wunpckihb): Likewise.
25269 (iwmmxt_wunpckihh): Likewise.
25270 (iwmmxt_wunpckihw): Likewise.
25271 (iwmmxt_wunpckilb): Likewise.
25272 (iwmmxt_wunpckilh): Likewise.
25273 (iwmmxt_wunpckilw): Likewise.
25274 (iwmmxt_wunpckehub): Likewise.
25275 (iwmmxt_wunpckehuh): Likewise.
25276 (iwmmxt_wunpckehuw): Likewise.
25277 (iwmmxt_wunpckehsb): Likewise.
25278 (iwmmxt_wunpckehsh): Likewise.
25279 (iwmmxt_wunpckehsw): Likewise.
25280 (iwmmxt_wunpckelub): Likewise.
25281 (iwmmxt_wunpckeluh): Likewise.
25282 (iwmmxt_wunpckeluw): Likewise.
25283 (iwmmxt_wunpckelsb): Likewise.
25284 (iwmmxt_wunpckelsh): Likewise.
25285 (iwmmxt_wunpckelsw): Likewise.
25286 (ror<mode>3): Likewise.
25287 (ashr<mode>3_iwmmxt): Likewise.
25288 (lshr<mode>3_iwmmxt): Likewise.
25289 (ashl<mode>3_iwmmxt): Likewise.
25290 (ror<mode>3_di): Likewise.
25291 (ashr<mode>3_di): Likewise.
25292 (lshr<mode>3_di): Likewise.
25293 (ashl<mode>3_di): Likewise.
25294 (iwmmxt_wmadds): Likewise.
25295 (iwmmxt_wmaddu): Likewise.
25296 (iwmmxt_tmia): Likewise.
25297 (iwmmxt_tmiaph): Likewise.
25298 (iwmmxt_tmiabb): Likewise.
25299 (iwmmxt_tmiatb): Likewise.
25300 (iwmmxt_tmiabt): Likewise.
25301 (iwmmxt_tmiatt): Likewise.
25302 (iwmmxt_tmovmskb): Likewise.
25303 (iwmmxt_tmovmskh): Likewise.
25304 (iwmmxt_tmovmskw): Likewise.
25305 (iwmmxt_waccb): Likewise.
25306 (iwmmxt_wacch): Likewise.
25307 (iwmmxt_waccw): Likewise.
25308 (iwmmxt_waligni): Likewise.
25309 (iwmmxt_walignr): Likewise.
25310 (iwmmxt_walignr0): Likewise.
25311 (iwmmxt_walignr1): Likewise.
25312 (iwmmxt_walignr2): Likewise.
25313 (iwmmxt_walignr3): Likewise.
25314 (iwmmxt_wsadb): Likewise.
25315 (iwmmxt_wsadh): Likewise.
25316 (iwmmxt_wsadbz): Likewise.
25317 (iwmmxt_wsadhz): Likewise.
25318 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25319 (iwmmxt_wabsdiffb): Likewise.
25320 (iwmmxt_wabsdiffh): Likewise.
25321 (iwmmxt_wabsdiffw): Likewise.
25322 (iwmmxt_waddsubhx): Likewise
25323 (iwmmxt_wsubaddhx): Likewise.
25324 (addc<mode>3): Likewise.
25325 (iwmmxt_avg4): Likewise.
25326 (iwmmxt_avg4r): Likewise.
25327 (iwmmxt_wmaddsx): Likewise.
25328 (iwmmxt_wmaddux): Likewise.
25329 (iwmmxt_wmaddsn): Likewise.
25330 (iwmmxt_wmaddun): Likewise.
25331 (iwmmxt_wmulwsm): Likewise.
25332 (iwmmxt_wmulwum): Likewise.
25333 (iwmmxt_wmulsmr): Likewise.
25334 (iwmmxt_wmulumr): Likewise.
25335 (iwmmxt_wmulwsmr): Likewise.
25336 (iwmmxt_wmulwumr): Likewise.
25337 (iwmmxt_wmulwl): Likewise.
25338 (iwmmxt_wqmulm): Likewise.
25339 (iwmmxt_wqmulwm): Likewise.
25340 (iwmmxt_wqmulmr): Likewise.
25341 (iwmmxt_wqmulwmr): Likewise.
25342 (iwmmxt_waddbhusm): Likewise.
25343 (iwmmxt_waddbhusl): Likewise.
25344 (iwmmxt_wqmiabb): Likewise.
25345 (iwmmxt_wqmiabt): Likewise.
25346 (iwmmxt_wqmiatb): Likewise.
25347 (iwmmxt_wqmiatt): Likewise.
25348 (iwmmxt_wqmiabbn): Likewise.
25349 (iwmmxt_wqmiabtn): Likewise.
25350 (iwmmxt_wqmiatbn): Likewise.
25351 (iwmmxt_wqmiattn): Likewise.
25352 (iwmmxt_wmiabb): Likewise.
25353 (iwmmxt_wmiabt): Likewise.
25354 (iwmmxt_wmiatb): Likewise.
25355 (iwmmxt_wmiatt): Likewise.
25356 (iwmmxt_wmiabbn): Likewise.
25357 (iwmmxt_wmiabtn): Likewise.
25358 (iwmmxt_wmiatbn): Likewise.
25359 (iwmmxt_wmiattn): Likewise.
25360 (iwmmxt_wmiawbb): Likewise.
25361 (iwmmxt_wmiawbt): Likewise.
25362 (iwmmxt_wmiawtb): Likewise.
25363 (iwmmxt_wmiawtt): Likewise.
25364 (iwmmxt_wmiawbbn): Likewise.
25365 (iwmmxt_wmiawbtn): Likewise.
25366 (iwmmxt_wmiawtbn): Likewise.
25367 (iwmmxt_wmiawttn): Likewise.
25368 (iwmmxt_wmerge): Likewise.
25369 (iwmmxt_tandc<mode>3): Likewise.
25370 (iwmmxt_torc<mode>3): Likewise.
25371 (iwmmxt_torvsc<mode>3): Likewise.
25372 (iwmmxt_textrc<mode>3): Likewise.
25373 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25374 (wmmxt_pack): Likewise.
25375 (wmmxt_mult_c1): Likewise.
25376 (wmmxt_mult_c2): Likewise.
25377 (wmmxt_alu_c1): Likewise.
25378 (wmmxt_alu_c2): Likewise.
25379 (wmmxt_alu_c3): Likewise.
25380 (wmmxt_transfer_c1): Likewise.
25381 (wmmxt_transfer_c2): Likewise.
25382 (wmmxt_transfer_c3): Likewise.
25383 (marvell_f_iwmmxt_wstr): Likewise.
25384 (marvell_f_iwmmxt_wldr): Likewise.
25386 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25388 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25390 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25393 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25394 * lra-constraints.c (need_for_split_p): Check call used hard regs
25395 living through calls.
25397 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25398 call used regs for call insn.
25400 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25403 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25404 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25406 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25408 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25410 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25412 * lra-constraints.c (need_for_split_p): Check call used hard regs
25413 living through calls.
25415 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25418 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25419 to tie with any other modes. Eliminate Altivec vector mode tests,
25420 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25421 code, to return 0 if testing MODE2 for a condition, if we've
25422 already tested MODE1 for the same condition.
25424 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25426 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25429 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25431 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25432 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25434 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25436 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25438 (aarch64_symbolic_constant_p): Remove.
25439 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25440 static. Fix line length and white space.
25441 (aarch64_symbolic_constant_p): Remove.
25442 * config/aarch64/predicates.md (aarch64_valid_symref):
25443 Use aarch64_classify_symbol_expression.
25445 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25447 * config/arm/constraints.md (Ts): New constraint.
25448 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25450 (compare_scc): Use "Ts" constraint for operand 0.
25451 (ior_scc_scc): Likewise.
25452 (and_scc_scc): Likewise.
25453 (and_scc_scc_nodom): Likewise.
25454 (ior_scc_scc_cmp): Likewise for operand 7.
25455 (and_scc_scc_cmp): Likewise.
25456 * config/arm/thumb2.md (thumb2_movsi_insn):
25457 Add alternatives for 16-bit encodings.
25458 (thumb2_movhi_insn): Likewise.
25459 (thumb2_movsicc_insn): Likewise.
25460 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25461 (thumb2_negscc): Use "Ts" constraint.
25462 Move mvn instruction outside cond_exec block.
25463 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25464 for 16-bit encodings.
25466 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25468 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25470 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25471 (mulsi3subsi): Likewise.
25472 (mulsidi3adddi): Likewise.
25473 (mulsidi3_v6): Likewise.
25474 (umulsidi3_v6): Likewise.
25475 (umulsidi3adddi_v6): Likewise.
25476 (smulsi3_highpart_v6): Likewise.
25477 (umulsi3_highpart_v6): Likewise.
25478 (mulhisi3tb): Likewise.
25479 (mulhisi3bt): Likewise.
25480 (mulhisi3tt): Likewise.
25481 (maddhisi4): Likewise.
25482 (maddhisi4tb): Likewise.
25483 (maddhisi4tt): Likewise.
25484 (maddhidi4): Likewise.
25485 (maddhidi4tb): Likewise.
25486 (maddhidi4tt): Likewise.
25487 (zeroextractsi_compare0_scratch): Likewise.
25488 (insv_zero): Likewise.
25489 (insv_t2): Likewise.
25490 (anddi_notzesidi_di): Likewise.
25491 (anddi_notsesidi_di): Likewise.
25492 (andsi_notsi_si): Likewise.
25493 (iordi_zesidi_di): Likewise.
25494 (xordi_zesidi_di): Likewise.
25495 (andsi_iorsi3_notsi): Likewise.
25496 (smax_0): Likewise.
25497 (smax_m1): Likewise.
25498 (smin_0): Likewise.
25499 (not_shiftsi): Likewise.
25500 (unaligned_loadsi): Likewise.
25501 (unaligned_loadhis): Likewise.
25502 (unaligned_loadhiu): Likewise.
25503 (unaligned_storesi): Likewise.
25504 (unaligned_storehi): Likewise.
25505 (extv_reg): Likewise.
25506 (extzv_t2): Likewise.
25507 (divsi3): Likewise.
25508 (udivsi3): Likewise.
25509 (arm_zero_extendhisi2addsi): Likewise.
25510 (arm_zero_extendqisi2addsi): Likewise.
25511 (compareqi_eq0): Likewise.
25512 (arm_extendhisi2_v6): Likewise.
25513 (arm_extendqisi2addsi): Likewise.
25514 (arm_movt): Likewise.
25515 (thumb2_ldrd): Likewise.
25516 (thumb2_ldrd_base): Likewise.
25517 (thumb2_ldrd_base_neg): Likewise.
25518 (thumb2_strd): Likewise.
25519 (thumb2_strd_base): Likewise.
25520 (thumb2_strd_base_neg): Likewise.
25521 (arm_negsi2): Add alternative for 16-bit encoding.
25522 (arm_one_cmplsi2): Likewise.
25524 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25526 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25527 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25528 (movdfcc): Likewise.
25529 * config/arm/vfp.md (*thumb2_movsf_vfp):
25530 Disable predication for arm_restrict_it.
25531 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25532 (*thumb2_movdfcc_vfp): Likewise.
25533 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25534 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25535 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25536 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25537 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25538 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25539 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25540 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25541 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25542 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25543 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25544 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25545 Disable predication for arm_restrict_it.
25547 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25549 * config/i386/bmiintrin.h (_bextr_u32): New.
25550 (_bextr_u64): Ditto.
25552 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25554 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25555 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25556 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25557 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25558 * config/mips/n32-elf.h: ...this new file.
25560 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25563 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25564 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25566 2013-06-27 Catherine Moore <clm@codesourcery.com>
25568 * config/mips/mips-tables.opt: Regenerate.
25569 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25570 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25571 * doc/invoke.texi: Add -m14kc.
25573 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25576 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25577 constraints of operand 1 and 2.
25580 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25581 to match RTL canonicalization. Swap predicates and
25582 constraints of operand 1 and 2.
25584 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25586 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25587 Process OP_INOUT regs for splitting too.
25589 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25591 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25592 decl before the loop, initialize to NULL.
25593 (vectorizable_load): Initialize ptr_incr to NULL.
25595 2013-06-27 Martin Jambor <mjambor@suse.cz>
25598 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25599 * ipa-ref.c (ipa_maybe_record_reference): New function.
25600 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25601 * ipa-cp.c (create_specialized_node): Record potential references from
25603 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25605 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25607 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25608 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25609 'mode' to force_reg.
25610 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25611 (aarch64_expand_mov_immediate): Likewise.
25613 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25615 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25616 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25618 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25620 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25621 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25622 (struct machine_function): Add tbegin_p.
25623 (s390_canonicalize_comparison): Fold CC mode compares to
25624 conditional jump if possible.
25625 (s390_emit_jump): Return the emitted jump.
25626 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25627 Handle CCRAWmode compares.
25628 (s390_option_override): Default to -mhtm if available.
25629 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25630 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25631 FPRs instead of df_regs_ever_live_p.
25632 (s390_optimize_nonescaping_tx): New function.
25633 (s390_init_frame_layout): Extend clobbered_regs array to cover
25635 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25636 (s390_expand_tbegin): New function.
25637 (enum s390_builtin): New enum definition.
25638 (code_for_builtin): New array definition.
25639 (s390_init_builtins): New function.
25640 (s390_expand_builtin): New function.
25641 (TARGET_INIT_BUILTINS): Define.
25642 (TARGET_EXPAND_BUILTIN): Define.
25643 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25644 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25645 (s390_alc_comparison): Likewise.
25646 * config/s390/s390-modes.def: Add CCRAWmode.
25647 * config/s390/s390.h (processor_flags): Add PF_TX.
25648 (TARGET_CPU_HTM): Define macro.
25649 (TARGET_HTM): Define macro.
25650 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25651 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25652 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25653 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25654 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25655 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25656 ("*cc_to_int"): Move up.
25657 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25658 constants other than 0.
25659 ("*ccraw_to_int"): New insn and splitter definition.
25660 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25661 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25662 ("tx_assist"): New expander.
25663 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25664 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25665 * config/s390/s390.opt: Add -mhtm option.
25666 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25667 * config/s390/htmxlintrin.h: New file.
25668 * config/s390/htmintrin.h: New file.
25669 * config/s390/s390intrin.h: New file.
25670 * doc/extend.texi: Document htm builtins.
25671 * config.gcc: Add the new header files to extra_headers.
25673 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25675 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25676 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25678 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25679 Pat Haugen <pthaugen@us.ibm.com>
25680 Peter Bergner <bergner@vnet.ibm.com>
25682 * config/rs6000/power8.md: New.
25683 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25684 setting for power8 entry.
25685 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25686 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25687 test for Power4/Power5 only.
25688 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25690 (force_new_group): Adjust comment.
25691 * config/rs6000/rs6000.md: Include power8.md.
25693 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25695 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25696 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25698 (tune_params): Update comment.
25699 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25700 (arm_max_conditional_execute): New function.
25701 (thumb2_final_prescan_insn): Use max_insn_skipped and
25702 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25704 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25706 PR tree-optimization/57705
25707 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25708 SSA_NAME step, provided that it is not defined inside the loop.
25709 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25710 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25712 2013-06-25 Martin Jambor <mjambor@suse.cz>
25714 PR middle-end/57670
25715 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25716 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25718 (ipa_note_param_call): Initialize member_ptr flag.
25719 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25720 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25721 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25722 (ipa_read_indirect_edge_info): Likewise.
25724 2013-06-25 Richard Biener <rguenther@suse.de>
25726 PR middle-end/56977
25727 * passes.c (init_optimization_passes): Move pass_fold_builtins
25728 and pass_dce earlier with -Og.
25730 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25732 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25733 <BIT_FIELD_REF>: Remove trailing TAB.
25734 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25737 2013-06-24 Martin Jambor <mjambor@suse.cz>
25739 PR tree-optimization/57358
25740 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25741 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25742 (ipa_analyze_params_uses): Generate pessimistic info when true.
25744 2013-06-24 Martin Jambor <mjambor@suse.cz>
25746 PR tree-optimization/57539
25747 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25748 global.inlined_to of the new node to it. All callers changed.
25749 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25750 inlining_into, pass it to cgraph_clone_node.
25751 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25752 ipa_free_edge_args_substructures.
25753 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25754 rdesc linked list. Do not assert rdesc edges have inlined caller.
25755 Assert we have found an rdesc in the rdesc list.
25757 2013-06-24 Richard Biener <rguenther@suse.de>
25759 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25760 (pointer_set_lookup): Declare.
25761 (class pointer_map): New template class implementing a
25762 generic pointer to T map.
25763 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25764 pointer_map<T>::contains, pointer_map<T>::insert,
25765 pointer_map<T>::traverse): New functions.
25766 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25767 (pointer_set_lookup): New function.
25768 (pointer_set_contains): Use pointer_set_lookup.
25769 (pointer_set_insert): Likewise.
25770 (insert_aux): Remove.
25771 (struct pointer_map_t): Embed a pointer_set_t.
25772 (pointer_map_create): Adjust.
25773 (pointer_map_destroy): Likewise.
25774 (pointer_map_contains): Likewise.
25775 (pointer_map_insert): Likewise.
25776 (pointer_map_traverse): Likewise.
25777 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25778 pointer_map<unsigned> instead of a pointer_map_t.
25779 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25780 (streamer_tree_cache_lookup): Likewise.
25781 (streamer_tree_cache_create): Likewise.
25782 (streamer_tree_cache_delete): Likewise.
25783 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25784 pointer_map<unsigned> instead of a pointer_map_t.
25785 (lto_init_tree_ref_encoder): Adjust.
25786 (lto_destroy_tree_ref_encoder): Likewise.
25787 * lto-section-out.c (lto_output_decl_index): Likewise.
25788 (lto_record_function_out_decl_state): Likewise.
25789 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25791 2013-06-24 Richard Biener <rguenther@suse.de>
25793 PR tree-optimization/57488
25794 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25796 2013-06-24 Alan Modra <amodra@gmail.com>
25798 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25799 (gen_easy_altivec_constant): Likewise.
25800 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25801 easy_vector_constant_msb): Likewise.
25803 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25806 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25807 add missing return true.
25809 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25812 * config/sh/predicates.md (general_extend_operand): Invoke
25813 general_movsrc_operand for memory operands.
25814 (general_movsrc_operand): Allow reg+reg addressing, do not use
25815 general_operand for memory operands.
25817 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25819 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25820 when current target options does not apply.
25821 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25822 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25823 * config/i386/bmiintrin.h: Pass appropriate target
25824 attributes to header.
25825 * config/i386/mmintrin.h: Ditto.
25826 * config/i386/nmmintrin.h: Ditto.
25827 * config/i386/avx2intrin.h: Ditto.
25828 * config/i386/fxsrintrin.h: Ditto.
25829 * config/i386/tbmintrin.h: Ditto.
25830 * config/i386/xsaveintrin.h: Ditto.
25831 * config/i386/f16cintrin.h: Ditto.
25832 * config/i386/xtestintrin.h: Ditto.
25833 * config/i386/xsaveoptintrin.h: Ditto.
25834 * config/i386/bmi2intrin.h: Ditto.
25835 * config/i386/lzcntintrin.h: Ditto.
25836 * config/i386/smmintrin.h: Ditto.
25837 * config/i386/wmmintrin.h: Ditto.
25838 * config/i386/x86intrin.h: Remove all header include guards.
25839 * config/i386/prfchwintrin.h: Ditto.
25840 * config/i386/pmmintrin.h: Ditto.
25841 * config/i386/tmmintrin.h: Ditto.
25842 * config/i386/xmmintrin.h: Ditto.
25843 * config/i386/popcntintrin.h: Ditto.
25844 * config/i386/rdseedintrin.h: Ditto.
25845 * config/i386/ammintrin.h: Ditto.
25846 * config/i386/emmintrin.h: Ditto.
25847 * config/i386/immintrin.h: Remove all header include guards.
25848 * config/i386/fma4intrin.h: Ditto.
25849 * config/i386/lwpintrin.h: Ditto.
25850 * config/i386/xopintrin.h: Ditto.
25851 * config/i386/ia32intrin.h: Ditto.
25852 * config/i386/avxintrin.h: Ditto.
25853 * config/i386/rtmintrin.h: Ditto.
25854 * config/i386/fmaintrin.h: Ditto.
25855 * config/i386/mm3dnow.h: Ditto.
25857 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25859 * common/config/i386/i386-common.c: Handle LZCNT.
25861 2013-06-22 Andi Kleen <ak@linux.intel.com>
25863 * doc/extend.texi: Use __atomic_store_n instead of
25864 __atomic_store in HLE example.
25866 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25868 * config/sh/sh.c: Remove <cstdlib> workaround.
25870 2013-06-21 Andi Kleen <ak@linux.intel.com>
25872 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25874 2013-06-21 Andi Kleen <ak@linux.intel.com>
25876 * doc/extend.texi: Document that __atomic_clear and
25877 __atomic_test_and_set should only be used with bool.
25879 2013-06-20 Jan Hubicka <jh@suse.cz>
25881 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25882 types_same_for_odr.
25883 * tree.c (decls_same_for_odr): New function.
25884 (same_for_edr): New function.
25885 (types_same_for_odr): New function.
25886 (get_binfo_at_offset): Use it.
25887 * tree.h (types_same_for_odr): Declare.
25889 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25890 Jason Merrill <jason@redhat.com>
25892 * system.h: Include <cstdlib> as well as <stdlib.h>.
25894 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25897 * config/i386/i386.c (construct_container): Report error if
25898 long double is used with disabled x87 float returns.
25900 2013-06-20 Jan Hubicka <jh@suse.cz>
25902 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25904 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25906 PR rtl-optimization/57425
25907 PR rtl-optimization/57569
25908 * alias.c (write_dependence_p): Remove parameters mem_mode and
25909 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25910 Changed all callers.
25911 (canon_anti_dependence): Get comments and semantics in sync.
25912 Add parameter mem_canonicalized. Changed all callers.
25913 * rtl.h (canon_anti_dependence): Update prototype.
25915 2013-06-20 Richard Biener <rguenther@suse.de>
25917 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25918 byte case, inline streamer_read_uchar and defer section
25921 2013-06-20 Richard Biener <rguenther@suse.de>
25923 PR tree-optimization/57584
25924 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25925 SSA names into the expanded expression that take part in
25926 abnormal coalescing.
25928 2013-06-19 Sharad Singhai <singhai@google.com>
25930 * gcov.c (print_usage): Handle new option.
25931 (process_args): Ditto.
25932 (get_gcov_intermediate_filename): New function.
25933 (output_intermediate_file): New function.
25934 (output_gcov_file): New function
25935 (generate_results): Handle new option.
25936 (release_function): Relase demangled name.
25937 (read_graph_file): Handle demangled name.
25938 (output_lines): Ditto.
25939 * doc/gcov.texi: Document gcov intermediate format.
25941 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25944 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25945 (lra_emit_add): Use the functions. Add comment about Y as an
25948 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25951 * collect2.c (collect_atexit): New.
25952 (collect_exit): Delete.
25953 (main): Register collect_atexit with atexit.
25954 (collect_wait): Change collect_exit to exit.
25956 * collect2.h (collect_exit): Delete.
25957 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25959 2013-06-19 Wei Mi <wmi@google.com>
25961 PR rtl-optimization/57518
25962 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25963 if regno is used in paradoxical subreg.
25964 (update_equiv_regs): Check pdx_subregs[regno] before
25965 set a reg to be equivalent with a mem.
25967 2013-06-19 Matthias Klose <doko@ubuntu.com>
25970 * file-find.h (find_a_file): Add a mode parameter.
25971 * file-find.c (find_a_file): Likewise.
25972 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25973 with X_OK for the executables.
25974 * collect2.c (main): Call find_a_file with X_OK.
25976 2013-06-19 Steve Ellcey <sellcey@mips.com>
25979 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25980 Use NEXT_INSN instead of next_real_insn.
25982 2013-06-19 Jan Hubicka <jh@suse.cz>
25984 * cgraph.h (const_value_known_p): Replace by ...
25985 (ctor_for_folding): .. this one.
25986 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25987 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25988 * expr.c (expand_expr_real_1): Likewise.
25989 (string_constant): Likewise.
25990 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25991 * ipa.c (process_references): Likewise.
25992 (symtab_remove_unreachable_nodes): Likewise.
25993 * ipa-inline-analysis.c (param_change_prob): Likewise.
25994 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25995 (get_base_constructor): Likwise.
25996 * varpool.c (varpool_remove_node): Likewise.
25997 (varpool_remove_initializer): LIkewise.
25998 (dump_varpool_node): LIkwise.
25999 (const_value_known_p): Rewrite to ...
26000 (ctor_for_folding): ... this one.
26002 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26005 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26006 PERSONALITY in $PATH derived prefixes.
26008 2013-06-19 Jeff Law <law@redhat.com>
26010 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26013 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26014 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26017 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26019 * config/arm/vfp.md: Move VFP instruction classification documentation
26021 * config/arm/arm.md: ... here. Update instruction classification
26024 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26026 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26027 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26028 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26030 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26033 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26034 with NEXT_INSN. Use tablejump_p to check for jump table data
26037 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26040 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26041 that now in C++ the value is correct per the C++ standards.
26043 2013-06-19 Richard Biener <rguenther@suse.de>
26045 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26046 for global context.
26048 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26051 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26054 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26055 with next_active_insn.
26057 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26059 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26060 functions are inlined during failures to flag an error.
26061 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26062 in early inline pass.
26064 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26066 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26069 2013-06-18 Julian Brown <julian@codesourcery.com>
26071 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26072 Permit virtual register pre-reload if !strict.
26073 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26075 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26077 * config/arm/neon.md (movmisalign<mode>): Use
26078 neon_perm_struct_or_reg_operand instead of
26079 neon_struct_or_register_operand.
26080 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26081 neon_permissive_struct_operand instead of neon_struct_operand.
26082 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26083 neon_vector_mem_operand.
26084 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26085 neon_vector_mem_operand.
26086 (neon_permissive_struct_operand): New.
26087 (neon_struct_or_register_operand): Rename to...
26088 (neon_perm_struct_or_reg_operand): This. Adjust call to
26089 neon_vector_mem_operand.
26091 2013-06-18 Richard Biener <rguenther@suse.de>
26093 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26094 * lto-streamer.h: Include pointer-set.h.
26095 (struct lto_decl_slot): Remove.
26096 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26097 Remove next_index entry.
26098 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26099 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26100 (lto_init_tree_ref_encoder): Adjust.
26101 (lto_destroy_tree_ref_encoder): Likewise.
26102 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26103 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26104 (lto_output_decl_index): Adjust.
26105 (lto_new_out_decl_state): Likewise.
26106 (lto_record_function_out_decl_state): Likewise.
26107 * lto-streamer-out.c (copy_function): Likewise.
26109 2013-06-18 Richard Biener <rguenther@suse.de>
26111 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26112 * cgraphunit.c: Include cfgloop.h.
26113 (init_lowered_empty_function): Initialize the loop tree.
26114 (assemble_thunk): Insert new BBs into loops.
26116 2013-06-18 Richard Biener <rguenther@suse.de>
26118 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26119 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26120 the map from cache entry to cache index optional.
26121 (streamer_tree_cache_replace_tree): Adjust accordingly.
26122 (streamer_tree_cache_append): Likewise.
26123 (streamer_tree_cache_delete): Likewise.
26124 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26125 streamer cache map from cache entry to cache index.
26126 * lto-streamer-out.c (create_output_block): Adjust.
26128 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26130 * config/arm/arm.md (attribute "insn"): Move multiplication and
26131 division attributes to...
26132 (attribute "type"): ... here. Remove mult.
26133 (attribute "mul32"): New attribute.
26134 (attribute "mul64"): Add umaal.
26135 (*arm_mulsi3): Update attributes.
26136 (*arm_mulsi3_v6): Likewise.
26137 (*thumb_mulsi3): Likewise.
26138 (*thumb_mulsi3_v6): Likewise.
26139 (*mulsi3_compare0): Likewise.
26140 (*mulsi3_compare0_v6): Likewise.
26141 (*mulsi_compare0_scratch): Likewise.
26142 (*mulsi_compare0_scratch_v6): Likewise.
26143 (*mulsi3addsi): Likewise.
26144 (*mulsi3addsi_v6): Likewise.
26145 (*mulsi3addsi_compare0): Likewise.
26146 (*mulsi3addsi_compare0_v6): Likewise.
26147 (*mulsi3addsi_compare0_scratch): Likewise.
26148 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26149 (*mulsi3subsi): Likewise.
26150 (*mulsidi3adddi): Likewise.
26151 (*mulsi3addsi_v6): Likewise.
26152 (*mulsidi3adddi_v6): Likewise.
26153 (*mulsidi3_nov6): Likewise.
26154 (*mulsidi3_v6): Likewise.
26155 (*umulsidi3_nov6): Likewise.
26156 (*umulsidi3_v6): Likewise.
26157 (*umulsidi3adddi): Likewise.
26158 (*umulsidi3adddi_v6): Likewise.
26159 (*smulsi3_highpart_nov6): Likewise.
26160 (*smulsi3_highpart_v6): Likewise.
26161 (*umulsi3_highpart_nov6): Likewise.
26162 (*umulsi3_highpart_v6): Likewise.
26163 (mulhisi3): Likewise.
26164 (*mulhisi3tb): Likewise.
26165 (*mulhisi3bt): Likewise.
26166 (*mulhisi3tt): Likewise.
26167 (maddhisi4): Likewise.
26168 (*maddhisi4tb): Likewise.
26169 (*maddhisi4tt): Likewise.
26170 (maddhidi4): Likewise.
26171 (*maddhidi4tb): Likewise.
26172 (*maddhidi4tt): Likewise.
26173 (divsi3): Likewise.
26174 (udivsi3): Likewise.
26175 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26176 (thumb2_mulsi_short_compare0): Likewise.
26177 (thumb2_mulsi_short_compare0_scratch): Likewise.
26178 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26179 (1020mult2): Likewise.
26180 (1020mult3): Likewise.
26181 (1020mult4): Likewise.
26182 (1020mult5): Likewise.
26183 (1020mult6): Likewise.
26184 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26186 (cortex_a15_mult64): Likewise.
26187 (cortex_a15_sdiv): Likewise.
26188 (cortex_a15_udiv): Likewise.
26189 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26195 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26196 (pj4_ir_div): Likewise.
26197 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26198 (11_mult2): Likewise.
26199 (11_mult3): Likewise.
26200 (11_mult4): Likewise.
26201 (11_mult5): Likewise.
26202 (11_mult6): Likewise.
26203 (11_mult7): Likewise.
26204 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26205 (cortex_a8_mla): Likewise.
26206 (cortex_a8_mull): Likewise.
26207 (cortex_a8_smulwy): Likewise.
26208 (cortex_a8_smlald): Likewise.
26209 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26210 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26211 (cortex_r4_mul_3): Likewise.
26212 (cortex_r4_mla_4): Likewise.
26213 (cortex_r4_mla_3): Likewise.
26214 (cortex_r4_smlald): Likewise.
26215 (cortex_r4_mull): Likewise.
26216 (cortex_r4_sdiv): Likewise.
26217 (cortex_r4_udiv): Likewise.
26218 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26219 (cortex_a7_idiv): Likewise.
26220 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26221 (9_mult2): Likewise.
26222 (9_mult3): Likewise.
26223 (9_mult4): Likewise.
26224 (9_mult5): Likewise.
26225 (9_mult6): Likewise.
26226 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26227 (cortex_a53_sdiv): Likewise.
26228 (cortex_a53_udiv): Likewise.
26229 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26230 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26231 (mp626_mult2): Likewise.
26232 (mp626_mult3): Likewise.
26233 (mp626_mult4): Likewise.
26234 * config/arm/fa526.md (526_mult1): Update attribute change.
26235 (526_mult2): Likewise.
26236 * config/arm/arm-generic.md (mult): Update attribute change.
26237 (mult_ldsched_strongarm): Likewise.
26238 (mult_ldsched): Likewise.
26239 (multi_cycle): Likewise.
26240 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26241 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26242 (606te_mult2): Likewise.
26243 (606te_mult3): Likewise.
26244 (606te_mult4): Likewise.
26245 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26246 (cortex_a9_mac16): Likewise.
26247 (cortex_a9_multiply): Likewise.
26248 (cortex_a9_mac): Likewise.
26249 (cortex_a9_multiply_long): Likewise.
26250 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26251 (626te_mult2): Likewise.
26252 (626te_mult3): Likewise.
26253 (626te_mult4): Likewise.
26255 2013-06-18 Richard Biener <rguenther@suse.de>
26258 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26260 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26263 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26264 with next_active_insn.
26266 2013-06-18 Alan Modra <amodra@gmail.com>
26268 * config/rs6000/rs6000.h (enum data_align): New.
26269 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26270 (DATA_ABI_ALIGNMENT): Define.
26271 (CONSTANT_ALIGNMENT): Correct comment.
26272 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26273 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26275 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26277 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26278 ATTRIBUTE_UNUSED marking.
26280 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26282 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26283 alternative and update.
26284 (aarch64_dup_lanedi): Delete.
26285 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26286 * config/aarch64/aarch64-simd-builtins.def: Update.
26288 2013-06-17 Richard Biener <rguenther@suse.de>
26290 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26291 (lto_input_scc): Declare.
26292 (lto_input_tree_1): Likewise.
26293 (struct lto_stats_d): Add num_tree_bodies_output and
26294 num_pickle_refs_output.
26295 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26296 (lto_read_tree_1): Split out from ...
26297 (lto_read_tree): ... this.
26298 (lto_input_scc): New function.
26299 (lto_input_tree_1): Split out from ...
26300 (lto_input_tree): ... this. Handle LTO_tree_scc.
26301 (lto_data_in_create): Create the streamer cache without hashes.
26302 * lto-streamer-out.c (create_output_block): Create the streamer
26303 cache with hashes when not doing WPA.
26304 (lto_write_tree_1): Split out from ...
26305 (lto_write_tree): ... this.
26306 (get_symbol_initial_value): New function.
26307 (lto_output_tree_1): Split out from ...
26308 (lto_output_tree): ... this. Write trees as series of SCCs
26309 using a DFS walk via DFS_write_tree.
26310 (struct sccs, struct scc_entry): New types.
26311 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26312 (DFS_write_tree_body): New function.
26313 (DFS_write_tree): Likewise.
26314 (hash_tree): Likewise.
26315 (scc_entry_compare): Likewise.
26316 (hash_scc): Likewise.
26317 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26318 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26319 TREE_CHAIN as regular reference.
26320 (streamer_read_integer_cst): Remove.
26321 (streamer_get_pickled_tree): Adjust.
26322 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26323 of DECL_EXTERNALs in BLOCK_VARS for now.
26324 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26326 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26327 Add hash value argument and record that if hashes are recorded
26329 (streamer_tree_cache_insert_1): Adjust.
26330 (streamer_tree_cache_insert): Likewise.
26331 (streamer_tree_cache_insert_at): Rename to ...
26332 (streamer_tree_cache_replace_tree): ... this and adjust.
26333 (streamer_tree_cache_append): Adjust.
26334 (record_common_node): Likewise.
26335 (streamer_tree_cache_create): Add argument whether to
26336 record hash values together with trees.
26337 (streamer_tree_cache_delete): Adjust.
26338 * tree-streamer.h (struct streamer_tree_cache_d): Add
26340 (streamer_read_integer_cst): Remove.
26341 (streamer_tree_cache_insert): Adjust.
26342 (streamer_tree_cache_append): Likewise.
26343 (streamer_tree_cache_insert_at): Rename to ...
26344 (streamer_tree_cache_replace_tree): ... this and adjust.
26345 (streamer_tree_cache_create): Add argument whether to record hashes.
26346 (streamer_tree_cache_get): Rename to ...
26347 (streamer_tree_cache_get_tree): ... this.
26348 (streamer_tree_cache_get_hash): New function.
26349 * tree.c (cache_integer_cst): New function.
26350 * tree.h (cache_integer_cst): Declare.
26351 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26352 * lto-symtab.c (lto_varpool_replace_node): Only release
26353 DECL_INITIAL of non-prevailing decls.
26354 * varpool.c (varpool_remove_initializer): Do not release
26355 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26357 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26359 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26360 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26361 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26362 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26363 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26364 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26365 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26366 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26367 instead of TARGET_64BIT.
26368 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26369 Require ISA_HAS_<D>DIV.
26371 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26373 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26374 (mips*-*-linux*): Move default with_llsc setting to where other
26376 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26378 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26379 Likewise. Remove default with_tune setting. Move default float
26380 setting to its own block. Handle with_llsc in the same block as above.
26382 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26384 PR rtl-optimization/57425
26385 PR rtl-optimization/57569
26386 * alias.c (write_dependence_p): Add new parameters mem_mode,
26387 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26388 Changed all callers.
26389 (canon_anti_dependence): New function.
26390 * cse.c (check_dependence): Use canon_anti_dependence.
26391 * cselib.c (cselib_invalidate_mem): Likewise.
26392 * rtl.h (canon_anti_dependence): Declare.
26394 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26396 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26397 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26398 ".set mips3" for 64-bit targets.
26400 2013-06-15 Dehao Chen <dehao@google.com>
26402 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26403 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26404 (gimple_check_call_args): Likewise.
26405 * value-prof.c (check_ic_target): Likewise.
26406 * ipa-inline.c (early_inliner): Likewise.
26407 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26408 * cgraph.c (cgraph_create_edge_1): Likewise.
26409 (cgraph_make_edge_direct): Likewise.
26411 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26414 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26415 rs6000_output_move_128bit to handle emitting quad memory
26416 operations. Set attribute length to 8 bytes.
26418 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26420 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26422 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26423 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26424 (aarch64_<su>mlsl<mode>): Likewise.
26426 2013-06-14 Mike Stump <mikestump@comcast.net>
26428 * Makefile.in (TARGET_H): Add insn-codes.h.
26430 2013-06-14 Alan Modra <amodra@gmail.com>
26432 PR middle-end/57134
26433 PR middle-end/57586
26434 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26435 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26436 bitfield expansion when EXPAND_MEMORY.
26437 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26439 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26441 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26442 test for clearing quad memory on 32-bit later.
26444 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26446 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26447 (fold_negate_expr): Likewise.
26448 (fold_real_zero_addition_p): Handle vectors.
26449 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26451 2013-06-14 Alan Modra <amodra@gmail.com>
26453 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26455 2013-06-13 Jan Hubicka <jh@suse.cz>
26457 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26458 Local comdats are not externally visible.
26459 * symtab.c (dump_symtab_base): Dump externally visible.
26460 (verify_symtab_base): Verify back links in the symtab hash.
26462 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26464 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26465 CONVERT_EXPR as equal nodes.
26467 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26469 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26471 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26473 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26474 Generalize to complex and vector.
26475 * tree.c (build_all_ones_cst): New function.
26476 * tree.h (build_all_ones_cst): Declare it.
26478 2013-06-13 Alan Modra <amodra@gmail.com>
26480 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26481 * config/rs6000/rs6000.md (signbittf2): New insn.
26482 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26483 (abstf2_internal, cmptf_internal2): Likewise.
26484 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26486 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26487 Pat Haugen <pthaugen@us.ibm.com>
26488 Peter Bergner <bergner@vnet.ibm.com>
26490 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26491 power8 byte, half-word, and quad-word atomic instructions.
26492 (emit_store_conditional): Likewise.
26493 (rs6000_expand_atomic_compare_and_swap): Likewise.
26494 (rs6000_expand_atomic_op): Likewise.
26496 * config/rs6000/sync.md (larx): Add new modes for power8.
26498 (AINT): New mode iterator to include TImode as well as normal
26499 integer modes on power8.
26500 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26501 that VSX registers are not considered. Use AINT mode iterator
26502 instead of INT1 to allow inclusion of quad word atomic operations
26504 (load_locked<mode>): Likewise.
26505 (store_conditional<mode>): Likewise.
26506 (atomic_compare_and_swap<mode>): Likewise.
26507 (atomic_exchange<mode>): Likewise.
26508 (atomic_nand<mode>): Likewise.
26509 (atomic_fetch_<fetchop_name><mode>): Likewise.
26510 (atomic_nand_fetch<mode>): Likewise.
26511 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26513 (ATOMIC): On power8, add QImode, HImode modes.
26514 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26515 modes that promote to SImode.
26516 (load_lockedti): Convert TImode arguments to PTImode, so that we
26517 get a guaranteed even/odd register pair.
26518 (load_lockedpti): Likewise.
26519 (store_conditionalti): Likewise.
26520 (store_conditionalpti): Likewise.
26522 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26523 atomic load/store instructions.
26526 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26528 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26530 (insn_count): New attribute, with most cases extracted from...
26531 (length): ...here. Redefine most cases in terms of insn_count.
26532 (single_insn): Delete.
26533 (can_delay): Use insn_count to check for single instructions.
26534 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26535 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26536 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26537 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26538 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26539 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26540 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26541 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26542 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26543 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26544 rather than "length".
26545 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26546 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26547 Use "insn_count" rather than "length".
26548 * config/mips/mips-dsp.md
26549 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26550 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26553 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26555 PR tree-optimization/57361
26556 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26558 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26560 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26562 (aarch64_simd_combine<mode>): New instruction expansion.
26563 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26564 function prototype.
26565 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26566 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26568 2013-06-12 Jan Hubicka <jh@suse.cz>
26570 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26571 decl has when in streaming stage.
26572 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26573 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26575 2013-06-12 Roland Stigge <stigge@antcom.de>
26578 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26580 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26582 PR tree-optimization/57537
26583 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26584 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26586 2013-06-12 Richard Biener <rguenther@suse.de>
26588 * data-streamer.h (streamer_write_char_stream): CSE
26589 obs->current_pointer.
26590 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26591 streamer_write_char_stream manually and optimize the resulting loop.
26592 (streamer_write_hwi_stream): Likewise.
26594 2013-06-12 Jan Hubicka <jh@suse.cz>
26596 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26597 * cgraph.h (varpool_create_empty_node): Declare.
26598 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26600 * symtab.c (symtab_unregister_node): Be lax about missin entries
26602 (symtab_get_node): Update comment.
26603 * varpool.c (varpool_create_empty_node): Break out from ...
26604 (varpool_node_for_decl): ... here.
26605 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26607 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26609 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26610 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26611 part. Use straight-line flow at the end.
26612 <COMPONENT_REF>: Remove superfluous else.
26613 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26615 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26618 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26619 target hook even for !TREE_PUBLIC decls. If no resolution info
26620 is available, return false for common and external decls.
26622 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26624 * config/rl78/constraints.md (U): New constraint.
26625 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26628 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26631 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26632 to allow returning address to AT_PLATFORM name.
26634 2013-06-11 Jan Hubicka <jh@suse.cz>
26636 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26637 * cgraph.h (symtab_node_base): Add weakref flag.
26638 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26639 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26640 (output_weakrefs): Use weakref flag.
26641 * fold-const.c (simple_operand_p): Handle WEAK.
26642 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26643 * ipa.c (varpool_externally_visible_p): Drop weakref.
26644 (function_and_variable_visibility): Update comment; fix weakref
26645 sanity checks; do not clear DECL_WEAK on them.
26646 * lto-cgraph.c (lto_output_node): update.
26647 (lto_output_varpool_node): Update.
26648 (input_overwrite_node): Update.
26649 (input_node): Update.
26650 (input_varpool_node): Update.
26651 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26652 (lto_symtab_merge_symbols): Add sanity check.
26653 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26654 * passes.c (rest_of_decl_compilation): Set static flag, too.
26655 * symtab.c (dump_symtab_base): Dump weakref.
26656 (verify_symtab_base): Sanity check weakrefs.
26657 (symtab_make_decl_local): Remove duplicated code.
26658 (symtab_alias_ultimate_target): Simplify.
26659 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26661 2013-06-11 Tom de Vries <tom@codesourcery.com>
26663 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26664 sequence_vect == NULL.
26666 2013-06-11 DJ Delorie <dj@redhat.com>
26668 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26669 (rl78_unwind_word_mode): New.
26671 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26673 * final.c (debug_prefix_maps): Make static.
26675 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26677 * function.c (initial_trampoline): Remove stray copy.
26679 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26681 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26683 2013-06-11 Martin Jambor <mjambor@suse.cz>
26685 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26686 within bounds at the beginning of the function.
26688 2013-06-11 Alan Modra <amodra@gmail.com>
26690 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26692 (get_named_section): Don't NULL !DECL_P decl.
26694 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26696 * doc/invoke.texi (core-avx2): Document.
26698 (atom): Updated with MOVBE.
26700 2013-06-11 Richard Biener <rguenther@suse.de>
26702 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26704 2013-06-11 Anton Blanchard <anton@samba.org>
26706 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26707 correct shift value in little-endian mode.
26709 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26712 * varasm.c (get_variable_align): Move #endif to the right place.
26714 2013-06-10 Cary Coutant <ccoutant@google.com>
26716 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26717 for hash so that hash table traversal order is deterministic.
26719 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26720 Pat Haugen <pthaugen@us.ibm.com>
26721 Peter Bergner <bergner@vnet.ibm.com>
26723 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26724 of vectors in GPRS if they are direct moves or quad word load or
26727 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26729 (direct_move_p): Likewise.
26730 (quad_load_store_p): Likewise.
26732 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26733 classes into bins based on the physical register type.
26734 (reg_class_to_reg_type): Likewise.
26735 (IS_STD_REG_TYPE): Likewise.
26736 (IS_FP_VECT_REG_TYPE): Likewise.
26737 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26738 use direct move instructions.
26739 (reload_gpr_vsx): Likewise.
26740 (reload_vsx_gpr): Likewise.
26741 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26742 information that is a simplification of register classes. Also
26743 precalculate direct move reload helpers.
26744 (direct_move_p): New function to return true if the operation can
26745 be done as a direct move instruciton.
26746 (quad_load_store_p): New function to return true if the operation
26747 is a quad memory operation.
26748 (rs6000_legitimize_address): If quad memory, only allow register
26749 indirect for TImode addresses.
26750 (rs6000_legitimate_address_p): Likewise.
26751 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26752 (rs6000_reload_register_type): Likewise.
26753 (register_to_reg_type): Return register type.
26754 (rs6000_secondary_reload_simple_move): New helper function for
26755 secondary reload and secondary memory needed to identify anything
26756 that is a simple move, and does not need reloading.
26757 (rs6000_secondary_reload_direct_move): New helper function for
26758 secondary reload to identify cases that can be done with several
26759 instructions via the direct move instructions.
26760 (rs6000_secondary_reload_move): New helper function for secondary
26761 reload to identify moves between register types that can be done.
26762 (rs6000_secondary_reload): Add support for quad memory operations
26763 and for direct move.
26764 (rs6000_secondary_memory_needed): Likewise.
26765 (rs6000_debug_secondary_memory_needed): Change argument names.
26766 (rs6000_output_move_128bit): New function to return the move to
26767 use for 128-bit moves, including knowing about the various
26768 limitations of quad memory operations.
26770 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26771 memory operations. call rs6000_output_move_128bit for the actual
26772 instruciton(s) to generate.
26773 (vsx_movti_64bit): Likewise.
26775 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26776 (UNSPEC_P8V_MTVSRWZ): Likewise.
26777 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26778 (UNSPEC_P8V_MTVSRD): Likewise.
26779 (UNSPEC_P8V_XXPERMDI): Likewise.
26780 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26781 (UNSPEC_FUSION_GPR): Likewise.
26782 (FMOVE128_GPR): New iterator for direct move.
26783 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26784 (f32_sv): Likewise.
26785 (f32_dm): Likewise.
26786 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26787 loads and direct move instructions.
26788 (zero_extendsidi2_lfiwzx): Likewise.
26789 (extendsidi2_lfiwax): Likewise.
26790 (extendsidi2_nocell): Likewise.
26791 (floatsi<mode>2_lfiwax): Likewise.
26792 (lfiwax): Likewise.
26793 (floatunssi<mode>2_lfiwzx): Likewise.
26794 (lfiwzx): Likewise.
26795 (fix_trunc<mode>_stfiwx): Likewise.
26796 (fixuns_trunc<mode>_stfiwx): Likewise.
26797 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26798 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26799 (parity<mode>2_cmpb): Set length/type attr.
26800 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26801 for 'mr.' to fast_compare.
26802 (bpermd_<mode>): Change type attr to popcnt.
26803 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26804 (p8_mtvsrwz_1): Likewise.
26805 (p8_mtvsrwz_2): Likewise.
26806 (reload_fpr_from_gpr<mode>): Likewise.
26807 (p8_mtvsrd_1): Likewise.
26808 (p8_mtvsrd_2): Likewise.
26809 (p8_xxpermdi_<mode>): Likewise.
26810 (reload_vsx_from_gpr<mode>): Likewise.
26811 (reload_vsx_from_gprsf): Likewise.
26812 (p8_mfvsrd_3_<mode>): LIkewise.
26813 (reload_gpr_from_vsx<mode>): Likewise.
26814 (reload_gpr_from_vsxsf): Likewise.
26815 (p8_mfvsrd_4_disf): Likewise.
26816 (multi-word GPR splits): Do not split direct moves or quad memory
26819 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26821 * tree-into-ssa.c (interesting_blocks): Make static.
26823 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26826 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26827 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26828 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26829 (get_variable_align): New function.
26830 (get_variable_section, emit_bss, emit_common,
26831 assemble_variable_contents, place_block_symbol): Use
26832 get_variable_align instead of DECL_ALIGN.
26833 (assemble_noswitch_variable): Add align argument, use it
26834 instead of DECL_ALIGN.
26835 (assemble_variable): Adjust caller. Use get_variable_align
26836 instead of DECL_ALIGN.
26837 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26839 (DATA_ABI_ALIGNMENT): Define.
26840 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26841 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26842 opt is false, only return the psABI mandated alignment increase.
26843 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26844 (DATA_ABI_ALIGNMENT): ... this.
26845 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26846 (DATA_ABI_ALIGNMENT): ... this.
26847 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26848 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26849 (DATA_ABI_ALIGNMENT): ... this.
26850 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26851 * doc/tm.texi: Regenerated.
26853 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26855 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26856 cmp_code to construct REG_EQUAL note.
26858 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26861 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26862 that operands[2] doesn't overlap with operands[0].
26864 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26865 Jan Hubicka <jh@suse.cz>
26867 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26868 hack to mark symbols as used.
26870 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26872 PR rtl-optimization/57559
26873 * lra-constraints.c (process_alt_operands): Don't discourage
26874 memory with known offset for offsetable memory constraint.
26875 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26877 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26879 * varasm.c (struct oc_local_state): Reorder fields.
26880 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26881 and adjust accordingly.
26882 (output_constructor): Reorder initialization code and adjust call to
26883 output_constructor_bitfield.
26885 2013-06-07 Jan Hubicka <jh@suse.cz>
26887 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26889 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26891 * tree-object-size.c (unknown): Make const.
26893 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26895 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26896 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26897 for last alternative in the cpu_facility attribute.
26899 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26902 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26903 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26904 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26905 * config/arm/constraints.md (Dg): New constraint.
26906 * config/arm/neon.md (xordi3_neon): Remove.
26907 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26908 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26910 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26912 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26913 Clean up alternatives.
26915 2013-06-07 Alan Modra <amodra@gmail.com>
26917 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26920 2013-06-07 Alan Modra <amodra@gmail.com>
26922 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26924 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26926 * config/arm/constraints.md (Df): New constraint.
26927 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26928 Correct length attribute for last two alternatives.
26930 2013-06-07 Alan Modra <amodra@gmail.com>
26932 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26933 override user -mfp-in-toc.
26934 (offsettable_ok_by_alignment): Consider just the current access
26935 rather than the whole object, unless BLKmode. Handle
26936 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26937 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26938 for -mcmodel=medium.
26939 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26940 override user -mfp-in-toc or -msum-in-toc. Default to
26941 -mno-fp-in-toc for -mcmodel=medium.
26943 2013-06-06 DJ Delorie <dj@redhat.com>
26945 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26946 TARGET_VALID_POINTER_MODE.
26948 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26949 Pat Haugen <pthaugen@us.ibm.com>
26950 Peter Bergner <bergner@vnet.ibm.com>
26952 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26953 Document new power8 builtins.
26955 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26956 condition code register, to allow 128-bit logical operations to be
26957 done in the VSX or GPR registers.
26958 (nor<mode>3): Use the canonical form for nor.
26959 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26960 vclz*, and vpopcnt* vector instructions.
26961 (nand<mode>3): Likewise.
26962 (orc<mode>3): Likewise.
26963 (clz<mode>2): LIkewise.
26964 (popcount<mode>2): Likewise.
26966 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26967 that only the GPRs are recognized.
26969 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26970 support for new power8 builtins.
26972 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26974 (xscvdpspn): Likewise.
26980 (vpopcnt): Likewise.
26981 (vpopcntb): Likewise.
26982 (vpopcnth): Likewise.
26983 (vpopcntw): Likewise.
26984 (vpopcntd): Likewise.
26986 (vmrgew): Likewise.
26987 (vmrgow): Likewise.
26989 (eqv_v16qi3): Likewise.
26990 (eqv_v8hi3): Likewise.
26991 (eqv_v4si3): Likewise.
26992 (eqv_v2di3): Likewise.
26993 (eqv_v4sf3): Likewise.
26994 (eqv_v2df3): Likewise.
26996 (nand_v16qi3): Likewise.
26997 (nand_v8hi3): Likewise.
26998 (nand_v4si3): Likewise.
26999 (nand_v2di3): Likewise.
27000 (nand_v4sf3): Likewise.
27001 (nand_v2df3): Likewise.
27003 (orc_v16qi3): Likewise.
27004 (orc_v8hi3): Likewise.
27005 (orc_v4si3): Likewise.
27006 (orc_v2di3): Likewise.
27007 (orc_v4sf3): Likewise.
27008 (orc_v2df3): Likewise.
27010 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27011 allow power8 quad mode in 64-bit.
27012 (rs6000_builtin_vectorized_function): Add support to vectorize
27013 ISA 2.07 count leading zeros, population count builtins.
27014 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27015 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27016 (builtin_function_type): Add vgbbd builtin function which takes an
27018 (altivec_expand_vec_perm_const): Add support for new power8 merge
27021 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27022 that does not include TImdoe for use with 32-bit.
27023 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27025 (UNSPEC_VSX_CVDPSPN): Likewise.
27026 (vsx_xscvdpspn): Likewise.
27027 (vsx_xscvspdpn): Likewise.
27028 (vsx_xscvdpspn_scalar): Likewise.
27029 (vsx_xscvspdpn_directmove): Likewise.
27030 (vsx_and<mode>3): Split logical operations into 32-bit and
27031 64-bit. Add support to do logical operations on TImode as well as
27032 VSX vector types. Allow logical operations to be done in either
27033 VSX registers or in general purpose registers in 64-bit mode. Add
27034 splitters if GPRs were used. For AND, add clobber of CCmode to
27035 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27037 (vsx_and<mode>3_32bit): Likewise.
27038 (vsx_and<mode>3_64bit): Likewise.
27039 (vsx_ior<mode>3): Likewise.
27040 (vsx_ior<mode>3_32bit): Likewise.
27041 (vsx_ior<mode>3_64bit): Likewise.
27042 (vsx_xor<mode>3): Likewise.
27043 (vsx_xor<mode>3_32bit): Likewise.
27044 (vsx_xor<mode>3_64bit): Likewise.
27045 (vsx_one_cmpl<mode>2): Likewise.
27046 (vsx_one_cmpl<mode>2_32bit): Likewise.
27047 (vsx_one_cmpl<mode>2_64bit): Likewise.
27048 (vsx_nor<mode>3): Likewise.
27049 (vsx_nor<mode>3_32bit): Likewise.
27050 (vsx_nor<mode>3_64bit): Likewise.
27051 (vsx_andc<mode>3): Likewise.
27052 (vsx_andc<mode>3_32bit): Likewise.
27053 (vsx_andc<mode>3_64bit): Likewise.
27054 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27055 and xxlorc instructions.
27056 (vsx_eqv<mode>3_64bit): Likewise.
27057 (vsx_nand<mode>3_32bit): Likewise.
27058 (vsx_nand<mode>3_64bit): Likewise.
27059 (vsx_orc<mode>3_32bit): Likewise.
27060 (vsx_orc<mode>3_64bit): Likewise.
27062 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27064 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27066 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27067 (p8_vmrgow): Likewise.
27068 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27069 GPRs to be split under VSX.
27070 (p8v_clz<mode>2): Add power8 count leading zero support.
27071 (p8v_popcount<mode>2): Add power8 population count support.
27072 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27075 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27078 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27080 (vec_nand): Likewise.
27081 (vec_vclz): Likewise.
27082 (vec_vclzb): Likewise.
27083 (vec_vclzd): Likewise.
27084 (vec_vclzh): Likewise.
27085 (vec_vclzw): Likewise.
27086 (vec_vgbbd): Likewise.
27087 (vec_vmrgew): Likewise.
27088 (vec_vmrgow): Likewise.
27089 (vec_vpopcnt): Likewise.
27090 (vec_vpopcntb): Likewise.
27091 (vec_vpopcntd): Likewise.
27092 (vec_vpopcnth): Likewise.
27093 (vec_vpopcntw): Likewise.
27095 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27097 PR rtl-optimization/57468
27098 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27101 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27103 PR rtl-optimization/57459
27104 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27105 type when setting live regs.
27107 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27109 * config/s390/s390.opt (mlra): New option.
27110 * config/s390/s390.c (s390_decompose_address): Check displacement
27111 for all registers for LRA.
27112 (s390_secondary_reload): Don't used secondary reloads for LRA.
27113 (s390_lra_p): New function.
27114 (TARGET_LRA_P): Define.
27115 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27116 of attribute cpu_facility to zarch for the last alternative.
27117 (*cmpmem_short): Ditto.
27119 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27121 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27122 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27123 (arm_expand_prologue): Likewise.
27125 2013-06-06 Teresa Johnson <tejohnson@google.com>
27128 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27129 as this is now done by redirect_edge_and_branch_force.
27130 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27131 barriers, and fix interaction with splitting.
27132 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27133 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27134 reflect changes made in the routine.
27135 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27136 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27137 since this is called in cfglayout mode, and replace partition fixup
27138 with assert as that is now done by force_nonfallthru_and_redirect.
27139 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27140 already be marked with region crossing note.
27141 (insert_section_boundary_note): Make non-static, gate on flag
27142 has_bb_partition, rewrite to also check for multiple partitions.
27143 (rest_of_handle_reorder_blocks): Remove call to
27144 insert_section_boundary_note, now done later during free_cfg.
27145 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27146 * bb-reorder.h (insert_section_boundary_note): Declare.
27147 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27148 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27149 invoke insert_section_boundary_note.
27150 (try_redirect_by_replacing_jump): Remove unnecessary
27151 check for region crossing note.
27152 (fixup_partition_crossing): New function.
27153 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27154 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27155 in non-cfglayout mode.
27156 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27157 remove old code that tried to do this. Emit barrier correctly
27158 when we are in cfglayout mode.
27159 (last_bb_in_partition): New function.
27160 (rtl_split_edge): Correctly fixup partition boundaries.
27161 (commit_one_edge_insertion): Remove old code that tried to
27162 fixup region crossing edge since this is now handled in
27163 split_block, and set up insertion point correctly since
27164 block may now end in a jump.
27165 (verify_hot_cold_block_grouping): Guard against checking when not in
27166 linearized RTL mode.
27167 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27169 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27170 rtl_verify_flow_info, so not called in cfglayout mode.
27171 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27172 (fixup_reorder_chain): Remove old code that attempted to fixup region
27173 crossing note as this is now handled in force_nonfallthru_and_redirect.
27174 (duplicate_insn_chain): Don't duplicate switch section notes.
27175 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27177 * basic-block.h (emit_barrier_after_bb): Declare.
27179 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27181 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27182 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27183 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27185 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27187 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27189 * config/arm/ldmstm.md: Regenerate.
27191 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27193 * config/arm/sync.md (atomic_loaddi_1):
27194 Disable predication for arm_restrict_it.
27195 (arm_load_exclusive<mode>): Likewise.
27196 (arm_load_exclusivesi): Likewise.
27197 (arm_load_exclusivedi): Likewise.
27198 (arm_load_acquire_exclusive<mode>): Likewise.
27199 (arm_load_acquire_exclusivesi): Likewise.
27200 (arm_load_acquire_exclusivedi): Likewise.
27201 (arm_store_exclusive<mode>): Likewise.
27202 (arm_store_exclusive<mode>): Likewise.
27203 (arm_store_release_exclusivedi): Likewise.
27204 (arm_store_release_exclusive<mode>): Likewise.
27206 2013-06-06 Richard Biener <rguenther@suse.de>
27208 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27210 (lto_tag_is_tree_code_p): Adjust.
27211 (lto_tag_is_gimple_code_p): Likewise.
27212 (lto_gimple_code_to_tag): Likewise.
27213 (lto_tag_to_gimple_code): Likewise.
27214 (lto_tree_code_to_tag): Likewise.
27215 (lto_tag_to_tree_code): Likewise.
27216 * data-streamer.h (streamer_write_hwi_in_range): Use
27217 uhwi streaming to stream the normalized range.
27218 (streamer_read_hwi_in_range): Likewise.
27220 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27222 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27223 (predicable_short_it): Likewise.
27224 (predicated): Likewise.
27225 (enabled): Handle above.
27226 (define_cond_exec): Set predicated attribute to yes.
27228 2013-06-05 Mike Stump <mikestump@comcast.net>
27230 * gdbinit.in (__FUNCTION__): Add.
27232 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27234 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27235 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27237 2013-06-05 Jan Hubicka <jh@suse.cz>
27239 * varasm.c (mark_decl_referenced): Revert the removal until targets
27242 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27244 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27245 instead of mark_decl_referenced.
27247 2013-06-05 Jan Hubicka <jh@suse.cz>
27249 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27250 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27251 and symtab_used_from_object_file_p.
27252 (cgraph_make_node_local_1): Clear forced_by_abi.
27253 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27254 * cgraph.h (symtab_node_base): Add forced_by_abi.
27255 (decide_is_variable_needed): Remove.
27256 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27257 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27258 (decide_is_symbol_needed): ... this one; handle symbols in general;
27259 always analyze virtuals; honnor forced_by_abi.
27260 (cgraph_finalize_function): Update.
27261 (varpool_finalize_decl): Update.
27262 (symbol_defined_and_needed): Remove.
27263 (analyze_functions): Update.
27264 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27265 output_refs, input_overwrite_node): Handle forced_by_abi.
27266 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27267 (address_taken_from_non_vtable_p): ... this one.
27268 (comdat_can_be_unshared_p_1): New function.
27269 (cgraph_comdat_can_be_unshared_p): Rename to ...
27270 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27271 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27272 (function_and_variable_visibility): Clear forced_by_abi as needed.
27273 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27274 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27275 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27276 * varpool.c (decide_is_variable_needed): Remove.
27278 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27280 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27281 (arm_option_override): Override arm_restrict_it where appropriate.
27282 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27283 * config/arm/arm.opt (mrestrict-it): New command-line option.
27284 * doc/invoke.texi: Document -mrestrict-it.
27286 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27288 * tsan.c (tsan_atomic_table): Make const.
27290 2013-06-05 Richard Biener <rguenther@suse.de>
27292 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27293 index associated with the tree we are supposed to replace.
27294 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27295 TREE_ASM_WRITTEN as zero for everything but SSA names.
27297 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27299 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27301 2013-06-04 Jan Hubicka <jh@suse.cz>
27303 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27304 (input_node, input_varpool_node): Handle correctly external same
27306 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27307 nodes at ltrans stage.
27309 2013-06-04 Jan Hubicka <jh@suse.cz>
27311 * ipa-inline.c (update_caller_keys): Fix availability test.
27312 (update_callee_keys): Likewise.
27313 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27314 to follow ELF standard.
27316 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27318 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27319 (mips64r5900el-*-elf*): New configurations.
27320 * config/mips/mips-cpus.def (r5900): New processor.
27321 * config/mips/mips-tables.opt: Regenerate.
27322 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27323 (mips_issue_rate): Handle PROCESSOR_R5900.
27324 (mips_reorg_process_insns): Force reorder mode for the R5900.
27325 * config/mips/mips.h (TARGET_MIPS5900): Define.
27326 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27328 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27330 * config/mips/mips.md (processor): Add r5900.
27331 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27333 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27335 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27336 into function to generate MOVI instruction.
27337 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27338 (aarch64_preferred_simd_mode): Turn into wrapper.
27339 (aarch64_output_scalar_simd_mov_immediate): New function.
27340 * config/aarch64/aarch64-protos.h: Add prototype for above.
27342 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27344 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27345 element_char member.
27346 (sizetochar): Return signed char.
27347 (aarch64_simd_valid_immediate): Remove elchar and other
27348 unnecessary variables.
27349 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27350 Calculate element_char as required.
27351 * config/aarch64/aarch64-protos.h: Update and move prototype
27352 for aarch64_output_simd_mov_immediate.
27353 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27356 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27358 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27359 information completed by aarch64_simd_valid_immediate.
27360 (aarch64_legitimate_constant_p): Update arguments.
27361 (aarch64_simd_valid_immediate): Work with struct rather than many
27363 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27364 (aarch64_simd_make_constant): Update arguments.
27365 (aarch64_output_simd_mov_immediate): Work with struct rather than
27366 many pointers. Output immediate directly rather than as operand.
27367 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27369 * config/aarch64/constraints.md (Dn): Update arguments.
27371 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27373 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27375 (aarch64_simd_immediate_valid_for_move): Remove.
27376 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27377 (aarch64_simd_make_constant): Update call.
27378 (aarch64_output_simd_mov_immediate): Update call.
27379 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27381 * config/aarch64/constraints.md (Dn): Update call.
27383 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27385 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27386 return type to bool for prototype.
27387 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27388 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27389 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27391 2013-06-04 Catherine Moore <clm@codesourcery.com>
27393 * config/mips/mips.opt (meva): New.
27394 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27395 (ASM_SPEC): Handle -meva.
27396 * doc/invoke.texi (meva): Document.
27398 2013-06-04 Alan Modra <amodra@gmail.com>
27400 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27403 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27405 * rtl.def: Add extra fourth optional field to define_cond_exec.
27406 * gensupport.c (process_one_cond_exec): Process attributes from
27408 * doc/md.texi: Document fourth field in define_cond_exec.
27410 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27412 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27413 out the processing order as in store_bit_field_1.
27415 2013-06-04 Jan Hubicka <jh@suse.cz>
27417 PR middle-end/57500
27418 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27419 non-VAR_DECL node if it does not exist yet.
27421 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27423 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27424 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27425 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27426 target_cpu_default setting.
27428 2013-06-03 Teresa Johnson <tejohnson@google.com>
27430 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27431 default to -fopt-info=optimized instead of all.
27432 * doc/invoke.texi: Ditto.
27433 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27434 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27435 (execute_vect_slp): Emit BB vectorization success under
27436 MSG_OPTIMIZED_LOCATIONS.
27437 * tree-vect-slp.c (vect_slp_transform_bb): Change
27438 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27439 * tree-vect-loop.c (vect_transform_loop): Ditto.
27441 2013-06-03 Jason Merrill <jason@redhat.com>
27444 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27445 Use TARGET_EXPR for C++.
27447 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27449 PR rtl-optimization/57268
27450 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27451 if DEBUG_INSN_P (insn).
27454 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27456 PR rtl-optimization/57268
27457 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27458 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27460 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27462 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27463 (ix86_avoid_lea_for_addr): Likewise.
27464 (exact_dependency_1): Likewise.
27465 (ix86_adjust_cost): Likewise.
27466 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27468 (do_reorder_for_imul): Fix typo, formatting and
27469 !reload_completed check removed.
27470 (ix86_sched_reorder): Fix typo and formatting.
27471 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27474 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27476 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27478 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27480 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27481 <STRING_CST>: Likewise.
27482 <VECTOR_CST>: Likewise.
27484 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27485 Mikael Morin <mikael@gcc.gnu.org>
27487 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27488 * config.in: Regenerated.
27489 * configure: Regenerated.
27491 2013-06-01 Jan Hubicka <jh@suse.cz>
27493 PR middle-end/57366
27494 * cgraphunit.c (compile): When weakref is not supported,
27495 set up transparent aliases before final output pass.
27496 * varasm.c (assemble_alias): Do not try to do it here.
27498 2013-06-01 Jan Hubicka <jh@suse.cz>
27500 PR middle-end/57467
27501 * passes.c (for_per_function): Skip unanalyzed functions.
27503 2013-06-01 Jan Hubicka <jh@suse.cz>
27505 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27506 (lto_symtab_merge_symbols_1): ... this one.
27507 (lto_symtab_merge_cgraph_nodes): Rename to ...
27508 (lto_symtab_merge_symbols): ... this one; simplify.
27509 * cgraph.c (same_body_aliases_done): Rename to ...
27510 (cpp_implicit_aliases_done): ... this one.
27511 (cgraph_create_function_alias): Update.
27512 (cgraph_same_body_alias): Update.
27513 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27514 (verify_edge_corresponds_to_fndecl): Simplify.
27515 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27516 (cgraph_node): Remove same_body_alias.
27517 (varpool_node): Remove alias_of and extra_name_alias.
27518 (same_body_aliases_done): Rename to ..
27519 (cpp_implicit_aliases_done): ... this one.
27520 (symtab_alias_ultimate_target): Add default parameter.
27521 (symtab_resolve_alias): New function.
27522 (fixup_same_cpp_alias_visibility): Declare.
27523 (cgraph_function_node): Add default parameter.
27524 (cgraph_node_asm_name): Likewise.
27525 (cgraph_function_or_thunk_node): Add default parameter; do
27526 not ICE when it is NULL.
27527 (varpool_variable_node): Likewise.
27528 * tree-emutls.c (create_emultls_var): Update.
27529 (ipa_lower_emutls): Update.
27530 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27531 (cgraph_reset_node): Reset alias info.
27532 (cgraph_finalize_function): Update.
27533 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27534 (analyze_function): Simplify.
27535 (cgraph_process_same_body_aliases): Simplify.
27536 (analyze_functions): Fixup same body aliases.
27537 (handle_alias_pairs): Simplify.
27538 (assemble_thunk): Update.
27539 (assemble_thunks_and_aliases): Update.
27540 (output_weakrefs): Rewrite.
27541 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27542 (lto_output_varpool_node): Likewise.
27543 (compute_ltrans_boundary): Remve assert.
27544 (get_alias_symbol): New functoin.
27545 (input_node): Rewrite alias handling.
27546 (input_varpool_node): Likewise.
27547 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27548 * ipa.c (process_references): Handle weakrefs correctly.
27549 (symtab_remove_unreachable_nodes): Likewise.
27550 * trans-mem.c (get_cg_data): Update.
27551 (ipa_tm_create_version_alias): Update.
27552 (ipa_tm_execute): Update.
27553 * symtab.c (dump_symtab_base): Dump aliases.
27554 (verify_symtab_base): Verify aliases.
27555 (symtab_node_availability): New function.
27556 (symtab_alias_ultimate_target): Simplify.
27557 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27558 handle all the fixup cases.
27559 (symtab_resolve_alias): New function.
27560 * passes.c (ipa_write_summaries): Handle weakrefs.
27561 * varpool.c (varpool_analyze_node): Simplify.
27562 (assemble_aliases): Update.
27563 (varpool_create_variable_alias): Simplify.
27564 (varpool_extra_name_alias): Simplify.
27565 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27566 (lto_symtab_merge_symbols): ... this one.
27568 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27571 PR rtl-optimization/57268
27572 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27573 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27575 2013-06-01 Tobias Burnus <burnus@net-b.de>
27577 Partially reverted:
27578 2013-05-31 Tobias Burnus <burnus@net-b.de>
27580 PR middle-end/57073
27581 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27584 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27586 PR rtl-optimization/57268
27587 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27588 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27590 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27592 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27593 unordered comparison operators when -fno-trapping-math is in effect
27595 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27596 and implement unordered comparison operators properly on the e500.
27598 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27600 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27601 for constant scalar integers.
27602 (simplify_relational_operation_1): Likewise.
27604 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27606 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27607 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27610 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27611 Igor Zamyatin <igor.zamyatin@intel.com>
27613 Silvermont (SLM) architecture performance tuning.
27614 * config/i386/i386.h (enum ix86_tune_indices): Add
27615 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27616 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27618 * config/i386/i386.c (initial_ix86_tune_features)
27619 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27620 (ix86_lea_outperforms): Handle Silvermont tuning.
27621 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27623 (ix86_use_lea_for_mov): Likewise.
27624 (ix86_avoid_lea_for_addr): Likewise.
27625 (ix86_lea_for_add_ok): Likewise.
27626 (exact_dependency_1): New function.
27627 (exact_store_load_dependency): Likewise.
27628 (ix86_adjust_cost): Handle Silvermont tuning.
27629 (do_reoder_for_imul): Likewise.
27630 (swap_top_of_ready_list): New function.
27631 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27633 * config/i386/i386.md (peepholes that split memory operand in fp
27636 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27638 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27639 Remove un-necessary braces.
27641 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27643 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27644 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27646 2013-05-31 Tobias Burnus <burnus@net-b.de>
27648 PR middle-end/57073
27649 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27651 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27654 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27655 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27656 * config/arm/neon.md (iordi3_neon): Remove.
27657 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27658 * config/arm/predicates.md (imm_for_neon_logic_operand):
27659 Move to earlier in the file.
27660 (neon_logic_op2): Likewise.
27661 (arm_iordi_operand_neon): New predicate.
27663 2013-05-31 Richard Biener <rguenther@suse.de>
27665 PR tree-optimization/57478
27666 PR tree-optimization/57453
27667 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27670 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27672 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27673 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27675 2013-05-30 Tobias Burnus <burnus@net-b.de>
27676 Thomas Koenig <tkoenig@gcc.gnu.org>
27678 PR middle-end/57073
27679 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27680 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27682 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27684 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27686 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27688 * target.def (register_usage_leveling_p): New hook.
27689 * targhooks.c (default_register_usage_leveling_p): New.
27690 * targhooks.h (default_register_usage_leveling_p): New prototype.
27691 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27692 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27693 * doc/tm.texi: Update.
27694 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27696 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27698 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27699 (*insv_reg<mode>): New define_insn.
27701 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27703 PR rtl-optimization/57439
27704 * postreload.c (move2add_valid_value_p): Check that we have
27705 a zero subreg_regno_offset when accessing the register in
27706 the requested mode.
27708 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27709 Igor Zamyatin <igor.zamyatin@intel.com>
27711 Silvermont (SLM) architecture pipeline model, tuning and
27713 * config.gcc: Add slm config options and target.
27715 * config/i386/slm.md: New.
27717 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27719 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27721 (ix86_target_macros_internal): Likewise.
27723 * config/i386/i386.c (slm_cost): New cost.
27724 (m_SLM): New macro flag.
27725 (initial_ix86_tune_features): Set m_SLM.
27726 (x86_accumulate_outgoing_args): Likewise.
27727 (x86_arch_always_fancy_math_387): Likewise.
27728 (processor_target_table): Add slm cost.
27729 (cpu_names): Add slm cpu name.
27730 (x86_option_override_internal): Set SLM ISA.
27731 (ix86_issue_rate): New case PROCESSOR_SLM.
27732 (ia32_multipass_dfa_lookahead): Likewise.
27733 (fold_builtin_cpu): Add slm.
27735 * config/i386/i386.h (TARGET_SLM): New target macro.
27736 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27737 (processor_type): Add PROCESSOR_SLM.
27739 * config/i386/i386.md (cpu): Add new value "slm".
27740 (slm.md): Include slm.md.
27742 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27743 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27745 * config/arm/arm-protos.h: Add and update function protos.
27746 * config/arm/arm.c (use_simple_return_p): New added.
27747 (thumb2_expand_return): Check simple_return flag.
27748 * config/arm/arm.md: Add simple_return and conditional simple_return.
27749 * config/arm/iterators.md: Add iterator for return and simple_return.
27751 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27753 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27754 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27755 (arm_emit_vfp_multi_reg_pop): Likewise.
27756 (thumb2_emit_ldrd_pop): Likewise.
27757 (arm_expand_epilogue): Add misc REG_CFA notes.
27758 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27760 2013-05-29 Lawrence Crowl <crowl@google.com>
27762 * config/arm/t-arm: Update for below.
27764 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27765 Change type to hash_table. Update dependent calls and types.
27767 * config/i386/t-cygming: Update for below.
27769 * config/i386/t-interix: Update for below.
27771 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27772 Change type to hash_table. Update dependent calls and types.
27773 (i386_find_on_wrapper_list::wrappers): Likewise.
27775 * config/ia64/t-ia64: Update for below.
27777 * config/ia64/ia64.c (bundle_state_table):
27778 Change type to hash_table. Update dependent calls and types.
27780 * config/mips/mips.c (mips_reorg_process_insns::htab):
27781 Change type to hash_table. Update dependent calls and types.
27783 * config/sol2.c (solaris_comdat_htab):
27784 Change type to hash_table. Update dependent calls and types.
27786 * config/t-sol2: Update for above.
27788 2013-05-29 Teresa Johnson <tejohnson@google.com>
27790 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27791 functions are not yet marked as defined.
27793 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27794 Pat Haugen <pthaugen@us.ibm.com>
27795 Peter Bergner <bergner@vnet.ibm.com>
27797 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27801 (vrotl<mode>3): Likewise.
27802 (vashl<mode>3): Likewise.
27803 (vlshr<mode>3): Likewise.
27804 (vashr<mode>3): Likewise.
27806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27807 support for power8 V2DI builtins.
27809 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27810 power8 V2DI builtins.
27811 (vupkhsw): Likewise.
27812 (vupklsw): Likewise.
27813 (vaddudm): Likewise.
27814 (vminsd): Likewise.
27815 (vmaxsd): Likewise.
27816 (vminud): Likewise.
27817 (vmaxud): Likewise.
27818 (vpkudum): Likewise.
27819 (vpksdss): Likewise.
27820 (vpkudus): Likewise.
27821 (vpksdus): Likewise.
27826 (vsubudm): Likewise.
27827 (vcmpequd): Likewise.
27828 (vcmpgtsd): Likewise.
27829 (vcmpgtud): Likewise.
27830 (vcmpequd_p): Likewise.
27831 (vcmpgtsd_p): Likewise.
27832 (vcmpgtud_p): Likewise.
27833 (vupkhsw): Likewise.
27834 (vupklsw): Likewise.
27835 (vaddudm): Likewise.
27836 (vmaxsd): Likewise.
27837 (vmaxud): Likewise.
27838 (vminsd): Likewise.
27839 (vminud): Likewise.
27840 (vpksdss): Likewise.
27841 (vpksdus): Likewise.
27842 (vpkudum): Likewise.
27843 (vpkudus): Likewise.
27848 (vsubudm): Likewise.
27850 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27851 support for power8 V2DI instructions.
27853 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27854 power8 V2DI instructions. Combine pack and unpack insns to use an
27855 iterator for each mode. Check whether a particular mode supports
27856 Altivec instructions instead of just checking TARGET_ALTIVEC.
27857 (UNSPEC_VPKUWUM): Likewise.
27858 (UNSPEC_VPKSHSS): Likewise.
27859 (UNSPEC_VPKSWSS): Likewise.
27860 (UNSPEC_VPKUHUS): Likewise.
27861 (UNSPEC_VPKSHUS): Likewise.
27862 (UNSPEC_VPKUWUS): Likewise.
27863 (UNSPEC_VPKSWUS): Likewise.
27864 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27865 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27866 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27867 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27868 (UNSPEC_VUPKHSB): Likewise.
27869 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27870 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27871 (UNSPEC_VUPKHSH): Likewise.
27872 (UNSPEC_VUPKLSB): Likewise.
27873 (UNSPEC_VUPKLSH): Likewise.
27875 (VI_char): Likewise.
27876 (VI_scalar): Likewise.
27877 (VI_unit): Likewise.
27879 (VP_small): Likewise.
27880 (VP_small_lc): Likewise.
27881 (VU_char): Likewise.
27882 (add<mode>3): Likewise.
27883 (altivec_vaddcuw): Likewise.
27884 (altivec_vaddu<VI_char>s): Likewise.
27885 (altivec_vadds<VI_char>s): Likewise.
27886 (sub<mode>3): Likewise.
27887 (altivec_vsubcuw): Likewise.
27888 (altivec_vsubu<VI_char>s): Likewise.
27889 (altivec_vsubs<VI_char>s): Likewise.
27890 (altivec_vavgs<VI_char>): Likewise.
27891 (altivec_vcmpbfp): Likewise.
27892 (altivec_eq<mode>): Likewise.
27893 (altivec_gt<mode>): Likewise.
27894 (altivec_gtu<mode>): Likewise.
27895 (umax<mode>3): Likewise.
27896 (smax<mode>3): Likewise.
27897 (umin<mode>3): Likewise.
27898 (smin<mode>3): Likewise.
27899 (altivec_vpkuhum): Likewise.
27900 (altivec_vpkuwum): Likewise.
27901 (altivec_vpkshss): Likewise.
27902 (altivec_vpkswss): Likewise.
27903 (altivec_vpkuhus): Likewise.
27904 (altivec_vpkshus): Likewise.
27905 (altivec_vpkuwus): Likewise.
27906 (altivec_vpkswus): Likewise.
27907 (altivec_vpks<VI_char>ss): Likewise.
27908 (altivec_vpks<VI_char>us): Likewise.
27909 (altivec_vpku<VI_char>us): Likewise.
27910 (altivec_vpku<VI_char>um): Likewise.
27911 (altivec_vrl<VI_char>): Likewise.
27912 (altivec_vsl<VI_char>): Likewise.
27913 (altivec_vsr<VI_char>): Likewise.
27914 (altivec_vsra<VI_char>): Likewise.
27915 (altivec_vsldoi_<mode>): Likewise.
27916 (altivec_vupkhsb): Likewise.
27917 (altivec_vupkhs<VU_char>): Likewise.
27918 (altivec_vupkls<VU_char>): Likewise.
27919 (altivec_vupkhsh): Likewise.
27920 (altivec_vupklsb): Likewise.
27921 (altivec_vupklsh): Likewise.
27922 (altivec_vcmpequ<VI_char>_p): Likewise.
27923 (altivec_vcmpgts<VI_char>_p): Likewise.
27924 (altivec_vcmpgtu<VI_char>_p): Likewise.
27925 (abs<mode>2): Likewise.
27926 (vec_unpacks_hi_v16qi): Likewise.
27927 (vec_unpacks_hi_v8hi): Likewise.
27928 (vec_unpacks_lo_v16qi): Likewise.
27929 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27930 (vec_unpacks_lo_v8hi): Likewise.
27931 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27932 (vec_pack_trunc_v8h): Likewise.
27933 (vec_pack_trunc_v4si): Likewise.
27934 (vec_pack_trunc_<mode>): Likewise.
27936 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27938 (vec_vmaxsd): Likewise.
27939 (vec_vmaxud): Likewise.
27940 (vec_vminsd): Likewise.
27941 (vec_vminud): Likewise.
27942 (vec_vpksdss): Likewise.
27943 (vec_vpksdus): Likewise.
27944 (vec_vpkudum): Likewise.
27945 (vec_vpkudus): Likewise.
27946 (vec_vrld): Likewise.
27947 (vec_vsld): Likewise.
27948 (vec_vsrad): Likewise.
27949 (vec_vsrd): Likewise.
27950 (vec_vsubudm): Likewise.
27951 (vec_vupkhsw): Likewise.
27952 (vec_vupklsw): Likewise.
27954 2013-05-29 Jan Hubicka <jh@suse.cz>
27956 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27957 flags; reorder rest of fields in more consistent way.
27958 (varpool_node): Remove analyzed, finalized and alias.
27959 (cgraph_ndoe): Likewise.
27960 (symtab_alias_ultimate_target): New function.
27961 (cgraph_function_node): Move offline.
27962 (cgraph_reset_node): Declare.
27963 (cgraph_comdat_can_be_unshared_p): Remove.
27964 (varpool_remove_initializer): Declare.
27965 (varpool_first_defined_variable, varpool_next_defined_variable
27966 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27967 (cgraph_function_with_gimple_body_p): Update.
27968 (varpool_all_refs_explicit_p): Update.
27969 (symtab_alias_target): New function.
27970 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27971 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27972 (cgraph_function_or_thunk_node): Simplify using
27973 symtab_alias_ultimate_target.
27974 (varpool_variable_node): Likewise.
27975 * cgraph.c (cgraph_create_function_alias): Update.
27976 (cgraph_add_thunk): Update.
27977 (cgraph_remove_node): Update.
27978 (dump_cgraph_node): Do not dump removed flags.
27979 (cgraph_function_body_availability): Update.
27980 (cgraph_propagate_frequency): Update.
27981 (verify_cgraph_node): Check sanity of local flag.
27982 (cgraph_function_node): Move here from cgraph.h; revamp for
27983 cgraph_function_or_thunk_node.
27984 * lto-symtab.c (lto_varpool_replace_node): Update.
27985 (lto_symtab_resolve_can_prevail_p): Update.
27986 (lto_symtab_merge_cgraph_nodes): Update.
27987 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27988 propagate_constants_accross_call, devirtualization_time_bonus,
27989 ipcp_propagate_stage): Update.
27990 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27991 * ipa-inline-transform.c (clone_inlined_nodes,
27992 preserve_function_body_p): Update.
27993 * ipa-reference.c (propagate): Update.
27994 (write_node_summary_p): Update.
27995 * toplev.c (wrapup_global_declaration_2): Update.
27996 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27997 (analyze_function) ... this one.
27998 (cgraph_process_new_functions): Update.
27999 (cgraph_reset_node): Export.
28000 (cgraph_finalize_function): Update.
28001 (cgraph_add_new_function): Update.
28002 (process_function_and_variable_attributes): Update.
28003 (varpool_finalize_decl): Update.
28004 (symbol_finalized): Remove.
28005 (symbol_finalized_and_needed): Rename to ...
28006 (symbol_defined_and_needed): ... update.
28007 (cgraph_analyze_functions): Update.
28008 (handle_alias_pairs): Update.
28009 (mark_functions_to_output): Update.
28010 (assemble_thunk): Update.
28011 (output_in_order): Update.
28012 (output_weakrefs): Update.
28013 (finalize_compilation_unit): Update.
28014 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28015 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28016 input_node, input_varpool_node): Update.
28017 * dbxout.c (dbxout_expand_expr): Update.
28018 * cgraphclones.c (cgraph_clone_node): Update.
28019 (cgraph_copy_node_for_versioning): Update.
28020 (cgraph_materialize_clone): Update.
28021 (cgraph_materialize_all_clones): Update.
28022 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28023 propagate_pure_const, propagate_nothrow): Update.
28024 * lto-streamer-out.c (lto_output, write_symbol): Update.
28025 * ipa-utils.c (ipa_reverse_postorder): Update.
28026 * ipa-inline.c (can_inline_edge_p): Update.
28027 (update_caller_keys, ipa_inline): Update.
28028 * dwarf2out.c (reference_to_unused,
28029 premark_types_used_by_global_vars_helper): Update.
28030 * tree-eh.c (tree_could_trap_p): Update.
28031 * ipa-split.c (consider_split, execute_split_functions): Update.
28032 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28033 has_addr_references_p): Update; move ahead in file for better
28035 (process_references): Simplify.
28036 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28037 bodies are removed.
28038 (cgraph_comdat_can_be_unshared_p): Make static.
28039 (cgraph_externally_visible_p): Update.
28040 (varpool_externally_visible_p): Update.
28041 (function_and_variable_visibility): Update.
28042 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28043 ipa_tm_mark_force_output_node): Update.
28044 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28045 estimate_edge_devirt_benefit, inline_generate_summary,
28046 inline_write_summary): Update.
28047 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28048 * ipa-prop.c (ipa_compute_jump_functions): Update.
28049 (ipa_print_node_params, ipa_prop_read_section,
28050 ipa_update_after_lto_read, read_replacements_section): Update.
28051 * varasm.c (mark_decl_referenced): Update.
28052 (assemble_alias, dump_tm_clone_pairs): Update.
28053 * tree-inline.c (copy_bb): Update.
28054 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28056 * symtab.c (dump_symtab_base): Print new flags.
28057 (verify_symtab_base): Verify new flags.
28058 (symtab_alias_ultimate_target): New function.
28059 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28060 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28062 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28064 * i386.c (ix86_get_function_versions_dispatcher,
28065 ix86_generate_version_dispatcher_body): Update.
28066 (fold_builtin_cpu): Use varpool_add_new_variable.
28067 * varpool.c (varpool_remove_initializer): Break out from ...
28068 (varpool_remove_node): ... this one.
28069 (dump_varpool_node, varpool_node_for_asm,
28070 cgraph_variable_initializer_availability, varpool_analyze_node,
28071 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28072 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28075 2013-05-29 Jan Hubicka <jh@suse.cz>
28077 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28079 2013-05-29 Easwaran Raman <eraman@google.com>
28081 PR tree-optimization/57442
28082 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28083 when control exits the main loop.
28085 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28087 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28089 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28090 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28091 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28094 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28096 PR tree-optimization/57441
28097 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28098 Don't limit size of incr_vec to number of candidates.
28100 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28102 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28103 and mips16 directories.
28104 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28105 (MULTILIB_DIRNAMES): Ditto.
28106 (MULTILIB_EXCEPTIONS): Add new exceptions.
28107 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28108 (MULTILIB_DIRNAMES): Ditto.
28109 (MULTILIB_EXCEPTIONS): Add new exceptions.
28111 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28112 Marcus Shawcroft <marcus.shawcroft@arm.com>
28114 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28115 SYMBOL_TINY_ABSOLUTE.
28116 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28117 SYMBOL_TINY_ABSOLUTE.
28118 (aarch64_expand_mov_immediate): Likewise.
28119 (aarch64_classify_symbol): Likewise.
28120 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28121 Permit SYMBOL_TINY_ABSOLUTE.
28122 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28124 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28125 Marcus Shawcroft <marcus.shawcroft@arm.com>
28127 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28128 Refactor if/switch. Replace gcc_assert with if.
28130 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28132 * config/i386/i386.c (initial_ix86_tune_features): Enable
28133 FP Reassociation for AMD bdver1 and bdver2.
28135 2013-05-29 Martin Jambor <mjambor@suse.cz>
28137 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28138 and IMAGPART_EXPR do not occur within other handled_components.
28140 2013-05-29 Richard Biener <rguenther@suse.de>
28142 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28143 access on whether the use is in the BB we currently try to
28145 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28146 vectorize to vect_bb_slp_scalar_cost.
28148 2013-05-29 Richard Biener <rguenther@suse.de>
28150 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28151 computing scalar cost offsetted by stmts that are kept live
28153 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28154 for computation of scalar cost.
28156 2013-05-28 Steve Ellcey <sellcey@mips.com>
28158 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28160 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28162 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28163 array notation built-in reduction functions.
28164 * doc/passes.texi (Passes): Added documentation about changes done
28166 * doc/invoke.texi (C Dialect Options): Added documentation about
28167 the -fcilkplus flag.
28168 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28169 (BUILTINS_DEF): Depend on cilkplus.def.
28170 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28171 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28172 * cilkplus.def: New file.
28174 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28176 PR rtl-optimization/57439
28177 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28179 2013-05-28 Easwaran Raman <eraman@google.com>
28181 PR tree-optimization/57337
28182 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28183 (find_insert_point): Correctly identify the insertion point
28184 when two statements with the same UID is compared.
28186 2013-05-28 Richard Biener <rguenther@suse.de>
28188 PR tree-optimization/56787
28189 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28190 from the list of data references.
28191 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28193 (vect_analyze_loop_operations): Likewise.
28194 (vect_transform_loop): Remove clobbers.
28196 2013-05-28 Martin Jambor <mjambor@suse.cz>
28198 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28199 and REALPART_EXPRs have scalar type.
28201 2013-05-28 Richard Biener <rguenther@suse.de>
28203 PR tree-optimization/57411
28204 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28206 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28207 virtual operand propagation.
28209 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28211 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28212 destination register for bmasksi_vis.
28213 (vector_init_bshuffle): Likewise.
28214 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28216 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28218 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28219 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28220 mode if the instruction isn't available in the original mode.
28221 * config/sparc/sparc.opt (mfix-ut699): New option.
28222 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28223 (divdf3): Turn into expander.
28224 (divdf3_nofix): New insn.
28225 (divdf3_fix): Likewise.
28226 (divsf3): Disable if -mfix-ut699.
28227 (sqrtdf2): Turn into expander.
28228 (sqrtdf2_nofix): New insn.
28229 (sqrtdf2_fix): Likewise.
28230 (sqrtsf2): Disable if -mfix-ut699.
28232 2013-05-27 Richard Biener <rguenther@suse.de>
28234 PR middle-end/57412
28235 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28236 block for the new loop.
28238 2013-05-27 Richard Biener <rguenther@suse.de>
28240 PR tree-optimization/57343
28241 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28242 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28243 (number_of_iterations_cond): Do not build the folded tree.
28245 2013-05-27 Richard Biener <rguenther@suse.de>
28248 PR middle-end/57381
28249 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28250 OEP_CONSTANT_ADDRESS_OF retained.
28252 PR tree-optimization/57417
28253 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28254 for unchanged base.
28255 (set_ssa_val_to): Compare addresses using
28256 get_addr_base_and_unit_offset.
28258 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28260 PR rtl-optimization/56833
28261 * postreload.c (move2add_record_mode): New function.
28262 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28263 (move2add_use_add2_insn): Use move2add_record_sym_value.
28264 (move2add_use_add3_insn): Likewise.
28265 (reload_cse_move2add): Use move2add_valid_value_p and
28266 move2add_record_mode. Invalidate call-clobbered and REG_INC
28267 affected regs by setting reg_mode to VOIDmode.
28268 (move2add_note_store): Don't pretend the inside of a SUBREG is
28269 the actual destination. Invalidate single/leading registers by
28270 setting reg_mode to VOIDmode.
28271 Use move2add_record_sym_value, move2add_valid_value_p and
28272 move2add_record_mode.
28274 2013-05-27 Richard Biener <rguenther@suse.de>
28276 PR tree-optimization/57396
28277 * tree-affine.c (double_int_constant_multiple_p): Properly
28278 return false for val == 0 and div != 0.
28280 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28282 * config/mips/mips.h: Use #elif in preprocessor conditions.
28284 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28287 * config/mips/constraints.md (kl): New constraint.
28288 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28289 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28290 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28291 from LO for MIPS16.
28292 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28294 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28297 * config/mips/mips.c (mips_can_inline_p): New function.
28298 (TARGET_CAN_INLINE_P): Define.
28300 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28302 * sched-int.h (ds_t, dw_t): Make unsigned int.
28303 Fix documentation that describes how all the ds_t bits are used.
28304 Reserve the last bit for delayed-branch scheduling.
28305 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28306 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28307 (gen_dep_weak_1): Remove prototype.
28308 * sched-deps.c (get_dep_weak_1): Make static.
28309 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28310 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28311 * doc/tm.texi: Regenerate.
28312 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28314 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28317 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28319 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28320 Sandra Loosemore <sandra@codesourcery.com>
28322 * config.gcc (powerpc-*): Allow native for with-cpu.
28324 2013-05-24 Jeff Law <law@redhat.com>
28326 PR tree-optimization/57124
28327 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28328 conversion feeding a condition if the range has an overflow
28329 if -fstrict-overflow. Add warnings for when we do make the
28332 2013-05-24 Dehao Chen <dehao@google.com>
28334 * tree-cfg.c (locus_discrim_map): Fix the typo.
28335 (locus_discrim_hasher): Likewise.
28336 (locus_discrim_hasher::hash): Likewise.
28337 (locus_discrim_hasher::equal): Likewise.
28339 2013-05-24 Martin Jambor <mjambor@suse.cz>
28341 PR tree-optimization/57294
28342 * cgraph.h (ipa_record_stmt_references): Declare.
28343 * cgraphbuild.c (ipa_record_stmt_references): New function.
28344 (build_cgraph_edges): Use ipa_record_stmt_references.
28345 (rebuild_cgraph_edges): Likewise.
28346 (cgraph_rebuild_references): Likewise.
28347 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28348 associated with the old statement and build references from the
28349 newly built statements.
28350 * ipa-ref.c (ipa_remove_stmt_references): New function.
28351 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28353 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28355 * lra-constraints.c (emit_spill_move): Use smaller mode for
28357 (check_and_process_move): Consider mem-reg moves for secondary
28359 (curr_insn_transform): Don't lose insns emitted before for
28360 secondary memory moves.
28361 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28362 reg set up in the current insn.
28364 2013-05-24 Dehao Chen <dehao@google.com>
28366 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28368 (locus_descrim_hasher::equal): Likewise.
28369 (build_gimple_cfg): New discriminator assignment algorithm.
28370 (make_edges): Likewise.
28371 (next_discriminator_for_locus): Likewise.
28372 (same_line_p): Likewise.
28373 (assign_discriminators): Likewise.
28374 (make_cond_expr_edges): Likewise.
28375 (make_gimple_switch_edges): Likewise.
28376 (make_goto_expr_edges): Likewise.
28377 (make_gimple_asm_edges): Likewise.
28379 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28381 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28382 X format specifier to only display bottom 16 bits.
28383 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28384 immediate to match for operand 2, since it will be masked.
28386 2013-05-24 Richard Biener <rguenther@suse.de>
28388 PR tree-optimization/57287
28389 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28390 all SSA names that occur in abnormal PHIs.
28392 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28395 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28396 that index is not negative.
28398 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28400 PR rtl-optimization/55177
28401 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28402 (simplify_byte_swapping_operation): New.
28403 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28404 (simplify_relational_operation_1): Deal with BSWAP.
28406 2013-05-23 Richard Henderson <rth@redhat.com>
28409 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28410 (ix86_reorg): Call it.
28412 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28415 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28416 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28417 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28419 2013-05-23 Christian Bruel <christian.bruel@st.com>
28422 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28424 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28425 Marcus Shawcroft <marcus.shawcroft@arm.com>
28427 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28428 * config/aarch64/constraints.md (Usa): Remove.
28429 * doc/md.texi (AArch64 Usa): Remove.
28431 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28432 Marcus Shawcroft <marcus.shawcroft@arm.com>
28434 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28435 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28436 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28437 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28439 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28441 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28442 instruction (AdvSIMD).
28443 * config/aarch64/aarch64-builtins.c
28444 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28445 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28447 2013-05-23 Martin Jambor <mjambor@suse.cz>
28449 PR middle-end/57347
28450 * tree.h (contains_bitfld_component_ref_p): Declare.
28451 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28452 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28454 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28455 not access a bit-field. Assert all final offsets are byte-aligned.
28457 2013-05-23 Richard Biener <rguenther@suse.de>
28459 PR tree-optimization/57380
28460 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28461 least one invariant or re-used load.
28462 * passes.c (init_optimization_passes): Move pass_phiprop before
28465 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28467 * config/aarch64/aarch64-simd.md
28468 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28470 2013-05-23 Richard Biener <rguenther@suse.de>
28472 PR middle-end/57381
28473 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28474 OEP_CONSTANT_ADDRESS_OF retained.
28476 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28478 PR middle-end/57344
28479 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28480 don't lower unit. Handle unit not being always BITS_PER_WORD.
28482 2013-05-23 Richard Biener <rguenther@suse.de>
28484 PR rtl-optimization/57341
28485 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28486 instead of true_dependence.
28488 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28490 * bb-reorder.c (branch_threshold): Make const.
28491 (exec_threshold): Ditto.
28493 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28494 Pat Haugen <pthaugen@us.ibm.com>
28495 Peter Bergner <bergner@vnet.ibm.com>
28497 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28498 documentation for the power8 crypto builtins.
28500 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28502 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28503 macros for defining power8 builtin functions.
28504 (BU_P8V_AV_2): Likewise.
28505 (BU_P8V_AV_P): Likewise.
28506 (BU_P8V_VSX_1): Likewise.
28507 (BU_P8V_OVERLOAD_1): Likewise.
28508 (BU_P8V_OVERLOAD_2): Likewise.
28509 (BU_CRYPTO_1): Likewise.
28510 (BU_CRYPTO_2): Likewise.
28511 (BU_CRYPTO_3): Likewise.
28512 (BU_CRYPTO_OVERLOAD_1): Likewise.
28513 (BU_CRYPTO_OVERLOAD_2): Likewise.
28514 (XSCVSPDP): Fix typo, point to the correct instruction.
28515 (VCIPHER): Add power8 crypto builtins.
28516 (VCIPHERLAST): Likewise.
28517 (VNCIPHER): Likewise.
28518 (VNCIPHERLAST): Likewise.
28519 (VPMSUMB): Likewise.
28520 (VPMSUMH): Likewise.
28521 (VPMSUMW): Likewise.
28522 (VPERMXOR_V2DI): Likewise.
28523 (VPERMXOR_V4SI: Likewise.
28524 (VPERMXOR_V8HI: Likewise.
28525 (VPERMXOR_V16QI: Likewise.
28526 (VSHASIGMAW): Likewise.
28527 (VSHASIGMAD): Likewise.
28528 (VPMSUM): Likewise.
28529 (VPERMXOR): Likewise.
28530 (VSHASIGMA): Likewise.
28532 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28533 __CRYPTO__ if the crypto instructions are available.
28534 (altivec_overloaded_builtins): Add support for overloaded power8
28537 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28538 support for power8 crypto builtins.
28539 (builtin_function_type): Likewise.
28540 (altivec_init_builtins): Add support for builtins that take vector
28541 long long (V2DI) arguments.
28543 * config/rs6000/crypto.md: New file, define power8 crypto
28546 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28547 Pat Haugen <pthaugen@us.ibm.com>
28548 Peter Bergner <bergner@vnet.ibm.com>
28550 * doc/invoke.texi (Option Summary): Add power8 options.
28551 (RS/6000 and PowerPC Options): Likewise.
28553 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28554 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28555 wm, wn, wr documentation.
28557 * config/rs6000/constraints.md (wm): New constraint for VSX
28558 registers if direct move instructions are enabled.
28559 (wn): New constraint for no registers.
28560 (wq): New constraint for quad word even GPR registers.
28561 (wr): New constraint if 64-bit instructions are enabled.
28562 (wv): New constraint if power8 vector instructions are enabled.
28563 (wQ): New constraint for quad word memory locations.
28565 * config/rs6000/predicates.md (const_0_to_15_operand): New
28566 constraint for 0..15 for crypto instructions.
28567 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28568 as GPR and floating point registers.
28569 (int_reg_operand): New predicate to match only GPR registers.
28570 (base_reg_operand): New predicate to match base registers.
28571 (quad_int_reg_operand): New predicate to match even GPR registers
28572 for quad memory operations.
28573 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28574 operations in both GPR and VSX registers.
28575 (quad_memory_operand): New predicate for quad memory operations.
28576 (reg_or_indexed_operand): New predicate for direct move support.
28578 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28579 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28580 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28581 (POWERPC_MASKS): Add power8 options.
28582 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28585 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28586 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28588 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28589 (-mpower8-fusion): New power8 options.
28590 (-mpower8-fusion-sign): Likewise.
28591 (-mpower8-vector): Likewise.
28592 (-mcrypto): Likewise.
28593 (-mdirect-move): Likewise.
28594 (-mquad-memory): Likewise.
28596 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28597 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28599 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28600 (rs6000_debug_vector_unit): Add p8_vector.
28601 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28602 definitions. Also print fusion state.
28603 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28604 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28605 (rs6000_option_override_internal): Add support for power8.
28606 (rs6000_common_init_builtins): Add debugging for skipped builtins
28607 if -mdebug=builtin.
28608 (rs6000_adjust_cost): Add power8 support.
28609 (rs6000_issue_rate): Likewise.
28610 (insn_must_be_first_in_group): Likewise.
28611 (insn_must_be_last_in_group): Likewise.
28612 (force_new_group): Likewise.
28613 (rs6000_register_move_cost): Likewise.
28614 (rs6000_opt_masks): Likewise.
28616 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28617 power8 capable assembler, default to power7 options.
28618 (TARGET_DIRECT_MOVE): Likewise.
28619 (TARGET_CRYPTO): Likewise.
28620 (TARGET_P8_VECTOR): Likewise.
28621 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28622 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28623 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28624 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28625 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28626 (TARGET_XSCVDPSPN): Likewise.
28627 (TARGET_XSCVSPDPN): Likewsie.
28628 (TARGET_SYNC_HI_QI): Likewise.
28629 (TARGET_SYNC_TI): Likewise.
28630 (MASK_CRYPTO): Likewise.
28631 (MASK_DIRECT_MOVE): Likewise.
28632 (MASK_P8_FUSION): Likewise.
28633 (MASK_P8_VECTOR): Likewise.
28634 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28635 temporary used by some of the direct move instructions to get two FP
28636 temporary registers does not force creation of a stack frame.
28637 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28638 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28639 that any VSX registers are tieable, even if they are also an
28640 Altivec vector mode.
28641 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28642 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28643 (RS6000_BTM_CRYPTO): Likewise.
28644 (RS6000_BTM_COMMON): Likewise.
28646 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28647 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28648 (enum rs6000_vector): Add power8 vector support.
28650 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28654 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28655 (any_sibcall_could_use_r3): this and handle indirect calls.
28656 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28658 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28660 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28662 2013-05-22 Richard Biener <rguenther@suse.de>
28664 PR middle-end/57349
28665 * profile.c (branch_prob): Do not split blocks that are
28666 abnormally receiving from ECF_RETURNS_TWICE functions.
28668 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28670 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28671 address mode. Move pointer mode initialization to the same place.
28673 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28675 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28676 while it has any effect.
28678 2013-05-21 Easwaran Raman <eraman@google.com>
28680 PR tree-optimization/57322
28681 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28682 UID of the statement added to the BB to be 1.
28684 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28686 PR tree-optimization/57331
28687 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28688 of conversion from pointer type to integral type with integer.
28690 2013-05-21 Martin Jambor <mjambor@suse.cz>
28693 * ipa-prop.c (ipa_read_node_info): Process param_used and
28694 controlled_uses in the same order as when writing.
28696 2013-05-21 Magnus Granberg <baldrick@free.fr>
28699 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28701 2013-05-21 Richard Biener <rguenther@suse.de>
28703 PR tree-optimization/57318
28704 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28705 estimate stmts with side-effects as likely eliminated.
28707 2013-05-21 Richard Biener <rguenther@suse.de>
28709 PR tree-optimization/57330
28710 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28711 preserve the call stmts fntype.
28713 2013-05-21 Richard Biener <rguenther@suse.de>
28715 PR tree-optimization/57303
28716 * tree-ssa-sink.c (statement_sink_location): Improve killing
28717 stmt detection and properly handle self-assignments.
28719 2013-05-21 Christian Bruel <christian.bruel@st.com>
28721 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28722 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28723 registers. Set register size out of the PARALLEL loop.
28725 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28728 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28729 (*fmasf4, *fmasf4_media): New insns.
28731 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28733 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28734 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28735 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28736 (mips_idiv_insns): Update the comments to say that the returned
28737 instruction counts are in units of BASE_INSN_LENGTH.
28738 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28739 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28740 using 2 rather than 4 as the length of indirect MIPS16 and
28741 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28742 length of a NOP. Don't divide MIPS16 lengths by 2.
28743 (mips16_split_long_branches): Assume a branch is long if the
28744 length is greater than 4 rather than 8.
28745 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28746 rather than multiplying them by 2. Multiply instruction counts
28747 by BASE_INSN_LENGTH rather than 4.
28748 (*jump_mips16, tls_get_tp_mips16_<mode>)
28749 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28751 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28753 * config/mips/mips.md (extended_mips16): Remove branch case.
28754 (length): Remove duplicated extended_mips16 test.
28756 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28758 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28760 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28762 * recog.h (Recog_data): Rename to...
28763 (recog_data_d): ...this.
28764 (recog_data): Update accordingly.
28765 * recog.c (recog_data): Likewise.
28766 * reload.c (save_recog_data): Likewise.
28767 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28768 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28770 2013-05-17 Julian Brown <julian@codesourcery.com>
28772 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28773 found in a REG_EQUAL note, invalidate it.
28775 2013-05-17 Easwaran Raman <eraman@google.com>
28777 * tree-ssa-reassoc.c (find_insert_point): New function.
28778 (insert_stmt_after): Likewise.
28779 (get_def_stmt): Likewise.
28780 (ensure_ops_are_available): Likewise.
28781 (not_dominated_by): Likewise.
28782 (rewrite_expr_tree): Do not move statements beyond what is
28783 necessary. Remove call to swap_ops_for_binary_stmt...
28784 (reassociate_bb): ... and move it here.
28785 (build_and_add_sum): Assign UIDs for new statements.
28786 (linearize_expr): Likewise.
28787 (do_reassoc): Renumber gimple statement UIDs.
28789 2013-05-17 Jan Hubicka <jh@suse.cz>
28791 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28793 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28794 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28796 (output_weakrefs): Update.
28798 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28799 Martin Jambor <mjambor@suse.cz>
28801 PR middle-end/57276
28802 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28803 value that corresponds to the given aggval is found in values vector.
28805 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28807 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28808 sse, sse2, sse3, ssse3 and sse4a flags to options.
28810 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28812 * gengtype-state.c: (s_expr_writer): New class, to handle
28813 prettifying of output layout of s-expressions.
28814 (state_writer): New class, to write out gtype.state.
28815 (state_written_type_count): Move this variable into member data of
28817 (s_expr_writer::s_expr_writer): New code: constructor for new class
28818 (state_writer::state_writer(): ditto
28819 (s_expr_writer::write_new_line): New function
28820 (s_expr_writer::write_any_indent): ditto
28821 (s_expr_writer::begin_s_expr): ditto
28822 (s_expr_writer::end_s_expr): ditto
28823 (write_state_fileloc): convert to method of state_writer...
28824 (state_writer:: write_state_fileloc): ...and use methods of
28825 s_expr_writer to write indentation into the gtype.state output file
28826 to visually represent the hierarchical structure of the list
28828 (write_state_fields): ditto, renaming to...
28829 (state_writer::write_state_fields)
28830 (write_state_a_string): ditto, renaming to...
28831 (state_writer::write_state_a_string)
28832 (write_state_string_option): ditto, renaming to...
28833 (state_writer::write_state_string_option)
28834 (write_state_type_option): ditto, renaming to...
28835 (state_writer::write_state_type_option)
28836 (write_state_nested_option): ditto, renaming to...
28837 (state_writer::write_state_nested_option)
28838 (write_state_option): ditto, renaming to...
28839 (state_writer::write_state_option)
28840 (write_state_options): ditto, renaming to...
28841 (state_writer::write_state_options)
28842 (write_state_lang_bitmap): ditto, renaming to...
28843 (state_writer::write_state_lang_bitmap)
28844 (write_state_version): ditto, renaming to...
28845 (state_writer::write_state_version)
28846 (write_state_scalar_type): ditto, renaming to...
28847 (state_writer::write_state_scalar_type)
28848 (write_state_string_type): ditto, renaming to...
28849 (state_writer::write_state_string_type)
28850 (write_state_undefined_type): ditto, renaming to...
28851 (state_writer::write_state_undefined_type)
28852 (write_state_struct_union_type): ditto, renaming to...
28853 (state_writer::write_state_struct_union_type)
28854 (write_state_struct_type): ditto, renaming to...
28855 (state_writer::write_state_struct_type)
28856 (write_state_user_struct_type): ditto, renaming to...
28857 (state_writer::write_state_user_struct_type)
28858 (write_state_lang_struct_type): ditto, renaming to...
28859 (state_writer::write_state_lang_struct_type)
28860 (write_state_param_struct_type): ditto, renaming to...
28861 (state_writer::write_state_param_struct_type)
28862 (write_state_pointer_type): ditto, renaming to...
28863 (state_writer::write_state_pointer_type)
28864 (write_state_array_type): ditto, renaming to...
28865 (state_writer::write_state_array_type)
28866 (write_state_gc_used): ditto, renaming to...
28867 (state_writer::write_state_gc_used)
28868 (write_state_common_type_content): ditto, renaming to...
28869 (state_writer::write_state_common_type_content)
28870 (write_state_type): ditto, renaming to...
28871 (state_writer::write_state_type)
28872 (write_state_pair_list): ditto, renaming to...
28873 (state_writer::write_state_pair_list)
28874 (write_state_pair): ditto, renaming to...
28875 (state_writer::write_state_pair)
28876 (write_state_typedefs): ditto, renaming to...
28877 (state_writer::write_state_typedefs)
28878 (write_state_structures): ditto, renaming to...
28879 (state_writer::write_state_structures)
28880 (write_state_param_structs): ditto, renaming to...
28881 (state_writer::write_state_param_structs)
28882 (write_state_variables): ditto, renaming to...
28883 (state_writer::write_state_variables)
28884 (write_state_srcdir): ditto, renaming to...
28885 (state_writer::write_state_srcdir)
28886 (write_state_files_list): ditto, renaming to...
28887 (state_writer::write_state_files_list)
28888 (write_state_languages): ditto, renaming to...
28889 (state_writer::write_state_languages)
28890 (write_state): create a state_writer instance and use it when
28891 writing out the state file
28893 2013-05-17 Mike Stump <mikestump@comcast.net>
28895 PR rtl-optimization/57304
28896 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28897 accessing DF_REF_REAL_LOC.
28899 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28901 PR rtl-optimization/57281
28902 PR rtl-optimization/57300
28903 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28904 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28905 what the other splitter did if the registers are dead.
28907 2013-05-17 Richard Biener <rguenther@suse.de>
28909 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28912 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28914 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28917 2013-05-17 Marek Polacek <polacek@redhat.com>
28919 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28920 length when doing non-zero store of storing '\0' to '\0'.
28922 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28924 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28925 vect_external_def oprnd1 with loop_vinfo, try to emit
28926 optional cast, negation and and stmts on the loop preheader
28927 edge instead of into the pattern def seq.
28929 PR tree-optimization/57051
28930 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28931 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28933 2013-05-16 Nick Clifton <nickc@redhat.com>
28935 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28936 (rl78_is_naked_func): New function.
28937 (rl78_expand_prologue): Skip prologue generation for naked functions.
28938 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28939 * doc/extend.texi (naked): Add RL78 to the list of processors
28940 that supports this attribute.
28942 2013-05-16 Jeff Law <law@redhat.com>
28944 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28946 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28948 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28949 cache parameters using detect_caches_amd also for CYRIX,
28950 NSC and TM2 signatures.
28952 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28953 Dzianis Kahanovich <mahatma@eu.by>
28957 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28958 VIA/Centaur processors and determine their cache parameters
28959 using detect_caches_amd.
28961 2013-05-16 Teresa Johnson <tejohnson@google.com>
28963 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28964 (rtl_verify_edges): New function.
28965 (rtl_verify_bb_insns): Ditto.
28966 (rtl_verify_bb_pointers): Ditto.
28967 (rtl_verify_bb_insn_chain): Ditto.
28968 (rtl_verify_fallthru): Ditto.
28969 (rtl_verify_bb_layout): Ditto.
28970 (rtl_verify_flow_info_1): Outline checks into new functions.
28971 (rtl_verify_flow_info): Ditto.
28973 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28975 * cfghooks.c (copy_bbs): Add update_dominance argument.
28976 * cfghooks.h (copy_bbs): Update prototype.
28977 * tree-cfg.c (gimple_duplicate_sese_region):
28978 Add update_dominance argument.
28979 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28980 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28981 gimple_duplicate_sese_region call.
28982 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28983 Update copy_bbs call.
28984 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28985 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28987 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28989 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28990 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28991 vect_recog_rotate_pattern.
28992 (vect_recog_rotate_pattern): New function.
28994 2013-05-16 Jason Merrill <jason@redhat.com>
28996 * Makefile.in (LLINKER): New variable.
28997 (mostlyclean): Remove link mutex.
28998 * configure.ac: Handle --enable-link-mutex.
28999 * lock-and-run.sh: New script.
29001 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29004 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29007 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29009 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29011 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29013 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29014 * config/arm/arm.c (next_consecutive_mem): New function.
29015 (gen_movmem_ldrd_strd): Likewise.
29016 * config/arm/arm.md (movmemqi): Update condition and code.
29017 (unaligned_loaddi, unaligned_storedi): New patterns.
29019 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29021 * config.gcc: Obsolete *-*-solaris2.9*.
29022 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29024 2013-05-16 Richard Biener <rguenther@suse.de>
29026 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29027 earlier, after GRAPHITE transforms and IV canonicalization.
29029 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29031 * omp-low.c (extract_omp_for_data): For collapsed loops,
29032 if at least one of the loops is known at compile time to
29033 iterate zero times, set count to 0.
29034 (expand_omp_regimplify_p): New function.
29035 (expand_omp_for_generic): For collapsed loops, if at least
29036 one of the loops isn't known to iterate at least once,
29037 add runtime check with setting count to 0.
29038 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29039 For unsigned types if it isn't known at compile time that
29040 the loop will iterate at least once, add runtime check to bypass
29041 the whole loop if initial condition isn't true.
29043 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29045 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29047 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29049 PR middle-end/57286
29050 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29051 transformations to avoid an infinite loop.
29053 2013-05-16 Marek Polacek <polacek@redhat.com>
29055 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29057 2013-05-15 Leif Ekblad <leif@rdos.net>
29059 * config/i386/i386.c (ix86_decompose_address): Use
29060 DEFAULT_TLS_SEG_REG to access TLS segment register.
29061 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29062 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29063 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29065 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29068 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29069 sibling calls to functions that would normally be lazily bound,
29070 unless $gp is call-clobbered.
29072 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29074 * config/i386/i386.c (ix86_option_override_internal): Update
29075 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29076 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29077 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29078 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29080 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29082 2013-05-15 Andreas Schwab <schwab@suse.de>
29084 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29085 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29088 2013-05-15 Teresa Johnson <tejohnson@google.com>
29090 * loop-unroll.c (report_unroll_peel): Check decision before
29091 emitting unroll/peel message.
29093 2013-05-15 Teresa Johnson <tejohnson@google.com>
29095 * function.h (has_bb_partition): New rtl_data flag.
29096 (bb_reorder_complete): Ditto.
29097 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29098 instead of flag_reorder_blocks_and_partition.
29099 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29100 with some enhancements.
29101 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29102 * bb-reorder.c (connect_traces): Check for has_bb_partition
29103 instead of flag_reorder_blocks_and_partition.
29104 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29105 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29106 verify_hot_cold_block_grouping.
29107 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29109 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29112 * config/arm/predicates.md (call_insn_operand): New predicate.
29113 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29114 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29115 if insn is not a tail call.
29116 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29118 * config/arm/arm.h (enum reg_class): New caller save register class.
29119 (REG_CLASS_NAMES): Likewise.
29120 (REG_CLASS_CONTENTS): Likewise.
29121 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29124 2013-05-15 Richard Biener <rguenther@suse.de>
29126 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29127 of MSG_OPTIMIZED_LOCATIONS.
29128 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29129 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29131 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29132 of MSG_OPTIMIZED_LOCATIONS.
29133 (execute_vect_slp): Likewise.
29134 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29135 (vect_create_cond_for_alias_checks): Likewise.
29136 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29137 (vect_recog_widen_mult_pattern): Likewise.
29138 (vect_recog_widen_sum_pattern): Likewise.
29139 (vect_recog_over_widening_pattern): Likewise.
29140 (vect_recog_widen_shift_pattern): Likewise.
29141 (vect_recog_vector_vector_shift_pattern): Likewise.
29142 (vect_recog_divmod_pattern): Likewise.
29143 (vect_recog_mixed_size_cond_pattern): Likewise.
29144 (vect_recog_bool_pattern): Likewise.
29145 (vect_pattern_recog_1): Likewise.
29147 2013-05-15 Martin Jambor <mjambor@suse.cz>
29149 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29150 non-functions to builtin_unreachable.
29151 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29152 correct when new direct edges were discovered.
29154 2013-05-15 Martin Jambor <mjambor@suse.cz>
29156 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29157 header, print symbol order instead of node uid, print more information
29158 about indirect edge targets.
29159 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29161 (ipa_make_edge_direct_to_target): Likewise.
29162 (remove_described_reference): Likewise.
29163 (propagate_controlled_uses): Likewise.
29164 (ipa_print_node_params): Also print symbol order.
29165 (ipcp_transform_function): Print symbol order instead of node uids.
29166 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29167 (cgraph_get_create_real_symbol_node): Likewise.
29168 * ipa-cp.c (print_lattice): Likewise.
29169 (print_all_lattices): Likewise.
29170 (determine_versionability): Likewise.
29171 (initialize_node_lattices): Likewise.
29172 (estimate_local_effects): Likewise.
29173 (update_profiling_info): Likewise.
29174 (create_specialized_node): Likewise.
29175 (perhaps_add_new_callers): Likewise.
29176 (decide_about_value): Likewise.
29177 (decide_whether_version_node): Likewise.
29178 (identify_dead_nodes): Likewise.
29179 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29180 (dump_inline_summary): Likewise.
29181 (estimate_node_size_and_time): Likewise.
29182 (inline_analyze_function): Likewise.
29183 * ipa-inline.c (report_inline_failed_reason): Likewise.
29184 (want_early_inline_function_p): Likewise.
29185 (edge_badness): Likewise.
29186 (update_edge_key): Likewise.
29187 (inline_small_functions): Likewise. Add dumping of order to two other
29189 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29190 instead of node uids.
29191 (propagate_pure_const): Likewise.
29192 (propagate_pure_const): Likewise.
29193 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29194 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29195 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29197 * tree-pretty-print.c (dump_function_header): Likewise.
29198 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29199 Print symbol order instead of node uids.
29201 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29203 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29204 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29206 2013-05-15 Richard Biener <rguenther@suse.de>
29208 PR tree-optimization/57275
29209 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29210 return value for fail to do runtime alias checks for gather loads.
29212 2013-05-15 Jan Hubicka <jh@suse.cz>
29216 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29217 weakrefs are not external.
29218 (lto_symtab_merge_decls): Fix thinko when dealing with
29219 non-lto_symtab decls.
29220 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29221 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29222 * varpool.c (dump_varpool_node): Dump more flags.
29224 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29226 * config/i386/i386.c (processor_alias_table): Add instruction
29227 FSGSBASE for AMD bdver3 architecture.
29229 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29231 * tree.c (warn_deprecated_use): Print file:line using locus color.
29232 * diagnostic.c (diagnostic_report_current_module): Print file:line
29233 and file:line:column using locus color.
29235 2013-05-14 Mike Stump <mikestump@comcast.net>
29237 * gdbinit.in: Add __null.
29239 2013-05-14 Mike Stump <mikestump@comcast.net>
29241 * recog.h: Rename struct recog_data to Recog_data.
29242 * recog.c: Likewise.
29243 * reload.c (can_reload_into): Likewise.
29244 * config/picochip/picochip.c: Likewise.
29246 2013-05-14 Mike Stump <mikestump@comcast.net>
29248 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29250 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29252 * resource.h (struct resources): Remove unch_memory member.
29253 (CLEAR_RESOURCE): Don't clear unch_memory.
29254 * resource.c (mark_referenced_resources): Don't set it.
29255 (mark_set_resources): Likewise.
29256 (mark_target_live_regs): Don't clear it.
29257 (init_resource_info): Likewise.
29258 * reorg.c (resource_conflicts_p): Don't compare it.
29259 (redundant_insn): Don't set it.
29261 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29263 * emit-rtl.c (next_label): Remove unused function.
29264 (skip_consecutive_labels, link_cc0_insns): Move to ...
29265 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29266 only place where these functions are used, and make them static.
29268 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29270 * fold-const.c (fold_negate_expr): Handle vectors.
29271 (fold_truth_not_expr): Make it static.
29272 (fold_invert_truthvalue): New static function.
29273 (invert_truthvalue_loc): Handle vectors. Do not call
29274 fold_truth_not_expr directly.
29275 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29276 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29277 (fold_comparison): Handle vector constants.
29278 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29279 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29280 * tree.h (fold_truth_not_expr): Remove declaration.
29282 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29284 * config/aarch64/aarch64-simd.md
29285 (aarch64_vcond_internal<mode>): Rename to...
29286 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29287 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29288 float modes. Clarify all iterator modes.
29289 (vcond<mode><mode>): Use new name for vcond expanders.
29290 (vcond<v_cmp_result><mode>): Likewise.
29291 (vcondu<mode><mode>: Likewise.
29292 * config/aarch64/iterators.md (VDQF_COND): New.
29294 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29297 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29298 variable for the shift amount. Check that we shift by non-negative
29301 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29304 * config/arm/arm.h (EPILOGUE_USES): Only return true
29305 for LR_REGNUM after epilogue_completed.
29307 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29309 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29310 is error_mark_node.
29312 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29315 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29316 and Solaris 11+/x86 with gld.
29317 * configure: Regenerate.
29319 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29321 * expmed.c (expand_shift_1): Canonicalize rotates by
29322 constant bitsize / 2 to bitsize - 1.
29323 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29324 case ROTATERT>: Likewise.
29327 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29329 * config/i386/i386.md (rotateinv): New code attr.
29330 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29331 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29332 roll $31, %eax, etc.
29334 2013-05-14 Richard Biener <rguenther@suse.de>
29336 PR middle-end/57235
29337 * tree-eh.c (sink_clobbers): Give up for successors with
29338 multiple predecessors and no virtual uses.
29340 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29342 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29343 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29345 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29347 PR middle-end/57251
29348 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29349 the case when both op0 and op1 have VOIDmode.
29351 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29353 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29354 in multiply-accumulate mode.
29356 2013-05-13 Guozhi Wei <carrot@google.com>
29358 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29360 2013-05-13 Kai Tietz <ktietz@redhat.com>
29363 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29364 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29365 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29366 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29367 (ix86_expand_prologue): Likewise.
29368 (ix86_expand_split_stack_prologue): Likewise.
29369 (legitimate_pic_address_disp_p): Likewise.
29370 (legitimize_pic_address): Likewise.
29371 (legitimize_tls_address): Likewise.
29372 (legitimize_pe_coff_symbol): Likewise.
29373 (output_pic_addr_const): Likewise.
29374 (construct_plt_address): Likewise.
29375 (ix86_expand_call): Likewise.
29376 (x86_output_mi_thunk): Likewise.
29377 (x86_function_profiler): Likewise.
29379 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29381 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29382 similar switch cases.
29383 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29384 (aarch64_simd_mov_to_<mode>low): Delete.
29385 (aarch64_simd_mov_to_<mode>high): Delete.
29386 (move_lo_quad_<mode>): Add w<-r alternative.
29387 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29388 (aarch64_simd_mov_from_*): Update type attribute.
29389 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29392 2013-05-13 Jan Hubicka <jh@suse.cz>
29394 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29395 * config/i386/i386.c (ix86_compute_frame_layout,
29396 ix86_expand_epilogue, emit_i387_cw_initialization,
29397 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29398 ix86_local_alignment): Fix use of size/speed predicates.
29400 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29402 PR tree-optimization/45216
29403 PR tree-optimization/57157
29404 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29405 the (-Y) & (B - 1) variant if OP is |.
29406 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29407 return shifted. Use (-op1) & (prec - 1) as other_amount
29408 instead of prec - op1.
29410 2013-05-13 Martin Jambor <mjambor@suse.cz>
29412 PR middle-end/42371
29413 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29414 (ipa_constant_data): New type.
29415 (ipa_jump_func): Use ipa_constant_data to hold information about
29416 constant jump functions.
29417 (ipa_get_jf_constant): Adjust to jump function type changes.
29418 (ipa_get_jf_constant_rdesc): New function.
29419 (ipa_param_descriptor): New field controlled_uses.
29420 (ipa_get_controlled_uses): New function.
29421 (ipa_set_controlled_uses): Likewise.
29422 * ipa-ref.h (ipa_find_reference): Declare.
29423 * ipa-prop.c (ipa_cst_ref_desc): New type.
29424 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29426 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29427 New parameter cs. Adjust all callers.
29428 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29429 (remove_described_reference): New function.
29430 (jfunc_rdesc_usable): Likewise.
29431 (try_make_edge_direct_simple_call): Decrement controlled use count,
29432 attempt to remove reference if it hits zero.
29433 (combine_controlled_uses_counters): New function.
29434 (propagate_controlled_uses): Likewise.
29435 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29436 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29437 (ipa_print_node_params): Print described use counter.
29438 (ipa_write_jump_function): Adjust to jump function type changes.
29439 (ipa_read_jump_function): New parameter CS, pass it to
29440 ipa_set_jf_constant. Adjust caller.
29441 (ipa_write_node_info): Stream controlled use count
29442 (ipa_read_node_info): Likewise.
29443 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29445 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29446 count. Remove cloning-added reference if it reaches zero.
29447 * ipa-ref.c (ipa_find_reference): New function.
29449 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29451 * config/i386/i386.c (processor_target_table): Modified default
29452 alignment values for AMD BD and BT architectures.
29454 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29456 * tree-vect-generic.c (uniform_vector_p): Move ...
29457 * tree.c (uniform_vector_p): ... here.
29458 * tree.h (uniform_vector_p): Declare it.
29459 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29462 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29464 PR tree-optimization/57230
29465 * tree-ssa-strlen.c (handle_char_store): Record length for
29466 array store from STRING_CST.
29468 PR tree-optimization/57230
29469 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29472 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29474 * config/epiphany/epiphany.c (epiphany_init): Check size of
29475 NUM_MODES_FOR_MODE_SWITCHING.
29476 (epiphany_expand_prologue):
29477 Remove CONFIG_REGNUM initial value handling code.
29478 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29479 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29480 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29481 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29482 Don't return 1 for FP_MODE_NONE.
29483 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29484 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29485 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29486 * config/epiphany/epiphany.md (save_config): New pattern.
29488 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29490 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29492 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29494 * config/i386/i386.md (memory): Handle sseishft1.
29495 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29496 (*vec_extractv2di_1): Ditto.
29498 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29500 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29503 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29505 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29506 Add mthumb/march=armv7-a multilib.
29507 Add mthumb/march=armv7-r multilib.
29508 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29510 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29512 * config/v850/t-rtems: Add more multilibs.
29514 2013-05-10 Richard Biener <rguenther@suse.de>
29516 PR tree-optimization/57214
29517 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29518 not propagate from SSA names that occur in abnormal PHI nodes.
29520 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29522 * stor-layout.c (element_precision): New function.
29523 * machmode.h (element_precision): Declare it.
29524 * tree.c (build_minus_one_cst): New function.
29525 (element_precision): Likewise.
29526 * tree.h (build_minus_one_cst): Declare new function.
29527 (element_precision): Likewise.
29528 * fold-const.c (operand_equal_p): Use element_precision.
29529 (fold_binary_loc): Handle vector types.
29530 * convert.c (convert_to_integer): Use element_precision.
29531 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29534 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29536 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29537 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29538 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29539 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29540 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29541 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29542 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29543 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29544 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29545 (Uuw8): New constraints.
29546 (Usb4): Move into alphabetical order.
29547 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29548 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29549 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29550 previously unnamed patterns.
29551 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29552 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29553 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29554 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29555 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29556 of specific lengths.
29558 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29560 * config/i386/i386.md (rotateinv): New code attr.
29561 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29562 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29563 roll $31, %eax, etc.
29565 PR tree-optimization/45216
29566 PR tree-optimization/57157
29567 * tree-ssa-forwprop.c (simplify_rotate): New function.
29568 (ssa_forward_propagate_and_combine): Call it.
29570 2013-05-10 Richard Biener <rguenther@suse.de>
29572 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29573 disable peeling when we version for aliasing.
29574 (vector_alignment_reachable_p): Honor explicit user alignment.
29575 (vect_supportable_dr_alignment): Likewise.
29576 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29577 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29578 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29579 then peeling to arrange for the cost-model check to come first.
29581 2013-05-10 Alan Modra <amodra@gmail.com>
29583 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29584 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29585 * configure: Regenerate.
29587 2013-05-10 Alan Modra <amodra@gmail.com>
29590 * varasm.c (default_elf_select_section): Move !DECL_P check..
29591 (get_named_section): ..to here before calling get_section_name.
29593 (default_section_type_flags): Add DECL_P check.
29594 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29595 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29597 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29599 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29600 When using gen_stack_adjust_str with a register offset, add a
29601 REG_FRAME_RELATED_EXPR note.
29603 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29605 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29606 (*vec_extractv4si_zext_mem): Ditto.
29607 (*vec_extractv2di): Add 0->x and x->x alternatives.
29608 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29609 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29611 2013-05-09 Jason Merrill <jason@redhat.com>
29613 N3639 C++1y VLA support
29614 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29617 * tree.c (build_constructor_va): New.
29618 * tree.h: Declare it.
29620 2013-05-09 Martin Jambor <mjambor@suse.cz>
29623 * gimple-fold.c (canonicalize_constructor_val): Call
29624 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29626 2013-05-09 Jan Hubicka <jh@suse.cz>
29627 Richard Biener <rguenther@suse.de>
29630 * symtab.c (symtab_make_decl_local): Do not add private names.
29632 2013-05-09 Jan Hubicka <jh@suse.cz>
29635 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29636 (unlink_from_assembler_name_hash): Likewise.
29637 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29638 symtab_unregister_node, symtab_initialize_asm_name_hash,
29639 change_decl_assembler_name): Update.
29641 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29643 * config/aarch64/aarch64.md: New movtf split.
29644 (*movtf_aarch64): Update.
29645 (aarch64_movdi_tilow): Handle TF modes and rename to
29646 aarch64_movdi_<mode>low.
29647 (aarch64_movdi_tihigh): Handle TF modes and rename to
29648 aarch64_movdi_<mode>high
29649 (aarch64_movtihigh_di): Handle TF modes and rename to
29650 aarch64_mov<mode>high_di
29651 (aarch64_movtilow_di): Handle TF modes and rename to
29652 aarch64_mov<mode>low_di
29653 (aarch64_movtilow_tilow): Remove spurious whitespace.
29654 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29656 (aarch64_print_operand): Update.
29658 2013-05-09 Alan Modra <amodra@gmail.com>
29660 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29662 * configure: Regenerate.
29664 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29666 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29667 splitter preparation statements.
29668 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29669 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29672 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29674 * gimple-ssa-strength-reduction.c (count_candidates): Change
29675 return value to int.
29676 (analyze_candidates_and_replace): Change type of length to int.
29678 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29680 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29681 (*vec_extract<mode>): Use VI12_128 mode iterator.
29682 (*vec_extract<mode>_mem): Ditto.
29683 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29686 2013-05-08 Diego Novillo <dnovillo@google.com>
29691 2012-08-17 Diego Novillo <dnovillo@google.com>
29694 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29695 * config.in: Regenerate.
29696 * configure: Regenerate.
29697 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29699 2013-05-08 Jan Hubicka <jh@suse.cz>
29702 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29703 * cgraph.h (symtab_node_base): Add unique_name.
29704 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29705 input_overwrite_node, input_varpool_node): Stream unique_name.
29706 * cgraphclones.c (cgraph_create_virtual_clone,
29707 cgraph_function_versioning): Set unique_name.
29708 * ipa.c (function_and_variable_visibility): Set unique_name.
29710 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29712 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29713 (alloc_cand_and_find_basis): Restrict conditional candidate
29714 processing to CAND_MULTs.
29716 2013-05-08 Jan Hubicka <jh@suse.cz>
29719 lto-symtab.c (lto_symtab_symbol_p): New function.
29720 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29721 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29722 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29723 Skip static symbols.
29725 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29727 PR tree-optimization/57200
29728 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29729 Only call inform if the preceding warning_at returns true.
29731 2013-05-07 Han Shen <shenhan@google.com>
29733 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29734 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29735 * common.opt (fstack-protector-strong): New option.
29736 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29737 * doc/invoke.texi (Optimization Options): Document
29738 "-fstack-protector-strong".
29739 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29741 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29743 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29745 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29747 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29748 it is not lhs of the insn.
29749 (setup_reg_equiv): Remove insn having equiv memory which it is not
29751 * lra-constraints.c (process_address): Try to improve generation
29752 code for address base + disp.
29753 (lra_constraints): Make correct the code for checking insn setting
29754 up backward equivalence. Remove insn only if it is in the init
29756 * lra-eliminations.c (update_reg_eliminate): Change return value.
29757 (lra_eliminate): Use the result.
29759 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29761 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29762 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29763 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29764 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29765 register target operands.
29766 (*vec_extractv8hi_sse2): New pattern.
29767 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29768 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29769 (*vec_extract<mode>_mem): New insn and split pattern.
29771 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29773 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29774 (TARGET_ASAN_SHADOW_OFFSET): Define.
29775 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29776 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29778 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29780 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29781 (incr_vec_index): Return -1 if increment not found.
29782 (create_add_on_incoming_edge): Assert if increment not found.
29783 (record_increment): Limit number of increments recorded.
29784 (all_phi_incrs_profitable): Return false if an increment not found.
29785 (replace_profitable_candidates): Don't process increments that were
29787 (analyze_candidates_and_replace): Limit size of incr_vec.
29789 2013-05-07 Richard Biener <rguenther@suse.de>
29791 * calls.c (special_function_p): setjmp-like functions are leaf.
29792 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29793 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29795 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29797 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29798 (aarch64_simd_mov<mode>): New expander.
29799 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29800 (aarch64_simd_mov_to_<mode>high): Likewise.
29801 (aarch64_simd_mov_from_<mode>low): Likewise.
29802 (aarch64_simd_mov_from_<mode>high): Likewise.
29803 (aarch64_dup_lane<mode>): Update.
29804 (aarch64_dup_lanedi): New instruction pattern.
29805 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29806 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29808 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29810 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29811 (replace_mult_candidate): Remove unnecessary argument; remove
29812 unnecessary parameter from call to introduce_cast_before_cand.
29813 (replace_unconditional_candidate): Remove unnecessary parameter
29814 from call to replace_mult_candidate.
29815 (replace_conditional_candidate): Likewise.
29816 (insert_initializers): Use make_temp_ssa_name.
29817 (introduce_cast_before_cand): Remove unnecessary argument; use
29818 make_temp_ssa_name.
29819 (replace_one_candidate): Remove unnecessary argument; remove
29820 unnecessary parameter from calls to introduce_cast_before_cand.
29821 (replace_profitable_candidates): Remove unnecessary parameters
29822 from calls to replace_one_candidate.
29824 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29826 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29827 phi def as possibly hiding a basis for a CAND_ADD whose operands
29828 have been commuted in the analysis.
29829 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29831 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29833 * config/aarch64/aarch64.md
29834 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29835 shift value between 0-4.
29837 2013-05-07 Richard Biener <rguenther@suse.de>
29839 * double-int.h (rshift): New overload.
29840 * double-int.c (rshift): New function.
29841 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29842 (create_reference_ops_from_ref): Remove.
29843 (vn_reference_insert): Use shared ops for constructing the
29844 reference and copy it.
29846 2013-05-07 Richard Biener <rguenther@suse.de>
29848 PR middle-end/57190
29849 * tree-eh.c (sink_clobbers): Properly propagate
29850 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29852 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29854 PR tree-optimization/57149
29855 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29856 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29857 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29858 uninit_undefined_value_p instead of ssa_undefined_value_p.
29861 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29862 for modifier == EXPAND_INITIALIZER.
29864 2013-05-07 Anton Blanchard <anton@samba.org>
29866 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29867 for powerpc64 little endian.
29868 * configure: Regenerate.
29870 2013-05-06 Graham Stott <grahams@btinternet.com>
29872 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29873 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29874 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29875 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29877 2013-05-06 Graham Stott <grahams@btinternet.com>
29879 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29880 codes which allow non-lvalues.
29882 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29884 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29885 components are all 1s.
29886 (integer_minus_onep): New function.
29887 * tree.h (integer_minus_onep): Declare it.
29888 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29889 integer_minus_onep instead of integer_all_onesp.
29891 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29894 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29895 variations of these patterns.
29897 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29899 * config/i386/i386.md (isa): Add x64_sse4 member.
29900 (enabled): Handle x64_sse4.
29901 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29902 instruction for 64bit SSE4_1 targets. Update insn attributes.
29903 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29904 instruction for SSE4_1 targets. Update insn attributes.
29905 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29906 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29907 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29909 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29910 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29911 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29913 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29916 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29918 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29920 * final.c (do_assembler_dialects): Don't handle curly braces and
29921 vertical bar escaped by % as dialect delimiters.
29922 (output_asm_insn): Print curly braces and vertical bar if escaped
29923 by % and ASSEMBLER_DIALECT defined.
29924 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29925 * doc/tm.texi: Regenerated.
29927 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29929 * config/mips/mips.c: Include tree-pass.h.
29930 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29931 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29932 (pass_mips_machine_reorg2): New machine specific pass.
29933 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29934 (mips_option_override): Register the new pass.
29935 * rtl.h (cleanup_barriers): Remove prototype.
29936 (dbr_schedule): Likewise.
29937 * jump.c (cleanup_barriers): Make static.
29938 * reorg.c (dbr_schedule): Likewise.
29940 2013-05-06 Richard Biener <rguenther@suse.de>
29942 PR tree-optimization/57185
29943 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29944 SSA names properly.
29946 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29949 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29950 between "first_arg" and "insn", not "last" and "insn".
29952 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29954 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29955 (find_candidates_in_block): Re-enable slsr_process_phi.
29956 (create_phi_basis): Fix double counting of candidate adjustment.
29958 2013-05-06 Richard Biener <rguenther@suse.de>
29960 PR middle-end/57147
29961 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29962 the edge is also fallthru, preserve it and just clear the
29964 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29965 also complex, preserve that and just clear the fallthru flag.
29966 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29967 update virtual operands.
29969 2013-05-06 Alan Modra <amodra@gmail.com>
29971 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29972 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29973 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29974 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29975 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29976 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29978 2013-05-06 Alan Modra <amodra@gmail.com>
29980 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29981 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29982 (DEFAULT_ASM_ENDIAN): Define.
29983 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29984 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29985 Update -K PIC clause from sysv4.h.
29986 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29987 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29989 2013-05-06 Alan Modra <amodra@gmail.com>
29991 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29992 twice for little-endian.
29993 (ashrdi3_no_power, ashrdi3): Support little-endian.
29995 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29998 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29999 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30001 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30002 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30003 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30006 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30007 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30009 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30010 * config/pa/pa.opt: Make mbig-switch a no-op.
30011 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30012 (CASE_VECTOR_MODE): Always return SImode.
30013 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30014 for the !TARGET_BIG_SWITCH case.
30015 * config/pa/pa-linux.h: Likewise.
30016 * config/pa/pa-openbsd.h: Likewise.
30017 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30018 * config/pa/pa.md (short_jump): Remove define_insn.
30019 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30020 (casesi0): Remove define_insn.
30021 (type): Remove btable_branch.
30022 (pa_combine_type): Likewise.
30023 (in_nullified_branch_delay): Likewise.
30024 (in_call_delay): Likewise.
30025 (define_delay): Likewise.
30026 (define_insn_reservation "Z3"): Likewise.
30027 (define_insn_reservation "Z4"): Likewise.
30028 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30029 (pa_adjust_insn_length): Remove adjustment for btable branches.
30030 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30033 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30035 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30036 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30037 Add m->r,x alternatives.
30038 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30039 splitters using SWI48x mode iterator.
30040 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30041 TARGET_64BIT. Add m->x alternative.
30042 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30043 Add o->x alternative. Enable for TARGET_SSE.
30044 (sse_storeq): Remove expander.
30045 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30046 with memory input operand.
30047 (*vec_extractv2di_1 splitter): New.
30048 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30049 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30051 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30053 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30054 (INT_LOWPART): Delete.
30055 (extract_MB): Adjust.
30056 (extract_ME): Adjust.
30057 (print_operand): Adjust.
30059 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30061 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30062 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30063 (reg_or_logical_cint_operand, easy_fp_constant,
30064 logical_const_operand): Delete "CONST_DOUBLE" case.
30065 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30066 "HOST_BITS_PER_WIDE_INT == 64" test.
30067 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30068 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30069 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30070 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30072 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30073 CONST_DOUBLE DImode/VOIDmode case.
30074 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30075 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30076 CONST_DOUBLE VOIDmode case.
30077 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30078 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30079 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30080 Delete CONST_DOUBLE case.
30081 (splitters for mov FMOVE64 const_double): Delete
30082 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30083 "HOST_BITS_PER_WIDE_INT >= 64" test.
30084 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30086 (mov DI const_double): Delete.
30088 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30090 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30091 on op shows all bits zero in mode of a lowpart subreg, return zero.
30093 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30096 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30097 to save TFmode registers and DImode to save TImode registers for
30098 caller save operations.
30099 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30100 mark being partially clobbered since they only use the first
30103 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30104 and TDmode only use the upper 64-bits of each VSX register.
30106 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30108 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30109 (find_candidates_in_block): Disable slsr_process_phi.
30111 2013-05-03 Guozhi Wei <carrot@google.com>
30113 * coverage.c (coverage_obj_init): Move the construction of gcov
30115 (build_init_ctor): ... here.
30117 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30119 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30120 (slsr_cand_d): Redefine def_phi.
30121 (stride_status, phi_adjust_status, count_phis_status): New enums.
30122 (find_phi_def): New.
30123 (find_basis_for_base_expr): New.
30124 (find_basis_for_candidate): Handle hidden bases.
30125 (alloc_cand_and_find_basis): Handle phi candidates.
30126 (slsr_process_phi): New.
30127 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30128 (create_mul_imm_cand): Likewise.
30129 (create_add_ssa_cand): Exclude phi base candidates.
30130 (create_add_imm_cand): Likewise.
30131 (slsr_process_cast): Likewise.
30132 (slsr_process_copy): Likewise.
30133 (find_candidates_in_block): Handle phi candidates.
30134 (dump_candidate): Likewise.
30135 (unconditional_cands): Delete.
30136 (unconditional_cands_with_known_stride_p): Delete.
30137 (phi_dependent_cand_p): New.
30138 (cand_increment): Handle phi-dependent candidates.
30139 (replace_dependent): Delete.
30140 (replace_mult_candidate): New.
30141 (replace_unconditional_candidate): New.
30142 (incr_vec_index): Move to avoid forward reference.
30143 (create_add_on_incoming_edge): New.
30144 (create_phi_basis): New.
30145 (replace_dependents): Delete.
30146 (replace_conditional_candidate): New.
30147 (phi_add_costs): New.
30148 (replace_uncond_cands_and_profitable_phis): New.
30149 (record_increment): Handle phi adjustments.
30150 (record_phi_increments): New.
30151 (record_increments): Handle phi adjustments.
30152 (phi_incr_cost): New.
30153 (lowest_cost_path): Handle phis.
30154 (total_savings): Likewise.
30155 (analyze_increments): Likewise.
30156 (ncd_with_phi): New.
30157 (ncd_of_cand_and_phis): New.
30158 (nearest_common_dominator_for_cands): Handle phi increments.
30159 (all_phi_incrs_profitable): New.
30160 (replace_profitable_candidates): Handle phi-dependent candidates.
30161 (analyze_candidates_and_replace): Likewise.
30163 2013-05-03 Teresa Johnson <tejohnson@google.com>
30166 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30167 do not exceed REG_BR_PROB_BASE.
30169 2013-05-03 Jeff Law <law@redhat.com>
30171 PR tree-optimization/57144
30172 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30173 operand of the condition will bit into the new type when eliminating
30174 a cast feeding a condition.
30176 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30178 PR rtl-optimization/57130
30179 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30180 of COMPARE as in_code to the recursive call if needed.
30182 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30184 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30185 (enabled): Handle new members.
30186 * config/i386/sse.md (*vec_concatv2si): Merge from
30187 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30188 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30190 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30192 PR tree-optimization/57027
30193 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30194 for fnms opportunity, check we got the prerequisite kind
30195 of tree / gimple before using accessor functions.
30197 2013-05-03 Richard Biener <rguenther@suse.de>
30199 * double-int.h (lshift): New overload without precision
30200 and arith argument.
30201 (operator *=, operator +=, operator -=): Move ...
30202 * double-int.c (operator *=, operator +=, operator -=): ... here
30203 and implement more efficiently.
30204 (mul_double_with_sign): Remove.
30205 (lshift_double): Adjust to take unsinged shift argument, push
30206 dispatching code to callers.
30207 (mul_double_wide_with_sign): Add early out for callers that
30208 are not interested in high parts or overflow.
30209 (lshift): New function.
30210 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30211 dispatch code here.
30212 (lrotate, rrotate): Use logical shifts.
30213 * expr.c (get_inner_reference): Use lshift.
30214 * fixed-value.c (do_fixed_divide): Likewise.
30215 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30216 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30217 (indirect_refs_may_alias_p): Likewise.
30218 (stmt_kills_ref_p_1): Likewise.
30220 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30222 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30224 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30226 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30227 scalar form of FABD instruction.
30229 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30231 * lra-constraints.c (process_alt_operands): Add checking alt
30232 number to choose the best alternative.
30234 2013-05-02 Richard Biener <rguenther@suse.de>
30236 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30237 bitmap and its handling.
30238 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30240 2013-05-02 Richard Biener <rguenther@suse.de>
30242 PR middle-end/57140
30243 * tree-inline.c (copy_loops): Properly handle removed loops.
30244 (copy_cfg_body): Mark destination loops for fixup if source
30245 loops needed fixup.
30247 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30250 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30251 generating simple_return for naked functions.
30253 2013-05-02 Martin Jambor <mjambor@suse.cz>
30255 PR middle-end/56988
30256 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30257 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30259 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30260 ipa_agg_replacement_value structures.
30261 (known_aggs_to_agg_replacement_list): Likewise.
30262 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30263 (read_agg_replacement_chain): Likewise.
30264 (ipcp_transform_function): Also check that by_ref flags match.
30266 2013-05-02 Richard Biener <rguenther@suse.de>
30268 * graphds.h (struct graph): Add obstack member.
30269 * graphds.c (new_graph): Initialize obstack and allocate
30271 (add_edge): Allocate edge from the obstack.
30272 (free_graph): Free the obstack instead of all edges and vertices.
30274 2013-05-02 Teresa Johnson <tejohnson@google.com>
30276 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30278 * cfg.c (update_bb_profile_for_threading): Ditto.
30279 * tree-inline.c (copy_bb): Ditto.
30280 (copy_edges_for_bb): Ditto.
30281 (initialize_cfun): Ditto.
30282 (copy_cfg_body): Ditto.
30283 (expand_call_inline): Ditto.
30284 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30285 (estimate_node_size_and_time): Ditto.
30286 (inline_merge_summary): Ditto.
30287 * cgraphclones.c (cgraph_clone_edge): Ditto.
30288 (cgraph_clone_node): Ditto.
30289 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30290 (compute_trg_info): Ditto.
30292 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30294 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30295 S reg when fp attribute set.
30296 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30298 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30300 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30302 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30303 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30304 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30306 2013-05-02 Richard Biener <rguenther@suse.de>
30308 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30309 (struct instantiate_cache_entry): New type.
30310 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30311 (struct instantiate_cache_type): New type.
30312 (set_instantiated_value, get_instantiated_value): Remove.
30313 (get_instantiated_value_entry): New function.
30314 (instantiate_scev_name): Use the new cache and adjust.
30315 (instantiate_scev_poly): Adjust.
30316 (instantiate_scev_binary): Likewise.
30317 (instantiate_array_ref): Likewise.
30318 (instantiate_scev_convert): Likewise.
30319 (instantiate_scev_not): Likewise.
30320 (instantiate_scev_3): Likewise.
30321 (instantiate_scev_2): Likewise.
30322 (instantiate_scev_r): Likewise.
30323 (instantiate_scev): Likewise.
30324 (resolve_mixers): Likewise.
30326 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30329 * lra-constraints.c (best_small_class_operands_num): Remove.
30330 (process_alt_operands): Remove small_class_operands_num. Take
30331 small classes operands into losers and only if the operand is not
30332 matched. Modify debugging output.
30333 (curr_insn_transform): Remove best_small_class_operands_num.
30336 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30338 * config/aarch64/aarch64-builtins.c
30339 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30340 * config/aarch64/aarch64-simd-builtins.def
30341 (reduc_splus_): Add new modes.
30342 (reduc_uplus_): New.
30343 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30344 (reduc_uplus_v4sf): Likewise.
30345 (reduc_splus_v4sf): Likewise.
30346 (aarch64_addv<mode>): Likewise.
30347 (reduc_uplus_<mode>): Likewise.
30348 (reduc_splus_<mode>): Likewise.
30349 (aarch64_addvv2di): Likewise.
30350 (reduc_uplus_v2di): Likewise.
30351 (reduc_splus_v2di): Likewise.
30352 (aarch64_addvv2si): Likewise.
30353 (reduc_uplus_v2si): Likewise.
30354 (reduc_splus_v2si): Likewise.
30355 (reduc_<sur>plus_<mode>): New.
30356 (reduc_<sur>plus_v2di): Likewise.
30357 (reduc_<sur>plus_v2si): Likewise.
30358 (reduc_<sur>plus_v4sf): Likewise.
30359 (aarch64_addpv4sf): Likewise.
30360 * config/aarch64/arm_neon.h
30361 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30362 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30363 add UNSPEC_SADDV, UNSPEC_UADDV.
30365 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30367 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30369 * config/aarch64/arm_neon.h
30370 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30372 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30374 * config/aarch64/aarch64-builtins
30375 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30377 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30379 * config/aarch64/aarch64-simd-builtins.def
30380 (reduc_smax_): New.
30381 (reduc_smin_): Likewise.
30382 (reduc_umax_): Likewise.
30383 (reduc_umin_): Likewise.
30384 (reduc_smax_nan_): Likewise.
30385 (reduc_smin_nan_): Likewise.
30388 (smax): Update for V2SF, V4SF and V2DF modes.
30391 (smin_nan): Likewise.
30392 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30393 (<su><maxmin><mode>3): ...This, refactor.
30394 (s<maxmin><mode>3): New.
30395 (<maxmin_uns><mode>3): Likewise.
30396 (reduc_<maxmin_uns>_<mode>): Refactor.
30397 (reduc_<maxmin_uns>_v4sf): Likewise.
30398 (reduc_<maxmin_uns>_v2si): Likewise.
30399 (aarch64_<fmaxmin><mode>: Remove.
30400 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30402 (vmin<q>_f<32,64>): Likewise.
30403 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30405 (su): Add mappings for smax, smin, umax, umin.
30407 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30408 (FMAXMIN): Rename as...
30409 (FMAXMIN_UNS): ...This.
30411 (fmaxminv): Likewise.
30412 (fmaxmin): Likewise.
30414 (maxmin_uns_op): Likewise.
30416 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30418 * config/aarch64/arm_neon.h
30419 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30420 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30421 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30423 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30425 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30426 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30428 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30430 * config/aarch64/aarch64-simd.md
30431 (vcond<mode>_internal): Handle special cases for constant masks.
30432 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30433 (vcondu<mode><mode>): Likewise.
30434 (vcond<v_cmp_result><mode>): New.
30436 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30438 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30439 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30440 * config/aarch64/aarch64-simd-builtins.def
30441 (cmeq): Update to BUILTIN_VALLDI.
30446 * config/aarch64/arm_neon.h
30447 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30448 to builtins or C as appropriate.
30450 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30452 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30454 (cmhi): Rename to...
30456 * config/aarch64/aarch64-simd.md
30457 (simd_mode): Add SF.
30458 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30459 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30460 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30461 (cstore<mode>_neg): ...This.
30462 * config/aarch64/iterators.md
30464 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30465 (COMPARISONS): New.
30466 (UCOMPARISONS): Likewise.
30467 (optab): Add missing comparisons.
30473 (VCMP_S): Likewise.
30474 (VCMP_U): Likewise.
30475 (V_cmp_result): Add DF, SF modes.
30476 (v_cmp_result): Likewise.
30478 (vmtype): Likewise.
30479 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30481 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30483 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30484 define_insn to define_insn_and_split.
30485 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30486 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30487 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30488 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30489 (thumb2_negscc): Likewise.
30491 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30493 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30495 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30497 * config/arm/thumb2.md: Remove trailing whitespaces.
30499 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30501 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30502 Use gen_int_mode rather than GEN_INT.
30504 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30506 * value-prof.c (stream_in_histogram_value): Remove the strayed
30509 2013-04-30 Richard Biener <rguenther@suse.de>
30511 PR middle-end/57122
30512 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30514 2013-04-30 Richard Biener <rguenther@suse.de>
30516 PR middle-end/57107
30517 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30519 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30521 PR rtl-optimization/56957
30522 PR rtl-optimization/57105
30523 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30524 variable. Use just INSN_UID for determining whether an insn
30525 should be only disconnected from the insn stream.
30526 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30528 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30530 PR tree-optimization/57104
30531 * tsan.c (instrument_expr): Don't instrument accesses to
30532 DECL_HARD_REGISTER VAR_DECLs.
30534 2013-04-30 Richard Biener <rguenther@suse.de>
30536 * function.h (loops_for_fn): New inline function.
30537 (set_loops_for_fn): Likewise.
30538 * cfgloop.h (place_new_loop): Add struct function parameter.
30539 (get_loop): Likewise.
30540 (get_loops): Likewise.
30541 (number_of_loops): Likewise.
30542 (fel_next): Adjust.
30543 (fel_init): Likewise.
30544 * cfg.c (get_loop_copy): Adjust.
30545 * cfgloop.c (flow_loops_dump): Likewise.
30546 (record_loop_exits): Likewise.
30547 (verify_loop_structure): Likewise.
30548 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30549 (estimate_reg_pressure_cost): Likewise.
30550 (mark_loop_exit_edges): Likewise.
30551 * cfgloopmanip.c (place_new_loop): Likewise.
30552 (add_loop): Likewise.
30553 (duplicate_loop): Likewise.
30554 * graph.c (draw_cfg_nodes): Likewise.
30555 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30556 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30557 (extract_affine_chrec): Likewise.
30558 (build_scop_iteration_domain): Likewise.
30559 * graphite.c (graphite_initialize): Likewise.
30560 * ira-build.c (create_loop_tree_nodes): Likewise.
30561 (more_one_region_p): Likewise.
30562 (rebuild_regno_allocno_maps): Likewise.
30563 (mark_loops_for_removal): Likewise.
30564 (mark_all_loops_for_removal): Likewise.
30565 (remove_unnecessary_regions): Likewise.
30566 (ira_build): Likewise.
30567 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30568 * loop-init.c (fix_loop_structure): Likewise.
30569 (gate_rtl_move_loop_invariants): Likewise.
30570 (gate_rtl_unswitch): Likewise.
30571 (gate_rtl_unroll_and_peel_loops): Likewise.
30572 (rtl_doloop): Likewise.
30573 * lto-streamer-in.c (input_cfg): Likewise.
30574 * lto-streamer-out.c (output_cfg): Likewise.
30575 * modulo-sched.c (sms_schedule): Likewise.
30576 * predict.c (tree_estimate_probability): Likewise.
30577 (tree_estimate_probability_driver): Likewise.
30578 (estimate_loops): Likewise.
30579 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30580 (move_sese_region_to_fn): Likewise.
30581 (debug_loop_num): Likewise.
30582 * tree-chrec.c (chrec_evaluate): Likewise.
30583 (hide_evolution_in_other_loops_than_loop): Likewise.
30584 (chrec_component_in_loop_num): Likewise.
30585 (reset_evolution_in_loop): Likewise.
30586 (evolution_function_is_invariant_rec_p): Likewise.
30587 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30588 * tree-inline.c (copy_loops): Likewise.
30589 (copy_cfg_body): Likewise.
30590 (tree_function_versioning): Likewise.
30591 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30592 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30594 (add_to_evolution_1): Likewise.
30595 (scev_const_prop): Likewise.
30596 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30597 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30598 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30599 (tree_ssa_lim_initialize): Likewise.
30600 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30601 (verify_loop_closed_ssa): Likewise.
30602 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30603 (tree_ssa_loop_im): Likewise.
30604 (tree_ssa_loop_unswitch): Likewise.
30605 (tree_vectorize): Likewise.
30606 (check_data_deps): Likewise.
30607 (tree_ssa_loop_ivcanon): Likewise.
30608 (tree_ssa_loop_bounds): Likewise.
30609 (tree_complete_unroll): Likewise.
30610 (tree_complete_unroll_inner): Likewise.
30611 (tree_parallelize_loops): Likewise.
30612 (tree_ssa_loop_prefetch): Likewise.
30613 (tree_ssa_loop_ivopts): Likewise.
30614 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30615 * tree-vectorizer.c (vectorize_loops): Likewise.
30617 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30619 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30620 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30621 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30622 with EABI_LINK_SPEC.
30624 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30627 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30630 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30633 * lra-constraints.c (process_alt_operands): Discourage a bit more
30634 using memory for pseudos. Print cost dump for alternatives.
30635 Modify cost values for conflicts with early clobbers.
30636 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30638 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30641 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30643 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30645 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30646 from/to S register.
30647 (movdi_aarch64): Support LDR/STR from/to D register.
30649 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30651 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30652 or higher by default.
30654 2013-04-29 Richard Biener <rguenther@suse.de>
30656 PR middle-end/57075
30657 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30658 even if not adding abnormal edges for calls that can make
30661 2013-04-29 Richard Biener <rguenther@suse.de>
30663 PR middle-end/57103
30664 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30666 (move_stmt_r): Remove redundant checking.
30668 2013-04-29 Teresa Johnson <tejohnson@google.com>
30671 * basic-block.h (apply_scale): New function.
30672 (apply_probability): Use apply_scale.
30673 * gimple-streamer-in.c (input_bb): Ditto.
30674 * lto-streamer-in.c (input_cfg): Ditto.
30675 * lto-cgraph.c (merge_profile_summaries): Ditto.
30676 * tree-optimize.c (execute_fixup_cfg): Ditto.
30677 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30678 (copy_edges_for_bb): Ditto.
30679 (copy_cfg_body): Ditto.
30681 2013-04-29 Tom de Vries <tom@codesourcery.com>
30683 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30684 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30685 (tail_merge_optimize): Handle current_loops == NULL.
30687 2013-04-26 Jeff Law <law@redhat.com>
30689 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30690 (simplify_cond_using_ranges): Generalize code to simplify
30691 COND_EXPRs where one argument is a constant and the other
30692 is an SSA_NAME created by an integral type conversion.
30694 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30696 * config/arm/arm.md (store_minmaxsi): Use only when
30697 optimize_insn_for_size_p.
30699 2013-04-29 Christian Bruel <christian.bruel@st.com>
30702 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30704 2013-04-29 Richard Biener <rguenther@suse.de>
30706 PR middle-end/57089
30707 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30708 loop tree make sure to schedule a fixup for the child as well.
30709 (expand_omp_for_generic): Properly add loops.
30710 (expand_omp_for_static_nochunk): Likewise.
30711 (expand_omp_for_static_chunk): Likewise.
30712 (expand_omp_for): For the degenerate case fixup loops.
30713 (expand_omp_sections): Fix default bb placement in loops.
30714 (expand_omp_atomic_pipeline): Properly add loops.
30716 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30718 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30720 2013-04-29 Tom de Vries <tom@codesourcery.com>
30722 * tree-ssa-tail-merge.c: Update header comment.
30724 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30726 * config/aarch64/arm_neon.h
30727 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30728 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30729 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30730 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30731 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30732 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30733 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30734 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30736 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30738 * config/aarch64/aarch64-simd.md
30739 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30740 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30741 fix_trunc, fixuns_trunc.
30742 (ftrunc<VDQF:mode>2): New.
30743 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30744 (fix_trunc_optab): New.
30746 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30748 * config/aarch64/aarch64-builtins.c
30749 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30750 iceilf, lround, iroundf.
30752 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30755 * config/i386/i386.h (enum ix86_tune_indices)
30756 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30757 New, split from X86_TUNE_INTER_UNIT_MOVES.
30758 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30759 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30760 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30761 (TARGET_INTER_UNIT_MOVES): Remove.
30762 * config/i386/i386.c (initial_ix86_tune_features): Update.
30763 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30764 (ix86_expand_convert_uns_didf_sse): Use
30765 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30766 (ix86_expand_vector_init_one_nonzero): Ditto.
30767 (ix86_expand_vector_init_interleave): Ditto.
30768 (inline_secondary_memory_needed): Return true for moves from SSE class
30769 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30770 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30771 * config/i386/constraints.md (Yi, Ym): Depend on
30772 TARGET_INTER_UNIT_MOVES_TO_VEC.
30773 (Yj, Yn): New constraints.
30774 * config/i386/i386.md (*movdi_internal): Change constraints of
30775 operand 1 from Yi to Yj and from Ym to Yn.
30776 (*movsi_internal): Ditto.
30777 (*movdf_internal): Ditto.
30778 (*movsf_internal): Ditto.
30779 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30780 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30781 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30782 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30783 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30784 * config/i386/sse.md (movdi_to_sse): Ditto.
30785 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30786 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30787 TARGET_INTER_UNIT_MOVES.
30788 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30789 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30790 instead of TARGET_INTER_UNIT_MOVES.
30791 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30792 operand 1 from Yi to Yj and from Ym to Yn.
30794 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30796 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30797 (float_truncate_hi_): Likewise.
30798 (float_extend_lo_): Likewise.
30799 (float_truncate_lo_): Likewise.
30800 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30801 (aarch64_float_extend_lo_v2df): Likewise.
30802 (vec_unpacks_hi_v4sf): Likewise.
30803 (aarch64_float_truncate_lo_v2sf): Likewise.
30804 (aarch64_float_truncate_hi_v4sf): Likewise.
30805 (vec_pack_trunc_v2df): Likewise.
30806 (vec_pack_trunc_df): Likewise.
30808 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30810 * config/aarch64/aarch64-builtins.c
30811 (aarch64_fold_builtin): Fold float conversions.
30812 * config/aarch64/aarch64-simd-builtins.def
30813 (floatv2si, floatv4si, floatv2di): New.
30814 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30815 * config/aarch64/aarch64-simd.md
30816 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30817 * config/aarch64/iterators.md (FLOATUORS): New.
30818 (optab): Add float, floatuns.
30819 (su_optab): Likewise.
30821 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30823 * config/aarch64/aarch64-builtins.c
30824 (aarch64_builtin_vectorized_function): Use new names for
30826 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30827 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30828 (fcvtzu): Split as...
30829 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30830 (fcvtas): Split as...
30831 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30832 (fcvtau): Split as...
30833 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30834 (fcvtps): Split as...
30835 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30836 (fcvtpu): Split as...
30837 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30838 (fcvtms): Split as...
30839 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30840 (fcvtmu): Split as...
30841 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30842 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30843 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30844 (lfrintnusf, lfrintnudf): Likewise.
30845 * config/aarch64/aarch64-simd.md
30846 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30848 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30849 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30850 (fcvt_pattern): Likewise.
30852 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30854 * config/aarch64/aarch64-simd.md
30855 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30856 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30858 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30860 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30861 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30862 (vrnd<a,m,n,p>_f32): Implement using builtins.
30863 (vrnd<i,x><q>_f<32, 64>): New.
30865 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30867 * config/aarch64/aarch64-builtins.c
30868 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30869 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30870 (frintz): Rename to...
30872 (frintp): Rename to...
30874 (frintm): Rename to...
30876 (frinti): Rename to...
30877 (nearbyint): ...this.
30878 (frintx): Rename to...
30880 (frinta): Rename to...
30882 * config/aarch64/aarch64-simd.md
30883 (aarch64_frint<frint_suffix><mode>): Delete.
30884 (<frint_pattern><mode>2): Convert to insn.
30885 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30886 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30887 (frint_pattern): Likewise.
30888 (frint_suffix): Likewise.
30890 2013-04-29 Richard Biener <rguenther@suse.de>
30892 PR tree-optimization/57081
30893 * loop-init.c: Include tree-flow.h.
30894 (loop_optimizer_finalize): Free number of iteration estimates.
30895 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30897 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30899 PR tree-optimization/57083
30900 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30901 non-singleton shift count range, zero extend low_bound for uns case.
30903 * config/i386/predicates.md (general_vector_operand): New predicate.
30904 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30905 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30906 if they aren't nonimmediate operands. If their original values
30907 satisfy const_vector_equal_evenodd_p, don't shift them.
30908 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30909 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30910 if not nonimmediate_operand.
30911 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30912 instead of register_operand.
30913 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30915 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30917 * stor-layout.c (finalize_size_functions): Allocate a structure and
30918 reset cfun before dumping the functions.
30920 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30922 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30925 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30926 use xop_pmacsdqh if uns_p.
30927 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30928 the immediate rotate count.
30930 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30932 * rtl.h (struct rtx_def): Add comment for field jump.
30933 (LRA_SUBREG_P): New macro.
30934 * recog.c (register_operand): Check LRA_SUBREG_P.
30935 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30937 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30938 (lra_final_code_change): Skip subreg change for operators.
30939 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30940 if there are no operand changes.
30941 * lra-constraints.c (curr_insn_set): New.
30942 (match_reload): Set LRA_SUBREG_P.
30943 (emit_spill_move): Ditto.
30944 (check_and_process_move): Use curr_insn_set. Process only single
30945 set insns. Don't initialize sec_mem_p and change_p.
30946 (simplify_operand_subreg): Use LRA_SUBREG_P.
30947 (reg_in_class_p): New function.
30948 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30949 of #ifdef. Add code to remove cycling.
30950 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30951 non-null disp. Reload inner instead of disp when base and index
30952 are null. Try to put lo_sum into register.
30953 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30954 (check_and_process_move): Move code for move cost check to
30955 simple_move_p. Remove equiv_substitution.
30956 (simple_move_p): New function.
30957 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30958 curr_insn_set. Call check_and_process_move only for single set
30959 insns. Use the new function. Move call of check_and_process_move
30960 after operand equiv substitution and address process.
30962 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30965 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30966 with nonlocal goto receivers or returns twice calls, ignore
30967 unininitialized values from abnormal edges to nl goto receiver
30968 or returns twice call.
30970 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30972 PR tree-optimization/57051
30973 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30974 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30977 2013-04-26 Richard Biener <rguenther@suse.de>
30979 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30980 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30981 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30982 (fixup_loop_arrays_after_move): New function.
30983 (move_sese_region_to_fn): Properly outline the loop tree parts
30984 of the SESE region.
30986 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30988 * config/i386/i386.md (type, unit): Fix long lines.
30990 2013-04-26 Richard Biener <rguenther@suse.de>
30992 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30993 (lto-streamer-out.o): Likewise.
30994 * cfgloop.c (init_loops_structure): Export, add struct function
30995 argument and adjust.
30996 (flow_loops_find): Adjust.
30997 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30998 (init_loops_structure): Declare.
30999 * lto-streamer-in.c: Include cfgloop.h.
31000 (input_cfg): Input the loop tree.
31001 * lto-streamer-out.c: Include cfgloop.h.
31002 (output_cfg): Output the loop tree.
31003 (output_struct_function_base): Do not drop PROP_loops.
31005 2013-03-26 Richard Biener <rguenther@suse.de>
31007 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31008 (pass_build_cfg): Provide PROP_loops.
31009 (move_sese_region_to_fn): Remove loops that are outlined into fn
31011 * tree-inline.c: Include cfgloop.h.
31012 (initialize_cfun): Do not drop PROP_loops.
31013 (copy_loops): New function.
31014 (copy_cfg_body): Copy loop structure.
31015 (tree_function_versioning): Initialize destination loop tree.
31016 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31017 (pass_parallelize_loops): Do IL verification.
31018 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31019 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31020 the CFG make sure we fixup loops as well.
31021 * tree-ssa-tail-merge.c: Include cfgloop.h.
31022 (replace_block_by): When merging loop latches mark loops for fixup.
31023 * lto-streamer-out.c (output_struct_function_base): Drop
31024 PROP_loops for now.
31025 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31026 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31027 * ipa-split.c: Include cfgloop.h.
31028 (split_function): Add the new return block to the loop tree root.
31029 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31030 whether we have removed the forwarder block.
31031 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31032 * cfgloop.h (place_new_loop): Declare.
31033 * cfgloopmanip.c (place_new_loop): Export.
31034 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31035 (tree-switch-conversion.o): Likewise.
31036 (tree-complex.o): Likewise.
31037 (tree-inline.o): Likewise.
31038 (tree-ssa-tailmerge.o): Likewise.
31039 (ipa-split.o): Likewise.
31040 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31041 (tree-ssa-copy.o): Likewise.
31042 * tree-switch-conversion.c: Include cfgloop.h
31043 (process_switch): If we emit a bit-test cascade, schedule loops
31045 * tree-complex.c: Include cfgloop.h.
31046 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31047 * asan.c: Include cfgloop.h.
31048 (create_cond_insert_point): Properly add new basic-blocks to
31049 loops, schedule loop fixup.
31050 * cfgloop.c (verify_loop_structure): Check that looks are not
31052 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31054 (expand_omp_for_generic): Likewise.
31055 (expand_omp_sections): Likewise.
31056 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31057 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31058 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31059 is initialized, not when loops are present.
31060 * tree-parloops.c (parallelize_loops): Remove checking here.
31061 * passes.c (init_optimization_passes): Schedule a copy-propagation
31062 pass before complete unrolling of inner loops.
31064 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31066 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31067 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31068 (colorize_init): Add argument to _WIN32 version.
31069 * toplev.c: Include diagnostic-color.h.
31070 (process_options): Default to -fdiagnostics-color=auto if
31071 GCC_COLORS env var is in the environment.
31072 * common.opt (fdiagnostics-color=): Add Var and Init.
31073 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31074 env var is in the environment, the default is auto rather than never.
31076 * diagnostic.h (file_name_as_prefix): Add context argument.
31077 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31078 the string as locus.
31079 * langhooks.c (lhd_print_error_function): Adjust caller.
31081 2013-04-25 Lawrence Crowl <crowl@google.com>
31083 * var-tracking.c (shared_hash_def::htab):
31084 Change type to hash_table. Update dependent calls and types.
31086 2013-04-25 Lawrence Crowl <crowl@google.com>
31088 * Makefile.in: Update as needed below.
31090 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31091 Move declaration to after the type's method definitons.
31093 * attribs.c (htab_t scoped_attributes::attribute_hash):
31094 Change type to hash_table. Update dependent calls and types.
31096 * bitmap.c (htab_t bitmap_desc_hash):
31097 Change type to hash_table. Update dependent calls and types.
31099 * cselib.c (htab_t cselib_hash_table):
31100 Change type to hash_table. Update dependent calls and types.
31102 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31103 (hash_string_slot_node): Move implementation into lto-streamer.h
31104 struct string_slot_hasher.
31105 (eq_string_slot_node): Likewise.
31107 * data-streamer-out.c: Update output_block::string_hash_table
31108 dependent calls and types.
31110 * dwarf2cfi.c (htab_t trace_index):
31111 Change type to hash_table. Update dependent calls and types.
31113 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31114 Change type to hash_table. Update dependent calls and types.
31115 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31116 (htab_t optimize_external_refs::map): Likewise.
31117 (htab_t output_comp_unit::extern_map): Likewise.
31118 (htab_t output_comdat_type_unit::extern_map): Likewise.
31119 (htab_t output_macinfo::macinfo_htab): Likewise.
31120 (htab_t optimize_location_lists::htab): Likewise.
31121 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31123 * except.c (htab_t ehspec_hash_type):
31124 Change type to hash_table. Update dependent calls and types.
31125 (assign_filter_values::ttypes): Likewise.
31126 (assign_filter_values::ehspec): Likewise.
31127 (sjlj_assign_call_site_values::ar_hash): Likewise.
31128 (convert_to_eh_region_ranges::ar_hash): Likewise.
31130 * gcse.c (htab_t pre_ldst_table):
31131 Change type to hash_table. Update dependent calls and types.
31133 * ggc-common.c (htab_t saving_htab):
31134 Change type to hash_table. Update dependent calls and types.
31135 (htab_t loc_hash): Likewise.
31136 (htab_t ptr_hash): Likewise.
31137 (call_count): Rename ggc_call_count.
31138 (call_alloc): Rename ggc_call_alloc.
31139 (loc_descriptor): Rename make_loc_descriptor.
31140 (add_statistics): Rename ggc_add_statistics.
31142 * ggc-common.c (saving_htab):
31143 Change type to hash_table. Update dependent calls and types.
31145 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31146 (push_gimplify_context): Likewise.
31147 (pop_gimplify_context): Likewise.
31148 (struct gimple_temp_hash_elt): Added.
31149 (struct gimplify_hasher): Likewise.
31150 (struct gimplify_ctx.temp_htab):
31151 Change type to hash_table. Update dependent calls and types.
31153 * gimple-fold.c: Include gimplify-ctx.h.
31155 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31156 Change type to hash_table. Update dependent calls and types.
31157 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31158 avoid potential global name collision.
31160 * gimplify.c: Include gimplify-ctx.h.
31161 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31162 (htab_t gimplify_ctx::temp_htab):
31163 Update dependent calls and types for new type hash_table.
31164 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31165 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31167 * gimplify-ctx.h: New.
31168 (struct gimple_temp_hash_elt): Move from gimplify.c.
31169 (class gimplify_hasher): New.
31170 (struct gimplify_ctx): Move from gimple.h.
31171 (htab_t gimplify_ctx::temp_htab):
31172 Change type to hash_table. Update dependent calls and types.
31174 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31175 (htab_t ivs_params::newivs_index):
31176 Change type to hash_table. Update dependent calls and types.
31177 (htab_t ivs_params::params_index): Likewise.
31178 (htab_t print_generated_program::params_index): Likewise.
31179 (htab_t gloog::newivs_index): Likewise.
31180 (htab_t gloog::params_index): Likewise.
31182 * graphite.c: Include graphite-htab.h.
31183 4htab_t graphite_transform_loops::bb_pbb_mapping):
31184 Change type to hash_table. Update dependent calls and types.
31186 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31187 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31188 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31190 * graphite-dependences.c: Include graphite-htab.h.
31191 (loop_is_parallel_p): Change hash table type of parameter.
31193 * graphite-htab.h: New.
31194 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31195 (extern find_pbb_via_hash): Move from graphite-poly.h.
31196 (extern loop_is_parallel_p): Move from graphite-poly.h.
31197 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31199 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31200 (extern loop_is_parallel_p): Move to graphite-htab.h.
31201 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31203 * haifa-sched.c (htab_t delay_htab):
31204 Change type to hash_table. Update dependent calls and types.
31205 (htab_t delay_htab_i2): Likewise.
31207 * ira-color.c (htab_t allocno_hard_regs_htab):
31208 Change type to hash_table. Update dependent calls and types.
31210 * ira-costs.c (htab_t cost_classes_htab):
31211 Change type to hash_table. Update dependent calls and types.
31213 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31214 Change type to hash_table. Update dependent calls and types.
31216 * loop-iv.c (htab_t bivs):
31217 Change type to hash_table. Update dependent calls and types.
31219 * loop-unroll.c (htab_t opt_info::insns_to_split):
31220 Change type to hash_table. Update dependent calls and types.
31221 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31223 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31224 (struct string_slot_hasher): New.
31225 (htab_t output_block::string_hash_table):
31226 Change type to hash_table. Update dependent calls and types.
31228 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31229 (htab_t file_name_hash_table):
31230 Change type to hash_table. Update dependent calls and types.
31232 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31235 * lto-streamer.c (htab_t tree_htab):
31236 Change type to hash_table. Update dependent calls and types.
31238 * omp-low.c: Include gimplify-ctx.h.
31240 * passes.c (htab_t name_to_pass_map):
31241 Change type to hash_table. Update dependent calls and types.
31242 (pass_traverse): Rename to passes_pass_traverse.
31244 * plugin.c (htab_t event_tab):
31245 Change type to hash_table. Update dependent calls and types.
31247 * postreload-gcse.c (htab_t expr_table):
31248 Change type to hash_table. Update dependent calls and types.
31249 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31251 * sese.c (debug_rename_map_1): Make extern.
31252 (htab_t copy_bb_and_scalar_dependences::rename_map):
31253 Change type to hash_table. Update dependent calls and types.
31255 * sese.h (extern debug_rename_map): Move to .c file.
31257 * store-motion.c (htab_t store_motion_mems_table):
31258 Change type to hash_table. Update dependent calls and types.
31260 * trans-mem.c (htab_t tm_new_mem_hash):
31261 Change type to hash_table. Update dependent calls and types.
31263 * tree-browser.c (htab_t TB_up_ht):
31264 Change type to hash_table. Update dependent calls and types.
31266 * tree-cfg.c (htab_t discriminator_per_locus):
31267 Change type to hash_table. Update dependent calls and types.
31269 * tree-complex.c: Include tree-hasher.h
31270 (htab_t complex_variable_components):
31271 Change type to hash_table. Update dependent calls and types.
31273 * tree-eh.c (htab_t finally_tree):
31274 Change type to hash_table. Update dependent calls and types.
31276 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31277 struct int_tree_hasher.
31278 (extern int_tree_map_eq): Likewise.
31279 (uid_decl_map_hash): Removed.
31280 (extern decl_tree_map_eq): Likewise.
31282 * tree-hasher.h: New.
31283 (struct int_tree_hasher): New.
31284 (typedef int_tree_htab_type): New.
31286 * tree-inline.c: Include gimplify-ctx.h.
31288 * tree-mudflap.c: Include gimplify-ctx.h.
31290 * tree-parloops.c: Include tree-hasher.h.
31291 (htab_t eliminate_local_variables_stmt::decl_address):
31292 Change type to hash_table. Update dependent calls and types.
31293 (htab_t separate_decls_in_region::decl_copies): Likewise.
31295 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31296 Change type to hash_table. Update dependent calls and types.
31298 * tree-sra.c (candidates):
31299 Change type to hash_table. Update dependent calls and types.
31301 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31303 (int_tree_map_hash): Likewise.
31305 * tree-ssa-dom.c (htab_t avail_exprs):
31306 Change type to hash_table. Update dependent calls and types.
31308 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31309 Change type to hash_table. Update dependent calls and types.
31311 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31312 Change type to hash_table. Update dependent calls and types.
31314 * tree-ssa-phiopt.c (seen_ssa_names):
31315 Change type to hash_table. Update dependent calls and types.
31317 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31318 Change type to hash_table. Update dependent calls and types.
31320 * tree-ssa-uncprop.c (equiv):
31321 Change type to hash_table. Update dependent calls and types.
31323 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31325 PR rtl-optimization/57003
31326 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31327 call note_stores with kill_clobbered_value callback again after
31328 killing regs_invalidated_by_call.
31330 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31332 * config/aarch64/aarch64-simd.md
31333 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31334 (aarch64_simd_bsl<mode>): Likewise.
31335 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31337 2013-04-25 Marek Polacek <polacek@redhat.com>
31339 PR tree-optimization/57066
31340 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31342 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31344 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31346 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31348 * config/aarch64/aarch64-builtins.c
31349 (aarch64_fold_builtin): New.
31350 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31351 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31352 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31353 * config/aarch64/arm_neon.h
31354 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31356 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31357 Tejas Belagod <tejas.belagod@arm.com>
31359 * config/aarch64/aarch64-builtins.c
31360 (aarch64_gimple_fold_builtin): New.
31361 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31362 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31363 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31364 (addvv4sf): Update.
31365 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31367 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31369 * config/aarch64/aarch64.md
31370 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31372 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31374 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31375 (*ngcsi_uxtw): New pattern.
31377 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31378 Julian Brown <julian@codesourcery.com>
31380 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31381 (TB_DREG): Add T_V4HF.
31382 (v4hf_UP): New macro.
31383 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31384 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31385 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31387 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31388 (arm_vector_mode_supported_p): Handle V4HF.
31389 (arm_mangle_map): Handle V4HFmode.
31390 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31391 * config/arm/arm_neon_builtins.def: Add entries for
31392 vcvtv4hfv4sf, vcvtv4sfv4hf.
31393 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31394 (neon_vcvtv4hfv4sf): Likewise.
31395 * config/arm/neon-gen.ml: Handle half-precision floating point
31397 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31398 * config/arm/arm_neon.h: Regenerate.
31399 * config/arm/neon.ml (type elts): Add F16.
31400 (type vectype): Add T_float16x4, T_floatHF.
31401 (type vecmode): Add V4HF.
31402 (type features): Add Requires_FP_bit feature.
31403 (elt_width): Handle F16.
31404 (elt_class): Likewise.
31405 (elt_of_class_width): Likewise.
31406 (mode_of_elt): Refactor.
31407 (type_for_elt): Handle F16, fix error messages.
31408 (vectype_size): Handle T_float16x4.
31409 (vcvt_sh): New function.
31410 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31411 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31412 (string_of_mode): Handle V4HF.
31413 * doc/arm-neon-intrinsics.texi: Regenerate.
31415 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31417 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31418 format specifier in 'X' case.
31420 2013-04-25 Alan Modra <amodra@gmail.com>
31423 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31424 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31425 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31426 Repeat for many other rotate/shift and mask patterns using subregs.
31427 Name lshiftrt insns.
31428 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31429 on WORDS_BIG_ENDIAN.
31431 2013-04-25 Alan Modra <amodra@gmail.com>
31433 * config.gcc: Support little-endian powerpc-linux targets.
31434 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31435 (LINK_OS_LINUX_SPEC): Define.
31436 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31437 Preserve MASK_LITTLE_ENDIAN.
31438 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31439 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31440 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31441 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31442 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31443 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31444 Correct fp word order for little-endian. Don't shift toc entries
31445 smaller than a word for little-endian.
31446 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31447 (bswapdi2 splits): Correct low-part subreg for little-endian.
31448 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31449 low/high where such is correct only for be.
31450 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31451 little-endian for -mcall-aixdesc.
31453 2013-04-25 Alan Modra <amodra@gmail.com>
31455 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31456 replace_equiv_address_nv.
31458 2013-04-25 Alan Modra <amodra@gmail.com>
31460 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31462 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31465 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31466 * rtl.h (struct rtx_def): ...
31468 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31470 PR rtl-optimizations/57046
31471 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31472 for multi-reg splits.
31474 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31476 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31478 2013-04-24 Sterling Augustine <saugustine@google.com>
31480 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31481 (comp_dir_string, debug_str_dwo_section): New.
31482 (DEBUG_STR_DWO_SECTION): Rename to ...
31483 (DEBUG_DWO_STR_SECTION): ... this.
31484 (DEBUG_NORM_STR_SECTION): Delete.
31485 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31486 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31487 (find_AT_string): Move most logic to ...
31488 (find_AT_string_in_table): ... here. New.
31489 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31490 add_skeleton_AT_string. Delete logic.
31491 (output_skeleton_debug_sections): Remove call to
31492 add_top_level_skeleton_die_attrs.
31493 (add_comp_dir_attribute): Move logic to comp_dir_string.
31494 (dwarf2out_init): Initialize debug_str_dwo_section.
31495 (output_indirect_string): Call find_string_form.
31496 (output_indirect_strings): Rewrite.
31497 (prune_unused_types): Empty skeleton_debug_str_hash.
31498 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31499 (dwarf2out_finish): Call output_indirect_strings.
31501 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31503 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31505 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31507 * rtl.h (struct rtx_def): Add comment for field jump.
31508 (LRA_SUBREG_P): New macro.
31509 * recog.c (register_operand): Check LRA_SUBREG_P.
31510 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31512 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31513 (lra_final_code_change): Skip subreg change for operators.
31514 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31515 if there are no operand changes.
31516 * lra-constraints.c (curr_insn_set): New.
31517 (match_reload): Set LRA_SUBREG_P.
31518 (emit_spill_move): Ditto.
31519 (check_and_process_move): Use curr_insn_set. Process only single
31520 set insns. Don't initialize sec_mem_p and change_p.
31521 (simplify_operand_subreg): Use LRA_SUBREG_P.
31522 (reg_in_class_p): New function.
31523 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31524 of #ifdef. Add code to remove cycling.
31525 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31526 non-null disp. Reload inner instead of disp when base and index
31527 are null. Try to put lo_sum into register.
31528 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31529 (check_and_process_move): Move code for move cost check to
31530 simple_move_p. Remove equiv_substitution.
31531 (simple_move_p): New function.
31532 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31533 curr_insn_set. Call check_and_process_move only for single set
31534 insns. Use the new function. Move call of check_and_process_move
31535 after operand equiv substitution and address process.
31537 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31539 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31540 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31541 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31543 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31545 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31547 2013-04-24 Marek Polacek <polacek@redhat.com>
31549 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31550 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31551 (select_loops_exit_conditions): Likewise.
31552 (number_of_iterations_for_all_loops): Likewise.
31553 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31554 (scev_analysis): Likewise.
31556 2013-04-02 Catherine Moore <clm@codesourcery.com>
31557 Chao-ying Fu <fu@mips.com>
31559 * config/mips/micromips.md (jraddiusp): New pattern.
31560 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31561 instruction if possible.
31563 2013-04-24 Alan Modra <amodra@gmail.com>
31565 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31567 2013-04-24 Julian Brown <julian@codesourcery.com>
31568 Chung-Lin Tang <cltang@codesourcery.com>
31570 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31571 dependency behavior in enumeration type DIE generation. Add TODO note
31572 to comments about future DW_FORM_sdata/udata re-work of related code.
31574 2013-04-23 Lawrence Crowl <crowl@google.com>
31576 * Makefile.in: Update as needed below.
31578 * hash-table.h (class hash_table):
31579 Correct many methods with parameter types compare_type to the correct
31580 value_type. (Correct code was unlikely to notice the change.)
31581 (hash_table::elements_with_deleted) New.
31582 (class hashtable::iterator): New.
31583 (hashtable::begin()): New.
31584 (hashtable::end()): New.
31585 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31587 * statistics.c (statistics_hashes):
31588 Change type to hash_table. Update dependent calls and types.
31590 * tree-into-ssa.c (var_infos):
31591 Change type to hash_table. Update dependent calls and types.
31593 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31594 Change type to hash_table. Update dependent calls and types.
31596 * tree-ssa-loop-im.c (struct mem_ref.refs):
31597 Change type to hash_table. Update dependent calls and types.
31599 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31600 Change type to hash_table. Update dependent calls and types.
31602 * tree-ssa-sccvn.c (vn_tables_s::nary):
31603 Change type to hash_table. Update dependent calls and types.
31604 (vn_tables_s::phis): Likewise.
31605 (vn_tables_s::references): Likewise.
31607 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31608 (vn_reference_eq): Update parameter and return types.
31610 * tree-ssa-structalias.c (pointer_equiv_class_table):
31611 Change type to hash_table. Update dependent calls and types.
31612 (location_equiv_class_table): Likewise.
31614 * tree-vect-data-refs.c: Consequential changes for making
31615 peeling a hash_table.
31617 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31618 (destroy_loop_vec_info): Dependent hash_table update.
31620 * tree-vectorizer.h (peeling_htab):
31621 Change type to hash_table. Update dependent calls and types.
31623 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31625 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31626 to check the register content is equal or not.
31627 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31628 to assign register content record.
31629 * lra-eliminations.c (update_reg_eliminate): Use
31630 lra_update_reg_val_offset to update register content offset.
31631 * lra-int.h (struct lra_reg): Add offset member.
31632 (lra_reg_val_equal_p): New static inline function.
31633 (lra_update_reg_val_offset): New static inline function.
31634 (lra_assign_reg_val): New static inline function.
31635 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31636 to assign register content record.
31637 (initialize_lra_reg_info_element): Initial offset to zero.
31639 2013-04-23 Catherine Moore <clm@codesourcery.com>
31641 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31642 operands. Record compression.
31644 2013-04-23 Xinliang David Li <davidxl@google.com>
31646 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31648 2013-04-23 Richard Biener <rguenther@suse.de>
31650 PR middle-end/57036
31651 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31652 parameter, only add abnormal goto edges from the copied body
31653 if the call could perform abnormal gotos.
31654 (copy_cfg_body): Adjust.
31656 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31658 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31660 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31662 * coretypes.h (gimple_stmt_iterator): Add struct to make
31665 2013-04-23 Richard Biener <rguenther@suse.de>
31667 PR tree-optimization/57026
31668 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31669 from SSA names occuring in abnormal PHI nodes.
31671 2013-04-22 Andi Kleen <ak@linux.intel.com>
31673 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31675 2013-04-22 Andi Kleen <ak@linux.intel.com>
31677 * lto/lto.c (print_lto_report_1): Declare early.
31678 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31680 2013-04-22 Andi Kleen <ak@linux.intel.com>
31682 * common.opt (-flto-report-wpa): Add.
31683 * doc/invoke.texi (-flto-report-wpa): Add.
31684 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31687 2013-04-22 Xinliang David Li <davidxl@google.com>
31689 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31690 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31691 * Makefile.in: New dependency
31693 David Daney <ddaney.cavm@gmail.com>
31695 * configure.ac (gcc_cv_as_micromips_support): Use the
31696 --fatal-warnings option.
31697 * configure: Regenerate.
31699 2013-04-22 Marek Polacek <polacek@redhat.com>
31702 * tsan.c (instrument_expr): Don't instrument expression
31703 in case its size is zero.
31705 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31709 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31711 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31713 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31715 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31716 (gimple_stmt_iterator): New typedef.
31717 * gimple.h (gimple_stmt_iterator): Rename to...
31718 (gimple_stmt_iterator_d): ... This.
31719 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31720 trees be valid for GIMPLE and GENERIC.
31721 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31722 * gimple-fold.c (gimple_fold_call): Call target hook
31723 gimple_fold_builtin.
31724 * hooks.c (hook_bool_gsiptr_false): New.
31725 * hooks.h (hook_bool_gsiptr_false): New.
31726 * target.def (fold_stmt): New.
31727 * doc/tm.texi: Regenerate.
31729 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31732 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31733 a set sp if no stack realignment.
31735 2013-04-22 Nick Clifton <nickc@redhat.com>
31737 * config.gcc (tilegx-linux): Extend extra_objs rather than
31739 (tilepro-linux): Likewise.
31741 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31743 * config/aarch64/aarch64-builtins.c
31745 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31746 (VAR<1-12>): Add MAP parameter.
31747 (BUILTIN_*): Likewise.
31748 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31749 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31750 (aarch64_ushl_n<mode>): Likewise.
31751 (aarch64_sshr_n<mode>): Likewise.
31752 (aarch64_ushr_n<mode>): Likewise.
31753 (aarch64_<maxmin><mode>): Likewise.
31754 (aarch64_sqrt<mode>): Likewise.
31755 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31756 (vshr<q>_n_*): Likewise.
31758 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31760 * config/aarch64/aarch64-builtins.c
31761 (aarch64_simd_builtin_type_mode): Handle SF types.
31763 (BUILTIN_GPF): Define.
31764 (aarch64_init_simd_builtins): Handle SF types.
31765 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31766 (frecps): Likewise.
31767 (frecpx): Likewise.
31768 * config/aarch64/aarch64-simd.md
31769 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31770 (aarch64_frecpe<mode>): New.
31771 (aarch64_frecps<mode>): Likewise.
31772 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31773 (v8type): Add frecp<esx>.
31774 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31775 (aarch64_frecps<mode>): Likewise.
31776 * config/aarch64/iterators.md (FRECP): New.
31777 (frecp_suffix): Likewise.
31778 * config/aarch64/arm_neon.h
31779 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31781 2013-04-22 Christian Bruel <christian.bruel@st.com>
31784 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31785 (REG_CLASS_NAMES): Idem.
31786 (REG_CLASS_CONTENTS): Idem.
31787 (REGCLASS_HAS_FP_REG): Idem.
31788 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31789 (sh_conditional_register_usage): Idem.
31791 2013-04-21 Jeff Law <law@redhat.com>
31793 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31794 (ssa_forward_propagate_and_combine): Use it.
31796 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31798 * lra.c: Update the flow chart diagram.
31800 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31802 PR rtl-optimization/56847
31803 * lra-constraints.c (process_alt_operands): Discourage alternative
31804 with non-matche doffsettable memory constraint fro memory with
31807 2013-04-19 Richard Biener <rguenther@suse.de>
31809 PR tree-optimization/56982
31810 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31812 * gimplify.c (gimplify_call_expr): Notice special calls.
31813 (gimplify_modify_expr): Likewise.
31814 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31815 abnormal control flow receivers.
31816 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31817 in the same way as cfun->has_nonlocal_labels.
31818 (gimple_purge_dead_abnormal_call_edges): Likewise.
31819 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31820 receivers start a basic-block.
31822 2013-04-19 Richard Biener <rguenther@suse.de>
31824 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31826 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31827 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31828 (SLP_TREE_LOAD_PERMUTATION): Add.
31829 (vect_transform_slp_perm_load): Adjust prototype.
31830 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31831 (vect_free_slp_instance): Likewise.
31832 (vect_create_new_slp_node): Likewise.
31833 (vect_supported_slp_permutation_p): Remove.
31834 (vect_slp_rearrange_stmts): Adjust.
31835 (vect_supported_load_permutation_p): Likewise. Inline
31836 vect_supported_slp_permutation_p here.
31837 (vect_analyze_slp_instance): Compute load permutations per
31838 slp node instead of per instance.
31839 (vect_get_slp_defs): Adjust.
31840 (vect_transform_slp_perm_load): Likewise.
31841 (vect_schedule_slp_instance): Remove redundant code.
31842 (vect_schedule_slp): Remove hack for PR56270, add it ...
31843 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31844 CSE loads for SLP. Adjust.
31846 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31848 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31849 spelling in two comments.
31851 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31854 * config/arm/arm.c (load_multiple_sequence): Require SP
31855 as base register for loads if SP is in the register list.
31857 2013-04-19 Martin Jambor <mjambor@suse.cz>
31859 PR tree-optimization/56718
31860 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31861 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31862 and made public. Adjusted all callers.
31863 (ipa_intraprocedural_devirtualization): New function.
31864 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31865 (ipa_intraprocedural_devirtualization): Likewise.
31866 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31868 2013-04-19 Richard Biener <rguenther@suse.de>
31870 PR tree-optimization/57000
31871 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31873 2013-04-19 Terry Guo <terry.guo@arm.com>
31875 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31877 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31878 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31879 (cortex_m4_fmacs): Use new reservations.
31880 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31882 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31884 PR rtl-optimization/56999
31885 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31887 (lra_coalesce): Remove split_origin_bitmap and related code.
31888 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31889 ranges if necessary.
31891 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31893 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31895 (ix86_expand_call): Remove clobbered_registers array and use
31896 x86_64_ms_sysv_extra_clobbered_registers instead.
31897 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31899 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31901 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31902 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31903 (*call_value_rex64_ms_sysv): Ditto.
31905 2013-04-18 Cary Coutant <ccoutant@google.com>
31907 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31908 parent instead of die_mark.
31910 2013-04-18 Diego Novillo <dnovillo@google.com>
31912 * gimple.c (create_gimple_tmp): New.
31913 (get_expr_type): New.
31914 (build_assign): New.
31915 (build_type_cast): New.
31916 * gimple.h (enum ssa_mode): Define.
31917 (gimple_seq_set_location): New.
31918 * asan.c (build_check_stmt): Change some gimple_build_* calls
31919 to use build_assign and build_type_cast.
31921 2013-04-18 Richard Biener <rguenther@suse.de>
31923 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31924 handle negative step. Remove redundant checks.
31925 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31926 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31927 for negative step and grouped loads fail to vectorize.
31929 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31931 * emit-rtl.c (reset_insn_used_flags): New function.
31932 (reset_all_used_flags): Use it.
31933 (verify_insn_sharing): New function.
31934 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31936 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31938 PR tree-optimization/56984
31939 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31940 and (x >> M) >= N don't register any assertion if N << M is the
31943 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31945 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31946 do not delete_insn insns that have not yet been emitted, only
31947 unlink them with remove_insn.
31948 * df-scan.c (df_insn_delete): Revert r197492.
31950 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31952 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31953 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31955 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31957 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31958 define_insn_and_split.
31959 (and_scc,ior_scc,negscc): Likewise.
31960 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31962 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31964 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31965 can benefit from using a sequence of LDRD instructions in epilogue
31966 instead of a single LDM instruction.
31968 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31971 * doc/extend.texi: Fix typo.
31973 2013-04-17 Richard Biener <rguenther@suse.de>
31975 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31976 (vect_build_slp_tree): ... here.
31977 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31978 match. Remove special-casing of mismatched complex loads.
31979 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31980 re-try the match with swapped commutative operands.
31981 (vect_supported_load_permutation_p): Remove special-casing of
31982 mismatched complex loads.
31983 (vect_analyze_slp_instance): Adjust.
31985 2013-04-17 Richard Biener <rguenther@suse.de>
31987 PR rtl-optimization/56921
31988 * cfgloop.h (struct loop): Add simple_loop_desc member.
31989 (struct niter_desc): Mark with GTY(()).
31990 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31991 * loop-iv.c (get_simple_loop_desc): Likewise.
31992 (free_simple_loop_desc): Likewise.
31995 2013-04-16 Richard Biener <rguenther@suse.de>
31997 PR rtl-optimization/56921
31998 * loop-init.c (pass_rtl_move_loop_invariants): Add
31999 TODO_do_not_ggc_collect to todo_flags_finish.
32000 (pass_rtl_unswitch): Same.
32001 (pass_rtl_unroll_and_peel_loops): Same.
32002 (pass_rtl_doloop): Same.
32004 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32006 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32007 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32008 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32010 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32011 * tree-streamer.c (record_common_node): Adjust reference in comment.
32013 2013-04-17 Terry Guo <terry.guo@arm.com>
32015 * config/arm/cortex-m4.md: Add a new bypass.
32017 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32019 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32021 (*subs_<optab><mode>_multp2): New pattern.
32022 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32023 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32025 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32027 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32028 (*subs_mul_imm_<mode>): New pattern.
32030 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32033 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32034 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32035 (vsx_movti_32bit): Change j->wa to O->wa.
32037 2013-04-16 Richard Biener <rguenther@suse.de>
32039 PR rtl-optimization/56921
32040 * loop-init.c (pass_rtl_move_loop_invariants): Add
32041 TODO_do_not_ggc_collect to todo_flags_finish.
32042 (pass_rtl_unswitch): Same.
32043 (pass_rtl_unroll_and_peel_loops): Same.
32044 (pass_rtl_doloop): Same.
32046 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32048 * config/arm/arm.c (emit_multi_reg_push): New declaration
32049 for an existing function.
32050 (arm_emit_strd_push): New function.
32051 (arm_expand_prologue): Used here.
32052 (arm_emit_ldrd_pop): New function.
32053 (arm_expand_epilogue): Used here.
32054 (arm_get_frame_offsets): Update condition.
32055 (arm_emit_multi_reg_pop): Add a special case for load of a single
32056 register with writeback.
32058 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32060 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32063 2013-04-16 Richard Biener <rguenther@suse.de>
32065 PR tree-optimization/56756
32066 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32067 (first_mem_ref_loc): New.
32068 (execute_sm): Place the load temporarily before a previous
32069 access instead of in the latch edge to ensure its SSA dependencies
32070 are defined at points dominating the load.
32072 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32074 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32075 correct fix by moving header and footer insn to the footer of
32076 the merged basic block. Clear BB_END of the merged-away block.
32078 PR middle-end/43631
32079 * emit-rtl.c (make_note_raw): New function.
32080 (link_insn_into_chain): New static inline function.
32081 (add_insn): Use it.
32082 (add_insn_before, add_insn_after): Factor insn chain linking code...
32083 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32084 using link_insn_into_chain.
32085 (note_outside_basic_block_p): New helper function for emit_note_after
32086 and emit_note_before.
32087 (emit_note_after): Use nobb variant of add_insn_after if the note
32088 should not be contained in a basic block.
32089 (emit_note_before): Use nobb variant of add_insn_before if the note
32090 should not be contained in a basic block.
32091 (emit_note_copy): Use make_note_raw.
32092 (emit_note): Likewise.
32093 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32094 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32095 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32096 the moved barrier the tail of the basic block it follows.
32097 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32099 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32101 PR tree-optimization/56962
32102 * gimple-ssa-strength-reduction.c (record_increment): Only set
32103 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32104 either rhs1 or rhs2 is equal to c->base_expr.
32106 2013-04-15 Richard Biener <rguenther@suse.de>
32108 PR tree-optimization/56933
32109 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32111 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32112 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32113 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32114 dependence check ...
32115 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32117 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32118 GROUP_READ_WRITE_DEPENDENCE.
32120 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32122 * emit-rtl.c (reset_all_used_flags): New function.
32123 (verify_rtl_sharing): Call reset_all_used_flags before and after
32124 performing the checks.
32126 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32128 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32129 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32130 * config/arm/constraints.md (De): New constraint.
32131 * config/arm/neon.md (anddi3_neon): Delete.
32132 (neon_vand<mode>): Expand to standard anddi3 pattern.
32133 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32134 Move earlier in the file.
32135 (neon_inv_logic_op2): Likewise.
32136 (arm_anddi_operand_neon): New predicate.
32138 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32140 * configure.ac (gcc_cv_ld_as_needed): Set
32141 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32142 Use -z ignore, -z record on *-*-solaris2*.
32143 (HAVE_LD_AS_NEEDED): Update comment.
32144 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32145 * configure: Regenerate.
32146 * config.in: Regenerate.
32147 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32148 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32149 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32150 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32151 equivalents. Fix markup.
32152 * doc/tm.texi: Regenerate.
32154 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32156 * config/i386/i386.opt: New option mstack-protector-guard=.
32157 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32158 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32159 TARGET_SSP_TLS_GUARD.
32160 * config/i386/i386.c (ix86_option_override_internal): Set
32161 ix86_stack_protector_guard.
32162 * config/i386/i386.md (stack_protect_set): Enable for
32163 TARGET_SSP_TLS_GUARD only.
32164 (stack_protect_set_<mode>): Ditto.
32165 (stack_protect_test): Ditto.
32166 (stack_protect_test_<mode>): Ditto.
32167 * doc/invoke.texi (i386 Option): Document.
32169 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32172 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32173 (S_MODES): Set H_MODE bit.
32174 (SF_MODES): Set only S_MODE and SF_MODE bits.
32175 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32176 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32177 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32178 <MODE_FLOAT>: Likewise.
32180 2013-04-15 Joey Ye <joey.ye@arm.com>
32182 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32184 2013-04-15 Joey Ye <joey.ye@arm.com>
32186 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32188 (thumb_far_jump_used_p): Count instruction size and set
32191 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32193 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32194 * resource.c (mark_target_live_regs): Reformat conditional block.
32196 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32198 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32199 notes, they are emitted only just before final.
32200 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32202 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32204 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32205 * cfgrtl.c (delete_insn): Call it here instead.
32206 * lra-spills.c (lra_final_code_change): Use delete_insn.
32207 * haifa-sched.c (sched_remove_insn): Likewise.
32208 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32209 returning to the nop pool.
32210 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32211 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32213 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32215 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32216 * doc/tm.texi: Regenerated.
32218 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32220 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32223 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32225 * df-core.c (df_find_def): Compare register numbers.
32226 (df_find_use): Likewise.
32228 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32231 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32232 lra_in_progress for return.
32234 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32236 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32237 define_insn into define_insn_and_split and emit movsicc patterns.
32239 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32241 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32243 2013-04-12 Richard Biener <rguenther@suse.de>
32245 * tree-pass.h (TODO_do_not_ggc_collect): New.
32246 * passes.c (execute_one_ipa_transform_pass): Honor
32247 TODO_do_not_ggc_collect.
32248 (execute_one_pass): Likewise.
32251 2013-04-10 Richard Biener <rguenther@suse.de>
32253 * passes.c (init_optimization_passes): Remove reload pass.
32254 * ira.c (do_reload): Merge into ...
32256 (rest_of_handle_reload): Remove.
32257 (pass_reload): Likewise.
32258 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32259 of reload for vzeroupper pass placement.
32261 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32263 PR tree-optimization/56918
32264 PR tree-optimization/56920
32265 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32266 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32267 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32268 use wide_mul_with_sign method.
32270 2013-04-12 Richard Biener <rguenther@suse.de>
32272 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32273 not be considered a gimple constant.
32275 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32277 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32278 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32281 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32282 Jakub Jelinek <jakub@redhat.com>
32284 * opts.c: Include diagnostic-color.h.
32285 (common_handle_option): Handle OPT_fdiagnostics_color_.
32286 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32287 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32288 (diagnostic-color.o): New.
32289 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32290 (diagnostic_color_rule): New enum.
32291 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32292 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32293 the location string.
32294 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32295 either NULL, or color kind.
32296 * diagnostic-color.c: New file.
32297 * diagnostic-color.h: New file.
32298 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32300 * doc/invoke.texi (-fdiagnostics-color): Document.
32301 * pretty-print.h (pp_show_color): Define.
32302 (struct pretty_print_info): Add show_color field.
32303 * diagnostic.c: Include diagnostic-color.h.
32304 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32305 macros. Colorize error:, warning: etc. strings and also the location
32307 (diagnostic_show_locus): Colorize the caret line.
32308 * pretty-print.c: Include diagnostic-color.h.
32309 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32310 inside of %< %> quotes or quoted through q format modifier.
32312 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32314 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32316 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32318 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32319 code in CC_NZ mode.
32320 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32323 2013-04-11 Marek Polacek <polacek@redhat.com>
32325 PR tree-optimization/48184
32326 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32328 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32330 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32331 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32332 (skip_simple_arithmetic): Tidy up.
32333 * tree.h (skip_simple_constant_arithmetic): Declare.
32335 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32337 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32339 2013-04-11 Richard Biener <rguenther@suse.de>
32341 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32342 generate vector constants.
32344 2013-04-11 Richard Biener <rguenther@suse.de>
32346 PR tree-optimization/56878
32347 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32348 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32350 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32351 Prefer to align the DR with the most invariant base address.
32353 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32355 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32358 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32360 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32361 floating-point vector comparisons against 0.
32363 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32365 PR tree-optimization/56899
32366 * fold-const.c (extract_muldiv_1): Apply distributive law
32367 only if TYPE_OVERFLOW_WRAPS (ctype).
32369 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32372 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32373 loading has side effect.
32375 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32377 * config/sparc/sparc.c: Include tree-pass.h.
32378 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32379 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32380 head of file. Change return type. Split off gate function.
32381 (sparc_gate_work_around_errata): New function.
32382 (pass_work_around_errata): New pass definition.
32383 (insert_pass_work_around_errata) New pass insert definition to
32384 insert pass_work_around_errata just after delayed-branch scheduling.
32385 (sparc_option_override): Insert the pass.
32386 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32388 2013-04-10 David S. Miller <davem@davemloft.net>
32390 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32391 or -mcpu=hypersparc.
32393 * target.def (cstore_mode): New hook.
32394 * target.h: Include insn-codes.h
32395 * targhooks.c: Likewise.
32396 (default_cstore_mode): New function.
32397 * targhooks.h: Declare it.
32398 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32399 * doc/tm.texi: Rebuild.
32400 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32401 target hook, rather than inspecting the insn_data.
32402 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32403 (TARGET_CSTORE_MODE): Redefine.
32404 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32406 * config/sparc/predicates.md (cstore_result_operand): New special
32408 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32409 Use it for operand 0.
32410 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32411 (*snesi_special): Likewise.
32412 (*snesi_zero): Likewise.
32413 (*seqsi_zero): Likewise.
32414 (*sltu_insn): Likewise.
32415 (*sgeu_insn): Likewise.
32416 (*seqdi_special): Make operand 0 and comparison operation be of
32418 (*snedi_special): Likewise.
32419 (*snedi_special_vis3): Likewise.
32420 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32421 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32422 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32423 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32424 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32425 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32426 (*sltu_extend_sp64): Likewise.
32427 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32428 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32429 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32430 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32431 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32433 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32435 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32436 (aarch64_start_file): Use the new function.
32438 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32439 Jason Merrill <jason@redhat.com>
32441 * common.opt: Add -gdwarf.
32442 * opts.c (common_handle_option): Handle it.
32443 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32445 2013-04-10 Richard Biener <rguenther@suse.de>
32447 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32448 (execute_one_ipa_transform_pass): But unconditionally here.
32449 (execute_one_pass): And here.
32450 (init_optimization_passes): Remove reload pass.
32451 * tree-pass.h (TODO_ggc_collect): Remove.
32452 (pass_reload): Likewise.
32453 * ira.c (do_reload): Merge into ...
32455 (rest_of_handle_reload): Remove.
32456 (pass_reload): Likewise.
32457 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32458 of reload for vzeroupper pass placement.
32459 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32460 and todo_flags_finish of all passes.
32462 2013-04-10 Richard Biener <rguenther@suse.de>
32464 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32465 first_const_oprnd field, rename first_def_type to first_op_type.
32466 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32467 (vect_get_and_check_slp_defs): Always use the type of the
32468 operand. Allow mixed vect_external_def, vect_constant_def types.
32469 (vect_get_constant_vectors): Handle mixed vect_external_def,
32470 vect_constant_def types.
32472 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32474 PR tree-optimization/55524
32475 * tree-ssa-math-opts.c
32476 (convert_mult_to_fma): Don't use an fms construct
32477 when we don't have an fms operation, but fnma, and it looks
32478 likely that we'll be able to use the latter.
32480 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32482 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32484 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32485 inline fail caused by overwritable functions.
32487 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32489 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32490 unnecessary bits in the constant power of two case.
32492 2013-04-10 Richard Biener <rguenther@suse.de>
32494 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32495 broken code swapping operands.
32496 (vect_build_slp_tree): Do not compute load permutations here.
32497 (vect_analyze_slp_instance): Compute load permutations here,
32498 after building the SLP tree.
32500 2013-04-09 Christian Bruel <christian.bruel@st.com>
32502 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32503 of next/prev_real_insn.
32505 2013-04-09 Jan Hubicka <jh@suse.cz>
32507 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32508 Drop aliased parameter.
32509 (function_and_variable_visibility): Do not handle alias pairs.
32510 * cgraph.c (varpool_externally_visible_p): Update prototype.
32511 * varpool.c (varpool_add_new_variable): Update.
32513 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32515 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32517 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32519 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32521 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32523 2013-04-09 Marek Polacek <polacek@redhat.com>
32525 PR tree-optimization/48762
32526 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32528 2013-04-09 Richard Biener <rguenther@suse.de>
32530 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32532 (vect_build_slp_tree): Likewise.
32533 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32534 calculating the cost of a SLP instance.
32535 (vect_analyze_slp_instance): Use it from here, after building
32538 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32540 PR middle-end/56883
32541 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32542 expand_omp_for_static_chunk): Use simple_p = true in
32543 force_gimple_operand_gsi calls when assigning to addressable decls.
32545 2013-04-09 Jeff Law <law@redhat.com>
32547 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32548 when the boolean was created by converting a wider object which
32549 had a boolean range.
32551 2013-04-09 Richard Biener <rguenther@suse.de>
32553 * tree-vectorizer.h (slp_void_p): Remove.
32554 (slp_tree): Typedef before _slp_tree declaration.
32555 (struct _slp_tree): Use a vector of slp_tree as children.
32556 (vect_get_place_in_interleaving_chain): Remove.
32557 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32559 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32561 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32562 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32563 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32564 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32565 Use slp_node instead of slp_void_p and adjust.
32567 2013-04-09 Richard Biener <rguenther@suse.de>
32569 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32570 work that is not necessary.
32572 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32574 PR tree-optimization/56854
32575 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32576 forward into clobber stmts if it would change MEM_REF lhs into
32579 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32581 * tree.c (type_hash_lookup, type_hash_add): Make static.
32582 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32584 2013-04-09 Richard Biener <rguenther@suse.de>
32586 * tree.h (unsave_expr_now): Remove.
32587 * tree-inline.c (mark_local_for_remap_r): Remove.
32588 (unsave_expr_1): Likewise.
32589 (unsave_r): Likewise.
32590 (unsave_expr_now): Likewise.
32591 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32592 (propagate_tree_value): Likewise.
32594 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32596 * doc/rtl.texi (sequence): Rewrite documentation to match the
32597 current use of SEQUENCE rtl objects.
32598 * rtl.def (SEQUENCE): Likewise.
32600 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32601 Update documentation.
32602 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32603 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32605 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32607 2013-04-08 Teresa Johnson <tejohnson@google.com>
32609 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32610 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32612 (estimate_edge_size_and_time): Add comment to suggest using rounding
32614 (estimate_node_size_and_time): Ditto.
32615 (remap_edge_change_prob): Use helper rounding divide methods.
32616 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32617 (gimple_mod_pow2_value_transform): Ditto.
32618 (gimple_mod_subtract_transform): Ditto.
32619 (gimple_ic_transform): Ditto.
32620 (gimple_stringops_transform): Ditto.
32621 * stmt.c (conditional_probability): Ditto.
32622 (emit_case_dispatch_table): Ditto.
32623 * lto-cgraph.c (merge_profile_summaries): Ditto.
32624 * tree-optimize.c (execute_fixup_cfg): Ditto.
32625 * cfgcleanup.c (try_forward_edges): Ditto.
32626 * cfgloopmanip.c (scale_loop_profile): Ditto.
32628 (duplicate_loop_to_header_edge): Ditto.
32629 (lv_adjust_loop_entry_edge): Ditto.
32630 * tree-vect-loop.c (vect_transform_loop): Ditto.
32631 * profile.c (compute_branch_probabilities): Ditto.
32632 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32633 * lto-streamer-in.c (input_cfg): Ditto.
32634 * gimple-streamer-in.c (input_bb): Ditto.
32635 * ipa-cp.c (update_profiling_info): Ditto.
32636 (update_specialized_profile): Ditto.
32637 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32638 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32640 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32641 (compute_trg_info): Ditto.
32642 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32643 (purge_dead_edges): Ditto.
32644 * loop-unswitch.c (unswitch_loop): Ditto.
32645 * cgraphclones.c (cgraph_clone_edge): Ditto.
32646 (cgraph_clone_node): Ditto.
32647 * tree-inline.c (copy_bb): Ditto.
32648 (copy_edges_for_bb): Ditto.
32649 (initialize_cfun): Ditto.
32650 (copy_cfg_body): Ditto.
32651 (expand_call_inline): Ditto.
32653 2013-04-08 Kai Tietz <ktietz@redhat.com>
32655 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32656 TARGET_CYGWIN64 by TARGET_64BIT.
32658 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32660 * config/epiphany/epiphany.md (GPR_1): New constant.
32661 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32662 * config/epiphany/epiphany.c (gen_compare_reg):
32663 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32664 is already in place.
32665 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32666 Don't require being called during rtl expansion; If y operlaps r0,
32668 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32669 (epiphany_expand_epilogue): Likewise.
32671 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32672 Don't use CC_FPmode for ORDERED / UNORDERED.
32673 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32675 * config/epiphany/constraints.md (CnL): New constraint.
32676 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32677 * config/epiphany/predicates.md (add_operand): Allow 1024.
32679 * config/epiphany/epiphany.md (logical_op): New code iterator.
32680 (op_mnc): New code attribute.
32681 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32682 (mov_f+1, mov_f+2): New peephole2 patterns.
32684 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32685 (cstoresi4): Also allow re-use of zero result when doing a NE
32686 comparison to a non-zero operand.
32687 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32689 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32690 Use gen_addsi3_i / gen_subsi3_i.
32692 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32696 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32697 contain anything but clobbers, at most one __builtin_stack_restore,
32698 optionally debug stmts and final resx, and if it has at least one
32699 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32700 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32701 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32702 which isn't defaut definition, remove them.
32703 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32704 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32705 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32706 with MEM_REF LHS with SSA_NAME address.
32708 2013-04-08 Jeff Law <law@redhat.com>
32710 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32712 2013-04-08 Richard Biener <rguenther@suse.de>
32714 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32716 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32717 determined vector type.
32718 (vect_analyze_data_refs): Likewise.
32719 (vect_get_new_vect_var): Adjust.
32720 (vect_create_destination_var): Preserve SSA name versions.
32721 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32722 not dump anything here.
32724 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32726 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32727 Add member lr_slot_known.
32728 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32730 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32731 Remove code that sets lr_slot_offset according to what a previous
32732 version of epiphany_emit_save_restore used to do.
32733 (epiphany_emit_save_restore): When doing an lr save or restore,
32734 set/verify lr_slot_known and lr_slot_offset.
32736 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32739 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32742 2013-04-08 Richard Biener <rguenther@suse.de>
32744 * alias.c (find_base_term): Fix thinko in previous change.
32746 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32748 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32749 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32750 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32751 if possible to compute val.
32752 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32753 For QImode integers don't require anything about precision. Use
32754 const_with_all_bytes_same to find out if the constant doesn't have
32755 repeated bytes in it.
32757 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32759 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32762 2013-04-08 Marek Polacek <polacek@redhat.com>
32764 PR rtl-optimization/48182
32765 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32768 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32771 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32772 nuses, make sure we have a label.
32774 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32777 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32778 (rs6000_emit_swdiv_low_precision): Remove.
32779 (rs6000_emit_swdiv): Rewrite to handle between one and four
32780 iterations of Newton-Raphson generally; modify required number of
32781 iterations for some cases.
32782 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32784 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32786 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32787 set-but-unused variable.
32789 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32790 basic blocks of released function bodies garbage-collectable.
32792 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32793 (struct rtl_opt_pass): Add TODO_df_finish.
32795 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32797 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32799 * config/arm/constraints.md (q): New constraint.
32800 * config/arm/ldrdstrd.md: New file.
32801 * config/arm/arm.md (ldrdstrd.md) New include.
32802 (arm_movdi): Use "q" instead of "r" constraint
32803 for double-word memory access.
32804 (movdf_soft_insn): Likewise.
32805 * config/arm/vfp.md (movdi_vfp): Likewise.
32806 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32807 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32808 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32809 (mem_ok_for_ldrd_strd): Likewise.
32810 (output_move_double): Update assertion.
32812 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32814 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32816 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32818 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32819 define_insn_and_split.
32820 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32822 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32824 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32825 define_insn_and_split.
32826 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32827 (shiftsi3_compare): New pattern.
32828 (rrx): New pattern.
32829 * config/arm/unspecs.md (UNSPEC_RRX): New.
32831 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32833 * config/arm/arm.md (negdi_extendsidi): New pattern.
32834 (negdi_zero_extendsidi): Likewise.
32836 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32838 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32839 define_insn_and_split.
32840 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32841 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32843 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32845 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32846 define_insn_and_split.
32847 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32848 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32850 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32852 * config/arm/arm.md (subsi3_carryin): New pattern.
32853 (subsi3_carryin_const): Likewise.
32854 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32855 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32857 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32859 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32861 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32863 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32864 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32866 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32868 * config/arm/arm.c (arm_expand_builtin): Change fcode
32869 type to unsigned int.
32871 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32873 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32875 2013-04-04 Ian Lance Taylor <iant@google.com>
32877 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32880 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32882 PR middle-end/56729
32883 * df-scan.c (df_insn_delete): Disable failing assert.
32885 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32887 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32888 New function prototype.
32889 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32890 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32891 (arm_builtin_vectorized_function): New function.
32893 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32895 * config/arm/arm_neon_builtins.def: New file.
32896 * config/arm/arm.c (neon_builtin_data): Move contents to
32897 arm_neon_builtins.def.
32898 (enum arm_builtins): Include neon builtin definitions.
32899 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32900 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32902 2013-04-04 Marek Polacek <polacek@redhat.com>
32904 PR tree-optimization/48186
32905 * predict.c (maybe_hot_frequency_p): Return false if
32906 HOT_BB_FREQUENCY_FRACTION is 0.
32907 (cgraph_maybe_hot_edge_p): Likewise.
32909 2013-04-04 Richard Biener <rguenther@suse.de>
32911 PR tree-optimization/56826
32912 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32915 2013-04-04 Richard Biener <rguenther@suse.de>
32917 PR tree-optimization/56213
32918 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32919 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32921 2013-04-04 Richard Biener <rguenther@suse.de>
32923 PR tree-optimization/56837
32924 * tree-loop-distribution.c (classify_partition): For non-zero
32925 values require that the value has the same precision as its
32926 mode to be useful as memset value.
32928 2013-04-03 Nick Clifton <nickc@redhat.com>
32930 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32931 (fmssf4): Use fmsf.s on E3V5 architectures.
32932 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32933 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32935 2013-04-03 Jeff Law <law@redhat.com>
32937 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32938 (lra-eliminations.o): Likewise.
32940 2013-04-03 Teresa Johnson <tejohnson@google.com>
32942 * gcov-io.c (compute_working_sets): Moved most of body of old
32943 compute_working_sets here from profile.c.
32944 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32945 (gcov_working_set_t): Moved typedef here from basic-block.h
32946 (compute_working_set): Declare.
32947 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32948 (get_working_sets): Renamed from compute_working_set,
32949 replace most of body with call to new compute_working_sets.
32950 (get_exec_counts): Replace call to compute_working_sets
32951 to get_working_sets.
32952 * profile.h (get_working_sets): Renamed from compute_working_set.
32953 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32954 to get_working_sets.
32955 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32956 * gcov-dump.c (dump_working_sets): New function.
32958 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32960 * hwint.c (sext_hwi, zext_hwi): New functions.
32961 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32962 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32963 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32964 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32965 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32966 (sext_hwi, zext_hwi): New functions.
32968 2013-04-03 Jeff Law <law@redhat.com>
32970 PR tree-optimization/56799
32971 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32972 back test for widening conversion erroneously dropped in prior change.
32974 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32977 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32978 instead of next_real_insn.
32980 2013-04-03 Marek Polacek <polacek@redhat.com>
32983 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32985 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32988 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32990 (thumb1_output_casesi): Likewise.
32991 (thumb2_output_casesi): Likewise.
32993 2013-04-03 Richard Biener <rguenther@suse.de>
32995 PR tree-optimization/56817
32996 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32998 (tree_unroll_loops_completely_1): ... new function to manually
32999 walk the loop tree, properly defering outer loops of unrolled
33000 loops to later iterations.
33002 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33004 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33005 (vectorizable_load): Likewise.
33006 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33007 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33009 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33011 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33014 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33016 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33018 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33020 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33022 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33024 PR tree-optimization/56790
33025 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33028 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33030 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33032 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33033 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33036 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33039 * tree.h (force_folding_builtin_constant_p): New decl.
33040 * builtins.c (force_folding_builtin_constant_p): New variable.
33041 (fold_builtin_constant_p): Fold immediately also if
33042 force_folding_builtin_constant_p.
33044 2013-04-03 Richard Biener <rguenther@suse.de>
33046 PR tree-optimization/56812
33047 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33048 DRs of the same interleaving chain are independent.
33050 2013-04-02 Jason Merrill <jason@redhat.com>
33052 * gdbinit.in (pbb): Use debug fn.
33054 2013-04-02 Lawrence Crowl <crowl@google.com>
33056 * sese.h (struct ivtype_map_elt_s): Remove unused.
33057 (extern debug_ivtype_map): Remove unused.
33058 (extern eq_ivtype_map_elts): Remove unused.
33059 * sese.c (debug_ivtype_map): Removed unused.
33060 (debug_ivtype_map_1): Removed unused.
33061 (debug_ivtype_elt): Remove unused.
33062 (eq_ivtype_map_elts): Remove unused.
33064 2013-04-02 Kai Tietz <ktietz@redhat.com>
33067 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33068 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33069 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33071 (legitimize_pe_coff_symbol): Likewise.
33072 (is_imported_p): New helper-function.
33073 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33074 for Windows x64 targets.
33075 (ix86_expand_prologue): Optimize for pe-coff targets.
33076 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33077 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33078 medium/large code-model.
33079 (legitimize_pic_address): Likewise.
33080 (legitimize_tls_address): Likewise.
33081 (ix86_expand_call): Likewise.
33082 (x86_output_mi_thunk): Likewise.
33083 (get_dllimport_decl): Add new beimport argument.
33084 (construct_plt_address): Don't assert for x64 pe-coff targets.
33085 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33087 (SYMBOL_FLAG_STUBVAR): New macro.
33088 (SYMBOL_REF_STUBVAR_P): Likewise.
33089 * config/i386/winnt.c (stub_list): New structure.
33090 (stub_head): New local variable.
33091 (i386_pe_record_stub): New function.
33092 (i386_pe_file_end): Emit refptr-stubs.
33094 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33096 PR rtl-optimization/56745
33097 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33098 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33101 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33102 and both of them are MEM_REFs, just compare first argument for
33103 equality and attempt to deal even with differing offsets.
33106 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33107 of gimple_clobber_p to be MEM_REF.
33108 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33109 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33110 after gimplification.
33111 * asan.c (get_mem_ref_of_assignment): Don't instrument
33112 gimple_clobber_p stmts.
33113 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33114 gimple_clobber_p stmt if they have MEM_REF lhs and
33115 are dead because of another gimple_clobber_p stmt.
33116 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33117 gimple_clobber_p stmts like debug stmts.
33118 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33119 that refer to unused VAR_DECLs or uninitialized values.
33120 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33121 gimple_clobber_p stmts if they refer to removed parameters.
33122 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33125 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33127 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33128 using SWI48 mode attribute.
33130 2013-04-02 Wei Mi <wmi@google.com>
33132 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33133 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33134 *<rotate_insn><mode>3_mask in i386.md.
33136 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33138 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33140 2013-04-02 Richard Biener <rguenther@suse.de>
33142 PR tree-optimization/56778
33143 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33144 Runtime alias tests are not supported for gather loads.
33145 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33146 stmts referenced from SSA operands before updating SSA form.
33148 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33149 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33151 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33152 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33153 * config/arm/cortex-a53.md: New file.
33154 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33155 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33156 * config/arm/arm.c (arm_issue_rate): Likewise.
33157 * config/arm/arm-tune.md: Regenerate
33158 * config/arm/arm-tables.opt: Regenerate.
33159 * config/arm/arm-cores.def: Add cortex-a53.
33161 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33163 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33166 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33168 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33169 scalar load/store operations using B/H registers.
33170 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33172 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33174 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33176 * config/aarch64/aarch64.c
33177 (aarch64_simd_scalar_immediate_valid_for_move): New.
33178 * config/aarch64/aarch64-protos.h
33179 (aarch64_simd_scalar_immediate_valid_for_move): New.
33180 * config/aarch64/constraints.md (Dh, Dq): New.
33181 * config/aarch64/iterators.md (hq): New.
33183 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33185 * reorg.c (get_branch_condition): Deal with conditional returns.
33186 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33188 2013-04-01 Wei Mi <wmi@google.com>
33190 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33191 Truncate operand 2 using %b asm operand modifier.
33192 (*<shift_insn><mode>3_mask): Ditto.
33193 (*<rotate_insn><mode>3_mask): Ditto.
33195 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33197 PR middle-end/56798
33198 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33200 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33202 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33204 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33206 2013-03-30 Lawrence Crowl <crowl@google.com>
33208 * dse.c (clear_alias_sets): Remove never set.
33209 (disqualified_clear_alias_sets): Remove never set.
33210 (clear_alias_mode_pool): Remove never set.
33211 (dse_step0): Remove condition that is never true.
33212 (canon_address): Remove condition that is never true.
33213 (dse_step7): Remove condition that is never true.
33214 (rest_of_handle_dse): Remove condition that is never true.
33215 (rest_of_handle_dse::did_global): Remove never read from above.
33216 (dse_step2_spill): Remove never called from above.
33217 (dse_step5_spill): Remove never called from above.
33219 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33221 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33222 JUMP_TABLE_DATA changes.
33223 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33224 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33225 (Insns) <jump_table_data>: New entry.
33226 * doc/tm.texi: Regenerate.
33228 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33230 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33231 for table jump at the end of a basic block using tablejump_p.
33232 * targhooks.c (default_invalid_within_doloop): Likewise.
33233 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33234 target hook implementation that is identical to the default hook.
33235 (rs6000_invalid_within_doloop): Remove.
33237 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33238 unused variable from tablejump_p call.
33240 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33241 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33242 (INSN_DELETED_P): Likewise.
33243 (emit_jump_table_data): New prototype.
33244 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33245 after 4th as unused.
33246 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33247 * sched-vis.c (print_insn): Likewise.
33248 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33249 insn for compatibility with back ends that use next_active_insn to
33250 identify jump table data.
33251 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33252 (remove_insn): Likewise.
33253 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33255 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33256 (emit_jump_table_data): New function.
33258 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33259 basic block, a JUMP_TABLE_DATA never is.
33260 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33261 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33262 off from code handling real insns.
33263 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33264 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33265 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33266 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33267 is not a NONDEBUG_INSN_P.
33268 * ira-costs.c (scan_one_insn): Likewise.
33269 * jump.c (mark_all_labels): Likewise.
33270 (mark_jump_label_1): Likewise.
33271 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33272 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33274 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33275 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33276 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33277 JUMP_TABLE_DATA_P insns.
33278 (calculate_elim_costs_all_insns): Likewise.
33279 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33280 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33281 (delete_output_reload): Code style fixups.
33282 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33283 insn flags on this non-insn.
33284 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33285 as scheduling barriers, for pre-change compatibility.
33286 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33287 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33289 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33290 redundant JUMP_TABLE_DATA_P test.
33291 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33292 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33293 (frv_for_each_packet): Likewise.
33294 * config/i386/i386.c (min_insn_size): Likewise.
33295 (ix86_avoid_jump_mispredicts): Likewise.
33296 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33297 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33298 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33299 (mips16_insn_length): Robustify.
33300 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33301 (mips16_split_long_branches): Likewise.
33302 * config/pa/pa.c (pa_combine_instructions): Likewise.
33303 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33304 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33305 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33306 as contributing to pool range lengths.
33307 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33308 Remove redundant JUMP_TABLE_DATA_P test.
33309 (sh_loop_align): Likewise.
33310 (split_branches): Likewise.
33311 (sh_insn_length_adjustment): Likewise.
33312 * config/spu/spu.c (get_branch_target): Likewise.
33314 2013-03-29 Jan Hubicka <jh@suse.cz>
33316 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33317 gcov streaming; stream hot bb threshold to ltrans.
33318 * predict.c (get_hot_bb_threshold): Break out from ....
33319 (maybe_hot_count_p): ... here.
33320 (set_hot_bb_threshold): New function.
33321 * lto-section-in.c (lto_section_name): Add profile.
33322 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33323 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33324 and data-streamer.h
33325 (histogram_entry): New structure.
33326 (histogram, histogram_pool): New global vars.
33327 (histogram_hash): New structure.
33328 (histogram_hash::hash): New method.
33329 (histogram_hash::equal): Likewise.
33330 (account_time_size): New function.
33331 (cmp_counts): New function.
33332 (dump_histogram): New function.
33333 (ipa_profile_generate_summary): New function.
33334 (ipa_profile_write_summary): New function.
33335 (ipa_profile_read_summary): New function.
33336 (ipa_profile): Decide on threshold.
33337 (pass_ipa_profile): Add ipa_profile_write_summary and
33338 ipa_profile_read_summary.
33339 * Makefile.in (ipa.o): Update dependencies.
33340 * lto-streamer.h (LTO_section_ipa_profile): New section.
33342 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33344 * tree.h (VAR_P): New.
33346 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33349 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33351 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33353 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33354 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33355 (control_flow_insn_p): Likewise.
33356 * cfgrtl.c (duplicate_insn_chain): Likewise.
33357 * final.c (get_attr_length_1): Likewise.
33358 (shorten_branches): Likewise.
33359 (final_scan_insn): Likewise.
33360 * function.c (instantiate_virtual_regs): Likewise.
33361 * gcse.c (insert_insn_end_basic_block): Likewise.
33362 * ira-costs.c (scan_one_insn): Likewise.
33363 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33364 * lra.c (check_rtl): Likewise.
33365 * reload1.c (elimination_costs_in_insn): Likewise.
33366 * reorg.c (follow_jumps): Likewise.
33368 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33369 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33370 (thumb_far_jump_used_p): Likewise.
33371 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33372 (workaround_speculation): Likewise.
33373 (add_sched_insns_for_speculation): Likewise.
33374 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33375 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33376 (frv_for_each_packet): Likewise.
33377 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33378 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33379 (final_emit_insn_group_barriers): Likewise.
33380 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33381 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33382 (mips16_insn_length): Likewise.
33383 * config/pa/pa.c (pa_reorg): Likewise.
33384 (pa_combine_instructions): Likewise.
33385 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33386 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33387 (sh_reorg): Likewise.
33388 (split_branches): Likewise.
33389 * config/spu/spu.c (get_branch_target): Likewise.
33391 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33394 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33396 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33397 Fix declaration name.
33399 2013-03-28 Lawrence Crowl <crowl@google.com>
33401 * graphds.h (struct graph.indicies): Remove unused.
33402 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33403 (SCOP_ORIGINAL_PDDRS): Remove unused.
33404 * sese.h (extern insert_loop_close_phis): Removed unused.
33405 (extern insert_guard_phis): Removed unused.
33406 (extern ivtype_map_elt_info): Removed unused.
33407 (new_ivtype_map_elt): Removed unused.
33408 * sese.c (ivtype_map_elt_info): Removed unused.
33410 2013-03-28 Lawrence Crowl <crowl@google.com>
33412 * Makefile.in: Add several missing include dependences.
33414 (test-dump.o): New. This object is not added to any executable,
33415 but is present for ad-hoc testing.
33417 (debug (const bitmap_head_def &)): New.
33418 (debug (const bitmap_head_def *)): New.
33420 (extern debug (const bitmap_head_def &)): New.
33421 (extern debug (const bitmap_head_def *)): New.
33423 (debug (edge_def &)): New.
33424 (debug (edge_def *)): New.
33426 (debug (basic_block_def &)): New.
33427 (debug (basic_block_def *)): New.
33429 (dump_node (const_tree, int, FILE *)): Correct source file.
33431 (debug (die_struct &)): New.
33432 (debug (die_struct *)): New.
33434 (extern debug (die_struct &)): New.
33435 (extern debug (die_struct *)): New.
33436 * gimple-pretty-print.c
33437 (debug (gimple_statement_d &)): New.
33438 (debug (gimple_statement_d *)): New.
33439 * gimple-pretty-print.h
33440 (extern debug (gimple_statement_d &)): New.
33441 (extern debug (gimple_statement_d *)): New.
33443 (debug (ira_allocno_copy &)): New.
33444 (debug (ira_allocno_copy *)): New.
33445 (debug (ira_allocno &)): New.
33446 (debug (ira_allocno *)): New.
33448 (extern debug (ira_allocno_copy &)): New.
33449 (extern debug (ira_allocno_copy *)): New.
33450 (extern debug (ira_allocno &)): New.
33451 (extern debug (ira_allocno *)): New.
33453 (debug (live_range &)): New.
33454 (debug (live_range *)): New.
33456 (debug (lra_live_range &)): New.
33457 (debug (lra_live_range *)): New.
33459 (debug (lra_live_range &)): New.
33460 (debug (lra_live_range *)): New.
33462 (debug (omega_pb_d &)): New.
33463 (debug (omega_pb_d *)): New.
33465 (extern debug (omega_pb_d &)): New.
33466 (extern debug (omega_pb_d *)): New.
33468 (debug (const rtx_def &)): New.
33469 (debug (const rtx_def *)): New.
33471 (debug_tree (tree): Move within file.
33472 (debug_raw (const tree_node &)): New.
33473 (debug_raw (const tree_node *)): New.
33474 (dump_tree_via_hooks (const tree_node *, int)): New.
33475 (debug (const tree_node &)): New.
33476 (debug (const tree_node *)): New.
33477 (debug_verbose (const tree_node &)): New.
33478 (debug_verbose (const tree_node *)): New.
33479 (debug_head (const tree_node &)): New.
33480 (debug_head (const tree_node *)): New.
33481 (debug_body (const tree_node &)): New.
33482 (debug_body (const tree_node *)): New.
33483 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33484 (debug (vec<tree, va_gc> &)): New.
33485 (debug (vec<tree, va_gc> *)): New.
33487 (extern debug (const rtx_def &)): New.
33488 (extern debug (const rtx_def *)): New.
33490 (debug_raw (simple_bitmap_def &)): New.
33491 (debug_raw (simple_bitmap_def *)): New.
33492 (debug (simple_bitmap_def &)): New.
33493 (debug (simple_bitmap_def *)): New.
33495 (extern debug (simple_bitmap_def &)): New.
33496 (extern debug (simple_bitmap_def *)): New.
33497 (extern debug_raw (simple_bitmap_def &)): New.
33498 (extern debug_raw (simple_bitmap_def *)): New.
33500 (debug (vinsn_def &)): New.
33501 (debug (vinsn_def *)): New.
33502 (debug_verbose (vinsn_def &)): New.
33503 (debug_verbose (vinsn_def *)): New.
33504 (debug (expr_def &)): New.
33505 (debug (expr_def *)): New.
33506 (debug_verbose (expr_def &)): New.
33507 (debug_verbose (expr_def *)): New.
33508 (debug (vec<rtx> &)): New.
33509 (debug (vec<rtx> *)): New.
33511 (extern debug (vinsn_def &)): New.
33512 (extern debug (vinsn_def *)): New.
33513 (extern debug_verbose (vinsn_def &)): New.
33514 (extern debug_verbose (vinsn_def *)): New.
33515 (extern debug (expr_def &)): New.
33516 (extern debug (expr_def *)): New.
33517 (extern debug_verbose (expr_def &)): New.
33518 (extern debug_verbose (expr_def *)): New.
33519 (extern debug (vec<rtx> &)): New.
33520 (extern debug (vec<rtx> *)): New.
33522 (_list_iter_cond_expr): Make inline instead of static.
33524 (debug (sreal &)): New.
33525 (debug (sreal *)): New.
33527 (extern debug (sreal &)): New.
33528 (extern debug (sreal *)): New.
33530 (extern debug_raw (const tree_node &)): New.
33531 (extern debug_raw (const tree_node *)): New.
33532 (extern debug (const tree_node &)): New.
33533 (extern debug (const tree_node *)): New.
33534 (extern debug_verbose (const tree_node &)): New.
33535 (extern debug_verbose (const tree_node *)): New.
33536 (extern debug_head (const tree_node &)): New.
33537 (extern debug_head (const tree_node *)): New.
33538 (extern debug_body (const tree_node &)): New.
33539 (extern debug_body (const tree_node *)): New.
33540 (extern debug (vec<tree, va_gc> &)): New.
33541 (extern debug (vec<tree, va_gc> *)): New.
33543 (debug (struct loop &)): New.
33544 (debug (struct loop *)): New.
33545 (debug_verbose (struct loop &)): New.
33546 (debug_verbose (struct loop *)): New.
33547 * tree-dump.c: Add header dependence.
33549 (extern debug (struct loop &)): New.
33550 (extern debug (struct loop *)): New.
33551 (extern debug_verbose (struct loop &)): New.
33552 (extern debug_verbose (struct loop *)): New.
33554 (debug (data_reference &)): New.
33555 (debug (data_reference *)): New.
33556 (debug (vec<data_reference_p> &)): New.
33557 (debug (vec<data_reference_p> *)): New.
33558 (debug (vec<ddr_p> &)): New.
33559 (debug (vec<ddr_p> *)): New.
33561 (extern debug (data_reference &)): New.
33562 (extern debug (data_reference *)): New.
33563 (extern debug (vec<data_reference_p> &)): New.
33564 (extern debug (vec<data_reference_p> *)): New.
33565 (extern debug (vec<ddr_p> &)): New.
33566 (extern debug (vec<ddr_p> *)): New.
33568 (debug (pt_solution &)): New.
33569 (debug (pt_solution *)): New.
33571 (extern debug (pt_solution &)): New.
33572 (extern debug (pt_solution *)): New.
33574 (debug (_var_map &)): New.
33575 (debug (_var_map *)): New.
33576 (debug (tree_live_info_d &)): New.
33577 (debug (tree_live_info_d *)): New.
33579 (extern debug (_var_map &)): New.
33580 (extern debug (_var_map *)): New.
33581 (extern debug (tree_live_info_d &)): New.
33582 (extern debug (tree_live_info_d *)): New.
33584 2013-03-28 Jan Hubicka <jh@suse.cz>
33586 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33588 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33590 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33591 record only when desired or required.
33593 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33595 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33596 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33598 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33600 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33601 (*andsi3_compare0_uxtw): New pattern.
33602 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33603 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33605 2013-03-28 Jan Hubicka <jh@suse.cz>
33607 * data-streamer-in.c (streamer_read_gcov_count): New function.
33608 * gimple-streamer-out.c: Include value-prof.h.
33609 (output_gimple_stmt): Output histogram.
33610 (output_bb): Use streamer_write_gcov_count.
33611 * value-prof.c: Include data-streamer.h
33612 (dump_histogram_value): Add HIST_TYPE_MAX.
33613 (stream_out_histogram_value): New function.
33614 (stream_in_histogram_value): New function.
33615 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33616 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33617 * data-streamer-out.c (streamer_write_gcov_count): New function.
33618 (streamer_write_gcov_count_stream): New function.
33619 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33620 (lto_output_node): Likewise.
33621 (input_node, input_edge): Likewise.
33622 * lto-streamer-out.c (output_cfg): Update streaming.
33623 * lto-streamer-in.c (input_cfg): Likewise.
33624 * data-streamer.h (streamer_write_gcov_count,
33625 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33626 * gimple-streamer-in.c: Include value-prof.h
33627 (input_gimple_stmt): Input histograms.
33628 (input_bb): Update profile streaming.
33630 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33632 * genmodes.c (emit_max_int): New function.
33633 (emit_insn_modes_h): Added call to emit_max_function.
33634 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33636 * machmode.def: Fixed comment.
33638 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33640 * combine.c (try_combine): Removed useless assert.
33641 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33643 2013-03-28 Marek Polacek <polacek@redhat.com>
33644 Richard Biener <rguenther@suse.de>
33646 PR tree-optimization/56695
33647 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33648 build signed result of a vector comparison.
33649 * tree-cfg.c (verify_gimple_comparison): Check that a result
33650 of a vector comparison has signed type.
33652 2013-03-28 Richard Biener <rguenther@suse.de>
33654 PR tree-optimization/37021
33655 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33656 do not restrict gaps between groups.
33657 * tree-vect-stmts.c (vectorizable_load): Properly account for
33658 a gap between groups.
33660 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33662 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33663 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33666 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33668 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33669 * doc/extend.texi (Named Address Spaces): Ditto.
33670 (Variable Attributes): Ditto.
33672 2013-03-27 Kai Tietz <ktietz@redhat.com>
33674 * config.build: Add support for cygwin x64 target.
33675 * config.gcc: Likewise.
33676 * config.host: Likewise.
33677 * configure.ac: Likewise
33678 * configure: Regenerated.
33680 2013-03-27 Kai Tietz <ktietz@redhat.com>
33682 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33683 * config/i386/t-cygwin-w64: New file.
33684 * config/i386/cygwin-w64.h: New file.
33685 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33686 and add support for x64-cygwin target.
33687 (CPP_SPEC): Likewise.
33688 (CXX_WRAP_SPEC_LIST): Undefine before define.
33689 (LIBGCJ_SONAME): Use 15 as version.
33691 2013-03-27 Richard Biener <rguenther@suse.de>
33693 PR tree-optimization/56716
33694 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33695 dumping for ref nodes.
33697 2013-03-27 Martin Jambor <mjambor@suse.cz>
33699 PR tree-optimization/55334
33700 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33701 restricted pointers to arrays.
33703 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33705 * Makefile.in (.SUFFIXES): Add .cc.
33706 (.c.o): Apply same recipe for implicit rule .cc.o.
33708 2013-03-27 Richard Biener <rguenther@suse.de>
33710 PR tree-optimization/37021
33711 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33712 REALPART/IMAGPART_EXPRs around the supported refs.
33713 * tree-ssa-structalias.c (find_func_aliases): Assume that
33714 floating-point values are not used to transfer pointers.
33716 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33718 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33719 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33720 * doc/tm.texi: Regenerate.
33721 * targhooks.h (default_has_ifunc_p): New.
33722 * targhooks.c (default_has_ifunc_p): Ditto.
33723 * config/linux-protos.h: New file.
33724 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33725 hook for linux which disables support of indirect functions in android.
33726 * config/linux-android.c: New file.
33727 * config/t-linux-android.c: Ditto.
33728 * config.gcc: Added new object file linux-android.o.
33729 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33730 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33731 * varasm.c (do_assemble_alias): Likewise.
33732 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33733 doesn't support indirect functions.
33734 * configure: Regenerate.
33736 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33739 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33740 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33743 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33745 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33747 2013-03-27 Terry Guo <terry.guo@arm.com>
33749 * config/arm/arm-cores.def: Added core cortex-r7.
33750 * config/arm/arm-tune.md: Regenerated.
33751 * config/arm/arm-tables.opt: Regenerated.
33752 * doc/invoke.texi: Added entry for core cortex-r7.
33754 2013-03-27 Walter Lee <walt@tilera.com>
33756 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33757 double-decrement of next_scratch_regno.
33759 2013-03-27 Walter Lee <walt@tilera.com>
33761 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33763 (insn_v1mulus): Ditto.
33764 (insn_v2muls): Ditto.
33766 2013-03-27 Walter Lee <walt@tilera.com>
33768 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33769 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33771 2013-03-27 Walter Lee <walt@tilera.com>
33773 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33774 (*sibcall_value): Ditto.
33776 2013-03-27 Walter Lee <walt@tilera.com>
33778 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33779 (insn_mnz_v8qi): ... this ...
33780 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33782 (insn_v<n>mnz): Replaced by ...
33783 (insn_v1mnz): ... this ...
33784 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33786 (insn_mz_<mode>): Replaced by ...
33787 (insn_mz_v8qi): ... this ...
33788 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33790 (insn_v<n>mz): Replaced by ...
33791 (insn_v1mz): ... this ...
33792 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33795 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33797 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33799 2013-03-26 Roland McGrath <mcgrathr@google.com>
33801 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33802 than fprintf with a non-constant, non-format string.
33804 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33806 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33807 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33808 operand 0 predicate.
33809 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33810 attribute. Use general_x64nomem_operand as operand 1 predicate.
33811 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33812 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33813 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33814 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33815 (mov<mode>_insv_1): Remove expander. Merge insn with
33816 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33817 Use general_x64nomem_operand as operand 1 predicate.
33818 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33819 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33820 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33821 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33822 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33823 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33824 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33825 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33826 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33827 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33828 (general_x64nomem_operand): Ditto.
33830 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33832 * config/rtems.opt: Add -pthread option.
33834 2013-03-26 Richard Biener <rguenther@suse.de>
33836 * alias.c (find_base_term): Avoid redundant and not used recursion.
33837 (base_alias_check): Get the initial base term from the caller.
33838 (true_dependence_1): Compute and pass base terms to base_alias_check.
33839 (write_dependence_p): Likewise.
33840 (may_alias_p): Likewise.
33842 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33844 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33845 PC-relative load in SI modes and above only.
33847 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33849 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33850 * config/arm/iwmmxt.md (WCGR0): Update.
33851 (WCGR1, WCGR2, WCGR3): Likewise.
33853 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33855 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33856 Use x64 and nox64 isa attributes.
33858 2013-03-26 Richard Biener <rguenther@suse.de>
33860 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33861 alignment computations and rely on get_object_alignment_1
33862 for the !TYPE_P case.
33863 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33865 2013-03-26 Walter Lee <walt@tilera.com>
33867 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33868 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33870 2013-03-25 Jeff Law <law@redhat.com>
33872 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33873 check for INTEGRAL_TYPE_P that was missing due to checking in
33874 wrong version of prior patch.
33876 2013-03-25 Walter Lee <walt@tilera.com>
33878 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33879 TILEGX_INSN_SHUFFLEBYTES1.
33880 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33882 (tilegx_builtins): Ditto.
33883 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33885 2013-03-25 Walter Lee <walt@tilera.com>
33887 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33888 (floatunssisf2): New pattern.
33889 (floatsidf2): New pattern.
33890 (floatunssidf2): New pattern.
33892 2013-03-25 Walter Lee <walt@tilera.com>
33894 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33895 tests for constraint J, K, N, P.
33897 2013-03-25 Walter Lee <walt@tilera.com>
33899 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33900 Use indirect/pcrel encoding.
33901 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33904 2013-03-25 Steve Ellcey <sellcey@mips.com>
33906 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33907 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33908 * config/mips/mips.c (mips_option_override): Set IMADD default.
33909 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33910 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33911 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33912 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33913 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33915 2013-03-25 Jeff Law <law@redhat.com>
33917 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33918 slightly to avoid creating and folding useless trees. Simplify
33919 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33921 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33923 * config/i386/i386.md (*zero_extendsidi2): Merge with
33924 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33925 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33926 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33927 targets. Clarify comment.
33929 2013-03-25 Martin Jambor <mjambor@suse.cz>
33931 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33932 pass-through jump functions differently.
33933 (ipa_read_jump_function): Likewise. Also use setter functions to set
33936 2013-03-25 Martin Jambor <mjambor@suse.cz>
33938 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33939 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33941 (ipa_get_indirect_edge_target): New function.
33942 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33943 ipa_get_indirect_edge_target. Update all callers.
33944 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33945 ipa_get_indirect_edge_target_1 instead of calling
33946 ipa_get_indirect_edge_target.
33947 (create_specialized_node): Pass aggvlas to
33948 ipcp_discover_new_direct_edges.
33950 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33952 * config/arm/arm.md (f_sels, f_seld): New types.
33953 (*cmov<mode>): New pattern.
33954 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33957 2013-03-25 Kai Tietz <ktietz@redhat.com>
33959 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33960 POSIX-printf for mingw-hosted builds.
33962 2013-03-25 Richard Biener <rguenther@suse.de>
33964 PR middle-end/56694
33965 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33966 must-not-throw stmt location.
33968 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33970 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33971 Emit load-acquire versions when acq is true.
33972 (arm_emit_store_exclusive): Add rel parameter.
33973 Emit store-release versions when rel is true.
33974 (arm_split_compare_and_swap): Use acquire-release instructions
33976 of barriers when appropriate.
33977 (arm_split_atomic_op): Likewise.
33978 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33979 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33980 (VUNSPEC_SLX): Likewise.
33981 (VUNSPEC_LDA): Likewise.
33982 (VUNSPEC_STL): Likewise.
33983 * config/arm/sync.md (atomic_load<mode>): New pattern.
33984 (atomic_store<mode>): Likewise.
33985 (arm_load_acquire_exclusive<mode>): Likewise.
33986 (arm_load_acquire_exclusivesi): Likewise.
33987 (arm_load_acquire_exclusivedi): Likewise.
33988 (arm_store_release_exclusive<mode>): Likewise.
33990 2013-03-25 Catherine Moore <clm@codesourcery.com>
33992 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33993 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33994 * config/mip/predicates.md (lwsp_swsp_operand,
33995 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33996 sb16_operand, db4_operand, db7_operand, ib3_operand,
33997 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33998 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33999 andi16_operand): New predicates.
34000 * config/mips/mips.md (compression): New attribute.
34001 (enabled): New attribute.
34002 (length): Consider compression in computing length.
34003 (shift_compression): New code attribute.
34004 (*add<mode>3): New operands. Record compression.
34005 (sub<mode>3): Likewise.
34006 (one_cmpl<mode>2): Likewise.
34007 (*and<mode>3): Likewise.
34008 (*ior<mode>3): Likewise.
34009 (unnamed pattern for xor): Likewise.
34010 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34011 (*<optab><mode>3): Likewise.
34012 (*mov<mode>_internal: Likewise.
34013 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34014 (mips_unsigned_immediate_p): New.
34015 (umips_lwsp_swsp_address_p): New.
34016 (m16_based_address_p): New.
34017 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34018 (mips_unsigned_immediate_p): New prototype.
34019 (lwsp_swsp_address_p): New prototype.
34020 (m16_based_address_p): New prototype.
34021 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34022 (mips_signed_immediate_p): New function.
34023 (m16_based_address_p): New function.
34024 (lwsp_swsp_address_p): New function.
34025 (mips_print_operand_punctuation): Recognize short delay slot insns
34026 for microMIPS.add<mode>3"
34028 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34031 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34032 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34034 2013-03-25 Richard Biener <rguenther@suse.de>
34036 PR tree-optimization/56689
34037 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34040 2013-03-25 Richard Biener <rguenther@suse.de>
34042 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34044 (memory_references): Likewise.
34045 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34046 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34047 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34048 (gather_mem_refs_in_loops): Fold into ...
34049 (analyze_memory_references): ... this. Move initialization
34050 to tree_ssa_lim_initialize.
34051 (fill_always_executed_in): Rename to ...
34052 (fill_always_executed_in_1): ... this.
34053 (fill_always_executed_in): Move contains_call computation to
34054 this new function from ...
34055 (tree_ssa_lim_initialize): ... here.
34056 (tree_ssa_lim): Call fill_always_executed_in.
34058 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34060 * postreload.c (reload_combine): Fix code detecting returns.
34062 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34064 * function.c (emit_use_return_register_into_block): On cc0 targets,
34065 do not emit the sequence between cc0 setter and user.
34067 2013-03-25 Kai Tietz <ktietz@redhat.com>
34069 * config/i386/predicates.md (local_symbolic_operand): Interpret
34070 dll-imported symbols as none-local.
34072 2013-03-25 Richard Biener <rguenther@suse.de>
34074 * tree-ssa-loop-im.c (struct depend): Remove.
34075 (struct lim_aux_data): Make depends a vec of gimples.
34076 (free_lim_aux_data): Adjust.
34077 (add_dependency): Likewise.
34078 (set_level): Likewise.
34080 2013-03-25 Richard Biener <rguenther@suse.de>
34082 PR middle-end/56434
34083 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34084 the pointer returned by calls with ECF_MALLOC set.
34086 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34088 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34090 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34092 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34093 using MMXMODE mode iterator.
34094 (*move<mode>_internal): Merge with *movv2sf_internal and
34095 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34097 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34099 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34100 (record_last_mem_set_info): Likewise.
34102 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34103 of XNEWVEC followed by memset.
34104 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34106 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34108 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34109 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34110 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34111 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34112 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34113 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34114 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34115 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34116 BARRIER_P instead of GET_CODE.
34118 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34120 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34121 inaccuracy in the probing code.
34123 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34124 (ctrapdi4): Likewise.
34126 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34128 * calls.c (expand_call): Add missing guard to code handling return
34129 of non-BLKmode structures in MSB.
34130 * function.c (expand_function_end): Likewise.
34132 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34134 * combine.c (try_combine): Adjust comment. Do not add the set of
34135 insn #0 if the destination indirectly is set or dies in insn #2.
34136 Tidy up code to distribute a new note.
34138 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34140 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34141 also for alternatives 16 and 17.
34143 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34145 * config/i386/sse.md (*mov<mode>_internal): Merge with
34146 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34147 Emit insn template depending on type attribute. Use
34148 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34149 movd instead of movq mnemonic for interunit moves. Rewrite mode
34150 attribute calculation. Remove unit attribute calculation.
34151 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34152 Set prefix_data16 attribute for DImode ssemov types.
34153 Use Ym instead of y for SSE-MMX conversion alternatives.
34154 Reorder operand constraints.
34156 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34158 * df.h (df_insn_delete): Adjust prototype.
34159 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34160 and let it decide whether mark the basic block dirty.
34161 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34162 * df-scan.c (df_insn_info_delete): New helper function, split
34163 off from df_insn_delete.
34164 (df_scan_free_bb_info): Use it.
34165 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34167 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34168 that the insn is actually an insn and it has a non-NULL basic block.
34169 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34171 2013-03-22 Richard Biener <rguenther@suse.de>
34173 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34175 (mem_ref_alloc): Do not allocate them.
34176 (refs_independent_p): Do not query or maintain a cache.
34178 2013-03-22 Richard Biener <rguenther@suse.de>
34180 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34181 (gather_mem_refs_in_loops): Do not compute it.
34182 (analyze_memory_references): Do not allocate it.
34183 (tree_ssa_lim_finalize): Do not free it.
34184 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34186 2013-03-22 Richard Biener <rguenther@suse.de>
34188 * is-a.h (as_a): Use gcc_checking_assert.
34190 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34192 * config/aarch64/aarch64.c (aarch64_print_operand): New
34193 format specifier for printing a constant in hex.
34194 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34195 format specifier for printing second operand.
34197 2013-03-22 Richard Biener <rguenther@suse.de>
34199 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34201 (gather_mem_refs_in_loops): Perform store accumulation here.
34202 (create_vop_ref_mapping_loop): Remove.
34203 (create_vop_ref_mapping): Likewise.
34204 (analyze_memory_references): Initialize refs_stored_in_loop.
34205 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34206 (record_indep_loop): Remove.
34207 (record_dep_loop): New function.
34208 (ref_indep_loop_p_1): Adjust to only walk over references
34209 in the loop, not its subloops.
34210 (ref_indep_loop_p): Rename to ...
34211 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34212 maintaining a more fine-grained cache.
34213 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34214 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34216 2013-03-22 Richard Biener <rguenther@suse.de>
34218 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34219 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34220 aggregate mem_ref_loc.
34221 (free_mem_ref_locs): Inline into ...
34222 (memref_free): ... this and adjust.
34223 (mem_ref_alloc): Adjust.
34224 (mem_ref_locs_alloc): Remove.
34225 (record_mem_ref_loc): Adjust.
34226 (get_all_locs_in_loop): Rewrite into ...
34227 (for_all_locs_in_loop): ... this iterator.
34228 (rewrite_mem_ref_loc): New functor.
34229 (rewrite_mem_refs): Use for_all_locs_in_loop.
34230 (sm_set_flag_if_changed): New functor.
34231 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34232 (ref_always_accessed): New functor.
34233 (ref_always_accessed_p): Use for_all_locs_in_loop.
34235 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34237 * tree-pass.h (PROP_gimple_lvec): New.
34238 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34239 (init_optimization_passes): Move pass_lower_vector.
34240 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34242 (pass_lower_vector): Provide PROP_gimple_lvec.
34243 (pass_lower_vector_ssa): Likewise.
34244 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34246 2013-03-21 Mark Wielaard <mjw@redhat.com>
34248 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34250 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34252 * config/i386/i386.md (*movdi_internal): Disparage slightly
34253 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34254 conversion alternatives.
34256 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34258 PR middle-end/48087
34259 * diagnostic.def (DK_WERROR): New kind.
34260 * diagnostic.h (werrorcount): Define.
34261 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34262 promoted to DK_ERROR, increment DK_WERROR counter instead of
34264 * toplev.c (toplev_main): Call print_ignored_options even if
34265 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34266 even if just werrorcount is non-zero.
34269 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34271 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34272 (string_cst_pool_decl): New function.
34273 (optimize_one_addr_into_implicit_ptr): New function.
34274 (resolve_addr_in_expr): Optimize DWARF location expression
34275 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34276 which doesn't live in memory, but has DW_AT_location or
34277 DW_AT_const_value, or refers to a string literal, into
34278 DW_OP_GNU_implicit_pointer.
34279 (optimize_location_into_implicit_ptr): New function.
34280 (resolve_addr): If removing DW_AT_location of a variable because
34281 it was DW_OP_addr of address of the variable, but the variable doesn't
34282 live in memory, try to emit const value attribute for the initializer.
34284 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34286 * tree.h (VECTOR_TYPE_P): New macro.
34287 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34288 TYPE_MODE): Use it.
34289 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34290 VEC_COND_EXPR cannot be lvalues.
34291 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34293 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34295 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34296 Restrict the transformation to equal modes.
34298 2013-03-21 Richard Biener <rguenther@suse.de>
34300 PR tree-optimization/39326
34301 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34302 (MEM_ANALYZABLE): Adjust.
34303 (record_mem_ref_loc): Move bitmap ops ...
34304 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34305 unanalyzable refs, do not record locations for it.
34306 (analyze_memory_references): Allocate ref zero as shared
34308 (refs_independent_p): Do not test for unanalyzed mems here.
34309 (ref_indep_loop_p_1): Special-case disambiguation against
34310 the unanalyzed ref.
34311 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34313 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34315 * config/arm/arm-protos.h (tune_params): Add
34316 prefer_neon_for_64bits field.
34317 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34318 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34319 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34320 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34321 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34322 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34323 (arm_option_override): Handle -mneon-for-64bits new option.
34324 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34325 (prefer_neon_for_64bits): Declare new variable.
34326 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34327 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34328 (arch_enabled): Handle new arch types. Remove support for onlya8
34330 (one_cmpldi2): Use new arch names.
34331 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34332 * config/arm/arm.opt (mneon-for-64bits): Add option.
34333 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34334 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34335 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34337 * doc/invoke.texi (-mneon-for-64bits): Document.
34339 2013-03-21 Richard Biener <rguenther@suse.de>
34341 PR tree-optimization/39326
34342 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34343 (sort_bbs_in_loop_postorder_cmp): New function.
34344 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34346 2013-03-21 Richard Biener <rguenther@suse.de>
34348 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34349 (vect_insert_into_interleaving_chain): Likewise.
34350 (vect_drs_dependent_in_basic_block): Inline ...
34351 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34353 (vect_analyze_data_ref_dependence): ... here. Simplify.
34354 (vect_check_interleaving): Simplify.
34355 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34356 (vect_slp_analyze_data_ref_dependences): ... this new function.
34357 (dr_group_sort_cmp): New function.
34358 (vect_analyze_data_ref_accesses): Compute data-reference groups
34359 here instead of in vect_analyze_data_ref_dependence. Use
34360 a more efficient algorithm.
34361 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34362 vect_slp_analyze_data_ref_dependences. Call
34363 vect_analyze_data_ref_accesses earlier.
34364 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34365 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34366 (vect_slp_analyze_data_ref_dependences): New prototype.
34368 2013-03-21 Richard Biener <rguenther@suse.de>
34370 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34371 ref is stored in the loop.
34372 (find_refs_for_sm): Walk only over all stores.
34373 (store_motion_loop): Allocate from lim_bitmap_obstack.
34374 (store_motion): Likewise.
34376 2013-03-21 Richard Biener <rguenther@suse.de>
34378 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34379 Update virtual SSA form.
34381 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34383 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34384 * configure: Regenerate.
34385 * config.in: Regenerate.
34386 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34387 if !HAVE_LD_EH_FRAME_CIEV3.
34389 2013-03-21 Richard Biener <rguenther@suse.de>
34391 * tree-cfg.c (verify_expr_no_block): New function.
34392 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34393 nor DECL_VALUE_EXPR have locations with associated blocks.
34394 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34395 (clear_unused_block_pointer): Remove code dealing with
34396 blocks in DECL_DEBUG_EXPR locations.
34398 2013-03-21 Richard Biener <rguenther@suse.de>
34400 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34401 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34402 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34403 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34404 instead of DECL_DEBUG_EXPR_IS_FROM.
34405 * gimplify.c (gimplify_modify_expr): Likewise.
34406 * tree-cfg.c (verify_expr_location_1): Likewise.
34407 * tree-complex.c (create_one_component_var): Likewise.
34408 * tree-sra.c (create_access_replacement): Likewise.
34409 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34410 (clear_unused_block_pointer): Likewise.
34411 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34412 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34413 * var-tracking.c (var_debug_decl): Likewise.
34414 (track_expr_p): Likewise.
34415 * tree-inline.c (add_local_variables): Likewise. Set
34416 DECL_HAS_DEBUG_EXPR_P after copying it.
34417 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34418 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34420 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34423 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34424 * configure: Regenerate.
34425 * config.in: Regenerate.
34426 * config/i386/i386.md (*movdf_internal): Use
34427 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34428 movd instead of movq mnemonic for interunit moves.
34429 (*movdi_internal): Ditto.
34431 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34433 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34434 (abd<mode>_3): New pattern.
34435 (aba<mode>_3): New pattern.
34436 (fabd<mode>_3): New pattern.
34438 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34440 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34441 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34442 occurrence of REGISTER_PREFIX as its empty string.
34444 2013-03-20 Jeff Law <law@redhat.com>
34446 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34447 addititional equivalences for equality comparisons between an SSA_NAME
34448 and a constant where the SSA_NAME was set from a widening conversion.
34450 2013-03-20 Walter Lee <walt@tilera.com>
34452 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34454 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34456 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34457 depending on type attribute.
34458 (*movti_internal): Ditto.
34459 (*movtf_internal): Ditto.
34460 (*movxf_internal): Ditto.
34461 (*movdf_internal): Ditto.
34462 (*movsf_internal): Ditto.
34464 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34466 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34467 maybe_vex for sselog1 and ssemov types.
34468 (*movdi_internal): Reorder operand constraints.
34469 (*movsi_internal): Ditto. Set prefix attribute to
34470 maybe_vex for sselog1 and ssemov types.
34471 (*movtf_internal): Set prefix attribute to maybe_vex
34472 for sselog1 and ssemov types.
34473 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34474 DImode ssemov types. Reorder operand constraints.
34475 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34476 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34477 attribute for SImode ssemov types. Reorder operand constraints.
34479 2013-03-20 Martin Jambor <mjambor@suse.cz>
34481 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34482 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34484 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34486 * config/rs6000/predicates.md (indexed_address, update_address_mem
34487 update_indexed_address_mem): New predicates.
34488 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34489 attribute for load/store instructions.
34490 * config/rs6000/dfp.md (movsd_store): Likewise.
34491 (movsd_load): Likewise.
34492 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34493 (unnamed HI->DI extend define_insn): Likewise.
34494 (unnamed SI->DI extend define_insn): Likewise.
34495 (unnamed QI->SI extend define_insn): Likewise.
34496 (unnamed QI->HI extend define_insn): Likewise.
34497 (unnamed HI->SI extend define_insn): Likewise.
34498 (unnamed HI->SI extend define_insn): Likewise.
34499 (extendsfdf2_fpr): Likewise.
34500 (movsi_internal1): Likewise.
34501 (movsi_internal1_single): Likewise.
34502 (movhi_internal): Likewise.
34503 (movqi_internal): Likewise.
34504 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34505 attribute for load/store instructions.
34506 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34508 (mov<mode>_softfloat): Likewise.
34509 (mov<mode>_hardfloat32): Likewise.
34510 (mov<mode>_hardfloat64): Likewise.
34511 (mov<mode>_softfloat64): Likewise.
34512 (movdi_internal32): Likewise.
34513 (movdi_internal64): Likewise.
34514 (probe_stack_<mode>): Likewise.
34516 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34518 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34519 floating point, and decimal floating point to reload iterator.
34521 * config/rs6000/constraints.md (wl constraint): New constraints to
34522 return FLOAT_REGS if certain options are used to reduce the number
34523 of separate patterns that exist in the file.
34524 (wx constraint): Likewise.
34525 (wz constraint): Likewise.
34527 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34528 -mdebug=reg, print wg, wl, wx, and wz constraints.
34529 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34530 Initialize the reload functions for 64-bit binary/decimal floating
34532 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34533 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34534 create the buffer on the stack to overcome not having a 32-bit
34536 (rs6000_emit_move): Likewise.
34537 (rs6000_secondary_memory_needed_rtx): Likewise.
34538 (rs6000_alloc_sdmode_stack_slot): Likewise.
34539 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34540 via xxlxor, just like DFmode 0.0.
34542 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34543 define as 1 if we are running on a power7 or newer.
34544 (enum r6000_reg_class_enum): Add new constraints.
34546 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34547 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34548 with other moves by using conditional constraits (wg). Use LFIWZX
34549 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34550 (movsd splitter): Likewise.
34551 (movsd_hardfloat): Likewise.
34552 (movsd_softfloat): Likewise.
34554 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34555 binary and decimal floating point moves.
34556 (fmove_ok): New attributes to combine binary and decimal floating
34557 point moves, and to combine power6x (mfpgpr) moves along normal
34559 (real_value_to_target): Likewise.
34560 (f32_lr): Likewise.
34561 (f32_lm): Likewise.
34562 (f32_li): Likewise.
34563 (f32_sr): Likewise.
34564 (f32_sm): Likewise.
34565 (f32_si): Likewise.
34566 (movsf): Combine binary and decimal floating point moves. Combine
34567 power6x (mfpgpr) moves with other moves by using conditional
34568 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34569 (mov<mode> for SFmode/SDmode); Likewise.
34570 (SFmode/SDmode splitters): Likewise.
34571 (movsf_hardfloat): Likewise.
34572 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34573 (movsf_softfloat): Likewise.
34574 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34576 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34577 wx and wz constraints.
34579 * config/rs6000/constraints.md (wg constraint): New constraint to
34580 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34582 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34585 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34586 -mdebug=reg, print wg, wl, wx, and wz constraints.
34587 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34588 Initialize the reload functions for 64-bit binary/decimal floating
34590 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34591 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34592 create the buffer on the stack to overcome not having a 32-bit
34594 (rs6000_emit_move): Likewise.
34595 (rs6000_secondary_memory_needed_rtx): Likewise.
34596 (rs6000_alloc_sdmode_stack_slot): Likewise.
34597 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34598 via xxlxor, just like DFmode 0.0.
34600 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34601 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34602 with other moves by using conditional constraits (wg). Use LFIWZX
34603 and STFIWX for loading SDmode on power7.
34604 (movdd splitters): Likewise.
34605 (movdd_hardfloat32): Likewise.
34606 (movdd_softfloat32): Likewise.
34607 (movdd_hardfloat64_mfpgpr): Likewise.
34608 (movdd_hardfloat64): Likewise.
34609 (movdd_softfloat64): Likewise.
34611 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34612 64-bit binary and decimal floating point moves.
34613 (FMOVE64X): Likewise.
34614 (movdf): Combine 64-bit binary and decimal floating point moves.
34615 Combine power6x (mfpgpr) moves with other moves by using
34616 conditional constraits (wg).
34617 (mov<mode> for DFmode/DDmode): Likewise.
34618 (DFmode/DDmode splitters): Likewise.
34619 (movdf_hardfloat32): Likewise.
34620 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34621 (movdf_softfloat32): Likewise.
34622 (movdf_hardfloat64_mfpgpr): Likewise.
34623 (movdf_hardfloat64): Likewise.
34624 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34625 (movdf_softfloat64): Likewise.
34626 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34627 (reload_<mode>_load): Move to later in the file so they aren't in
34628 the middle of the floating point move insns.
34629 (reload_<mode>_store): Likewise.
34631 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34634 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34635 constraint if -mdebug=reg.
34636 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34637 Enable using dd reload support if needed.
34639 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34640 binary and decimal floating point moves in rs6000.md.
34641 (movtd_internal): Likewise.
34643 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34644 decimal floating point moves.
34646 (movtf_internal): Likewise.
34647 (mov<mode>_internal, TDmode/TFmode): Likewise.
34648 (movtf_softfloat): Likewise.
34649 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34651 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34652 movdi_internal64, using wg constraint for move direct operations.
34653 (movdi_internal64): Likewise.
34655 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34656 MODES_TIEABLE_P for selected modes. Print the numerical value of
34657 the various virtual registers. Use GPR/FPR first/last values,
34658 instead of hard coding the register numbers. Print which modes
34659 have reload functions registered.
34660 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34661 settings before/after setting cpu, target and subtarget settings.
34662 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34663 and for secondary reload failures in rs6000_secondary_reload_inner.
34664 (rs6000_secondary_reload_fail): Likewise.
34665 (rs6000_secondary_reload_inner): Likewise.
34667 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34668 macros for first/last GPR and FPR registers.
34669 (LAST_GPR_REGNO): Likewise.
34670 (FIRST_FPR_REGNO): Likewise.
34671 (LAST_FPR_REGNO): Likewise.
34673 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34674 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34675 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34676 (vcond<mode><mode>): Likewise.
34677 (vcondu<mode><mode>): Likewise.
34678 (vector_gtu<mode>): Likewise.
34679 (vector_gte<mode>): Likewise.
34680 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34681 to prevent the compiler from converting DImode operations to TImode.
34682 (ior<mode>3): Likewise.
34683 (and<mode>3): Likewise.
34684 (one_cmpl<mode>2): Likewise.
34685 (nor<mode>3): Likewise.
34686 (andc<mode>3): Likewise.
34688 * config/rs6000/constraints.md (wt constraint): New constraint
34689 that returns VSX_REGS if TImode is allowed in VSX registers.
34691 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34692 constant under VSX.
34694 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34695 similar to TImode, but it is restricted to being in the GPRs.
34697 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34698 TImode to occupy a single VSX register.
34700 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34701 -mvsx-timode for power7/power8.
34702 (power7 cpu): Likewise.
34703 (power8 cpu): Likewise.
34705 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34706 sure that TFmode/TDmode take up two registers if they are ever
34707 allowed in the upper VSX registers.
34708 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34710 (rs6000_init_hard_regno_mode_ok): Likewise.
34711 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34712 constraint. Print if LRA is turned on.
34713 (rs6000_option_override_internal): Give an error if -mvsx-timode
34714 and VSX is not enabled.
34715 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34716 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34717 to reg+offset addressing. Use PTImode when checking offset
34718 addresses for validity.
34719 (reg_offset_addressing_ok_p): Likewise.
34720 (rs6000_legitimate_offset_address_p): Likewise.
34721 (rs6000_legitimize_address): Likewise.
34722 (rs6000_legitimize_reload_address): Likewise.
34723 (rs6000_legitimate_address_p): Likewise.
34724 (rs6000_eliminate_indexed_memrefs): Likewise.
34725 (rs6000_emit_move): Likewise.
34726 (rs6000_secondary_reload): Likewise.
34727 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34728 reloads to fpr registers to continue to use reg+offset addressing,
34729 but 64-bit reloads to altivec registers need reg+reg addressing.
34730 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34731 it. Treat LO_SUM like a PLUS operation.
34732 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34733 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34734 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34735 registers to share a register with a smaller sized type, since VSX
34736 puts scalars in the upper 64-bits.
34737 (print_operand): Add support for PTImode.
34738 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34739 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34740 registers, but don't have arithmetic support.
34741 (rs6000_memory_move_cost): Add test for VSX.
34742 (rs6000_opt_masks): Add -mvsx-timode.
34744 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34747 (VSr): Use wt constraint for TImode.
34748 (VSv): Drop TImode support.
34749 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34750 (vsx_movti_64bit): Likewise.
34751 (vsx_movti_32bit): Likewise.
34752 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34753 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34754 one '?' on the appropriate output constraint. Do not allow TImode
34755 logical operations on 32-bit systems.
34756 (vsx_ior<mode>3): Likewise.
34757 (vsx_xor<mode>3): Likewise.
34758 (vsx_one_cmpl<mode>2): Likewise.
34759 (vsx_nor<mode>3): Likewise.
34760 (vsx_andc<mode>3): Likewise.
34761 (vsx_concat_<mode>): Likewise.
34762 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34764 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34765 OPTION_MASK_VSX_TIMODE.
34766 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34767 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34769 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34770 (TI2 iterator): New iterator for TImode, PTImode.
34771 (wd mode attribute): Add values for vector types.
34772 (movti_string): Replace TI move operations with operations for TImode
34773 and PTImode. Add support for TImode being allowed in VSX registers.
34774 (mov<mode>_string, TImode/PTImode): Likewise.
34775 (movti_ppc64): Likewise.
34776 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34777 (TI mode splitters): Likewise.
34779 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34782 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34784 PR tree-optimization/56355
34785 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34786 Also handle integers with undefined overflow.
34788 2013-03-20 Catherine Moore <clm@codesourcery.com>
34789 Maciej W. Rozycki <macro@codesourcery.com>
34790 Tom de Vries <tom@codesourcery.com>
34791 Nathan Sidwell <nathan@codesourcery.com>
34792 Iain Sandoe <iain@codesourcery.com>
34793 Nathan Froyd <froydnj@codesourcery.com>
34794 Chao-ying Fu <fu@mips.com>
34796 * doc/extend.texi: (micromips, nomicromips, nocompression):
34797 Document new function attributes.
34798 * doc/invoke.texi (minterlink-compressed, mmicromips,
34799 m14k, m14ke, m14kec): Document new options.
34800 (minterlink-mips16): Update documentation.
34801 * doc/md.texi (ZC, ZD): Document new constraints.
34802 * configure.ac (gcc_cv_as_micromips): Check if linker
34803 supports the .set micromips directive.
34804 * configure: Regenerate.
34805 * config.in: Regenerate.
34806 * config/mips/mips-tables.opt: Regenerate.
34807 * config/mips/micromips.md: New file.
34808 * constraints.md (ZC, ZD): New constraints.
34809 * config/mips/predicates.md (movep_src_register): New predicate.
34810 (movep_src_operand): New predicate.
34811 (non_volatile_mem_operand): New predicate.
34812 * config/mips/mips.md (multimem): New type.
34813 (length): Differentiate between 17-bit and 18-bit branch offsets.
34814 (MOVEP1, MOVEP2): New mode iterator.
34815 (mov_<load>l): Use ZC constraint.
34816 (mov_<load>r): Likewise.
34817 (mov_<store>l): Likewise.
34818 (mov_<store>r): Likewise.
34819 (*branch_equality<mode>_inverted): Add microMIPS support.
34820 (*branch_equality<mode>): Likewise.
34821 (*jump_absolute): Likewise.
34822 (indirect_jump_<mode>): Likewise.
34823 (tablejump_<mode>): Likewise.
34824 (<optab>_internal): Likewise.
34825 (sibcall_internal): Likewise.
34826 (sibcall_value_internal): Likewise.
34827 (prefetch): Use constraint ZD.
34828 * config/mips/mips.opt (minterlink-compressed): New option.
34829 (minterlink-mips16): Now an alias for minterlink-compressed.
34830 (mmicromips): New option.
34831 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34832 (compare_and_swap_12): Likewise.
34833 (sync_add<mode>): Likewise.
34834 (sync_<optab>_12): Likewise.
34835 (sync_old_<optab>_12): Likewise.
34836 (sync_new_<optab>_12): Likewise.
34837 (sync_nand_12): Likewise.
34838 (sync_old_nand_12): Likewise.
34839 (sync_new_nand_12): Likewise.
34840 (sync_sub<mode>): Likewise.
34841 (sync_old_add<mode>): Likewise.
34842 (sync_old_sub<mode>): Likewise.
34843 (sync_new_add<mode>): Likewise.
34844 (sync_new_sub<mode>): Likewise.
34845 (sync_<optab><mode>): Likewise.
34846 (sync_old_<optab><mode>): Likewise.
34847 (sync_new_<optab><mode>): Likewise.
34848 (sync_nand<mode>): Likewise.
34849 (sync_old_nand<mode>): Likewise.
34850 (sync_new_nand<mode>): Likewise.
34851 (sync_lock_test_and_set<mode>): Likewise.
34852 (test_and_set_12): Likewise.
34853 (atomic_compare_and_swap<mode>): Likewise.
34854 (atomic_exchange<mode>_llsc): Likewise.
34855 (atomic_fetch_add<mode>_llsc): Likewise.
34856 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34857 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34858 (umips_save_restore_pattern_p): Likewise.
34859 (umips_load_store_pair_p): Likewise.
34860 (umips_output_load_store_pair): Likewise.
34861 (umips_movep_target_p): Likewise.
34862 (umips_12bit_offset_address_p): Likewise.
34863 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34864 (mips_base_mips16): Rename this...
34865 (mips_base_compression_flags): ...to this. Update all uses.
34866 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34867 (mips_mips16_decl_p): Delete.
34868 (mips_nomips16_decl_p): Delete.
34869 (mips_get_compress_on_flags): New function.
34870 (mips_get_compress_off_flags): New function.
34871 (mips_get_compress_mode): New function.
34872 (mips_get_compress_on_name): New function.
34873 (mips_get_compress_off_name): New function.
34874 (mips_insert_attributes): Support multiple compression types.
34875 (mips_merge_decl_attributes): Likewise.
34876 (umips_12bit_offset_address_p): New function.
34877 (mips_start_function_definition): Emit .set micromips directive.
34878 (mips_call_may_need_jalx_p): New function.
34879 (mips_function_ok_for_sibcall): Add microMIPS support.
34880 (mips_print_operand_punctuation): Support short delay slots and
34882 (umips_swm_mask, umips_swm_encoding): New.
34883 (umips_build_save_restore): New function.
34884 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34885 (was_mips16_p): Remove.
34886 (old_compression_mode): New.
34887 (mips_set_compression_mode): New function.
34888 (mips_set_current_function): Add microMIPS support.
34889 (mips_option_override): Likewise.
34890 (umips_save_restore_pattern_p): New function.
34891 (umips_output_save_restore): New function.
34892 (umips_load_store_pair_p_1): New function.
34893 (umips_load_store_pair_p): New function.
34894 (umips_output_load_store_pair_1): New function.
34895 (umips_output_load_store_pair): New function.
34896 (umips_movep_target_p) New function.
34897 (mips_prepare_pch_save): Add microMIPS support.
34898 * config/mips/mips.h (TARGET_COMPRESSION): New.
34899 (TARGET_CPU_CPP_BUILTINS): Update macro
34900 to use new compression flags and to support microMIPS.
34901 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34902 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34903 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34904 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34905 (ASM_SPEC): Support mmicromips and mno-micromips.
34906 (M16STORE_REG_P): New macro.
34907 (MIPS_CALL): Support TARGET_MICROMIPS.
34908 (MICROMIPS_J): New macro.
34909 (mips_base_mips16): Rename this...
34910 (mips_base_compression_flags): ...to this.
34911 (UMIPS_12BIT_OFFSET_P): New macro.
34912 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34913 (MULTILIB_DIRNAMES): Likewise.
34914 2013-03-20 Richard Biener <rguenther@suse.de>
34916 PR tree-optimization/56661
34917 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34918 the result does not have to be distinct.
34920 2013-03-20 Richard Biener <rguenther@suse.de>
34922 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34925 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34926 Steven Bosscher <steven@gcc.gnu.org>
34928 PR rtl-optimization/56605
34929 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34931 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34934 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34935 that require movd instead of movq.
34937 2013-03-20 Richard Biener <rguenther@suse.de>
34939 * tree-ssa-structalias.c (struct variable_info): Add pointer
34940 to the first field of an aggregate with sub-vars. Make
34941 this and the pointer to the next subfield its ID.
34942 (vi_next): New function.
34943 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34944 storedanything_id, integer_id): Increment by one.
34945 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34946 get_call_clobber_vi): Adjust.
34947 (solution_set_expand): Simplify and speedup.
34948 (solution_set_add): Inline into ...
34949 (set_union_with_increment): ... this. Adjust accordingly.
34950 (do_sd_constraint): Likewise.
34951 (do_ds_constraint): Likewise.
34952 (do_complex_constraint): Simplify.
34953 (build_pred_graph): Adjust.
34954 (solve_graph): Likewise. Simplify and speedup.
34955 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34956 get_constraint_for_component_ref, get_constraint_for_1,
34957 first_vi_for_offset, first_or_preceding_vi_for_offset,
34958 create_function_info_for, create_variable_info_for_1,
34959 create_variable_info_for, intra_create_variable_infos): Adjust.
34960 (init_base_vars): Push NULL for ID zero.
34961 (compute_points_to_sets): Adjust.
34963 2013-03-20 Richard Biener <rguenther@suse.de>
34965 * cfgloop.c (verify_loop_structure): Streamline and avoid
34966 ICEing on corrupt loop tree.
34967 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34970 2013-03-20 Richard Biener <rguenther@suse.de>
34972 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34973 check whether an SSA update is needed.
34975 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34977 * config/mips/constraints.md (T): Rename to...
34981 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34982 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34984 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34986 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34987 (*subsi3_carryin_uxtw): Likewise.
34989 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34991 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34992 (*rorsi3_insn_uxtw): Likewise.
34994 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34996 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34997 (*extrsi5_insn_uxtw): Likewise.
34999 2013-03-19 Richard Biener <rguenther@suse.de>
35001 PR tree-optimization/56273
35002 * passes.c (init_optimization_passes): Move second VRP after DOM.
35004 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35006 * config/i386/i386.md (*movti_internal): Merge from
35007 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35008 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35009 nox64 isa attributes.
35011 2013-03-18 Richard Biener <rguenther@suse.de>
35013 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35015 (merge_node_constraints): Likewise.
35016 (build_succ_graph): Likewise.
35017 (valid_graph_edge): Inline into single caller.
35018 (unify_nodes): Likewise. Use bitmap_set_bit return value
35020 (scc_visit): Fix formatting and variable use.
35021 (do_sd_constraint): Use gcc_checking_assert.
35022 (do_ds_constraint): Likewise.
35023 (do_complex_constraint): Likewise.
35024 (condense_visit): Likewise. Cleanup.
35025 (dump_pred_graph): New function.
35026 (perform_var_substitution): Dump the pred-graph before
35027 variable substitution.
35028 (find_equivalent_node): Use gcc_checking_assert.
35029 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35031 2013-03-18 Richard Biener <rguenther@suse.de>
35033 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35034 Remove cond_expr_stmt_list argument and do not gimplify the
35036 (vect_loop_versioning): Adjust.
35037 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35038 Cleanup to use less temporaries.
35039 (vect_create_data_ref_ptr): Cleanup.
35041 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35043 PR tree-optimization/56635
35044 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35045 require types_compatible_p types.
35047 2013-03-18 Nick Clifton <nickc@redhat.com>
35049 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35050 spurious backslash.
35052 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35053 Add missing line to comment describing function.
35055 2013-03-18 Richard Biener <rguenther@suse.de>
35057 PR tree-optimization/56210
35058 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35059 Handle string / character search functions.
35060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35062 2013-03-18 Richard Biener <rguenther@suse.de>
35064 PR middle-end/56483
35065 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35066 and implement properly.
35067 * gimple.h (gimple_cond_single_var_p): Remove.
35069 2013-03-18 Richard Biener <rguenther@suse.de>
35071 * tree-data-ref.h (find_data_references_in_loop): Declare.
35072 * tree-data-ref.c (get_references_in_stmt): Use a stack
35073 vector pre-allocated in the callers.
35074 (find_data_references_in_stmt): Adjust.
35075 (graphite_find_data_references_in_stmt): Likewise.
35076 (create_rdg_vertices): Likewise.
35077 (find_data_references_in_loop): Export.
35078 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35079 Compute dependences here...
35080 (vect_analyze_data_refs): ...not here. When we encounter
35081 a non-vectorizable data reference in basic-block vectorization
35082 truncate the data reference vector. Do not bother to
35083 fixup data-dependence information for gather loads.
35084 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35085 of data references, as reported.
35087 2013-03-18 Richard Biener <rguenther@suse.de>
35089 PR tree-optimization/3713
35090 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35091 has_constants and expr.
35092 (stmt_has_constants): Properly valueize SSA names when deciding
35093 whether the stmt has constants.
35095 2013-03-18 Richard Biener <rguenther@suse.de>
35097 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35098 whole function when there is nothing to do.
35099 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35100 * tree-vectorizer.c (vectorize_loops): Update virtual and
35101 loop-closed SSA once.
35102 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35104 2013-03-18 Richard Biener <rguenther@suse.de>
35106 PR middle-end/56113
35107 * domwalk.c (bb_postorder): New global static.
35108 (cmp_bb_postorder): New function.
35109 (walk_dominator_tree): Replace scheme imposing an order for
35110 visiting dominator sons by one sorting them at the time they
35111 are pushed on the stack.
35113 2013-03-18 Richard Biener <rguenther@suse.de>
35115 PR tree-optimization/39326
35116 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35117 (struct mem_ref): Replace mem member with ao_ref typed member.
35118 (MEM_ANALYZABLE): Adjust.
35119 (memref_eq): Likewise.
35120 (mem_ref_alloc): Likewise.
35121 (gather_mem_refs_stmt): Likewise.
35122 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35123 (execute_sm_if_changed_flag_set): Adjust.
35124 (execute_sm): Likewise.
35125 (ref_always_accessed_p): Likewise.
35126 (refs_independent_p): Likewise.
35127 (can_sm_ref_p): Likewise.
35129 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35132 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35133 return 1 even for !unsignedp.
35135 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35137 * config/i386/i386.md (isa): Add x64 and nox64.
35138 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35139 (*pushtf): Enable *roF alternative for x64 isa only.
35140 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35141 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35142 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35143 (*movtf_internal): Merge from *movtf_internal_rex64 and
35144 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35145 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35146 nox64 isa attributes.
35147 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35148 nox64 isa attributes.
35149 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35151 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35153 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35155 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35158 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35159 class names. Remove trailing comma after "ALL_REGS".
35161 2013-03-16 Jan Hubicka <jh@suse.cz>
35163 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35164 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35165 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35166 of cgraph_get_create_node.
35167 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35169 2013-03-16 Jason Merrill <jason@redhat.com>
35172 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35173 with DW_AT_default_value.
35175 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35177 * BASE-VER: Set to 4.9.0.
35179 2013-03-14 Andi Kleen <ak@linux.intel.com>
35182 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35183 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35184 Document _x* TSX intrinsics.
35186 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35187 David Holsgrove <david.holsgrove@xilinx.com>
35189 * configure.ac: Add MicroBlaze TLS support detection.
35190 * configure: Regenerate.
35191 * config/microblaze/microblaze-protos.h
35192 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35193 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35194 * config/microblaze/microblaze.c (microblaze_address_type): Add
35195 ADDRESS_TLS and tls_reloc address types.
35196 (microblaze_address_info): Add tls_reloc.
35197 (TARGET_HAVE_TLS): Define.
35198 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35199 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35200 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35201 load_tls_operand, microblaze_call_tls_get_addr,
35202 microblaze_legitimize_tls_address): New functions.
35203 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35204 (get_base_reg): Use microblaze_tls_symbol_p.
35205 (microblaze_classify_address): Handle TLS.
35206 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35207 label_mentioned_p and microblaze_tls_referenced_p.
35208 (microblaze_legitimize_address): Handle TLS.
35209 (microblaze_address_insns): Handle ADDRESS_TLS.
35210 (pic_address_needs_scratch): Handle TLS.
35211 (print_operand_address): Handle TLS.
35212 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35213 (microblaze_expand_move): Handle TLS.
35214 (microblaze_legitimate_constant_p): Check
35215 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35216 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35217 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35218 (PIC_OFFSET_TABLE_REGNUM): Set.
35219 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35220 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35221 (addsi3, movsi_internal2, movdf_internal): Update constraints
35222 * config/microblaze/predicates.md (arith_plus_operand): Define
35223 (move_operand): Redefine as move_src_operand,
35224 check microblaze_tls_referenced_p.
35226 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35228 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35229 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35231 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35233 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35236 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35238 PR tree-optimization/53265
35239 * common.opt (Waggressive-loop-optimizations): New option.
35240 * tree-ssa-loop-niter.c: Include tree-pass.h.
35241 (do_warn_aggressive_loop_optimizations): New function.
35242 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35243 if number_of_latch_executions returned constant.
35244 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35245 early. If number_of_latch_executions returned constant, set
35246 nb_iterations_upper_bound back to it.
35247 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35249 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35250 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35252 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35253 (MULTILIB_OSDIRNAMES): Set.
35254 * genmultilib: If defaultosdirname doesn't start with :: , set
35255 defaultosdirname2 instead, clear it and emit two . multilib_raw
35256 entries instead of just one.
35258 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35260 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35261 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35262 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35263 (SUBTARGET_OVERRIDE_OPTIONS): New.
35265 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35268 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35269 (musermode): Convert to Var(TARGET_USERMODE).
35270 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35271 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35272 * config/sh/sh.c (sh_option_override): Use
35273 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35274 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35276 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35278 (udivsi3_i4_single, divsi3_i4_single): Use
35279 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35281 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35283 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35286 2013-03-13 Richard Biener <rguenther@suse.de>
35288 PR tree-optimization/56608
35289 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35290 calls when vectorizing basic-blocks.
35292 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35295 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35298 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35300 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35302 2013-03-11 Jan Hubicka <jh@suse.cz>
35305 * lto-streamer-out.c (output_symbol_p): Skip references from
35306 constructors of external variables.
35308 2013-03-11 Jan Hubicka <jh@suse.cz>
35310 PR middle-end/56571
35311 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35313 * emit-rtl.c (verify_rtx_sharing): Likewise.
35314 (copy_insn_1): Likewise.
35315 * rtl.c (copy_rtx): Likewise.
35317 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35320 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35321 output_operand_lossage message.
35323 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35326 * arm.c (shift_op): Validate RTL pattern on the fly.
35327 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35330 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35333 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35334 new call patterns that clobber %fr12.
35335 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35336 split and postreload patterns.
35337 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35338 registers %fr12 and %fr12R as call used.
35340 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35342 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35343 (canon_address, record_store, replace_read, check_mem_read_rtx,
35344 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35345 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35346 rest_of_handle_dse): Likewise.
35348 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35350 PR middle-end/56524
35351 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35353 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35354 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35355 (save_optabs_if_changed): Replace with...
35356 (init_tree_optimization_optabs): ...this.
35357 * optabs.c (save_optabs_if_changed): Rename to...
35358 (init_tree_optimization_optabs): ...this. Take the optimization node
35359 as argument. Do nothing if the base optabs are already correct.
35360 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35361 to recompute optabs.
35362 * function.h (function): Remove optabs field.
35363 * function.c (invoke_set_current_function_hook): Call
35364 init_tree_optimization_optabs. Use the result to initialize
35367 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35369 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35370 if GTMA_HAS_NO_INSTRUMENTATION.
35371 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35372 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35373 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35374 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35375 GTMA_HAS_NO_INSTRUMENTATION.
35377 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35379 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35382 2013-03-08 Marek Polacek <polacek@redhat.com>
35383 Jakub Jelinek <jakub@redhat.com>
35385 PR tree-optimization/56478
35386 * predict.c (is_comparison_with_loop_invariant_p): Change the
35387 type of loop_step to tree.
35388 (predict_loops): Adjust.
35389 (predict_iv_comparison): Perform the computations on double_ints.
35391 2013-03-08 Richard Biener <rguenther@suse.de>
35393 PR tree-optimization/56570
35394 * tree-cfg.c (verify_expr_location_1): Verify locations for
35396 * tree-sra.c (create_access_replacement): Strip locations
35397 from DECL_DEBUG_EXPRs.
35399 2013-03-08 Richard Biener <rguenther@suse.de>
35401 * tree-inline.c (expand_call_inline): Do not associate
35402 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35403 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35405 2013-03-08 Richard Biener <rguenther@suse.de>
35407 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35408 or block changes with -Og. Fix for location / block encoding
35409 changes and PHI arguments with locations.
35411 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35413 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35415 (struct output_info): Likewise.
35416 (register_overhead): Remove bad gcc_assert.
35417 (bitmap_find_bit): If there is only a single bitmap element, do not
35418 count a miss as a search.
35419 (print_statistics): Update for counter type changes.
35420 (dump_bitmap_statistics): Likewise. Print headers such that they
35421 are properly lined up with the printed counters.
35423 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35425 PR tree-optimization/56559
35426 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35427 check that it has only a single use.
35429 2013-03-07 Richard Biener <rguenther@suse.de>
35431 * doc/invoke.texi (fwhole-program): Discourage use in combination
35434 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35436 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35438 PR tree-optimization/56539
35439 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35440 instead of GSI_CONTINUE_LINKING as last argument to
35441 force_gimple_operand_gsi. Adjust function comment.
35443 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35446 PR middle-end/56548
35447 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35448 promoted mode, convert the result back to the original mode.
35450 2013-03-06 Richard Biener <rguenther@suse.de>
35452 PR middle-end/56294
35453 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35454 (insert_updated_phi_nodes_compare_uids): New function.
35455 (update_ssa): Sort symbols_to_rename after UID before
35456 traversing it to insert PHI nodes.
35458 2013-03-06 Richard Biener <rguenther@suse.de>
35460 PR middle-end/50494
35461 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35462 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35465 2013-02-13 Richard Biener <rguenther@suse.de>
35468 * varasm.c (output_constant_def_1): Get the decl representing
35469 the constant as argument.
35470 (output_constant_def): Wrap output_constant_def_1.
35471 (make_decl_rtl): Use output_constant_def_1 with the decl
35472 representing the constant.
35473 (build_constant_desc): Optionally re-use a decl already
35474 representing the constant.
35475 (tree_output_constant_def): Adjust.
35477 2013-03-06 Joey Ye <joey.ye@arm.com>
35480 * gcc.c (convert_white_space): New function.
35481 (main): Handles white space in function name.
35483 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35486 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35487 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35488 to SH_DIV_CALL_TABLE for TARGET_SH2.
35489 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35491 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35492 call-table options.
35494 2013-03-05 Sterling Augustine <saugustine@google.com>
35495 Cary Coutant <ccoutant@google.com>
35498 * dwarf2out.c (resolve_addr): Don't call
35499 remove_loc_list_addr_table_entries a second time for the same
35502 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35505 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35506 (avoid_complex_debug_insns): New function.
35507 (expand_debug_locations): Call it.
35509 PR rtl-optimization/56484
35510 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35511 lifetimes of hard registers on small register class machines.
35513 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35515 * config/microblaze/microblaze-protos.h: Rename
35516 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35517 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35519 (microblaze_fast_interrupt_function_p): New function.
35520 (microblaze_is_interrupt_handler): Rename to
35521 microblaze_is_interrupt_variant and add fast_interrupt check.
35522 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35523 (save_restore_insns): Likewise.
35524 (compute_frame_size): Likewise.
35525 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35526 (microblaze_globalize_label): Likewise.
35527 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35528 * config/microblaze/microblaze.md: Use wrapper
35529 microblaze_is_interrupt_variant.
35531 2013-03-05 Kai Tietz <ktietz@redhat.com>
35533 * sdbout.c (sdbout_one_type): Switch to current function's section
35534 supporting cold/hot.
35536 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35538 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35541 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35543 PR middle-end/56461
35544 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35545 if VALGRIND_GET_VBITS is defined, temporarily make object
35546 memory all defined, and restore previous valgrind addressability
35547 and definability afterwards. Free this_object at the end.
35549 PR middle-end/56461
35550 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35551 right before calling lra_create_live_ranges, also call it
35552 when clearing live_p. Only call lra_clear_live_ranges
35553 at the end if live_p.
35555 PR middle-end/56461
35556 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35558 2013-03-05 Richard Biener <rguenther@suse.de>
35560 PR tree-optimization/56521
35561 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35564 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35567 * except.h (remove_unreachable_eh_regions): New prototype.
35568 * except.c (remove_eh_handler_splicer): New function, split out
35569 of remove_eh_handler.
35570 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35571 warning about running it on many EH regions one at a time.
35572 (remove_unreachable_eh_regions_worker): New function, walk the
35573 EH tree in depth-first order and remove non-marked regions.
35574 (remove_unreachable_eh_regions): New function.
35575 * tree-eh.c (mark_reachable_handlers): New function, split out
35576 from remove_unreachable_handlers.
35577 (remove_unreachable_handlers): Use mark_reachable_handlers and
35578 remove_unreachable_eh_regions.
35579 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35580 and remove_unreachable_eh_regions.
35582 2013-03-05 Richard Biener <rguenther@suse.de>
35584 PR middle-end/56525
35585 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35586 not freeing them until the end.
35588 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35590 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35592 2013-03-05 Richard Biener <rguenther@suse.de>
35594 PR tree-optimization/56270
35595 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35596 of loads after scheduling an SLP instance.
35598 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35600 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35602 (check_gcc_parallelize): Run guality.exp as a separate job from
35603 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35604 struct-layout-1.exp with stackalign.exp.
35606 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35608 PR middle-end/56461
35609 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35610 load_index sbitmap even if some bit in it isn't set.
35612 PR middle-end/56461
35613 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35614 (discover_iteration_bound_by_body_walk): Change queues to
35615 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35616 spelling in comment. Call safe_push on queues[bound_index] directly.
35617 Release queues[queue_index] in every iteration unconditionally.
35618 Release bounds vector.
35620 PR middle-end/56461
35621 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35622 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35623 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35626 2013-03-05 Richard Biener <rguenther@suse.de>
35629 * tree-inline.c (remap_blocks_to_null): New function.
35630 (expand_call_inline): When expanding a call stmt without
35631 an associated block inline remap all callee blocks to NULL.
35633 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35635 PR rtl-optimization/56494
35636 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35637 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35638 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35640 PR middle-end/56461
35641 * sel-sched-ir.c (free_sched_pools): Release
35642 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35643 if succs_info_pool.max_top isn't -1.
35646 * opts.c (opts_obstack, opts_concat): Moved to...
35647 * opts-common.c (opts_obstack, opts_concat): ... here.
35649 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35651 PR middle-end/56461
35652 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35654 2013-03-04 Martin Jambor <mjambor@suse.cz>
35656 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35657 all appropriate places.
35659 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35661 PR tree-optimization/56424
35662 * ipa-split.c (split_function): Do not set the RSO flag if result is
35663 not by reference and its type is a register type.
35665 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35667 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35668 (microblaze_legitimate_pic_operand): Likewise
35669 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35670 new function microblaze_legitimate_pic_operand
35671 * config/microblaze/microblaze-protos.h
35672 (microblaze_legitimate_pic_operand): Declare.
35674 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35676 * config/microblaze/predicates.md (call_insn_simple_operand):
35677 New predicate for supported rtx code types.
35678 * config/microblaze/microblaze.md (call_internal1): Use
35679 call_insn_simple_operand predicate.
35681 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35683 PR middle-end/56461
35684 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35685 partitions.ordered_remove.
35687 PR middle-end/56461
35688 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35689 vec_oprnds0.create (1) for modifier == NONE.
35691 PR middle-end/56461
35692 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35693 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35694 vec_oprnds1 right before pushing anything to it for
35697 PR middle-end/56461
35698 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35699 set nbbs to 0 instead of having separate code path.
35700 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35701 instead of false as last argument if returning NULL.
35703 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35705 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35706 the attribute is now called "target" instead of "option".
35707 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35708 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35709 attribute/pragma name for TARGET_OPTION_VALID_P and
35710 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35711 * doc/tm.texi: Regenerated.
35713 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35715 * config/microblaze/microblaze.c:
35716 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35717 * config/microblaze/microblaze.h: Add -mxl-reorder to
35719 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35720 instructions emitted if TARGET_REORDER.
35721 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35722 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35725 2013-03-01 Xinliang David Li <davidxl@google.com>
35727 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35730 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35732 PR middle-end/56461
35733 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35734 vector even when returning true. Fix up function comment formatting.
35736 PR middle-end/56461
35737 * ira-build.c (ira_loop_nodes_count): New variable.
35738 (create_loop_tree_nodes): Initialize it.
35739 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35741 PR middle-end/56461
35742 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35743 method on dr_chain and result_chain.
35744 * tree-vect-stmts.c (vectorizable_store): Only call
35745 result_chain.create if j == 0.
35747 PR middle-end/56461
35748 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35749 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35750 before overwriting it.
35752 2013-03-01 Tobias Burnus <burnus@net-b.de>
35754 * doc/extended.texi (C Extensions): Change order in @menu
35756 (Other MIPS Built-in Functions): Move last MIPS entry before
35757 "picoChip Built-in Functions".
35758 (SH Built-in Functions): Move after RX Built-in Functions.
35759 * doc/gcc.texi (Introduction): Change order in @menu
35761 * doc/md.texi (Constraints): Ditto.
35762 * gty.texi (Type Information): Ditto.
35763 (User-provided marking routines for template types): Make
35765 * doc/invoke.texi (AArch64 Options): Move before
35766 "Adapteva Epiphany Options".
35768 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35769 Jakub Jelinek <jakub@redhat.com>
35772 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35773 no_address_safety_analysis attribute.
35774 * doc/extend.texi (no_address_safety_attribute): Rename to
35775 no_sanitize_address attribute, mention no_address_safety_analysis
35776 attribute as deprecated alias.
35778 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35780 PR middle-end/56461
35781 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35782 type to vec<vec<tree> > *.
35783 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35784 to be vec<tree> instead of vec<tree> *, set vec_defs
35785 to vNULL and call vec_defs.create (number_of_vects), adjust other
35787 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35788 vectorizable_condition): Adjust vect_get_slp_defs callers.
35790 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35792 * config/aarch64/aarch64.c
35793 (aarch64_float_const_representable): Remove unused variable.
35795 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35797 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35799 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35801 * config/aarch64/aarch64-builtins.c
35802 (aarch64_init_simd_builtins): Make static.
35804 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35806 * config/aarch64/aarch64.c
35807 (aarch64_simd_make_constant): Make static.
35809 2013-02-28 Martin Jambor <mjambor@suse.cz>
35811 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35812 with no initialization to the RHS of debug statements.
35814 2013-02-28 Martin Jambor <mjambor@suse.cz>
35816 PR tree-optimization/56294
35817 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35819 (get_access_replacement): Do not call create_access_replacement.
35820 Assert a replacement exists.
35821 (get_repl_default_def_ssa_name): Create the replacement declaration
35824 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35826 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35827 final_end_function.
35829 2013-02-28 Marek Polacek <polacek@redhat.com>
35831 PR rtl-optimization/56466
35832 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35833 if we're changing a loop.
35834 (peel_loops_completely): Likewise.
35836 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35839 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35841 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35844 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35845 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35846 INTX_FTYPE_FX, FX_FTYPE_INTX.
35847 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35849 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35851 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35852 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35853 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35854 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35855 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35856 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35857 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35858 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35859 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35860 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35861 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35862 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35863 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35864 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35865 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35866 (avrxmega6): Increase max flash segments from 5 to 6.
35867 * config/avr/t-multilib: Regenerate.
35868 * config/avr/avr-tables.opt: Regenerate.
35869 * doc/avr-mmcu.texi: Regenerate.
35871 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35873 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35874 (avr_device_to_arch): Rename to avr_device_to_ld.
35875 (avr_device_to_as): New prototype.
35876 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35877 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35878 * config/avr/driver-avr.c (avr_device_to_as): New.
35879 (avr_device_to_arch): Rename to avr_device_to_ld.
35881 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35883 PR middle-end/56461
35884 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35885 method on dr_chain and result_chain.
35887 PR middle-end/56461
35888 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35889 pointer_set_destroy on not_executed_last_iteration.
35891 PR middle-end/56461
35892 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35894 PR middle-end/56461
35895 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35896 FOR_EACH_DEFINED_FUNCTION when freeing state.
35898 PR middle-end/56461
35899 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35901 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35904 PR middle-end/56461
35905 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35906 known_aggs[i].items and release known_aggs vector.
35908 PR middle-end/56461
35909 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35911 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35913 * config/microblaze/microblaze.c (microblaze_emit_compare):
35914 Use xor for EQ/NE comparisions.
35915 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35916 (cbranchsf4): Adjust operator to comparison_operator.
35918 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35920 PR middle-end/56461
35921 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35923 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35924 vec_safe_push, always update *slot.
35925 (redirect_edge_var_map_clear): Use vec_free.
35926 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35927 (free_var_map_entry): Use vec_free.
35928 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35929 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35931 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35933 PR middle-end/45472
35934 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35935 when the may_trap_p bit of the exprs being merged differs.
35936 Reorder tests for speculativeness in the logical and operator.
35938 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35940 * incpath.c (add_standard_paths): Use reconcat instead of concat
35941 where appropriate and avoid leaking memory.
35943 * opts.h: Include obstack.h.
35944 (opts_concat): New prototype.
35945 (opts_obstack): New declaration.
35946 * opts.c (opts_concat): New function.
35947 (opts_obstack): New variable.
35948 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35949 (finish_options): Use opts_concat instead of concat
35950 and XOBNEWVEC instead of XNEWVEC.
35951 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35952 generate_option): Likewise.
35953 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35954 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35957 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35958 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35960 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35962 PR middle-end/56461
35963 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35965 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35967 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35968 (arm_block_move_unaligned_straight): Likewise.
35969 (arm_adjust_block_mem): Likewise.
35971 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35974 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35975 temp, cond and label.
35976 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35979 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35980 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35983 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35984 of prologue/epilogue functions.
35987 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35988 Remove unused variable cfa_offset.
35989 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35992 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35993 type promotion to unsigned.
35996 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35997 for HOST_WIDE_INT of 32 bit / same size as int.
35998 (arm_block_move_unaligned_straight): Likewise.
35999 (arm_adjust_block_mem): Likewise.
36002 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36005 2013-02-26 Marek Polacek <polacek@redhat.com>
36007 PR tree-optimization/56426
36008 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36010 2013-02-26 Richard Biener <rguenther@suse.de>
36013 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36014 unused variable loops.
36016 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36018 PR tree-optimization/56448
36019 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36020 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36021 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36022 later operands of the references, or even first operand for
36023 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36025 PR tree-optimization/56443
36026 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36027 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36028 to type_for_mode langhook.
36030 2013-02-25 Matt Turner <mattst88@gmail.com>
36032 * doc/invoke.texi: Document r4700.
36034 2013-02-25 Richard Biener <rguenther@suse.de>
36036 PR tree-optimization/56175
36037 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36039 (simplify_bitwise_binary): ... here. Also guard the conversion
36040 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36042 2013-02-25 Catherine Moore <clm@codesourcery.com>
36045 2013-02-24 Catherine Moore <clm@codesourcery.com>
36046 Maciej W. Rozycki <macro@codesourcery.com>
36047 Tom de Vries <tom@codesourcery.com>
36048 Nathan Sidwell <nathan@codesourcery.com>
36049 Iain Sandoe <iain@codesourcery.com>
36050 Nathan Froyd <froydnj@codesourcery.com>
36051 Chao-ying Fu <fu@mips.com>
36053 * doc/extend.texi: (micromips, nomicromips, nocompression):
36054 Document new function attributes.
36055 * doc/invoke.texi (minterlink-compressed, mmicromips,
36056 m14k, m14ke, m14kec): Document new options.
36057 (minterlink-mips16): Update documentation.
36058 * doc/md.texi (ZC, ZD): Document new constraints.
36059 * configure.ac (gcc_cv_as_micromips): Check if linker
36060 supports the .set micromips directive.
36061 * configure: Regenerate.
36062 * config.in: Regenerate.
36063 * config/mips/mips-tables.opt: Regenerate.
36064 * config/mips/micromips.md: New file.
36065 * constraints.md (ZC, AD): New constraints.
36066 * config/mips/predicates.md (movep_src_register): New predicate.
36067 (movep_src_operand): New predicate.
36068 (non_volatile_mem_operand): New predicate.
36069 * config/mips/mips.md (multimem): New type.
36070 (length): Differentiate between 17-bit and 18-bit branch offsets.
36071 (MOVEP1, MOVEP2): New mode iterator.
36072 (mov_<load>l): Use ZC constraint.
36073 (mov_<load>r): Likewise.
36074 (mov_<store>l): Likewise.
36075 (mov_<store>r): Likewise.
36076 (*branch_equality<mode>_inverted): Add microMIPS support.
36077 (*branch_equality<mode>): Likewise.
36078 (*jump_absolute): Likewise.
36079 (indirect_jump_<mode>): Likewise.
36080 (tablejump_<mode>): Likewise.
36081 (<optab>_internal): Likewise.
36082 (sibcall_internal): Likewise.
36083 (sibcall_value_internal): Likewise.
36084 (prefetch): Use constraint ZD.
36085 * config/mips/mips.opt (minterlink-compressed): New option.
36086 (minterlink-mips16): Now an alias for minterlink-compressed.
36087 (mmicromips): New option.
36088 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36089 (compare_and_swap_12): Likewise.
36090 (sync_add<mode>): Likewise.
36091 (sync_<optab>_12): Likewise.
36092 (sync_old_<optab>_12): Likewise.
36093 (sync_new_<optab>_12): Likewise.
36094 (sync_nand_12): Likewise.
36095 (sync_old_nand_12): Likewise.
36096 (sync_new_nand_12): Likewise.
36097 (sync_sub<mode>): Likewise.
36098 (sync_old_add<mode>): Likewise.
36099 (sync_old_sub<mode>): Likewise.
36100 (sync_new_add<mode>): Likewise.
36101 (sync_new_sub<mode>): Likewise.
36102 (sync_<optab><mode>): Likewise.
36103 (sync_old_<optab><mode>): Likewise.
36104 (sync_new_<optab><mode>): Likewise.
36105 (sync_nand<mode>): Likewise.
36106 (sync_old_nand<mode>): Likewise.
36107 (sync_new_nand<mode>): Likewise.
36108 (sync_lock_test_and_set<mode>): Likewise.
36109 (test_and_set_12): Likewise.
36110 (atomic_compare_and_swap<mode>): Likewise.
36111 (atomic_exchange<mode>_llsc): Likewise.
36112 (atomic_fetch_add<mode>_llsc): Likewise.
36113 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36114 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36115 (umips_save_restore_pattern_p): Likewise.
36116 (umips_load_store_pair_p): Likewise.
36117 (umips_output_load_store_pair): Likewise.
36118 (umips_movep_target_p): Likewise.
36119 (umips_12bit_offset_address_p): Likewise.
36120 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36121 (mips_base_mips16): Rename this...
36122 (mips_base_compression_flags): ...to this. Update all uses.
36123 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36124 (mips_mips16_decl_p): Delete.
36125 (mips_nomips16_decl_p): Delete.
36126 (mips_get_compress_on_flags): New function.
36127 (mips_get_compress_off_flags): New function.
36128 (mips_get_compress_mode): New function.
36129 (mips_get_compress_on_name): New function.
36130 (mips_get_compress_off_name): New function.
36131 (mips_insert_attributes): Support multiple compression types.
36132 (mips_merge_decl_attributes): Likewise.
36133 (umips_12bit_offset_address_p): New function.
36134 (mips_start_function_definition): Emit .set micromips directive.
36135 (mips_call_may_need_jalx_p): New function.
36136 (mips_function_ok_for_sibcall): Add microMIPS support.
36137 (mips_print_operand_punctuation): Support short delay slots and
36139 (umips_swm_mask, umips_swm_encoding): New.
36140 (umips_build_save_restore): New function.
36141 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36142 (was_mips16_p): Remove.
36143 (old_compression_mode): New.
36144 (mips_set_compression_mode): New function.
36145 (mips_set_current_function): Add microMIPS support.
36146 (mips_option_override): Likewise.
36147 (umips_save_restore_pattern_p): New function.
36148 (umips_output_save_restore): New function.
36149 (umips_load_store_pair_p_1): New function.
36150 (umips_load_store_pair_p): New function.
36151 (umips_output_load_store_pair_1): New function.
36152 (umips_output_load_store_pair): New function.
36153 (umips_movep_target_p) New function.
36154 (mips_prepare_pch_save): Add microMIPS support.
36155 * config/mips/mips.h (TARGET_COMPRESSION): New.
36156 (TARGET_CPU_CPP_BUILTINS): Update macro
36157 to use new compression flags and to support microMIPS.
36158 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36159 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36160 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36161 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36162 (ASM_SPEC): Support mmicromips and mno-micromips.
36163 (M16STORE_REG_P): New macro.
36164 (MIPS_CALL): Support TARGET_MICROMIPS.
36165 (MICROMIPS_J): New macro.
36166 (mips_base_mips16): Rename this...
36167 (mips_base_compression_flags): ...to this.
36168 (UMIPS_12BIT_OFFSET_P): New macro.
36169 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36170 (MULTILIB_DIRNAMES): Likewise.
36172 2013-02-25 Tom de Vries <tom@codesourcery.com>
36174 PR rtl-optimization/56131
36175 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36176 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36177 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36179 2013-02-25 Tobias Burnus <burnus@net-b.de>
36181 * doc/invoke.texi (-fsanitize=): Move from optimization
36182 to debugging options.
36184 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36186 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36188 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36189 Alexander Monakov <amonakov@ispras.ru>
36191 PR middle-end/56077
36192 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36193 flush pending lists also on non-jumps. Adjust comment.
36195 2013-02-24 Catherine Moore <clm@codesourcery.com>
36196 Maciej W. Rozycki <macro@codesourcery.com>
36197 Tom de Vries <tom@codesourcery.com>
36198 Nathan Sidwell <nathan@codesourcery.com>
36199 Iain Sandoe <iain@codesourcery.com>
36200 Nathan Froyd <froydnj@codesourcery.com>
36201 Chao-ying Fu <fu@mips.com>
36203 * doc/extend.texi: (micromips, nomicromips, nocompression):
36204 Document new function attributes.
36205 * doc/invoke.texi (minterlink-compressed, mmicromips,
36206 m14k, m14ke, m14kec): Document new options.
36207 (minterlink-mips16): Update documentation.
36208 * doc/md.texi (ZC, ZD): Document new constraints.
36209 * configure.ac (gcc_cv_as_micromips): Check if linker
36210 supports the .set micromips directive.
36211 * configure: Regenerate.
36212 * config.in: Regenerate.
36213 * config/mips/mips-tables.opt: Regenerate.
36214 * config/mips/micromips.md: New file.
36215 * constraints.md (ZC, AD): New constraints.
36216 * config/mips/predicates.md (movep_src_register): New predicate.
36217 (movep_src_operand): New predicate.
36218 (non_volatile_mem_operand): New predicate.
36219 * config/mips/mips.md (multimem): New type.
36220 (length): Differentiate between 17-bit and 18-bit branch offsets.
36221 (MOVEP1, MOVEP2): New mode iterator.
36222 (mov_<load>l): Use ZC constraint.
36223 (mov_<load>r): Likewise.
36224 (mov_<store>l): Likewise.
36225 (mov_<store>r): Likewise.
36226 (*branch_equality<mode>_inverted): Add microMIPS support.
36227 (*branch_equality<mode>): Likewise.
36228 (*jump_absolute): Likewise.
36229 (indirect_jump_<mode>): Likewise.
36230 (tablejump_<mode>): Likewise.
36231 (<optab>_internal): Likewise.
36232 (sibcall_internal): Likewise.
36233 (sibcall_value_internal): Likewise.
36234 (prefetch): Use constraint ZD.
36235 * config/mips/mips.opt (minterlink-compressed): New option.
36236 (minterlink-mips16): Now an alias for minterlink-compressed.
36237 (mmicromips): New option.
36238 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36239 (compare_and_swap_12): Likewise.
36240 (sync_add<mode>): Likewise.
36241 (sync_<optab>_12): Likewise.
36242 (sync_old_<optab>_12): Likewise.
36243 (sync_new_<optab>_12): Likewise.
36244 (sync_nand_12): Likewise.
36245 (sync_old_nand_12): Likewise.
36246 (sync_new_nand_12): Likewise.
36247 (sync_sub<mode>): Likewise.
36248 (sync_old_add<mode>): Likewise.
36249 (sync_old_sub<mode>): Likewise.
36250 (sync_new_add<mode>): Likewise.
36251 (sync_new_sub<mode>): Likewise.
36252 (sync_<optab><mode>): Likewise.
36253 (sync_old_<optab><mode>): Likewise.
36254 (sync_new_<optab><mode>): Likewise.
36255 (sync_nand<mode>): Likewise.
36256 (sync_old_nand<mode>): Likewise.
36257 (sync_new_nand<mode>): Likewise.
36258 (sync_lock_test_and_set<mode>): Likewise.
36259 (test_and_set_12): Likewise.
36260 (atomic_compare_and_swap<mode>): Likewise.
36261 (atomic_exchange<mode>_llsc): Likewise.
36262 (atomic_fetch_add<mode>_llsc): Likewise.
36263 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36264 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36265 (umips_save_restore_pattern_p): Likewise.
36266 (umips_load_store_pair_p): Likewise.
36267 (umips_output_load_store_pair): Likewise.
36268 (umips_movep_target_p): Likewise.
36269 (umips_12bit_offset_address_p): Likewise.
36270 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36271 (mips_base_mips16): Rename this...
36272 (mips_base_compression_flags): ...to this. Update all uses.
36273 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36274 (mips_mips16_decl_p): Delete.
36275 (mips_nomips16_decl_p): Delete.
36276 (mips_get_compress_on_flags): New function.
36277 (mips_get_compress_off_flags): New function.
36278 (mips_get_compress_mode): New function.
36279 (mips_get_compress_on_name): New function.
36280 (mips_get_compress_off_name): New function.
36281 (mips_insert_attributes): Support multiple compression types.
36282 (mips_merge_decl_attributes): Likewise.
36283 (umips_12bit_offset_address_p): New function.
36284 (mips_start_function_definition): Emit .set micromips directive.
36285 (mips_call_may_need_jalx_p): New function.
36286 (mips_function_ok_for_sibcall): Add microMIPS support.
36287 (mips_print_operand_punctuation): Support short delay slots and
36289 (umips_swm_mask, umips_swm_encoding): New.
36290 (umips_build_save_restore): New function.
36291 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36292 (was_mips16_p): Remove.
36293 (old_compression_mode): New.
36294 (mips_set_compression_mode): New function.
36295 (mips_set_current_function): Add microMIPS support.
36296 (mips_option_override): Likewise.
36297 (umips_save_restore_pattern_p): New function.
36298 (umips_output_save_restore): New function.
36299 (umips_load_store_pair_p_1): New function.
36300 (umips_load_store_pair_p): New function.
36301 (umips_output_load_store_pair_1): New function.
36302 (umips_output_load_store_pair): New function.
36303 (umips_movep_target_p) New function.
36304 (mips_prepare_pch_save): Add microMIPS support.
36305 * config/mips/mips.h (TARGET_COMPRESSION): New.
36306 (TARGET_CPU_CPP_BUILTINS): Update macro
36307 to use new compression flags and to support microMIPS.
36308 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36309 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36310 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36311 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36312 (ASM_SPEC): Support mmicromips and mno-micromips.
36313 (M16STORE_REG_P): New macro.
36314 (MIPS_CALL): Support TARGET_MICROMIPS.
36315 (MICROMIPS_J): New macro.
36316 (mips_base_mips16): Rename this...
36317 (mips_base_compression_flags): ...to this.
36318 (UMIPS_12BIT_OFFSET_P): New macro.
36319 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36320 (MULTILIB_DIRNAMES): Likewise.
36322 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36325 * target-globals.c (save_target_globals): For init_reg_sets and
36326 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36328 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36330 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36331 * config/aarch64/t-aarch64
36332 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36334 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36336 PR inline-asm/56148
36337 * lra-constraints.c (process_alt_operands): Reload operand
36338 conflicting with earlier clobber only if no more other conflicting
36341 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36344 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36345 if not linking a shared library.
36347 2013-02-22 Seth LaForge <sethml@google.com>
36349 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36351 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36353 * config/arm/arm.md (split for extendsidi): Update condition.
36354 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36355 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36356 (qhs_zextenddi_cstr): Likewise.
36358 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36360 PR middle-end/56420
36361 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36362 avoid signed wrapping.
36363 (expand_mult): Handle properly multiplication by
36364 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36365 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36366 in the compiler if coeff is HOST_WIDE_INT_MIN.
36367 (expand_divmod): Don't make ext_op1 static, change it's type to
36368 uhwi. Avoid undefined behavior in -INTVAL (op1).
36370 PR rtl-optimization/50339
36371 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36373 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36374 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36375 into splitting_ashiftrt field.
36376 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36378 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36381 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36383 PR middle-end/56108
36384 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36385 are sure to go irrevocable.
36387 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36389 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36390 scalars are valid operands.
36392 2013-02-21 Martin Jambor <mjambor@suse.cz>
36394 PR tree-optimization/56310
36395 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36396 only matching indices and non-negative final offsets.
36397 (intersect_aggregates_with_edge): Pass src_idx to
36398 agg_replacements_to_vector. Pass src_idx insstead of index to
36399 intersect_with_agg_replacements.
36401 2013-02-21 Martin Jambor <mjambor@suse.cz>
36403 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36404 instead of hard-wired defaults.
36406 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36408 * doc/invoke.texi (MIPS Options): Update documentation of the
36409 floating-point multiply-accumulate instruction restrictions.
36411 2013-02-21 Kostya Serebryany <kcc@google.com>
36413 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36414 asan_shadow_offset on x86_64 linux.
36416 2013-02-21 Richard Biener <rguenther@suse.de>
36418 PR tree-optimization/56415
36420 2013-02-11 Richard Biener <rguenther@suse.de>
36422 PR tree-optimization/56273
36423 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36426 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36429 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36432 PR inline-asm/56405
36433 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36434 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36436 2013-02-20 Jan Hubicka <jh@suse.cz>
36438 PR tree-optimization/56265
36439 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36440 when target is referenced for first time.
36442 2013-02-20 Richard Biener <rguenther@suse.de>
36444 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36445 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36446 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36447 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36448 not return anything.
36449 (rename_ssa_copies): Do not remove unused locals.
36450 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36451 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36452 * passes.c (execute_function_todo): Do not schedule unused locals
36453 removal if cleanup_tree_cfg did something.
36454 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36455 about the number of removed locals.
36457 2013-02-20 Richard Biener <rguenther@suse.de>
36459 PR tree-optimization/56398
36460 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36462 2013-02-20 Martin Jambor <mjambor@suse.cz>
36464 PR tree-optimization/55334
36465 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36466 restricted pointers to arrays.
36468 2013-02-20 Richard Biener <rguenther@suse.de>
36469 Jakub Jelinek <jakub@redhat.com>
36471 PR tree-optimization/56396
36472 * tree-ssa-ccp.c (n_const_val): New static variable.
36473 (get_value): Return NULL for SSA names we don't have a lattice
36475 (ccp_initialize): Initialize n_const_val.
36476 * tree-ssa-copy.c (n_copy_of): New static variable.
36477 (init_copy_prop): Initialize n_copy_of.
36478 (get_value): Return NULL_TREE for SSA names we don't have a
36481 2013-02-20 Martin Jambor <mjambor@suse.cz>
36483 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36485 2013-02-20 Richard Biener <rguenther@suse.de>
36487 * genpreds.c (write_lookup_constraint): Do not compare first
36488 letter of the constraint again.
36490 2013-02-20 Richard Biener <rguenther@suse.de>
36492 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36494 (get_use_iv_cost): Terminate hashtable walk when coming across
36497 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36499 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36500 reassociation for avx2 targets.
36502 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36504 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36505 Add version check for v8.10.a to enable microblaze_has_clz
36506 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36507 version and TARGET_PATTERN_COMPARE check
36508 * config/microblaze/microblaze.md: New clzsi2 instruction
36510 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36512 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36513 function before branching.
36515 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36517 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36519 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36521 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36523 PR middle-end/55889
36524 * sel-sched.c: Include ira.h.
36525 (implicit_clobber_conflict_p): New function.
36526 (moveup_expr): Use it.
36527 * Makefile.in (sel-sched.o): Depend on ira.h.
36529 2013-02-19 Richard Biener <rguenther@suse.de>
36531 PR tree-optimization/56384
36532 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36533 (vn_hash_type): Split out from ...
36534 (vn_hash_constant_with_type): ... here.
36535 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36536 (vn_phi_eq): Compare types from vn_phi_s structure.
36537 (vn_phi_lookup): Populate vn_phi_s type.
36538 (vn_phi_insert): Likewise.
36540 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36542 PR tree-optimization/56350
36543 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36544 if haven't found reduction or nested cycle operand, rather than
36545 asserting we must find it.
36547 PR tree-optimization/56381
36548 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36551 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36552 Jakub Jelinek <jakub@redhat.com>
36555 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36556 (swap_optab_enable): Same.
36557 (init_all_optabs): Use argument instead of global.
36558 * tree.h (struct tree_optimization_option): New field target_optabs.
36559 * expr.h (init_all_optabs): Add argument to prototype.
36560 (TREE_OPTIMIZATION_OPTABS): New.
36561 (save_optabs_if_changed): Protoize.
36562 * optabs.h: Declare this_fn_optabs.
36563 * optabs.c (save_optabs_if_changed): New.
36564 Declare this_fn_optabs.
36565 (init_optabs): Add argument to init_all_optabs() call.
36566 * function.c (invoke_set_current_function_hook): Handle per
36568 * function.h (struct function): New field optabs.
36569 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36570 optimization_current_node has changed.
36571 * target-globals.h (save_target_globals_default_opts): Protoize.
36572 * target-globals.c (save_target_globals_default_opts): New.
36574 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36577 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36578 registers %fr12 and %fr12R as call used.
36581 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36582 and HImode, require all displacements to be an integer multiple of
36584 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36585 only allow QImode and HImode when reload is in progress and strict is
36586 true. Likewise for symbolic addresses. Use base14_operand to check
36587 displacements in REG+BASE addresses.
36589 2013-02-18 Richard Biener <rguenther@suse.de>
36591 PR tree-optimization/56366
36592 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36593 handle sign-conversion of outer-loop initial induction value.
36595 2013-02-18 Richard Biener <rguenther@suse.de>
36597 PR middle-end/56349
36598 * cfghooks.c (merge_blocks): If we merge a latch into another
36599 block adjust references to it.
36600 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36601 (verify_loop_structure): Verify that a recorded latch is in fact
36604 2013-02-18 Richard Biener <rguenther@suse.de>
36606 PR tree-optimization/56321
36607 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36608 order SSA name release and virtual operand unlinking.
36610 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36612 * config/microblaze/microblaze.md (save_stack_block): Define.
36613 (restore_stack_block): Likewise.
36615 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36617 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36618 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36619 * config/microblaze/microblaze.c (microblaze_option_override):
36620 Bail out early for PIC modes when target does not support PIC.
36622 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36624 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36625 Replace with a microblaze version.
36626 (microblaze_trampoline_init): Adapt for microblaze.
36627 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36630 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36631 Dodji Seketeli <dodji@redhat.com>
36634 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36635 (instrument_mem_region_access): Do not forget to always put
36636 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36637 0) statement, even for cases where either 'base' or 'base + len'
36638 are not instrumented -- because they have been previously
36639 instrumented. Simplify the logic by putting all the statements
36640 instrument 'base + len' inside a sequence, and then insert that
36641 sequence right before the current insertion point. Then, to
36642 instrument 'base + len', just get an iterator on that statement.
36643 And do not forget to update the pointer to iterator the function
36644 received as argument.
36646 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36648 PR rtl-optimization/56348
36649 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36651 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36653 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36654 (clean_graph_dump_file): Pass base to start_graph_dump.
36656 2013-02-14 Richard Henderson <rth@redhat.com>
36659 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36661 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36663 * collect2-aix.h: Define F_LOADONLY.
36665 2013-02-14 Richard Biener <rguenther@suse.de>
36668 * varasm.c (output_constant_def_1): Get the decl representing
36669 the constant as argument.
36670 (output_constant_def): Wrap output_constant_def_1.
36671 (make_decl_rtl): Use output_constant_def_1 with the decl
36672 representing the constant.
36673 (build_constant_desc): Optionally re-use a decl already
36674 representing the constant.
36675 (tree_output_constant_def): Adjust.
36677 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36680 * asan.c (instrument_builtin_call): Really put the length of the
36681 second source argument into src1_len.
36683 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36685 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36686 argument. If it is false, don't create edge from then_bb to
36688 (insert_if_then_before_iter): Pass true to it.
36689 (build_check_stmt): Pass false to it.
36690 (transform_statements): Flush hash table only on extended basic
36691 block boundaries, rather than at the beginning of every bb.
36692 Don't flush hash table on nonfreeing_call_p calls.
36693 * tree-flow.h (nonfreeing_call_p): New prototype.
36694 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36696 2013-02-13 David S. Miller <davem@davemloft.net>
36698 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36700 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36703 * ira.c (max_regno_before_ira): Move from ...
36705 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36708 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36710 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36712 2013-02-13 Richard Biener <rguenther@suse.de>
36715 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36716 globals in MEM_REFs.
36718 2013-02-13 Richard Biener <rguenther@suse.de>
36720 * loop-init.c (loop_optimizer_init): Clear loop state when
36721 re-initializing preserved loops.
36722 * loop-unswitch.c (unswitch_single_loop): Return whether
36723 we unswitched the loop. Do not verify loop state here.
36724 (unswitch_loops): When we unswitched a loop discover new loops.
36726 2013-02-13 Kostya Serebryany <kcc@google.com>
36728 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36730 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36732 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36734 Avoid instrumenting duplicated memory access in the same basic block
36735 * Makefile.in (asan.o): Add new dependency on hash-table.h
36736 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36737 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36738 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36739 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36740 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36741 (get_mem_ref_of_assignment): New functions.
36742 (get_mem_refs_of_builtin_call): Extract from
36743 instrument_builtin_call and tweak a little bit to make it fit with
36745 (instrument_builtin_call): Use the new
36746 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36747 of is_gimple_builtin_call.
36748 (instrument_derefs, instrument_mem_region_access): Insert the
36749 instrumented memory reference into the hash table.
36750 (maybe_instrument_assignment): Renamed instrument_assignment into
36751 this, and change it to advance the iterator when instrumentation
36752 actually happened and return true in that case. This makes it
36753 homogeneous with maybe_instrument_assignment, and thus give a
36754 chance to callers to be more 'regular'.
36755 (transform_statements): Clear the memory reference hash table
36756 whenever we enter a new BB, when we cross a function call, or when
36757 we are done transforming statements. Use
36758 maybe_instrument_assignment instead of instrumentation. No more
36759 need to special case maybe_instrument_assignment and advance the
36760 iterator after calling it; it's now handled just like
36761 maybe_instrument_call. Update comment.
36763 2013-02-13 Richard Biener <rguenther@suse.de>
36765 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36766 Fix loop discovery code.
36768 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36770 PR inline-asm/56148
36771 * lra-constraints.c (process_alt_operands): Match early clobber
36772 operand with itself. Check conflicts with earlyclobber only if
36773 the operand is not reloaded. Prefer to reload conflicting operand
36774 if earlyclobber and matching operands are the same.
36776 2013-02-12 Richard Biener <rguenther@suse.de>
36779 * lto-streamer-out.c (write_symbol): Do not output symbols
36780 for hard register variables.
36782 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36785 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36786 (umulsidi3_insn, mulsidi3_insn): New insns.
36788 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36790 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36791 (struct tune_params): Add vec_costs field.
36792 * config/arm/arm.c (arm_builtin_vectorization_cost)
36793 (arm_add_stmt_cost): New functions.
36794 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36795 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36796 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36797 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36798 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36799 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36800 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36802 2013-02-12 Richard Biener <rguenther@suse.de>
36805 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36806 decls again if possible.
36808 2013-02-12 Richard Biener <rguenther@suse.de>
36810 PR middle-end/56288
36811 * tree-ssa.c (verify_ssa_name): Fix check, move
36812 SSA_NAME_IN_FREE_LIST check up.
36814 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36815 Steven Bosscher <steven@gcc.gnu.org>
36817 PR rtl-optimization/56151
36818 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36819 equal to op0 or op1, and last_insn pattern is CODE operation
36820 with MEM dest and one of the operands matches that MEM.
36822 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36824 * doc/extend.texi: Document Function Multiversioning and "default"
36825 parameter string to target attribute.
36826 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36827 target attribute parameter is "default".
36828 (ix86_compare_version_priority): Remove checks for target attribute.
36829 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36830 Remove check for target attribute equal to NULL. Add assert.
36831 (ix86_generate_version_dispatcher_body): Change error to sorry.
36833 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36834 Jack Howarth <howarth@bromo.med.uc.edu>
36835 Patrick Marlier <patrick.marlier@gmail.com>
36838 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36839 define ENDFILE_SPEC as TM_DESTRUCTOR.
36840 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36842 2013-02-11 Alexander Potapenko <glider@google.com>
36843 Jack Howarth <howarth@bromo.med.uc.edu>
36844 Jakub Jelinek <jakub@redhat.com>
36847 * config/darwin.c (cdtor_record): Rename ctor_record.
36848 (sort_cdtor_records): Rename sort_ctor_records.
36849 (finalize_dtors): New routine to sort destructors by
36850 priority before use in assemble_integer.
36851 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36853 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36855 PR rtl-optimization/56275
36856 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36857 offset is non-negative and less than cmode size before
36858 calling simplify_subreg.
36860 2013-02-11 Richard Biener <rguenther@suse.de>
36862 PR tree-optimization/56264
36863 * cfgloop.h (fix_loop_structure): Adjust prototype.
36864 * loop-init.c (fix_loop_structure): Return the number of
36865 newly discovered loops.
36866 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36867 are discovered, do a full loop-closed SSA rewrite.
36869 2013-02-11 Richard Biener <rguenther@suse.de>
36871 PR tree-optimization/56273
36872 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36874 (check_array_ref): Fix missing newline in dumps.
36875 (search_for_addr_array): Likewise.
36877 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36879 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36881 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36884 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36886 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36888 PR rtl-optimization/56246
36889 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36891 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36892 constraints are satisfied.
36894 2013-02-08 Jeff Law <law@redhat.com>
36897 * emit-rtl.c (reg_is_parm_p): New function.
36898 * regs.h (reg_is_parm_p): New prototype.
36899 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36900 callee-clobbered registers.
36902 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36905 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36906 If there is no implicit builtin declaration, just return NULL.
36908 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36910 * config/i386/sse.md (FMAMODEM): New mode iterator.
36911 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36912 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36914 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36916 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36917 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36918 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36920 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36922 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36923 (microblaze*-*-elf): Likewise.
36924 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36926 * config/microblaze/microblaze-c.c: Add builtin defines for
36927 _LITTLE_ENDIAN and _BIG_ENDIAN.
36928 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36929 add to TARGET_DEFAULT flags.
36930 Expand ASM_SPEC and LINK_SPEC.
36931 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36932 * config/microblaze/microblaze.md: Update extendsidi2 and
36933 movdi_internal instructions to use low-order / high-order reg
36935 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36936 options and inversemask / mask of LITTLE_ENDIAN.
36937 * config/microblaze/t-microblaze: Expand multilib options to
36938 include mlittle-endian (le) and update exceptions patterns.
36940 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36942 PR rtl-optimization/56195
36943 * lra-constraints.c (get_reload_reg): Don't reuse regs
36944 if they have smaller mode than requested, if they have
36945 wider mode than requested, try to return a SUBREG.
36947 PR tree-optimization/56250
36948 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36949 if type is unsigned and code isn't MULT_EXPR.
36951 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36953 PR tree-optimization/56064
36954 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36955 bits according to mode.
36956 * fixed-value.h (fixed_from_double_int)
36957 (const_fixed_from_double_int): Adjust comments.
36959 2013-02-08 Richard Biener <rguenther@suse.de>
36962 * lto-streamer.h (struct data_in): Remove current_file, current_line
36963 and current_col members.
36964 * lto-streamer-out.c (lto_output_location): Stream changed bits
36965 en-block for efficiency.
36966 * lto-streamer-in.c (clear_line_info): Remove.
36967 (lto_input_location): Cache current file, line and column
36968 globally via local statics. Read changed bits en-block.
36969 (input_function): Do not call clear_line_info.
36970 (lto_read_body): Likewise.
36971 (lto_input_toplevel_asms): Likewise.
36973 2013-02-08 Michael Matz <matz@suse.de>
36975 PR tree-optimization/52448
36976 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36977 (nt_call_phase): New static.
36978 (add_or_mark_expr): Only mark accesses with newer phase than any
36980 (nonfreeing_call_p): New.
36981 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36982 (nt_fini_block): Keep blocks marked as visited.
36983 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36985 2013-02-08 Richard Biener <rguenther@suse.de>
36987 * ira.c (ira): Free broken dominator information.
36989 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36991 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36993 2013-02-08 Marek Polacek <polacek@redhat.com>
36995 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36997 2013-02-08 Richard Biener <rguenther@suse.de>
36999 PR middle-end/56181
37000 * cfgloop.h (flow_loops_find): Adjust.
37001 (bb_loop_header_p): Declare.
37002 * cfgloop.c (bb_loop_header_p): New function split out from ...
37003 (flow_loops_find): ... here. Adjust function signature,
37004 support incremental loop structure update.
37005 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37006 * cfgloopmanip.c (fix_loop_structure): Move ...
37007 * loop-init.c (fix_loop_structure): ... here.
37008 (apply_loop_flags): Split out from ...
37009 (loop_optimizer_init): ... here.
37010 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37011 in incremental mode, only remove dead loops here.
37013 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37016 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37017 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37018 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37019 (*round<mode>3.libgcc): New insns for fixed-modes.
37020 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37021 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37022 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37023 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37024 implementations. Define to __builtin_avr_absFX,
37025 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37026 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37027 __builtin_avr_countlsFX, respectively.
37028 * config/avr/avr-c.c (target.h): Include it.
37029 (enum avr_builtin_id): New enum.
37030 (avr_resolve_overloaded_builtin): New static function.
37031 (avr_register_target_pragmas): Use it to set
37032 targetm.resolve_overloaded_builtin.
37033 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37034 tree nodes used by DEF_BUILTIN.
37035 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37036 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37037 <AVR_BUILTIN_xxBITS>: Same.
37039 2013-02-08 Richard Biener <rguenther@suse.de>
37041 * cfgloop.c (verify_loop_structure): Properly handle
37042 a loop exiting to another loop header.
37043 * ira-int.h (ira_loops): Remove.
37044 * ira.c (ira_loops): Remove.
37045 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37046 (do_reload): Use loop_optimizer_finalize.
37047 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37048 number_of_loops to access the loop tree.
37049 (more_one_region_p): Likewise.
37050 (finish_loop_tree_nodes): Likewise.
37051 (rebuild_regno_allocno_maps): Likewise.
37052 (mark_loops_for_removal): Likewise.
37053 (mark_all_loops_for_removal): Likewise.
37054 (remove_unnecessary_regions): Likewise.
37055 (ira_build): Likewise.
37056 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37058 2013-02-08 Richard Biener <rguenther@suse.de>
37060 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37061 * ipa-pure-const.c (analyze_function): Avoid calling
37062 mark_irreducible_loops twice.
37063 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37065 2013-02-07 David S. Miller <davem@davemloft.net>
37067 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37069 * var-tracking.c (vt_add_function_parameter): Test the presence of
37070 HAVE_window_save properly and do not remap argument registers when
37071 we have a leaf function.
37073 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37076 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37078 * config/i386/i386.c (ix86_print_operand): Ditto.
37080 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37082 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37084 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37086 PR rtl-optimization/56225
37087 * lra-constraints.c (process_alt_operands): Check that reload hard
37088 reg can hold value for strict_low_part.
37090 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37093 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37094 dwarf2out_end_function.
37095 (in_first_function_p, maybe_at_text_label_p,
37096 first_loclabel_num_not_at_text_label): New variables.
37097 (dwarf2out_var_location): In the first function find out
37098 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37099 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37102 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37104 PR rtl-optimization/56178
37105 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37106 SUBREG of a register. Tidy up related block of code.
37107 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37108 note if the source is a register or a SUBREG of a register.
37110 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37113 * config/rs6000/rs6000.md (ptrm): New mode attr.
37114 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37115 call_value_indirect_aix<pttrsize>,
37116 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37119 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37121 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37122 if -bnortl. Convert to strcmp and strncmp.
37124 2013-02-07 Alan Modra <amodra@gmail.com>
37127 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37128 addresses won't wrap when offsetting.
37129 (rs6000_secondary_reload): Provide secondary reloads needed for
37130 wrapping LO_SUM addresses.
37132 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37134 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37135 MACH, just __MACH__.
37137 2013-02-06 Richard Biener <rguenther@suse.de>
37139 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37140 instead of calling fix_loop_structure.
37142 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37144 PR middle-end/56217
37145 * omp-low.c (use_pointer_for_field): Return false if
37146 lower_send_shared_vars doesn't generate any copy-out code.
37148 2013-02-06 Tom de Vries <tom@codesourcery.com>
37150 PR rtl-optimization/56131
37151 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37152 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37153 of the label is NULL. Add comment.
37155 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37157 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37160 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37161 (STATIC_LIBTSAN_LIBS): Likewise.
37162 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37163 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37164 is defined, don't add anything else beyond that.
37165 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37166 (LINK_COMMAND_SPEC): Use them.
37168 PR tree-optimization/56205
37169 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37170 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37171 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37173 2013-02-05 Richard Biener <rguenther@suse.de>
37175 PR tree-optimization/53342
37176 PR tree-optimization/53185
37177 * tree-vectorizer.h (vect_check_strided_load): Remove.
37178 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37179 not disallow peeling for vectorized strided loads.
37180 (vect_check_strided_load): Make static and simplify.
37181 (vect_analyze_data_refs): Adjust.
37182 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37183 correctly when vectorizing strided loads.
37185 2013-02-05 Richard Biener <rguenther@suse.de>
37187 * doc/install.texi: Refer to ISL, not PPL.
37189 2013-02-05 Jan Hubicka <jh@suse.cz>
37191 PR tree-optimization/55789
37192 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37194 2013-02-05 Jan Hubicka <jh@suse.cz>
37196 PR tree-optimization/55789
37197 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37198 the dead call anyway.
37200 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37203 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37205 2013-02-04 Alexander Potapenko <glider@google.com>
37206 Jack Howarth <howarth@bromo.med.uc.edu>
37207 Jakub Jelinek <jakub@redhat.com>
37210 * config/darwin.c (sort_ctor_records): Stabilized qsort
37211 on constructor priority by using original position.
37212 (finalize_ctors): New routine to sort constructors by
37213 priority before use in assemble_integer.
37214 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37216 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37219 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37220 about visibility on artificial decls.
37221 * config/sol2.c (solaris_assemble_visibility): Likewise.
37223 2013-02-04 Kai Tietz <ktietz@redhat.com>
37226 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37227 argument and improve checking of return-argument types for 16-byte
37229 (ix86_function_value_1): Add additional valtype argument on call
37230 of function_value_64.
37231 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37232 handling infunction_value_64 function.
37234 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37236 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37238 2013-02-04 Richard Biener <rguenther@suse.de>
37240 PR tree-optimization/56188
37241 * tree-ssa-structalias.c (label_visit): Consider case with
37242 initially non-empty points-to set.
37243 (perform_var_substitution): Dump node mapping and clean up.
37245 2013-02-04 Richard Guenther <rguenther@suse.de>
37248 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37249 node prevail as last resort.
37250 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37251 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37253 2013-02-04 Richard Biener <rguenther@suse.de>
37255 PR tree-optimization/56113
37256 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37258 (equiv_class_lookup_or_add): ... this.
37259 (label_visit): Adjust and fix error in previous patch.
37260 (perform_var_substitution): Adjust.
37262 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37264 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37265 * config/sh/sh4-300.md: Likewise.
37266 * config/sh/sh4a.md: Likewise.
37267 * config/sh/constraints.md: Likewise.
37268 * config/sh/sh.md: Likewise.
37269 * config/sh/netbsd-elf.h: Likewise.
37270 * config/sh/predicates.md: Likewise.
37271 * config/sh/sh-protos.h: Likewise.
37272 * config/sh/ushmedia.h: Likewise.
37273 * config/sh/linux.h: Likewise.
37274 * config/sh/sh.c: Likewise.
37275 * config/sh/superh.h: Likewise.
37276 * config/sh/elf.h: Likewise.
37277 * config/sh/sh4.md: Likewise.
37278 * config/sh/sh.h: Likewise.
37280 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37282 * config/pa/constraints.md: Adjust unused letters. Change "T"
37283 constraint to match_test floating_point_store_memory_operand().
37284 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37285 (base14_operand): New.
37286 (floating_point_store_memory_operand): New.
37287 (integer_store_memory_operand): Revise to use base14_operand and
37288 reg_plus_base_memory_operand.
37289 (move_dest_operand): Allow symbolic_memory_operands.
37290 (symbolic_memory_operand): Check for LO_SOM.
37291 (symbolic_operand): Change default case to break.
37292 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37293 CONST_DOUBLE values to be reloaded by putting them into memory when
37294 the destination is a floating point register.
37295 (movdf): Remove code to handle CONST_DOUBLE.
37297 (reload_indf_r1): New.
37298 (reload_insf_r1): New.
37299 Consistently use "Q" and "T" constraints with integer and floating
37300 point move instructions, respectively.
37301 (movdi): Remove FAIL.
37302 Change predicate for source operand unamed DImode move from
37303 general_operand to move_src_operand.
37304 (umulsidi3): Change predicate for destination operand to
37306 Likewise for similar unamed patterns.
37307 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37308 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37309 (hppa_legitimize_address): Simplify mask calculation.
37310 (pa_emit_move_sequence): Revised handling of secondary reloads from
37311 REG+D addresses for floating point loads and stores. Directly handle
37312 loading CONST0_RTX (mode) to a floating point register.
37313 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37314 to floating point registers. Don't restrict secondary reloads to
37315 floating point registers to integer modes. Revise some comments and
37317 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37318 (pa_legitimate_address_p): New.
37319 (pa_legitimize_reload_address): New.
37320 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37321 (STRICT_REG_OK_FOR_BASE_P): New.
37322 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37323 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37325 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37326 Andrew Dixie <andrewd@gentrack.com>
37328 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37331 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37333 * expmed.c (extract_bit_field_1): Pass the full width of the
37334 structure to get_best_reg_extraction_insn.
37336 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37339 * configure.ac (use_cxa_atexit): Add AIX.
37340 * configure: Regenerate.
37342 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37344 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37347 * final.c (need_profile_function): New variable.
37348 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37349 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37350 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37351 notes, targetm.asm_out.function_prologue doesn't emit anything,
37352 HAVE_prologue and profiler should be emitted before prologue,
37353 set need_profile_function instead of emitting it.
37354 (final_scan_insn): If need_profile_function, emit
37355 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37356 NOTE_INSN_FUNCTION_BEG note.
37358 2013-02-01 Richard Henderson <rth@redhat.com>
37360 * config/rs6000/rs6000.md (smulditi3): New.
37363 * config/alpha/alpha.md (umulditi3): New.
37365 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37367 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37368 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37370 2013-02-01 Richard Biener <rguenther@suse.de>
37372 PR tree-optimization/56113
37373 * tree-ssa-structalias.c (label_visit): Reduce work for
37374 single-predecessor nodes.
37376 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37378 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37379 range isn't testing for zero.
37381 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37383 PR middle-end/56113
37384 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37386 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37387 Nick Clifton <nickc@redhat.com>
37389 * config/v850/constraints.md (Q): Define as a memory constraint.
37390 * config/v850/predicates.md (label_ref_operand): New predicate.
37391 (e3v5_shift_operand): New predicate.
37392 (ior_operator): New predicate.
37393 * config/v850/t-v850: Add e3v5 multilib.
37394 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37395 (v850_gen_movdi): Prototype.
37396 * config/v850/v850.c: Add support for e3v5 architecture.
37397 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37399 (construct_save_jarl): Add e3v5 long JARL support.
37400 (v850_adjust_insn_length): New function. Adjust length of call
37401 insns when using e3v5 instructions.
37402 (v850_gen_movdi): New function: Generate instructions to move a
37404 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37405 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37406 (TARGET_USE_FPU): Enable for e3v5.
37407 (CONST_OK_FOR_W): New macro.
37408 (ADJUST_INSN_LENGTH): Define.
37409 * config/v850/v850.md (UNSPEC_LOOP): Define.
37410 (attr cpu): Add v850e3v5.
37411 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37412 (movdi): New pattern.
37413 (movdi_internal): New pattern.
37414 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37415 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37416 (cstoresf4): Likewise.
37417 (cstoredf4): Likewise.
37418 (insv): New pattern.
37419 (rotlso3_a): New pattern.
37420 (rotlsi3_b): New pattern
37421 (rotlsi3_v850e3v5): New pattern.
37422 (doloop_begin): New pattern.
37423 (fix_loop_counter): New pattern.
37424 (doloop_end): New pattern.
37425 (branch_normal): Add e3v5 long branch support.
37426 (branch_invert): Likewise.
37427 (branch_z_normal): Likewise.
37428 (branch_z_invert): Likewise.
37429 (branch_nz_normal): Likewise.
37430 (branch_nz_invert): Likewise.
37431 (call_internal_short): Add e3v5 register-indirect JARL support.
37432 (call_internal_long): Likewise.
37433 (call_value_internal_short): Likewise.
37434 (call_value_internal_long): Likewise.
37435 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37436 (mloop): New option.
37437 * config.gcc: Add support for configuring v840e3v5 target.
37438 * doc/invoke.texi: Document new v850 specific command line options.
37440 2013-01-31 Paul Koning <ni1d@arrl.net>
37444 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37445 children if parent is a class.
37446 (prune_unused_types_prune): Don't add DW_AT_declaration.
37448 2013-01-31 Richard Biener <rguenther@suse.de>
37450 PR tree-optimization/56157
37451 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37452 match up operand with SLP child.
37454 2013-01-31 Jason Merrill <jason@redhat.com>
37457 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37458 parameters the first time.
37459 (gen_scheduled_generic_parms_dies): Check completeness here.
37461 2013-01-31 Richard Biener <rguenther@suse.de>
37463 PR middle-end/53073
37464 * common.opt (faggressive-loop-optimizations): New flag,
37465 enabled by default.
37466 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37467 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37468 infer_loop_bounds_from_undefined by it.
37470 2013-01-31 Richard Biener <rguenther@suse.de>
37472 PR tree-optimization/56150
37473 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37474 visit virtual operands.
37475 (find_uses_to_rename_bb): Likewise.
37477 2013-01-31 Richard Biener <rguenther@suse.de>
37479 PR tree-optimization/56150
37480 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37481 mixed store non-store stmts.
37483 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37486 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37487 LIBASAN_EARLY_SPEC is defined.
37488 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37489 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37491 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37494 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37495 invalid args instead of ICEing on it.
37496 (ix86_valid_target_attribute_tree): Return error_mark_node if
37497 ix86_valid_target_attribute_inner_p failed.
37498 (ix86_valid_target_attribute_p): Return false only if
37499 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37500 target("default") attribute.
37501 (sorted_attr_string): Change argument from const char * to tree,
37502 merge in all target attribute arguments rather than just one.
37503 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37504 instead of free. Avoid using strcat.
37505 (ix86_mangle_function_version_assembler_name): Mangle
37506 target("default") as if no target attribute is present. Adjust
37507 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37508 instead of xmalloc and XDELETEVEC instead of free.
37509 (ix86_function_versions): Don't return true if one of the decls
37510 doesn't have target attribute. If they don't and one of the decls
37511 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37512 sorted_attr_string caller. Use XDELETEVEC instead of free.
37513 (ix86_supports_function_versions): Remove.
37514 (make_name): Fix up formatting.
37515 (make_dispatcher_decl): Remove resolver_name and its initialization.
37516 Avoid leaking memory.
37517 (is_function_default_version): Return true if there is
37518 target("default") attribute rather than no target attribute at all.
37519 (make_resolver_func): Avoid leaking memory.
37520 (ix86_generate_version_dispatcher_body): Likewise.
37521 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37522 * target.def (supports_function_versions): Remove.
37523 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37524 * doc/tm.texi: Regenerated.
37526 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37528 PR rtl-optimization/56144
37529 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37530 for values with side effects.
37532 2013-01-30 Richard Biener <rguenther@suse.de>
37534 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37535 (sparseset_pop): Likewise.
37536 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37537 to be able to use quick_push in the worker loop.
37539 2013-01-30 Marek Polacek <polacek@redhat.com>
37541 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37543 2013-01-30 Richard Biener <rguenther@suse.de>
37546 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37548 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37550 PR tree-optimization/56064
37551 * fixed-value.c (fixed_from_double_int): New function.
37552 * fixed-value.h (fixed_from_double_int): New prototype.
37553 (const_fixed_from_double_int): New static inline function.
37554 * fold-const.c (native_interpret_fixed): New static function.
37555 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37556 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37557 (native_encode_fixed): New static function.
37558 (native_encode_expr) <FIXED_CST>: Use it.
37559 (native_interpret_int): Move double_int worker code to...
37560 * double-int.c (double_int::from_buffer): ...this new static method.
37561 * double-int.h (double_int::from_buffer): Prototype it.
37563 2013-01-30 Richard Biener <rguenther@suse.de>
37565 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37566 New pointer-map and obstack.
37567 (init_alias_vars): Allocate pointer-map and obstack.
37568 (delete_points_to_sets): Free them.
37569 (find_what_var_points_to): Cache result.
37570 (find_what_p_points_to): Adjust for changed interface of
37571 find_what_var_points_to.
37572 (compute_points_to_sets): Likewise.
37573 (ipa_pta_execute): Likewise.
37575 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37577 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37578 * configure: Regenerate.
37579 * config.in: Regenerate.
37580 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37581 #nobits/#progbits if supported.
37583 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37586 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37587 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37588 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37590 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37592 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37593 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37595 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37597 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37598 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37600 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37602 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37604 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37605 * config/arm/cortex-a7.md: New bypasses using
37606 arm_mac_accumulator_is_result.
37608 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37610 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37611 (cortex_a7_neon_mla): Likewise.
37612 (cortex_a7_fpfmad): New reservation.
37613 (cortex_a7_fpmacs): Use ffmas and update required units.
37614 (cortex_a7_fpmuld): Update required units and latency.
37615 (cortex_a7_fpmacd): Likewise.
37616 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37617 (cortex_a7_neon). Likewise.
37618 (bypass) Update participating units.
37620 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37622 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37623 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37625 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37626 (vfp_fmul): Use ffmad.
37627 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37628 (cortex_r4_fmacd): Use ffmad.
37629 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37630 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37631 (cortex_a9_fmacd): Use ffmad.
37632 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37633 (cortex_a8_vfp_macd): Use ffmad.
37634 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37635 (cortex_a5_fpmacd): Use ffmad.
37636 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37637 (cortex_a15_vfp_macd): Use ffmad.
37638 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37640 2013-01-29 Jason Merrill <jason@redhat.com>
37643 * varasm.c (default_assemble_visibility): Don't warn about
37644 visibility on artificial decls.
37646 2013-01-29 Richard Biener <rguenther@suse.de>
37648 PR tree-optimization/56113
37649 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37651 (label_visit): Free duplicate bitmaps and record the leader instead.
37652 (perform_var_substitution): Adjust.
37654 2013-01-29 Richard Biener <rguenther@suse.de>
37656 PR tree-optimization/55270
37657 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37658 the CFG, schedule loops for fixup.
37660 2013-01-29 Nick Clifton <nickc@redhat.com>
37662 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37665 2013-01-28 Leif Ekblad <leif@rdos.net>
37667 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37668 * config/i386/i386.h (TARGET_RDOS): New macro.
37669 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37670 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37671 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37672 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37673 DEFAULT_LARGE_SECTION_THRESHOLD.
37674 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37675 * config/i386/rdos.h: New file.
37676 * config/i386/rdos64.h: New file.
37678 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37681 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37684 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37686 PR rtl-optimization/56117
37687 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37688 call cselib_lookup_from_insn on the MEM before calling
37689 add_insn_mem_dependence.
37691 2013-01-28 Richard Biener <rguenther@suse.de>
37693 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37694 to a stmt that didn't have one.
37695 (copy_phis_for_bb): Likewise for PHI arguments.
37696 (copy_debug_stmt): Likewise for debug stmts.
37698 2013-01-28 Richard Biener <rguenther@suse.de>
37700 PR tree-optimization/56034
37701 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37702 (partition_builtin_p): Adjust.
37703 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37704 it is the last partition.
37705 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37706 up the vertex for the definition.
37707 (classify_partition): Classify whether a partition is a
37708 PKIND_REDUCTION, thus has uses outside of the loop.
37709 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37710 Merge all PKIND_REDUCTION partitions into the last partition.
37711 (tree_loop_distribution): Seed partitions from reductions as well.
37713 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37715 PR tree-optimization/56125
37716 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37717 pow(x,c) into sqrt(x) * powi(x, n/2) or
37718 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37719 optimizing for size.
37720 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37721 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37724 PR tree-optimization/56094
37725 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37726 to UNKNOWN_LOCATION while gimplifying expr.
37728 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37731 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37732 operand 0 in movabs insn template for -masm=intel asm alternative.
37733 (*movabs<mode>_2): Ditto for operand 1.
37735 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37738 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37741 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37743 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37746 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37748 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37749 Undef to avoid warning.
37751 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37753 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37754 * configure: Regenerate.
37756 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37758 PR tree-optimization/56098
37759 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37760 for stmts with volatile ops.
37761 (cond_store_replacement): Don't optimize if assign has volatile ops.
37762 (cond_if_else_store_replacement_1): Don't optimize if either
37763 then_assign or else_assign have volatile ops.
37764 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37767 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37769 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37771 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37773 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37774 missing ':' in asm example.
37776 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37778 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37779 entries into lane and laneq entries.
37780 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37781 Remove AdvSIMD scalar modes.
37782 (aarch64_sq<r>dmulh_laneq<mode>): New.
37783 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37785 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37786 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37787 * config/aarch64/iterators.md (VCOND): New.
37790 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37793 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37794 Add NULL LIBNAME argument to existing definitions.
37795 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37796 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37797 * config/avr/avr.c (DEF_BUILTIN): Same.
37798 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37799 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37800 implementation is available (DECL_ASSEMBLER_NAME is set).
37801 (avr_fold_absfx): New static function.
37802 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37803 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37804 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37805 AVR_BUILTIN_ABSLLK.
37806 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37807 (abshk, absk, abslk, absllk): Provide as static inline functions.
37809 2013-01-25 Marek Polacek <polacek@redhat.com>
37811 PR tree-optimization/56035
37812 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37814 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37816 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37817 (*movtf_internal_rex64): Add (!o,C) alternative
37818 (*movxf_internal_rex64): Ditto.
37819 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37821 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37823 * doc/invoke.texi: fix typo.
37824 * doc/objc.texi: fix typo.
37826 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37828 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37829 for the first two alternatives.
37831 2013-01-24 Diego Novillo <dnovillo@google.com>
37833 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37834 (ggc-zone.o): Remove.
37835 * configure.ac: Remove option --with-gc.
37836 * configure: Re-generate.
37837 * doc/install.texi: Remove documentation for --with-gc.
37838 * gengtype.c (write_enum_defn): Remove. Update all users.
37839 (write_Types_process_field): Remove generation of gt_e_* argument.
37840 (output_type_enum): Remove. Update all users.
37841 (write_enum_defn): Remove. Update all users.
37842 (enum alloc_zone): Remove. Update all users.
37843 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37844 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37845 Update all callers.
37846 (struct ptr_data): Remove field TYPE. Update all users.
37847 (gt_pch_note_object): Remove argument TYPE. Update all users.
37848 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37850 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37851 (struct alloc_zone): Remove.
37852 (ggc_internal_alloc_zone_stat): Remove.
37853 (ggc_internal_cleared_alloc_zone_stat): Remove.
37854 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37855 (ggc_pch_count_object): Remove last argument. Update all users.
37856 (ggc_pch_alloc_object): Remove last argument. Update all users.
37857 (struct alloc_zone): Remove.
37858 * ggc-zone.c: Remove.
37859 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37860 (struct alloc_zone): Remove.
37861 (ggc_alloc_typed_stat): Remove.
37862 (ggc_alloc_typed): Remove.
37863 (ggc_splay_alloc): Remove first argument.
37864 (rtl_zone): Remove. Update all users.
37865 (tree_zone): Remove. Update all users.
37866 (tree_id_zone): Remove. Update all users.
37867 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37868 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37869 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37870 * tree-ssanames.c: Remove references to zone allocator in comments.
37872 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37874 * config/avr/avr.c (avr_out_fract): Make register numbers that
37875 might be outside of source operand signed.
37877 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37879 * config/i386/constraints.md (Yf): New constraint.
37880 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37881 of f constraint to conditionaly disable x87 register preferences.
37882 (*movdf_internal): Ditto.
37883 (*movsf_internal): Ditto.
37885 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37887 PR inline-asm/55934
37888 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37889 that have operands with impossible constraints.
37890 Add a FIXME for a speed-up opportunity.
37891 * lra-constraints.c (process_alt_operands): Verify that a class
37892 selected from constraints on asms is valid for the operand mode.
37893 (curr_insn_transform): Remove incorrect comment.
37895 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37897 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37898 TOC operand is a valid symbol ref in the constant pool.
37900 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37902 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37904 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37907 * config/avr/stdfix.h: New file.
37908 * t-avr (stdfix-gcc.h): New rule to build it.
37909 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37911 2013-01-23 Kostya Serebryany <kcc@google.com>
37913 * config/darwin.h: remove dependency on
37914 CoreFoundation (asan on Mac OS).
37916 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37919 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37920 instead of cmpdi_operand for first comparison operand.
37921 Don't assert that comparison operands aren't both constants.
37923 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37925 * doc/install.texi (Downloading the Source): Update references to
37926 downloading separate components.
37928 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37930 * doc/extend.texi (__int128): Improve grammar.
37932 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37935 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37936 alternative to (o,r).
37937 (*movdi_internal_rex64): Remove (!o,n) alternative.
37938 (DImode immediate->memory splitter): Remove.
37939 (DImode immediate->memory peephole2): Remove.
37940 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37941 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37942 alternative to (!o,*r).
37943 (*movtf_internal_sse): New pattern.
37944 (*movxf_internal_rex64): New pattern.
37945 (*movxf_internal): Disable for TARGET_64BIT.
37946 (*movdf_internal_rex64): Remove (!o,F) alternative.
37948 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37950 PR middle-end/56074
37951 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37952 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37953 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37954 stmt locations where LOCATION_LOCUS of the stmt location is
37955 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37958 * config/i386/i386.md (UNSPEC_STOS): New.
37959 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37960 *strsetqi_1): Add UNSPEC_STOS.
37962 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37965 * doc/invoke.texi: Remove left over -Wsynth example.
37967 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37969 PR tree-optimization/56051
37970 * fold-const.c (fold_binary_loc): Don't fold
37971 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37972 a narrowing conversion, or widening conversion from signed
37975 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37977 PR rtl-optimization/56023
37978 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37979 dependent on debug instruction.
37981 2013-01-21 Martin Jambor <mjambor@suse.cz>
37983 PR middle-end/56022
37984 * function.c (allocate_struct_function): Call
37985 invoke_set_current_function_hook earlier.
37987 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37989 * reload1.c (init_reload): Only initialize reload_obstack
37990 during the first call.
37992 2013-01-21 Marek Polacek <polacek@redhat.com>
37994 * cfgloop.c (verify_loop_structure): Fix up grammar.
37996 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37998 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37999 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38001 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38004 * config/arm/marvell-pj4.md: Update copyright year.
38005 Fix up use of alu to alu_reg and simple_alu_imm.
38007 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38009 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38011 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38014 * lra-constraints.c (curr_insn_transform): Don't reuse original
38015 insn for secondary memory move when memory mode should be different.
38017 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38019 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38020 atomic_storedi_1): New patterns.
38022 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38024 btver2 pipeline descriptions.
38025 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38027 * config/i386/i386.md (btver2_decode): New type attributes.
38028 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38030 * config/i386/btver2.md: New file describing btver2 pipelines.
38032 2013-01-19 Andrew Pinski <apinski@cavium.com>
38034 PR tree-optimization/52631
38035 * tree-ssa-sccvn (visit_use): Before looking up the original
38036 statement, try looking up the simplified expression.
38038 2013-01-19 Anthony Green <green@moxielogic.com>
38040 * config/moxie/moxie.c (moxie_expand_prologue): Set
38041 current_function_static_stack_size.
38043 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38045 PR tree-optimization/56029
38046 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38047 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38049 2013-01-18 Sharad Singhai <singhai@google.com>
38051 PR tree-optimization/55995
38052 * dumpfile.c (dump_loc): Print location only if available.
38053 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38055 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38058 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38059 secondary memory move.
38060 (inherit_reload_reg): Use rclass instead of cl for
38061 check_secondary_memory_needed_p.
38063 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38065 PR middle-end/56015
38066 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38067 the case where writing real complex part of target modifies op1.
38069 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38071 * config/aarch64/aarch64-simd.md
38072 (aarch64_vcond_internal<mode>): Handle unordered cases.
38073 * config/aarch64/iterators.md (v_cmp_result): New.
38075 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38076 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38078 * config/arm/marvell-pj4.md: New file.
38079 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38080 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38081 (generic_vfp): Likewise.
38082 * config/arm/arm-cores.def: Add marvell-pj4.
38083 * config/arm/arm-tune.md: Regenerate.
38084 * config/arm/arm-tables.opt: Regenerate.
38085 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38086 * doc/invoke.texi: Document marvell-pj4.
38088 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38090 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38092 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38097 * var-tracking.c (negative_power_of_two_p): New.
38098 (global_get_addr_cache, local_get_addr_cache): New.
38099 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38100 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38102 (vt_stack_offset_p): Remove.
38103 (vt_canon_true_dep): Always canonicalize loc's address.
38104 (clobber_overlapping_mems): Make sure we have a MEM.
38105 (local_get_addr_clear_given_value): New.
38106 (val_reset): Clear local cached entries.
38107 (compute_bb_dataflow): Create and release the local cache.
38108 Disable duplicate MEMs clobbering.
38109 (emit_notes_in_bb): Clobber MEMs likewise.
38110 (vt_emit_notes): Create and release the local cache.
38111 (vt_initialize, vt_finalize): Create and release the global
38112 cache, respectively.
38113 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38115 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38117 PR libmudflap/53359
38118 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38119 not found in the symtab.
38121 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38124 PR rtl-optimization/55547
38125 PR rtl-optimization/53827
38128 * alias.c (offset_overlap_p): New, factored out of...
38129 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38130 the conservative special case for symbolic constants. Don't
38131 adjust zero sizes on alignment.
38133 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38135 PR rtl-optimization/52573
38136 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38137 REG_UNUSED for the same register.
38139 2013-01-17 Richard Biener <rguenther@suse.de>
38140 Marek Polacek <polacek@redhat.com>
38142 PR rtl-optimization/55833
38143 * loop-unswitch.c (unswitch_loops): Move loop verification...
38144 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38145 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38146 Set it to true when we're removing a loop from hierarchy tree in
38147 an irreducible region.
38148 (fix_bb_placements): Adjust caller.
38149 (fix_loop_placements): Likewise.
38151 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38153 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38154 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38155 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38156 Remove ID. Adjust comments.
38157 * config/avr/avr-c.c (avr_builtin_name): Remove.
38158 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38159 * config/avr/avr.c (avr_tolower): New static function.
38160 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38161 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38162 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38165 2013-01-17 Jan Hubicka <jh@suse.cz>
38167 PR tree-optimization/55273
38168 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38170 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38173 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38174 store through atomic_store<mode>_1.
38175 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38177 2013-01-17 Martin Jambor <mjambor@suse.cz>
38179 PR tree-optimizations/55264
38180 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38181 for virtual methods.
38182 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38183 virtual methods before inlining is over.
38184 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38186 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38189 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38191 PR rtl-optimization/56005
38192 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38193 pending reads for prefetch.
38195 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38197 * config/aarch64/aarch64.md
38198 (*cstoresi_neg_uxtw): New pattern.
38199 (*cmovsi_insn_uxtw): New pattern.
38200 (*<optab>si3_uxtw): New pattern.
38201 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38202 (*<optab>si3_insn_uxtw): New pattern.
38203 (*bswapsi2_uxtw): New pattern.
38205 2013-01-16 Richard Biener <rguenther@suse.de>
38207 * tree-inline.c (tree_function_versioning): Remove set but
38208 never used variable.
38210 2013-01-16 Richard Biener <rguenther@suse.de>
38212 PR tree-optimization/55964
38213 * tree-flow.h (rename_variables_in_loop): Remove.
38214 (rename_variables_in_bb): Likewise.
38215 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38216 (copy_loop_before): Adjust and delete update-ssa status.
38217 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38218 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38219 (rename_variables_in_loop): Remove.
38220 (slpeel_update_phis_for_duplicate_loop): Likewise.
38221 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38222 use available cfg machinery instead of duplicating it.
38223 Update PHI nodes and perform poor-mans SSA update here.
38224 (slpeel_tree_peel_loop_to_edge): Adjust.
38226 2013-01-16 Richard Biener <rguenther@suse.de>
38228 PR tree-optimization/54767
38229 PR tree-optimization/53465
38230 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38231 (vrp_visit_phi_node): For PHI arguments coming via backedges
38232 drop all symbolical range information.
38233 (execute_vrp): Compute backedges.
38235 2013-01-16 Richard Biener <rguenther@suse.de>
38237 * doc/install.texi: Update CLooG and ISL requirements to
38240 2013-01-16 Christian Bruel <christian.bruel@st.com>
38243 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38244 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38245 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38247 2013-01-16 DJ Delorie <dj@redhat.com>
38249 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38250 (UNSPECV_SP_SWITCH_E): New.
38251 (sp_switch_1): Change to an unspec.
38252 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38255 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38257 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38258 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38259 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38260 (expand_mem_thread_fence): Ditto.
38261 (expand_mem_signal_fence): Ditto.
38262 (expand_atomic_load): Ditto.
38263 (expand_atomic_store): Ditto.
38265 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38267 PR rtl-optimization/55547
38268 PR rtl-optimization/53827
38271 * alias.c (memrefs_conflict_p): Set sizes to negative after
38274 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38277 * function.c (thread_prologue_and_epilogue_insns): Always
38278 add crtl->drap_reg to set_up_by_prologue.set, even if
38279 stack_realign_drap is false.
38281 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38283 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38284 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38285 *call): Fix indention.
38287 2013-01-15 Tom de Vries <tom@codesourcery.com>
38290 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38293 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38295 PR rtl-optimization/55153
38296 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38298 2013-01-15 Martin Jambor <mjambor@suse.cz>
38300 PR tree-optimization/55920
38301 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38302 accesses as grp_to_be_debug_replaced.
38304 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38306 PR tree-optimization/55920
38307 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38308 there is non-useless type conversion needed from debug rhs to lhs,
38309 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38311 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38312 Mikael Pettersson <mikpe@it.uu.se>
38315 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38317 (ASM_OUTPUT_CASE_LABEL): Remove.
38318 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38319 * final.c (shorten_branches): Update alignment of labels before
38320 jump tables if CASE_VECTOR_SHORTEN_MODE.
38322 2013-01-15 Richard Biener <rguenther@suse.de>
38325 * system.h: Do not include gmp.h for building host tools.
38327 2013-01-15 Richard Biener <rguenther@suse.de>
38329 PR middle-end/55882
38330 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38331 account for bitpos when computing alignment.
38333 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38335 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38336 (ix86_target_macros_internal): Likewise.
38338 * config/i386/i386.c (m_CORE2I7): Removed.
38339 (m_CORE_HASWELL): New macro.
38340 (m_CORE_ALL): Likewise.
38341 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38342 (initial_ix86_arch_features): Likewise.
38343 (processor_target_table): Initializations for Core avx2.
38344 (cpu_names): New names "core-avx2".
38345 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38346 PROCESSOR_CORE_HASWELL.
38347 (ix86_issue_rate): New case.
38348 (ia32_multipass_dfa_lookahead): Likewise.
38349 (ix86_sched_init_global): Likewise.
38351 * config/i386/i386.h (TARGET_HASWELL): New macro.
38352 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38353 (processor_type): New PROCESSOR_HASWELL.
38355 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38357 PR tree-optimization/55955
38358 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38359 *SHIFT_EXPR and *ROTATE_EXPR codes.
38361 PR tree-optimization/48766
38362 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38363 -ftrapv disable -fwrapv.
38365 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38368 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38369 etc. to 1 and not to __flash.
38370 Use LL suffix for __INT24_MAX__ with -mint8.
38371 Use ULL suffix for __UINT24_MAX__ with -mint8.
38373 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38375 * config/avr/avr-arch.h
38376 (struct base_arch_s): Use typedef avr_arch_t instead.
38377 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38378 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38379 * config/avr/avr.c: Same.
38380 * config/avr/avr-devices.c: Same.
38381 * config/avr/driver-avr.c: Same.
38382 * config/avr/gen-avr-mmcu-texi.c: Same.
38383 * config/avr/avr-mcus.def: Adjust comment.
38385 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38387 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38388 * config/aarch64/iterators.md (VALLDI): New.
38390 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38391 Andi Kleen <ak@linux.intel.com>
38394 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38395 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38398 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38400 * config/avr/avr-stdint.h: Remove trailing blanks.
38401 * config/avr/avr-log.h: Same.
38402 * config/avr/avr-arch.h: Same.
38403 * config/avr/avr-devices.c: Same.
38404 * config/avr/avr-dimode.md: Same.
38405 * config/avr/predicates.md: Same.
38406 * config/avr/avr-c.c: Same. And fix typo.
38408 * config/avr/avr-protos.h: Same. And:
38409 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38410 (init_cumulative_args): Rename to avr_init_cumulative_args.
38411 (expand_prologue): Rename to avr_expand_prologue.
38412 (expand_epilogue): Rename to avr_expand_epilogue.
38413 (adjust_insn_length): Rename to avr_adjust_insn_length.
38414 (notice_update_cc): Rename to avr_notice_update_cc.
38415 (final_prescan_insn): Rename to avr_final_prescan_insn.
38416 * config/avr/avr.c: Same.
38417 * config/avr/avr.h: Same.
38418 * config/avr/avr.md: Remove trailing blanks.
38419 (prologue): Use avr_expand_prologue.
38420 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38422 2013-01-14 Richard Biener <rguenther@suse.de>
38424 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38425 verify_location, collect_subblocks): New functions.
38426 (verify_gimple_in_cfg): Verify that locations only reference
38427 BLOCKs in the functions BLOCK tree.
38429 2013-01-14 Richard Biener <rguenther@suse.de>
38431 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38433 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38435 (insert_out_of_ssa_copy_on_edge): Likewise.
38436 (rewrite_close_phi_out_of_ssa): Likewise.
38437 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38439 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38440 propagated constants.
38441 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38444 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38446 * config/avr/avr-modes.def: Add GPL copyright notice.
38448 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38450 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38451 MEMMODEL_MASK to determine memory model.
38452 (atomic_store<mode>): Ditto from operands[2].
38453 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38455 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38458 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38459 (fold_gimple_assign): Don't call unshare_expr here.
38460 (fold_ctor_reference): Call unshare_expr.
38462 2013-01-13 Terry Guo <terry.guo@arm.com>
38464 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38465 * doc/fragments.texi: Document MULTILIB_REUSE.
38466 * gcc.c (multilib_reuse): New internal spec.
38467 (set_multilib_dir): Also search multilib from multilib_reuse.
38468 * genmultilib (tmpmultilib3): Refactor code.
38469 (tmpmultilib4): Ditto.
38470 (multilib_reuse): New multilib argument.
38472 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38474 * Makefile.in: Update copyright.
38476 2013-01-12 Tom de Vries <tom@codesourcery.com>
38478 PR middle-end/55890
38479 * calls.c (expand_call): Check if arg_nr is valid.
38481 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38483 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38484 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38485 documentation. Add missing '__' in front of
38486 __builtin_ia32_packssdw256.
38488 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38491 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38492 NO_REGS for larl operands.
38493 (s390_reload_larl_operand): Use s390_load_address instead of
38496 2013-01-11 Richard Biener <rguenther@suse.de>
38498 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38499 (verify_node_sharing): ... here.
38500 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38502 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38504 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38505 Substitute TREECHECKING.
38506 * configure: Regenerate.
38507 * Makefile.in (TREECHECKING): New.
38509 2013-01-11 Richard Guenther <rguenther@suse.de>
38511 PR tree-optimization/44061
38512 * tree-vrp.c (extract_range_basic): Compute zero as
38513 value-range for __builtin_constant_p of function parameters.
38515 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38517 Update copyright years.
38519 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38521 PR rtl-optimization/55672
38522 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38523 const to be eliminable.
38525 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38527 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38528 * configure: Regenerate.
38530 2013-01-10 Richard Biener <rguenther@suse.de>
38532 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38534 2013-01-10 Richard Biener <rguenther@suse.de>
38537 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38538 locations for virtual PHI arguments.
38539 (rewrite_update_phi_arguments): Likewise.
38541 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38543 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38546 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38548 PR tree-optimization/55921
38549 * tree-complex.c (expand_complex_asm): New function.
38550 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38552 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38555 * config/s390/s390.c (s390_symref_operand_p)
38556 (s390_loadrelative_operand_p): Merge the two functions.
38557 (s390_check_qrst_address, print_operand_address): Add parameters
38558 to s390_loadrelative_operand_p invokation.
38559 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38560 (s390_reload_larl_operand, s390_secondary_reload): Use
38561 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38562 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38564 2013-01-09 Mike Stump <mikestump@comcast.net>
38566 * dse.c (record_store): Remove unnecessary assert.
38568 2013-01-09 Jan Hubicka <jh@suse.cz>
38570 PR tree-optimization/55569
38571 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38572 * cfgloop.h (scale_loop_profile): Likewise.
38574 2013-01-09 Jan Hubicka <jh@suse.cz>
38577 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38579 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38581 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38583 PR middle-end/55114
38584 * expr.h (maybe_emit_group_store): Declare.
38585 * expr.c (maybe_emit_group_store): New function.
38586 * builtins.c (expand_builtin_int_roundingfn): Call it.
38587 (expand_builtin_int_roundingfn_2): Likewise.
38589 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38591 PR rtl-optimization/55829
38592 * lra-constraints.c (match_reload): Add code for absent output.
38593 (curr_insn_transform): Add code for reloads of matched inputs
38596 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38598 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38599 attribute of movddup insn to DF.
38600 (*vec_interleave_lowv2df): Ditto.
38601 (vec_dupv2df): Ditto.
38603 2013-01-09 Jan Hubicka <jh@suse.cz>
38605 PR tree-optimiation/55875
38606 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38607 EVERY_ITERATION parameter.
38608 (number_of_iterations_exit): Check if exit is executed every iteration.
38609 (idx_infer_loop_bounds): Similarly here.
38610 (n_of_executions_at_most): Simplify
38611 to only test for cases where statement is dominated by the
38612 particular bound; handle correctly the "postdominance" test.
38613 (scev_probably_wraps_p): Use max loop iterations info
38614 as a global bound first.
38616 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38617 Nick Clifton <nickc@redhat.com>
38619 * config/v850/v850.md (cbranchsf4): New pattern.
38620 (cstoresf4): New pattern.
38621 (cbranchdf4): New pattern.
38622 (cstoredf4): New pattern.
38623 (movsicc): Disallow floating point comparisons.
38624 (cmpsf_le_insn): Fix order of operators.
38625 (cmpsf_lt_insn): Likewise.
38626 (cmpsf_eq_insn): Likewise.
38627 (cmpdf_le_insn): Likewise.
38628 (cmpdf_lt_insn): Likewise.
38629 (cmpdf_eq_insn): Likewise.
38630 (cmpsf_ge_insn): Use LE comparison.
38631 (cmpdf_ge_insn): Likewise.
38632 (cmpsf_gt_insn): Use LT comparison.
38633 (cmpdf_gt_insn): Likewise.
38634 (cmpsf_ne_insn): Delete pattern.
38635 (cmpdf_ne_insn): Delete pattern.
38636 * config/v850/v850.c (v850_gen_float_compare): Use
38637 gen_cmpdf_eq_insn for NE comparison.
38638 (v850_float_z_comparison_operator)
38639 (v850_float_nz_comparison_operator): Move from here ...
38640 * config/v850/predicates.md: ... to here. Move GT and GE
38641 comparisons into v850_float_z_comparison_operator.
38642 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38644 (v850_float_nz_comparison_operator): Likewise.
38646 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38648 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38649 with calls to gen_insvsi/gen_insvdi.
38651 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38653 * config/i386/i386.c (initial_ix86_tune_features): Set up
38654 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38656 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38657 Jakub Jelinek <jakub@redhat.com>
38659 PR tree-optimization/48189
38660 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38661 If nitercst is 0, don't predict the exit edge.
38663 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38665 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38666 in asm_fprintf with reg_names.
38667 (aarch64_print_operand_address): Likewise.
38668 (aarch64_return_addr): Likewise.
38669 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38671 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38673 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38674 (INT_U6_BITS): Likewise.
38675 * config/pa/predicates.md (uint6_operand): New predicate.
38676 (shift5_operand, shift6_operand): Likewise.
38677 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38679 (lshrdi3): Use shift6_operand.
38680 (shrpsi4, shrpdi4): New insn patterns.
38681 (extzv): Delete expander.
38682 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38683 predicates in unamed zero extract patterns. Tighten common constraint.
38684 (extv): Delete expander.
38685 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38686 predicates in unamed sign extract patterns. Tighten common constraint.
38687 (insv): Delete expander.
38688 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38689 predicates in unamed insert patterns. Tighten common constraint.
38690 Change uint32_operand predicate to uint6_operand predicate in unamed
38691 DImode pattern to insert constant values of type 1...1xxxx.
38693 2013-01-04 Jan Hubicka <jh@suse.cz>
38695 PR tree-optimization/55823
38696 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38699 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38700 Uros Bizjak <ubizjak@gmail.com>
38702 PR rtl-optimization/55845
38703 * df-problems.c (can_move_insns_across): Stop scanning at
38704 volatile_insn_p source instruction or give up if
38705 across_from .. across_to range contains any volatile_insn_p
38708 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38710 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38711 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38713 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38714 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38716 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38719 * asan.c (asan_clear_shadow): New function.
38720 (asan_emit_stack_protection): Use it.
38722 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38724 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38725 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38726 with tab instead of space.
38728 2013-01-08 Nick Clifton <nickc@redhat.com>
38730 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38731 register bank 0 at the start of an interrupt handler.
38732 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38735 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38737 * config/aarch64/aarch64-simd.md
38738 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38739 (aarch64_simd_bsl): Likewise.
38740 (aarch64_vcond_internal<mode>): Likewise.
38741 (vcond<mode><mode>): Likewise.
38742 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38743 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38745 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38747 * config/aarch64/aarch64-builtins.c
38748 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38750 2013-01-08 Martin Jambor <mjambor@suse.cz>
38753 * tree-sra.c (analyze_access_subtree): Return true also after
38754 potentially creating a debug-only replacement.
38756 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38758 PR middle-end/55890
38759 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38761 PR tree-optimization/54120
38762 * tree-vrp.c (range_fits_type_p): Don't allow
38763 src_precision < precision from signed vr to unsigned_p
38764 if vr->min or vr->max is negative.
38765 (simplify_float_conversion_using_ranges): Test can_float_p
38766 against CODE_FOR_nothing.
38768 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38769 Richard Biener <rguenther@suse.de>
38771 PR middle-end/55851
38772 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38773 types instead of just INTEGER_TYPE types.
38775 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38777 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38780 2013-01-07 Steve Ellcey <sellcey@mips.com>
38783 * config/mips/mips.opt: Change mad to mmad to match documentation.
38785 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38788 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38789 .progmemx.data now.
38791 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38794 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38795 (avr_addrspace_t): Add .section_name field.
38796 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38798 (avr_addrspace): Same. Initialize .section_name. Remove last
38799 NULL entry. Put __memx into .progmemx.data.
38800 (progmem_section_prefix): Remove.
38801 (avr_asm_init_sections): No need to initialize progmem_section.
38802 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38803 section name prefix.
38804 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38805 retrieve the progmem section.
38806 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38807 boundary to run over avr_addrspace[].
38808 (avr_register_target_pragmas): Ditto.
38810 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38812 * varasm.c (output_constant_def_contents): For asan_protect_global
38813 protected strings, adjust DECL_ALIGN if needed, before testing for
38815 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38816 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38818 (output_object_block): For asan protected decls, emit asan padding
38819 after their contents.
38820 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38821 (asan_finish_file): Test it here instead.
38823 2013-01-07 Nick Clifton <nickc@redhat.com>
38824 Matthias Klose <doko@debian.org>
38825 Doug Kwan <dougkwan@google.com>
38826 H.J. Lu <hongjiu.lu@intel.com>
38829 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38831 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38833 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38835 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38837 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38839 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38842 * doc/install.texi (Cross-Compiler-Specific Options): Document
38845 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38847 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38848 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38849 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38850 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38851 vqmovun_high_s64): Fix source operand number and update copyright.
38853 2013-01-07 Richard Biener <rguenther@suse.de>
38855 PR middle-end/55890
38856 * gimple.h (gimple_call_builtin_p): New overload.
38857 * gimple.c (validate_call): New function.
38858 (gimple_call_builtin_p): Likewise.
38859 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38860 Use gimple_call_builtin_p.
38861 (find_func_clobbers): Likewise.
38862 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38863 (strlen_optimize_stmt): Likewise.
38865 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38867 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38868 (vld1q_dup_*): Likewise.
38869 (vld1_*): Likewise.
38870 (vld1q_*): Likewise.
38871 (vld1_lane_*): Likewise.
38872 (vld1q_lane_*): Likewise.
38874 2013-01-07 Richard Biener <rguenther@suse.de>
38876 * lto-streamer.h (LTO_minor_version): Bump to 2.
38878 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38880 * config/aarch64/aarch64-protos.h
38881 (aarch64_const_double_zero_rtx_p): Rename to...
38882 (aarch64_float_const_zero_rtx_p): ...this.
38883 (aarch64_float_const_representable_p): New.
38884 (aarch64_output_simd_mov_immediate): Likewise.
38885 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38886 move immediate case.
38887 * config/aarch64/aarch64.c
38888 (aarch64_const_double_zero_rtx_p): Rename to...
38889 (aarch64_float_const_zero_rtx_p): ...this.
38890 (aarch64_print_operand): Allow printing of new constants.
38891 (aarch64_valid_floating_const): New.
38892 (aarch64_legitimate_constant_p): Check for valid floating-point
38894 (aarch64_simd_valid_immediate): Likewise.
38895 (aarch64_vect_float_const_representable_p): New.
38896 (aarch64_float_const_representable_p): Likewise.
38897 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38898 (aarch64_output_simd_mov_immediate): New.
38899 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38900 (*movdf_aarch64): Likewise.
38901 * config/aarch64/constraints.md (Ufc): New.
38902 (Y): call aarch64_float_const_zero_rtx.
38903 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38905 2013-01-07 Richard Biener <rguenther@suse.de>
38907 PR tree-optimization/55888
38908 PR tree-optimization/55862
38909 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38910 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38911 not if it is contained therein.
38913 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38915 * config/avr/t-avr: Typo.
38917 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38920 * config/avr/t-avr: Don't automatically rebuild
38921 $(srcdir)/config/avr/t-multilib
38922 $(srcdir)/config/avr/avr-tables.opt
38923 $(srcdir)/doc/avr-mmcu.texi
38924 (avr-mcus): New phony target to build them on request.
38925 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38926 * avr/avr-mcus.def: Adjust comments.
38928 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38930 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38932 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38934 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38936 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38938 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38940 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38942 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38943 to generate profiling.
38944 * config/rs6000/aix64.h (LIB_SPEC): Same.
38946 2013-01-04 Andrew Pinski <apinski@cavium.com>
38948 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38950 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38952 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38954 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38956 (ix86_expand_move): Ditto.
38957 (ix86_zero_extend_to_Pmode): Ditto.
38958 (ix86_expand_call): Ditto.
38959 (ix86_expand_special_args_builtin): Ditto.
38960 (ix86_expand_builtin): Ditto.
38962 2013-01-04 Richard Biener <rguenther@suse.de>
38964 PR tree-optimization/55862
38965 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38966 translating them through PHI nodes.
38968 2013-01-04 Martin Jambor <mjambor@suse.cz>
38970 PR tree-optimization/55755
38971 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38972 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38974 2013-01-04 Marek Polacek <polacek@redhat.com>
38976 PR middle-end/55859
38977 * opts.c (default_options_optimization): Clarify error message.
38979 2013-01-04 Richard Biener <rguenther@suse.de>
38981 PR middle-end/55863
38982 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38985 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38988 * config/pa/pa.md (movsi): Revert previous change.
38989 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38992 2013-01-03 Richard Henderson <rth@redhat.com>
38994 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38995 after eliminating TLS symbols.
38997 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39000 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39001 * graphite-poly.c (debug_gmp_value): Likewise.
39003 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39006 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39007 selected code model, define __code_mode_small__, __code_model_medium__,
39008 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39009 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39010 xchg temporary register with %k. Declare temporary register as
39012 [__x86_64__]: For medium and large code models, preserve %rbx register.
39014 2013-01-03 Richard Biener <rguenther@suse.de>
39016 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39017 (dump_subscript): Adjust.
39018 (finalize_ddr_dependent): Do not dump redundant info.
39019 (analyze_siv_subscript): Adjust.
39020 (subscript_dependence_tester): Likewise.
39021 (compute_affine_dependence): Likewise.
39023 2013-01-03 Richard Biener <rguenther@suse.de>
39026 2013-01-03 Richard Biener <rguenther@suse.de>
39028 PR tree-optimization/55857
39029 * tree-vect-stmts.c (vectorizable_load): Do not setup
39030 re-alignment for invariant loads.
39032 2013-01-02 Richard Biener <rguenther@suse.de>
39034 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39035 invariant load do not generate a vector load from the scalar location.
39037 2013-01-03 Richard Biener <rguenther@suse.de>
39039 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39040 for not vectorizing.
39041 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39042 not build INDIRECT_REFs, call get_name once only.
39043 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39044 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39046 2013-01-03 Richard Biener <rguenther@suse.de>
39048 PR tree-optimization/55857
39049 * tree-vect-stmts.c (vectorizable_load): Do not setup
39050 re-alignment for invariant loads.
39052 2013-01-03 Richard Biener <rguenther@suse.de>
39055 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39056 prefer a built-in decl.
39058 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39060 * gcc.c (process_command): Update copyright notice dates.
39061 * gcov.c (print_version): Likewise.
39062 * gcov-dump.c (print_version): Likewise.
39064 PR rtl-optimization/55838
39065 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39066 iv0.step, iv1.step and step.
39068 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39069 Marc Glisse <marc.glisse@inria.fr>
39071 PR tree-optimization/55832
39072 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39073 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39074 integer_{one,zero}_node.
39076 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39079 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39080 * var-tracking.c (reverse_op): Don't add reverse ops to
39081 VALUEs that have already
39082 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39084 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39086 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39088 2013-01-02 Teresa Johnson <tejohnson@google.com>
39090 * dumpfile.c (dump_loc): Print filename with location.
39091 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39092 new location_t parameter to emit complete unroll message with
39093 new dump framework.
39094 (canonicalize_loop_induction_variables): Compute loops location
39095 and pass to try_unroll_loop_completely.
39096 * loop-unroll.c (report_unroll_peel): New function.
39097 (peel_loops_completely): Use new dump format with location
39098 for main dumpfile message, and invoke report_unroll_peel on success.
39099 (decide_unrolling_and_peeling): Ditto.
39100 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39101 by report_unroll_peel.
39102 (decide_peel_completely): Ditto.
39103 (decide_unroll_constant_iterations): Ditto.
39104 (decide_unroll_runtime_iterations): Ditto.
39105 (decide_peel_simple): Ditto.
39106 (decide_unroll_stupid): Ditto.
39107 * cfgloop.c (get_loop_location): New function.
39108 * cfgloop.h (get_loop_location): Declare.
39110 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39112 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39115 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39117 PR middle-end/55198
39118 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39119 BLKmode objects when EXPAND_MEMORY is specified.
39121 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39123 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39125 (fold_builtin_cpu): Do not share cpu model decls across statements.
39127 2013-01-02 Jason Merrill <jason@redhat.com>
39130 * tree.c (build_array_type_1): Revert earlier change.
39132 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39134 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39136 * config/aarch64/aarch64-tune.md: Re-generate.
39138 2013-01-02 Richard Biener <rguenther@suse.de>
39140 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39141 invariant load do not generate a vector load from the scalar location.
39143 2013-01-02 Richard Biener <rguenther@suse.de>
39146 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39147 * configure: Regenerate.
39149 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39151 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39152 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39153 (expand_builtin_int_roundingfn_2): Keep the original target around
39154 for the fallback case.
39156 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39158 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39159 to be clear for sign changes.
39161 2013-01-01 Jan Hubicka <jh@suse.cz>
39163 * ipa-inline-analysis.c: Fix formatting.
39165 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39167 PR tree-optimization/55831
39168 * tree-vect-loop.c (get_initial_def_for_induction): Use
39169 gsi_after_labels instead of gsi_start_bb.
39171 Copyright (C) 2013 Free Software Foundation, Inc.
39173 Copying and distribution of this file, with or without modification,
39174 are permitted in any medium without royalty provided the copyright
39175 notice and this notice are preserved.