1 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
4 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
5 DEFAULT_LINKER is defined.
6 * common.opt (fuse-ld=bfd): Add Driver.
7 (fuse-ld=gold): Likewise.
8 * gcc.c (use_ld): New variable.
9 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
11 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
13 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
16 * config.gcc (extra_headers): Add arm_acle.h.
17 * config/arm/arm.c (FL_CRC32): Define.
18 (arm_have_crc): Likewise.
19 (arm_option_override): Set arm_have_crc.
20 (arm_builtins): Add CRC32 builtins.
21 (bdesc_2arg): Likewise.
22 (arm_init_crc32_builtins): New function.
23 (arm_init_builtins): Initialise CRC32 builtins.
24 (arm_file_start): Handle architecture extensions.
25 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FEATURE_CRC32.
26 Define __ARM_32BIT_STATE.
27 (TARGET_CRC32): Define.
28 * config/arm/arm-arches.def: Add armv8-a+crc.
29 * config/arm/arm-tables.opt: Regenerate.
30 * config/arm/arm.md (type): Add crc.
31 (<crc_variant>): New insn.
32 * config/arm/arm_acle.h: New file.
33 * config/arm/iterators.md (CRC): New int iterator.
34 (crc_variant, crc_mode): New int attributes.
35 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
36 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
37 * doc/invoke.texi: Document -march=armv8-a+crc option.
38 * doc/extend.texi: Document ACLE intrinsics.
40 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
43 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
45 * config/arm/ldmstm.md: Regenerate.
47 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
50 * config/arm/predicates.md (arm_hard_general_register_operand):
52 (arm_hard_register_operand): Remove.
53 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
55 * config/arm/ldmstm.md: Regenerate.
57 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
60 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
61 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
62 vfp_hard_register_operand.
64 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
66 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
67 Define builtin types for poly64_t poly128_t.
68 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
69 * aarch64/aarch64-simd-builtins.def: Update builtins table.
70 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
71 aarch64_crypto_pmullv2di): New.
72 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
74 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
75 (vmull_p64, vmull_high_p64): New.
76 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
78 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
80 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
81 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha256h<sha256_op>v4si,
82 aarch64_crypto_sha256su0v4si, aarch64_crypto_sha256su1v4si): New.
83 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
84 vsha256su0q_u32, vsha256su1q_u32): New.
85 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
87 (CRYPTO_SHA256): New int iterator.
88 (sha256_op): New int attribute.
90 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
92 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
93 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
95 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
96 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
97 aarch64_crypto_sha1su0v4si): New.
98 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
99 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
100 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
102 (CRYPTO_SHA1): New int iterator.
103 (sha1_op): New int attribute.
105 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
107 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
108 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
110 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
111 aarch64_crypto_aes<aesmc_op>v16qi): New.
112 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
114 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
116 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
117 (aes_op, aesmc_op): New int attributes.
119 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
121 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
122 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
123 crypto_sha256_slow): New.
125 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
127 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
128 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
130 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
131 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
133 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
135 (s390_hotpatch_trampoline_halfwords_max): New constant
136 (s390_hotpatch_trampoline_halfwords): New static variable
137 (get_hotpatch_attribute): New function
138 (s390_handle_hotpatch_attribute): New function
139 (s390_attribute_table): New target specific attribute table to implement
140 the hotpatch attribute
141 (s390_option_override): Parse hotpatch options
142 (s390_function_num_hotpatch_trampoline_halfwords): New function
143 (s390_can_inline_p): Implement target hook to
144 suppress hotpatching for explicitly inlined functions
145 (s390_asm_output_function_label): Generate hotpatch prologue
146 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
147 (TARGET_CAN_INLINE_P): Define to implement target hook
148 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
149 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
151 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
152 function label generation for hotpatching
153 (FUNCTION_BOUNDARY): Align functions to eight bytes
154 * doc/extend.texi: Document hotpatch attribute
155 * doc/invoke.texi: Document -mhotpatch option
157 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
159 * config/i386/i386.c: Include cfgloop.h.
160 (ix86_loop_memcount): New function.
161 (ix86_loop_unroll_adjust): New function.
162 (TARGET_LOOP_UNROLL_ADJUST): Define.
164 (TARGET_ADJUST_UNROLL): Define.
165 * config/i386/x86-tune.def
166 (X86_TUNE_ADJUST_UNROLL): Define.
168 2013-12-19 Marek Polacek <polacek@redhat.com>
170 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
171 variable alg. Use index variable i directly.
173 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
175 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
178 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
180 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
181 Consider TARGET_CPU_DEFAULT settings.
183 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
185 * config/aarch64/aarch64-cores.def: Add support for
186 -mcpu=cortex-a57.cortex-a53.
187 * config/aarch64/aarch64-tune.md: Regenerate.
188 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
190 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
192 * config/aarch64/aarch64-cores.def: Add new column for
194 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle
196 * config/aarch64/aarch64.c (AARCH64_CORE): Handle
198 (aarch64_parse_cpu): mcpu implies a default value for mtune.
199 * config/aarch64/aarch64.h (AARCH64_CORE): Handle
202 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
204 * common/config/aarch64/aarch64-common.c
205 (aarch64_rewrite_selected_cpu): New.
206 (aarch64_rewrite_mcpu): New.
207 * config/aarch64/aarch64-protos.h
208 (aarch64_rewrite_selected_cpu): New.
209 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
210 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
211 (ASM_CPU_SPEC): Likewise.
212 (EXTRA_SPEC_FUNCTIONS): Likewise.
213 (EXTRA_SPECS): Likewise.
214 (ASM_SPEC): Likewise.
215 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
218 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
220 * omp-low.c (simd_clone_clauses_extract): Replaced the string
221 "cilk simd elemental" with "cilk simd function."
222 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
223 Removed a carriage-return from a warning string.
225 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
227 * passes.c (execute_function_dump): Set graph_dump_initialized
229 (pass_init_dump_file): Similarly.
230 (execute_one_pass): Pass new argument to do_per_function.
231 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
233 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
235 * doc/tree-ssa.texi (SSA Operands): Remove reference to
237 Synchronize SSA_OP* definitions with source.
238 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
239 Add not to SSA_OP* macro definitions.
241 2013-12-18 Jakub Jelinek <jakub@redhat.com>
245 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
246 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
247 prefix existing define_insn names with *.
249 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
251 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
253 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
254 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
256 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
257 cortex-a57, cortex-a57.cortex-a53.
259 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
262 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
263 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
264 (dwarf2out_frame_debug_expr): Tidy.
266 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
268 Sergey Lega <sergey.s.lega@intel.com>
269 Anna Tikhonova <anna.tikhonova@intel.com>
270 Ilya Tocar <ilya.tocar@intel.com>
271 Andrey Turetskiy <andrey.turetskiy@intel.com>
272 Ilya Verbin <ilya.verbin@intel.com>
273 Kirill Yukhin <kirill.yukhin@intel.com>
274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
276 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
277 (*fma_fmsub_<mode>): Ditto.
278 (*fma_fnmadd_<mode>): Ditto.
279 (*fma_fnmsub_<mode>): Ditto.
280 (*fma_fmaddsub_<mode>): Ditto.
281 (*fma_fmsubadd_<mode>): Ditto.
282 (avx512f_vternlog<mode>): Ditto.
283 (avx512f_fixupimm<mode>): Ditto.
284 (avx512f_sfixupimm<mode>): Ditto.
285 (avx512f_vpermi2var<mode>3): Ditto.
286 (avx512f_vpermt2var<mode>3): Ditto.
287 (avx512f_fmaddsub_<mode>_maskz): New.
288 (avx512f_vternlog<mode>_maskz): Ditto.
289 (avx512f_fixupimm<mode>_maskz): Ditto.
290 (avx512f_sfixupimm<mode>_maskz): Ditto.
291 (avx512f_vpermi2var<mode>3_maskz): Ditto.
292 (avx512f_vpermt2var<mode>3_maskz): Ditto.
293 (avx512f_expand<mode>_maskz): Ditto.
294 * config/i386/subst.md (sd_maskz_name): Ditto.
295 (sd_mask_op4): Ditto.
296 (sd_mask_op5): Ditto.
297 (sd_mask_codefor): Ditto.
298 (sd_mask_mode512bit_condition): Ditto.
301 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
302 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
303 Sergey Lega <sergey.s.lega@intel.com>
304 Anna Tikhonova <anna.tikhonova@intel.com>
305 Ilya Tocar <ilya.tocar@intel.com>
306 Andrey Turetskiy <andrey.turetskiy@intel.com>
307 Ilya Verbin <ilya.verbin@intel.com>
308 Kirill Yukhin <kirill.yukhin@intel.com>
309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
311 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
312 (avx512f_ucmp<mode>3): Ditto.
313 (avx512f_eq<mode>3): Ditto.
314 (avx512f_gt<mode>3): Ditto.
315 (avx512f_testm<mode>3): Ditto.
316 (avx512f_testnm<mode>3): Ditto.
317 * config/i386/subst.md (SUBST_S): New.
318 (mask_scalar_merge_name): Ditto.
319 (mask_scalar_merge_operand3): Ditto.
320 (mask_scalar_merge_operand4): Ditto.
321 (mask_scalar_merge): Ditto.
323 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
326 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
328 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
330 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
333 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
335 2013-12-17 Teresa Johnson <tejohnson@google.com>
337 PR gcov-profile/59527
338 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
339 branch, which can't be eliminated.
341 2013-12-18 Martin Liska <marxin.liska@gmail.com>
342 Jan Hubicka <jh@suse.cz>
344 * cgraphunit.c (node_cmp): New function.
345 (expand_all_functions): Function ordering added.
346 * common.opt: New profile based function reordering flag introduced.
347 * lto-partition.c: Support for time profile added.
349 * predict.c (handle_missing_profiles): Time profile handled in
352 2013-12-17 Jakub Jelinek <jakub@redhat.com>
354 PR tree-optimization/59523
355 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
358 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
360 * ipa-inline.c (gate_ipa_inline): Remove.
361 (const pass_data pass_data_ipa_inline): Unset has_gate.
362 (class pass_ipa_inline): Remove gate() method.
364 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
366 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
367 in contains_type_p query.
369 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
371 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
374 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
377 * omp-low.c: Remove leftover comment.
379 * omp-low.c (check_combined_parallel): Reflect reality in comment.
381 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
383 * doc/passes.texi (Pass manager): Refer to passes.def.
385 * doc/gccint.texi (Top): Fix inclusion order.
387 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
389 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
390 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
391 * config/arm/arm.md (generic_vfp): Remove cortexa12.
393 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
395 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
396 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
397 * config/arm/arm-tables.opt: Regenerate.
398 * config/arm/arm-tune.md: Regenerate.
400 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
402 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
404 * config/arm/arm-cores.def (cortex-a57): New.
405 * doc/invoke.texi: Document -mcpu=cortex-a57.
406 * config/arm/arm-tables.opt: Regenerate.
407 * config/arm/arm-tune.md: Regenerate.
408 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
410 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
412 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
413 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
414 * config/arm/arm-tables.opt: Regenerate.
415 * config/arm/arm-tune.md: Regenerate.
417 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
419 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
421 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
422 * config/arm/genopt.sh: Improve layout.
423 * config/arm/arm-tune.md: Regenerate.
424 * config/arm/arm-tables.opt: Regenerate.
425 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
426 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
427 (arm_option_override): When a CPU is chosen, that should also
428 form the tune target.
429 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
431 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
433 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
434 (arm_rewrite_mcpu): Likewise.
435 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
436 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
437 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
438 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
439 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
440 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
442 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
444 * expmed.c (lowpart_bit_field_p): Fix comment.
445 (store_bit_field_using_insv): Fix formatting.
446 (store_bit_field): Likewise.
447 (store_fixed_bit_field): More declaration and remove return.
448 (store_fixed_bit_field_1): Fix formatting.
449 (extract_fixed_bit_field): Move declaration.
450 (extract_fixed_bit_field_1): Simplify.
452 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
454 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
456 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
458 2013-12-17 Jakub Jelinek <jakub@redhat.com>
460 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
461 instead of x as last gen_lowpart argument.
463 2013-12-16 Jakub Jelinek <jakub@redhat.com>
465 * predict.h (PROB_LIKELY): Fix the value.
466 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
467 for overflow checking for modes without 2xwider supported mode,
468 if the mode has 2xnarrower mode.
470 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
471 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
472 try to improve generated code if one of the arguments is constant
473 or get_range_info says that one of the argument is always
474 negative or always non-negative.
475 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
476 (simplify_stmt_using_ranges): Call it.
478 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
480 PR rtl-optimization/59466
481 * emit-rtl.c (change_address_1): Don't validate address for LRA.
482 * recog.c (general_operand): Accept any memory for LRA.
483 * lra.c (lra_set_insn_recog_data): Add an assert.
485 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
487 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
489 2013-12-14 Jan Hubicka <jh@suse.cz>
490 Markus Trippelsdorf <octoploid@yandex.com>
493 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
494 call is already devirtualized.
496 2013-12-16 Jakub Jelinek <jakub@redhat.com>
498 * Makefile.in (version.o): Restore dependencies on
499 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
501 2013-12-14 Jan Hubicka <jh@suse.cz>
504 * ipa-devirt.c (get_class_context): Do not ICE when type is found
507 2013-12-16 Jakub Jelinek <jakub@redhat.com>
510 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
511 reductions without placeholder if is_simd, but when not using
512 GOMP_SIMD* internal calls, also perform the reduction operation
513 on the outer var rather than simple assignment.
515 2013-12-16 Jakub Jelinek <jakub@redhat.com>
519 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
520 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
522 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
523 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
524 calls to supply the gimple operand containing the base tree
525 as an extra argument.
526 * tree-ssa-ter.c: Include gimple-walk.h.
527 (find_ssaname, find_ssaname_in_store): New helper functions.
528 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
529 same_root_var if USE is used somewhere in the stores of the stmt.
530 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
531 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
532 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
533 check_ipa_store): Likewise.
534 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
535 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
536 (verify_non_ssa_vars, visit_bb): Adjust their callers.
537 * cfgexpand.c (add_scope_conflicts_1): Use
538 walk_stmt_load_store_addr_fn type for visit variable.
539 (visit_op, visit_conflict): Remove name of the stmt
540 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
541 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
542 argument and ATTRIBUTE_UNUSED.
543 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
544 unnamed tree argument.
545 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
546 ATTRIBUTE_UNUSED from stmt parameter.
548 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
550 * opts-common.c (integral_argument): Add support for
551 hexadecimal command option integer arguments. Update comments.
553 2013-12-14 Jan Hubicka <jh@suse.cz>
556 * ipa-prop.c (ipa_analyze_call_uses): Skip already
559 2013-12-14 Jan Hubicka <jh@suse.cz>
561 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
563 2013-12-14 Jan Hubicka <jh@suse.cz>
566 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
568 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
571 * config/i386/i386.c (ix86_function_specific_restore): Don't
574 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
576 * var-tracking.c (add_stores): Fix oversight in latest commit.
578 2013-12-14 Marek Polacek <polacek@redhat.com>
581 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
582 expand_binop with correct optab depending on code.
584 2013-12-14 Tom de Vries <tom@codesourcery.com>
586 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
588 2013-12-13 DJ Delorie <dj@redhat.com>
590 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
592 * config/msp430/msp430.md (movqi): replace general_operand with
593 msp_general_operand and nonimmediate_operand with
594 msp_nonimmediate_operand to allow volatile operands.
599 (addhi3_cy): Likewise.
600 (addchi4_cy): Likewise.
601 (xor<mode>3): Likewise.
602 (ome_cmpl<mode>2): Likewise.
603 (extendqihi2): Likewise.
604 (zero_extendqihi2): Likewise.
605 (zero_extendhipsi2): Likewise.
606 (truncpsihi2): Likewise.
609 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
611 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
613 * lra-int.h (lra_init_equiv): New prototype.
614 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
615 (loc_equivalence_callback): Use the 3rd arg.
616 (lra_constraints): Update equivalences. Pass curr_insn to
617 simplify_replace_fn_rtx.
618 * lra.c (lra): Call lra_init_equiv.
620 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
622 * genmodes.c (emit_max_int): Fixed missing parens.
624 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
626 PR tree-optimization/59149
627 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
628 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
631 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
633 * config/arc/arc.h (BITS_PER_UNIT): Removed.
634 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
635 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
636 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
637 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
638 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
639 * config/spu/spu.h (BITS_PER_UNIT): Removed.
640 * defaults.h (BITS_PER_UNIT): Removed.
641 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
642 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
643 (MAX_BITSIZE_MODE_ANY_INT): Updated.
644 * doc/tm.texi (BITS_PER_UNIT): Removed.
645 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
646 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
647 (create_modes): Added code to set bits_per_unit and
648 max_bitsize_mode_any_int.
649 (emit_max_int): Changed code generation.
650 * mkconfig.sh: Added insn-modes.h.
652 2013-12-13 Jeff Law <law@redhat.com>
654 PR tree-optimization/45685
655 * tree-ssa-phiopt.c (neg_replacement): New function.
656 (tree_ssa_phiopt_worker): Call it.
658 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
660 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
662 2013-12-13 Bin Cheng <bin.cheng@arm.com>
664 PR tree-optimization/58296
665 PR tree-optimization/41488
666 * tree-scalar-evolution.c: Include necessary header files.
667 (simplify_peeled_chrec): New function.
668 (analyze_evolution_in_loop): New static variable.
669 Call simplify_peeled_chrec.
670 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
671 (add_old_iv_candidates): Don't add candidate for peeled IV.
672 * tree-affine.h (aff_combination_zero_p): New function.
674 2013-12-13 Nick Clifton <nickc@redhat.com>
676 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
677 true if the current function has the wakeup attribute.
678 (msp430_start_function): Note if the function has the wakeup
680 (msp430_attribute_table): Add wakeup attribute.
681 (msp430_expand_epilogue): Add support for wakeup functions.
682 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
683 the DINT instruction.
684 * doc/extend.texi: Document the wakeup attribute.
686 2013-12-13 Kai Tietz <kitetz@redhat.com>
689 * config/i386/i386.c (ix86_option_override_internal): Set for
690 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
693 2013-12-12 Jeff Law <law@redhat.com>
695 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
696 for zero-extended MULT simple LEA pattern.
698 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
701 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
704 2013-12-12 Jakub Jelinek <jakub@redhat.com>
707 * gimplify.c (omp_check_private): Add copyprivate argument, if it
708 is true, don't check omp_privatize_by_reference.
709 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
710 decl is private in outer context. Adjust omp_check_private caller.
712 2013-12-11 Jeff Law <law@redhat.com>
714 PR rtl-optimization/59446
715 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
716 test for crossing a loop header.
718 2013-12-11 Sriraman Tallam <tmsriram@google.com>
721 * config/i386/i386.c (get_builtin): New function.
722 (ix86_builtin_vectorized_function): Replace all instances of
723 ix86_builtins[...] with get_builtin(...).
724 (ix86_builtin_reciprocal): Ditto.
726 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
728 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
729 (lang_hooks_for_cilkplus): Remove.
730 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
731 (lhd_install_body_with_frame_cleanup): Likewise.
732 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
733 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
734 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
735 (LANG_HOOKS_CILKPLUS): Likewise.
736 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
737 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
738 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
739 (gimplify_call_expr): Likewise.
741 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
743 * expr.c (expand_assignment): Remove dependency on
744 flag_strict_volatile_bitfields. Always set the memory
746 (expand_expr_real_1): Likewise.
748 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
751 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
752 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
753 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
755 (store_fixed_bit_field_1): New function.
756 (store_split_bit_field): Limit the unit size to the memory mode size,
757 to prevent recursion.
759 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
760 Sandra Loosemore <sandra@codesourcery.com>
766 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
767 and bitregion_end parameters. Test for compliance with C++
769 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
770 Add fallback logic for cases where -fstrict-volatile-bitfields
771 is supposed to apply, but cannot.
772 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
773 extract_fixed_bit_field_1 to do the extraction.
774 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
775 Call extract_fixed_bit_field_1 to do the real work.
776 (extract_fixed_bit_field_1): New function.
778 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
784 * expmed.c (strict_volatile_bitfield_p): New function.
785 (store_bit_field_1): Don't special-case strict volatile
787 (store_bit_field): Handle strict volatile bitfields here instead.
788 (store_fixed_bit_field): Don't special-case strict volatile
790 (extract_bit_field_1): Don't special-case strict volatile
792 (extract_bit_field): Handle strict volatile bitfields here instead.
793 (extract_fixed_bit_field): Don't special-case strict volatile
794 bitfields here. Simplify surrounding code to resemble that in
795 store_fixed_bit_field.
796 * doc/invoke.texi (Code Gen Options): Update
797 -fstrict-volatile-bitfields description.
799 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
801 * configure.ac: Add check for aarch64 assembler -mabi support.
802 * configure: Regenerate.
803 * config.in: Regenerate.
804 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
805 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
806 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
807 if assembler does not support -mabi and option ilp32 is selected.
808 * doc/install.texi: Added note that building gcc 4.9 and after
809 with pre 2.24 binutils will not support -mabi=ilp32.
811 2013-12-11 Marek Polacek <polacek@redhat.com>
814 * expr.c (expand_expr_real_1): Remove assert dealing with
815 internal calls and turn that into a condition instead.
817 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
819 * config/arm/arm.opt (mlra): Enable LRA by default.
821 2013-12-11 Jakub Jelinek <jakub@redhat.com>
823 PR tree-optimization/59417
824 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
825 in a different bb rhan var, only duplicate points-to info and
826 not alignment info and don't duplicate range info.
827 * tree-ssa-loop-niter.c (determine_value_range): Instead of
828 assertion failure handle inconsistencies in range info by only
829 using var's range info and not PHI result range infos.
831 PR tree-optimization/59386
832 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
833 unshare_expr (id->retval) before passing it to gimple_build_assign.
835 2013-12-11 Bin Cheng <bin.cheng@arm.com>
838 2013-12-10 Bin Cheng <bin.cheng@arm.com>
839 PR tree-optimization/41488
840 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
841 for PEELED_CHREC kind IV.
842 * tree-scalar-evolution.c: Include necessary header files.
843 (peeled_chrec_map, simplify_peeled_chrec): New.
844 (analyze_evolution_in_loop): New static variable.
845 Call simplify_peeled_chrec.
846 (scev_initialize): Initialize peeled_chrec_map.
847 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
849 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
852 * config/i386/i386.md (*movsf_internal): Set mode to SI for
855 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
857 PR rtl-optimization/58295
858 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
859 WORD_REGISTER_OPERATIONS targets.
861 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
863 * genrecog.c (validate_pattern): Treat all messages except missing
865 * config/epiphany/epiphany.md: Remove constraints from
867 * config/h8300/h8300.md: Remove constraints from define_splits.
868 * config/msp430/msp430.md: Likewise.
869 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
870 nonimmediate_operand rather than general_operand for operand 0.
871 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
872 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
873 Use match_operator rather than match_test to invoke general_operand.
874 * config/v850/v850.md (*movqi_internal, *movhi_internal)
875 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
877 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
879 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
880 register_operand rather than pointer_operand. Add modes to the
882 (insn_ldna_add<bitsuffix>): Likewise.
883 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
884 (insn_ldnt_add<bitsuffix>): Likewise.
885 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
886 (insn_ld_add_L2<bitsuffix>): Likewise.
887 (insn_ldna_add_L2<bitsuffix>): Likewise.
888 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
889 (insn_ldnt_add_L2<bitsuffix>): Likewise.
890 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
891 (insn_ld_add_miss<bitsuffix>): Likewise.
892 (insn_ldna_add_miss<bitsuffix>): Likewise.
893 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
894 (insn_ldnt_add_miss<bitsuffix>): Likewise.
895 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
896 (insn_st_add<bitsuffix>): Likewise.
897 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
898 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
899 (insn_stnt_add<bitsuffix>): Likewise.
900 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
901 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
902 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
903 reg_or_0_operand for operand 0.
904 (insn_v2<pack_insn>): Likewise.
905 (vec_pack_hipart_v4hi): Likewise.
906 (insn_v2packh): Likewise.
907 (vec_pack_ssat_v2si): Likewise.
908 (insn_v4packsc): Likewise.
910 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
912 * basic-block.h (gcov_working_set_t): Put back typedef.
913 * gcov-io.h (gcov_bucket_type): Likewise.
914 (gcov_working_set_info, gcov_working_set_t): Likewise.
916 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
918 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
920 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
921 rename to cgraph_inline_failed_t.
922 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
924 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
926 * conditions.h (CC_STATUS): Remove typedef.
927 * bitmap.h (bitmap_obstack): Remove typedef.
928 (bitmap_element_def, bitmap_element): Remove typedef and rename to
930 (bitmap_head_def, bitmap_head): Remove typedef and rename to
932 (bitmap_iterator): Remove typedef.
933 * target.h (cumulative_args_t, print_switch_type,
934 secondary_reload_info): Remove typedef.
935 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
936 dw_cfi_oprnd_struct alias.
937 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
938 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
939 (cfa_loc, dw_cfa_location): Remove typedef and rename to
941 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
943 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
944 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
946 * params.h (param_info, compiler_param): Remove typedef.
947 * opts.h (cl_deferred_param): Remove typedef.
948 * sreal.h (sreal): Remove typedef.
949 * ddg.h (dep_type, dep_data_type): Remove typedef.
950 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
952 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
953 lto_symtab_encoder_iterator, res_pair): Remove typedef.
954 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
955 and rename to aff_tree.
956 * sched-int.h (region): Remove typedef.
957 * diagnostic.h (diagnostic_info,
958 diagnostic_classification_change_t): Remove typedef.
959 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
961 * sbitmap.h (sbitmap_iterator): Remove typedef.
962 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
963 Remove typedef and rename to imm_use_iterator.
964 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
966 * ggc-internal.h (ggc_statistics): Remove typedef.
967 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
968 rename to cselib_val.
969 * tree-core.h (alias_pair): Remove typedef.
970 (constructor_elt_d, constructor_elt): Remove typedef and rename to
972 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
974 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
975 * tree-data-ref.h (conflict_function): Remove typedef.
976 * tree-inline.h (copy_body_data): Remove typedef.
977 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
978 edge_growth_cache_entry): Remove typedef.
979 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
980 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
981 Remove typedef and rename to gimple_stmt_iterator.
982 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
983 rename to ce_if_block.
984 (edge_iterator): Remove typedef.
985 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
986 and rename to ipa_agg_jf_item.
987 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
988 ipa_parm_adjustment_t): Remove typedef.
989 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
991 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
993 * gcov-io.h (gcov_bucket_type): Remove typedef.
994 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
995 to gcov_working_set_t.
996 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
997 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
998 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
999 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1000 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1001 replace_label_data): Remove typedef.
1002 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1003 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1004 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1005 sel_region_bb_info_def, succ_iterator): Remove typedef.
1006 (deps_where_def, deps_where_t): Remove typedef and rename to
1008 * coretypes.h: Adapt forward declarations.
1009 * tree-scalar-evolution.h: Likewise.
1010 * tree-ssa-address.h: Likewise.
1011 * tree-ssa-operands.h: Likewise.
1012 * function.h: Likewise.
1013 * config/frv/frv-protos.h: Likewise.
1014 * targhooks.h: Likewise.
1015 * basic_block.h: Likewise.
1016 * rtl.def: Adapt documentation.
1017 * doc/tm.texi: Likewise.
1018 * ipa-cp.c: Adapt uses.
1019 * bitmap.c: Likewise.
1020 * dwarf2out.c: Likewise.
1021 * target.def: Likewise.
1022 * ipa-inline-analysis.c: Likewise.
1023 * dwarf2cfi.c: Likewise.
1024 * tree-ssa-loop-ivopts.c: Likewise.
1025 * lto-cgraph.c: Likewise.
1026 * config/frv/frv.c: Likewise.
1027 * ifcvt.c: Likewise.
1028 * ipa-prop.c: Likewise.
1030 2013-12-10 Kai Tietz <ktietz@redhat.com>
1033 * config/i386/i386.c (ix86_expand_prologue): Address saved
1034 registers stack-relative, not via frame-pointer.
1036 2013-12-10 Richard Biener <rguenther@suse.de>
1039 * tree-ssa-structalias.c (solution_set_expand): Expand into
1040 a different possibly cached bitmap and return the result.
1041 (set_union_with_increment): Pass in a shared expanded bitmap
1043 (do_sd_constraint): Likewise.
1044 (do_ds_constraint): Likewise.
1045 (do_complex_constraint): Likewise.
1046 (solve_graph): Manage the shared expanded bitmap.
1048 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1050 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1051 (LOOP_VINFO_SCALAR_LOOP): Define.
1052 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1053 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1054 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1056 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1058 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1060 (release_bb_predicate): New function.
1061 (free_bb_predicate): Use it.
1062 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1063 just to immediately allocate it again.
1064 (add_to_predicate_list): Add loop argument. If basic blocks that
1065 dominate loop->latch don't insert any predicate.
1066 (add_to_dst_predicate_list): Adjust caller.
1067 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1068 handle it like flag_tree_loop_if_convert_stores.
1069 (insert_gimplified_predicates): Likewise.
1070 (ifcvt_can_use_mask_load_store): New function.
1071 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1072 argument, check if some conditional loads or stores can't be
1073 converted into MASK_LOAD or MASK_STORE.
1074 (if_convertible_stmt_p): Add any_mask_load_store argument,
1075 pass it down to if_convertible_gimple_assign_stmt_p.
1076 (predicate_bbs): Don't return bool, only check if the last stmt
1077 of a basic block is GIMPLE_COND and handle that. Adjust
1078 add_to_predicate_list caller.
1079 (if_convertible_loop_p_1): Only call predicate_bbs if
1080 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1081 afterwards, check gimple_code of stmts here. Replace is_predicated
1082 check with dominance check. Add any_mask_load_store argument,
1083 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1084 call if_convertible_phi_p only after all if_convertible_stmt_p
1086 (if_convertible_loop_p): Add any_mask_load_store argument,
1087 pass it down to if_convertible_loop_p_1.
1088 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1089 (combine_blocks): Add any_mask_load_store argument, pass
1090 it down to insert_gimplified_predicates and call predicate_mem_writes
1091 if it is set. Call predicate_bbs.
1092 (version_loop_for_if_conversion): New function.
1093 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1094 calls. Return todo flags instead of bool, call
1095 version_loop_for_if_conversion if if-conversion should be just
1096 for the vectorized loops and nothing else.
1097 (main_tree_if_conversion): Adjust caller. Don't call
1098 tree_if_conversion for dont_vectorize loops if if-conversion
1099 isn't explicitly enabled.
1100 * tree-vect-data-refs.c (vect_check_gather): Handle
1101 MASK_LOAD/MASK_STORE.
1102 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1103 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1104 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1105 expand_MASK_STORE): New functions.
1106 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1107 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1108 (vectorize_loops): Don't try to vectorize loops with
1109 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1110 loops, fold LOOP_VECTORIZED internal call depending on if loop
1111 has been vectorized or not.
1112 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1114 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1115 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1116 still to loop's entry or exit edge.
1117 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1118 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1119 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1121 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1122 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1123 right place in the CFG afterwards.
1124 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1126 * cfgloop.h (struct loop): Add dont_vectorize field.
1127 * tree-loop-distribution.c (copy_loop_before): Adjust
1128 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1129 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1130 * passes.def: Add a note that pass_vectorize must immediately follow
1132 * tree-predcom.c (split_data_refs_to_components): Give up if
1134 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
1136 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1138 (vectorizable_mask_load_store): New function.
1139 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1140 (vect_transform_stmt): Handle MASK_STORE.
1141 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1142 DR_STMT where lhs is NULL.
1143 * optabs.h (can_vec_perm_p): Fix up comment typo.
1144 (can_vec_mask_load_store_p): New prototype.
1145 * optabs.c (can_vec_mask_load_store_p): New function.
1147 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1149 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1150 the extraction of a bit-field of null size.
1152 2013-12-10 Marek Polacek <polacek@redhat.com>
1155 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1156 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1157 instead of gimple_code.
1159 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1161 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1162 Add android definitions.
1163 (s390x-*-linux*): Use linux-protos.h.
1165 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1167 PR tree-optimization/41488
1168 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1169 for PEELED_CHREC kind IV.
1170 * tree-scalar-evolution.c: Include necessary header files.
1171 (peeled_chrec_map, simplify_peeled_chrec): New.
1172 (analyze_evolution_in_loop): New static variable.
1173 Call simplify_peeled_chrec.
1174 (scev_initialize): Initialize peeled_chrec_map.
1175 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1177 2013-12-09 Andrew Pinski <apinski@cavium.com>
1179 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1180 that options are conflicting ones.
1182 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1184 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1186 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1188 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1190 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1191 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1193 * cfganal.c (inverted_post_order_compute): Likewise.
1194 * cfgcleanup.c (try_optimize_cfg): Likewise.
1195 * cfgexpand.c (add_scope_conflicts): Likewise.
1196 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1197 * cfgrtl.c (relink_block_chain): Likewise.
1198 * dce.c (mark_artificial_uses): Likewise.
1199 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1200 * df-problems.c (df_lr_verify_solution_start,
1201 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1202 df_live_verify_solution_start, df_live_verify_solution_end,
1203 df_live_set_all_dirty, df_live_verify_transfer_functions,
1204 df_md_local_comput): Likewise.
1205 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1206 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1207 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1208 free_dominance_info): Likewise.
1209 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1210 * graph.c (draw_cfg_edges): Likewise.
1211 * graphite-scop-detection.c (print_graphite_scop_statistics,
1212 dot_all_scops_1): Likewise.
1213 * graphite.c (print_global_statistics,
1214 print_graphite_scop_statistics): Likewise.
1215 * ira.c (do_reload): Likewise.
1216 * loop-init.c (loop_optimizer_finalize): Likewise.
1217 * lto-streamer-in.c (input_function): Likewise.
1218 * lto-streamer-out.c (output_function): Likewise.
1219 * mcf.c (adjust_cfg_counts): Likewise.
1220 * predict.c (estimate_loops): Likewise.
1221 * sched-rgn.c (haifa_find_rgns): Likewise.
1222 * tree-cfg.c (split_critical_edges): Likewise.
1223 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1224 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1225 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1226 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1227 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1228 * vtable-verify.c (vtable_verify_main): Likewise.
1229 * web.c (web_main): Likewise.
1231 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1233 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1235 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1236 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1237 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1238 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1239 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1240 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1241 * config/sh/sh.c (sh_md_init_global): Likewise.
1242 * config/sh/sh_optimize_sett_clrt.cc
1243 (sh_optimize_sett_clrt::execute): Likewise.
1244 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1246 * dominance.c (calc_dfs_tree): Likewise.
1247 * final.c (final): Likewise.
1248 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1249 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1250 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1251 * lcm.c (compute_antinout_edge): Likewise.
1252 * mode-switching.c (optimize_mode_switching): Likewise.
1253 * postreload.c (reload_combine): Likewise.
1254 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1255 * tree-ssa-live.c (live_worklist): Likewise.
1257 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1259 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1261 * asan.c (transform_statements, execute_sanopt): Eliminate
1262 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1264 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1265 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1266 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1267 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1268 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1269 duplicate_computed_gotos): Likewise.
1270 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1271 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1272 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1273 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1274 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1275 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1277 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1278 verify_loop_structure): Likewise.
1279 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1280 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1281 verify_hot_cold_block_grouping, purge_all_dead_edges,
1282 fixup_abnormal_edges, record_effective_endpoints,
1283 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1284 break_superblocks): Likewise.
1285 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1286 cgraph_rebuild_references): Likewise.
1287 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1288 * combine.c (delete_noop_moves, create_log_links,
1289 combine_instructions): Likewise.
1290 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1291 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1293 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1294 c6x_reorg): Likewise.
1295 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1296 * config/frv/frv.c (frv_optimize_membar): Likewise.
1297 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1298 * config/ia64/ia64.c (ia64_reorg): Likewise.
1299 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1300 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1301 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1302 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1303 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1304 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1305 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1306 reorder_var_tracking_notes): Likewise.
1307 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1308 reorder_var_tracking_notes): Likewise.
1309 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1310 * cprop.c (compute_hash_table_work, compute_cprop_data,
1311 local_cprop_pass, find_implicit_sets): Likewise.
1312 * cse.c (cse_condition_code_reg): Likewise.
1313 * dce.c (prescan_insns_for_dce): Likewise.
1314 * df-core.c (df_compact_blocks): Likewise.
1315 * df-problems.c (df_word_lr_alloc): Likewise.
1316 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1317 df_update_entry_exit_and_calls): Likewise.
1318 * dominance.c (calculate_dominance_info, verify_dominators,
1319 debug_dominance_info): Likewise.
1320 * dse.c (dse_step5_nospill): Likewise.
1321 * except.c (finish_eh_generation): Likewise.
1322 * final.c (compute_alignments): Likewise.
1323 * function.c (thread_prologue_and_epilogue_insns,
1324 rest_of_match_asm_constraints): Likewise.
1325 * gcse.c (compute_hash_table_work, prune_expressions,
1326 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1327 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1328 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1329 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1330 find_explicit_erroneous_behaviour): Likewise.
1331 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1332 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1333 * haifa-sched.c (haifa_sched_init): Likewise.
1334 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1336 * ifcvt.c (if_convert): Likewise.
1337 * init-regs.c (initialize_uninitialized_regs): Likewise.
1338 * ipa-prop.c (ipcp_transform_function): Likewise.
1339 * ipa-pure-const.c (analyze_function): Likewise.
1340 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1341 * ira-build.c (form_loop_tree): Likewise.
1342 * ira-costs.c (find_costs_and_classes): Likewise.
1343 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1344 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1345 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1346 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1347 * jump.c (mark_all_labels): Likewise.
1348 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1349 compute_nearerout, compute_rev_insert_delete): Likewise.
1350 * loop-init.c (fix_loop_structure): Likewise.
1351 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1352 * lower-subreg.c (decompose_multiword_subregs,
1353 decompose_multiword_subregs): Likewise.
1354 * lra-assigns.c (assign_by_spills): Likewise.
1355 * lra-coalesce.c (lra_coalesce): Likewise.
1356 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1358 * lra-eliminations.c (lra_init_elimination): Likewise.
1359 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1360 lra_final_code_change): Likewise.
1361 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1362 update_inc_notes): Likewise.
1363 * mcf.c (adjust_cfg_counts): Likewise.
1364 * mode-switching.c (optimize_mode_switching): Likewise.
1365 * modulo-sched.c (rest_of_handle_sms): Likewise.
1366 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1367 expand_omp_target): Likewise.
1368 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1369 * postreload.c (reload_cse_regs_1): Likewise.
1370 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1371 tree_estimate_probability, expensive_function_p,
1372 estimate_bb_frequencies, compute_function_frequency): Likewise.
1373 * profile.c (is_inconsistent, compute_branch_probabilities,
1374 branch_prob): Likewise.
1375 * ree.c (find_removable_extensions): Likewise.
1376 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1377 * regcprop.c (copyprop_hardreg_forward): Likewise.
1378 * reginfo.c (init_subregs_of_mode): Likewise.
1379 * regrename.c (regrename_analyze): Likewise.
1380 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1382 * reload1.c (has_nonexceptional_receiver, reload,
1383 calculate_elim_costs_all_insns): Likewise.
1384 * resource.c (init_resource_info, free_resource_info): Likewise.
1385 * sched-ebb.c (schedule_ebbs): Likewise.
1386 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1387 haifa_find_rgns, sched_rgn_local_init): Likewise.
1388 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1389 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1390 make_regions_from_the_rest): Likewise.
1391 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1392 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1393 * store-motion.c (compute_store_table, build_store_vectors,
1394 one_store_motion_pass): Likewise.
1395 * tracer.c (tail_duplicate): Likewise.
1396 * trans-mem.c (compute_transaction_bits): Likewise.
1397 * tree-call-cdce.c (tree_call_cdce): Likewise.
1398 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1399 fold_cond_expr_cond, make_edges, assign_discriminators,
1400 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1401 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1402 execute_fixup_cfg): Likewise.
1403 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1404 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1406 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1407 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1408 mark_reachable_handlers): Likewise.
1409 * tree-emutls.c (lower_emutls_function_body): Likewise.
1410 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1411 * tree-inline.c (optimize_inline_calls): Likewise.
1412 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1413 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1414 * tree-object-size.c (compute_object_sizes): Likewise.
1415 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1416 insert_backedge_copies, tree_profiling): Likewise.
1417 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1418 * tree-sra.c (scan_function, sra_modify_function_body,
1419 propagate_dereference_distances, ipa_sra_modify_function_body,
1420 convert_callers): Likewise.
1421 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1422 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1423 create_outofssa_var_map, coalesce_partitions): Likewise.
1424 * tree-ssa-copy.c (init_copy_prop): Likewise.
1425 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1426 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1427 eliminate_unnecessary_stmts): Likewise.
1428 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1430 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1431 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1432 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1433 analyze_memory_references, fill_always_executed_in,
1434 tree_ssa_lim_finalize): Likewise.
1435 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1437 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1438 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1439 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1440 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1441 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1443 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1444 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1445 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1446 tree_ssa_uncprop): Likewise.
1447 * tree-ssa-uninit.c (warn_uninitialized_vars,
1448 execute_late_warn_uninitialized): Likewise.
1449 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1450 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1452 * tree-switch-conversion.c (do_switchconv): Likewise.
1453 * tree-vect-generic.c (expand_vector_operations): Likewise.
1454 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1455 execute_vect_slp): Likewise.
1456 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1457 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1459 * ubsan.c (ubsan_pass): Likewise.
1460 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1461 gimple_find_values_to_profile): Likewise.
1462 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1463 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1465 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1467 * basic-block.h (last_basic_block): Eliminate macro.
1469 * asan.c (transform_statements): Eliminate use of last_basic_block
1470 in favor of last_basic_block_for_fn, in order to make use of cfun
1472 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1473 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1474 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1475 * cfg.c (compact_blocks): Likewise.
1476 * cfganal.c (mark_dfs_back_edges,
1477 control_dependences::control_dependences, post_order_compute,
1478 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1479 single_pred_before_succ_order): Likewise.
1480 * cfgbuild.c (make_edges): Likewise.
1481 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1482 * cfghooks.c (verify_flow_info): Likewise.
1483 * cfgloop.c (verify_loop_structure): Likewise.
1484 * cfgloopanal.c (just_once_each_iteration_p,
1485 mark_irreducible_loops): Likewise.
1486 * cfgloopmanip.c (fix_bb_placements, remove_path,
1487 update_dominators_in_loop): Likewise.
1488 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1489 break_superblocks, rtl_flow_call_edges_add): Likewise.
1490 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1491 * config/frv/frv.c (frv_optimize_membar): Likewise.
1492 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1493 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1494 * cprop.c (compute_local_properties, find_implicit_sets,
1495 bypass_conditional_jumps, one_cprop_pass): Likewise.
1496 * cse.c (cse_main): Likewise.
1497 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1498 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1499 * df-problems.c (df_lr_verify_solution_start,
1500 df_live_verify_solution_start, df_md_local_compute): Likewise.
1501 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1502 calc_idoms): Likewise.
1503 * domwalk.c (dom_walker::walk): Likewise.
1504 * dse.c (dse_step0, dse_step3): Likewise.
1505 * function.c (epilogue_done): Likewise.
1506 * gcse.c (alloc_gcse_mem, compute_local_properties,
1507 prune_insertions_deletions, compute_pre_data,
1508 pre_expr_reaches_here_p, one_pre_gcse_pass,
1509 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1510 one_code_hoisting_pass): Likewise.
1511 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1512 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1513 * haifa-sched.c (unlink_bb_notes): Likewise.
1514 * ipa-split.c (execute_split_functions): Likewise.
1515 * ira-build.c (create_loop_tree_nodes,
1516 remove_unnecessary_regions): Likewise.
1517 * ira-emit.c (ira_emit): Likewise.
1518 * ira.c (find_moveable_pseudos, ira): Likewise.
1519 * lcm.c (compute_antinout_edge, compute_laterin,
1520 compute_insert_delete, pre_edge_lcm, compute_available,
1521 compute_nearerout, compute_rev_insert_delete,
1522 pre_edge_rev_lcm): Likewise.
1523 * loop-unroll.c (opt_info_start_duplication,
1524 apply_opt_in_copies): Likewise.
1525 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1526 * lra-lives.c (lra_create_live_ranges): Likewise.
1527 * lra.c (lra): Likewise.
1528 * mode-switching.c (optimize_mode_switching): Likewise.
1529 * recog.c (split_all_insns): Likewise.
1530 * regcprop.c (copyprop_hardreg_forward): Likewise.
1531 * regrename.c (regrename_analyze): Likewise.
1532 * reload1.c (reload): Likewise.
1533 * resource.c (init_resource_info): Likewise.
1534 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1535 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1536 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1537 recompute_rev_top_order, sel_init_pipelining,
1538 make_regions_from_the_rest): Likewise.
1539 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1541 * tracer.c (tail_duplicate): Likewise.
1542 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1543 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1544 gimple_flow_call_edges_add): Likewise.
1545 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1546 cleanup_tree_cfg_1): Likewise.
1547 * tree-complex.c (tree_lower_complex): Likewise.
1548 * tree-inline.c (copy_cfg_body): Likewise.
1549 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1550 prepare_def_site_for, update_ssa): Likewise.
1551 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1552 * tree-ssa-dom.c (record_edge_info): Likewise.
1553 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1554 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1555 * tree-ssa-loop-manip.c (copy_phi_node_args
1556 gimple_duplicate_loop_to_header_edge): Likewise.
1557 * tree-ssa-pre.c (compute_antic): Likewise.
1558 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1559 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1560 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1561 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1562 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1563 * tree-stdarg.c (reachable_at_most_once): Likewise.
1564 * tree-vrp.c (find_assert_locations): Likewise.
1565 * var-tracking.c (vt_find_locations): Likewise.
1567 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1569 * basic-block.h (profile_status): Eliminate macro.
1571 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1572 profile_status macro in favor of profile_status_for_fn, making
1573 use of cfun explicit.
1574 * cfghooks.c (account_profile_record): Likewise.
1575 * cfgloopanal.c (single_likely_exit):
1576 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1577 * graphite.c (graphite_finalize):
1578 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1579 ubsan_expand_si_overflow_neg_check,
1580 ubsan_expand_si_overflow_mul_check): Likewise.
1581 * ipa-split.c (consider_split, execute_split_functions):
1582 * loop-unroll.c (decide_peel_simple):
1583 * optabs.c (emit_cmp_and_jump_insn_1):
1584 * predict.c (maybe_hot_edge_p, probably_never_executed,
1585 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1586 tree_estimate_probability_driver, estimate_bb_frequencies,
1587 compute_function_frequency, rebuild_frequencies): Likewise.
1588 * profile.c (compute_branch_probabilities): Likewise.
1589 * tree-cfg.c (gimple_account_profile_record): Likewise.
1590 * tree-inline.c (optimize_inline_calls): Likewise.
1592 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1594 * basic-block.h (label_to_block_map): Eliminate macro.
1596 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1597 with uses of label_to_block_map_for_fn, making uses of cfun be
1599 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1600 (verify_gimple_label): Likewise.
1602 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1604 * basic-block.h (basic_block_info): Eliminate macro.
1606 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1607 basic_block_info with basic_block_info_for_fn, making uses
1608 of cfun be explicit.
1609 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1611 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1613 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1615 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1616 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1617 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1618 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1619 * caller-save.c (insert_one_insn): Likewise.
1620 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1621 * cfgexpand.c (add_scope_conflicts): Likewise.
1622 * cfghooks.c (verify_flow_info): Likewise.
1623 * cfgloop.c (flow_loops_find): Likewise.
1624 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1625 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1626 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1627 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1628 * cse.c (cse_main): Likewise.
1629 * dce.c (fast_dce): Likewise.
1630 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1631 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1632 df_bb_replace, df_dump_region): Likewise.
1633 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1634 df_live_bb_local_compute, df_chain_remove_problem)
1635 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1636 df_md_bb_local_compute, df_md_local_compute,
1637 df_md_transfer_function): Likewise.
1638 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1639 df_reorganize_refs_by_insn, df_bb_refs_collect,
1640 df_record_entry_block_defs, df_update_entry_block_defs,
1641 df_record_exit_block_uses): Likewise.
1642 * dominance.c (nearest_common_dominator_for_set): Likewise.
1643 * gcse.c (hoist_code): Likewise.
1644 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1645 * ipa-inline-analysis.c (param_change_prob,
1646 estimate_function_body_sizes): Likewise.
1647 * ipa-split.c (dominated_by_forbidden): Likewise.
1648 * loop-unroll.c (apply_opt_in_copies): Likewise.
1649 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1650 * lra-lives.c (lra_create_live_ranges): Likewise.
1651 * predict.c (propagate_freq): Likewise.
1652 * regrename.c (regrename_analyze): Likewise.
1653 * regstat.c (regstat_bb_compute_ri,
1654 regstat_bb_compute_calls_crossed): Likewise.
1655 * resource.c (mark_target_live_regs): Likewise.
1656 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1657 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1658 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1659 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1660 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1661 * sched-vis.c (debug_bb_n_slim): Likewise.
1662 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1663 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1664 * sel-sched.c (remove_insns_that_need_bookkeeping)
1665 (current_region_empty_p, sel_region_init,
1666 simplify_changed_insns): Likewise.
1667 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1668 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1669 * tree-cfg.c (make_edges, end_recording_case_labels,
1670 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1671 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1672 gimple_purge_all_dead_eh_edges,
1673 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1674 * tree-cfgcleanup.c (fixup_noreturn_call,
1675 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1676 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1677 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1678 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1679 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1680 * tree-ssa-live.c (live_worklist): Likewise.
1681 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1682 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1683 * tree-ssa-pre.c (compute_antic): Likewise.
1684 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1685 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1686 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1687 same_succ_flush_bbs, update_worklist, set_cluster,
1688 same_phi_alternatives, find_clusters_1, apply_clusters,
1689 update_debug_stmts): Likewise.
1690 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1691 thread_through_all_blocks): Likewise.
1692 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1693 * tree-vrp.c (find_assert_locations): Likewise.
1695 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1697 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1699 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1700 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1701 (expunge_block): Likewise.
1702 * cfgrtl.c (create_basic_block_structure): Likewise.
1703 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1704 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1705 * tree-cfg.c (create_bb): Likewise.
1707 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1709 * basic-block.h (profile_status_for_function): Rename to...
1710 (profile_status_for_fn): ...this.
1712 * cfg.c (check_bb_profile): Update for renaming.
1713 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1714 * lto-streamer-in.c (input_cfg): Likewise.
1715 * lto-streamer-out.c (output_cfg): Likewise.
1716 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1717 maybe_hot_bb_p, probably_never_executed)
1718 (handle_missing_profiles): Likewise.
1719 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1720 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1722 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1724 * basic-block.h (label_to_block_map_for_function): Rename to...
1725 (label_to_block_map_for_fn): ...this.
1727 * lto-streamer-in.c (input_cfg): Update for renaming.
1728 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1730 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1732 * basic-block.h (last_basic_block_for_function): Rename to...
1733 (last_basic_block_for_fn): ...this.
1735 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1736 last_basic_block_for_function to last_basic_block_for_fn.
1737 * lto-streamer-in.c (input_cfg): Likewise.
1738 * lto-streamer-out.c (output_cfg): Likewise.
1739 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1740 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1743 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1745 * basic-block.h (basic_block_info_for_function): Rename to...
1746 (basic_block_info_for_fn): ...this.
1747 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1748 (BASIC_BLOCK_FOR_FN): ...this.
1749 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1750 (SET_BASIC_BLOCK_FOR_FN): ...this.
1752 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1753 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1754 * ipa-utils.c (ipa_merge_profiles): Likewise.
1755 * lto-streamer-in.c (make_new_block): Update for renaming of
1756 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1757 (input_cfg): Update for renamings.
1758 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1759 (dump_function_to_file): Update for renaming of
1760 basic_block_info_for_function to basic_block_info_for_fn.
1762 2013-12-09 Richard Biener <rguenther@suse.de>
1765 * tree-ssa-structalias.c (set_union_with_increment): Remove
1767 (do_complex_constraint): Call set_union_with_increment with
1768 the solution delta, not the full solution.
1769 (make_transitive_closure_constraints): Merge the two
1772 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1774 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1775 more address validation checks.
1777 2013-12-09 Marek Polacek <polacek@redhat.com>
1780 * vtable-verify.c (verify_bb_vtables): Check the return value
1781 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1783 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1785 * config/arm/arm.md (generic_sched): Add cortexa12.
1786 (generic_vfp): Likewise.
1787 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1788 (arm_cortex_a12_tune): New tuning struct.
1789 * config/arm/arm-cores.def: Add cortex-a12.
1790 * config/arm/arm-tables.opt: Regenerate.
1791 * config/arm/arm-tune.md: Likewise.
1792 * config/arm/bpabi.h: Add cortex-a12.
1793 * doc/invoke.texi: Document -mcpu=cortex-a12.
1795 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1797 * doc/install.texi (Prerequisites): Explicitly mention C library
1798 and its headers for multilib builds.
1800 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1804 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1805 OPT_mcbranchdi entry.
1806 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1808 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1809 and TARGET_CMPEQDI_T variables.
1810 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1812 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1814 * config/linux.h: Fix typo in a comment.
1816 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1818 * config.gcc (*linux*): Split libc selection from Android support.
1819 Add libc selection to all *linux* targets. Add Android support to
1820 architectures that support it.
1821 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1822 (mips*-*-linux*): Add Android support.
1824 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1825 Maxim Kuvyrkov <maxim@kugelworks.com>
1827 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1828 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1829 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1831 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1833 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1834 Define appropriately for Linux and uClinux targets.
1836 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1838 * config/linux.c (linux_has_ifunc_p): Use correct test.
1840 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1842 * config/linux.c (linux_android_has_ifunc_p): Rename to
1844 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1845 * config/linux-protos.h (linux_android_has_ifunc_p,)
1846 (linux_android_libc_has_function): Update declarations.
1847 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1848 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1850 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1852 * linux-android.c: Rename to linux.c.
1853 * t-linux-android: Rename to t-linux. Update references
1855 * config.gcc: Update references to t-linux-android and linux-android.o.
1857 2013-12-07 Alan Modra <amodra@gmail.com>
1859 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1862 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1864 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1866 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1868 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1871 2013-12-06 Caroline Tice <cmtice@google.com>
1873 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1874 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1875 vtable pointer with the results of the verification call, rather than
1876 only the uses in the next statement.
1878 2013-12-06 Andrew Pinski <apinski@cavium.com>
1881 * config/aarch64/aarch64.md (trap): New pattern.
1883 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1885 PR tree-optimization/59388
1886 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1887 gimplify tem after stmt rather than before it.
1889 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1890 (get_references_in_stmt): Don't record operand addresses, but
1891 operands themselves.
1892 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1893 Adjust for the pos -> ref change.
1895 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1897 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1899 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1900 (processor_alias_table): Likewise.
1901 (ix86_option_override_internal): Likewise.
1902 * config/i386/i386.h (target_cpu_default): Replace
1903 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1905 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1907 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1910 * config/i386/i386.c (type_natural_mode): Properly handle
1911 size 8 for !TARGET_64BIT.
1913 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1915 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1918 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1919 Mark Mitchell <mark@codesourcery.com>
1922 * config/arm/arm.md (trap): New pattern.
1923 * config/arm/types.md: Added a type for trap.
1925 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1927 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1929 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1932 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1933 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1934 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1935 (TARGET_BUILTIN_DECL): Define.
1936 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1937 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1938 (enum sparc_builtins): New enumeral type.
1939 (sparc_builtins): New static array.
1940 (sparc_builtins_icode): Likewise.
1941 (def_builtin): Accept a separate icode and save the result.
1942 (def_builtin_const): Likewise.
1943 (sparc_fpu_init_builtins): New function.
1944 (sparc_vis_init_builtins): Pass the builtin code.
1945 (sparc_init_builtins): Call it if TARGET_FPU.
1946 (sparc_builtin_decl): New function.
1947 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1948 (sparc_handle_vis_mul8x16): Use the builtin code.
1949 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1950 and SPARC_BUILTIN_PDISTN.
1951 (compound_expr): New helper function.
1952 (sparc_atomic_assign_expand_fenv): New function.
1953 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1955 (flush, flushdi): Merge into single pattern.
1956 (ldfsr): New instruction.
1959 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1961 * asan.c: Remove struct tags when referring to class varpool_node.
1962 * cgraph.h: Likewise.
1963 * cgraphbuild.c: Likewise.
1964 * cgraphunit.c: Likewise.
1965 * dbxout.c: Likewise.
1966 * dwarf2out.c: Likewise.
1967 * gimple-fold.c: Likewise.
1968 * ipa-devirt.c: Likewise.
1969 * ipa-ref-inline.h: Likewise.
1970 * ipa-ref.h: Likewise.
1971 * ipa-reference.c: Likewise.
1972 * ipa-utils.c: Likewise.
1974 * lto-cgraph.c: Likewise.
1975 * lto-streamer-out.c: Likewise.
1976 * lto-streamer.h: Likewise.
1977 * passes.c: Likewise.
1978 * toplev.c: Likewise.
1979 * tree-eh.c: Likewise.
1980 * tree-emutls.c: Likewise.
1981 * tree-pass.h: Likewise.
1982 * tree-ssa-structalias.c: Likewise.
1983 * tree-vectorizer.c: Likewise.
1985 * varasm.c: Likewise.
1986 * varpool.c: Likewise.
1988 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1990 * cgraphunit.c: Remove struct tags when referring to class
1991 ipa_opt_pass_d or class opt_pass.
1992 * function.h: Likewise.
1993 * lto-cgraph.c: Likewise.
1994 * pass_manager.h: Likewise.
1995 * passes.c: Likewise.
1996 * tree-pass.h: Likewise.
1998 2013-12-06 Richard Biener <rguenther@suse.de>
2000 PR tree-optimization/59058
2001 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2002 (LOOP_VINFO_NITERSM1): New macro.
2003 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2004 the vector loop entry test in terms of scalar latch executions.
2005 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2006 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2007 number of latch executions.
2008 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2009 (vect_analyze_loop_form): Likewise.
2010 (vect_generate_tmps_on_preheader): Compute the number of
2011 vectorized iterations differently.
2013 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2015 * config/score/score.c (score_force_temporary): Delete function.
2016 (score_split_symbol): Ditto.
2017 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2018 parentheses to silence ambiguity warning and reindent.
2020 2013-12-05 Marek Polacek <polacek@redhat.com>
2022 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2024 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2026 * config.gcc: Support --with-cpu=ia.
2028 * config/i386/i386.c (cpu_names): Add "ia".
2029 (processor_alias_table): Likewise.
2030 (ix86_option_override_internal): Disallow -march=ia.
2031 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2033 * doc/invoke.texi: Document -mtune=ia.
2035 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2037 PR rtl-optimization/59317
2038 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2041 2013-12-05 Martin Jambor <mjambor@suse.cz>
2044 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2045 non-BLKmode in their naturally aligned type.
2047 2013-12-05 Marek Polacek <polacek@redhat.com>
2051 * ubsan.c: Include rtl.h and expr.h.
2052 (ubsan_encode_value): Add new parameter. If expanding, assign
2053 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2054 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2055 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2056 * ubsan.h (ubsan_encode_value): Adjust declaration.
2057 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2058 ubsan_build_overflow_builtin above expand_normal call. Surround
2059 this call with push_temp_slots and pop_temp_slots.
2060 (ubsan_expand_si_overflow_neg_check): Likewise.
2061 (ubsan_expand_si_overflow_mul_check): Likewise.
2063 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2065 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2066 the get_alternative_base call with flag_expensive_optimizations.
2067 (alloc_cand_and_find_basis): Likewise.
2069 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2071 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2072 vec_select for overlapping register lanes.
2074 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2076 * config/i386/i386.c (ix86_expand_builtin): Generate
2077 reg for readflags built-in when optimizing.
2078 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2079 (pushfl<mode>2): This. Fix iterator.
2080 (*popfl<mode>): Rename to ...
2081 (*popfl<mode>1): This. Fix iterator.
2083 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2085 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2086 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2087 (ix86_init_mmx_sse_builtins): Define
2088 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2089 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2090 (ix86_expand_builtin): Expand them.
2091 * config/i386/ia32intrin.h (__readeflags): New.
2092 (__writeeflags): Ditto.
2093 * config/i386/i386.md (*pushfl<mode>): Ditto.
2094 (*popfl<mode>1): Ditto.
2096 2013-12-05 Richard Biener <rguenther@suse.de>
2098 PR tree-optimization/59374
2099 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2100 Commonize known and unknown dependence case fixing the allowed
2101 read-write dependence case and dropping code that should not matter.
2103 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2105 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2106 generation of predicated version.
2107 (epilogue_deallocate_stack): Ditto.
2108 (prologue_allocate_stack_pr): Add explicit predicated version.
2109 (epilogue_deallocate_stack_pr): Ditto.
2110 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2112 2013-12-05 Alan Modra <amodra@gmail.com>
2114 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2116 <recursive call for build != host>: Clear GMPINC. Don't bother
2119 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2120 Marek Polacek <polacek@redhat.com>
2122 * opts.c (common_handle_option): Handle
2123 -fsanitize=signed-integer-overflow.
2124 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2125 negv<mode>3, negv<mode>3_1): Define expands.
2126 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2127 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2128 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2129 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2130 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2131 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2132 PROB_ALWAYS): Define.
2133 (ubsan_build_overflow_builtin): Declare.
2134 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2136 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2137 (ubsan_build_overflow_builtin): New function.
2138 (instrument_si_overflow): Likewise.
2139 (ubsan_pass): Add signed integer overflow checking.
2140 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2141 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2142 * internal-fn.c: Include ubsan.h and target.h.
2143 (ubsan_expand_si_overflow_addsub_check): New function.
2144 (ubsan_expand_si_overflow_neg_check): Likewise.
2145 (ubsan_expand_si_overflow_mul_check): Likewise.
2146 (expand_UBSAN_CHECK_ADD): Likewise.
2147 (expand_UBSAN_CHECK_SUB): Likewise.
2148 (expand_UBSAN_CHECK_MUL): Likewise.
2149 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2150 (-A) + B -> B - A when doing the signed integer overflow checking.
2151 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2153 * tree-vrp.c (extract_range_basic): Handle internal calls.
2154 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2156 * asan.c: Include predict.h.
2157 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2158 * predict.c: Move the PROB_* macros...
2159 * predict.h (enum br_predictor): ...here.
2160 (PROB_LIKELY, PROB_UNLIKELY): Define.
2161 * trans-mem.c: Include predict.h.
2162 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2163 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2165 2013-12-04 Jeff Law <law@redhat.com>
2167 * common.opt: Split up -fisolate-erroneous-paths into
2168 -fisolate-erroneous-paths-dereference and
2169 -fisolate-erroneous-paths-attribute.
2170 * invoke.texi: Corresponding changes.
2171 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2172 what kind of statements can be used to infer a non-null range.
2173 * gimple.h (infer_nonnull_range): Update prototype.
2174 * tree-vrp.c (infer_value_range): Corresponding changes.
2175 * opts.c (default_options_table): Update due to option split.
2176 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2177 (find_implicit_erroneous_behaviour): Pass additional arguments
2178 to infer_nonnull_range.
2179 (find_explicit_erroneous_behaviour): Similarly.
2180 (gate_isolate_erroneous_paths): Check both of the new options.
2182 2013-12-04 Jeff Law <law@redhat.com>
2184 * expr.c (expand_assignment): Update comments.
2186 2013-12-04 Tobias Burnus <burnus@net-b.de>
2189 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2190 * tree.def (NAMELIST_DECL): Add.
2191 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2192 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2193 * dwarf2out.c (gen_namelist_decl): New function.
2194 (gen_decl_die, dwarf2out_decl): Call it.
2195 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2196 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2197 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2199 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2201 2013-12-03 Xinliang David Li <davidxl@google.com>
2203 * tree-ssa-structalias.c (constraint_set_union): Change return type
2205 (merge_node_constraints): Ditto.
2206 (unify_nodes): Update changed set when constraints set changes.
2208 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2210 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2212 * configure: Regenerated.
2214 * gdbasan.in: New file.
2216 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2218 PR rtl-optimization/58726
2219 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2220 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2222 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2223 Uros Bizjak <ubizjak@gmail.com>
2226 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2227 !TARGET_AVX there is misaligned MEM operand with vector mode
2228 and get_attr_ssememalign is 0, return false.
2229 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2230 computed alignment and for non-temporal loads/stores also
2231 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2232 * config/i386/sse.md
2233 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2234 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2235 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2236 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2237 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2238 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2239 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2240 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2241 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2242 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2243 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2244 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2245 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2246 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2247 * config/i386/i386.md (ssememalign): New define_attr.
2249 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2251 PR tree-optimization/59355
2252 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2253 * opts.c (common_handle_option): Fix comment spelling.
2255 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2257 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2258 (name_expansions): New static variable.
2259 (alt_base_map): Ditto.
2260 (get_alternative_base): New function.
2261 (find_basis_for_candidate): For CAND_REF, optionally call
2262 find_basis_for_base_expr with the returned value from
2263 get_alternative_base.
2264 (record_potential_basis): Add new parameter 'base' of type 'tree';
2265 add an assertion of non-NULL base; use base to set node->base_expr.
2266 (alloc_cand_and_find_basis): Update; call record_potential_basis
2267 for CAND_REF with the returned value from get_alternative_base.
2268 (replace_refs): Dump details on the replacing.
2269 (execute_strength_reduction): Call pointer_map_create for
2270 alt_base_map; call free_affine_expand_cache with &name_expansions.
2272 2013-12-03 Wei Mi <wmi@google.com>
2274 PR rtl-optimization/59020
2275 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2276 (sched_analyze_insn): Call try_group_insn.
2277 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2278 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2279 (group_insns_for_macro_fusion): Removed.
2280 (sched_init): Remove calling group_insns_for_macro_fusion.
2282 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2284 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2286 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2288 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2290 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2292 (aarch64_can_eliminate): Don't check elimination source when
2293 frame_pointer_required is false.
2295 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2297 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2298 position independent code.
2299 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2301 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2304 * config/i386/i386.c (emit_memset): Adjust destination address
2306 (expand_setmem_epilogue): Likewise.
2308 2013-12-03 Marek Polacek <polacek@redhat.com>
2311 * calls.c (expand_call): Disallow passing huge arguments by value.
2313 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2315 PR tree-optimization/59362
2316 * tree-object-size.c (object_sizes): Change into array of
2317 vec<unsigned HOST_WIDE_INT>.
2318 (compute_builtin_object_size): Check computed bitmap for
2319 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2320 vector if new SSA_NAMEs appeared.
2321 (init_object_sizes): Check computed bitmap for non-NULL.
2322 Call safe_grow on object_sizes elements instead of initializing
2324 (fini_object_sizes): Call release on object_sizes elements, don't
2328 * gimplify.c (nonlocal_vla_vars): New variable.
2329 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2330 nonlocal_vla_vars chain.
2331 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2332 if outer_bind has DECL_INITIAL (current_function_decl) block.
2335 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2337 * expr.h (struct saved_pending_stack_adjust): New type.
2338 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2340 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2341 and get_last_insn before do_pending_stack_adjust, call
2342 restore_pending_stack_adjust after delete_insns_since.
2343 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2344 before calling emit_conditional_move.
2345 * expmed.c (expand_sdiv_pow2): Likewise.
2346 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2348 2013-12-02 Jeff Law <law@redhat.com>
2350 PR tree-optimization/59322
2351 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2352 Remove code which copied jump threading paths.
2354 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2357 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2358 for saving in cl_target_option.
2359 (ix86_tune_string): Ditto.
2360 (ix86_cmodel): Ditto.
2362 (ix86_asm_dialect): Ditto.
2363 (ix86_branch_cost): Ditto.
2364 (ix86_dump_tunes): Ditto.
2365 (ix86_force_align_arg_pointer): Ditto.
2366 (ix86_force_drap): Ditto.
2367 (ix86_incoming_stack_boundary_arg): Ditto.
2368 (ix86_pmode): Ditto.
2369 (ix86_preferred_stack_boundary_arg): Ditto.
2370 (ix86_recip_name): Ditto.
2371 (ix86_regparm): Ditto.
2372 (ix86_section_threshold): Ditto.
2373 (ix86_sse2avx): Ditto.
2374 (ix86_stack_protector_guard): Ditto.
2375 (ix86_stringop_alg): Ditto.
2376 (ix86_tls_dialect): Ditto.
2377 (ix86_tune_ctrl_string): Ditto.
2378 (ix86_tune_memcpy_strategy): Ditto.
2379 (ix86_tune_memset_strategy): Ditto.
2380 (ix86_tune_no_default): Ditto.
2381 (ix86_veclibabi_type): Ditto.
2382 * config/i386/i386.c (function_specific_save): Save the above
2383 variables in gcc_options to cl_target_option.
2384 (function_specific_restore): Do the reverse done in
2385 function_specific_save.
2386 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2387 and ix86_tune_string to use the opts structure.
2388 (ix86_option_override_internal):Change
2389 ix86_incoming_stack_boundary_arg to
2390 opts->x_ix86_incoming_stack_boundary_arg
2392 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2394 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2395 in #ifndef IN_LIBGCC2 / #endif.
2397 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2399 PR tree-optimization/59358
2400 * tree-vrp.c (union_ranges): To check for the partially overlapping
2401 ranges or adjacent ranges, also compare *vr0max with vr1max.
2403 2013-12-02 Sterling Augustine  <saugustine@google.com>
2405 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2406 when there isn't a skeleton die.
2408 2013-12-02 Marek Polacek <polacek@redhat.com>
2411 * doc/invoke.texi: Document -fsanitize=return.
2413 2013-12-02 Tobias Burnus <burnus@net-b.de>
2414 Manuel López-Ibáñez <manu@gcc.gnu.org>
2417 * doc/invoke.texi: Add missing @opindex.
2418 (-fsanitize=): Use @gcctabopt instead of @itemize.
2420 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2422 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2423 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2424 targets like arm-none-eabi.
2425 * expr.c (expand_assignment): Handle normal fields like bit regions.
2427 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2430 * function.c (invoke_set_current_function_hook): Call
2431 targetm.set_current_function after setting this_fn_optabs.
2433 2013-12-02 Richard Biener <rguenther@suse.de>
2435 PR tree-optimization/59139
2436 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2437 code in get_val_for.
2438 (get_val_for): Use gcc_checking_asserts.
2440 2013-12-02 Richard Biener <rguenther@suse.de>
2443 * tree-ssa-operands.c (opf_implicit): Remove.
2444 (opf_address_taken): New flag.
2445 (get_expr_operands): Remove early out, pass down opf_address_taken for
2446 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2447 (get_indirect_ref_operands): Rename to ...
2448 (get_mem_ref_operands): ... this.
2449 (get_asm_expr_operands): Rename to ...
2450 (get_asm_stmt_operands): ... this.
2452 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2454 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2456 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2458 PR tree-optimization/59356
2459 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2460 offset computation using the precision of the index type.
2462 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2465 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2466 when rclass is GENERAL_REGS.
2468 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2470 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2471 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2473 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2475 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2478 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2480 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2482 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2483 Eric Botcazou <ebotcazou@adacore.com>
2485 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2486 as applied to nonzero_sign_valid when last_set_mode has less precision
2489 2013-11-30 Tobias Burnus <burnus@net-b.de>
2492 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2493 environment variable and link to a list with flags.
2494 (-fsanitize=thread): Ditto and update link.
2496 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2498 PR rtl-optimization/59340
2499 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2502 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2504 * lra.c (lra): Set lra_in_progress before check_rtl call.
2505 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2506 adding clobber regs when LRA is running.
2508 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2511 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2513 2013-11-29 Richard Biener <rguenther@suse.de>
2516 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2517 free_stmt_operands, update_stmt_operands): Add struct function
2519 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2520 function argument from fini_ssa_operands, verify_ssa_operands,
2521 free_stmt_operands and update_stmt_operands everywhere.
2522 * tree-ssanames.h (release_ssa_name_fn): New.
2523 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2524 * tree-ssanames.c (release_ssa_name): Rename to ...
2525 (release_ssa_name_fn): ... this and add struct function argument.
2526 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2527 (update_stmt_fn): New function.
2528 * tree-cfg.c (move_block_to_fn): Adjust.
2529 * tree-if-conv.c (free_bb_predicate): Likewise.
2530 * tree-ssa.c (verify_ssa): Likewise.
2531 (delete_tree_ssa): Likewise.
2532 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2533 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2534 update_stmt_fn instead of update_stmt.
2536 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2538 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2541 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2543 * config/arm/arm.md (store_minmaxsi): Use only when
2544 optimize_function_for_size_p.
2546 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2547 Yury Gribov <y.gribov@samsung.com>
2550 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2551 * gcc.c: Using libsanitizer spec instead of explicit libs.
2553 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2556 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2557 * cgraph.h (varpool_node): Add need_bounds_init field.
2558 * lto-cgraph.c (lto_output_varpool_node): Output
2559 need_bounds_init value.
2560 (input_varpool_node): Read need_bounds_init value.
2561 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2564 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2565 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2566 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2567 (gen_type_die_with_usage): Skip pointer bounds.
2568 (dwarf2out_global_decl): Likewise.
2571 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2572 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2573 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2574 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2575 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2576 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2577 (gimple_call_with_bounds_p): New.
2578 (gimple_call_set_with_bounds): New.
2579 (gimple_call_num_nobnd_args): Remove.
2580 (gimple_call_nobnd_arg): Remove.
2581 * tree.h (CALL_WITH_BOUNDS_P): New.
2582 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2585 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2586 * common.opt (fcheck-pointer-bounds): Move to ...
2587 * c-family/c.opt: ... here.
2588 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2589 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2590 * langhooks.h (lang_hooks): Remove chkp_supported field.
2591 * toplev.c (process_options): Remove chkp_supported check.
2594 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2595 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2596 * tree.h (POINTER_BOUNDS_P): New.
2597 (BOUNDED_TYPE_P): New.
2599 (pointer_bounds_type_node): New.
2600 * tree.c (build_common_tree_nodes): Initialize
2601 pointer_bounds_type_node.
2602 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2603 (gimple_call_num_nobnd_args): New.
2604 (gimple_call_nobnd_arg): New.
2605 (gimple_return_retbnd): New.
2606 (gimple_return_set_retbnd): New
2607 * gimple.c (gimple_build_return): Increase number of ops
2608 for return statement.
2609 (gimple_call_get_nobnd_arg_index): New.
2610 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2613 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2614 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2615 with "chkp ctor" and "bnd_legacy" attributes.
2616 * gimplify.c (gimplify_init_constructor): Avoid infinite
2617 loop during gimplification of bounds initializer.
2620 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2621 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2622 (handle_bnd_legacy): New.
2623 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2624 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2628 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2629 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2630 (BT_FN_PTR_CONST_PTR): New.
2631 (BT_FN_CONST_PTR_CONST_PTR): New.
2632 (BT_FN_PTR_CONST_PTR_SIZE): New.
2633 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2634 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2635 (BT_FN_VOID_CONST_PTR_SIZE): New.
2636 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2637 * chkp-builtins.def: New.
2638 * builtins.def: include chkp-builtins.def.
2639 (DEF_CHKP_BUILTIN): New.
2640 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2641 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2642 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2643 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2644 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2645 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2646 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2647 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2648 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2649 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2650 * common.opt (fcheck-pointer-bounds): New.
2651 * toplev.c (process_options): Check Pointer Bounds Checker is
2653 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2656 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2657 * target.def (builtin_chkp_function): New.
2658 (chkp_bound_type): New.
2659 (chkp_bound_mode): New.
2660 (fn_abi_va_list_bounds_size): New.
2661 (load_bounds_for_arg): New.
2662 (store_bounds_for_arg): New.
2663 * targhooks.h (default_load_bounds_for_arg): New.
2664 (default_store_bounds_for_arg): New.
2665 (default_fn_abi_va_list_bounds_size): New.
2666 (default_chkp_bound_type): New.
2667 (default_chkp_bound_mode): New.
2668 (default_builtin_chkp_function): New.
2669 * targhooks.c (default_load_bounds_for_arg): New.
2670 (default_store_bounds_for_arg): New.
2671 (default_fn_abi_va_list_bounds_size): New.
2672 (default_chkp_bound_type): New.
2673 (default_chkp_bound_mode); New.
2674 (default_builtin_chkp_function): New.
2675 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2676 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2677 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2678 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2679 (TARGET_CHKP_BOUND_TYPE): New.
2680 (TARGET_CHKP_BOUND_MODE): New.
2681 * doc/tm.texi: Regenerated.
2682 * langhooks.h (lang_hooks): Add chkp_supported field.
2683 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2684 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2687 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2688 * config/i386/constraints.md (B): New.
2691 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2692 * config/i386/i386-modes.def (BND32): New.
2694 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2695 * config/i386/i386.c (isa_opts): Add mmpx.
2696 (regclass_map): Add bound registers.
2697 (dbx_register_map): Likewise.
2698 (dbx64_register_map): Likewise.
2699 (svr4_dbx_register_map): Likewise.
2701 (ix86_option_override_internal): Support MPX ISA.
2702 (ix86_conditional_register_usage): Support bound registers.
2703 (print_reg): Likewise.
2704 (ix86_code_end): Add MPX bnd prefix.
2705 (output_set_got): Likewise.
2706 (ix86_output_call_insn): Likewise.
2707 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2708 (ix86_print_operand_punct_valid_p): Likewise.
2709 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2711 (ix86_class_likely_spilled_p): Add bound regs support.
2712 (ix86_hard_regno_mode_ok): Likewise.
2713 (x86_order_regs_for_local_alloc): Likewise.
2714 (ix86_bnd_prefixed_insn_p): New.
2715 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2716 (FIXED_REGISTERS): Add bound registers.
2717 (CALL_USED_REGISTERS): Likewise.
2718 (REG_ALLOC_ORDER): Likewise.
2719 (HARD_REGNO_NREGS): Likewise.
2721 (VALID_BND_REG_MODE): New.
2722 (FIRST_BND_REG): New.
2723 (LAST_BND_REG): New.
2724 (reg_class): Add BND_REGS.
2725 (REG_CLASS_NAMES): Likewise.
2726 (REG_CLASS_CONTENTS): Likewise.
2728 (ANY_BND_REG_P): New.
2730 (HI_REGISTER_NAMES): Add bound registers.
2731 * config/i386/i386.md (UNSPEC_BNDMK): New.
2732 (UNSPEC_BNDMK_ADDR): New.
2733 (UNSPEC_BNDSTX): New.
2734 (UNSPEC_BNDLDX): New.
2735 (UNSPEC_BNDLDX_ADDR): New.
2736 (UNSPEC_BNDCL): New.
2737 (UNSPEC_BNDCU): New.
2738 (UNSPEC_BNDCN): New.
2739 (UNSPEC_MPX_FENCE): New.
2742 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2743 (length_immediate): Likewise.
2744 (prefix_0f): Likewise.
2746 (prefix_rep): Check for bnd prefix.
2747 (length_nobnd): New.
2748 (length): Use length_nobnd if specified.
2753 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2756 (simple_return_internal): Likewise.
2757 (simple_return_pop_internal): Likewise.
2758 (*indirect_jump): Add MPX bnd prefix.
2759 (*tablejump_1): Likewise.
2760 (simple_return_internal_long): Likewise.
2761 (simple_return_indirect_internal): Likewise.
2765 (*mov<mode>_internal_mpx): New.
2766 (<mode>_<bndcheck>): New.
2767 (*<mode>_<bndcheck>): New.
2772 * config/i386/predicates.md (lea_address_operand): Rename to...
2773 (address_no_seg_operand): ... this.
2774 (address_mpx_no_base_operand): New.
2775 (address_mpx_no_index_operand): New.
2776 (bnd_mem_operator): New.
2777 * config/i386/i386.opt (mmpx): New.
2778 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2779 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2782 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2783 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2784 * tree.def (POINTER_BOUNDS_TYPE): New.
2785 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2786 (POINTER_BOUNDS_MODE): New.
2787 (make_pointer_bounds_mode): New.
2788 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2789 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2790 (layout_type): Support POINTER_BOUNDS_TYPE.
2791 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2792 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2793 (type_contains_placeholder_1): Likewise.
2794 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2795 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2796 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2798 2013-11-29 Richard Biener <rguenther@suse.de>
2801 * tree-cfg.c (verify_expr): Restrict bounds verification of
2802 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2804 2013-11-29 Richard Biener <rguenther@suse.de>
2806 PR tree-optimization/59334
2807 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2810 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2811 Richard Biener <rguenther@suse.de>
2814 * omp-low.c (simd_clone_create): Return NULL if for definition
2815 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2816 before calling cgraph_function_versioning.
2817 (expand_simd_clones): Look for "omp declare simd" attribute first.
2818 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2819 Punt if node->global.inlined_to.
2820 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2821 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2822 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2824 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2827 * tree-core.h (enum omp_clause_schedule_kind): Add
2828 OMP_CLAUSE_SCHEDULE_LAST.
2829 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2830 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2831 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2832 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2833 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2834 (DFS_write_tree_body): Handle OMP_CLAUSE.
2835 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2836 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2837 (write_ts_omp_clause_tree_pointers): New function.
2838 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2839 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2840 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2841 (unpack_value_fields): Call it for OMP_CLAUSE.
2842 (streamer_alloc_tree): Handle OMP_CLAUSE.
2843 (lto_input_ts_omp_clause_tree_pointers): New function.
2844 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2846 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2848 * doc/implement-c.texi: Document C11 implementation-defined
2849 behavior. Refer to -ffp-contract=fast for contraction behavior.
2850 * doc/invoke.texi (-std=c99, std=c11): Update description of
2852 (-std=gnu99): Don't mention as future default.
2853 (-std=gnu11): Mention as intended future default.
2854 * doc/standards.texi: Update descriptions of C99 and C11 support.
2855 Limit statement about C99 facilities for freestanding
2856 implementations to some platforms only.
2858 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2861 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2863 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2866 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2867 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2868 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2869 Don't call lra_init_elimination.
2870 (ira): Call ira_setup_eliminable_regset without arguments.
2871 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2872 from ira_setup_eliminable_regset call.
2873 * gcse.c (calculate_bb_reg_pressure): Ditto.
2874 * haifa-sched.c (sched_init): Ditto.
2875 * lra.h (lra_init_elimination): Remove the prototype.
2876 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2877 used_insn_alternative upper.
2878 (lra_eliminate_regs_1): Add one more parameter.
2879 (lra-eliminate): Ditto.
2880 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2881 (setup_sp_offset): New.
2882 (lra_process_new_insns): Call setup_sp_offset.
2883 (lra): Add argument to lra_eliminate calls.
2884 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2885 (get_equiv_with_elimination): New.
2886 (process_addr_reg): Call get_equiv_with_elimination instead of
2887 get_equiv_substitution.
2888 (equiv_address_substitution): Ditto.
2889 (loc_equivalence_change_p): Ditto.
2890 (loc_equivalence_callback, lra_constraints): Ditto.
2891 (curr_insn_transform): Ditto. Print the sp offset
2892 (process_alt_operands): Prevent stack pointer reloads.
2893 (lra_constraints): Remove one argument from lra_eliminate call.
2894 Move it up. Mark used hard regs bfore it. Use
2895 get_equiv_with_elimination instead of get_equiv_substitution.
2896 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2897 assert for param values combination. Use sp offset. Add argument
2898 to lra_eliminate_regs_1 calls.
2899 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2900 (curr_sp_change): New static var.
2901 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2902 Don't prevent elimination to sp if we can calculate its change.
2903 Pass the argument to mark_not_eliminable calls.
2904 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2905 argument to lra_eliminate_regs_1 call.
2906 (update_reg_eliminate): Move calculation of hard regs for spill
2907 lower. Switch off lra_in_progress temporarily to generate regs
2908 involved into elimination.
2909 (lra_init_elimination): Rename to init_elimination. Make it
2910 static. Set up insn sp offset, check the offsets at the end of BBs.
2911 (process_insn_for_elimination): Add parameter. Pass its value to
2912 eliminate_regs_in_insn.
2913 (lra_eliminate): : Add parameter. Pass its value to
2914 process_insn_for_elimination. Add assert for param values
2915 combination. Call init_elimination. Don't update offsets in
2916 equivalence substitutions.
2917 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2918 for created stack slot.
2919 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2922 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2924 * config/arm/iterators.md (vrint_conds): New int attribute.
2925 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2926 (smax<mode>3): Likewise.
2927 (smin<mode>3): Likewise.
2929 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2931 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2932 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2933 * tree-ssanames.h (set_range_info): Add range_type argument.
2934 (duplicate_ssa_name_range_info): Likewise.
2935 * tree-ssanames.c (set_range_info): Take the range type as argument
2936 and store it in SSA_NAME_ANTI_RANGE_P.
2937 (duplicate_ssa_name_range_info): Likewise.
2938 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2939 (set_nonzero_bits): Update call to set_range_info.
2940 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2941 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2942 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2943 (vrp_finalize): Likewise, passing anti-ranges directly.
2945 2013-11-28 Richard Biener <rguenther@suse.de>
2947 PR tree-optimization/59330
2948 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2949 and fix delayed marking of free calls not necessary.
2951 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2953 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2955 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2957 2013-11-28 Terry Guo <terry.guo@arm.com>
2959 * config/arm/arm.c (v7m_extra_costs): New table.
2960 (arm_v7m_tune): Use it.
2962 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2964 * config/sol2.h (TIME_LIBRARY): Define.
2966 2013-11-28 Richard Biener <rguenther@suse.de>
2969 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2970 CONST_DECLs in function context are not indexable.
2972 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2974 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2975 not optimized for size.
2977 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2979 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2981 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2982 data->asan_base as base for vars and update asan_alignb.
2983 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2984 Pass them to asan_emit_stack_protection.
2985 * asan.c (asan_detect_stack_use_after_return): New variable.
2986 (asan_emit_stack_protection): Add pbase and alignb arguments.
2987 Implement use after return sanitization.
2988 * asan.h (asan_emit_stack_protection): Adjust prototype.
2989 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2991 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2993 * common.opt: Introduced a new option -fsimd-cost-model.
2994 * doc/invoke.texi: Introduced a new openmp-simd warning and
2995 a new -fsimd-cost-model option.
2996 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2997 to rely on the particular loop info.
2998 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2999 (vect_peeling_hash_choose_best_peeling): Ditto.
3000 (vect_enhance_data_refs_alignment): Ditto.
3001 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3002 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3003 plus added openmp-simd warining.
3005 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3007 PR rtl-optimization/59311
3008 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3009 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3011 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3013 * var-tracking.c (track_expr_p): Do not track declarations for parts
3014 of tracked parameters.
3015 (add_stores): Do not track values for tracked parameters passed in
3017 (vt_get_decl_and_offset): Handle PARALLEL.
3018 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3020 2013-11-27 Jeff Law <law@redhat.com>
3022 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3023 clobber the loop structure thread_block was unsuccessful. If
3024 thread_block was unsuccessful, cleanup appropriately.
3026 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3028 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3029 (score_char_to_class): Likewise.
3031 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3033 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3034 the overflow bit set.
3036 2013-11-27 Richard Biener <rguenther@suse.de>
3039 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3041 (rebuild_cgraph_edges): Likewise.
3042 * ipa-inline-analysis.c (estimate_function_body_sizes):
3043 Skip internal calls.
3044 * tree-inline.c (estimate_num_insns): Estimate size of internal
3046 (gimple_expand_calls_inline): Do not try inline-expanding
3048 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3049 force_vect and simduid.
3050 (input_struct_function_base): Stream has_force_vect_loops
3051 and has_simduid_loops.
3052 (input_function): Adjust.
3053 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3054 force_vect and simduid.
3055 (output_struct_function_base): Stream has_force_vect_loops
3056 and has_simduid_loops.
3058 2013-11-27 Kai Tietz <ktietz@redhat.com>
3060 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3063 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3065 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3066 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3068 2013-11-27 Marek Polacek <polacek@redhat.com>
3071 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3072 instead of walk_gimple_op.
3073 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3075 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3076 Jakub Jelinek <jakub@redhat.com>
3078 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3079 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3080 (struct cgraph_node): Add simdclone and simd_clones fields.
3081 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3082 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3083 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3084 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3085 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3086 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3087 * doc/tm.texi: Regenerated.
3088 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3089 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3090 attribute is present.
3091 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3092 (simd_clone_vector_of_formal_parm_types): New function.
3093 (simd_clone_struct_alloc, simd_clone_struct_copy,
3094 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3095 simd_clone_compute_base_data_type, simd_clone_mangle,
3096 simd_clone_create, simd_clone_adjust_return_type,
3097 create_tmp_simd_array, simd_clone_adjust_argument_types,
3098 simd_clone_init_simd_arrays): New functions.
3099 (struct modify_stmt_info): New type.
3100 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3101 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3103 (pass_data_omp_simd_clone): New variable.
3104 (pass_omp_simd_clone): New class.
3105 (make_pass_omp_simd_clone): New function.
3106 * passes.def (pass_omp_simd_clone): New.
3107 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3108 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3109 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3110 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3111 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3112 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3113 * tree-vect-data-refs.c: Include cgraph.h.
3114 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3115 and find_data_references_in_bb, if find_data_references_in_stmt
3116 fails, still allow calls to #pragma omp declare simd functions
3117 in #pragma omp simd loops unless they contain data references among
3118 the call arguments or in lhs.
3119 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3121 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3123 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3124 call_simd_clone_vec_info_type.
3125 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3126 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3127 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3128 tree-scalar-evolution.h and cgraph.h.
3129 (vectorizable_call): Handle calls without lhs. Assert
3130 !stmt_can_throw_internal instead of failing for it. Don't update
3132 (struct simd_call_arg_info): New.
3133 (vectorizable_simd_clone_call): New function.
3134 (vect_transform_stmt): Call it.
3135 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3137 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3138 if cgraph_function_with_gimple_body_p is true.
3140 2013-11-27 Tom de Vries <tom@codesourcery.com>
3141 Marc Glisse <marc.glisse@inria.fr>
3144 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3146 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3147 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3150 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3153 * expr.c (emit_group_store): Don't write past the end of the structure.
3154 (store_bit_field): Fix formatting.
3156 2013-11-27 Richard Biener <rguenther@suse.de>
3158 PR tree-optimization/59288
3159 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3160 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3162 2013-11-27 Marek Polacek <polacek@redhat.com>
3164 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3165 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3166 rather than ADDR_EXPRs.
3168 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3170 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3172 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3174 * gengtype.c (struct seen_tag): New.
3175 (already_seen_tag): New.
3176 (mark_tag_as_seen): New.
3177 (walk_subclasses): Support having multiple subclasses using the
3178 same tag by tracking which tags have already been seen, and using
3179 this to avoid adding duplicate cases to the "switch" statement.
3180 The call to already_seen_tag introduces an O(N^2) when running
3181 gengtype on N, the number of tags, due to the repeated linear
3182 search, but currently max(N) is relatively small (the number of
3183 GSS codes, which is 26).
3184 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3187 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3188 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3189 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3190 GIMPLE_OMP_RETURN happens to share the data layout of
3191 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3192 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3193 underlying GSS value from GSS_OMP_PARALLEL to
3194 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3195 not directly related; they merely share in-memory layout.
3196 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3197 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3199 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3201 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3203 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3204 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3205 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3206 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3209 * gimple.h (gimple_statement_resx): New subclass of
3210 gimple_statement_eh_ctrl, with the invariant that
3211 stmt->code == GIMPLE_RESX.
3212 (gimple_statement_eh_dispatch): New subclass of
3213 gimple_statement_eh_ctrl, with the invariant that
3214 stmt->code == GIMPLE_EH_DISPATH.
3216 (gimple_statement_omp_parallel): The existing class expressed
3217 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3218 are not all related, so it makes more sense for this class to
3219 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3220 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3221 rename the existing gimple_statement_omp_parallel class to...
3222 (gimple_statement_omp_parallel_layout): ...this, expressing
3223 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3224 (gimple_statement_omp_taskreg): New subclass of
3225 gimple_statement_omp_parallel_layout, expressing the invariant
3226 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3227 as used by the various gimple_omp_taskreg_ accessors.
3228 (gimple_statement_omp_parallel): Reintroduce this class, this time
3229 as a subclass of gimple_statement_omp_taskreg to express the
3230 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3231 (gimple_statement_omp_target) New class, subclassing
3232 gimple_statement_omp_parallel_layout, to express the invariant
3233 stmt->code == GIMPLE_OMP_TARGET.
3234 (gimple_statement_omp_task): Update to inherit from
3235 gimple_statement_omp_taskreg rather than
3236 gimple_statement_omp_parallel.
3238 (gimple_statement_omp_single): Rename to...
3239 (gimple_statement_omp_single_layout): ...this, expressing the
3240 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3241 (gimple_statement_omp_single): ...and reintroduce this name as
3242 a subclass of gimple_statement_omp_single_layout, expressing
3243 the invariant that code == GIMPLE_OMP_SINGLE.
3244 (gimple_statement_omp_teams): New class, subclassing
3245 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3247 (gimple_statement_omp_atomic_store): Rename to...
3248 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3249 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3250 (gimple_statement_omp_atomic_store): ...and reintroduce this
3251 name as a subclass of gimple_statement_omp_atomic_store_layout
3252 with code == GIMPLE_OMP_ATOMIC_STORE.
3253 (gimple_statement_omp_return): New class, subclassing
3254 gimple_statement_omp_atomic_store_layout for the code
3257 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3258 (is_a_helper <gimple_statement_resx>::test): New.
3259 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3260 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3261 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3262 (is_a_helper <gimple_statement_omp_return>::test): New.
3263 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3264 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3265 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3267 (is_a_helper <gimple_statement_omp_target>::test): New.
3268 (is_a_helper <gimple_statement_omp_single>::test): Only check
3269 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3270 (is_a_helper <gimple_statement_omp_teams>::test): New.
3272 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3273 (is_a_helper <const gimple_statement_resx>::test): New.
3274 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3275 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3276 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3277 (is_a_helper <const gimple_statement_omp_return>::test): New.
3278 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3279 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3280 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3282 (is_a_helper <const gimple_statement_omp_target>::test): New.
3283 (is_a_helper <const gimple_statement_omp_single>::test): Only
3284 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3285 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3287 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3288 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3289 gimple_statement_omp_atomic_store with downcasts to
3290 gimple_statement_omp_return, thus requiring that the code be
3292 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3293 downcasts to gimple_statement_eh_ctrl with downcasts to
3294 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3295 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3296 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3297 downcasts to gimple_statement_eh_dispatch, thus requiring that
3298 the code be GIMPLE_EH_DISPATCH.
3299 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3300 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3301 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3302 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3303 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3304 gimple_statement_omp_parallel with downcasts to
3305 gimple_statement_omp_taskreg, thus requiring that the code be
3306 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3307 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3308 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3309 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3310 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3311 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3312 gimple_statement_omp_parallel with downcasts to
3313 gimple_statement_omp_target, thus requiring that the code be
3315 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3316 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3317 gimple_statement_omp_single with downcasts to
3318 gimple_statement_omp_teams, thus requiring that the code be
3321 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3322 gimple_statement_resx.
3323 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3324 gimple_statement_eh_dispatch.
3326 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3328 PR tree-optimization/59014
3329 * tree-vrp.c (register_edge_assert_for_1): Don't look
3330 through conversions from non-integral types or through
3331 narrowing conversions.
3334 * config/i386/i386.c (device_alg): Fix up formatting.
3335 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3336 similarly to count && count < epilogue_size_needed. Fix up
3338 * builtins.c (determine_block_size): Fix comment typo.
3341 * ubsan.c (ubsan_source_location): Don't add any location
3342 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3343 (ubsan_create_data): Strip block info from LOC.
3346 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3347 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3349 PR rtl-optimization/59166
3350 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3351 DF_REF_LOC in validate_change call.
3352 (split_live_ranges_for_shrink_wrap): Likewise.
3355 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3356 of references to constant size types in simd loops, defer emitting
3357 initializer for the new_var, emit it later on only if not using
3361 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3362 for the inner loop if collapse_bb is non-NULL.
3363 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3365 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3367 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3368 a constant immediate before force_reg.
3370 2013-11-26 Richard Biener <rguenther@suse.de>
3372 PR tree-optimization/59245
3373 * tree-vrp.c (set_value_range): Assert that we don't have
3374 overflowed constants (but our infinities).
3375 (set_value_range_to_value): Drop all overflow flags.
3376 (vrp_visit_phi_node): Likewise.
3377 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3378 to set a constant range.
3380 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3383 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3384 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3385 for zero_extend case.
3387 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3390 * configure.ac (install_gold_as_default): New. Set to yes for
3391 --disable-ld or --enable-gold=default.
3392 (gcc_cv_ld_gold_srcdir): New.
3393 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3394 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3395 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3396 * configure: Regenerated.
3398 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3399 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3400 (original) [collect-ld && -fuse-ld=bfd]: Set to
3401 $ORIGINAL_LD_BFD_FOR_TARGET.
3402 (original) [collect-ld && -fuse-ld=gold]: Set to
3403 $ORIGINAL_LD_GOLD_FOR_TARGET.
3404 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3405 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3407 2013-11-26 Terry Guo <terry.guo@arm.com>
3409 * config/arm/arm.c (require_pic_register): Handle high pic base
3410 register for thumb-1.
3411 (arm_load_pic_register): Also initialize high pic base register.
3412 * doc/invoke.texi: Update documentation for option -mpic-register.
3414 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3418 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3419 Prefix function names with 'sh_'. Make them non-static.
3420 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3421 sh_max_mov_insn_displacement): Add declarations.
3422 * config/sh/constraints.md (Q): Reject QImode.
3423 (Sdd): Use match_code "mem".
3424 (Snd): Fix erroneous matching of non-memory operands.
3425 * config/sh/predicates.md (short_displacement_mem_operand): New
3427 (general_movsrc_operand): Disallow PC relative QImode loads.
3428 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3429 (*movqi, *movhi): Merge both insns into...
3430 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3431 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3432 on the operand types.
3434 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3436 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3437 Remove unused variable save_config.
3438 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3441 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3443 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3444 using other intrinsics.
3445 (vtbx3_<psu>8): Likewise.
3447 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3449 * config/aarch64/aarch64-builtins.c
3450 (aarch64_types_bsl_p_qualifiers): New.
3451 (aarch64_types_bsl_s_qualifiers): Likewise.
3452 (aarch64_types_bsl_u_qualifiers): Likewise.
3453 (TYPES_BSL_P): Likewise.
3454 (TYPES_BSL_S): Likewise.
3455 (TYPES_BSL_U): Likewise.
3456 (BUILTIN_VALLDIF): Likewise.
3457 (BUILTIN_VDQQH): Likewise.
3458 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3459 * config/aarch64/aarch64-simd.md
3460 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3461 (aarch64_simd_bsl<mode>): Likewise.
3462 * config/aarch64/arm_neon.h
3463 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3464 * config/aarch64/iterators.md (VALLDIF): New.
3465 (Vbtype): Handle more modes.
3467 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3469 * config/aarch64/aarch64-builtins.c
3470 (aarch64_type_qualifiers): Add qualifier_poly.
3471 (aarch64_build_scalar_type): Also build Poly types.
3472 (aarch64_build_vector_type): Likewise.
3473 (aarch64_build_type): Likewise.
3474 (aarch64_build_signed_type): New.
3475 (aarch64_build_unsigned_type): Likewise.
3476 (aarch64_build_poly_type): Likewise.
3477 (aarch64_init_simd_builtins): Also handle Poly types.
3479 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3481 * config/aarch64/aarch64-builtins.c
3482 (VAR1): Use new naming scheme for aarch64_builtins.
3483 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3485 2013-11-26 Richard Biener <rguenther@suse.de>
3487 PR tree-optimization/59287
3488 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3489 Remove no longer necessary special-casing of union accesses.
3491 2013-11-26 Richard Biener <rguenther@suse.de>
3493 * pretty-print.c (output_buffer::~output_buffer): Really
3496 2013-11-25 Jeff Law <law@redhat.com>
3498 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3499 invalidate loop information.
3501 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3503 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3505 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3509 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3511 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3512 previously visited basic blocks before recursing instead of only one
3515 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3517 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3518 * config/aarch64/aarch64-cores.def (cortex-a53):
3519 Use cortexa53 tuning struct.
3521 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3524 * fold-const.c: Include hash-table.h.
3526 2013-11-25 Marek Polacek <polacek@redhat.com>
3529 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3531 2013-11-25 Richard Biener <rguenther@suse.de>
3533 * tree-dfa.c: Remove unused convert.h include.
3535 2013-11-25 Terry Guo <terry.guo@arm.com>
3537 * doc/invoke.texi (-mslow-flash-data): Document new option.
3538 * config/arm/arm.opt (mslow-flash-data): New option.
3539 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3541 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3543 (arm_disable_literal_pool): Declare it.
3544 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3545 (arm_option_override): Handle new option.
3546 (thumb2_legitimate_address_p): Don't allow symbol references when
3547 literal pools are disabled.
3548 (arm_max_const_double_inline_cost): New function.
3549 * config/arm/arm.md (types.md): Include it before ...
3550 (use_literal_pool): New attribute.
3551 (enabled): Use new attribute.
3552 (split pattern): Replace symbol+offset with MOVW/MOVT.
3554 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3557 Revert previous commit.
3559 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3561 * jump.c (reset_insn_reg_label_operand_notes): New function,
3563 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3564 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3566 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3567 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3568 expensive CFG cleanup is called for.
3569 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3570 (cfg_layout_finalize): Delete dead jump tables before re-building
3572 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3573 basic blocks, not before.
3574 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3576 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3577 insns chain of a scheduling extended basic block, they cannot appear
3578 there in cfglayout mode.
3580 2013-11-24 Tobias Burnus <burnus@net-b.de>
3582 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3584 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3586 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3589 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3591 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3593 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3595 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3597 2013-11-23 David Edelson <dje.gcc@gmail.com>
3598 Andrew Dixie <andrewd@gentrack.com>
3601 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3602 (COLLECT_SHARED_FINI_FUNC): Define.
3604 * collect2.c (aix_shared_initname): Declare.
3605 (aix_shared_fininame): Declare.
3606 (symkind): Add SYM_AIXI and SYM_AIXD.
3607 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3608 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3609 (aixlazy_flag): Parse.
3610 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3611 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3613 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3615 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3616 (rs6000_xcoff_select_section): Place decls with stricter alignment
3617 into named sections.
3618 (rs6000_xcoff_unique_section): Allow unique sections for
3619 uninitialized data with strict alignment.
3621 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3623 PR tree-optimization/59154
3624 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3625 rhs1 of a cast and new_op is invariant, fold_convert it.
3626 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3627 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3629 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3632 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3633 Declare as MULTI_ARG_1_SF instruction.
3634 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3635 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3636 from *xop_vmfrcz_<mode>.
3637 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3638 to merge scalar result with __A.
3639 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3642 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3644 * gimplify.h (recalculate_side_effects): Delete.
3645 * gimplify.c (recalculate_side_effects): Make static and add comment.
3647 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3649 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3650 for the destination of a define_peephole2. Likewise register_operand
3651 rather than arith_reg_operand. Remove constraints from
3654 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3656 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3658 (mn10300_store_multiple_operation_p): Declare.
3659 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3661 (mn10300_store_multiple_operation_p): ...this and remove mode
3663 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3666 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3668 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3669 (pop_multiple_operation): Delete.
3670 (analyze_push_multiple_operation): Declare.
3671 (analyze_pop_multiple_operation): Declare.
3672 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3673 (analyze_push_multiple_operation): ...this and remove mode argument.
3674 (pop_multiple_operation): Rename to...
3675 (analyze_pop_multiple_operation): ...this and remove mode argument.
3676 * config/bfin/predicates.md (push_multiple_operation): Define.
3677 (pop_multiple_operation): Likewise.
3679 2013-11-23 Alan Modra <amodra@gmail.com>
3681 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3683 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3686 * common.opt (static-liblsan): Add.
3687 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3689 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3690 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3692 * opts.c (common_handle_option): Handle -fsanitize=leak.
3693 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3694 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3695 (LIBUBSAN_EARLY_SPEC): Remove.
3696 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3697 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3698 (sanitize_spec_function): Handle %sanitize(leak).
3699 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3701 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3702 Jakub Jelinek <jakub@redhat.com>
3704 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3705 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3706 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3707 (ipa_modify_formal_parameters): Adjust caller. Remove
3708 synth_parm_prefix argument. Use operator enum instead of bit fields.
3709 Add assert for properly handling vector of references. Handle
3710 creating brand new parameters.
3711 (ipa_modify_call_arguments): Use operator enum instead of bit
3713 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3715 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3717 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3718 Use operator enum instead of bit fields.
3719 * ipa-prop.h (enum ipa_parm_op): New.
3720 (struct ipa_parm_adjustment): New field op. Rename reduction
3721 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3723 (ipa_modify_formal_parameters): Remove last argument.
3724 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3725 ipa_get_adjustment_candidate): New prototypes.
3726 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3727 enum. Set arg_prefix.
3728 (get_adjustment_for_base): Use operator enum.
3729 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3731 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3732 (ipa_sra_modify_function_body): Same. No longer static.
3733 (sra_ipa_reset_debug_stmts): Use operator enum.
3734 (modify_function): Do not pass prefix argument.
3736 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3738 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3739 (ubsan_pass): Ignore clobber stmts.
3741 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3742 * opts.c (common_handle_option): Add -fsanitize=return.
3743 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3744 or it into SANITIZE_UNDEFINED.
3746 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3747 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3748 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3749 Don't instrument accesses to VAR_DECLs which are known to fit
3750 into their bounds and the vars are known to have shadow bytes
3751 indicating allowed access.
3752 (asan_dynamic_init_call): New function.
3753 (asan_add_global): If vnode->dynamically_initialized,
3754 set __has_dynamic_init to 1 instead of 0.
3755 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3756 * asan.h (asan_dynamic_init_call): New prototype.
3757 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3759 2013-11-22 Martin Jambor <mjambor@suse.cz>
3761 PR rtl-optimization/10474
3762 * ira.c (interesting_dest_for_shprep_1): New function.
3763 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3764 also check parallels.
3766 2013-11-22 Jeff Law <law@redhat.com>
3768 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3769 NULL for RHS, which we used to invalidate equivalences.
3770 (record_temporary_equivalences_from_phis): New bitmap arguments
3771 and a boolean indicating if we have passed a backedge. If we
3772 have passed a backedge, then set the appropriate bit in the
3773 bitmaps for the SRC & DEST of PHIs creating equivalences.
3774 (invalidate_equivalences, dummy_simplify): New functions.
3775 (cond_arg_set_in_b): Remove.
3776 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3777 arguments and a boolean indicating if we have passed a backedge.
3778 If we have passed a backedge, then perform invalidations as needed.
3779 (thread_around_empty_blocks): If we have seen a backedge, then
3780 use the dummy simplify routine.
3781 (thread_through_normal_block): Likewise. Pass bitmaps and
3782 backedge status to children. Do not pessimize so much when
3783 traversing backedges in the CFG.
3784 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3785 If we have seen a backedge, then use the dummy simplify routine.
3786 Do not pessimize so much when traversing backedges.
3788 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3790 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3791 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3793 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3795 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3796 PTA_PCLMUL and PTA_RDRND for Silvermont.
3797 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3800 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3802 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3804 * hooks.h (hook_uint_mode_0): Add Prototype.
3805 * hooks.c (hook_uint_mode_0): New default function.
3806 * target.def (atomic_align_for_mode): New target hook.
3807 * tree.c (build_atomic_base): Add alignment override parameter.
3808 (build_common_tree_nodes): Use atomic alignment override.
3809 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3810 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3812 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3814 * gimple.h: Remove all includes.
3815 (recalculate_side_effects): Move prototype to gimplify.h.
3816 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3817 * gengtype.c (open_base_files): Add gimple.h include list.
3818 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3819 * gimple.c: Adjust include list.
3820 (recalculate_side_effects): Move to gimplify.c.
3821 * gimplify.c: Adjust include list.
3822 (recalculate_side_effects): Relocate from gimple.c.
3823 * alias.c: Add required include files removed from gimple.h.
3825 * builtins.c: Likewise.
3826 * calls.c: Likewise.
3827 * cfgexpand.c: Likewise.
3828 * cfgloop.c: Likewise.
3829 * cfgloopmanip.c: Likewise.
3830 * cgraphbuild.c: Likewise.
3831 * cgraph.c: Likewise.
3832 * cgraphclones.c: Likewise.
3833 * cgraphunit.c: Likewise.
3834 * cilk-common.c: Likewise.
3835 * data-streamer.c: Likewise.
3836 * data-streamer-in.c: Likewise.
3837 * data-streamer-out.c: Likewise.
3839 * dwarf2out.c: Likewise.
3840 * emit-rtl.c: Likewise.
3841 * except.c: Likewise.
3843 * fold-const.c: Likewise.
3844 * function.c: Likewise.
3845 * gimple-builder.c: Likewise.
3846 * gimple-expr.c: Likewise.
3847 * gimple-fold.c: Likewise.
3848 * gimple-iterator.c: Likewise.
3849 * gimple-low.c: Likewise.
3850 * gimple-pretty-print.c: Likewise.
3851 * gimple-ssa-isolate-paths.c: Likewise.
3852 * gimple-ssa-strength-reduction.c: Likewise.
3853 * gimple-streamer-in.c: Likewise.
3854 * gimple-streamer-out.c: Likewise.
3855 * gimple-walk.c: Likewise.
3856 * gimplify-me.c: Likewise.
3857 * graphite-blocking.c: Likewise.
3858 * graphite.c: Likewise.
3859 * graphite-clast-to-gimple.c: Likewise.
3860 * graphite-dependences.c: Likewise.
3861 * graphite-interchange.c: Likewise.
3862 * graphite-optimize-isl.c: Likewise.
3863 * graphite-poly.c: Likewise.
3864 * graphite-scop-detection.c: Likewise.
3865 * graphite-sese-to-poly.c: Likewise.
3866 * internal-fn.c: Likewise.
3868 * ipa-cp.c: Likewise.
3869 * ipa-devirt.c: Likewise.
3870 * ipa-inline-analysis.c: Likewise.
3871 * ipa-inline.c: Likewise.
3872 * ipa-profile.c: Likewise.
3873 * ipa-prop.c: Likewise.
3874 * ipa-pure-const.c: Likewise.
3875 * ipa-reference.c: Likewise.
3876 * ipa-split.c: Likewise.
3877 * ipa-utils.c: Likewise.
3878 * langhooks.c: Likewise.
3879 * lto-cgraph.c: Likewise.
3880 * lto-compress.c: Likewise.
3881 * lto-opts.c: Likewise.
3882 * lto-section-in.c: Likewise.
3883 * lto-section-out.c: Likewise.
3884 * lto-streamer.c: Likewise.
3885 * lto-streamer-in.c: Likewise.
3886 * lto-streamer-out.c: Likewise.
3887 * omp-low.c: Likewise.
3888 * opts-global.c: Likewise.
3889 * passes.c: Likewise.
3890 * predict.c: Likewise.
3891 * profile.c: Likewise.
3894 * stor-layout.c: Likewise.
3895 * symtab.c: Likewise.
3896 * targhooks.c: Likewise.
3897 * toplev.c: Likewise.
3898 * tracer.c: Likewise.
3899 * trans-mem.c: Likewise.
3900 * tree-affine.c: Likewise.
3902 * tree-call-cdce.c: Likewise.
3903 * tree-cfg.c: Likewise.
3904 * tree-cfgcleanup.c: Likewise.
3905 * tree-chrec.c: Likewise.
3906 * tree-complex.c: Likewise.
3907 * tree-data-ref.c: Likewise.
3908 * tree-dfa.c: Likewise.
3909 * tree-eh.c: Likewise.
3910 * tree-emutls.c: Likewise.
3911 * tree-if-conv.c: Likewise.
3912 * tree-inline.c: Likewise.
3913 * tree-into-ssa.c: Likewise.
3914 * tree-loop-distribution.c: Likewise.
3915 * tree-nested.c: Likewise.
3916 * tree-nrv.c: Likewise.
3917 * tree-object-size.c: Likewise.
3918 * tree-outof-ssa.c: Likewise.
3919 * tree-parloops.c: Likewise.
3920 * tree-phinodes.c: Likewise.
3921 * tree-predcom.c: Likewise.
3922 * tree-pretty-print.c: Likewise.
3923 * tree-profile.c: Likewise.
3924 * tree-scalar-evolution.c: Likewise.
3925 * tree-sra.c: Likewise.
3926 * tree-ssa-address.c: Likewise.
3927 * tree-ssa-alias.c: Likewise.
3928 * tree-ssa.c: Likewise.
3929 * tree-ssa-ccp.c: Likewise.
3930 * tree-ssa-coalesce.c: Likewise.
3931 * tree-ssa-copy.c: Likewise.
3932 * tree-ssa-copyrename.c: Likewise.
3933 * tree-ssa-dce.c: Likewise.
3934 * tree-ssa-dom.c: Likewise.
3935 * tree-ssa-dse.c: Likewise.
3936 * tree-ssa-forwprop.c: Likewise.
3937 * tree-ssa-ifcombine.c: Likewise.
3938 * tree-ssa-live.c: Likewise.
3939 * tree-ssa-loop.c: Likewise.
3940 * tree-ssa-loop-ch.c: Likewise.
3941 * tree-ssa-loop-im.c: Likewise.
3942 * tree-ssa-loop-ivcanon.c: Likewise.
3943 * tree-ssa-loop-ivopts.c: Likewise.
3944 * tree-ssa-loop-manip.c: Likewise.
3945 * tree-ssa-loop-niter.c: Likewise.
3946 * tree-ssa-loop-prefetch.c: Likewise.
3947 * tree-ssa-loop-unswitch.c: Likewise.
3948 * tree-ssa-math-opts.c: Likewise.
3949 * tree-ssanames.c: Likewise.
3950 * tree-ssa-operands.c: Likewise.
3951 * tree-ssa-phiopt.c: Likewise.
3952 * tree-ssa-phiprop.c: Likewise.
3953 * tree-ssa-pre.c: Likewise.
3954 * tree-ssa-propagate.c: Likewise.
3955 * tree-ssa-reassoc.c: Likewise.
3956 * tree-ssa-sccvn.c: Likewise.
3957 * tree-ssa-sink.c: Likewise.
3958 * tree-ssa-strlen.c: Likewise.
3959 * tree-ssa-structalias.c: Likewise.
3960 * tree-ssa-tail-merge.c: Likewise.
3961 * tree-ssa-ter.c: Likewise.
3962 * tree-ssa-threadedge.c: Likewise.
3963 * tree-ssa-threadupdate.c: Likewise.
3964 * tree-ssa-uncprop.c: Likewise.
3965 * tree-ssa-uninit.c: Likewise.
3966 * tree-stdarg.c: Likewise.
3967 * tree-streamer.c: Likewise.
3968 * tree-streamer-in.c: Likewise.
3969 * tree-streamer-out.c: Likewise.
3970 * tree-switch-conversion.c: Likewise.
3971 * tree-tailcall.c: Likewise.
3972 * tree-vect-data-refs.c: Likewise.
3973 * tree-vect-generic.c: Likewise.
3974 * tree-vect-loop.c: Likewise.
3975 * tree-vect-loop-manip.c: Likewise.
3976 * tree-vectorizer.c: Likewise.
3977 * tree-vect-patterns.c: Likewise.
3978 * tree-vect-slp.c: Likewise.
3979 * tree-vect-stmts.c: Likewise.
3980 * tree-vrp.c: Likewise.
3982 * ubsan.c: Likewise.
3983 * value-prof.c: Likewise.
3984 * varpool.c: Likewise.
3985 * var-tracking.c: Likewise.
3986 * vtable-verify.c: Likewise.
3987 * config/darwin.c: Likewise.
3988 * config/aarch64/aarch64-builtins.c: Likewise.
3989 * config/aarch64/aarch64.c: Likewise.
3990 * config/alpha/alpha.c: Likewise.
3991 * config/i386/i386.c: Likewise.
3992 * config/i386/winnt.c: Likewise.
3993 * config/ia64/ia64.c: Likewise.
3994 * config/m32c/m32c.c: Likewise.
3995 * config/mep/mep.c: Likewise.
3996 * config/mips/mips.c: Likewise.
3997 * config/rs6000/rs6000.c: Likewise.
3998 * config/s390/s390.c: Likewise.
3999 * config/sh/sh.c: Likewise.
4000 * config/sparc/sparc.c: Likewise.
4001 * config/spu/spu.c: Likewise.
4002 * config/stormy16/stormy16.c: Likewise.
4003 * config/tilegx/tilegx.c: Likewise.
4004 * config/tilepro/tilepro.c: Likewise.
4005 * config/xtensa/xtensa.c: Likewise.
4007 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4010 * arm.md (negdi_extendsidi): Fix invalid split.
4012 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4014 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4015 (vmov_n_f64): Likewise.
4016 (vmov_n_p8): Likewise.
4017 (vmov_n_p16): Likewise.
4018 (vmov_n_s8): Likewise.
4019 (vmov_n_s16): Likewise.
4020 (vmov_n_s32): Likewise.
4021 (vmov_n_s64): Likewise.
4022 (vmov_n_u8): Likewise.
4023 (vmov_n_u16): Likewise.
4024 (vmov_n_u32): Likewise.
4025 (vmov_n_u64): Likewise.
4026 (vmovq_n_f32): Likewise.
4027 (vmovq_n_f64): Likewise.
4028 (vmovq_n_p8): Likewise.
4029 (vmovq_n_p16): Likewise.
4030 (vmovq_n_s8): Likewise.
4031 (vmovq_n_s16): Likewise.
4032 (vmovq_n_s32): Likewise.
4033 (vmovq_n_s64): Likewise.
4034 (vmovq_n_u8): Likewise.
4035 (vmovq_n_u16): Likewise.
4036 (vmovq_n_u32): Likewise.
4037 (vmovq_n_u64): Likewise.
4039 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4041 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4042 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4043 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4044 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4045 and also change to float UNSPEC.
4046 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4047 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4048 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4049 result access for big-endian.
4050 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4051 intrinsics for big-endian.
4052 * config/aarch64/iterators.md (VDQV): Add V2DI.
4054 (vp): New mode attribute.
4056 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4058 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4059 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4062 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4064 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4065 for big-endian element order.
4066 (aarch64_simd_vec_setv2di): Likewise.
4067 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4068 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4069 (vec_extract): Expand using aarch64_get_lane.
4070 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4072 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4074 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4075 and stores to be ABI compliant.
4077 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4079 * input.h (input_line): Remove.
4080 (input_filename): Likewise.
4081 (in_system_header): Likewise.
4082 * tree.h (EXPR_LOC_OR_HERE): Remove.
4083 * config/bfin/bfin.c (output_file_start): Remove use of
4084 input_filename macro.
4085 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4086 * gimplify.c (internal_get_tmp_var): Likewise.
4087 EXPR_LOC_OR_HERE macro.
4088 (shortcut_cond_expr): Likewise.
4089 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4090 use of input_filename macro.
4091 * tree.c (get_file_function_name): Likewise.
4093 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4095 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4097 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4099 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4100 (same sized) elements even if the type of the CONSTRUCTOR has
4101 vector mode and target is a REG.
4103 2013-11-22 Richard Biener <rguenther@suse.de>
4106 2013-11-21 Richard Biener <rguenther@suse.de>
4108 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4109 nb_iterations_upper_bound by one.
4111 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4113 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4116 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4117 core-avx-i, core-avx2 and slm.
4119 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4121 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4123 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4125 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4126 (stzx_24_<mode>): Likewise mra_operand.
4128 2013-11-22 Jeff Law <law@redhat.com>
4130 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4131 (thread_block_1): Do not cancel jump threads which go from
4132 inside a loop, through the header, then back inside the loop.
4133 (bb_ends_with_multiway_branch): New function.
4134 (thread_through_all_blocks): Handle threading cases which start
4135 in a loop through the loop header to a point in the loop.
4137 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4138 jump thread path properly.
4140 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4142 * vec.h (auto_vec): New class.
4143 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4144 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4145 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4146 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4147 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4148 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4149 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4150 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4151 appropriate instead of vec for local variables.
4153 2013-11-21 Teresa Johnson <tejohnson@google.com>
4156 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4157 not understood by old_insns_match_p.
4159 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4161 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4162 little endian change.
4163 (vec_pack_sfix_trunc_v2df): Likewise.
4164 (vec_pack_ufix_trunc_v2df): Likewise.
4165 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4166 double checking of endianness.
4168 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4170 * tree-vect-generic.c (optimize_vector_constructor): New function.
4171 (expand_vector_operations_1): Call it.
4173 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4175 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4176 ix86_zero_extend_to_Pmode where appropriate.
4177 (ix86_expand_builtin): Ditto.
4179 2013-11-21 Cary Coutant <ccoutant@google.com>
4181 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4182 (add_linkage_name): Don't add linkage name for -g1.
4183 (decls_for_scope): Process subblocks for -g1.
4184 (dwarf2out_source_line): Output line tables for -g1.
4185 (dwarf2out_finish): Likewise.
4186 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4187 unused scopes for -g1.
4188 * opts.c (common_handle_option): Handle -g same as -g2.
4189 * doc/invoke.texi: Update description for -g1.
4191 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4193 * doc/extend.texi: Document htm builtins.
4195 2013-11-21 Jeff Law <law@redhat.com>
4197 PR tree-optimization/59221
4198 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4199 temporary equivalences when threading through joiner blocks.
4201 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4203 PR rtl-optimization/55950
4204 * real.c (real_sqrt): Remove function.
4205 * real.h (real_sqrt): Remove prototype.
4206 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4207 SQRT using real_sqrt.
4209 2013-11-21 Richard Biener <rguenther@suse.de>
4211 PR tree-optimization/59058
4212 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4213 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4214 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4215 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4216 (NITERS_KNOWN_P): Fold into ...
4217 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4218 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4219 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4220 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4221 (vect_do_peeling_for_alignment): Re-use precomputed niter
4222 instead of re-emitting it.
4223 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4224 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4225 * tree-vect-loop.c (vect_get_loop_niters): Use
4226 number_of_latch_executions.
4227 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4228 (vect_analyze_loop_form): Simplify.
4229 (vect_analyze_loop_operations): Move epilogue peeling code ...
4230 (vect_analyze_loop_2): ... here and adjust it to compute
4231 LOOP_VINFO_PEELING_FOR_NITER.
4232 (vect_estimate_min_profitable_iters): Use
4233 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4234 (vect_build_loop_niters): Emit on the preheader.
4235 (vect_generate_tmps_on_preheader): Likewise.
4236 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4237 of recomputing it. Adjust.
4239 2013-11-21 Richard Biener <rguenther@suse.de>
4241 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4242 LOC_LINE): Remove wrappers and fix all users.
4243 (struct _loop_vec_info): Remove loop_line_number member.
4244 (LOOP_VINFO_LOC): Remove.
4245 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4246 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4249 2013-11-21 Richard Biener <rguenther@suse.de>
4251 * tree-ssa-forwprop.c (simplify_vce): New function.
4252 (ssa_forward_propagate_and_combine): Call it.
4254 2013-11-21 Richard Biener <rguenther@suse.de>
4256 * tree-vect-loop-manip.c (vect_build_loop_niters,
4257 vect_generate_tmps_on_preheader): Move ...
4258 * tree-vect-loop.c (vect_build_loop_niters,
4259 vect_generate_tmps_on_preheader): ... here and simplify.
4260 (vect_transform_loop): Call them here and pass down results
4262 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4263 Get niter variables from caller.
4264 (vect_do_peeling_for_alignment): Likewise.
4265 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4266 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4269 2013-11-21 Richard Biener <rguenther@suse.de>
4271 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4272 nb_iterations_upper_bound by one.
4274 2013-11-21 Richard Biener <rguenther@suse.de>
4276 PR tree-optimization/59058
4277 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4278 (build_size_arg_loc): Apply niter adjustment here.
4279 (generate_memset_builtin): Adjust.
4280 (generate_memcpy_builtin): Likewise.
4281 (classify_partition): Do not use number_of_exit_cond_executions
4282 but record whether niter needs to be adjusted.
4284 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4286 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4289 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4292 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4293 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4294 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4295 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4296 sh_optimize_sett_clrt pass.o to extra_objs.
4298 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4300 * cfg.c (dump_edge_info): Remove redundant comment.
4301 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4302 EXIT_BLOCK_PTR in comment.
4303 (try_optimize_cfg): Likewise.
4304 * cfgrtl.c (last_bb_in_partition): Likewise.
4305 * cgraph.c (cgraph_node_cannot_return): Likewise.
4306 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4307 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4308 * ipa-split.c (consider_split): Likewise.
4309 * profile.c (find_spanning_tree): Likewise.
4310 * sched-int.h (common_sched_info_def.add_block): Likewise.
4311 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4312 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4313 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4314 in comments to now removed ENTRY_BLOCK_PTR macro.
4315 (tree_forwarder_block_p): Reword reference in comment to
4317 * tree-inline.c (copy_cfg_body): Reword references in comments to
4318 now removed ENTRY_BLOCK_PTR macro.
4319 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4320 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4321 a comma to the comment to clarify the meaning.
4323 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4325 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4327 (free_gimplify_stack): Add prototype.
4328 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4329 (struct gimplify_ctx): Relocate here.
4330 (gimplify_ctxp): Make static.
4331 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4332 list of struct gimplify_ctx.
4333 (push_gimplify_context): Add default parameters and allocate a struct
4335 (pop_gimplify_context): Free a struct back to the pool.
4336 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4337 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4338 use a local 'struct gimplify_ctx'.
4339 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4340 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4342 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4343 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4344 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4345 lower_omp_teams, execute_lower_omp): Likewise.
4346 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4347 * tree-inline.c (optimize_inline_calls): Likewise.
4349 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4351 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4352 (vsx_extract_<mode>): Likewise.
4353 (*vsx_extract_<mode>_one_le): New LE variant on
4354 *vsx_extract_<mode>_zero.
4355 (vsx_extract_v4sf): Adjust for little endian.
4357 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4359 PR rtl-optimization/59133
4360 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4362 (lra_create_new_reg_with_unique_value): Pass new argument value.
4363 (lra_emit_add, lra_emit_move): Ditto.
4364 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4365 (change_class): Rename to lra_change_class. Move to lra-int.h.
4366 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4368 (process_addr_reg, process_addr): Ditto.
4369 (curr_insn_transform): Ditto. Add check on old pseudo for
4371 * lra-int.h (lra_get_regno_hard_regno): Move below.
4372 (lra_change_class): Renamed change_class from lra.c.
4374 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4376 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4377 the children of a NULL pointer.
4379 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4381 * lra.c (lra): Set lra_in_progress before check_rtl call.
4382 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4383 adding clobber regs when LRA is running.
4385 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4387 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4388 restriction for ISA_MIPS32R2.
4389 (ISA_HAS_LXC1_SXC1): New macro.
4390 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4391 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4392 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4393 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4394 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4395 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4396 (*<ANYF:storex>_<P:mode>): Likewise.
4398 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4400 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4401 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4402 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4403 * config/mips/mips.md (recip_condition): Remove mode attribute.
4404 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4406 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4408 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4411 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4412 Make sure neg2_ovf is set before being used.
4414 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4416 * plugin.def: Add comment about register_callback and
4417 invoke_plugin_callbacks_full.
4419 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4420 Handle PLUGIN_INCLUDE_FILE event.
4422 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4424 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4425 allow subregs of TDmode in FPRs of smaller size in little-endian.
4426 (rs6000_split_multireg_move): When splitting an access to TDmode
4427 in FPRs, do not use simplify_gen_subreg.
4429 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4432 * real.c: Remove comment about decimal string conversion and
4434 (real_from_string): Use MPFR to convert nonzero decimal constant
4437 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4439 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4440 endianness of the D registers for the legacy encodings.
4442 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4444 PR rtl-optimization/54300
4445 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4446 outputs in a single-set are killed from the value chains.
4448 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4450 * cgraph.h (varpool_node): Add need_bounds_init field.
4451 * lto-cgraph.c (lto_output_varpool_node): Output
4452 need_bounds_init value.
4453 (input_varpool_node): Read need_bounds_init value.
4454 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4456 2013-11-20 Jan Hubicka <jh@suse.cz>
4458 * opts.c (finish_options): Imply -ffat-lto-objects with
4459 -fno-use-linker-plugin.
4460 * common.opt (fuse-linker-plugin): Add var.
4462 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4464 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4465 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4466 (gen_type_die_with_usage): Skip pointer bounds.
4467 (dwarf2out_global_decl): Likewise.
4469 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4471 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4474 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4477 * config/i386/i386.c (ix86_option_override_internal): Add missed
4478 argument prefix for 'ix86_fpmath'.
4479 * config/i386/ssemath.h: Add missed definition of
4480 TARGET_FPMATH_DEFAULT_P macros.
4482 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4483 Mike Stump <mikestump@comcast.net>
4484 Richard Sandiford <rdsandiford@googlemail.com>
4486 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4487 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4488 tree_fits_shwi_p or tree_fits_uhwi_p.
4489 * builtins.c (fold_builtin_powi): Likewise.
4490 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4492 * dbxout.c (dbxout_symbol): Likewise.
4493 * expr.c (expand_expr_real_1): Likewise.
4494 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4495 (fold_binary_loc): Likewise.
4496 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4497 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4498 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4499 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4500 * stor-layout.c (compute_record_mode): Likewise.
4501 * tree-cfg.c (verify_expr): Likewise.
4502 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4503 * tree-pretty-print.c (dump_array_domain): Likewise.
4504 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4505 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4506 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4507 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4508 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4509 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4510 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4511 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4512 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4513 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4514 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4515 (create_variable_info_for_1): Likewise.
4516 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4517 (vect_verify_datarefs_alignment): Likewise.
4518 (vect_analyze_data_ref_accesses): Likewise.
4519 (vect_prune_runtime_alias_test_list): Likewise.
4520 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4522 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4524 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4525 overflow. Use tree_to_shwi.
4527 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4529 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4530 HOST_WIDE_INTs when folding (x >> c) << c.
4532 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4533 Dominik Vogt <vogt@linux.vnet.ibm.com>
4535 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4536 int comparisons with an out of range condition code.
4537 (s390_optimize_nonescaping_tx): Skip empty BBs.
4538 Generate the new tbegin RTX when removing the FPR clobbers (with
4540 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4541 result before doing the retry calculations.
4542 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4544 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4545 the TDB setting part of an tbegin.
4546 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4547 ("tx_assist"): Set unused argument to an immediate zero instead of
4548 loading zero into a GPR and pass it as argument.
4549 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4550 Remove inline and related attributes.
4551 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4552 (__TM_is_illegal, __TM_is_footprint_exceeded)
4553 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4555 2013-11-20 Richard Biener <rguenther@suse.de>
4558 * lto-opts.c (lto_write_options): Write defaults only if
4559 they were not explicitely specified. Also write
4560 -ffp-contract default.
4561 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4563 (run_gcc): Pass through -ffp-contract.
4565 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4567 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4569 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4571 * config/aarch64/aarch64-builtins.c
4572 (aarch64_simd_itype): Remove.
4573 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4574 (VAR1): Use qualifiers.
4575 (aarch64_build_scalar_type): New.
4576 (aarch64_build_vector_type): Likewise.
4577 (aarch64_build_type): Likewise.
4578 (aarch64_init_simd_builtins): Refactor, remove special cases,
4579 consolidate main loop.
4580 (aarch64_simd_expand_args): Likewise.
4582 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4585 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4587 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4589 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4591 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4593 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4594 to "vec<>" instances.
4595 (build_pretty_printer): Register the vec<>* prettyprinter.
4597 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4599 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4600 (GdbSubprinter.handles_type): New.
4601 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4602 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4603 (GdbPrettyPrinters.add_printer): Remove in favor of...
4604 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4605 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4606 (GdbPrettyPrinters.__call__): Update search for subprinter
4607 to use handles_type method.
4608 (build_pretty_printer): Update registration of subprinters to
4609 use the new API above, supporting multiple spelling of each type,
4610 and allowing for future regex-based subprinters.
4612 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4614 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4615 V16QI vector splat case for little endian.
4617 2013-11-19 Jeff Law <law@redhat.com>
4619 * tree-ssa-threadedge.c (thread_across_edge): After threading
4620 through a joiner, allow threading a normal block requiring duplication.
4622 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4623 jump threading requests that would muck up the loop structures.
4625 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4626 * tree-ssa-threadupdate.h: Likewise.
4628 2013-11-19 Mike Stump <mikestump@comcast.net>
4630 * gdbinit.in: Add pmz to print out mpz values.
4632 2013-11-20 Jan Hubicka <jh@suse.cz>
4634 * common.opt (ffat-lto-objects): Disable by default.
4635 * doc/invoke.texi (fat-lto-objects): Update documentation.
4636 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4638 2013-11-19 Martin Jambor <mjambor@suse.cz>
4640 PR rtl-optimization/59099
4641 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4643 (ira): Move init_reg_equiv and call to
4644 split_live_ranges_for_shrink_wrap up, remove analyses around call
4645 to find_moveable_pseudos.
4647 2013-11-20 Alan Modra <amodra@gmail.com>
4649 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4650 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4651 to strict alignment on older processors when little-endian.
4652 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4655 2013-11-19 Teresa Johnson <tejohnson@google.com>
4657 * common/config/i386/i386-common.c: Enable
4658 -freorder-blocks-and-partition at -O2 and up for x86.
4659 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4660 * opts.c (finish_options): Only warn if
4661 -freorder-blocks-and-partition was set on command line.
4663 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4665 * final.c (final_scan_insn): Emit a label for the split
4666 cold function part. Label name is formed by suffixing
4667 the original function name with "cold".
4669 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4671 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4672 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4673 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4674 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4675 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4677 (EXIT_BLOCK_PTR): Likewise.
4678 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4679 (FOR_ALL_BB_FN): Update for renaming of
4680 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4682 * cfg.c (init_flow): Likewise.
4683 (check_bb_profile): Likewise.
4684 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4685 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4686 * cfghooks.c (account_profile_record): Likewise.
4687 * cfgloop.c (init_loops_structure): Likewise.
4688 * cgraphbuild.c (record_eh_tables): Likewise.
4689 (compute_call_stmt_bb_frequency): Likewise.
4690 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4691 * lto-streamer-in.c (input_cfg): Likewise.
4692 * predict.c (maybe_hot_frequency_p): Likewise.
4693 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4694 * tree-inline.c (initialize_cfun): Likewise.
4695 (copy_cfg_body): Likewise.
4696 (copy_body): Likewise.
4697 (tree_function_versioning): Likewise.
4699 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4700 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4701 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4702 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4703 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4704 (connect_traces): Likewise.
4705 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4706 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4707 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4709 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4711 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4712 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4713 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4714 (rotate_loop): Likewise.
4715 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4716 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4718 (alloc_aux_for_edges): Likewise.
4719 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4720 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4722 (compact_blocks): Likewise.
4723 (clear_edges): Likewise.
4724 * cfganal.c (single_pred_before_succ_order): Remove usage of
4725 ENTRY_BLOCK_PTR macro.
4726 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4727 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4728 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4729 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4730 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4732 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4733 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4735 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4736 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4737 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4738 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4739 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4740 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4742 (print_edge_list): Likewise.
4743 (create_edge_list): Likewise.
4744 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4745 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4747 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4749 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4750 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4751 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4752 (try_optimize_cfg): Likewise.
4753 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4754 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4755 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4756 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4757 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4758 (try_forward_edges): Likewise.
4759 (try_simplify_condjump): Likewise.
4760 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4761 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4762 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4763 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4765 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4766 (expand_gimple_tailcall): Likewise.
4767 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4768 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4769 (tidy_fallthru_edges): Likewise.
4770 (verify_flow_info): Likewise.
4771 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4772 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4773 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4774 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4775 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4776 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4777 (get_loop_body_in_dom_order): Likewise.
4778 (get_loop_body): Likewise.
4779 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4780 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4781 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4783 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4784 (fix_bb_placement): Likewise.
4785 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4786 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4787 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4788 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4790 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4791 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4792 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4793 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4795 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4796 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4797 (fixup_reorder_chain): Likewise.
4798 (relink_block_chain): Likewise.
4799 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4800 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4801 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4802 (force_one_exit_fallthru): Likewise.
4803 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4805 (rtl_verify_edges): Likewise.
4806 (commit_edge_insertions): Likewise.
4807 (commit_one_edge_insertion): Likewise.
4808 (rtl_split_edge): Likewise.
4809 (force_nonfallthru_and_redirect): Likewise.
4810 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4811 (skip_insns_after_block): Likewise.
4812 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4814 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4815 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4817 (contains_no_active_insn_p): Likewise.
4818 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4819 (entry_of_function): Likewise.
4820 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4821 (fixup_new_cold_bb): Likewise.
4822 (patch_jump_insn): Likewise.
4823 (try_redirect_by_replacing_jump): Likewise.
4824 (block_label): Likewise.
4825 (could_fall_through): Likewise.
4826 (can_fallthru): Likewise.
4827 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4828 ENTRY_BLOCK_PTR macro.
4829 (rebuild_cgraph_edges): Likewise.
4830 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4831 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4832 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4833 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4834 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4835 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4836 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4837 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4839 (reg_nonzero_bits_for_combine): Likewise.
4840 (set_nonzero_bits_and_sign_copies): Likewise.
4841 (combine_instructions): Likewise.
4842 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4844 (bypass_conditional_jumps): Likewise.
4845 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4846 (find_implicit_sets): Likewise.
4847 (cprop_jump): Likewise.
4848 * cse.c (cse_cc_succs): Likewise.
4849 (cse_find_path): Likewise.
4850 * df-problems.c (df_lr_confluence_0): Likewise.
4851 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4852 ENTRY_BLOCK_PTR macro.
4853 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4854 * dominance.c (iterate_fix_dominators): Remove usage of
4855 ENTRY_BLOCK_PTR macro.
4856 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4857 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4858 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4860 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4862 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4864 * domwalk.c (cmp_bb_postorder): Likewise.
4865 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4866 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4868 (sjlj_emit_function_enter): Likewise.
4869 * final.c (compute_alignments): Likewise.
4870 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4871 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4872 (reposition_prologue_and_epilogue_notes): Remove usage of
4873 EXIT_BLOCK_PTR macro.
4874 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4876 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4877 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4878 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4879 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4880 (compute_code_hoist_vbeinout): Likewise.
4881 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4882 (pre_expr_reaches_here_p_work): Likewise.
4883 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4884 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4886 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4887 ENTRY_BLOCK_PTR macro.
4888 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4890 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4891 ENTRY_BLOCK_PTR macro.
4892 * graphite-scop-detection.c (build_scops): Likewise.
4893 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4894 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4895 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4897 (unlink_bb_notes): Likewise.
4898 (create_check_block_twin): Likewise.
4899 (init_before_recovery): Likewise.
4900 (sched_extend_bb): Likewise.
4901 (priority): Likewise.
4902 * hw-doloop.c (reorder_loops): Likewise.
4903 (discover_loop): Likewise.
4904 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4905 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4906 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4907 (block_has_only_trap): Likewise.
4908 (cond_exec_find_if_block): Likewise.
4909 (merge_if_block): Likewise.
4910 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4911 ENTRY_BLOCK_PTR macro.
4912 (record_modified): Likewise.
4913 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4914 EXIT_BLOCK_PTR macro.
4915 (local_pure_const): Likewise.
4916 * ipa-split.c (split_function): Remove uses of macros:
4917 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4918 (find_split_points): Likewise.
4919 (consider_split): Likewise.
4920 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4921 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4922 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4923 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4924 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4925 ENTRY_BLOCK_PTR macro.
4926 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4927 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4928 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4929 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4930 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4932 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4934 (compute_farthest): Likewise.
4935 (compute_available): Likewise.
4936 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4937 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4939 (compute_earliest): Likewise.
4940 (compute_antinout_edge): Likewise.
4941 * loop-iv.c (simplify_using_initial_values): Remove usage of
4942 ENTRY_BLOCK_PTR macro.
4943 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4945 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4947 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4949 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4950 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4951 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4953 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4955 * lto-streamer-out.c (output_cfg): Likewise.
4956 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4958 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4959 * mode-switching.c (optimize_mode_switching): Likewise.
4960 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4961 * modulo-sched.c (rest_of_handle_sms): Likewise.
4962 (canon_loop): Likewise.
4963 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4964 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4965 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4966 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4968 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4969 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4970 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4971 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4972 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4973 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4974 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4975 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4976 (gimple_predict_edge): Likewise.
4977 (probably_never_executed): Likewise.
4978 * profile.c (find_spanning_tree): Remove uses of macros:
4979 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4980 (branch_prob): Likewise.
4981 (compute_branch_probabilities): Likewise.
4982 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4983 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4984 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4985 (set_bb_counts): Likewise.
4986 (correct_negative_edge_counts): Likewise.
4987 (get_exec_counts): Likewise.
4988 (instrument_values): Likewise.
4989 (instrument_edges): Likewise.
4990 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4992 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4993 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4994 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4995 (reg_to_stack): Likewise.
4996 * regs.h (REG_N_SETS): Likewise.
4997 * reload.c (find_dummy_reload): Likewise.
4998 (combine_reloads): Likewise.
4999 (push_reload): Likewise.
5000 * reload1.c (has_nonexceptional_receiver): Remove usage of
5001 EXIT_BLOCK_PTR macro.
5002 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5004 (find_basic_block): Likewise.
5005 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5006 (schedule_ebbs): Likewise.
5007 * sched-int.h (sel_sched_p): Likewise.
5008 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5010 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5011 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5013 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5014 (extend_rgns): Likewise.
5015 (find_single_block_region): Likewise.
5016 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5017 ENTRY_BLOCK_PTR macro.
5018 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5019 (sel_create_recovery_block): Likewise.
5020 (bb_ends_ebb_p): Likewise.
5021 (sel_bb_end): Likewise.
5022 (sel_bb_head): Likewise.
5023 (free_lv_sets): Likewise.
5024 (init_lv_sets): Likewise.
5025 (tidy_control_flow): Likewise.
5026 (maybe_tidy_empty_bb): Likewise.
5027 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5028 (_succ_iter_start): Likewise.
5029 (sel_bb_empty_or_nop_p): Likewise.
5030 (get_loop_exit_edges_unique_dests): Likewise.
5031 (inner_loop_header_p): Likewise.
5032 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5033 (find_block_for_bookkeeping): Likewise.
5034 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5035 (insert_store): Likewise.
5036 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5037 ENTRY_BLOCK_PTR macro.
5038 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5039 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5040 (gate_tm_init): Likewise.
5041 (tm_region_init): Likewise.
5042 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5043 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5044 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5045 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5047 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5048 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5050 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5052 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5054 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5056 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5057 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5058 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5059 (build_gimple_cfg): Likewise.
5060 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5061 (gimple_can_merge_blocks_p): Likewise.
5062 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5063 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5064 * tree-complex.c (update_parameter_components): Remove usage of
5065 ENTRY_BLOCK_PTR macro.
5066 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5067 EXIT_BLOCK_PTR macro.
5068 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5069 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5070 (delete_unreachable_blocks_update_callgraph): Likewise.
5071 (initialize_cfun): Likewise.
5072 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5073 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5074 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5075 * tree-into-ssa.c (update_ssa): Likewise.
5076 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5077 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5078 (rewrite_into_ssa): Likewise.
5079 (rewrite_debug_stmt_uses): Likewise.
5080 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5081 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5082 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5083 ENTRY_BLOCK_PTR macro.
5084 * tree-scalar-evolution.h (block_before_loop): Likewise.
5085 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5086 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5088 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5090 (propagate_dereference_distances): Remove uses of macros:
5091 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5092 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5094 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5095 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5096 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5097 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5098 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5099 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5100 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5101 (mark_control_dependent_edges_necessary): Remove uses of macros:
5102 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5103 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5104 ENTRY_BLOCK_PTR macro.
5105 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5106 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5107 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5108 (calculate_live_on_exit): Likewise.
5109 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5110 (loe_visit_block): Likewise.
5111 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5112 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5113 (live_on_entry): Likewise.
5114 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5115 EXIT_BLOCK_PTR macro.
5116 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5117 ENTRY_BLOCK_PTR macro.
5118 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5119 (bound_difference): Likewise.
5120 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5121 of EXIT_BLOCK_PTR macro.
5122 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5123 of ENTRY_BLOCK_PTR macro.
5124 * tree-ssa-math-opts.c (register_division_in): Likewise.
5125 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5126 * tree-ssa-pre.c (compute_avail): Likewise.
5127 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5128 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5129 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5130 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5131 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5133 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5134 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5135 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5136 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5137 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5138 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5139 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5140 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5141 (find_pdom): Likewise.
5142 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5143 * tree-stdarg.c (reachable_at_most_once): Likewise.
5144 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5145 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5146 (eliminate_tail_call): Likewise.
5147 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5149 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5150 * var-tracking.c (vt_initialize): Remove uses of macros:
5151 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5152 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5153 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5154 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5156 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5158 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5159 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5160 of EXIT_BLOCK_PTR macro.
5161 * config/arm/arm.c (require_pic_register): Remove usage of
5162 ENTRY_BLOCK_PTR macro.
5163 (arm_r3_live_at_start_p): Likewise.
5164 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5165 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5166 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5167 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5168 ENTRY_BLOCK_PTR macro.
5169 * config/i386/i386.c (ix86_count_insn): Likewise.
5170 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5171 (ix86_pad_short_function): Likewise.
5172 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5173 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5174 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5175 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5176 (ix86_expand_epilogue): Likewise.
5177 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5178 (ia64_expand_prologue): Likewise.
5180 2013-11-19 Catherine Moore <clm@codesourcery.com>
5182 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5183 * config/mips/mips.opt (mfix-rm7000): New option.
5184 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5185 * config/mips/mips.c (mips_reorg_process_insns): Disable
5186 noreorder for TARGET_FIX_RM7000.
5188 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5190 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5192 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5194 * config/arm/arm.c (arm_new_rtx_costs):
5195 Handle narrow mode add-shifts properly.
5196 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5197 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5200 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5202 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5204 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5206 * config/rs6000/vector.md ("mov<mode>"): Do not call
5207 rs6000_emit_le_vsx_move to move into or out of GPRs.
5208 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5209 source and destination are not GPR hard regs.
5211 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5213 * basic-block.h (n_edges_for_function): Rename macro to...
5214 (n_edges_for_fn): ...this.
5215 (n_edges): Eliminate macro as work towards making uses of
5218 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5219 to "n_edges_for_fn".
5221 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5222 (clear_edges): Likewise.
5223 (free_edge): Likewise.
5224 * cfghooks.c (dump_flow_info): Likewise.
5225 * cprop.c (is_too_expensive): Likewise.
5226 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5227 * gcse.c (is_too_expensive): Likewise.
5228 (prune_insertions_deletions): Likewise.
5229 * mcf.c (create_fixup_graph): Likewise.
5230 * sched-rgn.c (haifa_find_rgns): Likewise.
5231 * tree-cfg.c (gimple_dump_cfg): Likewise.
5232 * var-tracking.c (variable_tracking_main_1): Likewise.
5234 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5236 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5239 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5241 * config/aarch64/aarch64.md
5242 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5244 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5246 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5248 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5250 * varasm.c (align_variable): Give error instead of warning for
5251 unsupported alignment.
5252 (assemble_noswitch_variable): Likewise.
5254 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5256 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5259 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5261 * loop-doloop.c (doloop_optimize_loops): Remove unused
5262 loop iterator argument from FOR_EACH_LOOP.
5264 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5266 Convert gimple types from a union to C++ inheritance.
5267 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5268 * coretypes.h (union gimple_statement_d): Remove declaration.
5269 (gimple): Convert from being a "union gimple_statement_d *"
5270 to a "struct gimple_statement_base *".
5271 (const_gimple): Likewise (with "const").
5272 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5273 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5274 * gimple-pretty-print.c (debug): Change parameter from a
5275 "gimple_statement_d &" to a "gimple_statement_base &".
5276 (debug): Change parameter from a "gimple_statement_d *" to
5277 a "gimple_statement_base *".
5278 * gimple-pretty-print.h (debug): Update declarations as above.
5279 * gimple.c (gimple_alloc_stat): Update for renaming of
5280 ggc_alloc_cleared_gimple_statement_d_stat to
5281 ggc_alloc_cleared_gimple_statement_stat.
5282 * gimple.h: Include "is-a.h" for use by is_a_helper
5283 specializations in followup autogenerated patch.
5284 (struct gimple statement_base): Make this type usable as a base
5285 class by adding "desc", "tag" and "variable_size" to GTY, thus
5286 using opting-in to gengtype's support for simple inheritance.
5287 (gimple_statement_with_ops_base): Convert to a subclass of
5288 gimple_statement_base, dropping initial "gsbase" field. Note that
5289 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5290 (gimple_statement_with_ops): Convert to a subclass of
5291 gimple_statement_with_ops_base, dropping initial "opbase" field.
5292 Add tag value to GTY marking. Update marking of op field to
5293 reflect how num_ops field is accessed via inheritance.
5294 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5295 gimple_statement_with_ops_base, dropping initial "opbase" field.
5296 Add tag value to GTY marking.
5297 (gimple_statement_with_memory_ops): Convert to a subclass of
5298 public gimple_statement_with_memory_ops_base, dropping initial
5299 "membase" field. Add tag value to GTY marking. Update marking
5300 of op field to reflect how num_ops field is accessed via inheritance.
5301 (gimple_statement_call): Analogous changes that also update the
5302 marking of the "u" union.
5303 (gimple_statement_omp): Convert to a subclass of
5304 gimple_statement_base, dropping initial "gsbase" field, adding
5305 tag value to GTY marking.
5306 (gimple_statement_bind): Likewise.
5307 (gimple_statement_catch): Likewise.
5308 (gimple_statement_eh_filter): Likewise.
5309 (gimple_statement_eh_else): Likewise.
5310 (gimple_statement_eh_mnt): Likewise.
5311 (gimple_statement_phi): Likewise.
5312 (gimple_statement_eh_ctrl): Likewise.
5313 (gimple_statement_try): Likewise.
5314 (gimple_statement_wce): Likewise.
5315 (gimple_statement_asm): Convert to a subclass of
5316 gimple_statement_with_memory_ops_base, dropping initial
5317 "membase" field, adding tag value to GTY marking, and updating
5318 marking of op field.
5319 (gimple_statement_omp_critical): Convert to a subclass of
5320 gimple_statement_omp, dropping initial "omp" field, adding tag
5321 value to GTY marking.
5322 (gimple_statement_omp_for): Likewise.
5323 (gimple_statement_omp_parallel): Likewise.
5324 (gimple_statement_omp_task): Convert to a subclass of
5325 gimple_statement_omp_parallel, dropping initial "par" field,
5326 adding tag value to GTY marking.
5327 (gimple_statement_omp_sections): Convert to a subclass of
5328 gimple_statement_omp, dropping initial "omp" field, adding
5329 tag value to GTY marking.
5330 (gimple_statement_omp_continue): Convert to a subclass of
5331 gimple_statement_base, dropping initial "gsbase" field, adding
5332 tag value to GTY marking.
5333 (gimple_statement_omp_single): Convert to a subclass of
5334 gimple_statement_omp, dropping initial "omp" field, adding
5335 tag value to GTY marking.
5336 (gimple_statement_omp_atomic_load): Convert to a subclass of
5337 gimple_statement_base, dropping initial "gsbase" field, adding
5338 tag value to GTY marking.
5339 (gimple_statement_omp_atomic_store): Convert to a subclass of
5340 gimple_statement_base, dropping initial "gsbase" field, adding
5341 tag value to GTY marking.
5342 (gimple_statement_transaction): Convert to a subclass of
5343 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5344 field, adding tag value to GTY marking.
5345 (union gimple_statement_d): Remove.
5346 * system.h (CONST_CAST_GIMPLE): Update to use
5347 "struct gimple_statement_base *" rather than
5348 "union gimple_statement_d *".
5349 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5350 gimple_statement_d to gimple_statement_base.
5352 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5353 (gimple_set_use_ops): Port from union to usage of as_a.
5354 (gimple_set_vuse): Likewise.
5355 (gimple_set_vdef): Likewise.
5356 (gimple_call_internal_fn): Port from union to a static_cast,
5357 given that the type has already been asserted.
5358 (gimple_omp_body_ptr): Port from unchecked union usage to
5360 (gimple_omp_set_body): Likewise.
5362 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5363 gimple types to a true class hierarchy.
5364 (update_call_edge_frequencies): Likewise.
5365 (gsi_insert_seq_nodes_before): Likewise.
5366 (gsi_insert_seq_nodes_after): Likewise.
5367 (gsi_split_seq_after): Likewise.
5368 (gsi_set_stmt): Likewise.
5369 (gsi_split_seq_before): Likewise.
5370 (gsi_remove): Likewise.
5371 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5372 (gsi_next): Likewise.
5373 (gsi_prev): Likewise.
5374 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5375 * gimple-ssa.h (gimple_vuse_op): Likewise.
5376 (gimple_vdef_op): Likewise.
5377 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5378 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5379 * gimple.c (gimple_set_code): Likewise.
5380 (gimple_alloc_stat): Likewise.
5381 (gimple_set_subcode): Likewise.
5382 (gimple_build_call_internal_1): Likewise.
5383 (gimple_check_failed): Likewise.
5384 (gimple_call_flags): Likewise.
5385 (gimple_set_bb): Likewise.
5386 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5387 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5388 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5389 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5390 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5391 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5392 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5393 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5394 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5395 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5396 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5397 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5398 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5399 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5400 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5401 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5402 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5403 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5404 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5405 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5406 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5407 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5408 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5409 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5410 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5411 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5413 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5415 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5417 (is_a_helper <const gimple_statement_omp_atomic_store>
5418 (const_gimple)): Likewise.
5419 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5421 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5423 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5425 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5427 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5429 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5431 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5433 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5434 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5436 (gimple_seq_last): Update for conversion of gimple types to a true
5438 (gimple_seq_set_last): Likewise.
5439 (gimple_code): Likewise.
5440 (gimple_bb): Likewise.
5441 (gimple_block): Likewise.
5442 (gimple_set_block): Likewise.
5443 (gimple_location): Likewise.
5444 (gimple_location_ptr): Likewise.
5445 (gimple_set_location): Likewise.
5446 (gimple_no_warning_p): Likewise.
5447 (gimple_set_no_warning): Likewise.
5448 (gimple_set_visited): Likewise.
5449 (gimple_visited_p): Likewise.
5450 (gimple_set_plf): Likewise.
5451 (gimple_plf): Likewise.
5452 (gimple_set_uid): Likewise.
5453 (gimple_uid): Likewise.
5454 (gimple_init_singleton): Likewise.
5455 (gimple_modified_p): Likewise.
5456 (gimple_set_modified): Likewise.
5457 (gimple_expr_code): Likewise.
5458 (gimple_has_volatile_ops): Likewise.
5459 (gimple_set_has_volatile_ops): Likewise.
5460 (gimple_omp_subcode): Likewise.
5461 (gimple_omp_set_subcode): Likewise.
5462 (gimple_omp_return_set_nowait): Likewise.
5463 (gimple_omp_section_set_last): Likewise.
5464 (gimple_omp_parallel_set_combined_p): Likewise.
5465 (gimple_omp_atomic_set_need_value): Likewise.
5466 (gimple_omp_atomic_set_seq_cst): Likewise.
5467 (gimple_num_ops): Likewise.
5468 (gimple_set_num_ops): Likewise.
5469 (gimple_assign_nontemporal_move_p): Likewise.
5470 (gimple_assign_set_nontemporal_move): Likewise.
5471 (gimple_assign_rhs_code): Likewise.
5472 (gimple_assign_set_rhs_code): Likewise.
5473 (gimple_call_internal_p): Likewise.
5474 (gimple_call_with_bounds_p): Likewise.
5475 (gimple_call_set_with_bounds): Likewise.
5476 (gimple_call_set_tail): Likewise.
5477 (gimple_call_tail_p): Likewise.
5478 (gimple_call_set_return_slot_opt): Likewise.
5479 (gimple_call_return_slot_opt_p): Likewise.
5480 (gimple_call_set_from_thunk): Likewise.
5481 (gimple_call_from_thunk_p): Likewise.
5482 (gimple_call_set_va_arg_pack): Likewise.
5483 (gimple_call_va_arg_pack_p): Likewise.
5484 (gimple_call_set_nothrow): Likewise.
5485 (gimple_call_set_alloca_for_var): Likewise.
5486 (gimple_call_alloca_for_var_p): Likewise.
5487 (gimple_call_copy_flags): Likewise.
5488 (gimple_cond_code): Likewise.
5489 (gimple_cond_set_code): Likewise.
5490 (gimple_cond_make_false): Likewise.
5491 (gimple_cond_make_true): Likewise.
5492 (gimple_asm_volatile_p): Likewise.
5493 (gimple_asm_set_volatile): Likewise.
5494 (gimple_asm_set_input): Likewise.
5495 (gimple_asm_input_p): Likewise.
5496 (gimple_try_kind): Likewise.
5497 (gimple_try_set_kind): Likewise.
5498 (gimple_try_catch_is_cleanup): Likewise.
5499 (gimple_try_set_catch_is_cleanup): Likewise.
5500 (gimple_wce_cleanup_eh_only): Likewise.
5501 (gimple_wce_set_cleanup_eh_only): Likewise.
5502 (gimple_debug_bind_p): Likewise.
5503 (gimple_debug_source_bind_p): Likewise.
5504 (gimple_omp_for_set_kind): Likewise.
5505 (gimple_omp_for_set_combined_p): Likewise.
5506 (gimple_omp_for_set_combined_into_p): Likewise.
5507 (gimple_omp_target_set_kind): Likewise.
5508 (gimple_transaction_subcode): Likewise.
5509 (gimple_transaction_set_subcode): Likewise.
5510 (gimple_predict_predictor): Likewise.
5511 (gimple_predict_set_predictor): Likewise.
5512 (gimple_predict_outcome): Likewise.
5513 (gimple_predict_set_outcome): Likewise.
5514 (gimple_transaction_set_label): Likewise.
5515 (gimple_transaction_set_body): Likewise.
5516 (gimple_transaction_label_ptr): Likewise.
5517 (gimple_transaction_label): Likewise.
5518 (gimple_transaction_body_ptr): Likewise.
5519 (gimple_omp_continue_set_control_use): Likewise.
5520 (gimple_omp_continue_control_use_ptr): Likewise.
5521 (gimple_omp_continue_control_use): Likewise.
5522 (gimple_omp_continue_set_control_def): Likewise.
5523 (gimple_omp_continue_control_def_ptr): Likewise.
5524 (gimple_omp_continue_control_def): Likewise.
5525 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5526 (gimple_omp_atomic_load_rhs): Likewise.
5527 (gimple_omp_atomic_load_set_rhs): Likewise.
5528 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5529 (gimple_omp_atomic_load_lhs): Likewise.
5530 (gimple_omp_atomic_load_set_lhs): Likewise.
5531 (gimple_omp_atomic_store_val_ptr): Likewise.
5532 (gimple_omp_atomic_store_val): Likewise.
5533 (gimple_omp_atomic_store_set_val): Likewise.
5534 (gimple_omp_for_cond): Likewise.
5535 (gimple_omp_for_set_cond): Likewise.
5536 (gimple_omp_sections_set_control): Likewise.
5537 (gimple_omp_sections_control_ptr): Likewise.
5538 (gimple_omp_sections_control): Likewise.
5539 (gimple_omp_sections_set_clauses): Likewise.
5540 (gimple_omp_sections_clauses_ptr): Likewise.
5541 (gimple_omp_sections_clauses): Likewise.
5542 (gimple_omp_teams_set_clauses): Likewise.
5543 (gimple_omp_teams_clauses_ptr): Likewise.
5544 (gimple_omp_teams_clauses): Likewise.
5545 (gimple_omp_target_set_data_arg): Likewise.
5546 (gimple_omp_target_data_arg_ptr): Likewise.
5547 (gimple_omp_target_data_arg): Likewise.
5548 (gimple_omp_target_set_child_fn): Likewise.
5549 (gimple_omp_target_child_fn_ptr): Likewise.
5550 (gimple_omp_target_child_fn): Likewise.
5551 (gimple_omp_target_set_clauses): Likewise.
5552 (gimple_omp_target_clauses_ptr): Likewise.
5553 (gimple_omp_target_clauses): Likewise.
5554 (gimple_omp_single_set_clauses): Likewise.
5555 (gimple_omp_single_clauses_ptr): Likewise.
5556 (gimple_omp_single_clauses): Likewise.
5557 (gimple_omp_task_set_arg_align): Likewise.
5558 (gimple_omp_task_arg_align_ptr): Likewise.
5559 (gimple_omp_task_arg_align): Likewise.
5560 (gimple_omp_task_set_arg_size): Likewise.
5561 (gimple_omp_task_arg_size_ptr): Likewise.
5562 (gimple_omp_task_arg_size): Likewise.
5563 (gimple_omp_task_set_copy_fn): Likewise.
5564 (gimple_omp_task_copy_fn_ptr): Likewise.
5565 (gimple_omp_task_copy_fn): Likewise.
5566 (gimple_omp_task_set_data_arg): Likewise.
5567 (gimple_omp_task_data_arg_ptr): Likewise.
5568 (gimple_omp_task_data_arg): Likewise.
5569 (gimple_omp_task_set_child_fn): Likewise.
5570 (gimple_omp_task_child_fn_ptr): Likewise.
5571 (gimple_omp_task_child_fn): Likewise.
5572 (gimple_omp_task_set_clauses): Likewise.
5573 (gimple_omp_task_clauses_ptr): Likewise.
5574 (gimple_omp_task_clauses): Likewise.
5575 (gimple_omp_parallel_set_data_arg): Likewise.
5576 (gimple_omp_parallel_data_arg_ptr): Likewise.
5577 (gimple_omp_parallel_data_arg): Likewise.
5578 (gimple_omp_parallel_set_child_fn): Likewise.
5579 (gimple_omp_parallel_child_fn_ptr): Likewise.
5580 (gimple_omp_parallel_child_fn): Likewise.
5581 (gimple_omp_parallel_set_clauses): Likewise.
5582 (gimple_omp_parallel_clauses_ptr): Likewise.
5583 (gimple_omp_parallel_clauses): Likewise.
5584 (gimple_omp_for_set_pre_body): Likewise.
5585 (gimple_omp_for_pre_body_ptr): Likewise.
5586 (gimple_omp_for_set_incr): Likewise.
5587 (gimple_omp_for_incr_ptr): Likewise.
5588 (gimple_omp_for_incr): Likewise.
5589 (gimple_omp_for_set_final): Likewise.
5590 (gimple_omp_for_final_ptr): Likewise.
5591 (gimple_omp_for_final): Likewise.
5592 (gimple_omp_for_set_initial): Likewise.
5593 (gimple_omp_for_initial_ptr): Likewise.
5594 (gimple_omp_for_initial): Likewise.
5595 (gimple_omp_for_set_index): Likewise.
5596 (gimple_omp_for_index_ptr): Likewise.
5597 (gimple_omp_for_index): Likewise.
5598 (gimple_omp_for_collapse): Likewise.
5599 (gimple_omp_for_set_clauses): Likewise.
5600 (gimple_omp_for_clauses_ptr): Likewise.
5601 (gimple_omp_for_clauses): Likewise.
5602 (gimple_omp_critical_set_name): Likewise.
5603 (gimple_omp_critical_name_ptr): Likewise.
5604 (gimple_omp_critical_name): Likewise.
5605 (gimple_eh_dispatch_set_region): Likewise.
5606 (gimple_eh_dispatch_region): Likewise.
5607 (gimple_resx_set_region): Likewise.
5608 (gimple_resx_region): Likewise.
5609 (gimple_phi_set_arg): Likewise.
5610 (gimple_phi_arg): Likewise.
5611 (gimple_phi_set_result): Likewise.
5612 (gimple_phi_result_ptr): Likewise.
5613 (gimple_phi_result): Likewise.
5614 (gimple_phi_num_args): Likewise.
5615 (gimple_phi_capacity): Likewise.
5616 (gimple_wce_set_cleanup): Likewise.
5617 (gimple_wce_cleanup_ptr): Likewise.
5618 (gimple_try_set_cleanup): Likewise.
5619 (gimple_try_set_eval): Likewise.
5620 (gimple_try_cleanup_ptr): Likewise.
5621 (gimple_try_eval_ptr): Likewise.
5622 (gimple_eh_else_set_e_body): Likewise.
5623 (gimple_eh_else_set_n_body): Likewise.
5624 (gimple_eh_else_e_body_ptr): Likewise.
5625 (gimple_eh_else_n_body_ptr): Likewise.
5626 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5627 (gimple_eh_must_not_throw_fndecl): Likewise.
5628 (gimple_eh_filter_set_failure): Likewise.
5629 (gimple_eh_filter_set_types): Likewise.
5630 (gimple_eh_filter_failure_ptr): Likewise.
5631 (gimple_eh_filter_types_ptr): Likewise.
5632 (gimple_eh_filter_types): Likewise.
5633 (gimple_catch_set_handler): Likewise.
5634 (gimple_catch_set_types): Likewise.
5635 (gimple_catch_handler_ptr): Likewise.
5636 (gimple_catch_types_ptr): Likewise.
5637 (gimple_catch_types): Likewise.
5638 (gimple_asm_string): Likewise.
5639 (gimple_asm_set_label_op): Likewise.
5640 (gimple_asm_label_op): Likewise.
5641 (gimple_asm_set_clobber_op): Likewise.
5642 (gimple_asm_clobber_op): Likewise.
5643 (gimple_asm_set_output_op): Likewise.
5644 (gimple_asm_output_op_ptr): Likewise.
5645 (gimple_asm_output_op): Likewise.
5646 (gimple_asm_set_input_op): Likewise.
5647 (gimple_asm_input_op_ptr): Likewise.
5648 (gimple_asm_input_op): Likewise.
5649 (gimple_asm_nlabels): Likewise.
5650 (gimple_asm_nclobbers): Likewise.
5651 (gimple_asm_noutputs): Likewise.
5652 (gimple_asm_ninputs): Likewise.
5653 (gimple_bind_set_block): Likewise.
5654 (gimple_bind_block): Likewise.
5655 (gimple_bind_add_seq): Likewise.
5656 (gimple_bind_add_stmt): Likewise.
5657 (gimple_bind_set_body): Likewise.
5658 (gimple_bind_body_ptr): Likewise.
5659 (gimple_bind_append_vars): Likewise.
5660 (gimple_bind_set_vars): Likewise.
5661 (gimple_bind_vars): Likewise.
5662 (gimple_call_clobber_set): Likewise.
5663 (gimple_call_use_set): Likewise.
5664 (gimple_call_set_internal_fn): Likewise.
5665 (gimple_call_set_fntype): Likewise.
5666 (gimple_call_fntype): Likewise.
5667 (gimple_omp_return_lhs_ptr): Likewise.
5668 (gimple_omp_return_lhs): Likewise.
5669 (gimple_omp_return_set_lhs): Likewise.
5670 (gimple_omp_taskreg_set_data_arg): Likewise.
5671 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5672 (gimple_omp_taskreg_data_arg): Likewise.
5673 (gimple_omp_taskreg_set_child_fn): Likewise.
5674 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5675 (gimple_omp_taskreg_child_fn): Likewise.
5676 (gimple_omp_taskreg_set_clauses): Likewise.
5677 (gimple_omp_taskreg_clauses_ptr): Likewise.
5678 (gimple_omp_taskreg_clauses): Likewise.
5679 (gimple_vuse): Likewise.
5680 (gimple_vdef): Likewise.
5681 (gimple_vuse_ptr): Likewise.
5682 (gimple_vdef_ptr): Likewise.
5683 * tree-inline.c (copy_debug_stmt): Likewise.
5684 * tree-phinodes.c (make_phi_node): Likewise.
5686 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5687 (is_a_helper <gimple_statement_with_ops>::test): New.
5688 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5689 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5691 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5692 access to use of as_a.
5693 * gimple.c (gimple_build_asm_1): Likewise.
5694 (gimple_build_try): Likewise. Also, return a specific subclass
5695 rather than just gimple.
5696 (gimple_build_resx): Port from union access to use of as_a.
5697 (gimple_build_eh_dispatch): Likewise.
5698 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5699 now that gengtype no longer provides a typed allocator function.
5700 (gimple_copy): Likewise.
5701 * gimple.h (gimple_build_try): Return a specific subclass rather
5703 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5704 with subclass access by making use of new return type of
5706 * tree-phinodes.c: (allocate_phi_node): Return a
5707 "gimple_statement_phi *" rather than just a gimple.
5708 (resize_phi_node): Likewise.
5709 (make_phi_node): Replace union access with subclass access by
5710 making use of new return type of allocate_phi_node.
5711 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5712 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5714 (remove_phi_args): Update for change to remove_phi_arg_num.
5716 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5717 code field to reflect inheritance, rather than embedding of
5718 the base gimple type.
5720 2013-11-19 Richard Biener <rguenther@suse.de>
5722 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5723 and destructor and make fel_next a member function.
5724 (fel_next): Transform into ...
5725 (loop_iterator::next): ... this.
5726 (fel_init): Transform into ...
5727 (loop_iterator::loop_iterator): ... this.
5728 (loop_iterator::~loop_iterator): New.
5729 (FOR_EACH_LOOP): Remove loop-iterator argument.
5730 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5731 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5732 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5733 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5734 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5735 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5736 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5737 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5738 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5739 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5740 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5741 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5742 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5743 FOR_EACH_LOOP_BREAK with break.
5745 2013-11-19 Richard Biener <rguenther@suse.de>
5747 PR tree-optimization/59164
5748 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5750 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5751 whether we can create an epilogue loop to reflect thecases where
5754 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5756 * graphite-sese-to-poly.c: Include expr.h.
5758 2013-11-19 Richard Biener <rguenther@suse.de>
5761 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5762 loads into stmts that may clobber it.
5764 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5766 * cgraphunit.c (symtab_terminator): New variable.
5767 (queued_nodes): Renamed from first. Use symtab_terminator as
5769 (analyze_functions): Adjust accordingly.
5770 (cgraph_process_new_functions): Return void.
5771 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5773 2013-11-19 Marek Polacek <polacek@redhat.com>
5775 * opts.c (common_handle_option): Add -fsanitize=null option.
5776 Turn off -fdelete-null-pointer-checks option when doing the
5777 NULL pointer checking.
5778 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5779 * tree-pass.h (make_pass_ubsan): Declare.
5780 (make_pass_sanopt): Declare.
5781 * timevar.def (TV_TREE_UBSAN): New timevar.
5782 * passes.def: Add pass_sanopt and pass_ubsan.
5783 * ubsan.h (ubsan_null_ckind): New enum.
5784 (ubsan_mismatch_data): New struct.
5785 (ubsan_expand_null_ifn): Declare.
5786 (ubsan_create_data): Adjust declaration.
5787 (ubsan_type_descriptor): Likewise.
5788 * asan.c: Include "ubsan.h".
5789 (pass_data_sanopt): New pass.
5790 (execute_sanopt): New function.
5791 (gate_sanopt): Likewise.
5792 (make_pass_sanopt): Likewise.
5793 (class pass_sanopt): New class.
5794 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5795 gimple-iterator.h and cfgloop.h.
5796 (PROB_VERY_UNLIKELY): Define.
5797 (tree_type_map_hash): New function.
5798 (ubsan_type_descriptor): Add new parameter.
5799 Improve type name generation.
5800 (ubsan_create_data): Add new parameter. Add pointer data into
5802 (ubsan_expand_null_ifn): New function.
5803 (instrument_member_call): Likewise.
5804 (instrument_mem_ref): Likewise.
5805 (instrument_null): Likewise.
5806 (ubsan_pass): Likewise.
5807 (gate_ubsan): Likewise.
5808 (make_pass_ubsan): Likewise.
5809 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5810 (class pass_ubsan): New class.
5811 (pass_data_ubsan): New pass.
5812 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5813 * internal-fn.c (expand_UBSAN_NULL): New function.
5814 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5815 even when !flag_toplevel_reorder.
5816 * internal-fn.def (UBSAN_NULL): New.
5818 2013-11-19 Jan Hubicka <jh@suse.cz>
5820 * cgraph.c (cgraph_create_indirect_edge): Use
5821 get_polymorphic_call_info.
5822 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5823 maybe_in_construction and maybe_derived_type.
5824 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5825 (ipa_dummy_polymorphic_call_context): New global var.
5826 (possible_polymorphic_call_targets): Add context paramter.
5827 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5828 (possible_polymorphic_call_target_p): Likewise.
5829 (get_polymorphic_call_info): New function.
5830 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5831 (add_type_duplicate): Remove forgotten debug output.
5832 (method_class_type): Add sanity check.
5833 (maybe_record_node): Add FINALP parameter.
5834 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5835 by info by get_binfo_at_offset.
5836 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5837 parameters; pass them to record-binfo.
5838 (polymorphic_call_target_d): Add context and FINAL.
5839 (polymorphic_call_target_hasher::hash): Hash context.
5840 (polymorphic_call_target_hasher::equal): Compare context.
5841 (free_polymorphic_call_targets_hash):
5842 (get_class_context): New function.
5843 (contains_type_p): New function.
5844 (get_polymorphic_call_info): New function.
5845 (walk_bases): New function.
5846 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5847 (dump_possible_polymorphic_call_targets): Dump context.
5848 (possible_polymorphic_call_target_p): Add context.
5849 (update_type_inheritance_graph): Update comment.s
5850 (ipa_set_jf_known_type): Assert that compoentn type is known.
5851 (ipa_note_param_call): Do not tamper with offsets.
5852 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5854 (update_indirect_edges_after_inlining): Likewise.
5855 (ipa_write_indirect_edge_info): Stream new fields.
5856 (ipa_read_indirect_edge_info): Stream in new fields.
5858 2013-11-19 Jan Hubicka <jh@suse.cz>
5860 * tree-pretty-print.c (dump_generic_node): Print class type of
5863 2013-11-19 Joey Ye <joey.ye@arm.com>
5865 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5866 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5868 * config/arm/arm.c (arm_option_override): By default disable
5869 -marm-pic-data-is-text-relative.
5870 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5871 (arm_assemble_integer): Likewise.
5872 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5873 New macro to initialize -marm-pic-data-is-text-relative.
5875 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5877 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5878 (address_cost_data): New field.
5879 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5880 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5882 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5884 * config/aarch64/aarch64.md: Remove v8type from all insns.
5886 2013-11-19 Richard Biener <rguenther@suse.de>
5888 PR tree-optimization/57517
5889 * tree-predcom.c (combinable_refs_p): Verify the combination
5890 is always executed when the refs are.
5892 2013-11-19 Jeff Law <law@redhat.com>
5894 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5895 (copy_phi_arg_into_existing_phi): New function.
5896 (any_remaining_duplicated_blocks): Likewise.
5897 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5898 blocks on a jump threading path.
5900 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5901 thread through a joiner which has the latch edge.
5903 2013-11-19 Jan Hubicka <jh@suse.cz>
5905 * md.texi (setmem): Document new parameter.
5906 * optabs.c (maybe_gen_insn): Support 9 operands.
5907 * builtins.c (determine_block_size): Add probable_max_size;
5908 support anti-ranges.
5909 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5911 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5912 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5914 * expr.h (emit_block_move_hints, clear_storage_hints,
5915 set_storage_via_setmem): Update prototype.
5916 * i386.md (setmem, movmem patterns): Add 9th operand.
5917 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5918 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5919 argument; pass it to decide_alg.
5921 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5923 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5924 (n_basic_blocks_for_fn): ...this.
5926 (n_basic_blocks): Eliminate macro as work towards making uses of
5929 * cfgloop.c (init_loops_structure): Update for renaming of
5930 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5931 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5932 * ipa-utils.c (ipa_merge_profiles): Likewise.
5933 * lto-streamer-in.c (make_new_block): Likewise.
5934 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5935 (dump_function_to_file): Likewise.
5937 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5938 macro with "n_basic_blocks_for_fn (cfun)".
5939 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5940 (duplicate_computed_gotos): Likewise.
5941 (reorder_basic_blocks): Likewise.
5942 * bt-load.c (augment_live_range): Likewise.
5943 * cfg.c (expunge_block): Likewise.
5944 (compact_blocks): Likewise.
5945 * cfganal.c (single_pred_before_succ_order): Likewise.
5946 (compute_idf): Likewise.
5947 (flow_dfs_compute_reverse_init): Likewise.
5948 (pre_and_rev_post_order_compute): Likewise.
5949 (pre_and_rev_post_order_compute_fn): Likewise.
5950 (inverted_post_order_compute): Likewise.
5951 (post_order_compute): Likewise.
5952 (print_edge_list): Likewise.
5953 (find_unreachable_blocks): Likewise.
5954 (mark_dfs_back_edges): Likewise.
5955 * cfgcleanup.c (try_optimize_cfg): Likewise.
5956 (try_forward_edges): Likewise.
5957 * cfghooks.c (dump_flow_info): Likewise.
5958 * cfgloop.c (verify_loop_structure): Likewise.
5959 (get_loop_body): Likewise.
5960 (flow_loops_find): Likewise.
5961 * cfgloopmanip.c (add_loop): Likewise.
5962 (remove_path): Likewise.
5963 (find_path): Likewise.
5964 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5965 (rtl_verify_bb_layout): Likewise.
5966 (entry_of_function): Likewise.
5967 (rtl_create_basic_block): Likewise.
5968 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5969 * cprop.c (one_cprop_pass): Likewise.
5970 (is_too_expensive): Likewise.
5971 * df-core.c (df_compute_cfg_image): Likewise.
5972 (df_compact_blocks): Likewise.
5973 (df_worklist_dataflow_doublequeue): Likewise.
5974 * dominance.c (calculate_dominance_info): Likewise.
5975 (calc_dfs_tree): Likewise.
5976 (calc_dfs_tree_nonrec): Likewise.
5977 (init_dom_info): Likewise.
5978 * domwalk.c (cmp_bb_postorder): Likewise.
5979 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5980 (generate_setjmp_warnings): Likewise.
5981 * fwprop.c (build_single_def_use_links): Likewise.
5982 * gcse.c (is_too_expensive): Likewise.
5983 (one_code_hoisting_pass): Likewise.
5984 (one_pre_gcse_pass): Likewise.
5985 * graphite.c (graphite_initialize): Likewise.
5986 * haifa-sched.c (haifa_sched_init): Likewise.
5987 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5988 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5989 * ira-build.c (ira_build): Likewise.
5990 * lcm.c (compute_nearerout): Likewise.
5991 (compute_available): Likewise.
5992 (compute_laterin): Likewise.
5993 (compute_antinout_edge): Likewise.
5994 * lra-lives.c (lra_create_live_ranges): Likewise.
5995 * lra.c (has_nonexceptional_receiver): Likewise.
5996 * mcf.c (create_fixup_graph): Likewise.
5997 * profile.c (branch_prob): Likewise.
5998 * reg-stack.c (convert_regs_2): Likewise.
5999 * regrename.c (regrename_analyze): Likewise.
6000 * reload1.c (has_nonexceptional_receiver): Likewise.
6001 * reorg.c (dbr_schedule): Likewise.
6002 * sched-deps.c (sched_deps_init): Likewise.
6003 * sched-ebb.c (schedule_ebbs): Likewise.
6004 * sched-rgn.c (extend_regions): Likewise.
6005 (schedule_insns): Likewise.
6006 (sched_rgn_init): Likewise.
6007 (extend_rgns): Likewise.
6008 (haifa_find_rgns): Likewise.
6009 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6010 (sel_recompute_toporder): Likewise.
6011 * sel-sched.c (run_selective_scheduling): Likewise.
6012 * store-motion.c (one_store_motion_pass): Likewise.
6013 (remove_reachable_equiv_notes): Likewise.
6014 * tracer.c (tracer): Likewise.
6015 (tail_duplicate): Likewise.
6016 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6017 (dump_cfg_stats): Likewise.
6018 (gimple_dump_cfg): Likewise.
6019 (create_bb): Likewise.
6020 (build_gimple_cfg): Likewise.
6021 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6022 * tree-inline.c (optimize_inline_calls): Likewise.
6023 (fold_marked_statements): Likewise.
6024 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6025 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6026 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6027 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6028 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6029 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6030 * tree-ssa-pre.c (do_pre): Likewise.
6031 (init_pre): Likewise.
6032 (compute_avail): Likewise.
6033 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6034 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6035 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6036 (init_worklist): Likewise.
6037 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6038 * var-tracking.c (variable_tracking_main_1): Likewise.
6039 (vt_find_locations): Likewise.
6040 (vt_stack_adjustments): Likewise.
6041 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6042 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6044 2013-11-18 Jan Hubicka <jh@suse.cz>
6046 * profile.c (compute_branch_probabilities): Do not sanity check
6049 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6051 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6053 * fold-const.c (fold_single_bit_test_into_sign_test)
6054 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6056 2013-11-18 Teresa Johnson <tejohnson@google.com>
6058 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6059 cfglayout after bb reordering.
6060 * passes.def: Move compgotos before bb reordering since it goes into
6063 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6065 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6066 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6068 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6069 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6070 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6071 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6072 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6073 Remove all_lto_gen_passes.
6074 * passes.c (pass_manager::dump_passes): Remove its use.
6075 (pass_manager::register_pass): Likewise.
6076 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6077 (pass_manager::pass_manager): Don't initialize or use it.
6078 (write_lto): New static function.
6079 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6080 instead of using all_lto_gen_passes.
6081 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6082 pass_ipa_lto_finish_out): Delete.
6083 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6084 make_pass_ipa_lto_finish_out): Don't declare.
6086 2013-11-18 Jeff Law <law@redhat.com>
6088 * tree-ssa-threadupdate.c (redirection_data): Record two
6089 duplicated blocks instead of just one.
6090 (local_info): Explain why we don't create a template for the
6091 second duplicated block in a thread path.
6092 (create_block_for_threading): Accept argument indicating array
6093 index into redirection_data to store its result.
6094 (lookup_redirection_data): Initialize both duplicate blocks.
6095 (ssa_create_duplicates): If a jump threading path needs multiple
6096 blocks duplicated, then duplicate them.
6097 (ssa_fix_duplicate_block_edges): Corresponding changes.
6098 (ssa_fixup_template_block, thread_single_edge): Likewise.
6100 2013-11-18 Marek Polacek <polacek@redhat.com>
6102 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6104 2013-11-18 Andrew Pinski <apinski@cavium.com>
6105 Steve Ellcey <sellcey@mips.com>
6108 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6109 type restriction from equality_operator on conditonal move.
6110 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6111 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6113 2013-11-18 Jeff Law <law@redhat.com>
6115 * tree-ssa-threadupdate.c: Fix file block comment.
6116 Fix minor indention issue.
6118 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6120 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6121 ix86_address_subreg_operand. Move subreg checks to
6122 ix86_validate_address_register. Move address override check to
6123 ix86_legitimate_address_p.
6124 (ix86_validate_address_register): New function.
6125 (ix86_legitimate_address_p): Call ix86_validate_address_register
6126 to validate base and index registers. Add address override check
6127 from ix86_decompose_address.
6128 (ix86_decompose_address): Remove.
6130 2013-11-18 Richard Biener <rguenther@suse.de>
6132 PR tree-optimization/59125
6133 PR tree-optimization/54570
6134 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6135 is not complete do not treat component-references with offset zero
6136 but different fields as equal.
6137 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6138 (compute_object_sizes): Apply TLC. Propagate the constant
6139 results into all uses and fold their stmts.
6140 * passes.def (pass_all_optimizations): Move pass_object_sizes
6141 after the first pass_forwprop and before pass_fre.
6143 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6145 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6146 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6147 (tree_ctz): Remove cast to unsigned type.
6148 * builtins.c (fold_builtin_memory_op): Likewise.
6149 * dwarf2out.c (descr_info_loc): Likewise.
6150 * godump.c (go_output_typedef): Likewise.
6151 * omp-low.c (expand_omp_simd): Likewise.
6152 * stor-layout.c (excess_unit_span): Likewise.
6153 * tree-object-size.c (addr_object_size): Likewise.
6154 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6155 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6156 (simplify_rotate): Likewise.
6157 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6158 (handle_pointer_plus): Likewise.
6159 * tree-switch-conversion.c (check_range): Likewise.
6160 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6161 * tsan.c (instrument_builtin_call): Likewise.
6162 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6163 * trans-mem.c (tm_log_add): Likewise.
6164 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6165 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6166 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6167 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6169 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6171 * tree.h (host_integerp, tree_low_cst): Delete.
6172 * tree.c (host_integerp, tree_low_cst): Delete.
6174 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6176 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6178 * fold-const.c (fold_binary_loc): Likewise.
6179 * expr.c (store_constructor): Use tree_to_uhwi rather than
6181 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6182 * stmt.c (emit_case_dispatch_table): Likewise.
6183 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6185 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6187 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6188 config/aarch64/aarch64.c, config/alpha/predicates.md,
6189 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6190 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6191 config/mep/mep-pragma.c, config/mips/mips.c,
6192 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6193 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6194 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6195 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6196 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6197 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6198 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6199 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6200 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6201 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6203 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6205 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6206 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6207 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6208 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6209 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6210 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6211 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6212 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6213 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6214 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6215 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6217 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6219 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6220 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6222 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6224 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6227 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6229 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6230 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6231 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6232 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6233 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6234 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6235 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6236 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6237 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6238 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6239 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6240 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6241 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6242 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6243 tree_fits_uhwi_p throughout.
6245 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6247 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6248 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6249 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6250 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6251 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6252 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6253 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6254 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6255 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6256 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6257 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6258 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6259 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6262 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6264 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6265 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6267 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6269 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6270 flag if it kills its address, not its post-increment.
6272 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6274 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6275 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6276 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6277 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6278 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6279 (gimple_call_with_bounds_p): New.
6280 (gimple_call_set_with_bounds): New.
6281 (gimple_call_num_nobnd_args): Remove.
6282 (gimple_call_nobnd_arg): Remove.
6283 * tree.h (CALL_WITH_BOUNDS_P): New.
6284 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6286 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6288 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6289 (symtab_node_name): Rename to symtab_node::name.
6290 (cgraph_node_asm_name): Remove.
6291 (varpool_node_asm_name): Remove.
6292 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6293 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6294 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6295 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6296 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6298 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6300 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6301 * config/arm/arm.c (arm_cortex_a53_tune): New.
6302 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6304 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6306 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6307 (case ${target}): Add bdver4.
6308 * config/i386/bdver3.md: Add bdver4.
6309 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6310 -march=native recognize bdver4 processors.
6311 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6312 bdver4 def_and_undef
6313 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6314 (m_BDVER4): New definition.
6315 (m_AMD_MULTIPLE): Includes m_BDVER4.
6316 (processor_target_table): Add bdver4 entry.
6317 (static const char *const cpu_names): Add bdver4 entry.
6318 (software_prefetching_beneficial_p): Add bdver3.
6319 (ix86_option_override_internal): Add bdver4 instruction sets.
6320 (ix86_issue_rate): Add bdver4.
6321 (ix86_adjust_cost): Add bdver4.
6322 (ia32_multipass_dfa_lookahead): Add bdver4.
6323 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6324 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6325 (has_dispatch): Add bdver4.
6326 * config/i386/i386.h (TARGET_BDVER4): New definition.
6327 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6328 (enum processor_type): Add PROCESSOR_BDVER4.
6329 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6330 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6331 * doc/extend.texi: Add details about bdver4.
6332 * doc/invoke.texi: Add details about bdver4. Add
6333 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6335 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6337 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6338 sdmode_stack_slot also in little-endian mode.
6340 2013-11-17 Jan Hubicka <jh@suse.cz>
6342 * doc/md.texi (setmem, movstr): Update documentation.
6343 * builtins.c (determine_block_size): New function.
6344 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6345 (expand_builtin_memset_args): Use it and pass it to
6346 set_storage_via_setmem.
6347 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6348 parameters; update call to expander.
6349 (emit_block_move_hints): Add min_size/max_size parameters.
6350 (clear_storage_hints): Likewise.
6351 (set_storage_via_setmem): Likewise.
6352 (clear_storage): Update.
6353 * expr.h (emit_block_move_hints, clear_storage_hints,
6354 set_storage_via_setmem): Update prototypes.
6355 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6356 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6357 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6358 * i386.md (movmem, setmem): Pass parameters.
6360 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6363 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6364 reject non-integer subregs.
6365 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6366 Move check for invalid x32 constant addresses ...
6367 (ix86_legitimate_address_p): ... here.
6369 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6371 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6372 parameter and use it in REG_FRAME_RELATED_EXPR note.
6373 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6375 (rs6000_emit_prologue): Likewise, but for little endian VSX
6376 stores, pass the source register of the store instead.
6378 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6380 * gimple.h: Reorder prototypes to match .c declaration order, and
6381 remove protyotypes for functions not in gimple.c.
6382 (LABEL): Move to tree-into-ssa.c.
6383 * gimple.c: Remove unused prototypes.
6384 (get_base_address): Move to tree.c.
6385 * tree.c (get_base_address): Relocate from gimple.c.
6386 * builtins.h (validate_gimple_arglist): Add prototype.
6387 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6388 * cfgexpand.h: New File.
6389 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6390 * tree.h (build_addr): Move to tree-nested.h.
6391 * tree-nested.h: New File.
6392 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6394 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6395 * ipa-inline-analysis.c: Include cfgexpand.h.
6396 * cgraphunit.c: Include tree-nested.h.
6397 * omp-low.c: Likewise.
6398 * tree-parloops.c: Likewise.
6399 * gimple-low.h: Likewise.
6400 * tree-profile.h: Likewise.
6401 * expr.c: Include cfgexpand.h.
6402 * tree-affine.c: Likewise.
6403 * tree-ssa.c: Likewise.
6404 * tree-ssa-loop-im.c: Include trans-mem.h.
6405 * tree-ssa-tail-merge.c: Likewise.
6406 * value-prof.c: Include builtins.h and tree-nested.h.
6407 * tree-into-ssa.c (LABEL): Define here.
6409 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6411 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6412 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6413 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6414 (make_pass_arc_predicate_delay_insns): New function.
6415 (arc_init): Register pass_arc_predicate_delay_insns if
6416 flag_delayed_branch is active.
6418 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6420 * config/arc/constraints.md (Rcq): Simplify register number test.
6422 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6424 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6426 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6428 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6431 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6433 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6434 * gimple-pretty-print.c (dump_omp_for): Add case for
6435 GF_OMP_FOR_KIND_CILKSIMD.
6436 * gimple.h (enum gf_mask): Restructure entries to add
6437 GF_OMP_FOR_KIND_CILKSIMD.
6438 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6439 (gimplify_omp_for): Handle CILK_SIMD.
6440 (gimplify_expr): Add ccase for CILK_SIMD.
6441 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6442 (build_outer_var_ref): Same.
6443 (check_omp_nesting_restrictions): Same.
6444 (lower_rec_input_clauses): Same.
6445 (lower_lastprivate_clauses): Same.
6446 (expand_omp_for): Same.
6447 (execute_expand_omp): Check flag_enable_cilkplus.
6448 (execute_lower_omp): Same.
6449 (diagnose_sb_0): Handle CILK_SIMD.
6450 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6451 (setjmp_or_longjmp_p): New.
6452 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6453 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6454 * tree.def: Add tree code for CILK_SIMD.
6456 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6458 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6460 (altivec_vperm_<mode>): Revert earlier little endian change.
6461 (*altivec_vperm_<mode>_internal): Remove.
6462 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6463 (*altivec_vperm_<mode>_uns_internal): Remove.
6464 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6466 2013-11-15 Jeff Law <law@redhat.com>
6468 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6469 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6470 * gimple-ssa-isolate-paths.c
6471 (find_implicit_erroneous_behaviour): Corresponding changes.
6472 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6473 (find_explicit_erroneous_behaviour): Likewise.
6475 2013-11-15 Jeff Law <law@redhat.com>
6477 * ifcvt.c (find_cond_trap): Properly handle case where
6480 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6482 * configure: Regenerate.
6484 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6486 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6487 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6488 where it is incorrect or missing.
6490 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6492 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6494 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6495 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6497 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6498 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6499 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6501 2013-11-15 Richard Biener <rguenther@suse.de>
6503 PR tree-optimization/50262
6504 * tree-ssa-alias.h (struct pt_solution): Split
6505 vars_contains_global into vars_contains_nonlocal,
6506 vars_contains_escaped and vars_contains_escaped_heap.
6507 * tree-ssa-structalias.c (label_visit): Expand comment.
6508 (handle_lhs_call): Adjust comment.
6509 (set_uids_in_ptset): Set the new flags appropriately.
6510 (pt_solution_set): Adjust.
6511 (pt_solution_set_var): Likewise.
6512 (pt_solution_ior_into): Likewise.
6513 (pt_solution_includes_global): Likewise.
6514 (pt_solutions_intersect_1): Optimize escaped handling.
6515 (compute_points_to_sets): Remove heap variable globalization.
6516 (ipa_escaped_pt): Adjust initializer.
6517 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6518 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6519 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6521 2013-11-15 Richard Biener <rguenther@suse.de>
6523 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6524 to distribute all stores.
6526 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6528 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6530 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6532 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6533 * configure.ac: Determine target_header_dir earlier.
6534 (--with-glibc-version): New configure option.
6535 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6536 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6537 * configure: Regenerate.
6538 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6539 native toolchains for default.
6540 (--with-glibc-version): Document.
6542 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6544 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6546 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6548 * lto-streamer-in.c (input function): Call cgraph_create_node if
6549 cgraph_get_node failed.
6551 2013-11-14 Olivier Hainque <hainque@adacore.com>
6553 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6554 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6555 small. Factorize size threshold computation from the existing one.
6556 (expand_used_vars): Refine comment.
6558 2013-11-14 Cong Hou <congh@google.com>
6560 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6561 address field as it can be obtained from dr. Rename the struct.
6562 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6563 steps of data references during sort.
6564 (vect_prune_runtime_alias_test_list): Adjust with the change to
6565 struct dr_with_seg_len.
6566 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6567 Adjust with the change to struct dr_with_seg_len.
6569 2013-11-14 Jeff Law <law@redhat.com>
6572 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6573 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6574 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6575 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6576 edges, then ignore it. If the statement exhibiting erroneous
6577 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6578 then we can not optimize.
6579 (find_explicit_erroneous_behaviour): Likewise.
6581 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6583 * gimplify-me.h: New file. Add prototypes.
6584 * gimplify.h: Don't include gimple.h.
6585 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6586 Relocate from gimple.h.
6587 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6588 is_gimple_sizepos): Move to gimplify.h.
6589 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6590 (enum gsi_iterator_update): Move to gimple-iterator.h.
6591 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6592 * gimplify-me.c: New File.
6593 (force_gimple_operand_1, force_gimple_operand,
6594 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6595 gimple_regimplify_operands): Relocate from gimplify.c.
6596 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6597 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6598 gimple_regimplify_operands): Move to gimplify-me.c.
6599 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6601 * Makefile.in (OBJS): Add gimplify-me.o
6602 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6604 * cfgloopmanip.c: Likewise.
6605 * cgraphunit.c: Likewise.
6606 * cilk-common.c: Likewise.
6607 * fold-const.c: Likewise.
6608 * function.c: Likewise.
6609 * gimple-expr.c: Likewise.
6610 * gimple-fold.c: Likewise.
6611 * gimple-ssa-strength-reduction.c: Likewise.
6612 * gimple.c: Likewise.
6613 * graphite-clast-to-gimple.c: Likewise.
6614 * graphite-sese-to-poly.c: Likewise.
6615 * ipa-prop.c: Likewise.
6616 * ipa-split.c: Likewise.
6618 * langhooks.c: Likewise.
6619 * omp-low.c: Likewise.
6621 * stor-layout.c: Likewise.
6622 * targhooks.c: Likewise.
6623 * trans-mem.c: Likewise.
6624 * tree-affine.c: Likewise.
6625 * tree-cfg.c: Likewise.
6626 * tree-cfgcleanup.c: Likewise.
6627 * tree-complex.c: Likewise.
6628 * tree-if-conv.c: Likewise.
6629 * tree-inline.c: Likewise.
6630 * tree-loop-distribution.c: Likewise.
6631 * tree-nested.c: Likewise.
6632 * tree-parloops.c: Likewise.
6633 * tree-predcom.c: Likewise.
6634 * tree-profile.c: Likewise.
6635 * tree-scalar-evolution.c: Likewise.
6636 * tree-sra.c: Likewise.
6637 * tree-ssa-address.c: Likewise.
6638 * tree-ssa-ccp.c: Likewise.
6639 * tree-ssa-dce.c: Likewise.
6640 * tree-ssa-forwprop.c: Likewise.
6641 * tree-ssa-ifcombine.c: Likewise.
6642 * tree-ssa-loop-im.c: Likewise.
6643 * tree-ssa-loop-ivopts.c: Likewise.
6644 * tree-ssa-loop-manip.c: Likewise.
6645 * tree-ssa-loop-niter.c: Likewise.
6646 * tree-ssa-loop-prefetch.c: Likewise.
6647 * tree-ssa-loop-unswitch.c: Likewise.
6648 * tree-ssa-math-opts.c: Likewise.
6649 * tree-ssa-phiopt.c: Likewise.
6650 * tree-ssa-phiprop.c: Likewise.
6651 * tree-ssa-pre.c: Likewise.
6652 * tree-ssa-propagate.c: Likewise.
6653 * tree-ssa-reassoc.c: Likewise.
6654 * tree-ssa-sccvn.c: Likewise.
6655 * tree-ssa-strlen.c: Likewise.
6656 * tree-ssa.c: Likewise.
6657 * tree-switch-conversion.c: Likewise.
6658 * tree-tailcall.c: Likewise.
6659 * tree-vect-data-refs.c: Likewise.
6660 * tree-vect-generic.c: Likewise.
6661 * tree-vect-loop-manip.c: Likewise.
6662 * tree-vect-loop.c: Likewise.
6663 * tree-vect-patterns.c: Likewise.
6664 * tree-vect-stmts.c: Likewise.
6667 * value-prof.c: Likewise.
6668 * config/aarch64/aarch64.c: Likewise.
6669 * config/alpha/alpha.c: Likewise.
6670 * config/darwin.c: Likewise.
6671 * config/i386/i386.c: Likewise.
6672 * config/ia64/ia64.c: Likewise.
6673 * config/mep/mep.c: Likewise.
6674 * config/mips/mips.c: Likewise.
6675 * config/rs6000/rs6000.c: Likewise.
6676 * config/s390/s390.c: Likewise.
6677 * config/sh/sh.c: Likewise.
6678 * config/sparc/sparc.c: Likewise.
6679 * config/spu/spu.c: Likewise.
6680 * config/stormy16/stormy16.c: Likewise.
6681 * config/tilegx/tilegx.c: Likewise.
6682 * config/tilepro/tilepro.c: Likewise.
6683 * config/xtensa/xtensa.c: Likewise.
6685 2013-11-14 Diego Novillo <dnovillo@google.com>
6687 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6689 2013-11-14 Diego Novillo <dnovillo@google.com>
6691 * tree.h: Include fold-const.h.
6692 (aggregate_value_p): Moved to function.h.
6693 (alloca_call_p): Moved to calls.h.
6694 (allocate_struct_function): Moved to function.h.
6695 (apply_tm_attr): Moved to attribs.h.
6696 (array_at_struct_end_p): Moved to expr.h.
6697 (array_ref_element_size): Moved to tree-dfa.h.
6698 (array_ref_low_bound): Moved to tree-dfa.h.
6699 (array_ref_up_bound): Moved to tree.h.
6700 (assemble_alias): Moved to cgraph.h.
6701 (bit_from_pos): Moved to stor-layout.h.
6702 (build_addr): Moved to tree-nested.h.
6703 (build_duplicate_type): Moved to tree-inline.h.
6704 (build_fold_addr_expr): Moved to fold-const.h.
6705 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6706 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6707 (build_fold_indirect_ref): Moved to fold-const.h.
6708 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6709 (build_personality_function): Moved to tree.h.
6710 (build_range_check): Moved to fold-const.h.
6711 (build_simple_mem_ref): Moved to fold-const.h.
6712 (build_simple_mem_ref_loc): Moved to fold-const.h.
6713 (build_tm_abort_call): Moved to trans-mem.h.
6714 (byte_from_pos): Moved to stor-layout.h.
6715 (call_expr_flags): Moved to calls.h.
6716 (can_move_by_pieces): Moved to expr.h.
6717 (categorize_ctor_elements): Moved to expr.h.
6718 (change_decl_assembler_name): Moved to gcc-symtab.h.
6719 (combine_comparisons): Moved to fold-const.h.
6720 (complete_ctor_at_level_p): Moved to tree.h.
6721 (component_ref_field_offset): Moved to tree-dfa.h.
6722 (compute_builtin_object_size): Moved to tree-object-size.h.
6723 (compute_record_mode): Moved to stor-layout.h.
6724 (constant_boolean_node): Moved to fold-const.h.
6725 (constructor_static_from_elts_p): Moved to varasm.h.
6726 (cxx11_attribute_p): Moved to attribs.h.
6727 (debug_body): Moved to print-tree.h.
6728 (debug_find_tree): Moved to tree-inline.h.
6729 (debug_fold_checksum): Moved to fold-const.h.
6730 (debug_head): Moved to print-tree.h.
6731 (debug_head): Moved to print-tree.h.
6732 (debug_raw): Moved to print-tree.h.
6733 (debug_tree): Moved to print-tree.h.
6734 (debug_vec_tree): Moved to print-tree.h.
6735 (debug_verbose): Moved to print-tree.h.
6736 (debug_verbose): Moved to print-tree.h.
6737 (decl_attributes): Moved to attribs.h.
6738 (decl_binds_to_current_def_p): Moved to varasm.h.
6739 (decl_default_tls_model): Moved to varasm.h.
6740 (decl_replaceable_p): Moved to varasm.h.
6741 (div_if_zero_remainder): Moved to fold-const.h.
6742 (double_int mem_ref_offset): Moved to fold-const.h.
6743 (dump_addr): Moved to print-tree.h.
6744 (element_precision): Moved to machmode.h.
6745 (expand_dummy_function_end): Moved to function.h.
6746 (expand_function_end): Moved to function.h.
6747 (expand_function_start): Moved to function.h.
6748 (expand_label): Moved to stmt.h.
6749 (expr_first): Moved to tree-iterator.h.
6750 (expr_last): Moved to tree-iterator.h.
6751 (finalize_size_functions): Moved to stor-layout.h.
6752 (finish_builtin_struct): Moved to stor-layout.h.
6753 (finish_record_layout): Moved to stor-layout.h.
6754 (fixup_signed_type): Moved to stor-layout.h.
6755 (fixup_unsigned_type): Moved to stor-layout.h.
6756 (flags_from_decl_or_type): Moved to calls.h.
6757 (fold): Moved to fold-const.h.
6758 (fold_abs_const): Moved to fold-const.h.
6759 (fold_binary): Moved to fold-const.h.
6760 (fold_binary_loc): Moved to fold-const.h.
6761 (fold_binary_to_constant): Moved to fold-const.h.
6762 (fold_build1): Moved to fold-const.h.
6763 (fold_build1_initializer_loc): Moved to fold-const.h.
6764 (fold_build1_loc): Moved to fold-const.h.
6765 (fold_build1_stat_loc): Moved to fold-const.h.
6766 (fold_build2): Moved to fold-const.h.
6767 (fold_build2_initializer_loc): Moved to fold-const.h.
6768 (fold_build2_loc): Moved to fold-const.h.
6769 (fold_build2_stat_loc): Moved to fold-const.h.
6770 (fold_build3): Moved to fold-const.h.
6771 (fold_build3_loc): Moved to fold-const.h.
6772 (fold_build3_stat_loc): Moved to fold-const.h.
6773 (fold_build_call_array): Moved to fold-const.h.
6774 (fold_build_call_array_initializer): Moved to fold-const.h.
6775 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6776 (fold_build_call_array_loc): Moved to fold-const.h.
6777 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6778 (fold_convert): Moved to fold-const.h.
6779 (fold_convert_loc): Moved to fold-const.h.
6780 (fold_convertible_p): Moved to fold-const.h.
6781 (fold_defer_overflow_warnings): Moved to fold-const.h.
6782 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6783 (fold_fma): Moved to fold-const.h.
6784 (fold_ignored_result): Moved to fold-const.h.
6785 (fold_indirect_ref): Moved to fold-const.h.
6786 (fold_indirect_ref_1): Moved to fold-const.h.
6787 (fold_indirect_ref_loc): Moved to fold-const.h.
6788 (fold_read_from_constant_string): Moved to fold-const.h.
6789 (fold_real_zero_addition_p): Moved to fold-const.h.
6790 (fold_single_bit_test): Moved to fold-const.h.
6791 (fold_strip_sign_ops): Moved to fold-const.h.
6792 (fold_ternary): Moved to fold-const.h.
6793 (fold_ternary_loc): Moved to fold-const.h.
6794 (fold_unary): Moved to tree-data-ref.h.
6795 (fold_unary_ignore_overflow): Moved to fold-const.h.
6796 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6797 (fold_unary_loc): Moved to fold-const.h.
6798 (fold_unary_to_constant): Moved to fold-const.h.
6799 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6800 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6801 (folding_initializer): Moved to fold-const.h.
6802 (free_temp_slots): Moved to function.h.
6803 (generate_setjmp_warnings): Moved to function.h.
6804 (get_attribute_name): Moved to attribs.h.
6805 (get_identifier): Moved to stringpool.h.
6806 (get_identifier_with_length): Moved to stringpool.h.
6807 (get_inner_reference): Moved to tree.h.
6808 (gimple_alloca_call_p): Moved to calls.h.
6809 (gimplify_parameters): Moved to function.h.
6810 (highest_pow2_factor): Moved to expr.h.
6811 (indent_to): Moved to print-tree.h.
6812 (init_attributes): Moved to attribs.h.
6813 (init_dummy_function_start): Moved to function.h.
6814 (init_function_start): Moved to function.h.
6815 (init_inline_once): Moved to tree-inline.h.
6816 (init_object_sizes): Moved to tree-object-size.h.
6817 (init_temp_slots): Moved to function.h.
6818 (init_tree_optimization_optabs): Moved to optabs.h.
6819 (initialize_sizetypes): Moved to stor-layout.h.
6820 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6821 (initializer_constant_valid_p): Moved to varasm.h.
6822 (int_const_binop): Moved to fold-const.h.
6823 (internal_reference_types): Moved to stor-layout.h.
6824 (invert_tree_comparison): Moved to fold-const.h.
6825 (invert_truthvalue): Moved to fold-const.h.
6826 (invert_truthvalue_loc): Moved to fold-const.h.
6827 (is_tm_ending_fndecl): Moved to trans-mem.h.
6828 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6829 (is_tm_pure): Moved to trans-mem.h.
6830 (is_tm_safe): Moved to trans-mem.h.
6831 (layout_decl): Moved to stor-layout.h.
6832 (layout_type): Moved to stor-layout.h.
6833 (lookup_attribute_spec): Moved to attribs.h.
6834 (make_accum_type): Moved to stor-layout.h.
6835 (make_decl_one_only): Moved to varasm.h.
6836 (make_decl_rtl): Moved to tree.h.
6837 (make_decl_rtl_for_debug): Moved to varasm.h.
6838 (make_fract_type): Moved to stor-layout.h.
6839 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6840 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6841 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6842 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6843 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6844 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6845 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6846 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6847 (make_range): Moved to fold-const.h.
6848 (make_range_step): Moved to fold-const.h.
6849 (make_sat_signed_accum_type): Moved to stor-layout.h.
6850 (make_sat_signed_fract_type): Moved to stor-layout.h.
6851 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6852 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6853 (make_signed_accum_type): Moved to stor-layout.h.
6854 (make_signed_fract_type): Moved to stor-layout.h.
6855 (make_signed_type): Moved to stor-layout.h.
6856 (make_unsigned_accum_type): Moved to stor-layout.h.
6857 (make_unsigned_fract_type): Moved to stor-layout.h.
6858 (make_unsigned_type): Moved to stor-layout.h.
6859 (mark_decl_referenced): Moved to varasm.h.
6860 (mark_referenced): Moved to varasm.h.
6861 (may_negate_without_overflow_p): Moved to fold-const.h.
6862 (maybe_get_identifier): Moved to stringpool.h.
6863 (merge_ranges): Moved to fold-const.h.
6864 (merge_weak): Moved to varasm.h.
6865 (mode_for_size_tree): Moved to stor-layout.h.
6866 (multiple_of_p): Moved to fold-const.h.
6867 (must_pass_in_stack_var_size): Moved to calls.h.
6868 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6869 (native_encode_expr): Moved to fold-const.h.
6870 (native_interpret_expr): Moved to fold-const.h.
6871 (non_lvalue): Moved to fold-const.h.
6872 (non_lvalue_loc): Moved to fold-const.h.
6873 (normalize_offset): Moved to stor-layout.h.
6874 (normalize_rli): Moved to stor-layout.h.
6875 (notice_global_symbol): Moved to varasm.h.
6876 (omit_one_operand): Moved to fold-const.h.
6877 (omit_one_operand_loc): Moved to fold-const.h.
6878 (omit_two_operands): Moved to fold-const.h.
6879 (omit_two_operands_loc): Moved to fold-const.h.
6880 (operand_equal_p): Moved to tree-data-ref.h.
6881 (parse_input_constraint): Moved to stmt.h.
6882 (parse_output_constraint): Moved to stmt.h.
6883 (place_field): Moved to stor-layout.h.
6884 (pop_function_context): Moved to function.h.
6885 (pop_temp_slots): Moved to function.h.
6886 (pos_from_bit): Moved to stor-layout.h.
6887 (preserve_temp_slots): Moved to function.h.
6888 (print_node): Moved to print-tree.h.
6889 (print_node_brief): Moved to print-tree.h.
6890 (print_rtl): Moved to rtl.h.
6891 (process_pending_assemble_externals): Moved to varasm.h.
6892 (ptr_difference_const): Moved to fold-const.h.
6893 (push_function_context): Moved to function.h.
6894 (push_struct_function): Moved to function.h.
6895 (push_temp_slots): Moved to function.h.
6896 (record_tm_replacement): Moved to trans-mem.h.
6897 (relayout_decl): Moved to stor-layout.h.
6898 (resolve_asm_operand_names): Moved to stmt.h.
6899 (resolve_unique_section): Moved to varasm.h.
6900 (rli_size_so_far): Moved to stor-layout.h.
6901 (rli_size_unit_so_far): Moved to stor-layout.h.
6902 (round_down): Moved to fold-const.h.
6903 (round_down_loc): Moved to fold-const.h.
6904 (round_up): Moved to fold-const.h.
6905 (round_up_loc): Moved to fold-const.h.
6906 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6907 (set_decl_rtl): Moved to tree.h.
6908 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6909 (set_user_assembler_name): Moved to varasm.h.
6910 (setjmp_call_p): Moved to calls.h.
6911 (size_binop): Moved to fold-const.h.
6912 (size_binop_loc): Moved to fold-const.h.
6913 (size_diffop): Moved to fold-const.h.
6914 (size_diffop_loc): Moved to fold-const.h.
6915 (size_int_kind): Moved to fold-const.h.
6916 (stack_protect_epilogue): Moved to function.h.
6917 (start_record_layout): Moved to stor-layout.h.
6918 (supports_one_only): Moved to varasm.h.
6919 (swap_tree_comparison): Moved to fold-const.h.
6920 (tm_malloc_replacement): Moved to trans-mem.h.
6921 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6922 (tree build_invariant_address): Moved to fold-const.h.
6923 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6924 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6925 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6926 (tree_expr_nonnegative_p): Moved to fold-const.h.
6927 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6928 (tree_output_constant_def): Moved to varasm.h.
6929 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6930 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6931 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6932 (tree_swap_operands_p): Moved to fold-const.h.
6933 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6934 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6935 (update_alignment_for_field): Moved to stor-layout.h.
6936 (use_register_for_decl): Moved to function.h.
6937 (variable_size): Moved to rtl.h.
6938 (vector_type_mode): Moved to stor-layout.h.
6939 * cgraph.h: Corresponding changes.
6940 * emit-rtl.h: Corresponding changes.
6941 * expr.h: Corresponding changes.
6942 * function.h: Corresponding changes.
6943 * optabs.h: Corresponding changes.
6944 * trans-mem.h: Corresponding changes.
6945 Protect against multiple inclusion.
6946 * tree-inline.h: Corresponding changes.
6947 * tree-iterator.h: Corresponding changes.
6948 * tree-dfa.h: Include expr.h.
6949 * tree-ssanames.h: Include stringpool.h.
6950 * attribs.h: New file.
6951 * calls.h: New file.
6952 * fold-const.h: New file.
6953 * gcc-symtab.h: New file.
6954 * print-rtl.h: New file.
6955 * print-tree.h: New file.
6957 * stor-layout.h: New file.
6958 * strinpool.h: New file.
6959 * tree-nested.h: New file
6960 * tree-object-size.h: New file.
6961 * varasm.h: New file.
6963 2013-11-14 Diego Novillo <dnovillo@google.com>
6965 * alias.c: Include varasm.h.
6967 * asan.c: Include calls.h.
6968 Include stor-layout.h.
6970 * attribs.c: Include stringpool.h.
6972 Include stor-layout.h.
6973 * builtins.c: Include stringpool.h.
6974 Include stor-layout.h.
6977 Include tree-object-size.h.
6978 * calls.c: Include stor-layout.h.
6980 Include stringpool.h.
6982 * cfgexpand.c: Include stringpool.h.
6984 Include stor-layout.h.
6986 Include print-tree.h.
6987 * cgraph.c: Include varasm.h.
6989 Include print-tree.h.
6990 * cgraphclones.c: Include stringpool.h.
6993 Move inclusion of rtl.h earlier in the file.
6994 * cgraphunit.c: Include varasm.h.
6995 Include stor-layout.h.
6996 Include stringpool.h.
6997 * cilk-common.c: Include stringpool.h.
6998 Include stor-layout.h.
6999 * combine.c: Include stor-layout.h.
7000 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7001 Include stringpool.h.
7003 * config/aarch64/aarch64.c: Include stringpool.h.
7004 Include stor-layout.h.
7007 * config/alpha/alpha.c: Include stor-layout.h.
7010 * config/arc/arc.c: Include varasm.h.
7011 Include stor-layout.h.
7012 Include stringpool.h.
7014 * config/arm/arm.c: Include stringpool.h.
7015 Include stor-layout.h.
7018 * config/avr/avr-c.c: Include stor-layout.h.
7019 * config/avr/avr-log.c: Include print-tree.h.
7020 * config/avr/avr.c: Include print-tree.h.
7022 Include stor-layout.h.
7023 Include stringpool.h.
7024 * config/bfin/bfin.c: Include varasm.h.
7026 * config/c6x/c6x.c: Include stor-layout.h.
7029 Include stringpool.h.
7030 * config/cr16/cr16.c: Include stor-layout.h.
7032 * config/cris/cris.c: Include varasm.h.
7033 Include stor-layout.h.
7036 * config/darwin.c: Include stringpool.h.
7038 Include stor-layout.h.
7039 * config/epiphany/epiphany.c: Include stor-layout.h.
7042 Include stringpool.h.
7043 * config/fr30/fr30.c: Include stor-layout.h.
7045 * config/frv/frv.c: Include varasm.h.
7046 Include stor-layout.h.
7047 Include stringpool.h.
7048 * config/h8300/h8300.c: Include stor-layout.h.
7051 Include stringpool.h.
7052 * config/i386/i386.c: Include stringpool.h.
7055 Include stor-layout.h.
7057 * config/i386/winnt-cxx.c: Include stringpool.h.
7059 * config/i386/winnt.c: Include stringpool.h.
7061 * config/ia64/ia64-c.c: Include stringpool.h.
7062 * config/ia64/ia64.c: Include stringpool.h.
7063 Include stor-layout.h.
7066 * config/iq2000/iq2000.c: Include stor-layout.h.
7069 * config/lm32/lm32.c: Include calls.h.
7070 * config/m32c/m32c.c: Include stor-layout.h.
7073 * config/m32r/m32r.c: Include stor-layout.h.
7075 Include stringpool.h.
7077 * config/m68k/m68k.c: Include calls.h.
7078 Include stor-layout.h.
7080 * config/mcore/mcore.c: Include stor-layout.h.
7082 Include stringpool.h.
7084 * config/mep/mep.c: Include varasm.h.
7086 Include stringpool.h.
7087 Include stor-layout.h.
7088 * config/microblaze/microblaze.c: Include varasm.h.
7089 Include stor-layout.h.
7091 * config/mips/mips.c: Include varasm.h.
7092 Include stringpool.h.
7093 Include stor-layout.h.
7095 * config/mmix/mmix.c: Include varasm.h.
7096 Include stor-layout.h.
7098 * config/mn10300/mn10300.c: Include stor-layout.h.
7101 * config/moxie/moxie.c: Include stor-layout.h.
7104 * config/msp430/msp430.c: Include stor-layout.h.
7106 * config/nds32/nds32.c: Include stor-layout.h.
7109 * config/pa/pa.c: Include stor-layout.h.
7110 Include stringpool.h.
7113 * config/pdp11/pdp11.c: Include stor-layout.h.
7116 * config/picochip/picochip.c: Include calls.h.
7117 Include stor-layout.h.
7118 Include stringpool.h.
7120 * config/rl78/rl78.c: Include varasm.h.
7121 Include stor-layout.h.
7123 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7124 Include stringpool.h.
7125 * config/rs6000/rs6000.c: Include stringpool.h.
7126 Include stor-layout.h.
7128 Include print-tree.h.
7130 * config/rx/rx.c: Include varasm.h.
7131 Include stor-layout.h.
7133 * config/s390/s390.c: Include print-tree.h.
7134 Include stringpool.h.
7135 Include stor-layout.h.
7138 * config/score/score.c: Include stringpool.h.
7141 Include stor-layout.h.
7142 * config/sh/sh-c.c: Include stringpool.h.
7143 Include attribs.h.h.
7144 * config/sh/sh.c: Include stringpool.h.
7145 Include stor-layout.h.
7148 * config/sol2-c.c: Include stringpool.h.
7150 * config/sol2-cxx.c: Include stringpool.h.
7151 * config/sol2.c: Include stringpool.h.
7153 * config/sparc/sparc.c: Include stringpool.h.
7154 Include stor-layout.h.
7157 * config/spu/spu-c.c: Include stringpool.h.
7158 * config/spu/spu.c: Include stringpool.h.
7159 Include stor-layout.h.
7162 * config/stormy16/stormy16.c: Include stringpool.h.
7163 Include stor-layout.h.
7166 * config/tilegx/tilegx.c: Include stringpool.h.
7167 Include stor-layout.h.
7170 * config/tilepro/tilepro.c: Include stringpool.h.
7171 Include stor-layout.h.
7174 * config/v850/v850-c.c: Include stringpool.h.
7176 * config/v850/v850.c: Include stringpool.h.
7177 Include stor-layout.h.
7180 * config/vax/vax.c: Include calls.h.
7182 * config/vms/vms.c: Include stringpool.h.
7183 * config/vxworks.c: Include stringpool.h.
7184 * config/xtensa/xtensa.c: Include stringpool.h.
7185 Include stor-layout.h.
7188 * convert.c: Include stor-layout.h.
7189 * coverage.c: Include stringpool.h.
7190 Include stor-layout.h.
7191 * dbxout.c: Include varasm.h.
7192 Include stor-layout.h.
7193 * dojump.c: Include stor-layout.h.
7194 * dse.c: Include stor-layout.h.
7195 * dwarf2asm.c: Include stringpool.h.
7197 * dwarf2cfi.c: Include stor-layout.h.
7198 * dwarf2out.c: Include rtl.h.
7199 Include stringpool.h.
7200 Include stor-layout.h.
7204 Move inclusion of rtl.h earlier in the file.
7205 * emit-rtl.c: Include varasm.h.
7206 * except.c: Include stringpool.h.
7207 Include stor-layout.h.
7208 * explow.c: Include stor-layout.h.
7209 * expmed.c: Include stor-layout.h.
7210 * expr.c: Include stringpool.h.
7211 Include stor-layout.h.
7214 * final.c: Include varasm.h.
7215 * fold-const.c: Include stor-layout.h.
7217 Include tree-iterator.h.
7218 * function.c: Include stor-layout.h.
7220 Include stringpool.h.
7221 * genattrtab.c (write_header): Emit includes for varasm.h,
7222 stor-layout.h and calls.h.
7223 * genautomata.c (main): Likewise.
7224 * genemit.c: Likewise.
7225 * genopinit.c: Likewise.
7226 * genoutput.c (output_prologue): Likewise.
7227 * genpeep.c: Likewise.
7228 * genpreds.c (write_insn_preds_c): Likewise.
7229 * gengtype.c (open_base_files): Add stringpool.h.
7230 * gimple-expr.c: Include stringpool.h.
7231 Include stor-layout.h.
7232 * gimple-fold.c: Include stringpool.h.
7235 Include stor-layout.h.
7236 * gimple-low.c: Include tree-nested.h.
7238 * gimple-pretty-print.c: Include stringpool.h.
7239 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7241 * gimple-walk.c: Include stmt.h.
7242 * gimple.c: Include calls.h.
7244 Include stor-layout.h.
7245 * gimplify.c: Include stringpool.h.
7248 Include stor-layout.h.
7250 Include print-tree.h.
7252 * gimplify-me.c: Include stmt.h
7253 Include stor-layout.h
7254 * internal-fn.c: Include stor-layout.h.
7255 * ipa-devirt.c: Include print-tree.h.
7257 * ipa-inline-analysis.c: Include stor-layout.h.
7258 Include stringpool.h.
7259 Include print-tree.h.
7260 * ipa-inline.c: Include trans-mem.h.
7262 * ipa-prop.c: Include expr.h.
7263 Include stor-layout.h.
7264 Include print-tree.h.
7265 * ipa-pure-const.c: Include print-tree.h.
7267 * ipa-reference.c: Include calls.h.
7268 * ipa-split.c: Include stringpool.h.
7271 * ipa.c: Include calls.h.
7272 Include stringpool.h.
7273 * langhooks.c: Include stringpool.h.
7275 * lto-cgraph.c: Include stringpool.h.
7276 * lto-streamer-in.c: Include stringpool.h.
7277 * lto-streamer-out.c: Include stor-layout.h.
7278 Include stringpool.h.
7279 * omp-low.c: Include stringpool.h.
7280 Include stor-layout.h.
7282 * optabs.c: Include stor-layout.h.
7283 Include stringpool.h.
7285 * passes.c: Include varasm.h.
7286 * predict.c: Include calls.h.
7287 * print-rtl.c: Include print-tree.h.
7288 * print-tree.c: Include varasm.h.
7289 Include print-rtl.h.
7290 Include stor-layout.h.
7291 * realmpfr.c: Include stor-layout.h.
7292 * reg-stack.c: Include varasm.h.
7293 * sdbout.c: Include varasm.h.
7294 Include stor-layout.h.
7295 * simplify-rtx.c: Include varasm.h.
7296 * stmt.c: Include varasm.h.
7297 Include stor-layout.h.
7298 * stor-layout.c: Include stor-layout.h.
7299 Include stringpool.h.
7301 Include print-tree.h.
7302 * symtab.c: Include rtl.h.
7303 Include print-tree.h.
7307 * targhooks.c: Include stor-layout.h.
7309 * toplev.c: Include varasm.h.
7310 Include tree-inline.h.
7311 * trans-mem.c: Include calls.h.
7315 * tree-affine.c: Include expr.h.
7316 * tree-browser.c: Include print-tree.h.
7317 * tree-call-cdce.c: Include stor-layout.h.
7318 * tree-cfg.c: Include trans-mem.h.
7319 Include stor-layout.h.
7320 Include print-tree.h.
7321 * tree-complex.c: Include stor-layout.h.
7322 * tree-data-ref.c: Include expr.h.
7323 * tree-dfa.c: Include stor-layout.h.
7324 * tree-eh.c: Include expr.h.
7326 * tree-emutls.c: Include stor-layout.h.
7328 * tree-if-conv.c: Include stor-layout.h.
7329 * tree-inline.c: Include stor-layout.h.
7331 * tree-loop-distribution.c: Include stor-layout.h.
7332 * tree-nested.c: Include stringpool.h.
7333 Include stor-layout.h.
7334 * tree-object-size.c: Include tree-object-size.h.
7335 * tree-outof-ssa.c: Include stor-layout.h.
7336 * tree-parloops.c: Include stor-layout.h.
7337 Include tree-nested.h.
7338 * tree-pretty-print.c: Include stor-layout.h.
7340 * tree-profile.c: Include varasm.h.
7341 Include tree-nested.h.
7342 * tree-scalar-evolution.c: Include expr.h.
7343 * tree-sra.c: Include stor-layout.h.
7344 * tree-ssa-address.c: Include stor-layout.h.
7345 * tree-ssa-ccp.c: Include stor-layout.h.
7346 * tree-ssa-dce.c: Include calls.h.
7347 * tree-ssa-dom.c: Include stor-layout.h.
7348 * tree-ssa-forwprop.c: Include stor-layout.h.
7349 * tree-ssa-ifcombine.c: Include stor-layout.h.
7350 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7351 * tree-ssa-loop-niter.c: Include calls.h.
7353 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7354 * tree-ssa-math-opts.c: Include stor-layout.h.
7355 * tree-ssa-operands.c: Include stmt.h.
7356 Include print-tree.h.
7357 * tree-ssa-phiopt.c: Include stor-layout.h.
7358 * tree-ssa-reassoc.c: Include stor-layout.h.
7359 * tree-ssa-sccvn.c: Include stor-layout.h.
7360 * tree-ssa-sink.c: Include stor-layout.h.
7361 * tree-ssa-strlen.c: Include stor-layout.h.
7362 * tree-ssa-structalias.c: Include stor-layout.h.
7364 * tree-ssa-tail-merge.c: Include stor-layout.h.
7365 Include trans-mem.h.
7366 * tree-ssa-uncprop.c: Include stor-layout.h.
7367 * tree-ssa.c: Include stor-layout.h.
7368 * tree-ssanames.c: Include stor-layout.h.
7369 * tree-streamer-in.c: Include stringpool.h.
7370 * tree-streamer-out.c: Include stor-layout.h.
7371 * tree-switch-conversion.c: Include varasm.h.
7372 Include stor-layout.h.
7373 * tree-tailcall.c: Include stor-layout.h.
7374 * tree-vect-data-refs.c: Include stor-layout.h.
7375 * tree-vect-generic.c: Include stor-layout.h.
7376 * tree-vect-loop.c: Include stor-layout.h.
7377 * tree-vect-patterns.c: Include stor-layout.h.
7378 * tree-vect-slp.c: Include stor-layout.h.
7379 * tree-vect-stmts.c: Include stor-layout.h.
7380 * tree-vectorizer.c: Include stor-layout.h.
7381 * tree-vrp.c: Include stor-layout.h.
7383 * tree.c: Include stor-layout.h.
7387 * tsan.c: Include expr.h.
7388 * ubsan.c: Include stor-layout.h.
7389 Include stringpool.h.
7390 * value-prof.c: Include tree-nested.h.
7392 * var-tracking.c: Include varasm.h.
7393 Include stor-layout.h.
7394 * varasm.c: Include stor-layout.h.
7395 Include stringpool.h.
7396 Include gcc-symtab.h.
7398 * varpool.c: Include varasm.h.
7399 * vmsdbgout.c: Include varasm.h.
7400 * xcoffout.c: Include varasm.h.
7402 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7404 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7407 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7409 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7411 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7412 Alan Modra <amodra@gmail.com>
7414 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7415 (RS6000_SAVE_TOC): Remove.
7416 (RS6000_TOC_SAVE_SLOT): New macro.
7417 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7418 (rs6000_parm_start): Use it.
7419 (rs6000_function_arg_advance_1): Likewise.
7420 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7421 (rs6000_emit_epilogue): Likewise.
7422 (rs6000_call_aix): Likewise.
7423 (rs6000_output_function_prologue): Do not save/restore r11
7424 around calling _mcount for ABI_ELFv2.
7426 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7427 Alan Modra <amodra@gmail.com>
7429 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7431 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7432 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7433 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7434 (rs6000_function_parms_need_stack): Likewise.
7435 (rs6000_reg_parm_stack_space): Likewise.
7436 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7437 returning a register argument.
7439 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7440 Michael Gschwind <mkg@us.ibm.com>
7442 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7443 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7444 (FUNCTION_VALUE_REGNO_P): Use them.
7445 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7446 (rs6000_return_in_msb): New function.
7447 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7448 Handle aggregates of up to 16 bytes for ELFv2.
7449 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7451 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7452 Michael Gschwind <mkg@us.ibm.com>
7454 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7455 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7456 (rs6000_discover_homogeneous_aggregate): Likewise.
7457 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7458 (rs6000_function_arg_advance_1): Likewise.
7459 (rs6000_function_arg): Likewise.
7460 (rs6000_arg_partial_bytes): Likewise.
7461 (rs6000_psave_function_arg): Handle BLKmode arguments.
7463 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7464 Michael Gschwind <mkg@us.ibm.com>
7466 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7467 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7468 (rs6000_discover_homogeneous_aggregate): Likewise.
7469 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7470 (rs6000_function_arg_advance_1): Likewise.
7471 (rs6000_function_arg): Likewise.
7472 (rs6000_arg_partial_bytes): Likewise.
7473 (rs6000_psave_function_arg): Handle BLKmode arguments.
7475 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7477 * config/rs6000/rs6000.c (machine_function): New member
7479 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7480 (rs6000_output_mi_thunk): Set r2_setup_needed.
7481 (rs6000_output_function_prologue): Output global entry point
7482 prologue and local entry point marker if needed for ABI_ELFv2.
7483 Output -mprofile-kernel code here.
7484 (output_function_profiler): Do not output -mprofile-kernel
7485 code here; moved to rs6000_output_function_prologue.
7486 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7488 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7489 (rs6000_output_function_entry): Likewise.
7490 (rs6000_assemble_integer): Likewise.
7491 (rs6000_elf_encode_section_info): Likewise.
7492 (rs6000_elf_declare_function_name): Do not create dot symbols
7493 or .opd section for ABI_ELFv2.
7495 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7496 (rs6000_trampoline_init): Likewise.
7497 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7499 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7500 for function descriptors in ABI_ELFv2.
7502 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7503 on ABI_AIX only, not ABI_ELFv2.
7504 ("*call_value_indirect_aix<mode>"): Likewise.
7505 ("*call_indirect_elfv2<mode>"): New pattern.
7506 ("*call_value_indirect_elfv2<mode>"): Likewise.
7508 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7509 check for function descriptors in ABI_ELFv2.
7510 ("current_file_function_operand"): Likewise.
7512 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7514 (FUNC_NAME): Define ELFv2 variant.
7515 (JUMP_TARGET): Likewise.
7516 (FUNC_START): Likewise.
7517 (HIDDEN_FUNC): Likewise.
7518 (FUNC_END): Likeiwse.
7520 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7522 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7523 and --with-abi=elfv2.
7524 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7525 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7526 (mabi=elfv2): Likewise.
7527 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7528 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7530 (ELFv2_ABI_CHECK): New macro.
7531 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7532 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7533 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7534 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7535 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7537 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7538 (debug_stack_info): Likewise.
7539 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7540 (rs6000_legitimize_tls_address): Likewise.
7541 (rs6000_conditional_register_usage): Likewise.
7542 (rs6000_emit_move): Likewise.
7543 (init_cumulative_args): Likewise.
7544 (rs6000_function_arg_advance_1): Likewise.
7545 (rs6000_function_arg): Likewise.
7546 (rs6000_arg_partial_bytes): Likewise.
7547 (rs6000_output_function_entry): Likewise.
7548 (rs6000_assemble_integer): Likewise.
7549 (rs6000_savres_strategy): Likewise.
7550 (rs6000_stack_info): Likewise.
7551 (rs6000_function_ok_for_sibcall): Likewise.
7552 (rs6000_emit_load_toc_table): Likewise.
7553 (rs6000_savres_routine_name): Likewise.
7554 (ptr_regno_for_savres): Likewise.
7555 (rs6000_emit_prologue): Likewise.
7556 (rs6000_emit_epilogue): Likewise.
7557 (rs6000_output_function_epilogue): Likewise.
7558 (output_profile_hook): Likewise.
7559 (output_function_profiler): Likewise.
7560 (rs6000_trampoline_size): Likewise.
7561 (rs6000_trampoline_init): Likewise.
7562 (rs6000_elf_output_toc_section_asm_op): Likewise.
7563 (rs6000_elf_encode_section_info): Likewise.
7564 (rs6000_elf_reloc_rw_mask): Likewise.
7565 (rs6000_elf_declare_function_name): Likewise.
7566 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7567 except that rs6000_compat_align_parm is always assumed false.
7568 (rs6000_gimplify_va_arg): Likewise.
7569 (rs6000_call_aix): Update comment.
7570 (rs6000_sibcall_aix): Likewise.
7571 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7572 Treat ABI_ELFv2 the same as ABI_AIX.
7573 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7574 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7575 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7576 ("load_toc_aix_si"): Likewise.
7577 ("load_toc_aix_di"): Likewise.
7579 ("call_value"): Likewise.
7580 ("*call_local_aix<mode>"): Likewise.
7581 ("*call_value_local_aix<mode>"): Likewise.
7582 ("*call_nonlocal_aix<mode>"): Likewise.
7583 ("*call_value_nonlocal_aix<mode>"): Likewise.
7584 ("*call_indirect_aix<mode>"): Likewise.
7585 ("*call_value_indirect_aix<mode>"): Likewise.
7586 ("sibcall"): Likewise.
7587 ("sibcall_value"): Likewise.
7588 ("*sibcall_aix<mode>"): Likewise.
7589 ("*sibcall_value_aix<mode>"): Likewise.
7590 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7591 ("current_file_function_operand"): Likewise.
7593 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7595 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7596 by making use of the fact that for vector / floating point arguments
7597 passed both in VRs/FPRs and in the fixed parameter area, the partial
7598 bytes mechanism is in fact not used.
7600 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7602 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7603 (rs6000_finish_function_arg): Likewise.
7604 (rs6000_function_arg): Use rs6000_psave_function_arg and
7605 rs6000_finish_function_arg to handle both vector and floating
7606 point arguments that are also passed in GPRs / the stack.
7608 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7610 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7611 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7612 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7613 (rs6000_function_arg_advance_1):Likewise.
7614 (rs6000_darwin64_record_arg_recurse): Likewise.
7615 (rs6000_function_arg): Likewise.
7616 (rs6000_arg_partial_bytes): Likewise.
7618 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7620 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7621 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7622 (rs6000_savres_strategy): Likewise.
7623 (rs6000_return_addr): Likewise.
7624 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7625 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7626 (rs6000_emit_prologue): Likewise.
7627 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7628 (rs6000_elf_declare_function_name): Remove duplicated test.
7629 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7630 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7631 ("load_toc_v4_PIC_1_normal"): Likewise.
7632 ("load_toc_v4_PIC_1_476"): Likewise.
7633 ("load_toc_v4_PIC_1b"): Likewise.
7634 ("load_toc_v4_PIC_1b_normal"): Likewise.
7635 ("load_toc_v4_PIC_1b_476"): Likewise.
7636 ("load_toc_v4_PIC_2"): Likewise.
7637 ("load_toc_v4_PIC_3b"): Likewise.
7638 ("load_toc_v4_PIC_3c"): Likewise.
7639 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7640 (RS6000_SAVE_AREA): Likewise.
7641 (FP_ARG_MAX_REG): Likewise.
7642 (RETURN_ADDRESS_OFFSET): Likewise.
7643 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7645 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7646 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7648 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7650 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7651 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7652 Create call insn directly instead of via various gen_... routines.
7653 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7654 (rs6000_sibcall_aix): New function.
7655 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7656 (TOC_SAVE_OFFSET_64BIT): Likewise.
7657 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7658 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7659 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7660 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7661 ("call" expander): Call rs6000_call_aix.
7662 ("call_value" expander): Likewise.
7663 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7664 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7665 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7666 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7667 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7668 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7669 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7670 ("*call_nonlocal_aix<mode>"): ... this pattern.
7671 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7672 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7673 ("*call_local_aix<mode>"): New insn pattern.
7674 ("*call_value_local_aix<mode>"): Likewise.
7675 ("sibcall" expander): Call rs6000_sibcall_aix.
7676 ("sibcall_value" expander): Likewise. Move earlier in file.
7677 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7678 ("*sibcall_aix<mode>"): ... this pattern.
7679 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7680 ("*sibcall_value_aix<mode>"): ... this pattern.
7681 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7682 (rs6000_call_aix): Add prototype.
7683 (rs6000_sibcall_aix): Likewise.
7685 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7688 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7689 isn't confused by the artificial decl.
7691 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7693 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7694 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7695 Instead, add USEs of all modified call-saved CR fields to the
7696 insn storing the result to the stack slot, and provide an
7697 appropriate REG_FRAME_RELATED_EXPR for that insn.
7698 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7699 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7701 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7702 Alan Modra <amodra@gmail.com>
7704 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7705 of re-evaluating REG_PARM_STACK_SPACE target macro.
7706 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7707 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7708 (assign_parm_find_entry_rtl): Update call.
7709 * calls.c (initialize_argument_information): Update call.
7710 (emit_library_call_value_1): Likewise.
7711 * expr.h (locate_and_pad_parm): Update prototype.
7713 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7715 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7718 2013-11-14 DJ Delorie <dj@redhat.com>
7720 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7723 2013-11-14 Jeff Law <law@redhat.com>
7725 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7726 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7728 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7730 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7733 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7735 * config/aarch64/aarch64-cores.def (example-1): Remove.
7736 (example-2): Likewise.
7737 * config/aarch64/aarch64-tune.md: Regenerate.
7738 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7739 (generic_sched): Remove "large", "small".
7740 * config/aarch64/large.md: Delete.
7741 * config/aarch64/small.md: Delete.
7743 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7745 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7746 * config/aarch64/aarch64-tune.md: Regenerate.
7747 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7748 (generic_sched): "no" if we are tuning for cortexa15.
7749 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7752 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7754 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7755 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7756 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7757 (all_cores): Use cortexa53 when tuning for "generic".
7758 (aarch64_override_options): Fix comment.
7759 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7760 * config/aarch64/aarch64-generic.md: Delete.
7762 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7764 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7766 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7768 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7769 (generic_rtx_cost_table): Remove.
7770 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7771 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7773 (cpu_rtx_cost_table): Remove.
7775 2013-11-14 Julian Brown <julian@codesourcery.com>
7776 Joey Ye <joey.ye@arm.com>
7778 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7779 (arm_v7m_tune): New.
7780 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7781 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7782 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7783 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7785 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7788 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7791 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7792 Uros Bizjak <ubizjak@gmail.com>
7795 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7796 operands[2] satisfies_constraint_Z that might have bit 31 set.
7798 2013-11-13 Jeff Law <law@redhat.com>
7800 PR tree-optimization/59102
7801 * gimple-ssa-isolate-paths.c
7802 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7803 gimple assignment before looking at gimple_assign_lhs.
7805 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7807 * ira.c: Add comment about threads at the top of file.
7809 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7811 * ira-color.c (coalesce_allocnos): Don't allocate and free
7814 2013-11-14 Tom de Vries <tom@codesourcery.com>
7816 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7817 equality for GIMPLE_ASSIGN.
7819 2013-11-14 Tom de Vries <tom@codesourcery.com>
7821 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7823 (gimple_equal_p): ... here.
7825 2013-11-14 Tom de Vries <tom@codesourcery.com>
7827 * trans-mem.c (is_tm_ending): New function.
7828 * gimple.h (is_tm_ending): Declare.
7829 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7831 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7833 2013-11-14 Tom de Vries <tom@codesourcery.com>
7835 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7837 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7839 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7840 (struct walk_stmt_info): Relocate here from gimple.h.
7841 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7842 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7843 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7844 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7845 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7846 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7847 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7848 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7849 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7850 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7851 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7852 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7853 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7854 (struct walk_stmt_info): Move to gimple-walk.h.
7855 (gimple_seq_set_location): Move to gimple.c
7856 * gimple-walk.c: New File.
7857 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7858 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7859 walk_stmt_load_store_ops): Relocate here from gimple.c.
7860 * gimple-iterator.c: Include gimple-iterator.h.
7861 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7862 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7863 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7865 (gimple_seq_set_location): Relocate from gimple.h.
7866 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7867 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7868 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7869 * Makefile.in (OBJS): Add gimple-walk.o
7870 * asan.c: Update Include list as required for gimple-iterator.h and
7872 * cfgexpand.c: Likewise.
7873 * cfgloop.c: Likewise.
7874 * cfgloopmanip.c: Likewise.
7875 * cgraph.c: Likewise.
7876 * cgraphbuild.c: Likewise.
7877 * cgraphunit.c: Likewise.
7878 * gimple-fold.c: Likewise.
7879 * gimple-low.c: Likewise.
7880 * gimple-pretty-print.c: Likewise.
7881 * gimple-ssa-isolate-paths.c: Likewise.
7882 * gimple-ssa-strength-reduction.c: Likewise.
7883 * gimple-streamer-in.c: Likewise.
7884 * gimple-streamer-out.c: Likewise.
7885 * gimplify.c: Likewise.
7886 * graphite-blocking.c: Likewise.
7887 * graphite-clast-to-gimple.c: Likewise.
7888 * graphite-dependences.c: Likewise.
7889 * graphite-interchange.c: Likewise.
7890 * graphite-optimize-isl.c: Likewise.
7891 * graphite-poly.c: Likewise.
7892 * graphite-scop-detection.c: Likewise.
7893 * graphite-sese-to-poly.c: Likewise.
7894 * graphite.c: Likewise.
7895 * ipa-inline-analysis.c: Likewise.
7896 * ipa-profile.c: Likewise.
7897 * ipa-prop.c: Likewise.
7898 * ipa-pure-const.c: Likewise.
7899 * ipa-split.c: Likewise.
7900 * lto-streamer-in.c: Likewise.
7901 * lto-streamer-out.c: Likewise.
7902 * omp-low.c: Likewise.
7903 * predict.c: Likewise.
7904 * profile.c: Likewise.
7906 * tracer.c: Likewise.
7907 * trans-mem.c: Likewise.
7908 * tree-call-cdce.c: Likewise.
7909 * tree-cfg.c: Likewise.
7910 * tree-cfgcleanup.c: Likewise.
7911 * tree-complex.c: Likewise.
7912 * tree-data-ref.c: Likewise.
7913 * tree-dfa.c: Likewise.
7914 * tree-eh.c: Likewise.
7915 * tree-emutls.c: Likewise.
7916 * tree-if-conv.c: Likewise.
7917 * tree-inline.c: Likewise.
7918 * tree-into-ssa.c: Likewise.
7919 * tree-loop-distribution.c: Likewise.
7920 * tree-nested.c: Likewise.
7921 * tree-nrv.c: Likewise.
7922 * tree-object-size.c: Likewise.
7923 * tree-outof-ssa.c: Likewise.
7924 * tree-parloops.c: Likewise.
7925 * tree-predcom.c: Likewise.
7926 * tree-profile.c: Likewise.
7927 * tree-scalar-evolution.c: Likewise.
7928 * tree-sra.c: Likewise.
7929 * tree-ssa-ccp.c: Likewise.
7930 * tree-ssa-coalesce.c: Likewise.
7931 * tree-ssa-copy.c: Likewise.
7932 * tree-ssa-copyrename.c: Likewise.
7933 * tree-ssa-dce.c: Likewise.
7934 * tree-ssa-dom.c: Likewise.
7935 * tree-ssa-dse.c: Likewise.
7936 * tree-ssa-forwprop.c: Likewise.
7937 * tree-ssa-ifcombine.c: Likewise.
7938 * tree-ssa-live.c: Likewise.
7939 * tree-ssa-loop-ch.c: Likewise.
7940 * tree-ssa-loop-im.c: Likewise.
7941 * tree-ssa-loop-ivcanon.c: Likewise.
7942 * tree-ssa-loop-ivopts.c: Likewise.
7943 * tree-ssa-loop-manip.c: Likewise.
7944 * tree-ssa-loop-niter.c: Likewise.
7945 * tree-ssa-loop-prefetch.c: Likewise.
7946 * tree-ssa-loop.c: Likewise.
7947 * tree-ssa-math-opts.c: Likewise.
7948 * tree-ssa-phiopt.c: Likewise.
7949 * tree-ssa-phiprop.c: Likewise.
7950 * tree-ssa-pre.c: Likewise.
7951 * tree-ssa-propagate.c: Likewise.
7952 * tree-ssa-reassoc.c: Likewise.
7953 * tree-ssa-sink.c: Likewise.
7954 * tree-ssa-strlen.c: Likewise.
7955 * tree-ssa-structalias.c: Likewise.
7956 * tree-ssa-tail-merge.c: Likewise.
7957 * tree-ssa-ter.c: Likewise.
7958 * tree-ssa-threadedge.c: Likewise.
7959 * tree-ssa-threadupdate.c: Likewise.
7960 * tree-ssa-uncprop.c: Likewise.
7961 * tree-ssa-uninit.c: Likewise.
7962 * tree-ssa.c: Likewise.
7963 * tree-stdarg.c: Likewise.
7964 * tree-switch-conversion.c: Likewise.
7965 * tree-tailcall.c: Likewise.
7966 * tree-vect-data-refs.c: Likewise.
7967 * tree-vect-generic.c: Likewise.
7968 * tree-vect-loop-manip.c: Likewise.
7969 * tree-vect-loop.c: Likewise.
7970 * tree-vect-patterns.c: Likewise.
7971 * tree-vect-slp.c: Likewise.
7972 * tree-vect-stmts.c: Likewise.
7973 * tree-vectorizer.c: Likewise.
7974 * tree-vrp.c: Likewise.
7977 * value-prof.c: Likewise.
7978 * vtable-verify.c: Likewise.
7980 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7982 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7985 2013-11-13 Jeff Law <law@redhat.com>
7987 * PR middle-end/59119
7988 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7989 function, extracted from gimple_ssa_isolate_erroneous_paths.
7990 (find_explicit_erroneous_behaviour): Similarly.
7991 (insert_trap_and_remove_trailing_statements): Remove statements
7994 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7996 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7997 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7998 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7999 looking at INSN_CODE.
8000 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8001 active_insn_p object, respect basic block boundaries.
8002 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8003 follows immediately after the jump table data label.
8004 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8005 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8006 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8008 2013-11-13 Teresa Johnson <tejohnson@google.com>
8011 * predict.c (drop_profile): Error is currently too strict.
8012 (handle_missing_profiles): Pass call_count to drop_profile.
8014 2013-11-13 Teresa Johnson <tejohnson@google.com>
8017 * ipa-inline.c (edge_badness): Fix overflow.
8019 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8021 PR rtl-optimization/59036
8022 * ira-color.c (struct allocno_color_data): Add new members
8023 first_thread_allocno, next_thread_allocno, thread_freq.
8024 (sorted_copies): New static var.
8025 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8026 (allocno_thread_conflict_p, merge_threads)
8027 (form_threads_from_copies, form_threads_from_bucket)
8028 (form_threads_from_colorable_allocno, init_allocno_threads): New
8030 (bucket_allocno_compare_func): Add comparison by thread frequency
8032 (add_allocno_to_ordered_bucket): Rename to
8033 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8034 (push_only_colorable): Call form_threads_from_bucket.
8035 (color_pass): Call init_allocno_threads. Use
8036 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8037 for nuillify allocno color data.
8038 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8039 (coalesce_allocnos): Use static sorted copies.
8041 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8043 * passes.c (execute_todo): Don't call do_per_function if
8045 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8046 execute_function_dump if dump_file is NULL.
8048 2013-11-13 Martin Jambor <mjambor@suse.cz>
8050 * cgraph.c (cgraph_get_create_node): Do what
8051 cgraph_get_create_real_symbol_node used to do.
8052 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8053 call cgraph_get_create_node.
8054 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8055 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8056 cgraph_get_create_node. Assert we get a node.
8058 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8060 * config/aarch64/aarch64-simd.md (vec_extract): New.
8062 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8064 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8067 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8069 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8070 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8071 or if optimization is enabled.
8072 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8073 require that all the names based on a PARM_DECL or a RESULT_DECL that
8074 isn't ignored for debug info be coalesced.
8076 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8078 * config/c6x/c6x.c: Include "gimple-expr.h".
8080 2013-11-13 Richard Biener <rguenther@suse.de>
8082 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8083 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8084 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8085 dealing with type mismatches inside component reference chains.
8087 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8089 PR tree-optimization/59077
8090 * ipa-pure-const.c (better_state): Update *state.
8092 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8094 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8095 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8096 Update offset calculations.
8098 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8101 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8102 for fields. Do not add the attribute if the size is negative.
8104 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8106 * config/arm/arm.c: Include aarch-cost-tables.h.
8107 (generic_extra_costs): Move from here...
8108 * config/arm/aarch-cost-tables.h: ... To here. New file.
8110 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8111 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8112 Sergey Lega <sergey.s.lega@intel.com>
8113 Anna Tikhonova <anna.tikhonova@intel.com>
8114 Ilya Tocar <ilya.tocar@intel.com>
8115 Andrey Turetskiy <andrey.turetskiy@intel.com>
8116 Ilya Verbin <ilya.verbin@intel.com>
8117 Kirill Yukhin <kirill.yukhin@intel.com>
8118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8120 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8121 * config/i386/predicate.md (const_0_to_4_operand): New.
8122 (const_0_to_5_operand): Ditto.
8123 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8124 (UNSPEC_COMPRESS_STORE): Ditto.
8125 (UNSPEC_EXPAND): Ditto.
8126 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8127 (define_mode_attr ssescalarsize): Ditto.
8128 (avx512f_load<mode>_mask): Ditto.
8129 (avx512f_store<mode>_mask): Ditto.
8130 (avx512f_storedqu<mode>_mask): Ditto.
8131 (avx512f_vmcmp<mode>3_mask): Ditto.
8132 (avx512f_fmadd_<mode>_mask): Ditto.
8133 (avx512f_fmadd_<mode>_mask3): Ditto.
8134 (avx512f_fmsub_<mode>_mask): Ditto.
8135 (avx512f_fmsub_<mode>_mask3): Ditto.
8136 (avx512f_fnmadd_<mode>_mask): Ditto.
8137 (avx512f_fnmadd_<mode>_mask3): Ditto.
8138 (avx512f_fnmsub_<mode>_mask): Ditto.
8139 (avx512f_fnmsub_<mode>_mask3): Ditto.
8140 (avx512f_fmaddsub_<mode>_mask): Ditto.
8141 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8142 (avx512f_fmsubadd_<mode>_mask): Ditto.
8143 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8144 (vec_unpacku_float_lo_v16si): Ditto.
8145 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8146 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8147 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8148 (vec_extract_lo_<mode>_maskm): Ditto.
8149 (vec_extract_hi_<mode>_maskm): Ditto.
8150 (avx512f_vternlog<mode>_mask): Ditto.
8151 (avx512f_shufps512_mask): Ditto.
8152 (avx512f_fixupimm<mode>_mask): Ditto.
8153 (avx512f_shufpd512_mask): Ditto.
8154 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8155 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8156 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8157 (ashr<mode>3<mask_name>): Ditto.
8158 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8159 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8160 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8161 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8162 (avx512f_pshufdv3_mask): Ditto.
8163 (avx512f_perm<mode>_mask): Ditto.
8164 (avx512f_vpermi2var<mode>3_mask): Ditto.
8165 (avx512f_vpermt2var<mode>3_mask): Ditto.
8166 (avx512f_compress<mode>_mask): Ditto.
8167 (avx512f_compressstore<mode>_mask): Ditto.
8168 (avx512f_expand<mode>_mask): Ditto.
8169 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8171 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8172 (<plusminus_insn><mode>3<mask_name>): Ditto.
8173 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8174 (mul<mode>3<mask_name>): Ditto.
8175 (*mul<mode>3<mask_name>): Ditto.
8176 (<sse>_div<mode>3<mask_name>): Ditto.
8177 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8178 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8179 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8180 (<code><mode>3<mask_name>/smaxmin): Ditto.
8181 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8182 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8183 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8184 (ufloatv16siv16sf2<mask_name>): Ditto.
8185 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8186 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8187 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8188 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8189 (ufloatv8siv8df<mask_name>): Ditto.
8190 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8191 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8192 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8193 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8194 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8195 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8196 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8197 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8198 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8199 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8200 (vec_extract_lo_<mode><mask_name>): Ditto.
8201 (vec_extract_hi_<mode><mask_name>): Ditto.
8202 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8203 (avx512f_movddup512<mask_name>): Ditto.
8204 (avx512f_unpcklpd512<mask_name>): Ditto.
8205 (*avx512f_unpcklpd512<mask_name>): Ditto.
8206 (*avx512f_vmscalef<mode>): Ditto.
8207 (avx512f_scalef<mode><mask_name>): Ditto.
8208 (avx512f_getexp<mode><mask_name>): Ditto.
8209 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8210 (avx512f_rndscale<mode><mask_name>): Ditto.
8211 (avx512f_shufps512_1<mask_name>): Ditto.
8212 (avx512f_shufpd512_1<mask_name>): Ditto.
8213 (<plusminus_insn><mode>3<mask_name>): Ditto.
8214 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8215 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8216 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8217 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8218 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8219 (mul<mode>3<mask_name>): Ditto.
8220 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8221 (<shift_insn><mode>3<mask_name>): Ditto.
8222 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8223 (avx512f_<rotate><mode><mask_name>): Ditto.
8224 (<code><mode>3<mask_name>/maxmin): Ditto.
8225 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8226 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8227 (*andnot<mode>3<mask_name>): Ditto.
8228 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8229 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8230 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8231 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8232 (vec_set_lo_<mode><mask_name>): Ditto.
8233 (vec_set_hi_<mode><mask_name>): Ditto.
8234 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8235 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8236 (avx512f_pshufd_1<mask_name>): Ditto.
8237 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8238 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8239 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8240 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8241 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8242 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8243 (avx512er_exp2<mode><mask_name>): Ditto.
8244 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8245 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8246 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8247 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8248 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8249 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8250 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8251 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8252 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8253 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8254 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8255 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8256 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8257 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8258 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8259 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8260 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8261 (avx512f_getmant<mode><mask_name>): Ditto.
8262 (clz<mode>2<mask_name>): Ditto.
8263 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8264 (*srcp14<mode>): Remove visibility.
8265 (*rsqrt14<mode>): Ditto.
8266 (*fma_fmsub_<mode>): Ditto.
8267 (*fma_fnmadd_<mode>): Ditto.
8268 (*avx512f_rndscale<mode>): Ditto.
8269 * config/i386/subst.md: New file.
8271 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8273 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8274 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8275 (atomic_load_explicit, atomic_exchange_explicit)
8276 (atomic_compare_exchange_strong_explicit)
8277 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8278 declare variable initialized with PTR argument.
8280 2013-11-12 Jeff Law <law@redhat.com>
8282 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8283 backedge_seen_p. Set, use and pass it to children appropriately.
8284 (thread_through_normal_block): Similarly.
8285 (thread_across_edge): Similarly.
8287 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8288 memory references as volatile.
8289 (insert_trap_and_remove_trailing_statements): Fix comment.
8291 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8294 * ira-costs.c (record_operand_costs): Check operands number for
8297 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8300 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8301 constraints that would allow DImode into the traditional Altivec
8302 registers, but cause undesirable code generation when loading 0 as
8304 (movdi_internal64): Likewise.
8305 (cmp<mode>_fpr): Do not use %x for CR register output.
8306 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8307 -mallow-upper-sf debug switches are used.
8309 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8311 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8312 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8313 Relocate prototypes from gimple.h.
8314 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8315 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8317 * gimple.h: Move some prototypes to gimplify.h.
8318 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8320 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8321 Relocate from gimpify.c.
8322 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8323 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8324 is_gimple_reg_rhs) Relocate from gimplify.c.
8325 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8326 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8327 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8328 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8329 is_gimple_reg_rhs): Move to gimple-expr.c.
8330 (should_carry_location_p): Move to gimple.c.
8331 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8333 (annotate_one_with_location, annotate_all_with_location_after,
8334 annotate_all_with_location): Move to gimple.c.
8335 (compare_case_labels, sort_case_labels,
8336 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8337 (rhs_predicate_for): Make static.
8338 (gimplify_assign): Relocate from gimple.c.
8339 * gimple.c (gimplify_assign): Move to gimplify.c.
8340 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8341 annotate_one_with_location, annotate_all_with_location_after,
8342 annotate_all_with_location, compare_case_labels, sort_case_labels,
8343 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8344 * tree.h (unshare_expr, unshare_expr_without_location,
8345 mark_addressable): Move prototypes to gimplify.h.
8346 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8348 * asan.c: Include gimplify.h rather than gimple.h.
8349 * cfgloopmanip.c: Likewise.
8350 * cgraphunit.c: Likewise.
8351 * cilk-common.c: Likewise.
8352 * dwarf2out.c: Dont include gimple.h.
8353 * fold-const.c: Include gimplify.h rather than gimple.h.
8354 * function.c: Likewise.
8355 * gimple-fold.c: Likewise.
8356 * gimple-ssa-strength-reduction.c: Likewise.
8357 * graphite-clast-to-gimple.c: Likewise.
8358 * graphite-sese-to-poly.c: Likewise.
8359 * ipa-prop.c: Likewise.
8360 * ipa-split.c: Likewise.
8362 * langhooks.c: Dont include gimple.h.
8363 * loop-init.c: Include gimplify.h rather than gimple.h.
8364 * omp-low.c: Likewise.
8366 * stor-layout.c: Likewise.
8367 * targhooks.c: Likewise.
8368 * trans-mem.c: Likewise.
8369 * tree-affine.c: Likewise.
8370 * tree-cfg.c: Likewise.
8371 * tree-cfgcleanup.c: Likewise.
8372 * tree-complex.c: Likewise.
8373 * tree-if-conv.c: Likewise.
8374 * tree-inline.c: Likewise.
8375 * tree-iterator.c: Likewise.
8376 * tree-loop-distribution.c: Likewise.
8377 * tree-nested.c: Likewise.
8378 * tree-parloops.c: Likewise.
8379 * tree-predcom.c: Likewise.
8380 * tree-profile.c: Likewise.
8381 * tree-scalar-evolution.c: Likewise.
8382 * tree-sra.c: Likewise.
8383 * tree-ssa-address.c: Likewise.
8384 * tree-ssa-ccp.c: Likewise.
8385 * tree-ssa-dce.c: Likewise.
8386 * tree-ssa-forwprop.c: Likewise.
8387 * tree-ssa-ifcombine.c: Likewise.
8388 * tree-ssa-loop-im.c: Likewise.
8389 * tree-ssa-loop-ivopts.c: Likewise.
8390 * tree-ssa-loop-manip.c: Likewise.
8391 * tree-ssa-loop-niter.c: Likewise.
8392 * tree-ssa-loop-prefetch.c: Likewise.
8393 * tree-ssa-loop-unswitch.c: Likewise.
8394 * tree-ssa-math-opts.c: Likewise.
8395 * tree-ssa-phiopt.c: Likewise.
8396 * tree-ssa-phiprop.c: Likewise.
8397 * tree-ssa-pre.c: Likewise.
8398 * tree-ssa-propagate.c: Likewise.
8399 * tree-ssa-reassoc.c: Likewise.
8400 * tree-ssa-sccvn.c: Likewise.
8401 * tree-ssa-strlen.c: Likewise.
8402 * tree-ssa.c: Likewise.
8403 * tree-switch-conversio: Likewise.n.c
8404 * tree-tailcall.c: Likewise.
8405 * tree-vect-data-refs.c: Likewise.
8406 * tree-vect-generic.c: Likewise.
8407 * tree-vect-loop-manip.c: Likewise.
8408 * tree-vect-loop.c: Likewise.
8409 * tree-vect-patterns.c: Likewise.
8410 * tree-vect-stmts.c: Likewise.
8412 * value-prof.c: Likewise.
8413 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8414 * config/alpha/alpha.c: Likewise.
8415 * config/darwin.c: Likewise.
8416 * config/i386/i386.c: Likewise.
8417 * config/ia64/ia64.c: Likewise.
8418 * config/mep/mep.c: Likewise.
8419 * config/mips/mips.c: Likewise.
8420 * config/rs6000/rs6000.c: Likewise.
8421 * config/s390/s390.c: Likewise.
8422 * config/sh/sh.c: Likewise.
8423 * config/sparc/sparc.c: Likewise.
8424 * config/spu/spu.c: Likewise.
8425 * config/stormy16/stormy16.c: Likewise.
8426 * config/tilegx/tilegx.c: Likewise.
8427 * config/tilepro/tilepro.c: Likewise.
8428 * config/xtensa/xtensa.c: Likewise.
8430 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8432 * tree.c (grow_tree_vec_stat): New function ...
8433 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8434 and macro front-end.
8436 2013-11-12 Marek Polacek <polacek@redhat.com>
8438 * final.c (update_alignments): Initialize label to NULL_RTX.
8440 2013-11-12 Jeff Law <law@redhat.com>
8442 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8443 (insert_trap_and_remove_trailing_statements): New argument OP which
8444 is the NULL pointer. Emit the trap after the load/store through
8445 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8446 when trivial to do so.
8447 (isolate_path): Corresponding changes.
8448 (gimple_ssa_isolate_erroneous_path): Likewise.
8450 2013-11-12 Teresa Johnson <tejohnson@google.com>
8451 Jan Hubicka <jh@suse.cz>
8453 * predict.c (drop_profile): New function.
8454 (handle_missing_profiles): Ditto.
8455 (counts_to_freqs): Don't overwrite estimated frequencies
8456 when function has no profile counts.
8457 * predict.h (handle_missing_profiles): Declare.
8458 * tree-inline.c (freqs_to_counts): New function.
8459 (copy_cfg_body): Invoke freqs_to_counts as needed.
8460 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8462 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8465 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8467 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8469 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8472 * config/i386/i386.c (ix86_option_override_internal): Check
8473 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8474 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8475 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8476 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8478 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8479 Clear m_COREI7_AVX and update comments.
8480 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8482 2013-11-12 Martin Jambor <mjambor@suse.cz>
8484 PR rtl-optimization/10474
8485 * ira.c (interesting_dest_for_shprep): New function.
8486 (split_live_ranges_for_shrink_wrap): Likewise.
8487 (find_moveable_pseudos): Move calculation of dominance info,
8488 df_analysios and the final anlyses to...
8489 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8491 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8493 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8494 Handle type conversion.
8496 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8497 Jan Hubicka <jh@suse.cz>
8499 * cgraph.c (dump_cgraph_node): Profile dump added.
8500 * cgraph.h (struct cgraph_node): New time profile variable added.
8501 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8502 * gcov-io.h (gcov_type): New profiler type introduced.
8503 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8504 (input_node): Time profiler is read from LTO stream.
8505 * predict.c (maybe_hot_count_p): Hot prediction changed.
8506 * profile.c (instrument_values): New case for time profiler added.
8507 (compute_value_histograms): Read of time profile.
8508 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8509 * tree-profile.c (init_ic_make_global_vars): Time profiler
8511 (gimple_init_edge_profiler): TP function instrumentation.
8512 (gimple_gen_time_profiler): New.
8513 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8515 (dump_histogram_value): TP type added to dumps.
8516 (visit_hist): More sensitive check that takes TP into account.
8517 (gimple_find_values_to_profile): TP instrumentation.
8518 * value-prof.h (hist_type): New histogram type added.
8519 (struct histogram_value_t): Pointer to struct function added.
8520 * libgcc/Makefile.in: New GCOV merge function for TP added.
8521 * libgcov.c: function_counter variable introduced.
8522 (_gcov_merge_time_profile): New.
8523 (_gcov_time_profiler): New.
8525 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8526 Jeff Law <law@redhat.com>
8528 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8529 ao_ref_init_from_ptr_and_size for builtins.
8531 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8532 H.J. Lu <hongjiu.lu@intel.com>
8535 * config/i386/x86-tune.def
8536 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8537 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8538 * config/i386/i386.h
8539 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8540 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8541 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8542 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8543 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8544 misaligned_prologue_used. Check that
8545 desired_aling <= epilogue_size_needed.
8547 2013-11-11 Cong Hou <congh@google.com>
8549 PR tree-optimization/59050
8550 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8552 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8555 * expmed.c (emit_store_flag): Fail for const-const comparison.
8557 2013-11-11 Tristan Gingold <gingold@adacore.com>
8558 Eric Botcazou <ebotcazou@adacore.com>
8560 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8561 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8562 * tree.def (CONSTRUCTOR): Likewise.
8563 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8564 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8565 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8567 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8569 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8572 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8574 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8577 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8579 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8581 2013-11-08 Jeff Law <law@redhat.com>
8583 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8584 threading paths first, then perform PHI node checks if applicable.
8586 2013-11-10 Karlson2k <k2k@narod.ru>
8587 Kai Tietz <ktietz@redhat.com>
8590 * configure.ac: Adding for exported symbols check
8591 and for rdynamic-check executable-extension.
8592 * configure: Regenerated.
8594 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8596 * mode-switching.c (optimize_mode_switching): Mark block as
8597 nontransparent, if last_mode at block exit is different from no_mode.
8599 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8601 * function.c (NAME__MAIN): Move to...
8602 * cfgexpand.c (NAME__MAIN): ...here.
8604 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8606 * target.def (can_use_doloop_p): New hook.
8607 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8608 * doc/tm.texi: Regenerate.
8609 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8610 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8611 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8612 * targhooks.h (can_use_doloop_if_innermost): Declare.
8613 * targhooks.c (can_use_doloop_if_innermost): New function.
8614 * target.h: Include double-int.h.
8615 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8616 Remove iteration count, maximum iteration count, loop depth and
8617 enter-at-top inputs from doloop_begin and doloop_end.
8618 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8620 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8621 (TARGET_CAN_USE_DOLOOP_P): Define.
8622 * config/arm/thumb2.md (doloop_end): Update for new interface.
8623 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8624 * config/bfin/bfin.md (doloop_end): Update for new interface.
8625 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8626 (TARGET_CAN_USE_DOLOOP_P): Define.
8627 * config/c6x/c6x.md (doloop_end): Update for new interface.
8628 * config/ia64/ia64.md (doloop_end): Update for new interface.
8629 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8630 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8632 * config/mep/mep.c (mep_emit_doloop): Likewise.
8633 (TARGET_CAN_USE_DOLOOP_P): Define.
8634 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8635 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8636 * config/s390/s390.md (doloop_end): Update for new interface.
8637 * config/sh/sh.md (doloop_end): Likewise.
8638 * config/spu/spu.md (doloop_end): Likewise.
8639 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8640 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8641 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8642 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8643 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8644 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8646 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8648 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8651 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8654 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8655 Joseph Myers <joseph@codesourcery.com>
8657 * ginclude/stdatomic.h: New file.
8658 * Makefile.in (USER_H): Add stdatomic.h.
8660 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8662 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8665 2013-11-08 Jeff Law <law@redhat.com>
8667 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8668 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8669 (ssa_redirect_edges, thread_block_1): Use it.
8670 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8671 (thread_through_all_blocks, register_jump_thread): Likewise.
8672 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8674 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8676 * config/arm/aarch-common.c
8677 (search_term): New typedef.
8678 (shift_rtx_costs): New array.
8679 (arm_rtx_shift_left_p): New.
8680 (arm_find_sub_rtx_with_search_term): Likewise.
8681 (arm_find_sub_rtx_with_code): Likewise.
8682 (arm_early_load_addr_dep): Add sanity checking.
8683 (arm_no_early_alu_shift_dep): Likewise.
8684 (arm_no_early_alu_shift_value_dep): Likewise.
8685 (arm_no_early_mul_dep): Likewise.
8686 (arm_no_early_store_addr_dep): Likewise.
8688 2013-11-08 Richard Biener <rguenther@suse.de>
8690 PR tree-optimization/59047
8691 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8693 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8695 * common.opt (fcheck-pointer-bounds): Move to ...
8696 * c-family/c.opt: ... here.
8697 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8698 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8699 * langhooks.h (lang_hooks): Remove chkp_supported field.
8700 * toplev.c (process_options): Remove chkp_supported check.
8702 2013-11-08 Richard Biener <rguenther@suse.de>
8704 PR tree-optimization/59038
8705 PR tree-optimization/58955
8706 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8707 previous change. Handle known dependences correctly.
8709 2013-11-08 Tom de Vries <tom@codesourcery.com>
8711 * config/rs6000/t-xilinx: Remove duplicate contents.
8713 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8714 Joseph Myers <joseph@codesourcery.com>
8716 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8717 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8718 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8719 (struct tree_base): Add atomic_flag field.
8720 * tree.h (TYPE_ATOMIC): New accessor macro.
8721 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8722 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8723 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8724 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8725 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8726 (find_atomic_core_type): New function.
8727 (build_qualified_type): Adjust alignment for qualified types.
8728 (build_atomic_base): New function
8729 (build_common_tree_nodes): Build atomicQI_type_node,
8730 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8732 * print-tree.c (print_node): Print atomic qualifier.
8733 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8734 * target.def (atomic_assign_expand_fenv): New hook.
8735 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8736 * doc/tm.texi: Regenerate.
8737 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8738 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8739 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8740 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8742 * config/i386/i386.c (enum ix86_builtins): Add
8743 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8744 IX86_BUILTIN_FNCLEX.
8745 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8746 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8747 (ix86_expand_builtin): Handle the new built-in functions.
8748 (ix86_atomic_assign_expand_fenv): New function.
8749 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8750 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8751 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8752 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8754 2013-11-07 Steve Ellcey <sellcey@mips.com>
8756 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8757 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8758 (MULTILIB_DIRNAMES): Add fp64 directory.
8759 (MULTILIB_EXCEPTIONS): Add new exclusions.
8761 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8763 * gimplify.c (gimple_regimplify_operands): Do not set
8765 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8766 (rewrite_close_phi_out_of_ssa): Same.
8767 (rewrite_phi_out_of_ssa): Same.
8768 (rewrite_degenerate_phi): Same.
8769 (handle_scalar_deps_crossing_scop_limits): Same.
8770 * tree-if-conv.c (predicate_scalar_phi): Same.
8771 * tree-parloops.c (create_loads_for_reductions): Same.
8772 (create_final_loads_for_reduction): Same.
8773 (create_loads_and_stores_for_name): Same.
8774 (transform_to_exit_first_loop): Same.
8775 (create_parallel_loop): Same.
8776 * tree-ssa-loop-im.c
8777 (move_computations_dom_walker::before_dom_children): Same.
8778 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8779 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8780 * tree-ssa-propagate.c (substitute_and_fold): Same.
8781 * tree-vect-loop.c (vect_finalize_reduction): Same.
8782 * tree-vect-stmts.c (vectorizable_call): Same.
8784 2013-11-07 Mike Stump <mikestump@comcast.net>
8786 * config/pdp11/pdp11.c: Include dbxout.h.
8787 * config/picochip/picochip.c: Likewise.
8789 2013-11-07 Cong Hou <congh@google.com>
8791 PR tree-optimization/56764
8792 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8793 Combine alias checks if it is possible to amortize the runtime
8794 overhead. Return the number of alias checks after merging.
8795 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8796 Use the function vect_create_cond_for_alias_checks () to check
8797 the number of alias checks.
8799 2013-11-07 Jeff Law <law@redhat.com>
8801 * varpool.c (ctor_for_folding): Fix typo in comment.
8803 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8805 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8806 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8808 2013-11-07 Jeff Law <law@redhat.com>
8810 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8812 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8813 No longer check if we have __builtin_trap, assume it's available.
8815 2013-11-07 Diego Novillo <dnovillo@google.com>
8817 * attribs.c (lookup_scoped_attribute_spec): Make static.
8818 (get_attribute_namespace): Likewise.
8819 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8820 (validate_arglist): Move earlier in the file. Make static.
8821 (expand_stack_restore): Move from stmt.c
8822 (expand_stack_save): Move from stmt.c
8823 (rewrite_call_expr_array): Move earlier in the file.
8824 (rewrite_call_expr_valist): Likewise.
8825 * cfgexpand.c: Include hard-reg-set.h before tree.h
8828 (expand_asm_loc): Move from stmt.c.
8829 (n_occurrences): Move from stmt.c.
8830 (check_operand_nalternatives): Move from stmt.c.
8831 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8832 (expand_asm_operands): Move from stmt.c
8833 (expand_asm_stmt): Move from stmt.c
8834 (expand_computed_goto): Move from stmt.c
8835 (expand_goto): Move from stmt.c
8836 (expand_null_return_1): Move from stmt.c
8837 (expand_null_return): Move from stmt.c
8838 (expand_value_return): Move from stmt.c
8839 (expand_return): Move from stmt.c
8840 (expand_main_function): Move from function.c
8841 (stack_protect_prologue): Move from function.c
8842 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8843 (build_function_decl_skip_args): Move from tree.c.
8844 * explow.c (tree_expr_size): Move from tree.c.
8845 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8846 (fields_length): Move from tree.c.
8847 * fold-const.c (size_low_cst): Move from tree.c.
8848 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8849 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8850 (fold_build3_initializer_loc): Remove.
8851 (tree_invalid_nonnegative_warnv_p): Make static.
8852 * function.c (expand_main_function): Move to cfgexpand.c.
8853 (stack_protect_prologue): Move to cfgexpand.c.
8854 (set_insn_locations): Move earlier in the file.
8855 * gimple-fold.c: Include langhooks.h.
8856 (truth_type_for): Move from tree.c.
8857 * print-tree.c (print_vec_tree): Remove.
8858 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8859 (expand_goto): Move to cfgexpand.c.
8860 (n_occurrences): Move to cfgexpand.c.
8861 (expand_asm_loc): Move to cfgexpand.c
8862 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8863 (expand_asm_operands): Move to cfgexpand.c.
8864 (expand_asm_stmt): Move to cfgexpand.c.
8865 (check_operand_nalternatives): Move to cfgexpand.c
8866 (expand_null_return): Move to cfgexpand.c.
8867 (expand_value_return): Move to cfgexpand.c.
8868 (expand_null_return_1): Move to cfgexpand.c.
8869 (expand_return): Move to cfgexpand.c.
8870 (expand_stack_save): Move to builtins.c.
8871 (expand_stack_restore): Move to builtins.c
8872 * symtab.c: Include output.h.
8873 (decl_assembler_name_hash): Move from tree.c.
8874 (decl_assembler_name_equal): Move from tree.c.
8875 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8876 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8877 (range_in_array_bounds_p): Move from tree.c.
8878 * tree-object-size.c (fini_object_sizes): Make static.
8879 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8880 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8881 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8882 (tree_expr_size): Move to explow.c.
8883 (decl_assembler_name_hash): Move to symtab.c.
8884 (real_twop): Remove.
8885 (tree_expr_size): Move to explow.c.
8886 (stabilize_reference_1): Move earlier in the file. Make static.
8887 (omp_remove_redundant_declare_simd_attrs): Remove.
8888 (simple_cst_list_equal): Move earlier in the file. Make static.
8889 (size_low_cst): Move to fold-const.c.
8890 (build_type_no_quals): Remove.
8891 (build_function_type_skip_args): Move to cgraphclones.c.
8892 (build_function_decl_skip_args): Move to cgraphclones.c.
8893 (in_array_bounds_p): Move to tree-eh.c.
8894 (range_in_array_bounds_p): Move to tree-eh.c.
8895 (truth_type_for): Move to gimple-fold.c.
8896 (list_equal_p): Remove.
8897 * tree.h (decl_assembler_name_equal): Remove.
8898 (decl_assembler_name_hash): Remove.
8899 (truth_type_for): Remove.
8900 (build_type_no_quals): Remove.
8901 (build_function_decl_skip_args): Remove.
8902 (in_array_bounds_p): Remove.
8903 (range_in_array_bounds_p): Remove.
8904 (size_low_cst): Remove.
8905 (omp_remove_redundant_declare_simd_attrs): Remove.
8906 (tree_expr_size): Remove.
8907 (fields_length): Remove.
8908 (stabilize_reference_1): Remove.
8909 (expand_goto): Remove.
8910 (expand_stack_save): Remove.
8911 (expand_stack_restore): Remove.
8912 (expand_return): Remove.
8913 (fold_build3_initializer_loc): Remove.
8914 (tree_expr_nonzero_p): Remove.
8915 (tree_invalid_nonnegative_warnv_p): Remove.
8916 (tree_expr_nonzero_warnv_p): Remove.
8917 (fold_builtin_snprintf_chk): Remove.
8918 (validate_arglist): Remove.
8919 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8920 (simple_cst_list_equal): Remove.
8921 (real_twop): Remove.
8922 (expand_main_function): Remove.
8923 (stack_protect_prologue): Remove.
8924 (print_vec_tree): Remove.
8925 (lookup_scoped_attribute_spec): Remove.
8926 (get_attribute_namespace): Remove.
8927 (expand_computed_goto): Remove.
8928 (expand_asm_stmt): Remove.
8929 (list_equal_p): Remove.
8930 (ssa_name_nonnegative_p): Remove.
8931 (fini_object_sizes): Remove.
8932 (addr_expr_of_non_mem_decl_p): Remove.
8933 (is_tm_safe_or_pure): Move to trans-mem.c.
8934 (more_const_call_expr_args_p): Remove.
8935 (save_vtable_map_decl): Remove.
8937 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8939 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8940 linker plugins, too.
8942 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8943 link to libgomp and its dependencies.
8944 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8945 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8946 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8947 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8949 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8951 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8952 (determine_value_range): Add loop argument. Use get_range_info to
8954 (bound_difference): Adjust caller.
8956 2013-11-07 Richard Biener <rguenther@suse.de>
8957 Jakub Jelinek <jakub@redhat.com>
8959 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8960 latches from header PHI arguments from the latch edge.
8962 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8965 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8967 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8969 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8970 misaligned_prologue_used when it has been set.
8972 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8973 Jakub Jelinek <jakub@redhat.com>
8976 * asan.c (get_mem_refs_of_builtin_call): Allow
8977 integer literals as addresses in instrumented builtins.
8979 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8981 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8982 Explain why plus_constant is not used.
8984 2013-11-07 Richard Biener <rguenther@suse.de>
8986 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8987 (canonicalize_value): ... this. Also handle stripping of
8989 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8990 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8991 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8993 2013-11-07 Richard Biener <rguenther@suse.de>
8995 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8997 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9000 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9001 with stack_pointer_rtx.
9003 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9005 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9006 using operand_equal_p.
9008 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9010 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9011 * tree-affine.c (get_inner_reference_aff): Return base.
9012 * tree-affine.h (get_inner_reference_aff): Change prototype.
9014 2013-11-06 Tobias Burnus <burnus@net-b.de>
9016 * doc/invoke.texi (Wdate-time): Fix typo.
9018 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9020 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9021 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9022 fp_arith_reg_operand instead of arith_reg_operand.
9024 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9026 * config/sh/sh.md (adddi3): Remove empty constraints.
9027 Remove can_create_pseudo_p and arith_reg_operand check.
9028 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9029 Split before reload.
9031 2013-11-06 Jeff Law <law@redhat.com>
9032 Tom Tromey <tromey@redhat.com>
9034 * gdbinit.in: Disable strict type checking.
9036 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9038 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9039 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9040 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9041 (rest_of_handle_live_range_shrinkage): Ditto
9042 (class pass_live_range_shrinkage): Ditto.
9043 (pass_data_live_range_shrinkage): Ditto.
9044 (make_pass_live_range_shrinkage): Ditto.
9045 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9046 (finish_live_range_shrinkage): Ditto.
9047 * sched-deps.c (create_insn_reg_set): Make void return value.
9048 * passes.def: Add pass_live_range_shrinkage.
9049 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9050 * haifa-sched.c (live_range_shrinkage_p): New.
9051 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9053 (rank_for_schedule): Add code for pressure relief through live
9055 (schedule_insn): Print more debug info.
9056 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9057 through live range shrinkage.
9058 * doc/invoke.texi (-flive-range-shrinkage): New.
9059 * common.opt (flive-range-shrinkage): New.
9061 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9064 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9065 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9066 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9067 RTXes that return in AVX256 register.
9069 2013-11-06 Richard Biener <rguenther@suse.de>
9071 PR tree-optimization/58653
9072 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9073 (prepare_initializers_chain): Adjust.
9075 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9077 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9078 (gimple_in_transaction): Use bb_in_transaction.
9079 * basic-block.h (bb_in_transaction): Relocate here and rename.
9080 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9082 2013-11-06 Richard Biener <rguenther@suse.de>
9084 * tree.c (drop_tree_overflow): New function.
9085 * tree.h (drop_tree_overflow): Declare.
9086 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9087 * tree-vrp.c (range_int_cst_singleton_p): Use
9088 is_overflow_infinity instead of testing TREE_OVERFLOW.
9089 (extract_range_from_assert): Likewise.
9090 (zero_nonzero_bits_from_vr): Likewise.
9091 (extract_range_basic): Likewise.
9092 (register_new_assert_for): Use drop_tree_overflow.
9093 (vrp_visit_phi_node): Likewise.
9095 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9097 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9098 checking for leaf functions without dynamic stack allocation.
9099 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9100 (ia64_expand_prologue): Likewise.
9101 * config/mips/mips.c (mips_expand_prologue): Likewise.
9102 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9103 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9104 (sparc_flat_expand_prologue): Likewise.
9106 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9108 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9109 (__ST3_LANE_FUNC): Likewise.
9110 (__ST4_LANE_FUNC): Likewise.
9112 2013-11-06 Nick Clifton <nickc@redhat.com>
9114 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9115 name returned by msp430_mcu_name.
9116 (LIB_SPEC): If a -T option has not been specified then set a
9117 default, mcu-specific, linker script.
9118 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9119 * config/msp430/msp430.c (msp430x_names): Likewise.
9120 Alpha sort the names for ease of comparison.
9121 (msp430_mcu_name): New function: Returns a string suitable for
9122 use as a C preprocessor symbol based upon the name of the MCU
9124 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9126 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9128 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9129 unless it is the last part of a spec substring.
9130 * doc/invoke.texi (Spec Files): Document space insertion
9133 2013-11-06 Christian Bruel <christian.bruel@st.com>
9135 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9136 Factorize probabilities, Use adjust_address instead of
9137 adjust_automodify_address when possible. Enable for optimize.
9138 (sh_expand_strlen): New function.
9139 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9140 * config/sh/sh.md (strlensi): New pattern.
9141 (UNSPEC_BUILTIN_STRLEN): Define.
9143 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9146 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9147 (expand_assignment): If *bitpos is negative, set *offset
9148 and adjust *bitpos, so that it is not negative.
9150 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9152 * config/i386/bdver3.md : Added two additional decoder units
9153 to support issue rate of 4 and remodeled vector unit.
9154 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9155 architectures is set to 4.
9156 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9157 lookahead is set to 4 for BD architectures.
9159 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9161 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9162 Remove restriction against use of VSX instructions when generating
9163 code for little endian mode.
9165 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9167 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9168 for both big and little endian.
9169 (mulv8hi3): Swap input operands for merge high and merge low
9170 instructions for little endian.
9172 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9174 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9175 define_insn to define_expand that uses even patterns for big
9176 endian and odd patterns for little endian.
9177 (vec_widen_smult_even_v16qi): Likewise.
9178 (vec_widen_umult_even_v8hi): Likewise.
9179 (vec_widen_smult_even_v8hi): Likewise.
9180 (vec_widen_umult_odd_v16qi): Likewise.
9181 (vec_widen_smult_odd_v16qi): Likewise.
9182 (vec_widen_umult_odd_v8hi): Likewise.
9183 (vec_widen_smult_odd_v8hi): Likewise.
9184 (altivec_vmuleub): New define_insn.
9185 (altivec_vmuloub): Likewise.
9186 (altivec_vmulesb): Likewise.
9187 (altivec_vmulosb): Likewise.
9188 (altivec_vmuleuh): Likewise.
9189 (altivec_vmulouh): Likewise.
9190 (altivec_vmulesh): Likewise.
9191 (altivec_vmulosh): Likewise.
9193 2013-11-05 Mike Stump <mikestump@comcast.net>
9195 * Makefile.in (mostlyclean): Remove c-family objects.
9197 2013-11-05 Ian Lance Taylor <iant@google.com>
9199 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9200 If possible, add .cfi directives to record change to bx.
9201 * config/i386/i386.c (ix86_emit_cfi): New function.
9202 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9204 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9206 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9207 immediately after a label for a tablejump pattern.
9209 * config/arm/arm.c (is_jump_table): Remove.
9210 (create_fix_barrier): Use tablejump_p instead.
9211 (arm_reorg): Likewise.
9212 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9213 (thumb2_output_casesi): Likewise.
9214 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9215 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9216 casesi_shift_media, casesi_load_media): Likewise.
9217 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9218 * config/microblaze/microblaze.md: Likewise.
9220 2013-11-05 Tobias Burnus <burnus@net-b.de>
9222 * doc/invoke.texi (-Wdate-time): Document.
9224 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9226 * double-int.c (lshift_double, rshift_double): Remove
9227 SHIFT_COUNT_TRUNCATED handling.
9229 2013-11-05 Jeff Law <law@redhat.com>
9231 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9232 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9233 * gimple-ssa-isolate-paths.c: New file.
9234 * gimple.c (check_loadstore): New function.
9235 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9236 Verify OP is in the argument list and the argument corresponding
9237 to OP is a pointer type. Use operand_equal_p rather than
9238 pointer equality when testing if OP is on the nonnull list.
9239 Use check_loadstore rather than count_ptr_derefs. Handle
9240 GIMPLE_RETURN statements.
9241 * tree-vrp.c (infer_nonnull_range): Remove.
9242 * gimple.h (infer_nonnull_range): Declare.
9243 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9244 * passes.def: Add pass_isolate_erroneous_paths.
9245 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9246 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9247 * tree-ssa.c (struct count_ptr_d): Remove.
9248 (count_ptr_derefs, count_uses_and_derefs): Remove.
9249 * tree-ssa.h (count_uses_and_derefs): Remove.
9251 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9253 PR rtl-optimization/58997
9254 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9255 get_iv_value to be in iv->mode rather than iv->extend_mode.
9256 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9257 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9258 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9261 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9263 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9265 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9266 Move to gimple-expr.h.
9267 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9268 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9269 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9270 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9272 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9273 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9274 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9275 is_gimple_address, is_gimple_invariant_address,
9276 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9277 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9278 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9279 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9280 gimple_decl_printable_name, useless_type_conversion_p,
9281 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9283 * gimple-expr.c: New File.
9284 (useless_type_conversion_p, gimple_set_body, gimple_body,
9285 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9286 gimple_can_coalesce_p, extract_ops_from_tree_1,
9287 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9288 is_gimple_address, is_gimple_invariant_address,
9289 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9290 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9291 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9292 is_gimple_mem_ref_addr): Relocate here.
9293 * Makefile.in (OBJS): Add gimple-expr.o.
9295 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9297 * gengtype-parse.c (struct_field_seq): Support empty structs.
9299 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9301 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9303 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9305 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9307 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9309 (LONG_DOUBLE_TYPE_SIZE): New define.
9310 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9312 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9315 * doc/extend.texi [visibility ("visibility_type")]: Add example
9316 about visibility attribute on namespace declaration.
9318 2013-11-05 Richard Biener <rguenther@suse.de>
9321 * passes.def (all_passes): Start with pass_fixup_cfg again.
9323 2013-11-05 Richard Biener <rguenther@suse.de>
9325 PR tree-optimization/58955
9326 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9329 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9331 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9333 (vec_pack_ufix_trunc_v2df): Likewise.
9335 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9338 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9339 pattern, instead of word_mode.
9341 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9343 (set_storage_via_setmem): Likewise.
9345 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9347 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9348 gimple.h and the rest of the condition in eliminate_build.
9349 (eliminate_build): Call new routine.
9350 * gimple.h (phi_ssa_name_p): Delete.
9352 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9354 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9355 case of no prefix and reserving zero slots, because when that's the
9356 case we'll never get here.
9357 * vec.h (va_heap::reserve): Don't try and handle
9358 vec_prefix::calculate_allocation returning zero because that should
9361 2013-11-05 Richard Biener <rguenther@suse.de>
9364 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9365 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9366 process trailing array detection before diving into the
9367 view-converted object (and possibly apply some extra offset).
9369 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9371 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9373 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9375 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9377 PR tree-optimization/58958
9378 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9379 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9381 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9383 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9384 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9386 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9388 PR tree-optimization/58984
9389 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9390 set *SIZE_P if non-NULL on success.
9391 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9393 (ipcp_transform_function): Likewise. Punt if size of access
9394 is different from TYPE_SIZE on v->value's type.
9396 2013-11-05 Tobias Burnus <burnus@net-b.de>
9398 * doc/invoke.texi (-fopenmp-simd): Document new option.
9399 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9400 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9401 * tree.c (attribute_value_equal): Ditto.
9403 2013-11-04 Wei Mi <wmi@google.com>
9405 * sched-rgn.c (add_branch_dependences): Keep insns in
9406 a SCHED_GROUP at the end of BB to remain their location.
9408 2013-11-04 Wei Mi <wmi@google.com>
9410 * config/i386/i386.c (memory_address_length): Extract a part
9411 of code to rip_relative_addr_p.
9412 (rip_relative_addr_p): New Function.
9413 (ix86_macro_fusion_p): Ditto.
9414 (ix86_macro_fusion_pair_p): Ditto.
9415 * config/i386/i386.h: Add new tune features about macro-fusion.
9416 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9417 * doc/tm.texi: Generated.
9418 * doc/tm.texi.in: Ditto.
9419 * haifa-sched.c (try_group_insn): New Function.
9420 (group_insns_for_macro_fusion): Ditto.
9421 (sched_init): Call group_insns_for_macro_fusion.
9422 * target.def: Add two hooks: macro_fusion_p and
9423 macro_fusion_pair_p.
9425 2013-11-04 Kostya Serebryany <kcc@google.com>
9427 Update to match the changed asan API.
9428 * asan.c (asan_function_start): New function.
9429 (asan_emit_stack_protection): Update the string stored in the
9430 stack red zone to match new API. Store the PC of the current
9431 function in the red zone.
9432 (asan_global_struct): Update the __asan_global definition to match
9434 (asan_add_global): Ditto.
9435 * asan.h (asan_function_start): New prototype.
9436 * final.c (final_start_function): Call asan_function_start.
9437 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9440 2013-11-04 Wei Mi <wmi@google.com>
9442 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9443 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9444 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9445 (ix86_issue_rate): Ditto.
9446 (ix86_adjust_cost): Ditto.
9447 (ia32_multipass_dfa_lookahead): Ditto.
9448 (ix86_sched_init_global): Ditto.
9449 (get_builtin_code_for_version): Ditto.
9450 * config/i386/i386.h (enum target_cpu_default): Ditto.
9451 (enum processor_type): Ditto.
9452 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9454 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9456 PR rtl-optimization/58967
9457 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9458 !lra_in_progress for mode sizes bigger word.
9460 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9462 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9463 arguments to merge instruction for little endian.
9464 (vec_widen_umult_lo_v16qi): Likewise.
9465 (vec_widen_smult_hi_v16qi): Likewise.
9466 (vec_widen_smult_lo_v16qi): Likewise.
9467 (vec_widen_umult_hi_v8hi): Likewise.
9468 (vec_widen_umult_lo_v8hi): Likewise.
9469 (vec_widen_smult_hi_v8hi): Likewise.
9470 (vec_widen_smult_lo_v8hi): Likewise.
9472 2013-11-04 Ian Lance Taylor <iant@google.com>
9474 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9475 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9476 builtins that take pointers.
9477 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9478 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9479 (run_gcc): Pass -fnon-call-exceptions.
9481 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9483 * optabs.c (expand_vec_perm): Revert one incorrect line from
9486 PR tree-optimization/58978
9487 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9488 use_stmt by single_imm_use directly. Only call single_imm_use
9491 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9493 PR rtl-optimization/58968
9494 * lra-spills.c (return_regno_p): New function.
9495 (lra_final_code_change): Use it.
9497 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9499 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9500 * target.def (float_exceptions_rounding_supported_p): New hook.
9501 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9503 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9504 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9506 * doc/tm.texi: Regenerate.
9507 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9508 * config/rs6000/rs6000-linux.c: New file.
9509 * config/rs6000/rs6000-protos.h
9510 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9511 * config/rs6000/linux.h
9512 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9513 * config/rs6000/linux64.h
9514 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9515 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9516 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9518 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9520 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9521 Replace the define_insn_and_split with a define_insn and two
9522 define_splits, with the split after reload re-permuting the source
9523 register to its original value.
9524 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9525 (*vsx_le_perm_store_v8hi): Likewise.
9526 (*vsx_le_perm_store_v16qi): Likewise.
9528 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9530 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9533 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9535 PR tree-optimization/58946
9536 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9537 bbs with bbinfo[idx].op != NULL before all blocks with
9538 bbinfo[idx].op == NULL.
9540 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9542 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9543 (avr_dump_double_int_hex): Likewise.
9544 (avr_log_vadump): Remove %D and %X handling.
9545 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9546 (avr_map_op_t): Change map from double_int to unsigned int.
9547 (avr_map_op): Update accordingly.
9548 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9549 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9550 unsigned ints rather than double_ints.
9552 2013-11-03 Marek Polacek <polacek@redhat.com>
9554 Implement -fsanitize=vla-bound.
9555 * opts.c (common_handle_option): Handle vla-bound.
9556 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9557 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9558 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9560 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9562 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9565 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9567 * config/i386/constraints.md (Ts, Tv): New address constrains.
9568 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9569 constraint for address_no_seg_operand.
9570 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9571 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9572 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9573 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9574 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9575 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9576 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9577 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9578 constraint for vsib_address_operand.
9580 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9582 * gcse.c (pre_delete): Remove references to regmove from comments.
9583 * recog.c: (validate_replace_rtx_1): Likewise.
9584 * config/rl78/rl78.c: Likewise.
9585 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9586 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9587 * common/config/mmix/mmix-common.c: Likewise.
9589 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9591 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9592 * gimplify.c (gimplify_compound_lval): Likewise.
9593 * graphite-clast-to-gimple.c (gloog): Likewise.
9594 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9595 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9596 (limit_scop); Likewise.
9597 (build_scops): Likewise.
9598 (dot_scop): Likewise.
9599 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9600 (build_scop_drs): Likewise.
9601 (insert_stmts): Likewise.
9602 (insert_out_of_ssa_copy): Likewise.
9603 (remove_phi): Likewise.
9604 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9605 * hw-doloop.c (discover_loop): Likewise.
9606 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9607 * tree-dfa.c (dump_enumerated_decls): Likewise.
9608 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9609 * tree-inline.c (tree_function_versioning): Likewise.
9610 * tree-loop-distribution.c (build_rdg): Likewise.
9611 (rdg_flag_vertex_and_dependent): Likewise.
9612 (distribute_loop): Likewise.
9613 * tree-parloops.c (loop_parallel_p): Likewise.
9614 (eliminate_local_variables): Likewise.
9615 (separate_decls_in_region): Likewise.
9616 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9617 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9618 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9619 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9620 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9621 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9622 (vectorizable_condition): Likewise.
9624 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9626 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9627 * configure: Regenerate.
9628 * config/i386/i386.md (*movdi_internal): Change
9629 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9630 (*movdf_internal): Ditto.
9631 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9632 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9633 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9635 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9637 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9640 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9642 Automated part of renaming of symtab_node_base to symtab_node.
9644 Patch autogenerated by rename_symtab.py from
9645 https://github.com/davidmalcolm/gcc-refactoring-scripts
9646 revision 58bb219cc090b2f4516a9297d868c245495ee622
9647 with ChangeLog entry fixed up by hand.
9649 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9651 (cgraph_node_for_asm): Likewise.
9652 * cgraph.h (symtab_node_base): Likewise.
9653 (cgraph_node): Likewise.
9654 (varpool_node): Likewise.
9655 (is_a_helper <cgraph_node>::test): Likewise.
9656 (is_a_helper <varpool_node>::test): Likewise.
9657 (symtab_nodes): Likewise.
9658 (symtab_register_node): Likewise.
9659 (symtab_unregister_node): Likewise.
9660 (symtab_remove_node): Likewise.
9661 (symtab_get_node): Likewise.
9662 (symtab_node_for_asm): Likewise.
9663 (symtab_node_asm_name): Likewise.
9664 (symtab_node_name): Likewise.
9665 (symtab_insert_node_to_hashtable): Likewise.
9666 (symtab_add_to_same_comdat_group): Likewise.
9667 (symtab_dissolve_same_comdat_group_list): Likewise.
9668 (dump_symtab_node): Likewise.
9669 (debug_symtab_node): Likewise.
9670 (dump_symtab_base): Likewise.
9671 (verify_symtab_node): Likewise.
9672 (verify_symtab_base): Likewise.
9673 (symtab_used_from_object_file_p): Likewise.
9674 (symtab_alias_ultimate_target): Likewise.
9675 (symtab_resolve_alias): Likewise.
9676 (fixup_same_cpp_alias_visibility): Likewise.
9677 (symtab_for_node_and_aliases): Likewise.
9678 (symtab_nonoverwritable_alias): Likewise.
9679 (availability symtab_node_availability): Likewise.
9680 (symtab_semantically_equivalent_p): Likewise.
9681 (fixup_same_cpp_alias_visibility): Likewise.
9682 (symtab_prevail_in_asm_name_hash): Likewise.
9684 (varpool): Likewise.
9685 (varpool_first_variable): Likewise.
9686 (varpool_next_variable): Likewise.
9687 (varpool_first_static_initializer): Likewise.
9688 (varpool_next_static_initializer): Likewise.
9689 (varpool_first_defined_variable): Likewise.
9690 (varpool_next_defined_variable): Likewise.
9691 (cgraph_first_defined_function): Likewise.
9692 (cgraph_next_defined_function): Likewise.
9693 (cgraph_first_function): Likewise.
9694 (cgraph_next_function): Likewise.
9695 (cgraph_first_function_with_gimple_body): Likewise.
9696 (cgraph_next_function_with_gimple_body): Likewise.
9697 (symtab_alias_target): Likewise.
9698 (symtab_real_symbol_p): Likewise.
9699 (symtab_can_be_discarded): Likewise.
9700 * cgraphbuild.c (mark_address): Likewise.
9701 (mark_load): Likewise.
9702 (mark_store): Likewise.
9703 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9705 (enqueue_node): Likewise.
9706 (referred_to_p): Likewise.
9707 (cgraph_process_same_body_aliases): Likewise.
9708 (analyze_functions): Likewise.
9709 (handle_alias_pairs): Likewise.
9710 (output_weakrefs): Likewise.
9711 (compile): Likewise.
9712 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9713 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9714 * ipa-prop.c (remove_described_reference): Likewise.
9715 (try_decrement_rdesc_refcount): Likewise.
9716 (ipa_edge_duplication_hook): Likewise.
9717 * ipa-ref.c (ipa_record_reference): Likewise.
9718 (ipa_maybe_record_reference): Likewise.
9719 (ipa_clone_ref): Likewise.
9720 (ipa_clone_references): Likewise.
9721 (ipa_clone_referring): Likewise.
9722 (ipa_find_reference): Likewise.
9723 (ipa_remove_stmt_references): Likewise.
9724 (ipa_clear_stmts_in_references): Likewise.
9725 * ipa-ref.h (symtab_node_base): Likewise.
9726 (ipa_ref): Likewise.
9727 (ipa_record_reference): Likewise.
9728 (ipa_maybe_record_reference): Likewise.
9729 (ipa_clone_references): Likewise.
9730 (ipa_clone_referring): Likewise.
9731 (ipa_clone_ref): Likewise.
9732 (ipa_find_reference): Likewise.
9733 (ipa_remove_stmt_references): Likewise.
9734 (ipa_clear_stmts_in_references): Likewise.
9735 * ipa-reference.c (ipa_reference_write_optimization_summary):
9737 * ipa.c (enqueue_node): Likewise.
9738 (process_references): Likewise.
9739 (walk_polymorphic_call_targets): Likewise.
9740 (symtab_remove_unreachable_nodes): Likewise.
9741 (address_taken_from_non_vtable_p): Likewise.
9742 (comdat_can_be_unshared_p_1): Likewise.
9743 (comdat_can_be_unshared_p): Likewise.
9744 (can_replace_by_local_alias): Likewise.
9745 (function_and_variable_visibility): Likewise.
9746 * is-a.h: Likewise (within example in comment).
9747 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9748 (lto_symtab_encoder_encode): Likewise.
9749 (lto_symtab_encoder_delete_node): Likewise.
9750 (lto_symtab_encoder_in_partition_p): Likewise.
9751 (lto_set_symtab_encoder_in_partition): Likewise.
9752 (output_refs): Likewise.
9753 (compute_ltrans_boundary): Likewise.
9754 (output_symtab): Likewise.
9755 (input_node): Likewise.
9756 (input_ref): Likewise.
9757 (input_edge): Likewise.
9758 (input_cgraph_1): Likewise.
9759 (input_refs): Likewise.
9760 (output_cgraph_opt_summary): Likewise.
9761 (input_node_opt_summary): Likewise.
9762 (input_cgraph_opt_section): Likewise.
9763 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9765 * lto-streamer-out.c (lto_output): Likewise.
9766 (output_symbol_p): Likewise.
9767 (produce_symtab): Likewise.
9768 * lto-streamer.h (lto_encoder_entry): Likewise.
9769 (lto_free_function_in_decl_state_for_node): Likewise.
9770 (lto_symtab_encoder_encode): Likewise.
9771 (lto_symtab_encoder_delete_node): Likewise.
9772 (lto_symtab_encoder_in_partition_p): Likewise.
9773 (lto_set_symtab_encoder_in_partition): Likewise.
9774 (lto_symtab_encoder_lookup): Likewise.
9775 (lsei_node): Likewise.
9776 (lto_symtab_encoder_deref): Likewise.
9777 * symtab.c (symtab_hash): Likewise.
9778 (assembler_name_hash): Likewise.
9779 (symtab_nodes): Likewise.
9780 (hash_node): Likewise.
9781 (eq_node): Likewise.
9782 (hash_node_by_assembler_name): Likewise.
9783 (eq_assembler_name): Likewise.
9784 (insert_to_assembler_name_hash): Likewise.
9785 (unlink_from_assembler_name_hash): Likewise.
9786 (symtab_prevail_in_asm_name_hash): Likewise.
9787 (symtab_register_node): Likewise.
9788 (symtab_insert_node_to_hashtable): Likewise.
9789 (symtab_unregister_node): Likewise.
9790 (symtab_get_node): Likewise.
9791 (symtab_remove_node): Likewise.
9792 (symtab_initialize_asm_name_hash): Likewise.
9793 (symtab_node_for_asm): Likewise.
9794 (symtab_add_to_same_comdat_group): Likewise.
9795 (symtab_dissolve_same_comdat_group_list): Likewise.
9796 (symtab_node_asm_name): Likewise.
9797 (symtab_node_name): Likewise.
9798 (dump_symtab_base): Likewise.
9799 (dump_symtab_node): Likewise.
9800 (dump_symtab): Likewise.
9801 (debug_symtab_node): Likewise.
9802 (verify_symtab_base): Likewise.
9803 (verify_symtab_node): Likewise.
9804 (verify_symtab): Likewise.
9805 (symtab_used_from_object_file_p): Likewise.
9806 (symtab_node_availability): Likewise.
9807 (symtab_alias_ultimate_target): Likewise.
9808 (fixup_same_cpp_alias_visibility): Likewise.
9809 (symtab_resolve_alias): Likewise.
9810 (symtab_for_node_and_aliases): Likewise.
9811 (symtab_for_node_and_aliases): Likewise.
9812 (symtab_nonoverwritable_alias_1): Likewise.
9813 (symtab_nonoverwritable_alias): Likewise.
9814 (symtab_semantically_equivalent_p): Likewise.
9815 * value-prof.c (init_node_map): Likewise.
9816 * varasm.c (find_decl): Likewise.
9817 * varpool.c (varpool_node_for_asm): Likewise.
9818 (varpool_remove_unreferenced_decls): Likewise.
9820 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9822 Manual part of renaming of symtab_node_base to symtab_node.
9824 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9825 clashes with the preferred name for the base class.
9826 (const_symtab_node): Remove redundant typedef.
9828 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9830 * optabs.c (expand_vec_perm): Avoid vector mode punning
9831 SUBREGs in SET_DEST.
9832 * expmed.c (store_bit_field_1): Likewise.
9833 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9834 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9835 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9836 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9837 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9838 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9839 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9840 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9841 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9842 expand_vec_perm_vpshufb2_vpermq,
9843 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9844 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9845 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9846 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9849 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9851 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9852 Use gcc_unreachable for unhandled modes. Do not check results of
9853 expand_simple_binop. If not expanded to target, move the result.
9855 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9856 Shiva Chen <shiva0217@gmail.com>
9858 * config.gcc (nds32*-*-*): Add nds32 target.
9859 * config/nds32/nds32.c: New file.
9860 * config/nds32/nds32.h: New file.
9861 * config/nds32/nds32.md: New file.
9862 * config/nds32/constants.md: New file.
9863 * config/nds32/constraints.md: New file.
9864 * config/nds32/iterators.md: New file.
9865 * config/nds32/nds32-doubleword.md: New file.
9866 * config/nds32/nds32-intrinsic.md: New file.
9867 * config/nds32/nds32_intrinsic.h: New file.
9868 * config/nds32/nds32-modes.def: New file.
9869 * config/nds32/nds32-multiple.md: New file.
9870 * config/nds32/nds32.opt: New file.
9871 * config/nds32/nds32-opts.h: New file.
9872 * config/nds32/nds32-protos.h: New file.
9873 * config/nds32/nds32-peephole2.md: New file.
9874 * config/nds32/pipelines.md: New file.
9875 * config/nds32/predicates.md: New file.
9876 * config/nds32/t-mlibs: New file.
9877 * common/config/nds32: New directory and files.
9879 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9880 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9881 * doc/install.texi (Cross-Compiler-Specific Options): Document
9882 --with-nds32-lib for nds32 target.
9883 * doc/extend.texi (Function Attributes, Target Builtins): Document
9884 nds32 specific attributes.
9886 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9888 * lra-constraints (process_alt_operands): Use the result
9889 elimination register for operand when matching constraints.
9891 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9893 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9894 (remove_range_assertions): Call it.
9896 * tree.c (tree_ctz): New function.
9897 * tree.h (tree_ctz): New prototype.
9898 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9899 first argument from tree to const_tree.
9900 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9901 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9902 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9904 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9905 * tree-vect-loop.c (vect_analyze_loop_operations,
9906 vect_transform_loop): Don't force scalar loop for bound just because
9907 number of iterations is unknown, only do it if it is not known to be
9908 a multiple of vectorization_factor.
9909 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9911 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9912 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9913 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9914 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9915 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9916 a default def isn't partially constant.
9917 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9918 is known to be partially zero.
9919 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9920 to see if a default def isn't partially constant.
9921 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9922 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9924 (set_nonzero_bits, get_nonzero_bits): New functions.
9926 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9927 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9928 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9929 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9930 uses but in the condition and ASSERT_EXPR and the other successor of
9931 the predecessor bb is __builtin_unreachable (), set_range_info of the
9932 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9934 2013-10-31 Martin Jambor <mjambor@suse.cz>
9936 PR rtl-optimization/58934
9938 2013-10-30 Martin Jambor <mjambor@suse.cz>
9939 PR rtl-optimization/10474
9940 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9942 (interesting_dest_for_shprep): New function.
9943 (split_live_ranges_for_shrink_wrap): Likewise.
9944 (ira): Calculate dominance info and df analysis. Call
9945 split_live_ranges_for_shrink_wrap.
9947 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9948 Yury Gribov <y.gribov@samsung.com>
9951 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9952 shadow pointer to avoid clobbering the main one.
9954 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9956 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9958 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9961 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9962 it for calling update_costs_from_allocno.
9963 (assign_hard_reg): Call restore_costs_from_copies only for
9964 !retry_p. Pass new argument to update_costs_from_copies.
9965 (color_pass): Pass new argument to update_costs_from_copies.
9966 (ira_mark_allocation_change): Ditto.
9968 2013-10-30 Sharad Singhai <singhai@google.com>
9971 * opts.c (common_handle_option): Remove deprecated option
9972 -ftree-vectorizer-verbose.
9973 * doc/invoke.texi (Debugging Options): Ditto.
9974 * opts-global.c (handle_common_deferred_options): Ditto.
9975 (dump_remap_tree_vectorizer_verbose): Delete.
9976 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9978 2013-10-30 DJ Delorie <dj@redhat.com>
9980 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9981 that take no arguments.
9983 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9986 * reload1.c (update_eliminables_and_spill): New function, broken
9988 (reload): Use it. Check for frame size change after frame size
9989 alignment, and call update_eliminables_and_spill first if continue-ing.
9991 2013-10-30 Cong Hou <congh@google.com>
9994 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9995 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9996 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9998 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10000 PR rtl-optimization/58369
10001 * reload1.c (compute_reload_subreg_offset): New function.
10002 (choose_reload_regs): Use it to pass endian-correct
10003 offset to subreg_regno_offset.
10005 2013-10-30 Tobias Burnus <burnus@net-b.de>
10008 * tree-cfg.c (replace_loop_annotate): Replace warning by
10011 2013-10-30 Jason Merrill <jason@redhat.com>
10013 * configure.ac (loose_warn): Add -Wno-format if
10014 --disable-build-format-warnings.
10016 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10018 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10019 onto multiple lines to make things easier for rename_symtab.py.
10021 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10022 (symtab_semantically_equivalent_p): Likewise.
10024 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10027 * lra.c (check_rtl): Remove address check before LRA work.
10029 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10031 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10032 POINTER_PLUS_EXPR in the defining statement.
10034 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10036 * regmove.c: Remove.
10037 * tree-pass.h (make_pass_regmove): Remove.
10038 * timevar.def (TV_REGMOVE): Remove.
10039 * passes.def (pass_regmove): Remove.
10040 * opts.c (default_options_table): Remove entry for regmove.
10041 * doc/passes.texi: Remove regmove pass description.
10042 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10044 (-fdump-rtl-regmove): Ditto.
10045 * common.opt (foptimize-register-move, fregmove): Ignore.
10046 * Makefile.in (OBJS): Remove regmove.o.
10047 * regmove.c: Remove.
10048 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10050 (struct ira_allocno) New member allocno_prefs.
10051 (ALLOCNO_PREFS): New macro.
10052 (ira_prefs, ira_prefs_num): New external vars.
10053 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10054 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10055 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10057 (ira_add_allocno_copy_to_list): Remove prototype.
10058 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10059 (ira_pref_iterator): New type.
10060 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10061 (FOR_EACH_PREF): New macro.
10062 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10063 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10065 (ira_setup_alts): New function.
10066 (decrease_live_ranges_number): New function.
10067 (ira): Call the above function.
10068 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10069 (ira_create_allocno): Initialize allocno prefs.
10070 (pref_pool, pref_vec): New static vars.
10071 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10073 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10074 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10075 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10076 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10077 (ira_add_allocno_copy_to_list): Make static. Rename to
10078 add_allocno_copy_to_list.
10079 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10080 swap_allocno_copy_ends_if_necessary.
10081 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10082 ira_remove_allocno_prefs.
10083 (ira_flattening): Ditto.
10084 (ira_build): Call initiate_prefs, print_prefs.
10085 (ira_destroy): Call finish_prefs.
10086 * ira-color.c (struct update_cost_record): New.
10087 (struct allocno_color_data): Add new member update_cost_records.
10088 (update_cost_record_pool): New static var.
10089 (init_update_cost_records, get_update_cost_record): New functions.
10090 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10091 (struct update_cost_queue_elem): Add member from.
10092 (initiate_cost_update): Call init_update_cost_records.
10093 (finish_cost_update): Call finish_update_cost_records.
10094 (queue_update_cost, get_next_update_cost): Add new param from.
10095 (Update_allocno_cost, update_costs_from_allocno): New functions.
10096 (update_costs_from_prefs): Ditto.
10097 (update_copy_costs): Rename to update_costs_from_copies.
10098 (restore_costs_from_copies): New function.
10099 (update_conflict_hard_regno_costs): Don't go back.
10100 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10102 (pop_allocnos): Add priniting more debug info.
10103 (color_allocnos): Remove prefs for conflicting hard regs.
10104 Call update_costs_from_prefs.
10105 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10106 (get_dup_num): Rename, modify, and move to ira.c
10107 (process_regs_for_copy): Add prefs.
10108 (add_insn_allocno_copies): Put src as first arg of
10109 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10110 * ira-costs.c (record_reg_classes): Modify and move code into
10111 record_operands_costs.
10112 (find_costs_and_classes): Create prefs for the hard reg of small
10114 (process_bb_node_for_hard_reg_moves): Add prefs.
10116 2013-10-30 Richard Biener <rguenther@suse.de>
10118 PR middle-end/57100
10119 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10120 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10122 (pre_and_rev_post_order_compute): ... which now wraps it.
10123 * graph.c (draw_cfg_nodes_no_loops): Use
10124 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10127 2013-10-30 Christian Bruel <christian.bruel@st.com>
10129 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10130 (sh_expand_cmpstr): Handle known align and schedule improvements.
10131 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10132 * config/sh/sh.md (cmpstrnsi): New pattern.
10134 2013-10-30 Martin Jambor <mjambor@suse.cz>
10136 PR rtl-optimization/10474
10137 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10139 (interesting_dest_for_shprep): New function.
10140 (split_live_ranges_for_shrink_wrap): Likewise.
10141 (ira): Calculate dominance info and df analysis. Call
10142 split_live_ranges_for_shrink_wrap.
10144 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10147 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10149 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10151 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10152 * tree.h (POINTER_BOUNDS_P): New.
10153 (BOUNDED_TYPE_P): New.
10155 (pointer_bounds_type_node): New.
10156 * tree.c (build_common_tree_nodes): Initialize
10157 pointer_bounds_type_node.
10158 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10159 (gimple_call_num_nobnd_args): New.
10160 (gimple_call_nobnd_arg): New.
10161 (gimple_return_retbnd): New.
10162 (gimple_return_set_retbnd): New
10163 * gimple.c (gimple_build_return): Increase number of ops
10164 for return statement.
10165 (gimple_call_get_nobnd_arg_index): New.
10166 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10168 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10170 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10171 with "chkp ctor" and "bnd_legacy" attributes.
10172 * gimplify.c (gimplify_init_constructor): Avoid infinite
10173 loop during gimplification of bounds initializer.
10175 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10177 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10178 (handle_bnd_legacy): New.
10179 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10180 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10183 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10185 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10186 (BT_FN_PTR_CONST_PTR): New.
10187 (BT_FN_CONST_PTR_CONST_PTR): New.
10188 (BT_FN_PTR_CONST_PTR_SIZE): New.
10189 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10190 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10191 (BT_FN_VOID_CONST_PTR_SIZE): New.
10192 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10193 * chkp-builtins.def: New.
10194 * builtins.def: include chkp-builtins.def.
10195 (DEF_CHKP_BUILTIN): New.
10196 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10197 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10198 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10199 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10200 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10201 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10202 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10203 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10204 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10205 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10206 * common.opt (fcheck-pointer-bounds): New.
10207 * toplev.c (process_options): Check Pointer Bounds Checker is
10209 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10211 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10213 * target.def (builtin_chkp_function): New.
10214 (chkp_bound_type): New.
10215 (chkp_bound_mode): New.
10216 (fn_abi_va_list_bounds_size): New.
10217 (load_bounds_for_arg): New.
10218 (store_bounds_for_arg): New.
10219 * targhooks.h (default_load_bounds_for_arg): New.
10220 (default_store_bounds_for_arg): New.
10221 (default_fn_abi_va_list_bounds_size): New.
10222 (default_chkp_bound_type): New.
10223 (default_chkp_bound_mode): New.
10224 (default_builtin_chkp_function): New.
10225 * targhooks.c (default_load_bounds_for_arg): New.
10226 (default_store_bounds_for_arg): New.
10227 (default_fn_abi_va_list_bounds_size): New.
10228 (default_chkp_bound_type): New.
10229 (default_chkp_bound_mode); New.
10230 (default_builtin_chkp_function): New.
10231 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10232 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10233 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10234 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10235 (TARGET_CHKP_BOUND_TYPE): New.
10236 (TARGET_CHKP_BOUND_MODE): New.
10237 * doc/tm.texi: Regenerated.
10238 * langhooks.h (lang_hooks): Add chkp_supported field.
10239 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10240 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10242 2013-10-29 Andrew Pinski <apinski@cavium.com>
10244 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10245 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10246 fails, combining the branches anyways.
10247 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10248 increases the number of combinings.
10249 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10251 2013-10-29 Mike Stump <mikestump@comcast.net>
10253 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10254 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10255 (make_vector_mode): Increase namebuf to 16.
10256 (emit_insn_modes_h): When processing BImode, don't
10257 also match partial int modes.
10258 (emit_class_narrowest_mode): Likewise.
10260 * config/bfin/bfin-modes.def: Add precision to PDI.
10261 * config/m32c/m32c-modes.def: Add precision to PSI.
10262 * config/msp430/msp430-modes.def: Add precision to PSI.
10263 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10264 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10266 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10269 * config/sh/sh.md (*addc): Rename existing variations to ...
10270 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10271 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10272 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10273 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10275 2013-10-29 Teresa Johnson <tejohnson@google.com>
10278 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10279 insanities when updating probabilities.
10281 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10283 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10284 prettyprinter for cgraph_node to reflect the conversion of the
10285 symtable types to a C++ class hierarchy: it now *is* a
10286 symtab_node_base, rather than having one (named "symbol").
10288 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10290 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10291 __cilkrts_pop_frame. If matched, then return true for built-in
10293 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10294 BUILT_IN_CILK_POP_FRAME case.
10295 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10296 (lhs_cilk_detect_spawn): Likewise.
10297 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10298 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10299 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10300 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10301 (LANG_HOOKS_CILKPLUS): Likewise.
10302 * tree.h (CILK_SPAWN_FN): Likewise.
10303 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10304 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10305 (OBJS): Added cilk-common.o.
10306 (BUILTINS_DEF): Added cilk-builtins.def.
10307 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10308 (lhd_cilk_detect_spawn): Likewise.
10309 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10310 (struct lang_hooks): Added new field called "cilkplus."
10311 * cilk-common.c: New file.
10312 * cilk.h: Likewise.
10313 * cilk-builtins.def: Likewise.
10314 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10315 "__cilk" macro and set it to 200.
10316 * function.h (struct function::cilk_frame_decl): New field.
10317 (struct function::is_cilk_function): Likewise.
10318 (struct function::calls_cilk_spawn): Likewise.
10319 * gimplify.c (gimplify_call_expr): Added a check if the function call
10320 being gimplified is a spawn detach point. If so, then add pop_frame
10321 and detach function calls.
10322 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10323 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10324 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10325 function. If so, added a _Cilk_sync and gimplified it.
10326 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10327 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10328 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10330 (can_inline_edge_p): Prevent inling of spawnee function.
10331 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10332 for functions that use Cilk keywords.
10333 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10334 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10335 CILK_SYNC_STMT cases.
10336 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10338 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10339 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10340 * passes.texi (Cilk Keywords): New section that describes the compiler
10341 code changes for handling Cilk Keywords.
10343 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10345 Patch autogenerated by refactor_symtab.py from
10346 https://github.com/davidmalcolm/gcc-refactoring-scripts
10347 revision 58bb219cc090b2f4516a9297d868c245495ee622
10349 * asan.c (asan_finish_file): Update for conversion of symtab types to
10350 a true class hierarchy.
10351 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10352 * cgraph.c (cgraph_get_body): Likewise.
10353 (cgraph_get_create_real_symbol_node): Likewise.
10354 (verify_cgraph_node): Likewise.
10355 (verify_edge_corresponds_to_fndecl): Likewise.
10356 (verify_edge_count_and_frequency): Likewise.
10357 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10358 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10359 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10360 (cgraph_node_cannot_return): Likewise.
10361 (cgraph_set_pure_flag_1): Likewise.
10362 (cgraph_set_const_flag_1): Likewise.
10363 (cgraph_set_nothrow_flag_1): Likewise.
10364 (cgraph_make_node_local_1): Likewise.
10365 (cgraph_for_node_and_aliases): Likewise.
10366 (cgraph_for_node_thunks_and_aliases): Likewise.
10367 (cgraph_node_can_be_local_p): Likewise.
10368 (cgraph_node_cannot_be_local_p_1): Likewise.
10369 (cgraph_function_body_availability): Likewise.
10370 (dump_cgraph_node): Likewise.
10371 (cgraph_rtl_info): Likewise.
10372 (cgraph_mark_address_taken_node): Likewise.
10373 (cgraph_remove_node): Likewise.
10374 (cgraph_release_function_body): Likewise.
10375 (cgraph_update_edges_for_call_stmt_node): Likewise.
10376 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10377 (cgraph_make_edge_direct): Likewise.
10378 (cgraph_resolve_speculation): Likewise.
10379 (cgraph_speculative_call_info): Likewise.
10380 (cgraph_turn_edge_to_speculative): Likewise.
10381 (cgraph_create_edge_1): Likewise.
10382 (cgraph_set_call_stmt): Likewise.
10383 (cgraph_node_for_asm): Likewise.
10384 (cgraph_add_thunk): Likewise.
10385 (cgraph_same_body_alias): Likewise.
10386 (cgraph_create_function_alias): Likewise.
10387 (cgraph_create_node): Likewise.
10388 (cgraph_create_empty_node): Likewise.
10389 (record_function_versions): Likewise.
10390 (used_from_object_file_p): Likewise.
10391 * cgraph.h (symtab_can_be_discarded): Likewise.
10392 (symtab_real_symbol_p): Likewise.
10393 (cgraph_mark_force_output_node): Likewise.
10394 (cgraph_edge_recursive_p): Likewise.
10395 (symtab_alias_target): Likewise.
10396 (varpool_all_refs_explicit_p): Likewise.
10397 (varpool_can_remove_if_no_refs): Likewise.
10398 (cgraph_only_called_directly_or_aliased_p): Likewise.
10399 (cgraph_next_function_with_gimple_body): Likewise.
10400 (cgraph_first_function_with_gimple_body): Likewise.
10401 (cgraph_function_with_gimple_body_p): Likewise.
10402 (cgraph_next_function): Likewise.
10403 (cgraph_first_function): Likewise.
10404 (cgraph_next_defined_function): Likewise.
10405 (cgraph_first_defined_function): Likewise.
10406 (varpool_next_defined_variable): Likewise.
10407 (varpool_first_defined_variable): Likewise.
10408 (varpool_next_static_initializer): Likewise.
10409 (varpool_first_static_initializer): Likewise.
10410 (varpool_next_variable): Likewise.
10411 (varpool_first_variable): Likewise.
10412 (varpool_node_name): Likewise.
10413 (varpool): Likewise.
10414 (cgraph): Likewise.
10415 (is_a_helper <varpool_node>::test): Likewise.
10416 (is_a_helper <cgraph_node>::test): Likewise.
10417 (varpool_variable_node): Likewise.
10418 (cgraph_function_or_thunk_node): Likewise.
10419 (varpool_alias_target): Likewise.
10420 (cgraph_alias_target): Likewise.
10421 (cgraph_node_name): Likewise.
10422 (varpool_node_asm_name): Likewise.
10423 (cgraph_node_asm_name): Likewise.
10424 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10425 (cgraph_rebuild_references): Likewise.
10426 (rebuild_cgraph_edges): Likewise.
10427 (record_eh_tables): Likewise.
10428 (build_cgraph_edges): Likewise.
10429 (mark_store): Likewise.
10430 (mark_load): Likewise.
10431 (mark_address): Likewise.
10432 (record_type_list): Likewise.
10433 (record_reference): Likewise.
10434 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10435 (cgraph_materialize_clone): Likewise.
10436 (cgraph_function_versioning): Likewise.
10437 (cgraph_copy_node_for_versioning): Likewise.
10438 (update_call_expr): Likewise.
10439 (cgraph_find_replacement_node): Likewise.
10440 (cgraph_create_virtual_clone): Likewise.
10441 (cgraph_clone_node): Likewise.
10442 * cgraphunit.c (compile): Likewise.
10443 (output_weakrefs): Likewise.
10444 (output_in_order): Likewise.
10445 (expand_function): Likewise.
10446 (assemble_thunks_and_aliases): Likewise.
10447 (expand_thunk): Likewise.
10448 (mark_functions_to_output): Likewise.
10449 (handle_alias_pairs): Likewise.
10450 (analyze_functions): Likewise.
10451 (walk_polymorphic_call_targets): Likewise.
10452 (varpool_finalize_decl): Likewise.
10453 (process_function_and_variable_attributes): Likewise.
10454 (cgraph_process_same_body_aliases): Likewise.
10455 (analyze_function): Likewise.
10456 (cgraph_add_new_function): Likewise.
10457 (cgraph_finalize_function): Likewise.
10458 (referred_to_p): Likewise.
10459 (cgraph_reset_node): Likewise.
10460 (cgraph_process_new_functions): Likewise.
10461 (enqueue_node): Likewise.
10462 (decide_is_symbol_needed): Likewise.
10463 * coverage.c (coverage_compute_profile_id): Likewise.
10464 * dbxout.c (dbxout_expand_expr): Likewise.
10465 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10466 (reference_to_unused): Likewise.
10467 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10468 * gimplify.c (unvisit_body): Likewise.
10469 (unshare_body): Likewise.
10470 * ipa-cp.c (ipcp_generate_summary): Likewise.
10471 (ipcp_decision_stage): Likewise.
10472 (identify_dead_nodes): Likewise.
10473 (decide_whether_version_node): Likewise.
10474 (decide_about_value): Likewise.
10475 (perhaps_add_new_callers): Likewise.
10476 (create_specialized_node): Likewise.
10477 (update_profiling_info): Likewise.
10478 (ipcp_propagate_stage): Likewise.
10479 (estimate_local_effects): Likewise.
10480 (good_cloning_opportunity_p): Likewise.
10481 (devirtualization_time_bonus): Likewise.
10482 (propagate_constants_accross_call): Likewise.
10483 (initialize_node_lattices): Likewise.
10484 (ipcp_cloning_candidate_p): Likewise.
10485 (determine_versionability): Likewise.
10486 (print_all_lattices): Likewise.
10487 (print_lattice): Likewise.
10488 (ipcp_discover_new_direct_edges): Likewise.
10489 * ipa-devirt.c (ipa_devirt): Likewise.
10490 (likely_target_p): Likewise.
10491 (update_type_inheritance_graph): Likewise.
10492 (possible_polymorphic_call_target_p): Likewise.
10493 (dump_possible_polymorphic_call_targets): Likewise.
10494 (devirt_variable_node_removal_hook): Likewise.
10495 (record_binfo): Likewise.
10496 (maybe_record_node): Likewise.
10497 (build_type_inheritance_graph): Likewise.
10498 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10499 (inline_generate_summary): Likewise.
10500 (inline_analyze_function): Likewise.
10501 (do_estimate_growth): Likewise.
10502 (simple_edge_hints): Likewise.
10503 (estimate_node_size_and_time): Likewise.
10504 (estimate_edge_devirt_benefit): Likewise.
10505 (compute_inline_parameters): Likewise.
10506 (estimate_function_body_sizes): Likewise.
10507 (compute_bb_predicates): Likewise.
10508 (initialize_inline_failed): Likewise.
10509 (dump_inline_summary): Likewise.
10510 (dump_inline_edge_summary): Likewise.
10511 * ipa-inline-transform.c (inline_transform): Likewise.
10512 (preserve_function_body_p): Likewise.
10513 (save_inline_function_body): Likewise.
10514 (inline_call): Likewise.
10515 (clone_inlined_nodes): Likewise.
10516 (can_remove_node_now_p): Likewise.
10517 (can_remove_node_now_p_1): Likewise.
10518 * ipa-inline.c (early_inliner): Likewise.
10519 (early_inline_small_functions): Likewise.
10520 (inline_always_inline_functions): Likewise.
10521 (ipa_inline): Likewise.
10522 (flatten_function): Likewise.
10523 (inline_small_functions): Likewise.
10524 (speculation_useful_p): Likewise.
10525 (recursive_inlining): Likewise.
10526 (update_caller_keys): Likewise.
10527 (reset_edge_caches): Likewise.
10528 (update_edge_key): Likewise.
10529 (edge_badness): Likewise.
10530 (relative_time_benefit): Likewise.
10531 (want_inline_self_recursive_call_p): Likewise.
10532 (want_inline_small_function_p): Likewise.
10533 (want_early_inline_function_p): Likewise.
10534 (num_calls): Likewise.
10535 (can_early_inline_edge_p): Likewise.
10536 (can_inline_edge_p): Likewise.
10537 (report_inline_failed_reason): Likewise.
10538 * ipa-profile.c (ipa_profile): Likewise.
10539 (ipa_propagate_frequency): Likewise.
10540 (ipa_propagate_frequency_1): Likewise.
10541 (ipa_profile_generate_summary): Likewise.
10542 * ipa-prop.c (ipcp_transform_function): Likewise.
10543 (read_replacements_section): Likewise.
10544 (ipa_prop_read_section): Likewise.
10545 (ipa_modify_call_arguments): Likewise.
10546 (ipa_print_node_params): Likewise.
10547 (propagate_controlled_uses): Likewise.
10548 (update_indirect_edges_after_inlining): Likewise.
10549 (remove_described_reference): Likewise.
10550 (ipa_make_edge_direct_to_target): Likewise.
10551 (ipa_analyze_node): Likewise.
10552 (ipa_analyze_params_uses): Likewise.
10553 (ipa_compute_jump_functions): Likewise.
10554 (ipa_get_callee_param_type): Likewise.
10555 (ipa_print_node_jump_functions): Likewise.
10556 (ipa_initialize_node_params): Likewise.
10557 (ipa_populate_param_decls): Likewise.
10558 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10559 (write_agg_replacement_chain): Likewise.
10560 (ipa_write_node_info): Likewise.
10561 (ipa_edge_duplication_hook): Likewise.
10562 (try_decrement_rdesc_refcount): Likewise.
10563 * ipa-pure-const.c (propagate_nothrow): Likewise.
10564 (propagate_pure_const): Likewise.
10565 (pure_const_read_summary): Likewise.
10566 (pure_const_write_summary): Likewise.
10567 (analyze_function): Likewise.
10568 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10569 (ipa_ref_referring_ref_list): Likewise.
10570 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10571 (ipa_remove_stmt_references): Likewise.
10572 (ipa_find_reference): Likewise.
10573 (ipa_dump_referring): Likewise.
10574 (ipa_dump_references): Likewise.
10575 (ipa_record_reference): Likewise.
10576 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10577 (ipa_reference_write_optimization_summary): Likewise.
10578 (write_node_summary_p): Likewise.
10579 (propagate): Likewise.
10580 (read_write_all_from_decl): Likewise.
10581 (generate_summary): Likewise.
10582 (analyze_function): Likewise.
10583 (propagate_bits): Likewise.
10584 (ipa_reference_get_not_written_global): Likewise.
10585 (ipa_reference_get_not_read_global): Likewise.
10586 * ipa-split.c (execute_split_functions): Likewise.
10587 (split_function): Likewise.
10588 * ipa-utils.c (ipa_merge_profiles): Likewise.
10589 (dump_cgraph_node_set): Likewise.
10590 (ipa_reverse_postorder): Likewise.
10591 (ipa_edge_within_scc): Likewise.
10592 (ipa_get_nodes_in_cycle): Likewise.
10593 (ipa_free_postorder_info): Likewise.
10594 (ipa_reduced_postorder): Likewise.
10595 (searchc): Likewise.
10596 (recursive_call_p): Likewise.
10597 * ipa.c (ipa_cdtor_merge): Likewise.
10598 (record_cdtor_fn): Likewise.
10599 (function_and_variable_visibility): Likewise.
10600 (varpool_externally_visible_p): Likewise.
10601 (cgraph_externally_visible_p): Likewise.
10602 (comdat_can_be_unshared_p): Likewise.
10603 (comdat_can_be_unshared_p_1): Likewise.
10604 (address_taken_from_non_vtable_p): Likewise.
10605 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10606 (symtab_remove_unreachable_nodes): Likewise.
10607 (walk_polymorphic_call_targets): Likewise.
10608 (process_references): Likewise.
10609 (enqueue_node): Likewise.
10610 (has_addr_references_p): Likewise.
10611 (cgraph_non_local_node_p_1): Likewise.
10612 * is-a.h (varpool_analyze_node): Likewise.
10613 * lto-cgraph.c (input_symtab): Likewise.
10614 (merge_profile_summaries): Likewise.
10615 (input_cgraph_1): Likewise.
10616 (input_edge): Likewise.
10617 (input_varpool_node): Likewise.
10618 (input_node): Likewise.
10619 (input_overwrite_node): Likewise.
10620 (compute_ltrans_boundary): Likewise.
10621 (output_refs): Likewise.
10622 (lto_output_varpool_node): Likewise.
10623 (lto_output_node): Likewise.
10624 (reachable_from_other_partition_p): Likewise.
10625 (referenced_from_other_partition_p): Likewise.
10626 (lto_output_edge): Likewise.
10627 (output_node_opt_summary): Likewise.
10628 (add_node_to): Likewise.
10629 (reachable_from_this_partition_p): Likewise.
10630 (lto_set_symtab_encoder_in_partition): Likewise.
10631 (lto_symtab_encoder_in_partition_p): Likewise.
10632 (lto_set_symtab_encoder_encode_initializer): Likewise.
10633 (lto_symtab_encoder_encode_initializer_p): Likewise.
10634 (lto_set_symtab_encoder_encode_body): Likewise.
10635 (lto_symtab_encoder_encode_body_p): Likewise.
10636 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10638 * lto-streamer-in.c (lto_read_body): Likewise.
10639 (fixup_call_stmt_edges): Likewise.
10640 (fixup_call_stmt_edges_1): Likewise.
10641 * lto-streamer-out.c (produce_symtab): Likewise.
10642 (output_symbol_p): Likewise.
10643 (write_symbol): Likewise.
10644 (lto_output): Likewise.
10645 (copy_function): Likewise.
10646 (output_function): Likewise.
10647 * passes.c (function_called_by_processed_nodes_p): Likewise.
10648 (ipa_write_optimization_summaries): Likewise.
10649 (ipa_write_summaries): Likewise.
10650 (do_per_function_toporder): Likewise.
10651 (do_per_function): Likewise.
10652 (dump_passes): Likewise.
10653 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10654 (symtab_nonoverwritable_alias): Likewise.
10655 (symtab_nonoverwritable_alias_1): Likewise.
10656 (symtab_for_node_and_aliases): Likewise.
10657 (symtab_resolve_alias): Likewise.
10658 (fixup_same_cpp_alias_visibility): Likewise.
10659 (symtab_alias_ultimate_target): Likewise.
10660 (symtab_used_from_object_file_p): Likewise.
10661 (verify_symtab_base): Likewise.
10662 (dump_symtab_base): Likewise.
10663 (symtab_node_name): Likewise.
10664 (symtab_node_asm_name): Likewise.
10665 (symtab_dissolve_same_comdat_group_list): Likewise.
10666 (symtab_add_to_same_comdat_group): Likewise.
10667 (symtab_unregister_node): Likewise.
10668 (symtab_insert_node_to_hashtable): Likewise.
10669 (symtab_register_node): Likewise.
10670 (unlink_from_assembler_name_hash): Likewise.
10671 (insert_to_assembler_name_hash): Likewise.
10672 (eq_assembler_name): Likewise.
10673 (hash_node_by_assembler_name): Likewise.
10674 (eq_node): Likewise.
10675 (hash_node): Likewise.
10676 * toplev.c (wrapup_global_declaration_2): Likewise.
10677 * trans-mem.c (ipa_tm_execute): Likewise.
10678 (ipa_tm_transform_clone): Likewise.
10679 (ipa_tm_transform_transaction): Likewise.
10680 (ipa_tm_transform_calls_redirect): Likewise.
10681 (ipa_tm_insert_gettmclone_call): Likewise.
10682 (ipa_tm_insert_irr_call): Likewise.
10683 (ipa_tm_create_version): Likewise.
10684 (ipa_tm_create_version_alias): Likewise.
10685 (ipa_tm_mark_forced_by_abi_node): Likewise.
10686 (ipa_tm_mark_force_output_node): Likewise.
10687 (ipa_tm_diagnose_tm_safe): Likewise.
10688 (ipa_tm_mayenterirr_function): Likewise.
10689 (ipa_tm_scan_irr_function): Likewise.
10690 (ipa_tm_note_irrevocable): Likewise.
10691 (ipa_tm_scan_calls_clone): Likewise.
10692 (get_cg_data): Likewise.
10693 * tree-eh.c (tree_could_trap_p): Likewise.
10694 * tree-emutls.c (ipa_lower_emutls): Likewise.
10695 (create_emultls_var): Likewise.
10696 (lower_emutls_function_body): Likewise.
10697 (gen_emutls_addr): Likewise.
10698 (emutls_decl): Likewise.
10699 (new_emutls_decl): Likewise.
10700 * tree-inline.c (tree_function_versioning): Likewise.
10701 (optimize_inline_calls): Likewise.
10702 (expand_call_inline): Likewise.
10703 (estimate_num_insns): Likewise.
10704 (copy_bb): Likewise.
10705 (delete_unreachable_blocks_update_callgraph): Likewise.
10706 * tree-nested.c (gimplify_all_functions): Likewise.
10707 (create_nesting_tree): Likewise.
10708 (check_for_nested_with_variably_modified): Likewise.
10709 * tree-pretty-print.c (dump_function_header): Likewise.
10710 * tree-profile.c (tree_profiling): Likewise.
10711 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10712 (modify_function): Likewise.
10713 (convert_callers): Likewise.
10714 (convert_callers_for_node): Likewise.
10715 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10716 (associate_varinfo_to_alias): Likewise.
10717 (create_variable_info_for): Likewise.
10718 (get_constraint_for_ssa_var): Likewise.
10719 * tree-vectorizer.c (increase_alignment): Likewise.
10720 * tree.c (find_decls_types_in_var): Likewise.
10721 (find_decls_types_in_node): Likewise.
10722 (free_lang_data_in_decl): Likewise.
10723 * value-prof.c (gimple_ic_transform): Likewise.
10724 (gimple_ic): Likewise.
10725 (check_ic_target): Likewise.
10726 (init_node_map): Likewise.
10727 * varasm.c (decl_binds_to_current_def_p): Likewise.
10728 (default_binds_local_p_1): Likewise.
10729 (dump_tm_clone_pairs): Likewise.
10730 (assemble_alias): Likewise.
10731 (find_decl): Likewise.
10732 (mark_decl_referenced): Likewise.
10733 * varpool.c (varpool_for_node_and_aliases): Likewise.
10734 (varpool_extra_name_alias): Likewise.
10735 (varpool_create_variable_alias): Likewise.
10736 (add_new_static_var): Likewise.
10737 (varpool_finalize_named_section_flags): Likewise.
10738 (varpool_remove_unreferenced_decls): Likewise.
10739 (enqueue_node): Likewise.
10740 (varpool_assemble_decl): Likewise.
10741 (assemble_aliases): Likewise.
10742 (varpool_analyze_node): Likewise.
10743 (cgraph_variable_initializer_availability): Likewise.
10744 (varpool_add_new_variable): Likewise.
10745 (ctor_for_folding): Likewise.
10746 (dump_varpool_node): Likewise.
10747 (varpool_remove_initializer): Likewise.
10748 (varpool_remove_node): Likewise.
10749 (varpool_node_for_decl): Likewise.
10750 (varpool_create_empty_node): Likewise.
10751 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10752 (ix86_get_function_versions_dispatcher): Likewise.
10754 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10756 * cgraph.h (symtab_node_base): Convert to a class;
10757 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10758 chain_next/prev from symtab_node_def.
10759 (cgraph_node): Inherit from symtab_node; add GTY option
10760 tag ("SYMTAB_FUNCTION").
10761 (varpool_node): Inherit from symtab_node; add GTY option
10762 tag ("SYMTAB_VARIABLE").
10763 (symtab_node_def): Remove.
10764 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10765 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10766 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10767 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10769 * ipa-ref.h (symtab_node_def): Drop.
10770 (symtab_node): Change underlying type from symtab_node_def to
10772 (const_symtab_node): Likwise.
10774 * is-a.h: Update examples in comment.
10776 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10777 (assembler_name_hash): Likewise.
10779 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10781 * doc/tree-ssa.texi (gimple_phi_result): Document.
10782 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10783 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10784 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10785 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10787 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10789 * expr.h: Revert change and include tree-core.h.
10790 * rtl.h: Revert change and don't include tree-core.h.
10792 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10794 * config/darwin.c: Include gimple.h.
10795 * config/i386/winnt.c: Likewise.
10797 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10799 PR tree-optimization/19831
10800 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10802 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10804 * tree-outof-ssa.h: Remove include files.
10805 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10806 * expr.c: Likewise.
10807 * tree-ssa-coalesce.c: Likewise.
10808 * cfgexpand.c: Likewise.
10809 * tree-ssa-ter.c: Likewise.
10810 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10811 * lto-streamer.h: Likewise.
10812 * cgraphbuild.c: Add gimple.h to include list.
10813 * data-streamer-in.c: Likewise.
10814 * ipa-cp.c: Likewise.
10815 * tree-streamer.c: Likewise.
10816 * lto-compress.c: Likewise.
10817 * ipa-reference.c: Likewise.
10818 * data-streamer-out.c: Likewise.
10819 * lto-cgraph.c: Likewise.
10820 * cgraphclones.c: Likewise.
10821 * ipa-utils.c: Likewise.
10822 * data-streamer.c: Likewise.
10823 * ipa-split.c: Likewise.
10824 * lto-section-in.c: Likewise.
10825 * tree-streamer-out.c: Likewise.
10826 * ipa-prop.c: Likewise.
10827 * tree-streamer-in.c: Likewise.
10828 * symtab.c: Likewise.
10829 * opts-global.c: Likewise.
10830 * lto-opts.c: Likewise.
10831 * lto-section-out.c: Likewise.
10832 * lto-streamer.c: Likewise.
10833 * rtl.h: Add tree-core.h to include list.
10834 * expr.h: Remove tree-core.h from include list.
10835 * gimple.h: Likewise.
10836 * ipa-utils.h: Likewise.
10837 * streamer-hooks.h: Likewise.
10838 * streamer-hooks.c: Include input.h.
10840 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10842 * config/arm/arm.c (cortexa7_extra_costs): New table.
10843 (arm_cortex_a7_tune): New.
10844 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10846 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10848 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10850 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10852 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10853 to use autogenerated markers for a class-hierarchy, every class
10854 must have a GTY marker.
10855 * gengtype.h (struct type): Add linked list of subclasses to
10856 the "s" member of the union.
10857 (add_subclass): New decl.
10858 * gengtype-state.c (read_state_struct_type): Set up subclass
10860 * gengtype.c (get_ultimate_base_class): New.
10861 (add_subclass): New.
10862 (new_structure): Set up subclass linked list.
10863 (set_gc_used_type): Propagate usage information to subclasses.
10864 (output_mangled_typename): Use get_ultimate_base_class.
10865 (walk_subclasses): Use the subclass linked list, avoiding an
10866 O(N^2) when writing out all types.
10867 (walk_type): Issue an error if the base class is missing a tag,
10868 rather than generating bogus C code. Add a gcc_unreachable
10869 default case, in case people omit tags from concrete subclasses,
10870 or get the values wrong.
10871 (write_func_for_structure): Issue an error for subclasses for
10872 which the base doesn't have a "desc", since otherwise the
10873 autogenerated routines for the base would silently fail to visit
10874 any subclass fields.
10875 (write_root): Use get_ultimate_base_class, tweaking constness of
10876 tp to match that function's signature.
10878 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10880 * doc/gty.texi (GTY Options): Add note about inheritance to
10881 description of desc and tag.
10882 (Inheritance and GTY): New.
10884 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10886 * gengtype-parse.c (opts_have): Drop "static" so that
10887 we can use this from gengtype.c.
10888 * gengtype.c (set_gc_used_type): Mark any base class as used;
10889 update field traversal to visit inherited fields.
10890 (output_mangled_typename): Convert references to classes within
10891 an inheritance hierarchy to reference the ultimate base class,
10892 since only it will have gt_ functions.
10893 (get_string_option): New.
10894 (walk_subclasses): New.
10895 (walk_type): Treat GTY structs that have a "desc" as being the
10896 root of an inheritance hierarchy. Generate a switch on it
10897 within the marking function which walks all subclasses, adding
10898 cases for them via walk_subclasses. For subclasses, visit all
10899 fields of the type (including inherited ones).
10900 (write_func_for_structure): Don't write fns for subclasses, only
10901 for the ultimate base class within an inheritance hierarchy.
10902 Subclasses-marking will be handled by the base class marking functions.
10903 (write_types): Likewise.
10904 (write_local_func_for_structure): Likewise.
10905 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10906 a "tag" option (and are thus concrete subclasses).
10907 (write_root): Use the marker function for the ultimate base class.
10908 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10909 (opts_have): Add declaration.
10911 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10913 * lra-spills.c (lra_final_code_change): Remove useless move insns
10914 originated from moves of pseudos.
10916 2013-10-28 Jeff Law <law@redhat.com>
10918 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10920 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10922 * df-scan.c (df_collection_rec): Adjust.
10923 (copy_defs): New constant.
10924 (copy_uses): Likewise.
10925 (copy_eq_uses): Likewise.
10926 (copy_mw): Likewise.
10927 (copy_all): Likewise.
10928 (df_insn_rescan): Adjust.
10929 (df_notes_rescan): Likewise.
10930 (df_swap_refs): Likewise.
10931 (df_sort_and_compress_refs): Likewise.
10932 (df_sort_and_compress_mws): Likewise.
10933 (df_install_refs): Likewise.
10934 (df_install_mws): Likewise.
10935 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10937 (df_bb_refs_record): Adjust.
10938 (df_record_entry_block_defs): Likewise.
10939 (df_record_exit_block_defs): Likewise.
10940 (df_refs_verify): Likewise.
10941 (df_mws_verify): Likewise.
10942 (df_insn_refs_verify): Likewise.
10943 (df_bb_verify): Likewise.
10944 * ipa-pure-const.c (finish_state): Remove.
10945 (propagate): Adjust.
10946 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10947 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10948 var-tracking.c: Adjust.
10949 * vec.c (stack_vecs): Remove.
10950 (register_stack_vec): Likewise.
10951 (stack_vec_register_index): Likewise.
10952 (unregister_stack_vec): Likewise.
10953 * vec.h (struct va_stack): Remove.
10954 (struct vec<T, A, vl_ptr>): Specialize as
10955 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10956 allocation strategy compatable with the vl_ptr layout.
10957 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10958 specialization anyway.
10959 (class stack_vec): New class.
10960 (vec_stack_alloc): Remove.
10961 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10963 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10965 Sergey Lega <sergey.s.lega@intel.com>
10966 Anna Tikhonova <anna.tikhonova@intel.com>
10967 Ilya Tocar <ilya.tocar@intel.com>
10968 Andrey Turetskiy <andrey.turetskiy@intel.com>
10969 Ilya Verbin <ilya.verbin@intel.com>
10970 Kirill Yukhin <kirill.yukhin@intel.com>
10971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10973 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10974 (*prefetch_avx512pf_<mode>): New.
10975 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10976 (avx512f_maskcmp<mode>3): Ditto.
10977 (vashrv16si3): Ditto.
10979 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10981 Sergey Lega <sergey.s.lega@intel.com>
10982 Anna Tikhonova <anna.tikhonova@intel.com>
10983 Ilya Tocar <ilya.tocar@intel.com>
10984 Andrey Turetskiy <andrey.turetskiy@intel.com>
10985 Ilya Verbin <ilya.verbin@intel.com>
10986 Kirill Yukhin <kirill.yukhin@intel.com>
10987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10989 * config/i386/i386.md (any_truncate): New.
10990 (trunsuffix): Ditto.
10991 * config/i386/predicates.md (const_8_to_9_operand): New.
10992 (const_10_to_11_operand): Ditto.
10993 (const_12_to_13_operand): Ditto.
10994 (const_14_to_15_operand): Ditto.
10995 (const_16_to_19_operand): Ditto.
10996 (const_20_to_23_operand): Ditto.
10997 (const_24_to_27_operand): Ditto.
10998 (const_28_to_31_operand): Ditto.
10999 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11000 (cvtusi2<ssescalarmodesuffix>32): New.
11001 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11002 (ufloatv16siv16sf2): Ditto.
11003 (avx512f_fix_notruncv16sfv16si): Ditto.
11004 (avx512f_ufix_notruncv16sfv16si): Ditto.
11005 (avx512f_vcvtss2usi): Ditto.
11006 (avx512f_vcvtss2usiq): Ditto.
11007 (avx512f_vcvttss2usi): Ditto.
11008 (avx512f_vcvttss2usiq): Ditto.
11009 (avx512f_vcvtsd2usi): Ditto.
11010 (avx512f_vcvtsd2usiq): Ditto.
11011 (avx512f_vcvttsd2usi): Ditto.
11012 (avx512f_vcvttsd2usiq): Ditto.
11013 (ufloatv8siv8df): Ditto.
11014 (avx512f_cvtdq2pd512_2): Ditto.
11015 (avx512f_cvtpd2dq512): Ditto.
11016 (avx512f_ufix_notruncv8dfv8si): Ditto.
11017 (avx512f_cvtpd2ps512): Ditto.
11018 (vec_unpacks_lo_v16sf): Ditto.
11019 (vec_unpacks_hi_v16sf): Ditto.
11020 (vec_unpacks_float_hi_v16si): Ditto.
11021 (vec_unpacks_float_lo_v16si): Ditto.
11022 (avx512f_unpckhps512): Ditto.
11023 (avx512f_unpcklps512): Ditto.
11024 (avx512f_movshdup512): Ditto.
11025 (avx512f_movsldup512): Ditto.
11026 (vec_extract_lo_v32hi): Ditto.
11027 (vec_extract_hi_v32hi): Ditto.
11028 (vec_extract_lo_v64qi): Ditto.
11029 (vec_extract_hi_v64qi): Ditto.
11030 (avx512f_unpckhpd512): Ditto.
11031 (avx512f_movddup512): Ditto.
11032 (avx512f_unpcklpd512): Ditto.
11033 (*avx512f_unpcklpd512): Ditto.
11034 (avx512f_shufps512_1): Ditto.
11035 (avx512f_shufpd512_1): Ditto.
11036 (avx512f_interleave_highv8di): Ditto.
11037 (avx512f_interleave_lowv8di): Ditto.
11038 (PMOV_DST_MODE): Ditto.
11039 (pmov_src_mode): Ditto.
11040 (pmov_src_lower): Ditto.
11041 (pmov_suff): Ditto.
11042 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11043 (*avx512f_<code>v8div16qi2): Ditto.
11044 (*avx512f_<code>v8div16qi2_store): Ditto.
11045 (vec_widen_umult_even_v16si): Ditto.
11046 (*vec_widen_umult_even_v16si): Ditto.
11047 (vec_widen_smult_even_v16si): Ditto.
11048 (*vec_widen_smult_even_v16si): Ditto.
11049 (avx512f_interleave_highv16si): Ditto.
11050 (avx512f_interleave_lowv16si): Ditto.
11051 (avx512f_<code>v16qiv16si2): Ditto.
11052 (avx512f_<code>v16hiv16si2): Ditto.
11053 (avx512f_<code>v8qiv8di2): Ditto.
11054 (avx512f_<code>v8hiv8di2): Ditto.
11055 (avx512f_<code>v8siv8di2): Ditto.
11056 (avx512cd_maskb_vec_dupv8di): Ditto.
11057 (avx512cd_maskw_vec_dupv16si): Ditto.
11058 (avx512f_vcvtph2ps512): Ditto.
11059 (avx512f_vcvtps2ph512): Ditto.
11060 (VEC_EXTRACT_MODE): Extened with wider modes.
11061 (VEC_PERM_AVX2): Ditto.
11062 (VEC_PERM_CONST): Ditto.
11064 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11066 * config/arc/arc.c (arc_ccfsm_post_advance):
11067 Add comment about TYPE_RETURN.
11069 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11071 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11072 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11073 (strip_offset): Convert offset to unsigned number.
11075 2013-10-27 Tom de Vries <tom@codesourcery.com>
11077 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11078 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11080 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11082 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11083 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11084 (TARGET_BIG_ENDIAN): New macro.
11085 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11086 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11087 * config/sh/sh.c: Likewise.
11088 * config/sh/sh.h: Likewise.
11090 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11092 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11093 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11095 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11097 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11099 (cmpstr_t, cmpstrsi): Fix formatting.
11101 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11104 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11105 addressing, do not use general_operand for memory operands.
11107 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11110 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11111 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11113 2013-10-26 Jeff Law <law@redhat.com>
11115 * predict.c (PRED_MUDFLAP): Remove.
11116 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11118 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11119 (OBJS): Remove tree-nomudflap.o
11120 (GTFILES): Remove tree-mudflap.c
11121 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11122 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11123 (mfwrap_spec, mflib_spec): Likewise.
11124 (cpp_unique_options, cc1_options, static_specs): Likewise.
11125 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11126 * passes.def: Likewise.
11127 * toplev.c (compile_file, process_options): Likewise.
11128 * tree-inline.c (copy_tree_r): Likewise.
11129 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11130 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11131 (build_constant_desc, output_constant_def_contents): Likewise.
11132 (categorize_decl_for_section): Likewise.
11133 * tree-mudflap.c: Removed.
11134 * tree-mudflap.h: Removed.
11135 * tree-nomudflap.c: Removed.
11136 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11137 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11138 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11139 * config/sol2.h (MFLIB_SPEC): Likewise.
11140 * doc/install.texi: Remove mudflap references.
11141 * doc/passes.texi: Similarly.
11142 * doc/sourcebuild.texi: Similarly.
11143 * doc/invoke.texi: Remove mudlfap related options.
11145 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11147 PR rtl-optimization/58759
11148 * lra-constraints.c (lra_constraints): Remove wrong condition to
11149 remove insn setting up an equivalent pseudo.
11151 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11153 * config/rs6000/rs6000-protos.h
11154 (rs6000_secondary_memory_needed_mode): New prototype.
11155 * config/rs6000/rs6000.c: Include ira.h.
11156 (TARGET_LRA_P): Redefine.
11157 (rs6000_legitimate_offset_address_p): Call
11158 legitimate_constant_pool_address_p in strict mode for LRA.
11159 (rs6000_legitimate_address_p): Ditto.
11160 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11161 (rs6000_emit_move): Add LRA version of code to generate load/store
11163 (rs6000_secondary_memory_needed_mode): New.
11164 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11165 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11166 constants, memory, and FP registers.
11167 (rs6000_lra_p): New.
11168 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11169 * config/rs6000/rs6000.opt (mlra): New option.
11170 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11172 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11174 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11175 has_single_use () and not do the conversion if has_single_use ()
11176 returns false for the multiplication result.
11178 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11180 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11181 to "NODE", since this works on a "tree", not an
11183 (CONSTANT_CLASS_P): Likewise.
11184 (TYPE_P): Likewise.
11185 (DECL_P): Likewise.
11186 (INDIRECT_REF_P): Likewise.
11187 (REFERENCE_CLASS_P): Likewise.
11188 (COMPARISON_CLASS_P): Likewise.
11189 (UNARY_CLASS_P): Likewise.
11190 (BINARY_CLASS_P): Likewise.
11191 (STATEMENT_CLASS_P): Likewise.
11192 (VL_EXP_CLASS_P): Likewise.
11193 (EXPRESSION_CLASS_P): Likewise.
11194 (IS_TYPE_OR_DECL_P): Likewise.
11196 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11198 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11199 ADDR_EXPR in the defining statement.
11201 2013-10-25 Richard Biener <rguenther@suse.de>
11203 PR tree-optimization/58626
11204 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11205 anti_dd, output_dd and input_dd.
11206 (struct rdg_edge): Remove level and relation members.
11207 (RDGE_LEVEL, RDGE_RELATION): Remove.
11208 (dot_rdg_1): Adjust.
11209 (create_rdg_edge_for_ddr): Remove.
11210 (create_rdg_edges_for_scalar): Adjust.
11211 (create_edge_for_control_dependence): Likewise.
11212 (create_rdg_edges): Split into ...
11213 (create_rdg_flow_edges): ... this
11214 (create_rdg_cd_edges): ... and this.
11215 (free_rdg): Adjust.
11216 (build_rdg): Likewise, do not compute data dependences or
11217 add edges for them.
11218 (pg_add_dependence_edges): New function.
11220 (distribute_loop): First apply all non-dependence based
11221 partition mergings. Then compute dependences between partitions
11222 and merge and order partitions according to them.
11224 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11226 PR rtl-optimization/58831
11227 * alias.c (init_alias_analysis): At the beginning of each iteration,
11228 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11230 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11232 * recog.c (search_ofs): New static variable moved from...
11233 (peep2_find_free_register): ...here.
11234 (peephole2_optimize): Initialize it.
11236 2013-10-25 Tobias Burnus <burnus@net-b.de>
11238 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11240 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11242 * config/i386/i386.h (TARGET_MPX): New define.
11243 (TARGET_MPX_P): Ditto.
11245 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11247 * config/i386/constraints.md (B): New.
11250 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11251 * config/i386/i386-modes.def (BND32): New.
11253 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11254 * config/i386/i386.c (isa_opts): Add mmpx.
11255 (regclass_map): Add bound registers.
11256 (dbx_register_map): Likewise.
11257 (dbx64_register_map): Likewise.
11258 (svr4_dbx_register_map): Likewise.
11260 (ix86_option_override_internal): Support MPX ISA.
11261 (ix86_conditional_register_usage): Support bound registers.
11262 (print_reg): Likewise.
11263 (ix86_code_end): Add MPX bnd prefix.
11264 (output_set_got): Likewise.
11265 (ix86_output_call_insn): Likewise.
11266 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11267 (ix86_print_operand_punct_valid_p): Likewise.
11268 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11270 (ix86_class_likely_spilled_p): Add bound regs support.
11271 (ix86_hard_regno_mode_ok): Likewise.
11272 (x86_order_regs_for_local_alloc): Likewise.
11273 (ix86_bnd_prefixed_insn_p): New.
11274 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11275 (FIXED_REGISTERS): Add bound registers.
11276 (CALL_USED_REGISTERS): Likewise.
11277 (REG_ALLOC_ORDER): Likewise.
11278 (HARD_REGNO_NREGS): Likewise.
11280 (VALID_BND_REG_MODE): New.
11281 (FIRST_BND_REG): New.
11282 (LAST_BND_REG): New.
11283 (reg_class): Add BND_REGS.
11284 (REG_CLASS_NAMES): Likewise.
11285 (REG_CLASS_CONTENTS): Likewise.
11286 (BND_REGNO_P): New.
11287 (ANY_BND_REG_P): New.
11289 (HI_REGISTER_NAMES): Add bound registers.
11290 * config/i386/i386.md (UNSPEC_BNDMK): New.
11291 (UNSPEC_BNDMK_ADDR): New.
11292 (UNSPEC_BNDSTX): New.
11293 (UNSPEC_BNDLDX): New.
11294 (UNSPEC_BNDLDX_ADDR): New.
11295 (UNSPEC_BNDCL): New.
11296 (UNSPEC_BNDCU): New.
11297 (UNSPEC_BNDCN): New.
11298 (UNSPEC_MPX_FENCE): New.
11301 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11302 (length_immediate): Likewise.
11303 (prefix_0f): Likewise.
11304 (memory): Likewise.
11305 (prefix_rep): Check for bnd prefix.
11306 (length_nobnd): New.
11307 (length): Use length_nobnd if specified.
11312 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11313 (*jcc_2): Likewise.
11315 (simple_return_internal): Likewise.
11316 (simple_return_pop_internal): Likewise.
11317 (*indirect_jump): Add MPX bnd prefix.
11318 (*tablejump_1): Likewise.
11319 (simple_return_internal_long): Likewise.
11320 (simple_return_indirect_internal): Likewise.
11324 (*mov<mode>_internal_mpx): New.
11325 (<mode>_<bndcheck>): New.
11326 (*<mode>_<bndcheck>): New.
11328 (*<mode>_ldx): New.
11330 (*<mode>_stx): New.
11331 * config/i386/predicates.md (lea_address_operand): Rename to...
11332 (address_no_seg_operand): ... this.
11333 (address_mpx_no_base_operand): New.
11334 (address_mpx_no_index_operand): New.
11335 (bnd_mem_operator): New.
11336 * config/i386/i386.opt (mmpx): New.
11337 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11338 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11340 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11342 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11343 * tree.def (POINTER_BOUNDS_TYPE): New.
11344 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11345 (POINTER_BOUNDS_MODE): New.
11346 (make_pointer_bounds_mode): New.
11347 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11348 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11349 (layout_type): Support POINTER_BOUNDS_TYPE.
11350 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11351 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11352 (type_contains_placeholder_1): Likewise.
11353 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11354 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11355 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11357 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11359 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11360 mode of address computation when calling memory_address_addr_space.
11362 2013-08-24 Richard Henderson <rth@twiddle.net>
11365 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11366 instead of create_convert_operand_to.
11367 (maybe_emit_sync_lock_test_and_set): Likewise.
11368 (expand_atomic_compare_and_swap): Likewise.
11369 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11371 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11373 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11374 Change param_is to use the struct and not the pointer to the struct.
11376 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11378 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11379 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11380 Move to targhooks.c.
11381 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11382 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11383 Relocate from gimplify.c.
11384 * targhooks.h: Add 2 prototypes.
11385 * tree.h: Delete 2 prototypes.
11387 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11389 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11390 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11392 2013-10-24 Cong Hou <congh@google.com>
11394 * convert.c (convert_to_real): Guard those unsafe math function
11395 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11398 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11401 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11403 (cgraph_create_edge): Use the new argument.
11404 (cgraph_create_indirect_edge): Likewise.
11406 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11408 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11409 TYPE_UNCOND_BRANCH.
11410 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11411 changes statep->state.
11413 2013-10-24 Tobias Burnus <burnus@net-b.de>
11416 * tree-cfg.c (replace_loop_annotate): New function.
11417 (execute_build_cfg): Call it.
11418 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11419 * internal-fn.c (expand_ANNOTATE): New function.
11420 * internal-fn.def (ANNOTATE): Define as new internal function.
11421 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11422 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11423 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11424 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11425 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11427 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11428 Marcus Shawcroft <marcus.shawcroft@arm.com>
11430 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11431 Special case reload SP+C into none GENERAL_REGS.
11433 2013-10-24 Michael Matz <matz@suse.de>
11435 * gengtype.c (is_file_equal): Check that files will be same length.
11437 2013-10-25 Christian Bruel <christian.bruel@st.com>
11439 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11440 * config/sh/t-sh (sh-mem.o): New rule.
11441 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11442 (sh_expand_cmpstr): New function.
11443 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11444 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11445 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11446 (rotlhi3_8): Rename.
11448 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11450 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11451 * Makefile.in (CXXDEPMODE): Assign and change users.
11452 (CCDEPMODE): Delete.
11453 * configure: Regenerate.
11455 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11457 * gengtype-parse.c (require_without_advance): New.
11458 (type): For GTY-marked types that are not GTY((user)), parse any
11459 base classes, requiring them to be single-inheritance, and not
11460 be templates. For non-GTY-marked types and GTY((user)),
11461 continue to skip over any C++ inheritance specification.
11462 * gengtype-state.c (state_writer::write_state_struct_type):
11463 Write base class of type (if any).
11464 (read_state_struct_type): Read base class of type (if any).
11465 * gengtype.c (new_structure): Add a "base_class" parameter.
11466 (create_optional_field_): Update for new parameter to new_structure.
11467 (adjust_field_rtx_def): Likewise.
11468 (adjust_field_tree_exp): Likewise.
11469 * gengtype.h (struct type): Add "base_class" field to the s
11471 (new_structure): Add "base" parameter.
11473 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11476 * config/i386/i386.c (ix86_option_override_internal):
11477 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11478 (ix86_valid_target_attribute_tree):
11479 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11480 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11482 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11484 * tree-ssa-loop.h: Remove include files.
11485 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11486 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11487 * graphite-clast-to-gimple.c: Likewise.
11488 * graphite-scop-detection.c: Likewise.
11489 * graphite-sese-to-poly.c: Likewise.
11490 * ipa-inline-analysis.c: Likewise.
11491 * ipa-pure-const.c: Likewise.
11492 * loop-init.c: Likewise.
11493 * passes.c: Likewise.
11494 * predict.c: Likewise.
11495 * tree-cfg.c: Likewise.
11496 * tree-cfgcleanup.c: Likewise.
11497 * tree-chrec.c: Likewise.
11498 * tree-data-ref.c: Likewise.
11499 * tree-loop-distribution.c: Likewise.
11500 * tree-parloops.c: Likewise.
11501 * tree-predcom.c: Likewise.
11502 * tree-scalar-evolution.c: Likewise.
11503 * tree-ssa-address.c: Likewise.
11504 * tree-ssa.c: Likewise.
11505 * tree-ssa-dce.c: Likewise.
11506 * tree-ssa-loop.c: Likewise.
11507 * tree-ssa-loop-im.c: Likewise.
11508 * tree-ssa-loop-ivcanon.c: Likewise.
11509 * tree-ssa-loop-ivopts.c: Likewise.
11510 * tree-ssa-loop-manip.c: Likewise.
11511 * tree-ssa-loop-niter.c: Likewise.
11512 * tree-ssa-loop-prefetch.c: Likewise.
11513 * tree-ssa-loop-unswitch.c: Likewise.
11514 * tree-ssa-reassoc.c: Likewise.
11515 * tree-vect-data-refs.c: Likewise.
11516 * tree-vect-loop.c: Likewise.
11517 * tree-vect-loop-manip.c: Likewise.
11518 * tree-vectorizer.c: Likewise.
11519 * tree-vect-stmts.c: Likewise.
11520 * tree-vrp.c: Likewise.
11522 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11524 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11526 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11528 PR tree-optimization/58775
11529 PR tree-optimization/58791
11530 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11531 (insert_stmt_after): Rewritten, don't move the stmt, but really
11533 (get_stmt_uid_with_default): Remove.
11534 (build_and_add_sum): Use insert_stmt_after and
11535 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11536 (update_range_test): Set uid on stmts added by
11537 force_gimple_operand_gsi. Don't immediately modify statements
11538 in inter-bb optimization, just update oe->op values.
11539 (optimize_range_tests): Return bool whether any changed have been made.
11540 (update_ops): New function.
11541 (struct inter_bb_range_test_entry): New type.
11542 (maybe_optimize_range_tests): Perform statement changes here.
11543 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11544 ensure_ops_are_available): Remove.
11545 (find_insert_point): Rewritten.
11546 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11547 return LHS of the (new resp. old) stmt. Don't call
11548 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11549 instead of last, move new stmt at the right place.
11550 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11551 (negate_value): Likewise. Set uids.
11552 (break_up_subtract_bb): Initialize uids.
11553 (reassociate_bb): Adjust rewrite_expr_tree caller.
11554 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11556 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11559 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11560 TARGET_32BIT final condition.
11561 (mulsi3_internal2 and splitter): Same.
11563 2013-10-23 Jeff Law <law@redhat.com>
11565 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11566 through joiner blocks with abnormal outgoing edges.
11568 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11569 Add parameter JOINERS, to allow/disallow threading through joiner
11571 (thread_block): New. Call thread_block_1.
11572 (mark_threaded_blocks): Remove code to filter out certain cases
11573 of threading through joiner blocks.
11574 (thread_through_all_blocks): Document how we can have a dangling
11575 edge AUX field and clear it.
11577 2013-10-23 Ian Lance Taylor <iant@google.com>
11579 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11580 (C++ Dialect Options): Likewise.
11581 (Optimize Options): Likewise.
11583 2013-10-23 Tom de Vries <tom@codesourcery.com>
11585 PR tree-optimization/58805
11586 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11588 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11590 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11591 sequence based on get_range_info returned range.
11593 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11595 * tree-ssa.h: Remove all #include's
11596 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11597 * alias.c: Move required includes from tree-ssa.h.
11598 * asan.c: Likewise.
11599 * builtins.c: Likewise.
11600 * calls.c: Likewise.
11601 * cfgexpand.c: Likewise.
11602 * cfghooks.c: Likewise.
11603 * cfgloop.c: Likewise.
11604 * cfgloopmanip.c: Likewise.
11605 * cgraph.c: Likewise.
11606 * cgraphbuild.c: Likewise.
11607 * cgraphclones.c: Likewise.
11608 * cgraphunit.c: Likewise.
11610 * except.c: Likewise.
11611 * expr.c: Likewise.
11612 * final.c: Likewise.
11613 * fold-const.c: Likewise.
11614 * ggc-page.c: Likewise.
11615 * gimple-builder.c: Likewise.
11616 * gimple-fold.c: Likewise.
11617 * gimple-iterator.c: Likewise.
11618 * gimple-low.c: Likewise.
11619 * gimple-pretty-print.c: Likewise.
11620 * gimple-ssa-strength-reduction.c: Likewise.
11621 * gimple-streamer-in.c: Likewise.
11622 * gimple-streamer-out.c: Likewise.
11623 * gimplify.c: Likewise.
11624 * graphite-blocking.c: Likewise.
11625 * graphite-clast-to-gimple.c: Likewise.
11626 * graphite-dependences.c: Likewise.
11627 * graphite-interchange.c: Likewise.
11628 * graphite-optimize-isl.c: Likewise.
11629 * graphite-poly.c: Likewise.
11630 * graphite-scop-detection.c: Likewise.
11631 * graphite-sese-to-poly.c: Likewise.
11632 * graphite.c: Likewise.
11633 * ipa-cp.c: Likewise.
11634 * ipa-inline-analysis.c: Likewise.
11635 * ipa-inline-transform.c: Likewise.
11636 * ipa-inline.c: Likewise.
11637 * ipa-prop.c: Likewise.
11638 * ipa-pure-const.c: Likewise.
11639 * ipa-reference.c: Likewise.
11640 * ipa-split.c: Likewise.
11641 * ipa-utils.c: Likewise.
11642 * loop-init.c: Likewise.
11643 * lto-cgraph.c: Likewise.
11644 * lto-section-in.c: Likewise.
11645 * lto-section-out.c: Likewise.
11646 * lto-streamer-in.c: Likewise.
11647 * lto-streamer-out.c: Likewise.
11648 * lto-streamer.c: Likewise.
11649 * omp-low.c: Likewise.
11650 * passes.c: Likewise.
11651 * predict.c: Likewise.
11652 * print-tree.c: Likewise.
11653 * profile.c: Likewise.
11654 * sese.c: Likewise.
11655 * targhooks.c: Likewise.
11656 * tracer.c: Likewise.
11657 * trans-mem.c: Likewise.
11658 * tree-call-cdce.c: Likewise.
11659 * tree-cfg.c: Likewise.
11660 * tree-cfgcleanup.c: Likewise.
11661 * tree-chrec.c: Likewise.
11662 * tree-complex.c: Likewise.
11663 * tree-data-ref.c: Likewise.
11664 * tree-dfa.c: Likewise.
11665 * tree-eh.c: Likewise.
11666 * tree-emutls.c: Likewise.
11667 * tree-if-conv.c: Likewise.
11668 * tree-inline.c: Likewise.
11669 * tree-into-ssa.c: Likewise.
11670 * tree-loop-distribution.c: Likewise.
11671 * tree-mudflap.c: Likewise.
11672 * tree-nested.c: Likewise.
11673 * tree-nrv.c: Likewise.
11674 * tree-object-size.c: Likewise.
11675 * tree-outof-ssa.c: Likewise.
11676 * tree-parloops.c: Likewise.
11677 * tree-phinodes.c: Likewise.
11678 * tree-predcom.c: Likewise.
11679 * tree-pretty-print.c: Likewise.
11680 * tree-profile.c: Likewise.
11681 * tree-scalar-evolution.c: Likewise.
11682 * tree-sra.c: Likewise.
11683 * tree-ssa-address.c: Likewise.
11684 * tree-ssa-alias.c: Likewise.
11685 * tree-ssa-ccp.c: Likewise.
11686 * tree-ssa-coalesce.c: Likewise.
11687 * tree-ssa-copy.c: Likewise.
11688 * tree-ssa-copyrename.c: Likewise.
11689 * tree-ssa-dce.c: Likewise.
11690 * tree-ssa-dom.c: Likewise.
11691 * tree-ssa-dse.c: Likewise.
11692 * tree-ssa-forwprop.c: Likewise.
11693 * tree-ssa-ifcombine.c: Likewise.
11694 * tree-ssa-live.c: Likewise.
11695 * tree-ssa-loop-ch.c: Likewise.
11696 * tree-ssa-loop-im.c: Likewise.
11697 * tree-ssa-loop-ivcanon.c: Likewise.
11698 * tree-ssa-loop-ivopts.c: Likewise.
11699 * tree-ssa-loop-manip.c: Likewise.
11700 * tree-ssa-loop-niter.c: Likewise.
11701 * tree-ssa-loop-prefetch.c: Likewise.
11702 * tree-ssa-loop-unswitch.c: Likewise.
11703 * tree-ssa-loop.c: Likewise.
11704 * tree-ssa-math-opts.c: Likewise.
11705 * tree-ssa-operands.c: Likewise.
11706 * tree-ssa-phiopt.c: Likewise.
11707 * tree-ssa-phiprop.c: Likewise.
11708 * tree-ssa-pre.c: Likewise.
11709 * tree-ssa-propagate.c: Likewise.
11710 * tree-ssa-reassoc.c: Likewise.
11711 * tree-ssa-sccvn.c: Likewise.
11712 * tree-ssa-sink.c: Likewise.
11713 * tree-ssa-strlen.c: Likewise.
11714 * tree-ssa-structalias.c: Likewise.
11715 * tree-ssa-tail-merge.c: Likewise.
11716 * tree-ssa-ter.c: Likewise.
11717 * tree-ssa-threadedge.c: Likewise.
11718 * tree-ssa-threadupdate.c: Likewise.
11719 * tree-ssa-uncprop.c: Likewise.
11720 * tree-ssa-uninit.c: Likewise.
11721 * tree-ssa.c: Likewise.
11722 * tree-ssanames.c: Likewise.
11723 * tree-stdarg.c: Likewise.
11724 * tree-streamer-in.c: Likewise.
11725 * tree-switch-conversion.c: Likewise.
11726 * tree-tailcall.c: Likewise.
11727 * tree-vect-data-refs.c: Likewise.
11728 * tree-vect-generic.c: Likewise.
11729 * tree-vect-loop-manip.c: Likewise.
11730 * tree-vect-loop.c: Likewise.
11731 * tree-vect-patterns.c: Likewise.
11732 * tree-vect-slp.c: Likewise.
11733 * tree-vect-stmts.c: Likewise.
11734 * tree-vectorizer.c: Likewise.
11735 * tree-vrp.c: Likewise.
11736 * tree.c: Likewise.
11737 * tsan.c: Likewise.
11738 * value-prof.c: Likewise.
11739 * var-tracking.c: Likewise.
11740 * varpool.c: Likewise.
11741 * vtable-verify.c: Likewise.
11743 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11745 * config/tilegx/tilegx.c: Include "tree.h".
11747 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11749 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11750 the info, not after it.
11751 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11752 dump_ssaname_info call.
11753 (pp_gimple_stmt_1): Adjust caller.
11754 (dump_phi_nodes): Likewise. Don't print "# " here.
11756 2013-10-22 Jan Hubicka <jh@suse.cz>
11758 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11760 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11761 * i386.c (expand_small_movmem_or_setmem): New function.
11762 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11764 (alg_usable_p): Add support for value ranges; cleanup.
11765 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11767 2013-10-22 Sterling Augustine <saugustine@google.com>
11769 * doc/invoke.texi: Document -ggnu-pubnames.
11770 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11772 * dwarf2out.c: Include gdb/gdb-index.h.
11773 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11774 debug_generate_pub_sections.
11775 (is_java, output_pubtables, output_pubname): New functions.
11776 (include_pubname_in_output): Handle debug_generate_pub_sections at
11778 (size_of_pubnames): Use new local space_for_flags based on
11779 debug_generate_pub_sections.
11780 (output_pubnames): Unify pubnames and pubtypes output logic.
11781 Genericize comments. Call output_pubname.
11782 (dwarf2out_finish): Move logic to output_pubnames and call it.
11784 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11787 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11788 Remove CCCmode handling.
11789 <case LTU>: Return 'c' suffix for CCCmode.
11790 <case GEU>: Return 'nc' suffix for CCCmode.
11791 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11792 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11793 (*sub<mode>3_cc_overflow): Ditto.
11794 (*subsi3_zext_cc_overflow): Ditto.
11796 2013-10-22 Steve Ellcey <sellcey@mips.com>
11798 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11799 (AND (NOT OP1) (NOT OP2)).
11801 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11803 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11804 meaning of merge-high and merge-low masks for little endian; avoid
11805 use of vector-pack masks for little endian for mismatched modes.
11807 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11809 * config/tilepro/tilepro.c: Include "tree.h".
11811 2013-10-22 Andreas Schwab <schwab@suse.de>
11813 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11816 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11818 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11819 [Ed Smith-Rowland]): New entries.
11820 ([Stephen M. Webb]): Update.
11822 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11824 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11826 2013-10-21 Marek Polacek <polacek@redhat.com>
11828 PR middle-end/58809
11829 * fold-const.c (fold_range_test): Return 0 if the type is not
11832 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11834 * system.h: Move hwint.h include further down.
11835 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11836 gcc_checking_asserts.
11837 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11839 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11841 Fix volatile issues in optimize_bit_field_compare.
11842 * fold-const.c (optimize_bit_field_compare): Bail out if
11843 lvolatilep or rvolatilep.
11845 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11847 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11848 and get_inner_reference returning different pmode for non-volatile
11849 bit-field members dependent on flag_strict_volatile_bitfields.
11850 * stor-layout.c (layout_decl): Remove special handling of
11851 flag_strict_volatile_bitfields.
11852 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11853 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11855 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11857 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11860 2013-10-21 Jeff Law <law@redhat.com>
11862 * tree-ssa-threadedge.c (thread_through_normal_block): New
11863 argument VISITED. Remove VISISTED as a local variable. When we
11864 have a threadable jump, verify the destination of the jump has not
11866 (thread_across_edge): Allocate VISITED bitmap once at function
11867 scope and use it throughout. Make sure to set appropriate bits in
11868 VISITED for E (start of jump thread path).
11869 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11870 through a joiner if any edge on the path has a recorded jump thread.
11872 2013-10-21 Ian Lance Taylor <iant@google.com>
11874 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11875 don't imply that attributes can solve all problems.
11876 (Directory Options): Fix typo.
11878 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11880 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11881 extend and extend_add.
11883 2013-10-21 Richard Biener <rguenther@suse.de>
11885 PR tree-optimization/58794
11886 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11887 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11889 2013-10-21 Richard Biener <rguenther@suse.de>
11891 PR middle-end/58742
11892 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11893 to (T) X for sign-changing conversions (or no conversion).
11895 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11897 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11899 2013-10-20 Jan Hubicka <jh@suse.cz>
11901 * config/i386/i386-tune.def: Add comment; organize into categories
11903 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11905 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11906 argument. Update function comment.
11907 (expand_set_or_movmem_via_rep): New function combining
11908 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11909 (expand_movmem_via_rep_mov): Remove.
11910 expand_setmem_via_rep_stos): Remove.
11911 (expand_movmem_epilogue): Update calls correspondingly.
11912 (expand_setmem_epilogue_via_loop): Likewise.
11913 (emit_memset): New.
11914 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11915 (expand_set_or_movmem_prologue): New function combining
11916 expand_movmem_prologue and expand_setmem_prologue.
11917 (expand_movmem_prologue): Remove.
11918 (expand_setmem_prologue): Remove.
11919 (expand_set_or_movmem_constant_prologue): New function combining
11920 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11921 (expand_constant_movmem_prologue): Remove.
11922 (expand_constant_setmem_prologue): Remove.
11923 (promote_duplicated_reg): Allow vector-const0 value.
11924 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11925 and ix86_expand_setmem.
11926 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11927 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11929 2013-10-21 Diego Novillo <dnovillo@google.com>
11931 * asan.c: Include tree.h
11932 * bb-reorder.c: Likewise.
11933 * cfgcleanup.c: Likewise.
11934 * cfgloopmanip.c: Likewise.
11935 * data-streamer-in.c: Likewise.
11936 * data-streamer-out.c: Likewise.
11937 * data-streamer.c: Likewise.
11938 * dwarf2cfi.c: Likewise.
11939 * graphite-blocking.c: Likewise.
11940 * graphite-clast-to-gimple.c: Likewise.
11941 * graphite-dependences.c: Likewise.
11942 * graphite-interchange.c: Likewise.
11943 * graphite-optimize-isl.c: Likewise.
11944 * graphite-poly.c: Likewise.
11945 * graphite-scop-detection.c: Likewise.
11946 * graphite-sese-to-poly.c: Likewise.
11947 * graphite.c: Likewise.
11948 * ipa-devirt.c: Likewise.
11949 * ipa-profile.c: Likewise.
11952 * loop-init.c: Likewise.
11953 * loop-unroll.c: Likewise.
11954 * lower-subreg.c: Likewise.
11955 * lto/lto-object.c: Likewise.
11956 * recog.c: Likewise.
11957 * reginfo.c: Likewise.
11958 * tree-loop-distribution.c: Likewise.
11959 * tree-parloops.c: Likewise.
11960 * tree-ssa-strlen.c: Likewise.
11961 * tree-streamer.c: Likewise.
11962 * value-prof.c: Likewise.
11963 * target-globals.c: Likewise.
11964 * expr.h: Include tree-core.h instead of tree.h.
11965 * gimple.h: Likewise.
11966 * ipa-prop.h: Likewise.
11967 * ipa-utils.h: Likewise.
11968 * lto-streamer.h: Likewise.
11969 * streamer-hooks.h: Likewise.
11970 * ipa-reference.h: Include cgraph.h instead of tree.h.
11971 * cgraph.h: Include basic-block.h instead of tree.h.
11972 * tree-streamer.h: Do not include tree.h.
11973 * genattrtab.c (write_header): Generate inclusion of tree.h.
11974 * genautomata.c (main): Likewise.
11975 * genemit.c: Likewise.
11976 * genopinit.c: Likewise.
11977 * genoutput.c (output_prologue): Likewise.
11978 * genpeep.c: Likewise.
11980 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11982 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11984 (vec_unpacku_hi_v8hi): Likewise.
11985 (vec_unpacku_lo_v16qi): Likewise.
11986 (vec_unpacku_lo_v8hi): Likewise.
11988 2013-10-20 Jan Hubicka <jh@suse.cz>
11990 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11991 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11992 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11994 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11996 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11997 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11999 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12001 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12004 * system.h: Undef m_slot.
12006 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12008 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12009 all elements for both endian flavors.
12011 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12014 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12015 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12016 and SI_REG for 64bit SYSV ABI targets.
12018 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12020 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12021 to multi_reg_return. Clarify that we are skipping USEs of multiple
12022 return registers. Use bool type where appropriate.
12024 2013-10-18 Jan Hubicka <jh@suse.cz>
12026 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12027 for cold functions.
12028 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12029 (X86_TUNE_PUSH_MEMORY): Likewise.
12030 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12031 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12032 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12034 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12035 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12037 (ix86_option_override_internal): Update to use tune features instead
12040 2013-10-18 Cong Hou <congh@google.com>
12042 PR tree-optimization/58508
12043 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12044 statement that contains data refs with zero-step.
12046 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12048 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12049 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12050 * gimple-low.c (gimple_check_call_arg,
12051 gimple_check_call_matching_types): Move to cgraph.c.
12052 * gimple-low.h: Remove prototype.
12053 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12054 Relocate from gimple-low.c.
12055 * cgraph.h: Add prototype. Don't include basic-block.h.
12056 * gimplify.c: Add gimple-low to include list.
12057 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12058 * tree-eh.c: Add gimple-low to include list.
12059 * tree-nested.c: Likewise.
12060 * cfgexpand.c: Add tree-ssa-address.h to include list.
12061 * expr.c: Likewise.
12062 * gimple-fold.c: Likewise.
12063 * gimple-ssa-strength-reduction.c: Likewise.
12064 * trans-mem.c: Likewise.
12065 * tree-mudflap.c: Likewise.
12066 * tree-ssa-loop-ivopts.c: Likewise.
12067 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12068 (degenerate_phi_result): Move to tree-phinodes.c.
12069 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12070 * tree-ssa-threadedge.c: Likewise.
12071 * tree-vrp.c: Likewise.
12072 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12073 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12074 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12075 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12076 * tree-ssa-forwprop.c: Likewise.
12077 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12078 pass_data_cleanup_cfg_post_optimizing,
12079 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12080 * tree-optimize.c: Delete File.
12081 * graphite.c: Include tree-cfgcleanup.h.
12082 * passes.c: Likewise.
12083 * tree-cfg.c: Likewise.
12084 * tree-profile.c: Likewise.
12085 * tree-ssa-dse.c: Likewise.
12086 * tree-ssa-loop-ivcanon.c: Likewise.
12087 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12088 * tree-outof-ssa.c: Include sbitmap.h.
12089 * tree-ssa-live.c: Likewise.
12090 * tree-ssa-propagate.c: Likewise.
12091 * tree-ssa-structalias.c: Likewise.
12092 * tree-stdarg.c: Likewise.
12093 * Makefile.in (OBJS): Delete tree-optimize.o.
12094 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12095 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12096 * varasm.c: Include basic-block.h.
12097 * cfgloop.h: Include function.h instead of basic-block.h
12098 (bb_loop_depth): Move to cfgloop.c.
12099 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12101 2013-10-18 Teresa Johnson <tejohnson@google.com>
12103 * predict.c (probably_never_executed): Compare frequency-based
12104 count to number of training runs.
12105 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12107 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12109 * config/arm/arm.c (cortexa9_extra_costs): New table.
12110 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12112 2013-10-18 Jeff Law <law@redhat.com>
12114 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12116 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12117 (register_jump_thread): Add "registered_jump_thread" debug
12119 * dbgcnt.def (registered_jump_thread): New debug counter.
12121 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12123 * config/rs6000/rs6000.c: Include cgraph.h.
12125 2013-10-18 Teresa Johnson <tejohnson@google.com>
12127 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12128 weights during merging.
12130 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12132 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12133 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12134 * tree-ssa-operands.h: Remove prototype.
12135 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12136 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12137 * gimple.h: Add prototype.
12138 * gimple-ssa.h: Include tree-ssa-operands.h.
12139 * tree-dump.c: Add tree-cfg.h to include list.
12140 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12141 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12142 * config/i386/i386.c: Don't include tree-flow.h.
12143 * config/rs6000/rs6000.c: Likewise.
12145 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12147 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12149 2013-10-18 Richard Biener <rguenther@suse.de>
12151 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12152 or TYPE_UNSIGNED of integral types.
12153 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12154 NULL_TREE for zero-precision integral types.
12156 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12158 * config/aarch64/arm_neon.h
12159 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12161 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12164 * opth-gen.awk: Define target_flags_explicit.
12166 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12168 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12169 fields to the reg_addr array that describes the valid addressing
12170 mode for any register, general purpose registers, floating point
12171 registers, and Altivec registers.
12172 (FIRST_RELOAD_REG_CLASS): Likewise.
12173 (LAST_RELOAD_REG_CLASS): Likewise.
12174 (struct reload_reg_map_type): Likewise.
12175 (reload_reg_map_type): Likewise.
12176 (RELOAD_REG_VALID): Likewise.
12177 (RELOAD_REG_MULTIPLE): Likewise.
12178 (RELOAD_REG_INDEXED): Likewise.
12179 (RELOAD_REG_OFFSET): Likewise.
12180 (RELOAD_REG_PRE_INCDEC): Likewise.
12181 (RELOAD_REG_PRE_MODIFY): Likewise.
12182 (reg_addr): Likewise.
12183 (mode_supports_pre_incdec_p): New helper functions to say whether
12184 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12185 (mode_supports_pre_modify_p): Likewise.
12186 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12187 print the valid address mode bits for each mode.
12188 (rs6000_debug_print_mode): Likewise.
12189 (rs6000_debug_reg_global): Likewise.
12190 (rs6000_setup_reg_addr_masks): New function to set up the address
12191 mask bits for each type.
12192 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12193 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12194 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12195 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12196 PRE_MODIFY are supported.
12197 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12198 registers, instead of {src,dest}_av_p.
12199 (rs6000_print_options_internal): Tweak the debug output slightly.
12201 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12203 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12206 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12208 * tree-flow.h (struct omp_region): Move to omp-low.c.
12209 Remove omp_ prototypes and variables.
12210 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12211 (copy_var_decl): Relocate prototype from tree-flow.h.
12212 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12213 * tree.h: Move prototype to omp-low.h.
12214 * omp-low.h: New File. Relocate prototypes here.
12215 * omp-low.c (struct omp_region): Make local here.
12216 (root_omp_region): Make static.
12217 (copy_var_decl) Move to gimple.c.
12218 (new_omp_region): Make static.
12219 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12220 * tree-cfg.c: Include omp-low.h.
12221 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12222 * gimplify.c: Include omp-low.h.
12223 * tree-parloops.c: Likewise.
12225 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12227 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12228 operands are in memory, prefer to force non-matched operand 1 to
12231 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12234 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12235 restrict TImode addresses to single indirect registers if both
12236 -mquad-memory and -mvsx-timode are used.
12237 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12238 we should emit load/store quad. Remove using %y for quad memory
12241 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12242 constraints to allow load/store quad on machines where TImode is
12243 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12244 for TImode to load integer constants.
12246 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12248 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12250 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12252 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12253 handling of STACK_REG.
12255 2013-10-17 Richard Biener <rguenther@suse.de>
12257 PR tree-optimization/58143
12258 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12260 (rewrite_to_defined_overflow): Likewise.
12261 (move_computations_dom_walker::before_dom): Rewrite stmts
12262 with undefined signed overflow that are not always executed
12263 into unsigned arithmetic.
12265 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12268 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12269 explicit isa flag to be an options variable, instead of using
12270 global_options_set. Remove define from rs6000.h.
12271 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12273 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12274 Initialize rs6000_isa_flags_explicit.
12275 (rs6000_function_specific_save): Add gcc_options* parameter, so
12276 that the powerpc builds after the 2013-10-15 changes.
12277 (rs6000_function_specific_restore): Likewise.
12279 2013-10-16 DJ Delorie <dj@redhat.com>
12281 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12282 op is a REG before checking REGNO.
12283 (rl78_alloc_physical_registers): Verify pattern is a SET before
12286 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12288 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12290 (vec_unpacks_lo_v4sf): Likewise.
12291 (vec_unpacks_float_hi_v4si): Likewise.
12292 (vec_unpacks_float_lo_v4si): Likewise.
12293 (vec_unpacku_float_hi_v4si): Likewise.
12294 (vec_unpacku_float_lo_v4si): Likewise.
12296 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12298 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12299 (vsx_concat_v2sf): Likewise.
12301 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12303 * config/aarch64/aarch64.md
12304 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12306 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12308 PR tree-optimization/58697
12309 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12310 estimated_loop_iterations_int.
12311 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12312 (get_max_loop_iterations_int): New. HWINT version of
12313 get_max_loop_iterations.
12314 * cfgloop.h: Add prototypes.
12315 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12316 * loop-unroll.c (decide_peel_once_rolling): Call
12317 get_estimated_loop_iterations_int.
12318 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12319 * tree-ssa-loop-niter.h: Tweak prototypes.
12321 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12323 * gengtype-parse.c (struct_field_seq): Ignore access-control
12324 keywords ("public:" etc).
12326 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12328 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12329 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12331 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12333 * config/arm/arm.opt (mlra): New option.
12334 * config/arm/arm.c (arm_lra_p): New function.
12335 (TARGET_LRA_P): Define.
12337 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12339 * tree-core.h (tree_code_name): Remove.
12340 * tree.h (get_tree_code_name): New prototype.
12341 * tree.c (tree_code_name): Make static.
12342 (get_tree_code_name): New function.
12343 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12344 tree_class_check_failed, tree_range_check_failed,
12345 tree_not_class_check_failed, omp_clause_check_failed,
12346 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12347 wrapper get_tree_code_name instead of calling tree_code_name directly.
12348 * tree-vrp.c (dump_asserts_for): Likewise.
12349 * tree-dump.c (dequeue_and_dump): Likewise.
12350 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12351 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12352 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12353 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12354 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12355 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12356 dump_gimple_omp_for): Likewise.
12357 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12358 * tree-ssa-pre.c (print_pre_expr): Likewise.
12359 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12360 * print-tree.c (print_node_brief, print_node): Likewise.
12361 * gimple.c (gimple_check_failed): Likewise.
12362 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12363 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12364 * config/mep/mep.c (mep_validate_vliw): Likewise.
12365 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12366 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12368 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12370 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12373 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12375 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12376 (MULTILIB_MATCHES): Add multilib for -march=v8.
12378 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12381 * optc-save-gen.awk: Add extra parameter to the save and restore
12383 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12384 * tree.c (build_optimization_node): New parameter. Add extra parameter
12385 to call to cl_optimization_save.
12386 (build_target_option_node): New parameter. Add extra parameter
12387 to call to cl_target_option_save.
12388 * tree.h (build_optimization_node): New parameter.
12389 (build_target_option_node): New parameter.
12390 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12391 build_optimization_node and build_target_option_node.
12392 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12393 (handle_pragma_push_options): Ditto.
12394 * toplev.c (process_options): Ditto.
12395 * opts.c (init_options_struct): Check for opts_set non-null.
12396 * target.def (target_option.save): New parameter.
12397 (target_option.restore): New parameter.
12398 * tm.texi: Generate.
12399 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12400 (ix86_pragma_target_parse): Ditto.
12401 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12404 to build_optimization_node and build_target_option_node.
12405 (rs6000_valid_attribute_p): Ditto.
12406 (rs6000_pragma_target_parse): Ditto.
12407 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12409 * config/i386/i386.h:
12410 TARGET_64BIT_P: New Macro
12411 TARGET_MMX_P: New Macro.
12412 TARGET_3DNOW_P: New Macro.
12413 TARGET_3DNOW_A_P: New Macro.
12414 TARGET_SSE_P: New Macro.
12415 TARGET_SSE2_P: New Macro.
12416 TARGET_SSE3_P: New Macro.
12417 TARGET_SSSE3_P: New Macro.
12418 TARGET_SSE4_1_P: New Macro.
12419 TARGET_SSE4_2_P: New Macro.
12420 TARGET_AVX_P: New Macro.
12421 TARGET_AVX2_P: New Macro.
12422 TARGET_AVX512F_P: New Macro.
12423 TARGET_AVX512PF_P: New Macro.
12424 TARGET_AVX512ER_P: New Macro.
12425 TARGET_AVX512CD_P: New Macro.
12426 TARGET_FMA_P: New Macro.
12427 TARGET_SSE4A_P: New Macro.
12428 TARGET_FMA4_P: New Macro.
12429 TARGET_XOP_P: New Macro.
12430 TARGET_LWP_P: New Macro.
12431 TARGET_ABM_P: New Macro.
12432 TARGET_BMI_P: New Macro.
12433 TARGET_BMI2_P: New Macro.
12434 TARGET_LZCNT_P: New Macro.
12435 TARGET_TBM_P: New Macro.
12436 TARGET_POPCNT_P: New Macro.
12437 TARGET_SAHF_P: New Macro.
12438 TARGET_MOVBE_P: New Macro.
12439 TARGET_CRC32_P: New Macro.
12440 TARGET_AES_P: New Macro.
12441 TARGET_PCLMUL_P: New Macro.
12442 TARGET_CMPXCHG16B_P: New Macro.
12443 TARGET_FSGSBASE_P: New Macro.
12444 TARGET_RDRND_P: New Macro.
12445 TARGET_F16C_P: New Macro.
12446 TARGET_RTM_P: New Macro.
12447 TARGET_HLE_P: New Macro.
12448 TARGET_RDSEED_P: New Macro.
12449 TARGET_PRFCHW_P: New Macro.
12450 TARGET_ADX_P: New Macro.
12451 TARGET_FXSR_P: New Macro.
12452 TARGET_XSAVE_P: New Macro.
12453 TARGET_XSAVEOPT_P: New Macro.
12454 TARGET_LP64_P: New Macro.
12455 TARGET_X32_P: New Macro.
12456 TARGET_FPMATH_DEFAULT_P: New Macro.
12457 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12458 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12460 Change ix86_tune_string to access opts->x_ix86_tune_string.
12461 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12462 Change ix86_arch_string to access opts->x_ix86_arch_string.
12463 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12464 Change ix86_pmode to access opts->x_ix86_pmode.
12465 Change ix86_abi to access opts->x_ix86_abi.
12466 Change ix86_cmodel to access opts->x_ix86_cmodel.
12467 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12468 Change ix86_isa_flags_explicit to access
12469 opts->x_ix86_isa_flags_explicit.
12470 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12471 Change ix86_regparm to access opts->x_ix86_regparm.
12472 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12473 Change ix86_preferred_stack_boundary_arg to access
12474 opts->x_ix86_preferred_stack_boundary_arg.
12475 Change ix86_force_align_arg_pointer to access
12476 opts->x_ix86_force_align_arg_pointer.
12477 Change ix86_incoming_stack_boundar_arg to access
12478 opts->x_ix86_incoming_stack_boundar_arg.
12479 Change ix86_fpmath to access opts->x_ix86_fpmath.
12480 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12481 Change ix86_recip_name to access opts->x_ix86_recip_name.
12482 Change ix86_stack_protector_guard to access
12483 opts->x_ix86_stack_protector_guard.
12484 Change ix86_tune_memcpy_strategy to access
12485 opts->x_ix86_tune_memcpy_strategy.
12486 Change ix86_tune_memset_strategy to access
12487 opts->x_ix86_tune_memset_strategy.
12488 Change global_options to access opts.
12489 Change global_options_set to access opts_set.
12490 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12491 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12492 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12493 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12494 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12495 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12496 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12497 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12498 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12499 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12500 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12501 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12502 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12503 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12504 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12505 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12506 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12507 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12508 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12509 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12510 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12511 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12512 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12513 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12514 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12515 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12516 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12517 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12518 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12519 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12520 Change TARGET_AES to TARGET_AES_P (opts->...).
12521 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12522 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12523 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12524 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12525 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12526 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12527 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12528 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12529 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12530 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12531 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12532 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12533 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12534 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12535 Change TARGET_X32 to TARGET_X32_P (opts->...).
12536 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12537 Change TARGET_FLOAT_RETURNS_IN_80387 to
12538 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12539 (ix86_function_specific_save): New parameter. Use opts-> fields
12540 to replace global fields.
12541 (ix86_function_specific_restore): Ditto.
12542 (ix86_valid_target_attribute_inner_p): New parameters.
12543 Fix recursive call.
12544 Fix call to ix86_handle_option and set_option.
12545 (ix86_valid_target_attribute_tree): New parameters.
12546 Change global_options to access opts.
12547 Change global_options_set to access opts_set.
12548 Fix call to ix86_valid_target_attribute_inner_p.
12549 Change ix86_tune_string to access opts->x_ix86_tune_string.
12550 Change ix86_arch_string to access opts->x_ix86_arch_string.
12551 Change ix86_fpmath to access opts->x_ix86_fpmath
12552 Fix call to ix86_option_override_internal.
12553 Fix call to ix86_add_new_builtins.
12554 Fix calls to build_optimization_node and build_target_option_node.
12555 (ix86_valid_target_attribute_p): Remove access to global_options.
12556 Use new gcc_options structure func_options.
12557 Fix call to ix86_valid_target_attribute_tree.
12558 Fix call to build_optimization_node.
12559 (get_builtin_code_for_version): Fix call to
12560 ix86_valid_target_attribute_tree.
12562 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12564 * Makefile.in (PICFLAG): New.
12565 (enable_host_shared): New.
12566 (INTERNAL_CFLAGS): Use PICFLAG.
12567 (LIBIBERTY): Use pic build of libiberty.a if configured with
12568 --enable-host-shared.
12569 * configure.ac: Add --enable-host-shared, setting up new
12571 * configure: Regenerate.
12572 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12573 (--enable-host-shared): New option.
12575 2013-10-15 Richard Biener <rguenther@suse.de>
12577 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12578 for built-in functions.
12580 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12582 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12583 (optimize_range_tests_1): New function,
12584 extracted from optimize_range_tests.
12585 (optimize_range_tests_xor): Similarly.
12586 (optimize_range_tests_diff): New function.
12587 (optimize_range_tests): Use optimize_range_tests_1.
12589 2013-10-15 Cong Hou <congh@google.com>
12591 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12592 requirement of the reduction pattern so that one operand of the
12593 reduction operation can come from outside of the loop.
12595 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12597 * config/arm/neon-schedgen.ml: Remove.
12598 * config/arm/cortex-a9-neon.md: Remove comment regarding
12601 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12603 * config/arm/types: Remove old neon types.
12605 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12607 * config/arm/cortex-a7.md
12608 (cortex_a7_neon_type): New.
12609 (cortex_a7_neon_mul): Update for new types.
12610 (cortex_a7_neon_mla): Likewise.
12611 (cortex_a7_neon): Likewise.
12613 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12615 * config/arm/cortex-a15-neon.md
12616 (cortex_a15_neon_type): New,
12618 (cortex_a15_neon_int_1): Remove.
12619 (cortex_a15_neon_int_2): Likewise.
12620 (cortex_a15_neon_int_3): Likewise.
12621 (cortex_a15_neon_int_4): Likewise.
12622 (cortex_a15_neon_int_5): Likewise.
12623 (cortex_a15_neon_vqneg_vqabs): Likewise.
12624 (cortex_a15_neon_vmov): Likewise.
12625 (cortex_a15_neon_vaba): Likewise.
12626 (cortex_a15_neon_vaba_qqq): Likewise.
12627 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12628 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12629 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12631 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12632 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12633 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12634 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12635 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12636 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12637 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12638 (cortex_a15_neon_shift_1): Likewise.
12639 (cortex_a15_neon_shift_2): Likewise.
12640 (cortex_a15_neon_shift_3): Likewise.
12641 (cortex_a15_neon_vshl_ddd): Likewise.
12642 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12643 (cortex_a15_neon_vsra_vrsra): Likewise.
12644 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12645 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12646 (cortex_a15_neon_bp_3cycle): Likewise.
12647 (cortex_a15_neon_ldm_2): Likewise.
12648 (cortex_a15_neon_stm_2): Likewise.
12649 (cortex_a15_neon_mcr): Likewise.
12650 (cortex_a15_neon_mrc): Likewise.
12651 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12652 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12653 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12654 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12655 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12656 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12657 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12658 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12659 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12660 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12661 (cortex_a15_neon_bp_simple): Likewise.
12662 (cortex_a15_neon_bp_2cycle): Likewise.
12663 (cortex_a15_neon_bp_3cycle): Likewise.
12664 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12665 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12666 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12667 (cortex_a15_neon_vld2_4_regs): Likewise.
12668 (cortex_a15_neon_vld3_vld4): Likewise.
12669 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12670 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12671 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12672 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12673 (cortex_a15_neon_vst3_vst4): Rename to...
12674 (cortex_a15_neon_vst4): This, update for new attributes.
12675 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12676 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12677 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12678 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12679 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12680 (cortex_a15_neon_ldm_2): Likewise.
12681 (cortex_a15_neon_stm_2): Likewise.
12682 (cortex_a15_neon_mcr): Likewise.
12683 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12684 (cortex_a15_neon_mrc): Likewise.
12685 (cortex_a15_neon_mrrc): Likewise.
12687 (cortex_a15_neon_abd): New.
12688 (cortex_a15_neon_abd_q): Likewise.
12689 (cortex_a15_neon_aba): Likewise.
12690 (cortex_a15_neon_aba_q): Likewise.
12691 (cortex_a15_neon_acc): Likewise.
12692 (cortex_a15_neon_acc_q): Likewise.
12693 (cortex_a15_neon_arith_basic): Likewise.
12694 (cortex_a15_neon_arith_complex): Likewise.
12695 (cortex_a15_neon_multiply): Likewise.
12696 (cortex_a15_neon_multiply_q): Likewise.
12697 (cortex_a15_neon_mla): Likewise.
12698 (cortex_a15_neon_mla_q): Likewise.
12699 (cortex_a15_neon_sat_mla_long): Likewise.
12700 (cortex_a15_neon_shift_acc): Likewise.
12701 (cortex_a15_neon_shift_imm_basic): Likewise.
12702 (cortex_a15_neon_shift_imm_complex): Likewise.
12703 (cortex_a15_neon_shift_reg_basic): Likewise.
12704 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12705 (cortex_a15_neon_shift_reg_complex): Likewise.
12706 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12707 (cortex_a15_neon_fp_negabs): Likewise
12708 (cortex_a15_neon_fp_arith): Likewise
12709 (cortex_a15_neon_fp_arith_q): Likewise
12710 (cortex_a15_neon_fp_cvt_int): Likewise
12711 (cortex_a15_neon_fp_cvt_int_q): Likewise
12712 (cortex_a15_neon_fp_cvt_16): Likewise
12713 (cortex_a15_neon_fp_mul): Likewise
12714 (cortex_a15_neon_fp_mul_q): Likewise
12715 (cortex_a15_neon_fp_mla): Likewise
12716 (cortex_a15_neon_fp_mla_q): Likewise
12717 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12718 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12719 (cortex_a15_neon_bitops): Likewise.
12720 (cortex_a15_neon_bitops_q): Likewise.
12721 (cortex_a15_neon_from_gp): Likewise.
12722 (cortex_a15_neon_from_gp_q): Likewise.
12723 (cortex_a15_neon_tbl3_tbl4): Likewise.
12724 (cortex_a15_neon_zip_q): Likewise.
12725 (cortex_a15_neon_to_gp): Likewise.
12726 (cortex_a15_neon_load_a): Likewise.
12727 (cortex_a15_neon_load_b): Likewise.
12728 (cortex_a15_neon_load_c): Likewise.
12729 (cortex_a15_neon_load_d): Likewise.
12730 (cortex_a15_neon_load_e): Likewise.
12731 (cortex_a15_neon_load_f): Likewise.
12732 (cortex_a15_neon_store_a): Likewise.
12733 (cortex_a15_neon_store_b): Likewise.
12734 (cortex_a15_neon_store_c): Likewise.
12735 (cortex_a15_neon_store_d): Likewise.
12736 (cortex_a15_neon_store_e): Likewise.
12737 (cortex_a15_neon_store_f): Likewise.
12738 (cortex_a15_neon_store_g): Likewise.
12739 (cortex_a15_neon_store_h): Likewise.
12740 (cortex_a15_vfp_to_from_gp): Likewise.
12742 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12744 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12746 (cortex_a9_neon_vshl_ddd): Remove.
12747 (cortex_a9_neon_vst3_vst4): Likewise.
12748 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12750 (cortex_a9_neon_bit_ops_q): New.
12752 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12753 (cortex_a9_neon_int_2): Likewise.
12754 (cortex_a9_neon_int_3): Likewise.
12755 (cortex_a9_neon_int_4): Likewise.
12756 (cortex_a9_neon_int_5): Likewise.
12757 (cortex_a9_neon_vqneg_vqabs): Likewise.
12758 (cortex_a9_neon_vmov): Likewise.
12759 (cortex_a9_neon_vaba): Likewise.
12760 (cortex_a9_neon_vaba_qqq): Likewise.
12761 (cortex_a9_neon_shift_1): Likewise.
12762 (cortex_a9_neon_shift_2): Likewise.
12763 (cortex_a9_neon_shift_3): Likewise.
12764 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12765 (cortex_a9_neon_vsra_vrsra): Likewise.
12766 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12767 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12768 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12770 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12771 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12772 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12774 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12775 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12776 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12777 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12778 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12779 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12780 (cortex_a9_neon_fp_vsum): Likewise.
12781 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12782 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12783 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12784 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12785 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12786 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12787 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12788 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12789 (cortex_a9_neon_bp_simple): Likewise.
12790 (cortex_a9_neon_bp_2cycle): Likewise.
12791 (cortex_a9_neon_bp_3cycle): Likewise.
12792 (cortex_a9_neon_ldr): Likewise.
12793 (cortex_a9_neon_str): Likewise.
12794 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12795 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12796 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12797 (cortex_a9_neon_vld2_4_regs): Likewise.
12798 (cortex_a9_neon_vld3_vld4): Likewise.
12799 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12800 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12801 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12802 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12803 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12804 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12805 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12806 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12807 (cortex_a9_neon_mcr): Likewise.
12808 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12809 (cortex_a9_neon_mrc): Likewise.
12810 (cortex_a9_neon_mrrc): Likewise.
12812 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12814 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12816 (cortex_a8_neon_vshl_ddd): Remove.
12817 (cortex_a8_neon_vst3_vst4): Likewise.
12818 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12820 (cortex_a8_neon_bit_ops_q): New.
12822 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12823 (cortex_a8_neon_int_2): Likewise..
12824 (cortex_a8_neon_int_3): Likewise.
12825 (cortex_a8_neon_int_5): Likewise.
12826 (cortex_a8_neon_vqneg_vqabs): Likewise.
12827 (cortex_a8_neon_int_4): Likewise.
12828 (cortex_a8_neon_vaba): Likewise.
12829 (cortex_a8_neon_vaba_qqq): Likewise.
12830 (cortex_a8_neon_shift_1): Likewise.
12831 (cortex_a8_neon_shift_2): Likewise.
12832 (cortex_a8_neon_shift_3): Likewise.
12833 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12834 (cortex_a8_neon_vsra_vrsra): Likewise.
12835 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12836 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12837 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12839 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12840 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12841 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12843 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12844 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12845 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12846 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12847 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12848 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12849 (cortex_a8_neon_fp_vsum): Likewise.
12850 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12851 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12852 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12853 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12854 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12855 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12856 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12857 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12858 (cortex_a8_neon_bp_simple): Likewise.
12859 (cortex_a8_neon_bp_2cycle): Likewise.
12860 (cortex_a8_neon_bp_3cycle): Likewise.
12861 (cortex_a8_neon_ldr): Likewise.
12862 (cortex_a8_neon_str): Likewise.
12863 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12864 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12865 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12866 (cortex_a8_neon_vld2_4_regs): Likewise.
12867 (cortex_a8_neon_vld3_vld4): Likewise.
12868 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12869 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12870 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12871 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12872 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12873 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12874 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12875 (cortex_a8_neon_mcr): Likewise.
12876 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12877 (cortex_a8_neon_mrc): Likewise.
12878 (cortex_a8_neon_mrrc): Likewise.
12880 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12882 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12884 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12885 (aarch64_simd_dup<mode>): Add "type" attribute.
12886 (aarch64_dup_lane<mode>): Likewise.
12887 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12888 (*aarch64_simd_mov<mode>): Likewise.
12889 (aarch64_simd_mov_from_<mode>low): Likewise.
12890 (aarch64_simd_mov_from_<mode>high): Likewise.
12891 (orn<mode>3): Likewise.
12892 (bic<mode>3): Likewise.
12893 (add<mode>3): Likewise.
12894 (sub<mode>3): Likewise.
12895 (mul<mode>3): Likewise.
12896 (*aarch64_mul3_elt<mode>): Likewise.
12897 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12898 (*aarch64_mul3_elt_to_128df): Likewise.
12899 (*aarch64_mul3_elt_to_64v2df): Likewise.
12900 (neg<mode>2): Likewise.
12901 (abs<mode>2): Likewise.
12902 (abd<mode>_3): Likewise.
12903 (aba<mode>_3): Likewise.
12904 (fabd<mode>_3): Likewise.
12905 (*fabd_scalar<mode>3): Likewise.
12906 (and<mode>3): Likewise.
12907 (ior<mode>3): Likewise.
12908 (xor<mode>3): Likewise.
12909 (one_cmpl<mode>2): Likewise.
12910 (aarch64_simd_vec_set<mode>): Likewise.
12911 (aarch64_simd_lshr<mode>): Likewise.
12912 (aarch64_simd_ashr<mode>): Likewise.
12913 (aarch64_simd_imm_shl<mode>): Likewise.
12914 (aarch64_simd_reg_sshl<mode): Likewise.
12915 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12916 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12917 (aarch64_simd_vec_setv2di): Likewise.
12918 (aarch64_simd_vec_set<mode>): Likewise.
12919 (aarch64_mla<mode>): Likewise.
12920 (*aarch64_mla_elt<mode>): Likewise.
12921 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12922 (aarch64_mls<mode>): Likewise.
12923 (*aarch64_mls_elt<mode>): Likewise.
12924 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12925 (<su><maxmin><mode>3): Likewise.
12926 (move_lo_quad_<mode>): Likewise.
12927 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12928 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12929 (vec_pack_trunc_<mode>): Likewise.
12930 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12931 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12932 (*aarch64_<su>mlal_lo<mode>): Likewise.
12933 (*aarch64_<su>mlal_hi<mode>): Likewise.
12934 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12935 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12936 (*aarch64_<su>mlal<mode>): Likewise.
12937 (*aarch64_<su>mlsl<mode>): Likewise.
12938 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12939 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12940 (add<mode>3): Likewise.
12941 (sub<mode>3): Likewise.
12942 (mul<mode>3): Likewise.
12943 (div<mode>3): Likewise.
12944 (neg<mode>2): Likewise.
12945 (abs<mode>2): Likewise.
12946 (fma<mode>4): Likewise.
12947 (*aarch64_fma4_elt<mode>): Likewise.
12948 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12949 (*aarch64_fma4_elt_to_128df): Likewise.
12950 (*aarch64_fma4_elt_to_64v2df): Likewise.
12951 (fnma<mode>4): Likewise.
12952 (*aarch64_fnma4_elt<mode>): Likewise.
12953 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12954 (*aarch64_fnma4_elt_to_128df): Likewise.
12955 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12956 (<frint_pattern><mode>2): Likewise.
12957 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12958 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12959 (vec_unpacks_lo_v4sf): Likewise.
12960 (aarch64_float_extend_lo_v2df): Likewise.
12961 (vec_unpacks_hi_v4sf): Likewise.
12962 (aarch64_float_truncate_lo_v2sf): Likewise.
12963 (aarch64_float_truncate_hi_v4sf): Likewise.
12964 (aarch64_vmls<mode>): Likewise.
12965 (<su><maxmin><mode>3): Likewise.
12966 (<maxmin_uns><mode>3): Likewise.
12967 (reduc_<sur>plus_<mode>): Likewise.
12968 (reduc_<sur>plus_v2di): Likewise.
12969 (reduc_<sur>plus_v2si): Likewise.
12970 (reduc_<sur>plus_<mode>): Likewise.
12971 (aarch64_addpv4sf): Likewise.
12972 (clz<mode>2): Likewise.
12973 (reduc_<maxmin_uns>_<mode>): Likewise.
12974 (reduc_<maxmin_uns>_v2di): Likewise.
12975 (reduc_<maxmin_uns>_v2si): Likewise.
12976 (reduc_<maxmin_uns>_<mode>): Likewise.
12977 (reduc_<maxmin_uns>_v4sf): Likewise.
12978 (aarch64_simd_bsl<mode>_internal): Likewise.
12979 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12980 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12981 (aarch64_get_lane<mode>): Likewise.
12982 (*aarch64_combinez<mode>): Likewise.
12983 (aarch64_combine<mode>): Likewise.
12984 (aarch64_simd_combine<mode>): Likewise.
12985 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12986 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12987 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12988 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12989 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12990 (aarch64_<sur>h<addsub><mode>): Likewise.
12991 (aarch64_<sur><addsub>hn<mode>): Likewise.
12992 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12993 (aarch64_pmul<mode>): Likewise.
12994 (aarch64_<su_optab><optab><mode>): Likewise.
12995 (aarch64_<sur>qadd<mode>): Likewise.
12996 (aarch64_sqmovun<mode>): Likewise.
12997 (aarch64_<sur>qmovn<mode>): Likewise.
12998 (aarch64_s<optab><mode>): Likewise.
12999 (aarch64_sq<r>dmulh<mode>): Likewise.
13000 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13001 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13002 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13003 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13004 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13005 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13006 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13007 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13008 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13009 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13010 (aarch64_sqdmull<mode>): Likewise.
13011 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13012 (aarch64_sqdmull_n<mode>): Likewise.
13013 (aarch64_sqdmull2<mode>_internal): Likewise.
13014 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13015 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13016 (aarch64_<sur>shl<mode>): Likewise.
13017 (aarch64_<sur>q<r>shl<mode>
13018 (aarch64_<sur>shll_n<mode>): Likewise.
13019 (aarch64_<sur>shll2_n<mode>): Likewise.
13020 (aarch64_<sur>shr_n<mode>): Likewise.
13021 (aarch64_<sur>sra_n<mode>): Likewise.
13022 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13023 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13024 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13025 (aarch64_cm<optab><mode>): Likewise.
13026 (aarch64_cm<optab>di): Likewise.
13027 (aarch64_cm<optab><mode>): Likewise.
13028 (aarch64_cm<optab>di): Likewise.
13029 (aarch64_cmtst<mode>): Likewise.
13030 (aarch64_cmtstdi): Likewise.
13031 (aarch64_cm<optab><mode>): Likewise.
13032 (*aarch64_fac<optab><mode>): Likewise.
13033 (aarch64_addp<mode>): Likewise.
13034 (aarch64_addpdi): Likewise.
13035 (sqrt<mode>2): Likewise.
13036 (vec_load_lanesoi<mode>): Likewise.
13037 (vec_store_lanesoi<mode>): Likewise.
13038 (vec_load_lanesci<mode>): Likewise.
13039 (vec_store_lanesci<mode>): Likewise.
13040 (vec_load_lanesxi<mode>): Likewise.
13041 (vec_store_lanesxi<mode>): Likewise.
13042 (*aarch64_mov<mode>): Likewise.
13043 (aarch64_ld2<mode>_dreg): Likewise.
13044 (aarch64_ld2<mode>_dreg): Likewise.
13045 (aarch64_ld3<mode>_dreg): Likewise.
13046 (aarch64_ld3<mode>_dreg): Likewise.
13047 (aarch64_ld4<mode>_dreg): Likewise.
13048 (aarch64_ld4<mode>_dreg): Likewise.
13049 (aarch64_tbl1<mode>): Likewise.
13050 (aarch64_tbl2v16qi): Likewise.
13051 (aarch64_combinev16qi): Likewise.
13052 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13053 (aarch64_st2<mode>_dreg): Likewise.
13054 (aarch64_st2<mode>_dreg): Likewise.
13055 (aarch64_st3<mode>_dreg): Likewise.
13056 (aarch64_st3<mode>_dreg): Likewise.
13057 (aarch64_st4<mode>_dreg): Likewise.
13058 (aarch64_st4<mode>_dreg): Likewise.
13059 (*aarch64_simd_ld1r<mode>): Likewise.
13060 (aarch64_frecpe<mode>): Likewise.
13061 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13062 (aarch64_frecps<mode>): Likewise.
13064 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13066 * config/arm/iterators.md (V_elem_ch): New.
13068 (VQH_type): Likewise.
13069 * config/arm/arm.md (is_neon_type): New.
13070 (conds): Use is_neon_type.
13071 (anddi3_insn): Update type attribute.
13072 (xordi3_insn): Likewise.
13073 (one_cmpldi2): Likewise.
13074 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13075 * config/arm/neon.md (neon_mov): Update type attribute.
13076 (*movmisalign<mode>_neon_store): Likewise.
13077 (*movmisalign<mode>_neon_load): Likewise.
13078 (vec_set<mode>_internal): Likewise.
13079 (vec_set<mode>_internal): Likewise.
13080 (vec_setv2di_internal): Likewise.
13081 (vec_extract<mode>): Likewise.
13082 (vec_extract<mode>): Likewise.
13083 (vec_extractv2di): Likewise.
13084 (*add<mode>3_neon): Likewise.
13085 (adddi3_neon): Likewise.
13086 (*sub<mode>3_neon): Likewise.
13087 (subdi3_neon): Likewise.
13088 (fma<VCVTF:mode>4): Likewise.
13089 (fma<VCVTF:mode>4_intrinsic): Likewise.
13090 (*fmsub<VCVTF:mode>4): Likewise.
13091 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13092 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13093 (ior<mode>3): Likewise.
13094 (and<mode>3): Likewise.
13095 (orn<mode>3_neon): Likewise.
13096 (orndi3_neon): Likewise.
13097 (bic<mode>3_neon): Likewise.
13098 (bicdi3_neon): Likewise.
13099 (xor<mode>3): Likewise.
13100 (one_cmpl<mode>2): Likewise.
13101 (abs<mode>2): Likewise.
13102 (neg<mode>2): Likewise.
13103 (negdi2_neon): Likewise.
13104 (*umin<mode>3_neon): Likewise.
13105 (*umax<mode>3_neon): Likewise.
13106 (*smin<mode>3_neon): Likewise.
13107 (*smax<mode>3_neon): Likewise.
13108 (vashl<mode>3): Likewise.
13109 (vashr<mode>3_imm): Likewise.
13110 (vlshr<mode>3_imm): Likewise.
13111 (ashl<mode>3_signed): Likewise.
13112 (ashl<mode>3_unsigned): Likewise.
13113 (neon_load_count): Likewise.
13114 (ashldi3_neon_noclobber): Likewise.
13115 (ashldi3_neon): Likewise.
13116 (signed_shift_di3_neon): Likewise.
13117 (unsigned_shift_di3_neon): Likewise.
13118 (ashrdi3_neon_imm_noclobber): Likewise.
13119 (lshrdi3_neon_imm_noclobber): Likewise.
13120 (<shift>di3_neon): Likewise.
13121 (widen_ssum<mode>3): Likewise.
13122 (widen_usum<mode>3): Likewise.
13123 (quad_halves_<code>v4si): Likewise.
13124 (quad_halves_<code>v4sf): Likewise.
13125 (quad_halves_<code>v8hi): Likewise.
13126 (quad_halves_<code>v16qi): Likewise.
13127 (reduc_splus_v2di): Likewise.
13128 (neon_vpadd_internal<mode>): Likewise.
13129 (neon_vpsmin<mode>): Likewise.
13130 (neon_vpsmax<mode>): Likewise.
13131 (neon_vpumin<mode>): Likewise.
13132 (neon_vpumax<mode>): Likewise.
13133 (*ss_add<mode>_neon): Likewise.
13134 (*us_add<mode>_neon): Likewise.
13135 (*ss_sub<mode>_neon): Likewise.
13136 (*us_sub<mode>_neon): Likewise.
13137 (neon_vadd<mode>_unspec): Likewise.
13138 (neon_vaddl<mode>): Likewise.
13139 (neon_vaddw<mode>): Likewise.
13140 (neon_vhadd<mode>): Likewise.
13141 (neon_vqadd<mode>): Likewise.
13142 (neon_vaddhn<mode>): Likewise.
13143 (neon_vmul<mode>): Likewise.
13144 (neon_vfms<VCVTF:mode>): Likewise.
13145 (neon_vmlal<mode>): Likewise.
13146 (neon_vmls<mode>): Likewise.
13147 (neon_vmlsl<mode>): Likewise.
13148 (neon_vqdmulh<mode>): Likewise.
13149 (neon_vqdmlal<mode>): Likewise.
13150 (neon_vqdmlsl<mode>): Likewise.
13151 (neon_vmull<mode>): Likewise.
13152 (neon_vqdmull<mode>): Likewise.
13153 (neon_vsub<mode>_unspec): Likewise.
13154 (neon_vsubl<mode>): Likewise.
13155 (neon_vsubw<mode>): Likewise.
13156 (neon_vqsub<mode>): Likewise.
13157 (neon_vhsub<mode>): Likewise.
13158 (neon_vsubhn<mode>): Likewise.
13159 (neon_vceq<mode>): Likewise.
13160 (neon_vcge<mode>): Likewise.
13161 (neon_vcgeu<mode>): Likewise.
13162 (neon_vcgt<mode>): Likewise.
13163 (neon_vcgtu<mode>): Likewise.
13164 (neon_vcle<mode>): Likewise.
13165 (neon_vclt<mode>): Likewise.
13166 (neon_vcage<mode>): Likewise.
13167 (neon_vcagt<mode>): Likewise.
13168 (neon_vtst<mode>): Likewise.
13169 (neon_vabd<mode>): Likewise.
13170 (neon_vabdl<mode>): Likewise.
13171 (neon_vaba<mode>): Likewise.
13172 (neon_vabal<mode>): Likewise.
13173 (neon_vmax<mode>): Likewise.
13174 (neon_vmin<mode>): Likewise.
13175 (neon_vpaddl<mode>): Likewise.
13176 (neon_vpadal<mode>): Likewise.
13177 (neon_vpmax<mode>): Likewise.
13178 (neon_vpmin<mode>): Likewise.
13179 (neon_vrecps<mode>): Likewise.
13180 (neon_vrsqrts<mode>): Likewise.
13181 (neon_vqabs<mode>): Likewise.
13182 (neon_vqneg<mode>): Likewise.
13183 (neon_vcls<mode>): Likewise.
13184 (clz<mode>2): Likewise.
13185 (popcount<mode>2): Likewise.
13186 (neon_vrecpe<mode>): Likewise.
13187 (neon_vrsqrte<mode>): Likewise.
13188 (neon_vget_lane<mode>_sext_internal): Likewise.
13189 (neon_vget_lane<mode>_zext_internal): Likewise.
13190 (neon_vdup_n<mode>): Likewise.
13191 (neon_vdup_n<mode>): Likewise.
13192 (neon_vdup_nv2di): Likewise.
13193 (neon_vdup_lane<mode>_interal): Likewise.
13194 (*neon_vswp<mode>): Likewise.
13195 (neon_vcombine<mode>): Likewise.
13196 (float<mode><V_cvtto>2): Likewise.
13197 (floatuns<mode><V_cvtto>2): Likewise.
13198 (fix_trunc<mode><V_cvtto>2): Likewise.
13199 (fixuns_trunc<mode><V_cvtto>2
13200 (neon_vcvt<mode>): Likewise.
13201 (neon_vcvt<mode>): Likewise.
13202 (neon_vcvtv4sfv4hf): Likewise.
13203 (neon_vcvtv4hfv4sf): Likewise.
13204 (neon_vcvt_n<mode>): Likewise.
13205 (neon_vcvt_n<mode>): Likewise.
13206 (neon_vmovn<mode>): Likewise.
13207 (neon_vqmovn<mode>): Likewise.
13208 (neon_vqmovun<mode>): Likewise.
13209 (neon_vmovl<mode>): Likewise.
13210 (neon_vmul_lane<mode>): Likewise.
13211 (neon_vmul_lane<mode>): Likewise.
13212 (neon_vmull_lane<mode>): Likewise.
13213 (neon_vqdmull_lane<mode>): Likewise.
13214 (neon_vqdmulh_lane<mode>): Likewise.
13215 (neon_vqdmulh_lane<mode>): Likewise.
13216 (neon_vmla_lane<mode>): Likewise.
13217 (neon_vmla_lane<mode>): Likewise.
13218 (neon_vmlal_lane<mode>): Likewise.
13219 (neon_vqdmlal_lane<mode>): Likewise.
13220 (neon_vmls_lane<mode>): Likewise.
13221 (neon_vmls_lane<mode>): Likewise.
13222 (neon_vmlsl_lane<mode>): Likewise.
13223 (neon_vqdmlsl_lane<mode>): Likewise.
13224 (neon_vext<mode>): Likewise.
13225 (neon_vrev64<mode>): Likewise.
13226 (neon_vrev32<mode>): Likewise.
13227 (neon_vrev16<mode>): Likewise.
13228 (neon_vbsl<mode>_internal): Likewise.
13229 (neon_vshl<mode>): Likewise.
13230 (neon_vqshl<mode>): Likewise.
13231 (neon_vshr_n<mode>): Likewise.
13232 (neon_vshrn_n<mode>): Likewise.
13233 (neon_vqshrn_n<mode>): Likewise.
13234 (neon_vqshrun_n<mode>): Likewise.
13235 (neon_vshl_n<mode>): Likewise.
13236 (neon_vqshl_n<mode>): Likewise.
13237 (neon_vqshlu_n<mode>): Likewise.
13238 (neon_vshll_n<mode>): Likewise.
13239 (neon_vsra_n<mode>): Likewise.
13240 (neon_vsri_n<mode>): Likewise.
13241 (neon_vsli_n<mode>): Likewise.
13242 (neon_vtbl1v8qi): Likewise.
13243 (neon_vtbl2v8qi): Likewise.
13244 (neon_vtbl3v8qi): Likewise.
13245 (neon_vtbl4v8qi): Likewise.
13246 (neon_vtbl1v16qi): Likewise.
13247 (neon_vtbl2v16qi): Likewise.
13248 (neon_vcombinev16qi): Likewise.
13249 (neon_vtbx1v8qi): Likewise.
13250 (neon_vtbx2v8qi): Likewise.
13251 (neon_vtbx3v8qi): Likewise.
13252 (neon_vtbx4v8qi): Likewise.
13253 (*neon_vtrn<mode>_insn): Likewise.
13254 (*neon_vzip<mode>_insn): Likewise.
13255 (*neon_vuzp<mode>_insn): Likewise.
13256 (neon_vld1<mode>): Likewise.
13257 (neon_vld1_lane<mode>): Likewise.
13258 (neon_vld1_lane<mode>): Likewise.
13259 (neon_vld1_dup<mode>): Likewise.
13260 (neon_vld1_dup<mode>): Likewise.
13261 (neon_vld1_dupv2di): Likewise.
13262 (neon_vst1<mode>): Likewise.
13263 (neon_vst1_lane<mode>): Likewise.
13264 (neon_vst1_lane<mode>): Likewise.
13265 (neon_vld2<mode>): Likewise.
13266 (neon_vld2<mode>): Likewise.
13267 (neon_vld2_lane<mode>): Likewise.
13268 (neon_vld2_lane<mode>): Likewise.
13269 (neon_vld2_dup<mode>): Likewise.
13270 (neon_vst2<mode>): Likewise.
13271 (neon_vst2<mode>): Likewise.
13272 (neon_vst2_lane<mode>): Likewise.
13273 (neon_vst2_lane<mode>): Likewise.
13274 (neon_vld3<mode>): Likewise.
13275 (neon_vld3qa<mode>): Likewise.
13276 (neon_vld3qb<mode>): Likewise.
13277 (neon_vld3_lane<mode>): Likewise.
13278 (neon_vld3_lane<mode>): Likewise.
13279 (neon_vld3_dup<mode>): Likewise.
13280 (neon_vst3<mode>): Likewise.
13281 (neon_vst3qa<mode>): Likewise.
13282 (neon_vst3qb<mode>): Likewise.
13283 (neon_vst3_lane<mode>): Likewise.
13284 (neon_vst3_lane<mode>): Likewise.
13285 (neon_vld4<mode>): Likewise.
13286 (neon_vld4qa<mode>): Likewise.
13287 (neon_vld4qb<mode>): Likewise.
13288 (neon_vld4_lane<mode>): Likewise.
13289 (neon_vld4_lane<mode>): Likewise.
13290 (neon_vld4_dup<mode>): Likewise.
13291 (neon_vst4<mode>): Likewise.
13292 (neon_vst4qa<mode>): Likewise.
13293 (neon_vst4qb<mode>): Likewise.
13294 (neon_vst4_lane<mode>): Likewise.
13295 (neon_vst4_lane<mode>): Likewise.
13296 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13297 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13298 (neon_vec_<US>mult_lo_<mode>): Likewise.
13299 (neon_vec_<US>mult_hi_<mode>): Likewise.
13300 (neon_vec_<US>shiftl_<mode>): Likewise.
13301 (neon_unpack<US>_<mode>): Likewise.
13302 (neon_vec_<US>mult_<mode>): Likewise.
13303 (vec_pack_trunc_<mode>): Likewise.
13304 (neon_vec_pack_trunc_<mode>): Likewise.
13305 (neon_vabd<mode>_2): Likewise.
13306 (neon_vabd<mode>_3): Likewise.
13308 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13310 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13311 (load_pair): Update type attribute.
13312 (store_pair): Update type attribute.
13313 * config/aarch64/iterators.md (q): New.
13315 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13317 * config/arm/types.md: Add new types for Neon insns.
13319 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13321 Sergey Lega <sergey.s.lega@intel.com>
13322 Anna Tikhonova <anna.tikhonova@intel.com>
13323 Ilya Tocar <ilya.tocar@intel.com>
13324 Andrey Turetskiy <andrey.turetskiy@intel.com>
13325 Ilya Verbin <ilya.verbin@intel.com>
13326 Kirill Yukhin <kirill.yukhin@intel.com>
13327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13329 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13330 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13331 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13332 (rcp14<mode>): New.
13333 (srcp14<mode>): Ditto.
13334 (rsqrt14<mode>): Ditto.
13335 (rsqrt14<mode>): Ditto.
13336 (avx512f_vmscalef<mode>): Ditto.
13337 (avx512f_scalef<mode>): Ditto.
13338 (avx512f_getexp<mode>): Ditto.
13339 (avx512f_sgetexp<mode>): Ditto.
13340 (avx512f_fixupimm<mode>): Ditto.
13341 (avx512f_sfixupimm<mode>): Ditto.
13342 (avx512f_rndscale<mode>): Ditto.
13343 (*avx512er_exp2<mode>): Ditto.
13344 (*avx512er_rcp28<mode>): Ditto.
13345 (avx512er_rsqrt28<mode>): Ditto.
13346 (avx512f_getmant<mode>): Ditto.
13347 (avx512f_getmant<mode>): Ditto.
13348 (avx512f_rndscale<mode>): Fix formatting.
13350 2013-10-15 Martin Jambor <mjambor@suse.cz>
13352 * ipa-utils.h (ipa_edge_within_scc): Declare.
13353 * ipa-cp.c (edge_within_scc): Moved...
13354 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13356 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13357 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13358 Sergey Lega <sergey.s.lega@intel.com>
13359 Anna Tikhonova <anna.tikhonova@intel.com>
13360 Ilya Tocar <ilya.tocar@intel.com>
13361 Andrey Turetskiy <andrey.turetskiy@intel.com>
13362 Ilya Verbin <ilya.verbin@intel.com>
13363 Kirill Yukhin <kirill.yukhin@intel.com>
13364 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13366 * config/i386/predicates.md (const_8_to_15_operand): New.
13367 (const_16_to_31_operand): Ditto.
13368 * config/i386/sse.md (V8FI): New.
13370 (reduc_splus_v8df): Ditto.
13371 (reduc_splus_v16sf): Ditto.
13372 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13373 (vec_extract_hi_<mode>): Ditto.
13374 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13375 (vec_set_lo_<mode>): Ditto.
13376 (vec_set_hi_<mode>): Ditto.
13377 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13378 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13379 (avx512f_pshufd_1): Ditto.
13380 (avx512f_broadcast<mode>): Ditto.
13381 (avx512f_broadcast<mode>): Ditto.
13382 (define_split): Split vec_extract_lo into move.
13383 (ssequartermode): Ditto.
13384 (ssedoublemode): Extened with wider modes.
13385 (vec_extract_lo_<mode>): Ditto.
13387 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13389 Sergey Lega <sergey.s.lega@intel.com>
13390 Anna Tikhonova <anna.tikhonova@intel.com>
13391 Ilya Tocar <ilya.tocar@intel.com>
13392 Andrey Turetskiy <andrey.turetskiy@intel.com>
13393 Ilya Verbin <ilya.verbin@intel.com>
13394 Kirill Yukhin <kirill.yukhin@intel.com>
13395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13397 * config/i386/predicates.md (register_or_constm1_operand): New.
13398 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13399 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13400 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13401 UNSPEC_SCATTER_PREFETCH
13403 (avx512f_ucmp<mode>3): Ditto.
13404 (avx512f_vternlog<mode>): Ditto.
13405 (avx512f_align<mode>): Ditto.
13406 (<shift_insn><mode>3): Ditto.
13407 (avx512f_<rotate>v<mode>): Ditto.
13408 (avx512f_<rotate><mode>): Ditto.
13409 (avx512f_eq<mode>3): Ditto.
13410 (avx512f_eq<mode>3_1): Ditto.
13411 (avx512f_gt<mode>3): Ditto.
13412 (avx512f_testm<mode>3): Ditto.
13413 (avx512f_testnm<mode>3): Ditto.
13414 (avx512pf_gatherpf<mode>): Ditto.
13415 (*avx512pf_gatherpf<mode>_mask): Ditto.
13416 (*avx512pf_gatherpf<mode>): Ditto.
13417 (avx512pf_scatterpf<mode>): Ditto.
13418 (*avx512pf_scatterpf<mode>_mask): Ditto.
13419 (*avx512pf_scatterpf<mode>): Ditto.
13420 (avx512f_vec_dup_gpr<mode>): Ditto.
13421 (clz<mode>2): Ditto.
13422 (conflict<mode>): Ditto.
13423 (REDUC_SMINMAX_MODE): Extened with wider modes.
13424 (reduc_<code>_<mode>): Ditto.
13425 (vlshr<mode>3): Ditto.
13426 (vashl<mode>3): Ditto.
13428 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13429 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13430 Sergey Lega <sergey.s.lega@intel.com>
13431 Anna Tikhonova <anna.tikhonova@intel.com>
13432 Ilya Tocar <ilya.tocar@intel.com>
13433 Andrey Turetskiy <andrey.turetskiy@intel.com>
13434 Ilya Verbin <ilya.verbin@intel.com>
13435 Kirill Yukhin <kirill.yukhin@intel.com>
13436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13438 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13441 (avx512fmaskmode): Ditto.
13442 (bcstscalarsuff): Ditto.
13443 (avx512f_blendm<mode>): Ditto.
13444 (cmp_imm_predicate): Ditto.
13445 (avx512f_cmp<mode>3): Ditto.
13446 (avx512f_vec_dup<mode>): Ditto.
13447 (avx512f_vec_dup_mem<mode>): Ditto.
13448 (avx512f_vpermi2var<mode>3): Ditto.
13449 (avx512f_vpermt2var<mode>3): Ditto.
13450 (vec_init<mode>): Ditto.
13451 (avx512f_gathersi<mode>): Ditto.
13452 (*avx512f_gathersi<mode>): Ditto.
13453 (*avx512f_gathersi<mode>_2): Ditto.
13454 (avx512f_gatherdi<mode>): Ditto.
13455 (*avx512f_gatherdi<mode>): Ditto.
13456 (*avx512f_gatherdi<mode>_2): Ditto.
13457 (avx512f_scattersi<mode>): Ditto.
13458 (*avx512f_scattersi<mode>): Ditto.
13459 (avx512f_scatterdi<mode>): Ditto.
13460 (*avx512f_scatterdi<mode>): Ditto.
13461 (sseintprefix): Extened with wider modes.
13462 (VEC_GATHER_IDXSI): Ditto.
13463 (VEC_GATHER_IDXDI): Ditto.
13464 (VEC_GATHER_SRCDI): Ditto.
13466 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13467 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13469 * config/arm/t-aprofile: New file.
13470 * config.gcc: Handle --with-multilib-list option.
13472 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13474 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13477 2013-10-15 Richard Biener <rguenther@suse.de>
13479 * tree-loop-distribution.c (build_empty_rdg): Inline into
13481 (rdg_flag_vertex): Inline into single user.
13482 (rdg_flag_vertex_and_dependent): Likewise.
13483 (build_rdg_partition_for_vertex): Remove processed bitmap.
13484 (rdg_build_partitions): Simplify.
13486 2013-10-15 Richard Biener <rguenther@suse.de>
13488 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13489 Restructure forwarding through conversions and copies to
13490 avoid performing copy-propagation the wrong way. Adjust
13491 recursion invocations.
13492 (forward_propagate_addr_expr): Add argument stating if we
13493 are recursing from a single-use.
13494 (ssa_forward_propagate_and_combine): Adjust.
13496 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13498 * dumpfile.h (gcc::dump_manager): New class, to hold state
13499 relating to dumpfile management.
13500 (get_dump_file_name): Remove in favor of method of dump_manager.
13501 (dump_initialized_p): Likewise.
13502 (dump_start): Likewise.
13503 (dump_finish): Likewise.
13504 (dump_switch_p): Likewise.
13505 (dump_register): Likewise.
13506 (get_dump_file_info): Likewise.
13507 * context.c (gcc::context::context): Construct the dump_manager
13509 * context.h (gcc::context::get_dumps): New.
13510 (gcc::context::m_dumps): New.
13511 * coverage.c (coverage_init): Port to dump_manager API.
13512 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13513 (extra_dump_files_in_use): Likewise.
13514 (extra_dump_files_alloced): Likewise.
13515 (gcc::dump_manager::dump_manager): New.
13516 (dump_register): Convert to...
13517 (gcc::dump_manager::dump_register): ...method, replacing
13518 function-static next_dump with m_next_dump field.
13519 (get_dump_file_info): Convert to...
13520 (gcc::dump_manager::get_dump_file_info): ...method.
13521 (get_dump_file_name): Convert to...
13522 (gcc::dump_manager::get_dump_file_name): ...method.
13523 (dump_start): Convert to...
13524 (gcc::dump_manager::dump_start): ...method.
13525 (dump_finish): Convert to...
13526 (gcc::dump_manager::dump_finish): ...method.
13527 (dump_begin): Replace body with...
13528 (gcc::dump_manager::dump_begin): ...new method.
13529 (dump_phase_enabled_p): Convert to...
13530 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13531 (dump_phase_enabled_p): Convert to...
13532 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13533 (dump_initialized_p): Convert to...
13534 (gcc::dump_manager::dump_initialized_p): ...method.
13535 (dump_flag_name): Replace body with...
13536 (gcc::dump_manager::dump_flag_name): ...new method.
13537 (dump_enable_all): Convert to...
13538 (gcc::dump_manager::dump_enable_all): ...new method.
13539 (opt_info_enable_passes): Convert to...
13540 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13541 (dump_switch_p_1): Convert to...
13542 (gcc::dump_manager::dump_switch_p_1): ...new method.
13543 (dump_switch_p): Convert to...
13544 (gcc::dump_manager::dump_switch_p): ...new method.
13545 (opt_info_switch_p): Port to dump_manager API.
13546 (enable_rtl_dump_file): Likewise.
13547 * opts-global.c (handle_common_deferred_options): Port to new
13549 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13550 (pass_manager::register_one_dump_file): Likewise.
13551 (pass_manager::register_pass): Likewise.
13552 (pass_init_dump_file): Likewise.
13553 (pass_fini_dump_file): Likewise.
13554 * statistics.c (statistics_early_init): Likewise.
13556 2013-10-14 Richard Biener <rguenther@suse.de>
13558 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13559 iterative_hash_canonical_type, gimple_canonical_type_hash,
13560 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13561 gimple_register_canonical_type, print_gimple_types_stats,
13562 free_gimple_type_tables): Move to lto/lto.c
13563 (gt-gimple.h): Do not include.
13564 * gimple.h (gimple_register_canonical_type,
13565 print_gimple_types_stats, free_gimple_type_tables): Remove.
13566 * Makefile.in (GTFILES): Remove gimple.c.
13568 2013-10-14 Travis Snoozy <quandary@remstate.com>
13571 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13572 scanning for msp430x targets.
13574 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13577 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13578 (registers_ok_for_ldd_peep): Move around.
13579 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13580 * config/sparc/sparc.md (widening peepholes): Use it.
13582 2013-10-14 Richard Biener <rguenther@suse.de>
13584 PR middle-end/58712
13585 PR middle-end/55358
13586 * gimple.c (iterative_hash_canonical_type): Make sure to
13587 record the hash into the correct hashtable slot.
13589 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13591 PR rtl-optimization/58662
13592 * combine.c (try_combine): Take into account death nodes on I2 when
13593 splitting a PARALLEL of two independent SETs. Fix dump message.
13595 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13598 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13599 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13601 * config/sh/t-sh (sh_treg_combine.o): New entry.
13602 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13603 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13604 (register_sh_passes): New function. Register sh_treg_combine pass.
13605 (sh_option_override): Invoke it.
13606 (sh_canonicalize_comparison): Handle op0_preserve_value.
13607 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13608 opportunities. Canonicalize branch condition.
13609 (nott): Allow only if pseudos can be created for non-SH2A.
13611 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13614 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13615 (ix86_expand_movmem): Replace copy_addr_to_reg with
13616 ix86_copy_addr_to_reg.
13617 (ix86_expand_setmem): Likewise.
13619 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13621 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13622 provided by ix86_fp_compare_mode instead of CCFPUmode.
13624 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13626 * config/aarch64/arm_neon.h
13627 (vtbx<1,3>_<psu>8): Fix register constriants.
13629 2013-10-11 Jeff Law <law@redhat.com>
13631 PR tree-optimization/58640
13632 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13633 threading paths that cross over two loop entry points.
13635 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13637 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13638 handle vector float as well.
13639 (*vsx_le_perm_load_v4si): Likewise.
13640 (*vsx_le_perm_store_v2di): Likewise.
13641 (*vsx_le_perm_store_v4si): Likewise.
13643 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13645 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13646 directly to circumvent subtract from splat{31} workaround.
13647 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13649 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13650 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13651 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13652 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13653 separate big and little endian logic.
13654 (*altivec_vperm_<mode>_internal): New define_insn.
13655 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13656 separate big and little endian logic.
13657 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13658 (vec_permv16qi): Add little endian logic.
13660 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13662 * doc/extend.texi (returns_nonnull): Remove arguments.
13664 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13666 Sergey Lega <sergey.s.lega@intel.com>
13667 Anna Tikhonova <anna.tikhonova@intel.com>
13668 Ilya Tocar <ilya.tocar@intel.com>
13669 Andrey Turetskiy <andrey.turetskiy@intel.com>
13670 Ilya Verbin <ilya.verbin@intel.com>
13671 Kirill Yukhin <kirill.yukhin@intel.com>
13672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13674 * config/i386/sse.md (VI48F_256_512): New.
13675 (avx2_permvar<mode>): Change to ...
13676 (<avx2_avx512f>_permvar<mode>): This.
13678 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13680 Sergey Lega <sergey.s.lega@intel.com>
13681 Anna Tikhonova <anna.tikhonova@intel.com>
13682 Ilya Tocar <ilya.tocar@intel.com>
13683 Andrey Turetskiy <andrey.turetskiy@intel.com>
13684 Ilya Verbin <ilya.verbin@intel.com>
13685 Kirill Yukhin <kirill.yukhin@intel.com>
13686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13688 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13689 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13690 * config/i386/sse.md (VI4_AVX): New.
13691 (sf2simodelower): Ditto.
13692 (sse2_cvtps2dq): Change to ...
13693 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13695 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13697 Sergey Lega <sergey.s.lega@intel.com>
13698 Anna Tikhonova <anna.tikhonova@intel.com>
13699 Ilya Tocar <ilya.tocar@intel.com>
13700 Andrey Turetskiy <andrey.turetskiy@intel.com>
13701 Ilya Verbin <ilya.verbin@intel.com>
13702 Kirill Yukhin <kirill.yukhin@intel.com>
13703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13705 * config/i386/sse.md (V_512): New.
13707 (vcond<V_512:mode><VF_512:mode>): Ditto.
13708 (vcond<V_512:mode><VI_512:mode>): Ditto.
13709 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13711 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13712 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13713 Sergey Lega <sergey.s.lega@intel.com>
13714 Anna Tikhonova <anna.tikhonova@intel.com>
13715 Ilya Tocar <ilya.tocar@intel.com>
13716 Andrey Turetskiy <andrey.turetskiy@intel.com>
13717 Ilya Verbin <ilya.verbin@intel.com>
13718 Kirill Yukhin <kirill.yukhin@intel.com>
13719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13721 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13722 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13724 (fma<mode>4): Removed condition.
13725 (fms<mode>4): Ditto.
13726 (fnma<mode>4): Ditto.
13727 (fnms<mode>4): Ditto.
13728 (fma4i_fmadd_<mode>): Ditto.
13729 (*fma_fmadd_<mode>): Ditto.
13730 (*fma_fmsub_<mode>): Ditto.
13731 (*fma_fnmadd_<mode>): Ditto.
13732 (*fma_fnmsub_<mode>): Ditto.
13733 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13734 (*fma_fmaddsub_<mode>): Ditto.
13735 (*fma_fmsubadd_<mode>): Ditto.
13736 (*fmai_fmadd_<mode>): Ditto.
13737 (*fmai_fmsub_<mode>): Ditto.
13738 (*fmai_fnmadd_<mode>): Ditto.
13739 (*fmai_fnmsub_<mode>): Ditto.
13741 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13743 Sergey Lega <sergey.s.lega@intel.com>
13744 Anna Tikhonova <anna.tikhonova@intel.com>
13745 Ilya Tocar <ilya.tocar@intel.com>
13746 Andrey Turetskiy <andrey.turetskiy@intel.com>
13747 Ilya Verbin <ilya.verbin@intel.com>
13748 Kirill Yukhin <kirill.yukhin@intel.com>
13749 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13751 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13752 (VI124_256): Changed to ...
13753 (VI124_256_48_512): This.
13754 (ssepackmode): Extended with wider modes.
13755 (<code><mode>3): Changed iterator.
13756 (*avx2_<code><mode>3): Ditto.
13757 (vec_pack_trunc_<mode>): Ditto.
13759 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13761 Sergey Lega <sergey.s.lega@intel.com>
13762 Anna Tikhonova <anna.tikhonova@intel.com>
13763 Ilya Tocar <ilya.tocar@intel.com>
13764 Andrey Turetskiy <andrey.turetskiy@intel.com>
13765 Ilya Verbin <ilya.verbin@intel.com>
13766 Kirill Yukhin <kirill.yukhin@intel.com>
13767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13769 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13770 (VI8F_256_512): Ditto.
13771 (abs<mode>2): Changed iterator.
13772 (avx2_perm<mode>): Changed to ...
13773 (<avx2_avx512f>_perm<mode>): This.
13774 (avx2_perm<mode>_1): Changed to ...
13775 (<avx2_avx512f>_perm<mode>_1): This.
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 (VI48_AVX512F): New.
13788 (VI48_AVX2): Changed to ...
13789 (VI48_AVX2_48_AVX512F): This.
13790 (avx2_ashrv<mode>): Changed to ...
13791 (<avx2_avx512f>_ashrv<mode>): This.
13792 (avx2_<shift_insn>v<mode>): Changed to ...
13793 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13795 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13796 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13797 Sergey Lega <sergey.s.lega@intel.com>
13798 Anna Tikhonova <anna.tikhonova@intel.com>
13799 Ilya Tocar <ilya.tocar@intel.com>
13800 Andrey Turetskiy <andrey.turetskiy@intel.com>
13801 Ilya Verbin <ilya.verbin@intel.com>
13802 Kirill Yukhin <kirill.yukhin@intel.com>
13803 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13805 * config/i386/sse.md (VI4_AVX512F): New.
13806 (VI8_AVX2_AVX512F): Ditto.
13807 (mul<mode>3): Extended with wider modes.
13808 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13809 (mul<mode>3): Ditto.
13810 (vec_widen_<s>mult_odd_<mode>): Ditto.
13812 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13814 Sergey Lega <sergey.s.lega@intel.com>
13815 Anna Tikhonova <anna.tikhonova@intel.com>
13816 Ilya Tocar <ilya.tocar@intel.com>
13817 Andrey Turetskiy <andrey.turetskiy@intel.com>
13818 Ilya Verbin <ilya.verbin@intel.com>
13819 Kirill Yukhin <kirill.yukhin@intel.com>
13820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13822 * config/i386/sse.md (VI2_AVX512F): New.
13823 (VI124_AVX512F): Ditto.
13824 (sseunpackmode): Extended with wider modes.
13825 (sseunpackfltmode): Ditto.
13826 (vec_unpacks_float_hi_<mode>): Ditto.
13827 (vec_unpacks_float_lo_<mode>): Ditto.
13828 (vec_unpacku_float_hi_<mode>): Ditto.
13829 (vec_unpacku_float_lo_<mode>): Ditto.
13830 (vec_unpacks_lo_<mode>): Ditto.
13831 (vec_unpacks_hi_<mode>): Ditto.
13832 (vec_unpacku_lo_<mode>): Ditto.
13833 (vec_unpacku_hi_<mode>): Ditto.
13835 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13836 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13837 Sergey Lega <sergey.s.lega@intel.com>
13838 Anna Tikhonova <anna.tikhonova@intel.com>
13839 Ilya Tocar <ilya.tocar@intel.com>
13840 Andrey Turetskiy <andrey.turetskiy@intel.com>
13841 Ilya Verbin <ilya.verbin@intel.com>
13842 Kirill Yukhin <kirill.yukhin@intel.com>
13843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13845 * config/i386/i386.md (multdiv): New.
13846 (multdiv_mnemonic): Ditto.
13847 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13848 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13849 (<sse>_vmdiv<mode>3): Removed.
13851 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13852 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13853 Sergey Lega <sergey.s.lega@intel.com>
13854 Anna Tikhonova <anna.tikhonova@intel.com>
13855 Ilya Tocar <ilya.tocar@intel.com>
13856 Andrey Turetskiy <andrey.turetskiy@intel.com>
13857 Ilya Verbin <ilya.verbin@intel.com>
13858 Kirill Yukhin <kirill.yukhin@intel.com>
13859 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13861 * config/i386/sse.md (V): Extended with wider modes.
13863 (ssehalfvecmode): Ditto.
13865 (ssepackfltmode): Ditto.
13866 (avx_vec_concat<mode>): Ditto.
13867 (V_256_512): New iterator.
13868 (VF2_512_256): Ditto.
13869 (si2dfmode): New attribute.
13870 (si2dfmodelower): Ditto.
13871 (sf2dfmode): Ditto.
13872 (concat_tg_mode): Ditto.
13873 (floatv4siv4df2): Changed to ...
13874 (float<si2dfmodelower><mode>2): This.
13875 (avx_cvtps2pd256): Changed to ...
13876 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13877 (vec_pack_trunc_v4df): Changed to ...
13878 (vec_pack_trunc_<mode>): This.
13879 (avx_vpermil<mode>): Changed to ...
13880 (<sse2_avx_avx512f>_vpermil<mode>): This.
13881 (<fixsuffix>fix_truncv8dfv8si2): New.
13882 (vec_pack_sfix_trunc_v8df): Ditto.
13883 (avx512f_rndscale<mode>): Ditto.
13884 (avx512f_roundpd512): Ditto.
13885 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13887 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13889 Sergey Lega <sergey.s.lega@intel.com>
13890 Anna Tikhonova <anna.tikhonova@intel.com>
13891 Ilya Tocar <ilya.tocar@intel.com>
13892 Andrey Turetskiy <andrey.turetskiy@intel.com>
13893 Ilya Verbin <ilya.verbin@intel.com>
13894 Kirill Yukhin <kirill.yukhin@intel.com>
13895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13897 * config/i386/i386.md (any_fix): New iterator.
13898 (fixsuffix): New attribute.
13899 * config/i386/sse.md (VF1): Extened with wider modes.
13903 (sseintvecmodelower): Ditto.
13904 (ssescalarmode): Ditto.
13905 (ssescalarnum): Ditto.
13906 (VF1_128_256): New.
13907 (ssexmmmode): Ditto.
13908 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13909 (<sse>_rcp<mode>2): Change iterator.
13910 (rsqrt<mode>2): Ditto.
13911 (<sse>_rsqrt<mode>2): Ditto.
13912 (avx2_vec_dup<mode>): Ditto.
13913 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13914 (round<mode>2_sfix): Ditto.
13915 (avx2_pbroadcast<mode>): Ditto.
13916 (*andnot<mode>3): Handle XI mode.
13917 (*<code><mode>3): Ditto.
13918 (AVXTOSSEMODE): Removed.
13919 (avx_vpermil<mode>): Changed to ...
13920 (<sse2_avx_avx512f>_vpermil<mode>): This.
13922 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13923 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13924 Sergey Lega <sergey.s.lega@intel.com>
13925 Anna Tikhonova <anna.tikhonova@intel.com>
13926 Ilya Tocar <ilya.tocar@intel.com>
13927 Andrey Turetskiy <andrey.turetskiy@intel.com>
13928 Ilya Verbin <ilya.verbin@intel.com>
13929 Kirill Yukhin <kirill.yukhin@intel.com>
13930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13932 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13933 (<sse>_comi): Ditto.
13934 (<sse>_ucomi): Ditto.
13935 (sse_cvtss2siq_2): Ditto.
13936 (sse2_cvtsd2si): Ditto.
13937 (sse2_cvtsd2siq): Ditto.
13938 (sse2_cvttsd2si): Ditto.
13939 (sse2_cvttsd2siq): Ditto.
13940 (<shift_insn><mode>3): Ditto.
13941 (sse2_cvtsi2sdq): Update constraint and prefix.
13942 (sse_cvtsi2ss): Update prefix.
13943 (sse_cvtsi2ssq): Ditto.
13945 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13947 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13948 ignore internal calls.
13950 2013-10-11 Richard Biener <rguenther@suse.de>
13952 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13953 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13954 TREE_OVERFLOW is set.
13956 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13958 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13960 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13961 * gimple.h: Likewise.
13963 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13965 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13968 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13970 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13971 * configure: Regenerate.
13973 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13975 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13976 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13977 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13978 similarly pp_right_paren.
13979 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13980 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13981 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13982 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13984 (omp_declare_simd_clauses_equal,
13985 omp_remove_redundant_declare_simd_attrs): New functions.
13986 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13987 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13988 * tree.h (OMP_LOOP_CHECK): Define.
13989 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13990 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13991 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13992 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13993 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13994 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13995 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13996 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13997 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13998 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13999 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14000 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14001 (omp_remove_redundant_declare_simd_attrs): New prototype.
14002 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14003 GIMPLE_OMP_TEAMS): New codes.
14004 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14005 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14007 (target_nesting_level): New variable.
14008 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14009 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14010 for collapse > 1 static schedule unless ordered.
14011 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14012 (determine_parallel_type): Adjust get_ws_args_for caller.
14013 (install_var_field): Handle mask & 4 for double indirection.
14014 (scan_sharing_clauses): Ignore shared clause on teams construct.
14015 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14016 (create_omp_child_function): If inside target or declare target
14017 constructs, set "omp declare target" attribute on the child function.
14018 (find_combined_for): New function.
14019 (scan_omp_parallel): Handle combined loops.
14020 (scan_omp_target, scan_omp_teams): New functions.
14021 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14022 restrictions and set ctx->cancellable for cancellable constructs.
14023 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14024 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14025 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14026 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14027 (omp_clause_aligned_alignment): New function.
14028 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14029 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14030 on teams constructs. Handle user defined reductions and new
14031 OpenMP 4.0 clauses.
14032 (lower_reduction_clauses): Don't set placeholder to address of ref
14033 if it has already the right type.
14034 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14035 (expand_parallel_call): Use the new non-_start suffixed builtins,
14036 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14037 and GOMP_parallel_end after the call.
14038 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14039 (expand_omp_for_init_counts): Handle combined loops.
14040 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14042 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14043 end of cancellable loops.
14044 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14045 Likewise. Handle collapse > 1 loops.
14046 (expand_omp_simd): Handle combined loops.
14047 (expand_omp_for): Add inner_stmt argument, adjust callers of
14048 expand_omp_for* functions, use expand_omp_for_static*chunk even
14049 for collapse > 1 unless ordered.
14050 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14051 of cancellable sections.
14052 (expand_omp_single): Remove need_barrier variable, just rely on
14053 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14054 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14055 (expand_omp_atomic_load, expand_omp_atomic_store,
14056 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14057 (expand_omp_target): New function.
14058 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14059 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14060 (build_omp_regions_1): Immediately close region for
14061 GF_OMP_TARGET_KIND_UPDATE.
14062 (maybe_add_implicit_barrier_cancel): New function.
14063 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14065 (lower_omp_single): Likewise. Add clobber after the barrier.
14066 (lower_omp_taskgroup): New function.
14067 (lower_omp_for): Handle combined loops. Adjust
14068 lower_rec_input_clauses caller. Handle cancellation.
14069 (lower_depend_clauses): New function.
14070 (lower_omp_taskreg): Lower depend clauses. Adjust
14071 lower_rec_input_clauses caller. Add clobber after the call. Handle
14073 (lower_omp_target, lower_omp_teams): New functions.
14074 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14075 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14076 and GOMP_cancellation_point calls.
14077 (lower_omp): Fold stmts inside of target region.
14078 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14079 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14080 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14081 (BT_FN_VOID_OMPFN_PTR_UINT,
14082 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14083 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14084 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14085 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14086 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14087 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14088 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14089 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14090 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14091 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14093 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14094 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14095 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14096 BUILT_IN_GOMP_PARALLEL_END.
14097 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14098 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14099 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14100 GF_OMP_FOR_KIND_DISTRIBUTE.
14101 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14102 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14103 (dump_gimple_omp_return): Print lhs if it has any.
14104 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14105 gimple_omp_atomic_seq_cst_p.
14106 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14107 and GIMPLE_OMP_TEAMS.
14108 * langhooks.c (lhd_omp_mappable_type): New function.
14109 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14110 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14112 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14113 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14114 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14115 (struct gimplify_omp_ctx): Add combined_loop field.
14116 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14117 on stmts inside of target region.
14118 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14119 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14120 ORT_TARGET and ORT_TARGET_DATA.
14121 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14123 (omp_notice_threadprivate_variable): Complain about threadprivate
14124 variables in target region.
14125 (omp_notice_variable): Complain about vars with non-mappable type
14126 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14127 (omp_check_private): Ignore ORT_TARGET* regions.
14128 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14129 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14130 (find_combined_omp_for): New function.
14131 (gimplify_omp_for): Handle gimplification of combined loops.
14132 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14134 (gimplify_omp_target_update): New function.
14135 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14136 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14137 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14138 (gimplify_body): If fndecl has "omp declare target" attribute, add
14139 implicit ORT_TARGET context around it.
14140 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14141 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14142 * tree-nested.c (convert_nonlocal_reference_stmt,
14143 convert_local_reference_stmt, convert_gimple_call): Handle
14144 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14145 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14146 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14147 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14148 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14149 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14150 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14151 BUILT_IN_GOMP_LOOP_END_CANCEL,
14152 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14153 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14154 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14155 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14156 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14157 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14158 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14159 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14160 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14161 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14162 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14163 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14164 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14165 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14166 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14167 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14168 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14169 gimple_build_omp_teams): New functions.
14170 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14171 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14172 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14173 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14174 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14175 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14176 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14177 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14178 GF_OMP_ATOMIC_SEQ_CST): New.
14179 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14180 gimple_build_omp_teams): New prototypes.
14181 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14182 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14183 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14184 GIMPLE_OMP_SINGLE as end of range.
14185 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14186 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14187 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14188 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14189 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14190 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14191 gimple_omp_target_kind, gimple_omp_target_set_kind,
14192 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14193 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14194 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14195 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14196 gimple_omp_teams_set_clauses): New inlines.
14197 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14198 and GIMPLE_OMP_TASKGROUP.
14199 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14200 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14201 enum omp_clause_proc_bind_kind): New.
14202 (union omp_clause_subcode): Add depend_kind, map_kind and
14203 proc_bind_kind fields.
14204 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14205 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14206 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14207 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14208 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14210 2013-10-10 Teresa Johnson <tejohnson@google.com>
14212 * predict.c (tree_estimate_probability): Add new parameter
14213 for estimate_bb_frequencies.
14214 (estimate_bb_frequencies): Add new parameter to force estimation.
14215 (rebuild_frequencies): When max frequency in function is small,
14216 recompute counts from frequencies.
14217 * predict.h (estimate_bb_frequencies): New parameter.
14219 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14221 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14222 optimizations are disabled.
14224 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14226 * coverage.c (coverage_finish): Fix leak of da_file_name.
14228 2013-10-10 Jan Hubicka <jh@suse.cz>
14230 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14231 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14232 Bobcat and generic.
14234 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14236 PR middle-end/58670
14237 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14238 if any labels are in FALLTHRU_BB, use a special label emitted
14239 immediately after the asm goto insn rather than label_rtx
14241 (expand_asm_stmt): Adjust caller.
14242 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14243 edge if the last insn in predecessor is a jump with single successor,
14244 but it isn't simplejump_p.
14246 2013-10-10 Richard Biener <rguenther@suse.de>
14248 PR tree-optimization/58656
14249 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14251 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14253 * gimplify.c: Include expr.h and tm_p.h for targets with special
14254 va-arg padding requirements.
14256 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14258 * tree-flow.h: Move some prototypes to gimple.h.
14259 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14260 * gimple.h: Relocate some prototypes from tree-flow.h
14261 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14262 Move to gimplify.c.
14263 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14264 (build_va_arg_indirect_ref): Relocate and make static.
14265 (std_gimplify_va_arg_expr): Relocate here.
14266 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14267 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14269 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14271 * doc/md.texi: Document the mnemonic attribute.
14273 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14276 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14277 (set_attr_alternative x ...) when searching for user defined
14278 mnemonic attribute.
14280 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14282 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14284 2013-10-09 Easwaran Raman <eraman@google.com>
14286 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14287 * cfgexpand.c (defer_stack_allocation): ...use here
14288 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14290 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14292 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14293 (operand_equal_for_value_replacement): New function, extracted from
14294 value_replacement and enhanced to catch more cases.
14295 (value_replacement): Use operand_equal_for_value_replacement.
14297 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14299 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14300 get_max_loop_iterations.
14302 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14304 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14305 Place comment above function.
14307 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14309 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14310 are not related to tree-cfg.c.
14311 * tree-ssa-address.h: New file. Relocate prototypes.
14312 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14313 (addr_for_mem_ref): New. Combine call to get_address_description and
14314 return addr_for_mem_ref.
14315 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14316 * tree-ssa-live.h: Adjust prototypes.
14317 * passes.c: Include tree-ssa-live.h.
14318 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14319 * graphite.c (graphite_transform_loops): Make static.
14320 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14321 make_pass_graphite, pass_data_graphite_transforms,
14322 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14323 * ipa-pure-const.c (warn_function_noreturn): Make static.
14324 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14325 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14326 Relocate from tree-cfg.c
14327 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14329 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14330 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14331 Move to ipa-pure-const.c.
14332 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14333 Relocate from tree-optimize.c.
14334 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14335 make_pass_fixup_cfg): Move to tree-cfg.c.
14336 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14337 Relocate some prototypes.
14338 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14339 * tree-dump.c (dump_function_to_file): Remove prototype.
14340 Add tree-flow.h to the include file.
14341 * tree-dump.h: Remove prototype.
14342 * tree-parloops.h: New File. Add prototypes.
14343 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14344 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14345 from tree-ssa-loop.c.
14346 * tree-predcom.c (run_tree_predictive_commoning,
14347 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14348 Relocate here from tree-ssa-loop.c.
14349 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14350 ssa_name_values.release ().
14351 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14352 (ssa_name_values): Relocate from tree-flow.h.
14353 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14354 * tree-ssa-loop.c (run_tree_predictive_commoning,
14355 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14356 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14357 make_pass_graphite, pass_data_graphite_transforms,
14358 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14359 tree_parallelize_loops, pass_data_parallelize_loops,
14360 make_pass_parallelize_loops): Move to other files.
14361 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14363 * tree.h: Remove prototypes from tree-address.c.
14365 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14367 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14368 (struct int_tree_map): Move to tree-hasher.h
14369 (SCALE, LABEL, PERCENT): Move to gimple.h
14370 * tree-flow-inline.h: Delete. Move functions to other files.
14371 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14372 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14373 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14374 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14375 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14376 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14377 * tree-hasher.h: Don't include tree-flow.h.
14378 (struct int_tree_map): Relocate from tree-flow.h.
14379 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14380 tree-flow-inline.h and make static.
14381 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14382 tree-flow-inline.h.
14383 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14384 tree-flow-inline.h and make static.
14385 * tree.h (is_global_var, may_be_aliased): Relocate from
14386 tree-flow-inline.h.
14387 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14388 * value-prof.c: No longer include tree-flow-inline.h.
14389 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14391 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14393 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14394 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14395 (enum move_pos): Move to tree-ssa-loop-im.h
14396 * cfgloop.h: Move some prototypes.
14397 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14398 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14399 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14400 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14401 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14402 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14403 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14404 (enum move_pos): Relocate here.
14405 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14407 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14408 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14409 make_pass_lim): Relocate here from tree-ssa-loop.c.
14410 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14412 (loop_edge_to_cancel, unloop_loops): Make static.
14413 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14414 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14415 (tree_complete_unroll, gate_tree_complete_unroll,
14416 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14417 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14418 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14419 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14420 (stmt_invariant_in_loop_p): Remove unused function.
14421 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14422 * tree-ssa-loop-manip.h: New file. Add prototypes.
14423 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14424 (gcov_type_to_double_int): Move to cfgloop.h.
14425 (double_int_cmp, bound_index,
14426 estimate_numbers_of_iterations_loop): Make static.
14427 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14428 (max_loop_iterations): Factor out get_max_loop_iterations.
14429 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14431 * tree-ssa-loop-niter.h: New file. Add prototypes.
14432 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14433 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14434 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14435 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14436 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14437 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14438 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14439 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14440 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14441 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14442 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14443 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14444 pass_data_complete_unroll, make_pass_complete_unroll,
14445 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14446 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14447 tree-ssa-loop-ivcanon.c.
14448 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14449 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14450 tree-ssa-loop-prefetch.c.
14451 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14452 tree-ssa-loop-im.c.
14453 (get_lsm_tmp_name): Relocate and add suffix parameter.
14454 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14455 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14456 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14457 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14458 (get_estimated_loop_iterations): Factor out accessor from
14459 estimated_loop_iterations in tree-ssa-loop-niter.c.
14460 (get_max_loop_iterations): Factor out accessor from
14461 _max_loop_iterations in tree-ssa-niter.c.
14462 * loop-unroll.c (decide_unroll_constant_iterations,
14463 decide_unroll_runtime_iterations, decide_peel_simple,
14464 decide_unroll_stupid): Use new get_* accessors.
14466 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14468 PR tree-optimization/20318
14469 * doc/extend.texi (returns_nonnull): New function attribute.
14470 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14472 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14473 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14475 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14477 PR middle-end/58570
14478 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14479 false if both components are bitfields.
14481 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14483 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14484 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14485 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14486 * config/aarch64/aarch64.h
14487 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14488 * config/aarch64/aarch64-simd-builtins.def
14489 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14491 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14493 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14495 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14497 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14499 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14501 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14502 (vneg_f64): New intrinsic.
14503 (vneg_s8): Asm replaced with C.
14504 (vneg_s16): Likewise.
14505 (vneg_s32): Likewise.
14506 (vneg_s64): New intrinsic.
14507 (vnegq_f32): Asm replaced with C.
14508 (vnegq_f64): Likewise.
14509 (vnegq_s8): Likewise.
14510 (vnegq_s16): Likewise.
14511 (vnegq_s32): Likewise.
14512 (vnegq_s64): Likewise.
14514 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14516 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14518 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14520 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14521 packed stack special handling.
14522 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14523 back to fixed stack slots for FPRs saved due to stdarg.
14525 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14527 * config/s390/s390.c (s390_frame_info): Restructure function.
14529 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14531 * config/s390/s390.c (struct s390_frame_layout): New field
14533 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14534 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14535 regs_ever_clobbered to char*.
14536 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14537 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14538 (s390_register_info): Enable FPR save slots. Move/Copy some
14539 functionality into ...
14540 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14541 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14543 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14544 not imply a stack frame.
14545 (s390_init_frame_layout): Remove variable clobbered_regs.
14546 (s390_update_register_info): Remove function.
14547 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14548 cannot be used for register renaming.
14549 (s390_hard_regno_scratch_ok): New function.
14550 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14551 (s390_initial_elimination_offset): Change offset calculation of
14552 the return address pointer.
14553 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14554 (restore_gprs): Set frame related flag.
14555 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14556 (s390_emit_prologue): Call s390_register_info instead of
14557 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14558 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14559 (s390_optimize_prologue): Call s390_optimize_register_info.
14560 Try to remove also FPR slot save/restore INSNs. Remove frame
14561 related flags from restore INSNs.
14563 2013-10-08 DJ Delorie <dj@redhat.com>
14565 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14568 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14569 avoid conflict with the MI use of %c.
14570 * config/rl78/rl78-real.md: change %c to %C throughout.
14571 * config/rl78/rl78-virt.md: Likewise.
14573 2013-10-08 Jan Hubicka <jh@suse.cz>
14575 * config/i386/i386.c (ix86_option_override_internal): Switch
14576 to SSE math for -ffast-math when target ISA supports SSE2.
14578 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14580 * tree-flow.h: Remove some prototypes.
14581 * tree.h: Remove some protypes, add a couple.
14582 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14583 using_eh_for_cleanups_p): Add interface routines for front ends.
14584 * tree-eh.h: New file. Add protoptyes.
14585 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14586 (add_stmt_to_eh_lp_fn): Make static.
14587 (lower_try_finally): Use new using_eh_for_cleanups_p.
14588 * emit-rtl.c: Include tree-eh.h.
14589 * gimple.h: Include tree-eh.h.
14591 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14593 PR tree-optimization/58480
14594 * tree-vrp.c (infer_nonnull_range): New function.
14595 (infer_value_range): Call infer_nonnull_range.
14597 2013-10-08 Dehao Chen <dehao@google.com>
14599 PR tree-optimization/58619
14600 * tree-inline.c (copy_phis_for_bb): Combine location data
14603 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14606 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14607 RTX_FRAME_RELATED_P on INSN.
14609 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14611 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14612 (altivec_expand_vec_perm_const): Call it.
14614 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14616 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14617 sequences for LE VSX loads and stores at expand time.
14618 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14620 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14621 (rs6000_gen_le_vsx_permute): New.
14622 (rs6000_gen_le_vsx_load): New.
14623 (rs6000_gen_le_vsx_store): New.
14624 (rs6000_gen_le_vsx_move): New.
14625 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14626 (*vsx_le_perm_load_v4si): New.
14627 (*vsx_le_perm_load_v8hi): New.
14628 (*vsx_le_perm_load_v16qi): New.
14629 (*vsx_le_perm_store_v2di): New.
14630 (*vsx_le_perm_store_v4si): New.
14631 (*vsx_le_perm_store_v8hi): New.
14632 (*vsx_le_perm_store_v16qi): New.
14633 (*vsx_xxpermdi2_le_<mode>): New.
14634 (*vsx_xxpermdi4_le_<mode>): New.
14635 (*vsx_xxpermdi8_le_V8HI): New.
14636 (*vsx_xxpermdi16_le_V16QI): New.
14637 (*vsx_lxvd2x2_le_<mode>): New.
14638 (*vsx_lxvd2x4_le_<mode>): New.
14639 (*vsx_lxvd2x8_le_V8HI): New.
14640 (*vsx_lxvd2x16_le_V16QI): New.
14641 (*vsx_stxvd2x2_le_<mode>): New.
14642 (*vsx_stxvd2x4_le_<mode>): New.
14643 (*vsx_stxvd2x8_le_V8HI): New.
14644 (*vsx_stxvd2x16_le_V16QI): New.
14646 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14648 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14650 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14652 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14653 loop to work also for 31bit ABI.
14654 Save the stack pointer for frame_size > 0.
14656 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14658 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14659 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14660 constraint letters from expanders.
14661 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14662 retry count to general_operand.
14663 ("tabort"): Give operand 0 a mode.
14664 ("tabort_1"): Add mode and constraint letter for operand 0.
14665 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14667 2013-10-04 Jeff Law <law@redhat.com>
14669 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14671 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14673 (thread_across_edge): Here. Call it.
14675 2013-10-04 Cary Coutant <ccoutant@google.com>
14677 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14678 discarding a location list expression (or a piece of one).
14680 2013-10-03 Jan Hubicka <jh@suse.cz>
14682 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14683 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14684 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14686 2013-10-03 Jan Hubicka <jh@suse.cz>
14688 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14689 accumulate-outgoing-args when producing unwind info.
14691 2013-10-03 Wei Mi <wmi@google.com>
14693 * lra-constraints.c (insert_move_for_subreg): New function
14694 extracted from simplify_operand_subreg.
14695 (simplify_operand_subreg): Add reload for paradoxical subreg.
14697 2013-10-03 Rong Xu <xur@google.com>
14699 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14700 the candidate of builtin_expect such that we should fix the
14701 size/time estimation.
14702 (estimate_function_body_sizes): Do the acutally size/time fix-up
14703 for builtin_expect.
14705 2013-10-03 Rong Xu <xur@google.com>
14707 * predict.c (tree_predict_by_opcode): Get the probability
14708 for builtin_expect from param builtin_expect_probability.
14709 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14710 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14711 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14713 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14716 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14717 * calls.c (alloca_call_p): Use get_callee_fndecl.
14718 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14719 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14721 (vrp_visit_stmt): Remove duplicated code.
14723 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14725 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14726 ceildf2, btruncdf2, instead of vsx_* name.
14728 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14729 iterators to only do V2DF and V4SF here. Move the DF code to
14730 rs6000.md where it is combined with SF mode. Replace <VSv> with
14731 just 'v' since only vector operations are handled with these insns
14732 after moving the DF support to rs6000.md.
14733 (vsx_sub<mode>3): Likewise.
14734 (vsx_mul<mode>3): Likewise.
14735 (vsx_div<mode>3): Likewise.
14736 (vsx_fre<mode>2): Likewise.
14737 (vsx_neg<mode>2): Likewise.
14738 (vsx_abs<mode>2): Likewise.
14739 (vsx_nabs<mode>2): Likewise.
14740 (vsx_smax<mode>3): Likewise.
14741 (vsx_smin<mode>3): Likewise.
14742 (vsx_sqrt<mode>2): Likewise.
14743 (vsx_rsqrte<mode>2): Likewise.
14744 (vsx_fms<mode>4): Likewise.
14745 (vsx_nfma<mode>4): Likewise.
14746 (vsx_copysign<mode>3): Likewise.
14747 (vsx_btrunc<mode>2): Likewise.
14748 (vsx_floor<mode>2): Likewise.
14749 (vsx_ceil<mode>2): Likewise.
14750 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14751 (vsx_sminsf3): Likewise.
14752 (vsx_fmadf4): Likewise.
14753 (vsx_fmsdf4): Likewise.
14754 (vsx_nfmadf4): Likewise.
14755 (vsx_nfmsdf4): Likewise.
14756 (vsx_cmpdf_internal1): Likewise.
14758 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14759 simpler to select whether a target has SPE or traditional floating
14760 point support in iterators.
14761 (TARGET_DF_SPE): Likewise.
14762 (TARGET_SF_FPR): Likewise.
14763 (TARGET_DF_FPR): Likewise.
14764 (TARGET_SF_INSN): Macros to say whether floating point support
14765 exists for a given operation for expanders.
14766 (TARGET_DF_INSN): Likewise.
14768 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14769 combining of SF/DF mode operations, using both traditional and VSX
14777 (abs<mode>2): Combine SF/DF modes using traditional floating point
14778 instructions. Add support for using the upper DF registers with
14779 VSX support, and SF registers with power8-vector support. Update
14780 expanders for operations supported by both the SPE and traditional
14781 floating point units.
14782 (abs<mode>2_fpr): Likewise.
14783 (nabs<mode>2): Likewise.
14784 (nabs<mode>2_fpr): Likewise.
14785 (neg<mode>2): Likewise.
14786 (neg<mode>2_fpr): Likewise.
14787 (add<mode>3): Likewise.
14788 (add<mode>3_fpr): Likewise.
14789 (sub<mode>3): Likewise.
14790 (sub<mode>3_fpr): Likewise.
14791 (mul<mode>3): Likewise.
14792 (mul<mode>3_fpr): Likewise.
14793 (div<mode>3): Likewise.
14794 (div<mode>3_fpr): Likewise.
14795 (sqrt<mode>3): Likewise.
14796 (sqrt<mode>3_fpr): Likewise.
14797 (fre<Fs>): Likewise.
14798 (rsqrt<mode>2): Likewise.
14799 (cmp<mode>_fpr): Likewise.
14800 (smax<mode>3): Likewise.
14801 (smin<mode>3): Likewise.
14802 (smax<mode>3_vsx): Likewise.
14803 (smin<mode>3_vsx): Likewise.
14804 (negsf2): Delete SF operations that are merged with DF.
14805 (abssf2): Likewise.
14806 (addsf3): Likewise.
14807 (subsf3): Likewise.
14808 (mulsf3): Likewise.
14809 (divsf3): Likewise.
14811 (fmasf4_fpr): Likewise.
14812 (fmssf4_fpr): Likewise.
14813 (nfmasf4_fpr): Likewise.
14814 (nfmssf4_fpr): Likewise.
14815 (sqrtsf2): Likewise.
14816 (rsqrtsf_internal1): Likewise.
14817 (smaxsf3): Likewise.
14818 (sminsf3): Likewise.
14819 (cmpsf_internal1): Likewise.
14820 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14821 (negdf2): Delete DF operations that are merged with SF.
14822 (absdf2): Likewise.
14823 (nabsdf2): Likewise.
14824 (adddf3): Likewise.
14825 (subdf3): Likewise.
14826 (muldf3): Likewise.
14827 (divdf3): Likewise.
14829 (rsqrtdf_internal1): Likewise.
14830 (fmadf4_fpr): Likewise.
14831 (fmsdf4_fpr): Likewise.
14832 (nfmadf4_fpr): Likewise.
14833 (nfmsdf4_fpr): Likewise.
14834 (sqrtdf2): Likewise.
14835 (smaxdf3): Likewise.
14836 (smindf3): Likewise.
14837 (cmpdf_internal1): Likewise.
14838 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14839 (btrunc<mode>2): Delete separate expander, and combine with the
14840 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14841 (btrunc<mode>2_fpr): Likewise.
14842 (ceil<mode>2): Likewise.
14843 (ceil<mode>2_fpr): Likewise.
14844 (floor<mode>2): Likewise.
14845 (floor<mode>2_fpr): Likewise.
14846 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14847 Add support for using the upper registers with VSX and
14848 power8-vector. Move insns to be closer to the define_expands. On
14849 VSX systems, prefer the traditional form of FMA over the VSX
14850 version, since the traditional form allows the target not to
14851 overlap with the inputs.
14852 (fms<mode>4_fpr): Likewise.
14853 (nfma<mode>4_fpr): Likewise.
14854 (nfms<mode>4_fpr): Likewise.
14856 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14857 Richard Earnshaw <richard.earnshaw@arm.com>
14859 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14860 (struct mult_cost_table): Likewise.
14861 (struct mem_cost_table): Likewise.
14862 (struct fp_cost_table): Likewise.
14863 (struct vector_cost_table): Likewise.
14864 (cpu_cost_table): Likewise.
14865 * config/arm/arm.opt (mold-rts-costs): New option.
14866 (mnew-generic-costs): Likewise.
14867 * config/arm/arm.c (generic_extra_costs): New table.
14868 (cortexa15_extra_costs): Likewise.
14869 (arm_slowmul_tune): Use NULL as new costs.
14870 (arm_fastmul_tune): Likewise.
14871 (arm_strongarm_tune): Likewise.
14872 (arm_xscale_tune): Likewise.
14873 (arm_9e_tune): Likewise.
14874 (arm_v6t2_tune): Likewise.
14875 (arm_cortex_a5_tune): Likewise.
14876 (arm_cortex_a9_tune): Likewise.
14877 (arm_v6m_tune): Likewise.
14878 (arm_fa726te_tune): Likewise.
14879 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14880 (arm_cortex_tune): Use generict_extra_costs.
14881 (shifter_op_p): New function.
14882 (arm_unspec_cost): Likewise.
14883 (LIBCALL_COST): Define.
14884 (arm_new_rtx_costs): New function.
14885 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14886 table is available. Use old costs otherwise unless mnew-generic-costs
14888 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14889 (cpu_cost_table): Declare.
14891 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14894 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14895 (*subs_mul_imm_<mode>)
14896 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14897 (*sub_<shift>_<mode>)
14898 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14899 Remove k constraint.
14901 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14903 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14905 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14907 2013-10-02 Teresa Johnson <tejohnson@google.com>
14909 * predict.c (probably_never_executed): New function.
14910 (probably_never_executed_bb_p): Invoke probably_never_executed.
14911 (probably_never_executed_edge_p): Ditto.
14912 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14913 Treat profile insanities conservatively.
14915 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14917 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14919 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14921 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14922 use it. Use smaller increase for scratch. Don't increase reject
14923 for early clobber scratch.
14924 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14925 setting eliminated regs except setting fp from hfp.
14926 (lra_eliminate): Check lra_insn_recog_data on NULL.
14928 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14931 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14932 setting -mvsx-timode by default until the underlying problem is fixed.
14933 (RS6000_CPU, power7 defaults): Likewise.
14935 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14937 * config/x-linux (host-linux.o): Remove header dependencies.
14938 Use $(COMPILE) and $(POSTCOMPILE).
14939 * config/t-linux-android (linux-android.o): Ditto.
14941 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14943 * Makefile.in (expmed.o-warn): Remove.
14945 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14947 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14948 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14950 2013-10-02 Teresa Johnson <tejohnson@google.com>
14952 * dojump.c (do_jump_1): Divide probability between
14953 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14955 2013-10-02 Tom Tromey <tromey@redhat.com>
14957 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14959 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14961 * tree-flow.h: Remove some prototypes.
14962 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14963 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14964 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14965 mark_virtual_phi_result_for_renaming): Relocate here.
14966 * tree-into-ssa.h: Add prototypes.
14967 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14968 single_pred_before_succ_order.
14969 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14970 (nonfreeing_call_p) Move to gimple.c.
14971 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14973 * basic-block.h (single_pred_before_succ_order): Add prototype.
14974 * gimple.c (nonfreeing_call_p): Relocate here.
14975 * gimple.h: Add prototype.
14976 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14977 * tree-ssa-dom.h: New file. Relocate prototypes here.
14978 * tree-ssa.h: Include tree-ssa-dom.h.
14980 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14982 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14983 Use $(COMPILE) and $(POSTCOMPILE).
14985 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14987 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14989 * tree-flow.h: Remove some prototypes.
14990 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14991 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14992 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14993 propagate_tree_value*): Move from here to...
14994 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14995 propagate_tree_value*): Relocate here.
14996 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14997 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14998 * gimple-fold.c: Remove gimple-fold.h from include list.
14999 * tree-vrp.c: Remove gimple-fold.h from include list.
15000 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15001 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15002 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15003 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15004 * sese.c: Add tree-ssa-propagate.h to include list.
15006 2013-10-02 Richard Biener <rguenther@suse.de>
15008 * tree-loop-distribution.c: Include tree-vectorizer.h for
15009 find_loop_location.
15010 (enum partition_kind): Remove PKIND_REDUCTION.
15011 (struct partition_s): Remove has_writes member, add reduction_p member.
15012 (partition_alloc): Adjust.
15013 (partition_builtin_p): Likewise.
15014 (partition_has_writes): Remove.
15015 (partition_reduction_p): New function.
15016 (partition_merge_into): Likewise.
15017 (generate_code_for_partition): Commonize builtin partition
15019 (rdg_cannot_recompute_vertex_p): Remove.
15020 (already_processed_vertex_p): Likewise.
15021 (rdg_flag_vertex): Do not set has_writes.
15022 (classify_partition): Adjust.
15023 (rdg_build_partitions): Do not set has_writes, treat all
15024 partitions as useful.
15025 (distribute_loop): Record number of library calls generated. Adjust.
15026 (tree_loop_distribution): Report number of loops and library
15027 calls generated as opt-info.
15029 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15031 * tree-flow.h: Include new .h files. Move prototypes.
15032 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15033 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15034 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15035 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15036 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15037 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15038 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15039 * tree.h (get_ref_base_and_extent): Move prototype out.
15040 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15042 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15043 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15044 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15045 * tree-scalar-evolution.c: Include tree.h.
15046 * sese.c: Include tree.h.
15047 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15048 * dwarf2out.c: Include tree-dfa.h.
15049 * tree-chrec.c: Include tree.h.
15050 * tree-data-ref.c: Include tree.h.
15052 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15054 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15057 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15059 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15060 Use $(COMPILE) and $(POSTCOMPILE).
15061 (sol2-cxx.o): Likewise.
15062 (sol2-stubs.o): Likewise.
15063 (sol2.o): Likewise.
15064 * config/x-solaris (host-solaris.o): Likewise.
15066 * config/sparc/t-sparc (sparc.o): Remove.
15067 (sparc-c.o): Remove header dependencies.
15068 Use $(COMPILE) and $(POSTCOMPILE).
15069 * config/sparc/x-sparc: Likewise.
15071 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15073 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15074 * config/arc/arc700.md: Likewise.
15075 * config/arc/arc-modes.def: Likewise.
15076 * config/arc/arc-simd.h: Likewise.
15077 * config/arc/t-arc-uClibc: Likewise.
15078 * config/arc/t-arc-newlib: Likewise.
15080 2013-10-02 Renlin Li <renlin.li@arm.com>
15082 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15084 (aarch64_expand_epilogue): Likewise.
15086 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15087 Yufeng Zhang <yufeng.zhang@arm.com>
15089 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15091 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15092 'base_in' represent a conversion and legal_cast_p_1 holds; set
15093 'base_in' with the returned value from get_unwidened.
15095 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15097 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15098 plus_constant is not used.
15100 2013-10-01 Wei Mi <wmi@google.com>
15102 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15103 * config/i386/i386.md: Add define_peephole2 to
15104 break partial reg stall for cvtss2sd/cvtsd2ss.
15106 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15108 * config/arc/arc.c (pass_arc_ifcvt::clone):
15109 Update for ctxt_ -> m_ctxt change.
15111 2013-10-01 Jeff Law <law@redhat.com>
15113 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15114 outgoing_edge and intermediate_edge fields. Instead store the path.
15115 (redirection_data::hash): Hash on the last edge's destination index.
15116 (redirection_data::equal): Check the entire thread path.
15117 (lookup_redirectio_data): Corresponding changes.
15118 (create_edge_and_update_destination_phis): Likewise.
15119 (thread_single_edge): Likewise.
15121 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15122 Diego Novillo <dnovillo@google.com>
15124 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15125 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15126 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15127 versions of these patterns.
15129 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15130 (__builtin_arc_aligned): Likewise.
15132 * config/arc/arc.md: Expand adc_0 comment stating the intended
15133 purpose and why it isn't ready.
15134 Replace commented out call_value_via_label_mixed with a
15135 plain comment about bl_s.
15137 * config/arc/arc.c (stdio.h): Don't include directly.
15138 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15139 Remove if (1) condition.
15140 (arc_encode_section_info): Fix comment.
15142 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15144 * config/arc/arc.c (arc_conditional_register_usage):
15145 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15146 Also set reg_alloc_order for DMA config regs.
15148 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15149 Jeremy Bennett <jeremy.bennett@embecosm.com>
15151 * doc/install.texi (--with-cpu): Mention ARC.
15152 (arc-*-elf32): New paragraph.
15153 (arc-linux-uclibc): Likewise.
15154 * doc/md.texi (Machine Constraints): Add ARC part.
15155 * doc/invoke.texi: (menu): Add ARC Options.
15156 (Machine Dependent Options) <ARC Options>: Add synopsis.
15157 (node ARC Options): Add.
15158 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15159 (ARC Built-in Functions): New section defining
15160 generic ARC built-in functions.
15161 (ARC SIMD Built-in Functions): New section defining SIMD specific
15162 built-in functions.
15163 (Declaring Attributes of Functions): Extended
15164 description of short_call and long_call attributes for ARC and
15165 added index entries.
15167 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15168 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15169 Joern Rennecke <joern.rennecke@embecosm.com>
15170 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15171 Brendan Kehoe <brendan@zen.org>
15172 Michael Eager <eager@eagercon.com>
15173 Simon Cook <simon.cook@embecosm.com>
15174 Jeremy Bennett <jeremy.bennett@embecosm.com>
15176 * config/arc, common/config/arc: New directories.
15178 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15179 Brendan Kehoe <brendan@zen.org>
15180 Simon Cook <simon.cook@embecosm.com>
15182 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15184 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15186 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15187 * tree-ssa-coalesce.h: New. Move prototype to here.
15188 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15189 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15190 (gimple_can_coalesce_p): Move to...
15191 * gimple.c (gimple_can_coalesce_p): Here.
15193 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15195 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15196 (dump_decl_set): Move to gimple.c.
15197 * gimple.h: Don't include tree-ssa-operands.h.
15198 (dump_decl_set): Add prototype.
15199 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15200 Move to gimple-ssa.h.
15201 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15202 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15203 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15204 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15205 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15207 (dump_decl_set): Relocate here.
15208 * gimple-ssa.h: New file.
15209 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15210 Relocate from gimple.h.
15211 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15212 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15213 swap_tree_operands and remove non-ssa path.
15214 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15215 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15217 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15218 vect_is_simple_reduction_1): Use swap_ssa_operands.
15219 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15220 (enum need_phi_state): Move to tree-into-ssa.c.
15221 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15222 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15223 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15224 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15225 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15226 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15227 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15228 num_imm_uses): Move to ssa-iterators.h.
15229 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15230 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15232 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15233 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15234 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15235 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15236 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15237 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15238 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15239 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15240 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15241 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15242 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15243 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15244 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15245 (set_phi_nodes): Move to tree-phinodes.h.
15246 * tree-ssa-operands.h (enum ssa_op_iter_type,
15247 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15248 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15249 (dump_decl_set): Remove prototype.
15250 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15251 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15252 (set_phi_nodes): Relocate from tree-flow-inline.h.
15253 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15255 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15256 include list. Temporarily add gimple.h to include list.
15257 * ssa-iterators.h: New file.
15258 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15259 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15260 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15261 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15262 Relocate from tree-ssa-operands.h.
15263 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15264 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15265 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15266 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15267 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15268 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15269 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15270 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15271 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15272 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15273 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15274 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15275 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15276 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15277 Relocate from tree-flow-inline.h.
15278 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15280 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15283 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15284 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15285 Insert '\t' to output template.
15286 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15287 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15288 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15289 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15291 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15293 * doc/install.texi (Host/target specific installation notes for GCC):
15294 Put @anchor before @heading.
15295 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15296 Use @email for email addresses.
15298 2013-10-01 Jeff Law <law@redhat.com>
15300 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15301 a vec. Only delete the path if we create one without successfully
15302 registering a jump thread.
15303 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15305 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15306 (paths): New vector of jump threading paths.
15307 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15308 (THREAD_PATH): New accessor macro for the entire thread path.
15309 (lookup_redirection_data): Get intermediate and final outgoing edge
15310 from the thread path.
15311 (create_edge_and_update_destination_phis): Copy the threading path.
15312 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15313 jump threading path.
15314 (ssa_redirect_edges): Get edges and block types from the jump threading
15315 path. Free the path vector.
15316 (thread_block): Get edges from the jump threading path. Look at the
15317 entire path to see if we thread to a loop exit. If we cancel a jump
15318 thread request, then free the path vector.
15319 (thread_single_edge): Get edges and block types from the jump threading
15320 path. Free the path vector.
15321 (thread_through_loop_header): Get edges and block types from the jump
15322 threading path. Free the path vector.
15323 (mark_threaded_blocks): Iterate over the vector of paths and store
15324 the path on the appropriate edge. Get edges and block types from the
15325 jump threading path.
15326 (mark_threaded_blocks): Get edges and block types from the jump
15327 threading path. Free the path vector.
15328 (thread_through_all_blocks): Use the vector of paths rather than
15329 a vector of 3-edge sets.
15330 (register_jump_thread): Accept pointer to a path vector rather
15331 than the path vector itself. Store the path vector for later use.
15334 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15335 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15338 * config/s390/s390.c (s390_split_branches): Modify check for table
15340 (s390_chunkify_start): Rearrange table jump insn check in order to
15341 deal with compare and branch insns correctly.
15343 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15347 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15348 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15349 define_insn_and_split.
15350 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15351 (shiftsi3_compare): New pattern.
15352 (rrx): New pattern.
15353 * config/arm/unspecs.md (UNSPEC_RRX): New.
15355 2013-10-01 Alan Modra <amodra@gmail.com>
15357 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15358 casing inout operands.
15360 2013-10-01 Richard Biener <rguenther@suse.de>
15362 PR tree-optimization/58553
15363 * tree-loop-distribution.c (struct partition_s): Add niter member.
15364 (classify_partition): Populate niter member for the partition
15365 and properly identify whether the relevant store happens before
15366 or after the loop exit.
15367 (generate_memset_builtin): Use niter member from the partition.
15368 (generate_memcpy_builtin): Likewise.
15370 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15372 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15373 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15375 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15377 * basic-block.h (edge_list): Prefix member names with "m_".
15378 * context.h (context): Likewise.
15379 * domwalk.h (dom_walker): Likewise.
15380 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15381 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15382 * hash-table.h (hash_table): Likewise.
15383 * machmode.h (bit_field_mode_iterator): Likewise.
15384 * pass_manager.h (pass_list): Likewise.
15385 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15386 * tree-pass.h (pass_data): Likewise.
15387 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15388 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15389 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15390 * asan.c (pass_data_asan): Update accordingly.
15391 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15392 (control_dependences::control_dependences): Likewise.
15393 (control_dependences::~control_dependences): Likewise.
15394 (control_dependences::~control_dependences): Likewise.
15395 (control_dependences::get_edges_dependent_on): Likewise.
15396 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15397 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15398 * context.c (gcc::context::context): Likewise.
15399 * cprop.c (pass_rtl_cprop::clone): Likewise.
15400 * domwalk.c (dom_walker::walk): Likewise.
15401 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15402 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15403 * mode-switching.c (pass_mode_switching::clone): Likewise.
15404 * passes.c (opt_pass::opt_pass): Likewise.
15405 (pass_manager::pass_manager): Likewise.
15406 * predict.c (pass_strip_predict_hints::clone): Likewise.
15407 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15408 (pass_split_all_insns::clone): Likewise.
15409 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15411 (bit_field_mode_iterator::next_mode): Likewise.
15412 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15413 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15414 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15415 * tree-complex.c (pass_lower_complex::clone): Likewise.
15416 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15417 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15418 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15419 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15420 (pass_fold_builtins::clone): Likewise.
15421 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15422 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15423 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15424 (pass_cd_dce::clone): Likewise.
15425 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15426 (pass_phi_only_cprop::clone): Likewise.
15427 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15428 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15429 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15430 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15431 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15432 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15433 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15434 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15435 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15436 * tree-vrp.c (pass_vrp::clone): Likewise.
15437 * tsan.c (pass_tsan::clone): Likewise.
15439 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15441 PR middle-end/58564
15442 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15443 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15445 PR middle-end/58564
15446 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15447 optimization, punt if sign_bit_p looked through any zero extension.
15449 2013-09-30 Teresa Johnson <tejohnson@google.com>
15451 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15452 Update redirected out edge count in joiner case.
15453 (ssa_redirect_edges): Common the joiner and non-joiner cases
15454 so that joiner case gets profile updates.
15456 2013-09-30 Richard Biener <rguenther@suse.de>
15458 PR tree-optimization/58554
15459 * tree-loop-distribution.c (classify_partition): Require
15460 unconditionally executed stores for memcpy and memset recognition.
15461 (tree_loop_distribution): Calculate dominance info.
15463 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15465 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15466 (NO_PROFILE_COUNTERS): Likewise.
15467 (PROFILE_HOOK): Likewise.
15468 (FUNCTION_PROFILER): Likewise.
15469 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15471 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15473 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15474 calls and defines in TARGET_MACHO conditional.
15475 (load_macho_picbase_di): Likewise.
15476 (reload_macho_picbase): Likewise.
15477 (reload_macho_picbase_si): Likewise.
15478 (reload_macho_picbase_di): Likewise.
15479 (nonlocal_goto_receiver): Likewise.
15481 2013-09-30 Nick Clifton <nickc@redhat.com>
15483 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15484 that use the MSP430X ISA.
15485 (msp430_option_override): Scan -mmcu command line option for any
15486 MCU name that supports the MSP430X ISA.
15487 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15488 -mmcu options which enable the MSP430X ISA.
15490 2013-09-30 Richard Biener <rguenther@suse.de>
15492 PR middle-end/58532
15493 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15494 before looking for setjmp-like calls.
15496 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15499 * config/darwin-protos.h (machopic_get_function_picbase): New.
15500 * config/darwin.c (machopic_get_function_picbase): New.
15501 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15502 label for a new func. (load_macho_picbase_di): Likewise.
15503 (reload_macho_picbase): New expand.
15504 (reload_macho_picbase_si): New insn.
15505 (reload_macho_picbase_di): New insn.
15506 (nonlocal_goto_receiver): New define and split.
15507 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15508 (unspecv enum): Add UNSPECV_NLGR.
15510 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15512 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15513 that altivec registers are correctly sized on Darwin.
15515 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15517 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15518 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15519 * config/x-darwin (host-darwin.o): Likewise.
15520 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15521 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15522 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15524 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15526 * doc/invoke.texi: Fix usage of @tie{} command.
15528 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15530 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15532 2013-09-28 Jan Hubicka <jh@suse.cz>
15534 * config/i386/x86-tune.def: Add documentation for each of the options;
15537 2013-09-28 Jan Hubicka <jh@suse.cz>
15539 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15541 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15542 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15543 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15544 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15545 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15547 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15549 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15550 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15551 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15552 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15553 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15554 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15555 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15556 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15557 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15558 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15559 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15560 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15561 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15562 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15563 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15564 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15565 gimple.h, godump.c, graphite-clast-to-gimple.c,
15566 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15567 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15568 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15569 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15570 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15571 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15572 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15573 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15574 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15575 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15576 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15577 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15578 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15579 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15580 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15581 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15582 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15583 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15584 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15585 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15586 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15587 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15588 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15589 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15590 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15591 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15592 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15593 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15594 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15595 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15596 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15597 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15598 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15599 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15600 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15601 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15602 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15603 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15604 whitespace before "(".
15606 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15608 * expr.h (extract_bit_field): Remove packedp parameter.
15609 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15610 from forward declaration.
15611 (store_split_bit_field): Remove packedp arg from calls to
15612 extract_fixed_bit_field.
15613 (extract_bit_field_1): Remove packedp parameter and packedp
15614 argument from recursive calls and calls to extract_fixed_bit_field.
15615 (extract_bit_field): Remove packedp parameter and corresponding
15616 arg to extract_bit_field_1.
15617 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15619 (extract_split_bit_field): Remove packedp arg from call to
15620 extract_fixed_bit_field.
15621 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15622 (copy_blkmode_from_reg): Likewise.
15623 (copy_blkmode_to_reg): Likewise.
15624 (read_complex_part): Likewise.
15625 (store_field): Likewise.
15626 (expand_expr_real_1): Likewise.
15627 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15628 to extract_bit_field.
15629 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15630 call to extract_bit_field.
15631 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15632 call to extract_bit_field.
15633 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15634 and special packedp behavior from -fstrict-volatile-bitfields
15637 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15639 * lra-eliminations.c (init_elim_table): Guard value_p.
15641 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15643 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15644 DFmode, DImode, and SFmode in the upper VSX registers based on the
15645 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15646 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15647 of the VSX register handling.
15649 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15650 (f32_sv): Likewise.
15651 (zero_extendsidi2_lfiwzx): Add support for loading into the
15652 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15653 only do VSX memory options on Altivec registers.
15654 (extendsidi2_lfiwax): Likewise.
15655 (extendsfdf2_fpr): Likewise.
15656 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15657 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15658 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15659 (movdi_internal64): Likewise.
15661 2013-09-27 Xinliang David Li <davidxl@google.com>
15663 * opts.c (finish_options): Adjust parameters
15664 according to vect cost model.
15665 (common_handle_option): Set dynamic vect cost
15667 targhooks.c (default_add_stmt_cost): Compute stmt cost
15669 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15670 Use helper function.
15671 * tree-vectorizer.h (unlimited_cost_model): New function.
15672 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15673 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15675 (vect_enhance_data_refs_alignment): Ditto.
15676 * flag-types.h: New enum.
15677 * common/config/i386/i386-common.c (ix86_option_init_struct):
15678 No need to initialize vect_cost_model flag.
15679 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15682 2013-09-27 Diego Novillo <dnovillo@google.com>
15684 * gimple.h (enum ssa_mode): Remove.
15686 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15688 * cfgloop.h (number_of_loops): Fix typo in check for null.
15690 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15692 PR middle-end/58551
15693 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15694 are children of outermost saved_cfun's loop, and set it up to
15695 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15696 if loop != loop0 and SESE region contains bbs that belong to loop0.
15698 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15700 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15701 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15702 (set_address_segment, set_address_base, set_address_index)
15703 (set_address_disp): Accept the argument unconditionally.
15704 (baseness): Remove must_be_base_p and must_be_index_p checks.
15705 (decompose_normal_address): Classify as much as possible in the
15708 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15710 * cse.c (count_reg_usage): Handle INT_LIST.
15711 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15712 * reginfo.c (reg_scan_mark_refs): Likewise.
15713 * reload1.c (eliminate_regs_1): Likewise.
15715 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15717 PR middle-end/58547
15718 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15721 2013-09-27 Richard Biener <rguenther@suse.de>
15723 PR tree-optimization/58459
15724 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15725 restriction not propagating into loops.
15727 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15729 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15730 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15731 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15733 2013-09-26 Richard Biener <rguenther@suse.de>
15735 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15737 2013-09-26 Richard Biener <rguenther@suse.de>
15739 * alias.h (component_uses_parent_alias_set): Rename to ...
15740 (component_uses_parent_alias_set_from): ... this.
15741 * alias.c (component_uses_parent_alias_set): Rename to ...
15742 (component_uses_parent_alias_set_from): ... this and return
15743 the desired parent.
15744 (reference_alias_ptr_type_1): Use the result from
15745 component_uses_parent_alias_set_from instead of stripping
15746 components one at a time.
15747 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15749 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15751 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15752 Move prototypes to...
15753 * tree-ssa-ter.h: New File. Move prototypes here.
15754 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15755 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15756 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15757 from is_replaceable_p.
15758 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15759 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15760 (process_replaceable): Use ter_is_replaceable_p.
15761 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15762 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15763 newly refactored ssa_is_replaceable_p.
15764 * cfgexpand.c: Include tree-outof-ssa.h.
15765 * ssaexpand.h: Delete.
15767 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15769 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15770 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15772 (create_gimple_tmp): Delete.
15773 (get_expr_type, build_assign, build_type_cast): Move to...
15774 * gimple-builder.c: New File.
15775 (get_expr_type): Relocate from gimple.c.
15776 (build_assign, build_type_cast): Change to only create ssanames.
15777 * gimple.h: Move prototypes to...
15778 * gimple-builder.h: New File. Here.
15779 * tree-ssa.h: And here.
15780 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15781 count_uses_and_derefs): Relocate from gimple.c.
15782 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15783 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15784 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15785 gimple_replace_ssa_lhs.
15786 * asan.c: Include gimple-builder.h.
15787 * Makefile.in: Add gimple-builder.o.
15789 2013-09-26 Richard Biener <rguenther@suse.de>
15791 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15792 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15793 (loe_visit_block): Use gcc_checking_assert.
15794 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15795 gimple_assign_ssa_name_copy_p.
15796 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15799 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15801 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15802 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15804 2013-09-26 Richard Biener <rguenther@suse.de>
15806 PR tree-optimization/58539
15807 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15808 the fact that debug statements are not taking part in loop-closed
15811 2013-09-26 Nick Clifton <nickc@redhat.com>
15813 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15814 time warning message.
15815 (msp430_print_operand_raw): Delete unused letter parameter.
15816 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15817 (msp430_print_operand_address): New function.
15818 (msp430_print_operand): Move address printing code from here to
15820 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15822 (zero_extendpsisi2): Likewise.
15823 (extendpsisi2): New pattern.
15824 (andneghi3): New pattern.
15826 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15828 * config/aarch64/aarch64.opt (mlra): New option.
15829 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15830 (TARGET_LRA_P): Define.
15832 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15834 * expr.c (expand_assignment): Remove obsolete comment.
15836 2013-09-25 Jeff Law <law@redhat.com>
15838 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15839 tree-ssa-threadupdate.h.
15840 (register_jump_thread): Similarly.
15841 * tree-ssa-threadupdate.h: New header file.
15842 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15843 * tree-vrp.c: Likewise.
15844 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15845 (thread_around_empty_blocks): Change type of path vector argument to
15846 an edge,type pair from just an edge. Initialize both elements when
15847 appending to a jump threading path. Tweak references to elements
15849 (thread_across_edge): Similarly. Release memory for the elements
15851 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15852 (dump_jump_thread_path): New function broken out from
15853 register_jump_thread.
15854 (register_jump_thread): Use dump_jump_thread_path. Change type of
15855 path vector entries. Search the path for NULL edges and dump
15856 the path if one is found. Tweak the conversion of path to 3-edge
15857 form to use the block copy type information embedded in the path.
15859 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15861 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15863 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15864 Vladimir Makarov <vmakarov@redhat.com>
15866 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15867 from the least significant bit.
15868 (strip_address_mutations): Add bitfield operations handling.
15869 (must_be_index_p): Add shifting and rotate operations handling.
15870 (set_address_base): Use must_be_base_p predicate.
15871 (set_address_index): Use must_be_index_p predicate.
15873 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15875 Sergey Lega <sergey.s.lega@intel.com>
15876 Anna Tikhonova <anna.tikhonova@intel.com>
15877 Ilya Tocar <ilya.tocar@intel.com>
15878 Andrey Turetskiy <andrey.turetskiy@intel.com>
15879 Ilya Verbin <ilya.verbin@intel.com>
15880 Kirill Yukhin <kirill.yukhin@intel.com>
15881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15883 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15885 (ix86_expand_vector_move_misalign): Support new unaligned load and
15886 stores and use new names.
15887 (CODE_FOR_sse2_storedqu): Rename to ...
15888 (CODE_FOR_sse2_storedquv16qi): ... this.
15889 (CODE_FOR_sse2_loaddqu): Rename to ...
15890 (CODE_FOR_sse2_loaddquv16qi): ... this.
15891 (CODE_FOR_avx_loaddqu256): Rename to ...
15892 (CODE_FOR_avx_loaddquv32qi): ... this.
15893 (CODE_FOR_avx_storedqu256): Rename to ...
15894 (CODE_FOR_avx_storedquv32qi): ... this.
15895 * config/i386/i386.md (fpint_logic): New.
15896 * config/i386/sse.md (VMOVE): Extend for AVX512.
15900 (VI_UNALIGNED_LOADSTORE): Ditto.
15901 (sse2_avx_avx512f): Ditto.
15902 (sse2_avx2): Extend for AVX512.
15903 (sse4_1_avx2): Ditto.
15904 (avx2_avx512f): New.
15905 (sse): Extend for AVX512.
15908 (avxsizesuffix): Ditto.
15909 (sseintvecmode): Ditto.
15910 (ssePSmode): Ditto.
15911 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15912 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15913 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15914 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15915 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15916 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15917 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15918 (STORENT_MODE): Extend for AVX512.
15919 (*absneg<mode>2): Replace constraint "x" with "v".
15920 (*mul<mode>3): Ditto.
15921 (*ieee_smin<mode>3): Ditto.
15922 (*ieee_smax<mode>3): Ditto.
15923 (avx_cmp<mode>3): Replace VF with VF_128_256.
15924 (*<sse>_maskcmp<mode>3_comm): Ditto.
15925 (<sse>_maskcmp<mode>3): Ditto.
15926 (<sse>_andnot<mode>3): Extend for AVX512.
15927 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15928 (<code><mode>3, fpint_logic): New.
15929 (*<code><mode>3): Extend for AVX512.
15930 (avx512flogicsuff): New.
15931 (avx512f_<logic><mode>): Ditto.
15932 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15934 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15935 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15936 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15937 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15938 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15939 (xop_vpermil2<mode>3): Ditto.
15940 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15941 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15942 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15943 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15945 2013-09-25 Tom Tromey <tromey@redhat.com>
15947 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15948 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15949 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15950 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15951 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15952 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15953 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15954 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15955 (GRAPHITE_HTAB_H): Remove.
15957 2013-09-25 Tom Tromey <tromey@redhat.com>
15959 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15961 2013-09-25 Tom Tromey <tromey@redhat.com>
15963 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15965 2013-09-25 Tom Tromey <tromey@redhat.com>
15967 * config/i386/t-i386 (i386.o): Remove.
15968 (i386-c.o): Use COMPILE and POSTCOMPILE.
15970 2013-09-25 Tom Tromey <tromey@redhat.com>
15972 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15974 2013-09-25 Tom Tromey <tromey@redhat.com>
15976 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15977 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15978 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15979 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15980 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15981 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15982 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15983 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15984 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15985 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15986 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15987 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15988 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15989 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15990 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15991 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15992 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15993 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15994 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15995 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15996 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15997 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15998 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15999 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16000 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16001 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16002 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16003 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16004 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16005 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16006 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16007 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16008 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16009 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16010 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16011 (graphite-clast-to-gimple.o, graphite-dependences.o)
16012 (graphite-interchange.o, graphite-poly.o)
16013 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16014 (graphite-optimize-isl.o, tree-vect-loop.o)
16015 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16016 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16017 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16018 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16019 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16020 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16021 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16022 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16023 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16024 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16025 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16026 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16027 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16028 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16029 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16030 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16031 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16032 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16033 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16034 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16035 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16036 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16037 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16038 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16039 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16040 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16041 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16042 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16043 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16044 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16045 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16046 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16047 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16048 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16049 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16050 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16051 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16052 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16053 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16054 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16055 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16056 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16057 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16058 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16059 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16060 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16061 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16062 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16063 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16064 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16065 (gcov-dump.o): Remove.
16066 (default-c.o): Use COMPILE and POSTCOMPILE.
16067 (CFLAGS-gcc.o): New variable.
16068 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16070 2013-09-25 Tom Tromey <tromey@redhat.com>
16072 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16073 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16074 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16075 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16076 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16077 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16078 (c-family/array-notation-common.o, c-family/stub-objc.o)
16079 (c-family/c-ubsan.o): Remove.
16081 2013-09-25 Tom Tromey <tromey@redhat.com>
16083 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16085 2013-09-25 Tom Tromey <tromey@redhat.com>
16087 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16088 to add -DENABLE_SHARED_LIBGCC.
16089 (gcc.o): Don't use subshell.
16091 2013-09-25 Tom Tromey <tromey@redhat.com>
16093 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16094 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16095 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16096 * configure, config.in: Rebuild.
16098 2013-09-25 Tom Tromey <tromey@redhat.com>
16100 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16101 (COMPILE, POSTCOMPILE): New variables.
16102 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16103 (DEPFILES): New variable.
16104 Include ".Po" files.
16105 * configure.ac: Add checks for dependency checking.
16106 * configure, aclocal.m4: Regenerate.
16108 2013-09-25 Tom Tromey <tromey@redhat.com>
16110 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16111 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16113 2013-09-25 Tom Tromey <tromey@redhat.com>
16115 * Makefile.in (generated_files): Add options.h,
16116 target-hooks-def.h, insn-opinit.h,
16117 common/common-target-hooks-def.h, pass-instances.def,
16118 c-family/c-target-hooks-def.h.
16120 2013-09-25 Jeff Law <law@redhat.com>
16122 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16123 than foo[foo.length () - 1] to access last member in a vec.
16124 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16126 2013-09-25 Richard Biener <rguenther@suse.de>
16128 PR middle-end/58521
16129 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16131 2013-09-25 Jan Hubicka <jh@suse.cz>
16133 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16136 2013-09-25 Marek Polacek <polacek@redhat.com>
16139 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16140 when determining the type name.
16142 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16144 * config/sh/sh.md: Fix formatting.
16146 2013-09-24 Xinliang David Li <davidxl@google.com>
16148 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16149 max peel iterations parameter.
16150 * param.def: New parameter.
16151 * doc/invoke.texi: Document New parameter.
16153 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16155 * gimple-pretty-print.c: Various whitespace tweaks.
16156 * tree-core.h: Likewise.
16157 * tree-pretty-print.c: Likewise.
16158 * tree-ssa-alias.c: Likewise.
16159 * tree-ssa-copy.c: Likewise.
16160 * tree-ssanames.c: Likewise.
16161 * tree-ssanames.h: Likewise.
16162 * tree-vrp.c: Likewise.
16164 2013-09-24 Alan Modra <amodra@gmail.com>
16166 PR middle-end/57134
16167 PR middle-end/57586
16168 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16169 for output operands that disallow regs. Don't use EXPAND_WRITE on
16172 2013-09-24 Richard Biener <rguenther@suse.de>
16174 PR middle-end/58513
16175 * tree.c (reference_alias_ptr_type): Move ...
16176 * alias.c (reference_alias_ptr_type): ... here and implement
16177 in terms of the new reference_alias_ptr_type_1.
16178 (ref_all_alias_ptr_type_p): New helper.
16179 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16180 use ref_all_alias_ptr_type_p.
16181 (get_deref_alias_set): Add flag_strict_aliasing check here.
16182 (reference_alias_ptr_type_1): New function, split out from ...
16183 (get_alias_set): ... here.
16184 (alias_ptr_types_compatible_p): New function.
16185 * alias.h (reference_alias_ptr_type): Declare.
16186 (alias_ptr_types_compatible_p): Likewise.
16187 * tree.h (reference_alias_ptr_type): Remove.
16188 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16189 to compare MEM_REF alias types.
16191 2013-09-24 Richard Biener <rguenther@suse.de>
16193 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16195 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16197 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16198 reload helper function arrays into a single array reg_addr.
16199 (reload_fpr_gpr): Likewise.
16200 (reload_gpr_vsx): Likewise.
16201 (reload_vsx_gpr): Likewise.
16202 (struct rs6000_reg_addr): Likewise.
16203 (reg_addr): Likewise.
16204 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16205 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16206 (rs6000_init_hard_regno_mode_ok): Likewise.
16207 (rs6000_secondary_reload_direct_move): Likewise.
16208 (rs6000_secondary_reload): Likewise.
16210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16211 constraints: wu, ww, and wy. Repurpose wv constraint added during
16212 power8 changes. Put wg constraint in alphabetical order.
16214 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16215 for future work to add ISA 2.07 VSX single precision support.
16216 (-mvsx-scalar-double): Change default from -1 to 1, update
16217 documentation comment.
16218 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16219 (-mupper-regs-df): New debug switch to control whether DF values
16220 can go in the traditional Altivec registers.
16221 (-mupper-regs-sf): New debug switch to control whether SF values
16222 can go in the traditional Altivec registers.
16224 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16225 and wy constraints.
16226 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16227 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16228 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16229 (rs6000_debug_legitimate_address_p): Print if we are running
16230 before, during, or after reload.
16231 (rs6000_secondary_reload): Add a comment.
16232 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16234 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16235 constraints. Update documentation string.
16236 (wd constraint): Likewise.
16237 (wf constraint): Likewise.
16238 (wg constraint): Likewise.
16239 (wn constraint): Likewise.
16240 (ws constraint): Likewise.
16241 (wt constraint): Likewise.
16242 (wx constraint): Likewise.
16243 (wz constraint): Likewise.
16244 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16246 (ww constraint): Likewise.
16247 (wy constraint): Likewise.
16248 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16249 in the previous submissions.
16250 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16252 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16254 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16255 (REG_BR_PROB): Say that the probability is stored in an int_list.
16256 * reg-notes.def: Update commentary to mention INT_LIST.
16257 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16258 (INT_LIST): New rtx.
16259 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16260 * rtlanal.c (int_reg_note_p): New function.
16261 (alloc_reg_note): Assert that the note does not have an int argument.
16262 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16263 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16264 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16265 rather than an INSN_LIST. Handle INT_LIST.
16266 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16267 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16268 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16269 Manipulate them as ints rather than rtxes.
16270 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16271 * regmove.c (copy_src_to_dest): Likewise.
16272 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16274 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16275 into the cases that need it.
16276 * config/arm/arm.c (arm_unwind_emit): Likewise.
16278 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16279 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16280 * loop-doloop.c (add_test, doloop_modify): Likewise.
16281 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16282 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16283 * predict.c (combine_predictions_for_insn): Likewise.
16284 * print-rtl.c (print_rtx): Handle INT_LIST.
16285 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16286 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16287 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16288 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16289 (ix86_split_fp_branch, predict_jump): Likewise.
16290 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16291 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16292 * config/spu/spu.c (ea_load_store_inline): Likewise.
16294 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16295 value of a REG_BR_PROB note.
16296 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16297 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16298 * emit-rtl.c (try_split): Likewise.
16299 * predict.c (br_prob_note_reliable_p): Likewise.
16300 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16301 * reorg.c (mostly_true_jump): Likewise.
16302 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16303 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16304 * config/i386/i386.c (ix86_print_operand): Likewise.
16305 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16306 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16307 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16308 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16309 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16310 * config/sparc/sparc.c (output_cbranch): Likewise.
16311 * config/spu/spu.c (get_branch_target): Likewise.
16312 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16313 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16315 2013-09-23 Jan Hubicka <jh@suse.cz>
16317 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16319 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16320 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16322 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16323 (gimple_fold_call): Dump inconsistent devirtualizations; add
16324 sanity check for type based devirtualizations.
16325 * ipa-prop.c: Include ipa-utils.h
16326 (ipa_intraprocedural_devirtualization): Add sanity check.
16327 (try_make_edge_direct_virtual_call): Likewise.
16329 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16331 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16332 assignment statements.
16334 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16336 * gimple-pretty-print.c (dump_ssaname_info): New function.
16337 (dump_gimple_phi): Call it.
16338 (pp_gimple_stmt_1): Likewise.
16339 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16340 (range_info_def): Declare.
16341 * tree-pretty-print.c (pp_double_int): New function.
16342 (dump_generic_node): Call it.
16343 * tree-pretty-print.h (pp_double_int): Declare.
16344 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16345 * tree-ssanames.h (range_info_def): New structure.
16346 (value_range_type): Move definition here.
16347 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16349 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16351 (set_range_info): New function.
16352 (get_range_info): Likewise.
16353 (duplicate_ssa_name_range_info): Likewise.
16354 (duplicate_ssa_name_fn): Check pointer type and call
16355 duplicate_ssa_name_range_info.
16356 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16357 * tree-vrp.c (value_range_type): Remove definition, now in
16359 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16360 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16361 (SSA_NAME_RANGE_INFO): New macro.
16363 2013-09-23 Richard Biener <rguenther@suse.de>
16365 PR tree-optimization/58464
16366 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16367 (phi_trans_add): Change to add conditionally on being not present.
16368 (phi_translate_1): Remove recursion detection here.
16369 (phi_translate): Pre-seed the cache with NULL to catch
16370 recursion here in a more generic way.
16371 (bitmap_find_leader): Adjust comment.
16372 (get_representative_for): Dump value-numbers.
16373 (create_expression_by_pieces): Likewise.
16374 (insert_into_preds_of_block): Likewise.
16376 2013-09-23 Christian Bruel <christian.bruel@st.com>
16379 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16380 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16382 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16385 2013-09-20 Renlin Li <renlin.li@arm.com>
16387 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16389 (aarch64_expand_epilogue): Likewise.
16390 (aarch64_legitimize_reload_address): Likewise.
16392 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16394 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16395 NULL_TREE before pushing them onto the vector. Likewise for labels.
16397 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16399 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16400 comparison operators when -fno-trapping-math is in effect.
16401 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16402 comparison operators in TFmode and assert that unsupported operators
16404 (ia64_print_operand): Likewise.
16406 2013-09-21 Jan Hubicka <jh@suse.cz>
16408 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16409 (sse_typeless_stores): Enable for core
16410 (sse_load0_by_pxor): Likewise.
16411 (four_jump_limit): Disable for core.
16412 (pad_returns): Likewise.
16413 (avoid_vector_decode): Likewise.
16414 (fuse_cmp_and_branch): Enable for cores.
16415 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16417 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16419 PR middle-end/56791
16420 * config/pa/pa.c (pa_option_override): Disable auto increment and
16421 decrement instructions until reload is completed.
16423 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16424 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16425 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16427 2013-09-20 DJ Delorie <dj@redhat.com>
16428 Nick Clifton <nickc@redhat.com>
16430 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16431 (need_to_save): Save bank 0 on interrupts.
16432 (characterize_address): Strip far address wrappers.
16433 (rl78_as_legitimate_address): Likewise.
16434 (transcode_memory_rtx): Likewise.
16435 (rl78_peep_movhi_p): Disable this peephole after devirt.
16436 (rl78_propogate_register_origins): Forget all origins when a
16438 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16439 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16441 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16442 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16443 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16445 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16447 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16449 * config/pa/pa.md: In "scc" insn patterns, change output template to
16450 handle const0_rtx in reg_or_0_operand operands.
16452 2013-09-20 Martin Husemann <martin@NetBSD.org>
16455 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16456 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16458 2013-09-20 Richard Biener <rguenther@suse.de>
16460 PR middle-end/58484
16461 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16462 remembering SSA name version and block index.
16463 (new_scev_info_str): Adjust.
16464 (hash_scev_info): Likewise. Also hash the block index.
16465 (eq_scev_info): Adjust.
16466 (find_var_scev_info): Likewise.
16467 (struct instantiate_cache_entry): Remove.
16468 (struct instantiate_cache_type): Use a htab to map name, block
16470 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16471 (get_instantiated_value_entry): Likewise.
16472 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16473 (instantiate_scev_name): Adjust.
16475 2013-09-20 Jeff Law <law@redhat.com>
16477 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16479 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16481 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16482 Call aarch64_simd_expand_args to update op[argc].
16484 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16486 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16489 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16491 * gengtype.c (file_rules): Added rule for *.cc files.
16492 (get_output_file_with_visibility): Give fatal message when no
16495 2013-09-20 Renlin Li <renlin.li@arm.com>
16497 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16498 (aarch64_expand_epilogue): Likewise.
16499 (aarch64_legitimize_reload_address): Likewise.
16501 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16503 PR middle-end/57748
16504 * expr.c (expand_assignment): Remove misalignp code path.
16506 2013-09-20 Marek Polacek <polacek@redhat.com>
16509 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16510 TYPE_PRECISION. Add asserts.
16512 2013-09-20 Richard Biener <rguenther@suse.de>
16514 PR tree-optimization/58453
16515 * tree-loop-distribution.c (distribute_loop): Apply the cost
16516 model for -ftree-loop-distribute-patterns, too.
16518 2013-09-20 Richard Biener <rguenther@suse.de>
16520 PR middle-end/58473
16521 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16522 make type comparison less strict.
16524 2013-09-20 Alan Modra <amodra@gmail.com>
16526 * configure: Regenerate.
16527 * aclocal.m4: Regenerate.
16529 2013-09-20 Marek Polacek <polacek@redhat.com>
16532 * doc/extend.texi: Document that attribute used is meant to be used
16533 on variables with static storage duration.
16535 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16537 PR tree-optimization/58472
16538 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16539 simd_lane_access set inv_p = false.
16540 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16541 the simduid magic VAR_DECL.
16543 2013-09-19 Jan Hubicka <jh@suse.cz>
16545 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16547 2013-09-17 Jeff Law <law@redhat.com>
16549 * tree-ssa-dom.c (record_temporary_equivalences): New function
16550 split out of dom_opt_dom_walker::after_dom_children.
16551 (dom_opt_dom_walker::thread_across_edge): Move common code
16552 in here from dom_opt_dom_walker::after_dom_children.
16553 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16555 2013-09-19 Jan Hubicka <jh@suse.cz>
16557 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16558 (TARGET_GENERIC): Use PROCESOR_GENERIC
16559 (enum processor_type): Unify generic32 and 64.
16560 * i386.md (cpu): Likewise.
16561 * x86-tune.def (use_leave): Enable for generic32.
16562 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16563 * athlon.md: Change generic64 to generic in all occurences.
16564 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16565 (ix86_target_macros_internal): Likewise.
16566 * driver-i386.c (host_detect_local_cpu): Likewise.
16567 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16569 (generic_memcpy, generic_memset, generic_cost): This one.
16570 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16571 (m_GENERIC32, m_GENERIC64): Remove.
16572 (m_GENERIC): Turn into one flag.
16573 (processor_target): Unify generic tunnings.
16574 (ix86_option_override_internal): Replace generic32/64 by generic.
16575 (ix86_issue_rate): Likewise.
16576 (ix86_adjust_cost): Likewise.
16578 2013-09-19 Jan Hubicka <jh@suse.cz>
16580 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16581 of speculative flag.
16583 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16585 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16586 GOMP_sections_start, even if !exit_reachable.
16588 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16590 * lra-constraints.c (need_for_all_save_p): Use macro
16591 HARD_REGNO_CALL_PART_CLOBBERED.
16592 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16593 set up pseudo conflict hard regs.
16595 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16598 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16601 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16603 PR rtl-optimization/58438
16604 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16605 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16606 from previous subpasses.
16608 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16610 * arm.c (arm_get_frame_offsets): Validate architecture supports
16611 LDRD/STRD before accepting the tuning preference.
16612 (arm_expand_prologue): Likewise.
16613 (arm_expand_epilogue): Likewise.
16615 2013-09-18 Richard Biener <rguenther@suse.de>
16617 PR tree-optimization/58417
16618 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16619 have chrecs with symbols defined in the loop as operands.
16620 (chrec_fold_multiply): Likewise.
16621 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16622 parameters before folding binary operations.
16623 (struct instantiate_cache_entry_hasher): Remove.
16624 (struct instantiate_cache_type): Use a pointer-map.
16625 (instantiate_cache_type::instantiate_cache_type): New function.
16626 (instantiate_cache_type::get): Likewise.
16627 (instantiate_cache_type::set): Likewise.
16628 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16629 (get_instantiated_value_entry): Likewise.
16630 (global_cache): New global.
16631 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16632 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16633 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16634 (instantiate_scev_name): Adjust.
16635 (instantiate_scev): Construct global instead of local cache.
16636 (resolve_mixers): Likewise.
16638 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16639 Paolo Carlini <paolo.carlini@oracle.com>
16642 * doc/implement-cxx.texi: Fix references to the C++ standards.
16644 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16646 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16647 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16648 simd_lane_access drs, update also DR_ALIGNED_TO.
16650 2013-09-18 Marek Polacek <polacek@redhat.com>
16653 * doc/extend.texi: Document no_sanitize_undefined attribute.
16654 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16655 no_sanitize_undefined attribute.
16657 2013-09-18 Nick Clifton <nickc@redhat.com>
16659 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16660 (ASM_DECLARE_FUNCTION_NAME): Define.
16662 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16664 * compare-elim.c (find_comparison_dom_walker): New class
16665 (find_comparisons_in_bb): Rename to
16666 find_comparison_dom_walker::before_dom_children
16667 (find_comparisons): Adjust
16668 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16670 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16671 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16672 (init_walk_dominator_tree): Remove declaration.
16673 (fini_walk_dominator_tree): Remove declaration.
16674 * fwprop.c (single_def_use_dom_walker): New class
16675 (single_def_use_enter_block): Convert to
16676 single_def_use_dom_walker::before_dom_children.
16677 (single_def_use_leave_block): Convert to
16678 single_def_use_dom_walker::after_dom_children.
16679 (build_single_def_use_links): Adjust.
16680 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16682 (find_candidates_in_block): Convert to
16683 find_candidates_dom_walker::before_dom_children.
16684 (execute_strength_reduction): Adjust.
16685 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16686 (sese_dom_walker): New class.
16687 (sese_dom_walker::sese_dom_walker): New constructor.
16688 (sese_dom_walker::~sese_dom_walker): New destructor.
16689 (build_sese_conditions_before): Convert to
16690 sese_dom_walker::before_dom_children.
16691 (build_sese_conditions_after): Convert to
16692 sese_dom_walker::after_dom_children.
16693 (build_poly_scop): Adjust
16694 * tree-into-ssa.c (rewrite_dom_walker): New class
16695 (rewrite_enter_block): Convert to
16696 rewrite_dom_walker::before_dom_children.
16697 (rewrite_leave_block): Convert to
16698 rewrite_dom_walker::after_dom_children.
16699 (rewrite_update_dom_walker): New class.
16700 (rewrite_update_enter_block): Convert to
16701 rewrite_update_dom_walker::before_dom_children.
16702 (rewrite_update_leave_block): Convert to
16703 rewrite_update_dom_walker::after_dom_children.
16704 (rewrite_blocks, rewrite_into_ssa): Adjust.
16705 (mark_def_dom_walker): New class.
16706 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16707 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16708 (mark_def_sites_blocks): Convert to
16709 mark_def_dom_walker::before_dom_children.
16710 (mark_def_site_blocks): Remove.
16711 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16712 (tree_ssa_dominator_optimize): Adjust.
16713 (dom_thread_across_edge): Convert to method
16714 dom_opt_dom_walker::thread_across_edge.
16715 (dom_opt_enter_block): Convert to member function
16716 dom_opt_dom_walker::before_dom_children.
16717 (dom_opt_leave_block): Convert to member function
16718 dom_opt_dom_walker::after_dom_children.
16719 * tree-ssa-dse.c (dse_dom_walker): New class.
16720 (dse_enter_block): Convert to member function
16721 dse_dom_walker::before_dom_children.
16722 (tree_ssa_dse): Adjust.
16723 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16724 (determine_invariantness_stmt): Convert to method
16725 invariantness_dom_walker::before_dom_children.
16726 (determine_invariantness): Remove
16727 (move_computations_dom_walker): New class.
16728 (move_computations_stmt): Convert to method
16729 move_computations_dom_walker::before_dom_children.
16730 (move_computations, tree_ssa_lim): Adjust.
16731 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16732 (nt_init_block): Convert to method
16733 notrappping_dom_walker::before_dom_children.
16734 (nt_fini_block): Convert to method
16735 method nontrapping_dom_walker::after_dom_children.
16736 (get_non_trapping): Adjust.
16737 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16738 (eliminate_bb): Convert to method
16739 eliminate_dom_walker::before_dom_children.
16740 (eliminate_leave_block): Convert to method
16741 eliminate_dom_walker::after_dom_children.
16742 (eliminate): Adjust.
16743 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16744 (strlen_enter_block): Convert to method
16745 strlen_dom_walker::before_dom_children.
16746 (strlen_leave_block): Convert to method
16747 method strlen_dom_walker::after_dom_children.
16748 (tree_ssa_strlen): Adjust.
16749 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16750 (tree_ssa_uncprop): Adjust.
16751 (uncprop_leave_block): Convert to method
16752 uncprop_dom_walker::after_dom_children.
16753 (uncprop_leave_block): Convert to method
16754 uncprop_dom_walker::before_dom_children.
16756 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16758 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16759 branch in same basic block. Check both src and dest of the move insn.
16761 2013-09-17 Nick Clifton <nickc@redhat.com>
16763 * config/rl78/rl78-real.md (bf): New pattern.
16765 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16766 (rl78_print_operand): Do not put a # before a %B.
16767 * config/rl78/rl78.opt: Tweak doc strings.
16769 2013-09-17 DJ Delorie <dj@redhat.com>
16771 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16772 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16773 (rl78_option_override): Likewise, if -mallregs.
16774 (is_virtual_register): Likewise.
16775 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16776 (REGNO_OK_FOR_BASE_P): Likewise.
16777 * config/rl78/rl78.opt (-mallregs): New.
16779 2013-09-17 Nick Clifton <nickc@redhat.com>
16781 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16782 For interrupt functions: save all call clobbered registers if the
16783 interrupt handler is not a leaf function.
16784 (rl78_expand_prologue): Always recompute the frame information.
16785 For interrupt functions: only select bank 0 if one of the bank 0
16786 registers is going to be psuhed.
16788 2013-09-17 DJ Delorie <dj@redhat.com>
16790 * config/rl78/constraints.md: For each W* constraint, rename to C*
16791 and create a W* constraint that checks for an optional ES: prefix
16793 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16794 (es_addr): New. Used to wrap far addresses.
16795 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16796 (rl78_es_base): New.
16797 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16798 wrapped far addresses.
16799 (rl78_print_operand_1): Unwrap far addresses before processing.
16800 (rl78_lo16): Wrap far addresses in unspecs.
16801 (rl78_es_addr): New.
16802 (rl78_es_base): New.
16803 (insn_ok_now): Check for not-yet-wrapped far addresses.
16804 (transcode_memory_rtx): Properly re-wrap far addresses.
16806 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16808 * config/sparc/t-rtems: Add leon3 multilibs.
16810 2013-09-17 Cong Hou <congh@google.com>
16812 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16813 when checking the dot production pattern. The type of rhs operand
16814 of multiply is now checked correctly.
16816 2013-09-17 Jeff Law <law@redhat.com>
16818 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16819 edge implied equivalences into successor phis.
16820 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16821 here from tree-ssa-threadedge.c.
16822 (mark_threaded_blocks): When threading through a joiner, if both
16823 successors of the joiner's clone reach the same block, verify the
16824 PHI arguments are equal. If not, cancel the jump threading request.
16825 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16826 tree-ssa-threadupdate.c
16827 (thread_across_edge): Don't check PHI argument equality when
16828 threading through joiner block here.
16830 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16832 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16833 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16834 (warn_uninit, warn_uninitialized_vars,
16835 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16836 Move to tree-ssa-uninit.c.
16837 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16838 (has_undefined_value_p): New. Pass dependant parts of
16839 ssa_undefined_value_p.
16840 (uninit_undefined_value_p): Use has_undefined_value_p.
16841 (warn_uninit, warn_uninitialized_vars,
16842 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16843 Move from tree-ssa.c.
16844 * tree-ssa.h: Adjust prototypes.
16846 2013-09-17 Jan Hubicka <jh@suse.cz>
16848 PR middle-end/58332
16849 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16850 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16851 FUNCTION_NOT_OPTIMIZED.
16852 * ipa-inline-analysis.c (compute_inline_parameters): Function
16853 not optimized is not inlinable unless it is alwaysinline.
16854 (inline_analyze_function): Force calls in not optimized
16855 function not inlinable.
16857 2013-09-17 Jan Hubicka <jh@suse.cz>
16859 PR middle-end/58329
16860 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16862 * ipa.c (function_and_variable_visibility): Likewise.
16863 * ipa-profile.c (ipa_profile): Likewise.
16865 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16868 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16869 attribute, and don't inline the resolver in this case.
16871 2013-09-17 Teresa Johnson <tejohnson@google.com>
16873 * coverage.c (get_coverage_counts): Add missing newline.
16875 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16877 PR tree-optimization/58088
16878 * fold-const.c (mask_with_trailing_zeros): New function.
16879 (fold_binary_loc): Make sure we don't recurse infinitely
16880 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16881 Use mask_with_trailing_zeros where appropriate.
16883 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16885 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16886 of 'prev' var to get better distance estimation.
16888 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16890 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16891 * tree-inline.c (is_parameter_of): New predicate.
16892 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16893 a parameter has been remapped.
16894 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16895 (optimize_inline_calls): Initialize transform_parameter.
16896 (copy_gimple_seq_and_replace_locals): Likewise.
16897 (tree_function_versioning): Likewise.
16898 (maybe_inline_call_in_expr): Likewise.
16900 2013-09-17 Nick Clifton <nickc@redhat.com>
16902 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16903 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16904 interrupt handlers.
16905 (is_attr_func): New function.
16906 (msp430_is_interrupt_func): New function.
16907 (is_naked_func): New function.
16908 (is_reentrant_func): New function.
16909 (is_critical_func): New function.
16910 (msp430_start_function): Add annotations for function attributes.
16911 (msp430_attr): New function.
16912 (msp430_attribute_table): New.
16913 (msp430_function_section): New function.
16914 (TARGET_ASM_FUNCTION_SECTION): Define.
16915 (msp430_builtin): New enum.
16916 (msp430_init_builtins): New function.
16917 (msp430_builtin_devl): New function.
16918 (msp430_expand_builtin): New function.
16919 (TARGET_INIT_BUILTINS): Define.
16920 (TARGET_EXPAND_BUILTINS): Define.
16921 (TARGET_BUILTIN_DECL): Define.
16922 (msp430_expand_prologue): Add support for naked, interrupt,
16923 critical and reentrant functions.
16924 (msp430_expand_epilogue): Likewise.
16925 (msp430_print_operand): Handle 'O' character.
16926 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16928 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16929 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16930 (pushm): Use a 'n' rather than an 'i' constraint.
16931 (msp_return): Add generation of the interrupt return instruction.
16932 (disable_interrupts): New pattern.
16933 (enable_interrupts): New pattern.
16934 (push_intr_state): New pattern.
16935 (pop_intr_state): New pattern.
16936 (bic_SR): New pattern.
16937 (bis_SR): New pattern.
16938 * doc/extend.texi: Document MSP430 function attributes and builtin
16941 2013-09-17 Richard Biener <rguenther@suse.de>
16943 PR tree-optimization/58432
16944 * tree-loop-distribution.c (tree_loop_distribution): Also
16945 scan PHIs for outside loop uses and seed a partition from them.
16947 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16949 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16950 (restructure_reference): Call backtrace_base_for_ref.
16952 2013-09-17 Alan Modra <amodra@gmail.com>
16955 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16958 2013-09-16 DJ Delorie <dj@redhat.com>
16960 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16961 vregs location for RL78/G10.
16962 (rl78_expand_prologue): Avoid SEL on G10.
16963 (rl78_expand_epilogue): Likewise.
16964 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16965 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16966 __RL78_G10__ when appropriate.
16967 (ASM_SPEC): Pass -mg10 along to the assembler.
16968 * config/rl78/rl78.md (sel_rb): Disable for G10.
16969 * config/rl78/rl78.opt: Add -mg10 option.
16970 * config/rl78/t-rl78: Add -mg10 multilib.
16972 2013-09-16 Xinliang David Li <davidxl@google.com>
16974 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16975 * omp-low.c (omp_max_vf): Ditto.
16976 (expand_omp_simd): Ditto.
16977 * tree-vectorizer.c (vectorize_loops): Ditto.
16978 (gate_vect_slp): Ditto.
16979 (gate_increase_alignment): Ditto.
16980 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16981 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16982 (gate_tree_vectorize): Name change.
16983 (tree_vectorize): Ditto.
16984 (pass_vectorize::gate): Call new function.
16985 (pass_vectorize::execute): Ditto.
16986 * opts.c: O3 default setting change.
16987 (finish_options): Check new flag.
16988 * doc/invoke.texi: Document new flags.
16989 * common.opt: New flags.
16991 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16993 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16994 (Condition Code): Don't reference it.
16995 * doc/tm.texi: Regenerate.
16997 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16999 PR middle-end/58418
17000 * lra-constraints.c (undo_optional_reloads): Consider all optional
17001 reload even if it did not get a hard reg.
17003 2013-09-16 Teresa Johnson <tejohnson@google.com>
17005 * dumpfile.c (dump_loc): Remove newline emission.
17006 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17007 emission to dump_printf_loc calls where missing.
17008 (vect_mark_for_runtime_alias_test): Ditto.
17009 (vect_analyze_data_ref_dependence): Ditto.
17010 (vect_analyze_data_ref_dependences): Ditto.
17011 (vect_slp_analyze_data_ref_dependence): Ditto.
17012 (vect_slp_analyze_data_ref_dependences): Ditto.
17013 (vect_compute_data_ref_alignment): Ditto.
17014 (vect_update_misalignment_for_peel): Ditto.
17015 (vect_verify_datarefs_alignment): Ditto.
17016 (vector_alignment_reachable_p): Ditto.
17017 (vect_get_data_access_cost): Ditto.
17018 (vect_enhance_data_refs_alignment): Ditto.
17019 (vect_find_same_alignment_drs): Ditto.
17020 (vect_analyze_data_refs_alignment): Ditto.
17021 (vect_analyze_group_access): Ditto.
17022 (vect_analyze_data_ref_access): Ditto.
17023 (vect_analyze_data_ref_accesses): Ditto.
17024 (vect_prune_runtime_alias_test_list): Ditto.
17025 (vect_analyze_data_refs): Ditto.
17026 (vect_create_addr_base_for_vector_ref): Ditto.
17027 (vect_create_data_ref_ptr): Ditto.
17028 (vect_grouped_store_supported): Ditto.
17029 (vect_grouped_load_supported): Ditto.
17030 * value-prof.c (check_counter): Ditto.
17031 (check_ic_target): Ditto.
17032 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17033 (vect_recog_widen_mult_pattern): Ditto.
17034 (vect_recog_widen_sum_pattern): Ditto.
17035 (vect_recog_over_widening_pattern): Ditto.
17036 (vect_recog_widen_shift_pattern): Ditto.
17037 (vect_recog_rotate_pattern): Ditto.
17038 (vect_recog_vector_vector_shift_pattern): Ditto.
17039 (vect_recog_divmod_pattern): Ditto.
17040 (vect_recog_mixed_size_cond_pattern): Ditto.
17041 (vect_recog_bool_pattern): Ditto.
17042 (vect_pattern_recog_1): Ditto.
17043 (vect_pattern_recog): Ditto.
17044 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17045 (vect_is_simple_iv_evolution): Ditto.
17046 (vect_analyze_scalar_cycles_1): Ditto.
17047 (vect_get_loop_niters): Ditto.
17048 (vect_analyze_loop_1): Ditto.
17049 (vect_analyze_loop_form): Ditto.
17050 (vect_analyze_loop_operations): Ditto.
17051 (vect_analyze_loop_2): Ditto.
17052 (vect_analyze_loop): Ditto.
17053 (report_vect_op): Ditto.
17054 (vect_is_slp_reduction): Ditto.
17055 (vect_is_simple_reduction_1): Ditto.
17056 (vect_get_known_peeling_cost): Ditto.
17057 (vect_estimate_min_profitable_iters): Ditto.
17058 (vect_model_reduction_cost): Ditto.
17059 (vect_model_induction_cost): Ditto.
17060 (get_initial_def_for_induction): Ditto.
17061 (vect_create_epilog_for_reduction): Ditto.
17062 (vectorizable_reduction): Ditto.
17063 (vectorizable_induction): Ditto.
17064 (vectorizable_live_operation): Ditto.
17065 (vect_loop_kill_debug_uses): Ditto.
17066 (vect_transform_loop): Ditto.
17067 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17068 (vect_stmt_relevant_p): Ditto.
17069 (process_use): Ditto.
17070 (vect_mark_stmts_to_be_vectorized): Ditto.
17071 (vect_model_simple_cost): Ditto.
17072 (vect_model_promotion_demotion_cost): Ditto.
17073 (vect_model_store_cost): Ditto.
17074 (vect_get_store_cost): Ditto.
17075 (vect_model_load_cost): Ditto.
17076 (vect_get_load_cost): Ditto.
17077 (vect_init_vector_1): Ditto.
17078 (vect_get_vec_def_for_operand): Ditto.
17079 (vect_finish_stmt_generation): Ditto.
17080 (vectorizable_call): Ditto.
17081 (vectorizable_conversion): Ditto.
17082 (vectorizable_assignment): Ditto.
17083 (vectorizable_shift): Ditto.
17084 (vectorizable_operation): Ditto.
17085 (vectorizable_store): Ditto.
17086 (vectorizable_load): Ditto.
17087 (vectorizable_condition): Ditto.
17088 (vect_analyze_stmt): Ditto.
17089 (vect_transform_stmt): Ditto.
17090 (vect_is_simple_use): Ditto.
17091 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17092 (vect_can_advance_ivs_p): Ditto.
17093 (vect_update_ivs_after_vectorizer): Ditto.
17094 (vect_do_peeling_for_loop_bound): Ditto.
17095 (vect_gen_niters_for_prolog_loop): Ditto.
17096 (vect_update_inits_of_drs): Ditto.
17097 (vect_create_cond_for_alias_checks): Ditto.
17098 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17099 (vect_build_slp_tree_1): Ditto.
17100 (vect_supported_load_permutation_p): Ditto.
17101 (vect_analyze_slp_instance): Ditto.
17102 (vect_analyze_slp): Ditto.
17103 (vect_make_slp_decision): Ditto.
17104 (vect_detect_hybrid_slp): Ditto.
17105 (vect_bb_vectorization_profitable_p): Ditto.
17106 (vect_slp_analyze_bb_1): Ditto.
17107 (vect_update_slp_costs_according_to_vf): Ditto.
17108 (vect_get_mask_element): Ditto.
17109 (vect_transform_slp_perm_load): Ditto.
17110 (vect_schedule_slp_instance): Ditto.
17111 (vect_schedule_slp): Ditto.
17112 (vect_slp_transform_bb): Ditto.
17113 * profile.c (read_profile_edge_counts): Ditto.
17114 (compute_branch_probabilities): Ditto.
17115 * coverage.c (get_coverage_counts): Ditto.
17117 2013-09-16 Diego Novillo <dnovillo@google.com>
17119 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17121 2013-09-16 Jan Hubicka <jh@suse.cz>
17123 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17124 abstract functions; for static functions check the presence of body.
17126 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17128 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17129 * config/aarch64/aarch64-simd.md
17130 (aarch64_mla_elt<mode>): New.
17131 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17132 (aarch64_mls_elt<mode>): Likewise.
17133 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17134 (aarch64_fma4_elt<mode>): Likewise.
17135 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17136 (aarch64_fma4_elt_to_128v2df): Likewise.
17137 (aarch64_fma4_elt_to_64df): Likewise.
17138 (fnma<mode>4): Likewise.
17139 (aarch64_fnma4_elt<mode>): Likewise.
17140 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17141 (aarch64_fnma4_elt_to_128v2df): Likewise.
17142 (aarch64_fnma4_elt_to_64df): Likewise.
17143 * config/aarch64/iterators.md (VDQSF): New.
17144 * config/aarch64/arm_neon.h
17145 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17146 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17148 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17150 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17151 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17152 (aarch64_mul3_elt_to_128df): Likewise.
17153 (aarch64_mul3_elt_to_64v2df): Likewise.
17154 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17156 (VMUL_CHANGE_NLANES) Likewise.
17159 * config/aarch64/arm_neon.h
17160 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17162 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17164 * config/aarch64/arm_neon.h
17165 (vcvtx_high_f32_f64): Fix parameters.
17167 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17168 Uros Bizjak <ubizjak@gmail.com>
17170 * config/alpha.c: Include tree-ssanames.h.
17172 2013-09-16 Richard Biener <rguenther@suse.de>
17174 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17175 (dot_rdg_1): Handle control_dd.
17176 (create_edge_for_control_dependence): New function.
17177 (create_rdg_edges): Add control dependences if asked for.
17178 (build_rdg): Likewise.
17179 (generate_loops_for_partition): If there are not necessary
17180 control stmts remove all their dependencies.
17181 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17182 (distribute_loop): Pass on control dependences.
17183 (tree_loop_distribution): Compute control dependences and remove
17184 restriction on number of loop nodes.
17186 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17188 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17189 for internal calls.
17191 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17193 * cse.c (try_const_anchors): Punt on CC modes.
17195 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17197 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17199 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17202 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17203 calls to word_mode.
17205 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17208 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17210 (darwin_objc1_section): Likewise.
17211 (darwin_file_end): Emit Image Info section when required.
17213 2013-09-14 Jan Hubicka <jh@suse.cz>
17215 * tree-into-ssa.c (gate_into_ssa): New.
17216 (pass_data_build_ssa): Use it.
17217 * cgraph.h (expand_thunk): Update prototype.
17218 * cgraphunit.c (analyze_function): Expand thunks early.
17219 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17220 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17221 set lowered flag; do not add new function.
17222 (assemble_thunks_and_aliases): Update.
17223 * tree-ssa.c (gate_init_datastructures): New gate.
17224 (pass_data_init_datastructures): Use it.
17226 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17229 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17230 xmm register set described in the psABI.
17232 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17234 * dwarf2out.c (should_emit_struct_debug): Add check
17235 for type_decl variable is not NULL.
17237 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17239 * config.gcc: Use new winnt-c.c target hooks
17240 * config/t-winnt: New file
17241 * config/winnt-c.c: New file
17242 * doc/tm.texi.in: Document new hook
17243 * doc/tm.texi: Regenerated
17245 2013-09-13 Jan Hubicka <jh@suse.cz>
17247 PR middle-end/58094
17248 * ipa-inline.c (check_callers): New function.
17249 (check_caller_edge): Remove.
17250 (want_inline_function_to_all_callers_p): Also permit alises that are
17252 (inline_to_all_callers): Terminate the walk when devirtualization
17253 introduce new calls.
17255 2013-09-13 Jan Hubicka <jh@suse.cz>
17257 * ipa-inline-analysis.c (struct growth_data): Add node.
17258 (do_estimate_growth_1): Fix detection of recursion.
17260 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17262 PR tree-optimization/58392
17263 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17264 to avoid shadowing of outer loop variable. If
17265 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17266 replace_by_duplicate_decl simduid of loops that have it set and
17267 set dest_cfun->has_simduid_loops and/or
17268 dest_cfun->has_force_vect_loops.
17269 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17270 instead of maybe_lookup_decl.
17271 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17272 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17273 call. Copy over force_vect and copy and remap simduid. Set
17274 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17275 (copy_cfg_body): Remove blocks_to_copy argument. Use
17276 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17277 caller. Don't set cfun->has_simduid_loops and/or
17278 cfun->has_force_vect_loops here.
17279 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17281 (expand_call_inline, tree_function_versioning): Adjust copy_body
17284 2013-09-13 Martin Jambor <mjambor@suse.cz>
17287 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17288 the assert if the edge was a speculative one.
17290 2013-09-13 Richard Biener <rguenther@suse.de>
17292 * tree-data-ref.h (known_dependences_p): Move here ...
17293 * tree-loop-distribution.c (known_dependences_p): ... from here.
17294 (dump_rdg_component, debug_rdg_component): Remove.
17295 (dump_rdg): Adjust.
17296 (generate_loops_for_partition): Use gimple_uid instead of
17297 relying on matching stmt visit order.
17298 (rdg_build_partitions): Take starting stmt vector.
17299 (ldist_gen): Merge into ...
17300 (distribute_loop): ... this function. Do not compute starting
17302 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17304 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17306 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17307 Set type attribute correctly. Set predicable_short_it attribute.
17308 (cmpsi_shiftsi): Remove %? from output template.
17310 2013-09-13 Richard Biener <rguenther@suse.de>
17312 * tree-loop-distribution.c (struct rdg_component,
17313 rdg_defs_used_in_other_loops_p, free_rdg_components,
17314 rdg_build_components): Remove.
17315 (stmts_from_loop): Do not record virtual PHIs.
17316 (generate_loops_for_partition): Skip virtual PHIs.
17317 (build_rdg_partition_for_component): Rename to ...
17318 (build_rdg_partition_for_vertex): ... this and adjust.
17319 (rdg_build_partitions): Take a vector of starting vertices
17320 instead of components. Remove unnecessary leftover handling.
17321 (ldist_gen): Do not build components or record other stores.
17322 (distribute_loop): Do not distribute loops containing stmts
17325 2013-09-13 Christian Bruel <christian.bruel@st.com>
17328 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17330 2013-09-13 Kai Tietz <ktietz@redhat.com>
17332 * config.gcc: Separate cases for mingw and cygwin targets,
17333 and add 64-bit cygwin target case.
17335 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17336 dll-export inline-functions.
17337 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17339 2013-09-13 Jeff Law <law@redhat.com>
17341 PR middle-end/58387
17343 2013-09-06 Jeff Law <law@redhat.com>
17345 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17346 edge implied equivalences into successor phis.
17348 2013-09-12 DJ Delorie <dj@redhat.com>
17350 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17353 2013-09-12 Brooks Moses <bmoses@google.com>
17356 * Makefile.in: Do not install driver binaries in $(target)/bin.
17358 2013-09-12 DJ Delorie <dj@redhat.com>
17360 * config/rl78/rl78.opt (mrelax): New.
17361 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17362 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17364 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17366 (rl78_expand_epilogue): Likewise.
17368 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17370 PR middle-end/58335
17371 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17372 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17373 pointer elimination with using remove_reg_equal_offset_note.
17375 2013-09-12 DJ Delorie <dj@redhat.com>
17377 * config/msp430/: New port.
17378 * config.gcc (msp430): Added.
17379 * doc/invoke.texi: Document MSP430 options.
17380 * doc/install.texi: Document msp430-elf
17381 * doc/md.texi: Document msp430-elf
17382 * doc/contrib.texi: Document msp430-elf
17384 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17387 2013-09-12 Martin Jambor <mjambor@suse.cz>
17390 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17391 reference descriptor is NULL.
17392 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17395 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17397 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17398 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17399 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17400 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17401 make_temp_ssa_name): move to tree-ssanames.h
17402 * tree-ssa-alias.h: Move prototype.
17403 * tree-ssa.h: Include tree-ssanames.h.
17404 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17405 * tree-ssanames.h: New. Move items from tree-flow*.h
17406 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17408 2013-09-12 Richard Biener <rguenther@suse.de>
17410 PR tree-optimization/58404
17411 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17412 propagate non-invariant addresses into dereferences wrapped
17413 in component references.
17415 2013-09-12 Richard Biener <rguenther@suse.de>
17417 PR tree-optimization/58402
17418 * passes.def: Move pass_late_warn_uninitialized later.
17420 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17422 * tree-ssa.h: New. Move content from tree-flow.h and
17423 tree-flow-inline.h.
17424 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17425 Move prototypes belonging to tree-ssa.c.
17426 * tree-flow-inline.h (redirect_edge_var_map_def,
17427 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17429 * gimple.h: Adjust prototypes.
17430 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17432 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17433 * tree.h: Move prototype to tree-ssa.h.
17434 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17435 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17436 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17437 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17438 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17439 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17440 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17441 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17442 graphite-blocking.c, graphite-clast-to-gimple.c,
17443 graphite-dependences.c, graphite-interchange.c,
17444 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17445 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17446 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17447 ipa-reference.c, ipa-split.c, ipa-utils.c,
17448 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17449 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17450 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17451 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17452 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17453 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17454 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17455 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17456 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17457 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17458 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17459 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17460 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17461 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17462 value-prof.c, var-tracking.c,
17463 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17465 2013-09-12 Richard Biener <rguenther@suse.de>
17467 PR tree-optimization/58396
17468 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17469 (build_rdg): Take a loop-nest parameter, fix memleaks.
17470 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17472 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17474 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17477 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17479 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17480 The FMA instruction names should have a 'v' prefix.
17482 2013-09-12 Richard Biener <rguenther@suse.de>
17484 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17485 (dot_rdg): Use popen instead of system in optional code.
17486 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17487 (already_processed_vertex_p): Adjust.
17488 (has_anti_or_output_dependence, predecessor_has_mem_write,
17489 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17490 rdg_flag_uses): Remove.
17491 (rdg_flag_vertex): Simplify.
17492 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17494 (build_rdg_partition_for_component): Process the first vertex
17495 of a component only.
17496 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17498 2013-09-12 Alan Modra <amodra@gmail.com>
17500 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17502 2013-09-11 DJ Delorie <dj@redhat.com>
17503 Nick Clifton <nickc@redhat.com>
17505 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17506 (rl78_stack_based_mem): New.
17507 * config/rl78/constraints.md (Iv08): New.
17516 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17518 (movsi): Change from expand to insn-and-split.
17519 (ashrsi3): Clobber AX.
17523 * config/rl78/rl78.md (CC_REG): Fix.
17524 (addsi3): Allow memory and immediate operands.
17525 (addsi3_internal): Split into...
17526 (addsi3_internal_virt): ...new, and ...
17527 (addsi3_internal_real): ...new.
17529 (subsi3_internal_virt): New.
17530 (subsi3_internal_real): New.
17531 (mulsi3): Add memory operand.
17532 (mulsi3_rl78): Likewise.
17533 (mulsi3_g13): Likewise.
17534 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17535 (cbranchqi4_real): Add more constraint options.
17536 (cbranchhi4_real): Expand pattern.
17537 (cbranchhi4_real_signed): New.
17538 (cbranchhi4_real_inverted): New.
17539 (cbranchsi4_real_lt): New.
17540 (cbranchsi4_real_ge): New.
17541 (cbranchsi4_real_signed): New.
17542 (cbranchsi4_real): New.
17544 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17546 (lshrsi3_virt): Likewise.
17547 (ashlsi3_virt): Likewise.
17548 (cbranchqi4_virt_signed): New.
17549 (cbranchhi4_virt_signed): New.
17550 (cbranchsi4_virt): New.
17551 * config/rl78/rl78.c: Whitespace fixes throughout.
17552 (move_elim_pass): New.
17553 (pass_data_rl78_move_elim): New.
17554 (pass_rl78_move_elim): New.
17555 (make_pass_rl78_move_elim): New.
17556 (rl78_devirt_info): Run devirt earlier.
17557 (rl78_move_elim_info): New.
17558 (rl78_asm_file_start): Register it.
17559 (rl78_split_movsi): New.
17560 (rl78_as_legitimate_address): Allow virtual base registers when
17562 (rl78_addr_space_convert): Remove spurious debug stuff.
17563 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17564 (rl78_print_operand): More cases for not printing '#'.
17565 (rl78_expand_compare): Remove most of the logic.
17566 (content_memory): New.
17567 (clear_content_memory): New.
17568 (get_content_index): New.
17569 (get_content_name): New.
17570 (display_content_memory): New.
17571 (update_content): New.
17572 (record_content): New.
17573 (already_contains): New.
17574 (insn_ok_now): Re-recog insns with virtual registers.
17575 (add_postponed_content_update): New.
17576 (process_postponed_content_update): New.
17577 (gen_and_emit_move): New.
17578 (transcode_memory_rtx): Record new location content.
17579 Use gen_and_emit_move.
17580 (force_into_acc): New.
17581 (move_to_acc): Use gen_and_emit_move.
17582 (move_from_acc): Likewise.
17583 (move_acc_to_reg): Likewise.
17584 (move_to_x): Likewise.
17585 (move_to_hl): Likewise.
17586 (move_to_de): Likewise.
17587 (rl78_alloc_physical_registers_op1): Record location content.
17588 (has_constraint): New.
17589 (rl78_alloc_physical_registers_op2): Record location content.
17590 Optimize use of HL.
17591 (rl78_alloc_physical_registers_ro1): Likewise.
17592 (rl78_alloc_physical_registers_cmp): Likewise.
17593 (rl78_alloc_physical_registers_umul): Likewise.
17594 (rl78_alloc_address_registers_macax): New.
17595 (rl78_alloc_physical_registers): Initialize and set location
17596 content memory as needed.
17597 (rl78_reorg): Make sure split2 is called.
17598 (rl78_rtx_costs): New.
17600 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17602 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17603 for (not (neg ...)) and (neg (not ...)) cases.
17605 2013-09-11 Richard Biener <rguenther@suse.de>
17607 PR middle-end/58377
17608 * passes.def: Split critical edges before late uninit warning passes.
17609 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17611 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17613 PR tree-optimization/58385
17614 * fold-const.c (build_range_check): If both low and high are NULL,
17615 use omit_one_operand_loc to preserve exp side-effects.
17617 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17619 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17621 2013-09-11 Richard Biener <rguenther@suse.de>
17623 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17624 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17625 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17626 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17627 stmts_from_loop, known_dependences_p, build_empty_rdg,
17628 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17629 * tree-loop-distribution.c: ... here.
17630 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17631 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17632 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17633 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17634 * tree-loop-distribution.c: ... here.
17635 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17636 (struct partition_s): Add loops member.
17637 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17638 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17639 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17641 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17642 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17643 Sergey Lega <sergey.s.lega@intel.com>
17644 Anna Tikhonova <anna.tikhonova@intel.com>
17645 Ilya Tocar <ilya.tocar@intel.com>
17646 Andrey Turetskiy <andrey.turetskiy@intel.com>
17647 Ilya Verbin <ilya.verbin@intel.com>
17648 Kirill Yukhin <kirill.yukhin@intel.com>
17649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17651 * config/i386/constraints.md (k): New.
17653 * config/i386/i386.c (const regclass_map): Add new mask registers.
17654 (dbx_register_map): Ditto.
17655 (dbx64_register_map): Ditto.
17656 (svr4_dbx_register_map): Ditto.
17657 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17659 (ix86_preferred_reload_class): Disable constants for mask registers.
17660 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17661 (ix86_hard_regno_mode_ok): Support new mask registers.
17662 (x86_order_regs_for_local_alloc): Ditto.
17663 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17664 (FIXED_REGISTERS): Add new mask registers.
17665 (CALL_USED_REGISTERS): Ditto.
17666 (REG_ALLOC_ORDER): Ditto.
17667 (VALID_MASK_REG_MODE): New.
17668 (FIRST_MASK_REG): Ditto.
17669 (LAST_MASK_REG): Ditto.
17670 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17671 (MAYBE_MASK_CLASS_P): New.
17672 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17673 (REG_CLASS_CONTENTS): Ditto.
17674 (MASK_REGNO_P): New.
17675 (ANY_MASK_REG_P): Ditto.
17676 (HI_REGISTER_NAMES): Add new mask registers.
17677 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17678 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17680 (attribute "type"): Add mskmov, msklog.
17681 (attribute "length_immediate"): Support them.
17682 (attribute "memory"): Ditto.
17683 (attribute "prefix_0f"): Ditto.
17684 (*movhi_internal): Support new mask registers.
17685 (*movqi_internal): Ditto.
17686 (define_split): Split out clobber pattern is a logic
17687 insn on mask registers.
17688 (*k<logic><mode>): New.
17689 (*andhi_1): Extend to support mask regs.
17690 (*andqi_1): Extend to support mask regs.
17691 (kandn<mode>): New.
17692 (define_split): Split and-not to and and not if operands
17694 (*<code><mode>_1): Separate HI mode to new pattern...
17695 (*<code>hi_1): This.
17696 (*<code>qi_1): Extend to support mask regs.
17697 (kxnor<mode>): New.
17698 (kortestzhi): Ditto.
17699 (kortestchi): Ditto.
17701 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17702 (*one_cmplhi2_1): ...Here, now with mask registers support.
17703 (*one_cmplqi2_1): Support new mask registers.
17704 (HI/QImode arithmetics splitter): Don't split if mask registers
17706 (HI/QImode not splitter): Ditto.
17707 * config/i386/predicated.md (mask_reg_operand): New.
17708 (general_reg_operand): Ditto.
17710 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17712 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17713 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17715 2013-09-10 Jeff Law <law@redhat.com>
17717 PR tree-optimization/58380
17718 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17719 of threading through a buried loop header.
17721 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17722 return value for single successor case.
17724 2013-09-10 Jan Hubicka <jh@suse.cz>
17726 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17728 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17731 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17732 support conditional execution.
17733 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17735 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17737 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17739 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17740 Check destination too to check move insn.
17741 (undo_optional_reloads): Add check that the original peudo did not
17742 changed its allocation and the optional reload was inherited on last
17743 inheritance pass. Break loop after deciding to keep optional reload.
17744 (lra_undo_inheritance): Add check that inherited pseudo still in
17747 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17749 * config/aarch64/aarch64.md (generic_sched): New.
17750 * config/aarch64/aarch64-generic.md (load): Make conditional
17751 on generic_sched attribute.
17752 (nonload): Likewise.
17754 2013-09-10 Jan Hubicka <jh@suse.cz>
17756 * lto-cgraph.c: Include ipa-utils.h.
17757 (compute_ltrans_boundary): Also add possible targets into the boundary.
17759 2013-09-10 Jan Hubicka <jh@suse.cz>
17761 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17762 VAR_DECL of vtable rather than full expression.
17764 2013-09-10 Jan Hubicka <jh@suse.cz>
17765 Paolo Carlini <paolo.carlini@oracle.com>
17767 * cgraphunit.c (analyze_functions): Save input_location, set it
17768 to UNKNOWN_LOCATION and restore it at the end.
17770 2013-09-10 Martin Jambor <mjambor@suse.cz>
17772 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17773 represented by a thunk.
17775 2013-09-10 Jeff Law <law@redhat.com>
17777 PR tree-optimization/58343
17778 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17779 jump threading requests through loop headers buried in the middle
17780 of a jump threading path.
17782 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17783 in return value/type.
17785 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17787 PR rtl-optimization/58365
17788 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17789 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17792 2013-09-10 Richard Biener <rguenther@suse.de>
17794 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17795 * tree-data-ref.c (create_rdg_vertices): Collect all data
17796 references, signal failure to the caller, use data-ref API.
17797 (build_rdg): Compute data references only once. Maintain lifetime
17798 of data references and data dependences from within RDG.
17799 (free_rdg): Free dependence relations.
17800 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17801 inventing extra dependences.
17802 (distribute_loop): Update for RDG API changes.
17804 2013-09-10 Kai Tietz <ktietz@redhat.com>
17806 * doc/invoke.texi (fms-extensions): Document changed
17807 behavior for ms-abi targets.
17808 * config/i386/i386.c (ix86_option_override_internal):
17809 Set default value of option -fms-extension for ms-abi targets.
17811 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17813 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17815 2013-09-10 Alan Modra <amodra@gmail.com>
17818 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17820 2013-09-10 Alan Modra <amodra@gmail.com>
17822 * config/rs6000/predicates.md (add_cint_operand): New.
17823 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17824 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17825 using add_cint_operand.
17826 (largetoc_high_plus_aix): Likewise.
17828 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17830 PR tree-optimization/58364
17831 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17832 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17833 the current range can't be an unconditional true or false.
17835 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17837 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17839 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17841 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17843 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17846 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17848 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17850 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17851 NO_REGS for immediate that can't be moved directly into FP_REGS.
17853 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17855 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17856 comparison with negated operand.
17857 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17860 2013-09-09 Richard Biener <rguenther@suse.de>
17862 PR middle-end/58326
17863 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17864 of a subloop record all its block as affecting loop-closed SSA form.
17866 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17868 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17869 of an rtx/bitpos pair.
17870 (store_fixed_bit_field): Update accordingly.
17872 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17874 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17876 * builtins.c (expand_errno_check): Likewise.
17877 * dwarf2cfi.c (init_return_column_size): Likewise.
17878 * except.c (sjlj_mark_call_sites): Likewise.
17879 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17880 * lra-constraints.c (emit_inc): Likewise.
17881 * ree.c (combine_set_extension): Likewise.
17882 * regmove.c (fixup_match_2): Likewise.
17883 * reload1.c (inc_for_reload): Likewise.
17885 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17887 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17888 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17889 Use gen_int_mode with the mode of the associated simplify_* call.
17890 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17891 * expmed.c (expand_shift_1): Likewise.
17892 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17893 * loop-iv.c (iv_number_of_iterations): Likewise.
17894 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17895 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17897 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17899 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17900 of the associated expand_* call.
17901 (asan_emit_stack_protection): Likewise.
17902 * builtins.c (round_trampoline_addr): Likewise.
17903 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17904 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17905 (emit_store_flag): Likewise.
17906 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17907 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17909 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17910 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17911 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17912 * modulo-sched.c (generate_prolog_epilog): Likewise.
17913 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17914 (expand_ctz, expand_ffs, expand_unop): Likewise.
17916 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17918 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17919 of the associated gen_rtx_* call.
17920 * caller-save.c (init_caller_save): Likewise.
17921 * combine.c (find_split_point, make_extraction): Likewise.
17922 (make_compound_operation): Likewise.
17923 * dwarf2out.c (mem_loc_descriptor): Likewise.
17924 * explow.c (plus_constant, probe_stack_range): Likewise.
17925 * expmed.c (expand_mult_const): Likewise.
17926 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17927 * reload1.c (init_reload): Likewise.
17928 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17929 * var-tracking.c (adjust_mems): Likewise.
17930 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17931 rather than gen_rtx_fmt_ee.
17933 2013-09-09 Jan Hubicka <jh@suse.cz>
17935 PR middle-end/58294
17936 * value-prof.c (gimple_ic): Copy also abnormal edges.
17938 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17940 * asan.c (asan_shadow_cst): Use gen_int_mode.
17942 2013-09-08 Jan Hubicka <jh@suse.cz>
17944 * ipa-profile.c: Add toplevel comment.
17945 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17946 (contains_hot_call_p): New function.
17947 (ipa_propagate_frequency): Set frequencies based on counts when
17949 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17950 profile; do not tamper with profile after inlining if it is read.
17952 2013-09-08 Jan Hubicka <jh@suse.cz>
17954 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17957 2013-09-08 Jan Hubicka <jh@suse.cz>
17959 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17960 summary generation.
17962 2013-09-08 Jeff Law <law@redhat.com>
17965 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17968 2013-09-08 Andi Kleen <ak@linux.intel.com>
17970 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17972 2013-09-08 Jan Hubicka <jh@suse.cz>
17974 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17976 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17978 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17979 for non-debug insns.
17980 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17981 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17982 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17985 2013-09-08 Jan Hubicka <jh@suse.cz>
17987 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17988 targets and devirtualize to BUILT_IN_UNREACHABLE.
17989 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17990 * ipa.c (walk_polymorphic_call_targets): New function.
17991 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17992 functions; use the new timevar.
17993 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17994 was removed from the program.
17995 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17996 not consider it in the walk when its vtable is dead.
17997 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17999 (devirt_variable_node_removal_hook): New function.
18000 (possible_polymorphic_call_targets): Also register
18001 devirt_variable_node_removal_hook.
18002 (ipa_devirt): Do not do non-speculative devirtualization.
18003 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18005 2013-09-08 Jan Hubicka <jh@suse.cz>
18007 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18008 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18009 varpool_remove_variable_insertion_hook): Declare.
18010 * varpool.c (varpool_node_hook_list): New structure.
18011 (first_varpool_node_removal_hook,
18012 first_varpool_variable_insertion_hook): New variables.
18013 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18014 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18015 varpool_remove_variable_insertion_hook,
18016 varpool_call_variable_insertion_hooks): New functions.
18017 (varpool_remove_node): Use it.
18019 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18022 * diagnostic.c (diagnostic_build_prefix): When s.file is
18023 "<built-in>" don't output line and column numbers.
18025 2013-09-06 Jan Hubicka <jh@suse.cz>
18027 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18028 * lto-streamer-out.c: Stream thunks, too.
18029 * lto-streamer-in.c (input_function): Pop cfun here
18030 (lto_read_body): Instead of here.
18032 2013-09-06 Caroline Tice <cmtice@google.com>
18034 * doc/install.texi: Add documentation for the --enable-vtable-verify
18035 and the --disable-libvtv configure options.
18037 2013-09-06 Jeff Law <law@redhat.com>
18039 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18040 edge implied equivalences into successor phis.
18042 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18044 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18046 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18048 * resource.c (mark_target_live_regs): Compute resources taking
18049 into account if a call is predicated or not.
18051 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18053 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18054 the compiler in the function names.
18056 2013-09-06 Jan Hubicka <jh@suse.cz>
18058 PR middle-end/58094
18059 * ipa-inline.c (has_caller_p): New function.
18060 (want_inline_function_to_all_callers_p): Use it.
18061 (sum_callers, inline_to_all_callers): Break out from ...
18062 (ipa_inline): ... here.
18064 2013-09-06 Jan Hubicka <jh@suse.cz>
18066 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18067 only when AVX is enabled.
18069 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18071 * config/aarch64/aarch64.md
18072 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18073 is fpsimd_<load/store>2.
18074 (load_pair<mode>): Likewise.
18075 (store_pair<mode>): Likewise.
18077 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18079 * config/arm/types.md (type): Add "mrs" type.
18080 * config/aarch64/aarch64.md
18081 (aarch64_load_tp_hard): Make type "mrs".
18082 * config/arm/arm.md
18083 (load_tp_hard): Make type "mrs".
18084 * config/arm/cortex-a15.md: Update with new attributes.
18085 * config/arm/cortex-a5.md: Update with new attributes.
18086 * config/arm/cortex-a53.md: Update with new attributes.
18087 * config/arm/cortex-a7.md: Update with new attributes.
18088 * config/arm/cortex-a8.md: Update with new attributes.
18089 * config/arm/cortex-a9.md: Update with new attributes.
18090 * config/arm/cortex-m4.md: Update with new attributes.
18091 * config/arm/cortex-r4.md: Update with new attributes.
18092 * config/arm/fa526.md: Update with new attributes.
18093 * config/arm/fa606te.md: Update with new attributes.
18094 * config/arm/fa626te.md: Update with new attributes.
18095 * config/arm/fa726te.md: Update with new attributes.
18097 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18099 * config/aarch64/aarch64.md
18100 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18101 (*movtf_aarch64): Likewise.
18102 * config/arm/arm.md
18103 (thumb1_movdi_insn): Use "multiple" for type where more than one
18104 instruction is used for a move.
18105 (*arm32_movhf): Likewise.
18106 (*thumb_movdf_insn): Likewise.
18108 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18110 * config/arm/types.md (type): Rename fcpys to fmov.
18111 * config/arm/vfp.md
18112 (*arm_movsi_vfp): Rename type fcpys as fmov.
18113 (*thumb2_movsi_vfp): Likewise
18114 (*movhf_vfp_neon): Likewise
18115 (*movhf_vfp): Likewise
18116 (*movsf_vfp): Likewise
18117 (*thumb2_movsf_vfp): Likewise
18118 (*movsfcc_vfp): Likewise
18119 (*thumb2_movsfcc_vfp): Likewise
18120 * config/aarch64/aarch64-simd.md
18121 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18122 * config/aarch64/aarch64.md
18123 (*movsi_aarch64): Replace type mov_reg with fmovs.
18124 (*movdi_aarch64): Likewise
18125 (*movsf_aarch64): Likewise
18126 (*movdf_aarch64): Likewise
18128 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18129 * config/arm/iwmmxt.md
18130 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18131 * config/arm/arm1020e.md: Update with new attributes.
18132 * config/arm/cortex-a15-neon.md: Update with new attributes.
18133 * config/arm/cortex-a5.md: Update with new attributes.
18134 * config/arm/cortex-a53.md: Update with new attributes.
18135 * config/arm/cortex-a7.md: Update with new attributes.
18136 * config/arm/cortex-a8-neon.md: Update with new attributes.
18137 * config/arm/cortex-a9.md: Update with new attributes.
18138 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18139 * config/arm/cortex-r4f.md: Update with new attributes.
18140 * config/arm/marvell-pj4.md: Update with new attributes.
18141 * config/arm/vfp11.md: Update with new attributes.
18143 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18145 * config/aarch64/aarch64.md
18146 (*madd<mode>): Fix type attribute.
18147 (*maddsi_uxtw): Likewise.
18148 (*msub<mode>): Likewise.
18149 (*msubsi_uxtw): Likewise.
18150 (<su_optab>maddsidi4): Likewise.
18151 (<su_optab>msubsidi4): Likewise.
18153 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18155 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18156 * config/arm/arm.md (core_cycles): Remove fdiv.
18157 * config/arm/vfp.md:
18158 (*sqrtsf2_vfp): Update for attribute changes.
18159 (*sqrtdf2_vfp): Likewise.
18160 * config/aarch64/aarch64.md:
18161 (sqrt<mode>2): Update for attribute changes.
18162 * config/arm/arm1020e.md: Update with new attributes.
18163 * config/arm/cortex-a15-neon.md: Update with new attributes.
18164 * config/arm/cortex-a5.md: Update with new attributes.
18165 * config/arm/cortex-a53.md: Update with new attributes.
18166 * config/arm/cortex-a7.md: Update with new attributes.
18167 * config/arm/cortex-a8-neon.md: Update with new attributes.
18168 * config/arm/cortex-a9.md: Update with new attributes.
18169 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18170 * config/arm/cortex-r4f.md: Update with new attributes.
18171 * config/arm/marvell-pj4.md: Update with new attributes.
18172 * config/arm/vfp11.md: Update with new attributes.
18174 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18176 * config/arm/types.md
18177 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18178 * config/aarch64/aarch64.md
18179 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18181 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18182 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18183 (float<GPI:mode><GPF:mode>2): Likewise.
18184 * config/arm/vfp.md
18185 (*truncsisf2_vfp): Update with new attributes.
18186 (*truncsidf2_vfp): Likewise.
18187 (fixuns_truncsfsi2): Likewise.
18188 (fixuns_truncdfsi2): Likewise.
18189 (*floatsisf2_vfp): Likewise.
18190 (*floatsidf2_vfp): Likewise.
18191 (floatunssisf2): Likewise.
18192 (floatunssidf2): Likewise.
18193 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18194 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18195 * config/arm/arm1020e.md: Update with new attributes.
18196 * config/arm/cortex-a15-neon.md: Update with new attributes.
18197 * config/arm/cortex-a5.md: Update with new attributes.
18198 * config/arm/cortex-a53.md: Update with new attributes.
18199 * config/arm/cortex-a7.md: Update with new attributes.
18200 * config/arm/cortex-a8-neon.md: Update with new attributes.
18201 * config/arm/cortex-a9.md: Update with new attributes.
18202 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18203 * config/arm/cortex-r4f.md: Update with new attributes.
18204 * config/arm/marvell-pj4.md: Update with new attributes.
18205 * config/arm/vfp11.md: Update with new attributes.
18207 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18209 * config/aarch64/arm_neon.h
18210 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18211 (vqtbx<1,2,3,4><q>_s8): Likewise.
18213 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18215 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18216 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18217 (add<mode>3): Add type attribute.
18218 (add<mode>3): Likewise.
18219 (usadd<mode>3): Likewise.
18220 (ssadd<mode>3): Likewise.
18221 (sub<mode>3): Likewise.
18222 (sub<mode>3): Likewise.
18223 (ussub<mode>3): Likewise.
18224 (sssub<mode>3): Likewise.
18225 (ssmulsa3): Likewise.
18226 (usmulusa3): Likewise.
18227 (arm_usatsihi): Likewise.
18228 * config/arm/vfp.md
18229 (*movdi_vfp): Add types for all instructions.
18230 (*movdi_vfp_cortexa8): Likewise.
18231 (*movhf_vfp_neon): Likewise.
18232 (*movhf_vfp): Likewise.
18233 (*movdf_vfp): Likewise.
18234 (*thumb2_movdf_vfp): Likewise.
18235 (*thumb2_movdfcc_vfp): Likewise.
18236 * config/arm/arm.md: Add type attribute to all insn patterns.
18237 (*thumb1_adddi3): Add type attribute.
18238 (*arm_adddi3): Likewise.
18239 (*adddi_sesidi_di): Likewise.
18240 (*adddi_zesidi_di): Likewise.
18241 (*thumb1_addsi3): Likewise.
18242 (addsi3_compare0): Likewise.
18243 (*addsi3_compare0_scratch): Likewise.
18244 (*compare_negsi_si): Likewise.
18245 (cmpsi2_addneg): Likewise.
18246 (*addsi3_carryin_<optab>): Likewise.
18247 (*addsi3_carryin_alt2_<optab>): Likewise.
18248 (*addsi3_carryin_clobercc_<optab>): Likewise.
18249 (*subsi3_carryin): Likewise.
18250 (*subsi3_carryin_const): Likewise.
18251 (*subsi3_carryin_compare): Likewise.
18252 (*subsi3_carryin_compare_const): Likewise.
18253 (*arm_subdi3): Likewise.
18254 (*thumb_subdi3): Likewise.
18255 (*subdi_di_zesidi): Likewise.
18256 (*subdi_di_sesidi): Likewise.
18257 (*subdi_zesidi_di): Likewise.
18258 (*subdi_sesidi_di): Likewise.
18259 (*subdi_zesidi_ze): Likewise.
18260 (thumb1_subsi3_insn): Likewise.
18261 (*arm_subsi3_insn): Likewise.
18262 (*anddi3_insn): Likewise.
18263 (*anddi_zesidi_di): Likewise.
18264 (*anddi_sesdi_di): Likewise.
18265 (*ne_zeroextracts): Likewise.
18266 (*ne_zeroextracts): Likewise.
18267 (*ite_ne_zeroextr): Likewise.
18268 (*ite_ne_zeroextr): Likewise.
18269 (*anddi_notdi_di): Likewise.
18270 (*anddi_notzesidi): Likewise.
18271 (*anddi_notsesidi): Likewise.
18272 (andsi_notsi_si): Likewise.
18273 (thumb1_bicsi3): Likewise.
18274 (*iordi3_insn): Likewise.
18275 (*iordi_zesidi_di): Likewise.
18276 (*iordi_sesidi_di): Likewise.
18277 (*thumb1_iorsi3_insn): Likewise.
18278 (*xordi3_insn): Likewise.
18279 (*xordi_zesidi_di): Likewise.
18280 (*xordi_sesidi_di): Likewise.
18281 (*arm_xorsi3): Likewise.
18282 (*andsi_iorsi3_no): Likewise.
18283 (*smax_0): Likewise.
18284 (*smax_m1): Likewise.
18285 (*arm_smax_insn): Likewise.
18286 (*smin_0): Likewise.
18287 (*arm_smin_insn): Likewise.
18288 (*arm_umaxsi3): Likewise.
18289 (*arm_uminsi3): Likewise.
18290 (*minmax_arithsi): Likewise.
18291 (*minmax_arithsi_): Likewise.
18292 (*satsi_<SAT:code>): Likewise.
18293 (arm_ashldi3_1bit): Likewise.
18294 (arm_ashrdi3_1bit): Likewise.
18295 (arm_lshrdi3_1bit): Likewise.
18296 (*arm_negdi2): Likewise.
18297 (*thumb1_negdi2): Likewise.
18298 (*arm_negsi2): Likewise.
18299 (*thumb1_negsi2): Likewise.
18300 (*negdi_extendsid): Likewise.
18301 (*negdi_zero_extend): Likewise.
18302 (*arm_abssi2): Likewise.
18303 (*thumb1_abssi2): Likewise.
18304 (*arm_neg_abssi2): Likewise.
18305 (*thumb1_neg_abss): Likewise.
18306 (one_cmpldi2): Likewise.
18307 (extend<mode>di2): Likewise.
18308 (*compareqi_eq0): Likewise.
18309 (*arm_extendhisi2addsi): Likewise.
18310 (*arm_movdi): Likewise.
18311 (*thumb1_movdi_insn): Likewise.
18312 (*arm_movt): Likewise.
18313 (*thumb1_movsi_insn): Likewise.
18314 (pic_add_dot_plus_four): Likewise.
18315 (pic_add_dot_plus_eight): Likewise.
18316 (tls_load_dot_plus_eight): Likewise.
18317 (*thumb1_movhi_insn): Likewise.
18318 (*thumb1_movsf_insn): Likewise.
18319 (*movdf_soft_insn): Likewise.
18320 (*thumb_movdf_insn): Likewise.
18321 (cbranchsi4_insn): Likewise.
18322 (cbranchsi4_scratch): Likewise.
18323 (*negated_cbranchsi4): Likewise.
18324 (*tbit_cbranch): Likewise.
18325 (*tlobits_cbranch): Likewise.
18326 (*tstsi3_cbranch): Likewise.
18327 (*cbranchne_decr1): Likewise.
18328 (*addsi3_cbranch): Likewise.
18329 (*addsi3_cbranch_scratch): Likewise.
18330 (*arm_cmpdi_insn): Likewise.
18331 (*arm_cmpdi_unsig): Likewise.
18332 (*arm_cmpdi_zero): Likewise.
18333 (*thumb_cmpdi_zero): Likewise.
18334 (*deleted_compare): Likewise.
18335 (*mov_scc): Likewise.
18336 (*mov_negscc): Likewise.
18337 (*mov_notscc): Likewise.
18338 (*cstoresi_eq0_thumb1_insn): Likewise.
18339 (cstoresi_nltu_thumb1): Likewise.
18340 (cstoresi_ltu_thu): Likewise.
18341 (thumb1_addsi3_addgeu): Likewise.
18342 (*arm_jump): Likewise.
18343 (*thumb_jump): Likewise.
18344 (*check_arch2): Likewise.
18345 (arm_casesi_internal): Likewise.
18346 (thumb1_casesi_dispatch): Likewise.
18347 (*arm_indirect_jump): Likewise.
18348 (*thumb1_indirect_jump): Likewise.
18350 (*and_scc): Likewise.
18351 (*ior_scc): Likewise.
18352 (*compare_scc): Likewise.
18353 (*cond_move): Likewise.
18354 (*cond_arith): Likewise.
18355 (*cond_sub): Likewise.
18356 (*cmp_ite0): Likewise.
18357 (*cmp_ite1): Likewise.
18358 (*cmp_and): Likewise.
18359 (*cmp_ior): Likewise.
18360 (*ior_scc_scc): Likewise.
18361 (*ior_scc_scc_cmp): Likewise.
18362 (*and_scc_scc): Likewise.
18363 (*and_scc_scc_cmp): Likewise.
18364 (*and_scc_scc_nod): Likewise.
18365 (*negscc): Likewise.
18366 (movcond_addsi): Likewise.
18367 (movcond): Likewise.
18368 (*ifcompare_plus_move): Likewise.
18369 (*if_plus_move): Likewise.
18370 (*ifcompare_move_plus): Likewise.
18371 (*if_move_plus): Likewise.
18372 (*ifcompare_arith_arith): Likewise.
18373 (*if_arith_arith): Likewise.
18374 (*ifcompare_arith_move): Likewise.
18375 (*if_arith_move): Likewise.
18376 (*ifcompare_move_arith): Likewise.
18377 (*if_move_arith): Likewise.
18378 (*ifcompare_move_not): Likewise.
18379 (*if_move_not): Likewise.
18380 (*ifcompare_not_move): Likewise.
18381 (*if_not_move): Likewise.
18382 (*ifcompare_shift_move): Likewise.
18383 (*if_shift_move): Likewise.
18384 (*ifcompare_move_shift): Likewise.
18385 (*if_move_shift): Likewise.
18386 (*ifcompare_shift_shift): Likewise.
18387 (*ifcompare_not_arith): Likewise.
18388 (*ifcompare_arith_not): Likewise.
18389 (*if_arith_not): Likewise.
18390 (*ifcompare_neg_move): Likewise.
18391 (*if_neg_move): Likewise.
18392 (*ifcompare_move_neg): Likewise.
18393 (*if_move_neg): Likewise.
18394 (prologue_thumb1_interwork): Likewise.
18395 (*cond_move_not): Likewise.
18396 (*sign_extract_onebit): Likewise.
18397 (*not_signextract_onebit): Likewise.
18398 (stack_tie): Likewise.
18399 (align_4): Likewise.
18400 (align_8): Likewise.
18401 (consttable_end): Likewise.
18402 (consttable_1): Likewise.
18403 (consttable_2): Likewise.
18404 (consttable_4): Likewise.
18405 (consttable_8): Likewise.
18406 (consttable_16): Likewise.
18407 (*thumb1_tablejump): Likewise.
18408 (prefetch): Likewise.
18409 (force_register_use): Likewise.
18410 (thumb_eh_return): Likewise.
18411 (load_tp_hard): Likewise.
18412 (load_tp_soft): Likewise.
18413 (tlscall): Likewise.
18414 (*arm_movtas_ze): Likewise.
18415 (*arm_rev): Likewise.
18416 (*arm_revsh): Likewise.
18417 (*arm_rev16): Likewise.
18418 * config/arm/thumb2.md
18419 (*thumb2_smaxsi3): Likewise.
18420 (*thumb2_sminsi3): Likewise.
18421 (*thumb32_umaxsi3): Likewise.
18422 (*thumb2_uminsi3): Likewise.
18423 (*thumb2_negdi2): Likewise.
18424 (*thumb2_abssi2): Likewise.
18425 (*thumb2_neg_abss): Likewise.
18426 (*thumb2_movsi_insn): Likewise.
18427 (tls_load_dot_plus_four): Likewise.
18428 (*thumb2_movhi_insn): Likewise.
18429 (*thumb2_mov_scc): Likewise.
18430 (*thumb2_mov_negs): Likewise.
18431 (*thumb2_mov_negs): Likewise.
18432 (*thumb2_mov_nots): Likewise.
18433 (*thumb2_mov_nots): Likewise.
18434 (*thumb2_movsicc_): Likewise.
18435 (*thumb2_movsfcc_soft_insn): Likewise.
18436 (*thumb2_indirect_jump): Likewise.
18437 (*thumb2_and_scc): Likewise.
18438 (*thumb2_ior_scc): Likewise.
18439 (*thumb2_ior_scc_strict_it): Likewise.
18440 (*thumb2_cond_move): Likewise.
18441 (*thumb2_cond_arith): Likewise.
18442 (*thumb2_cond_ari): Likewise.
18443 (*thumb2_cond_sub): Likewise.
18444 (*thumb2_negscc): Likewise.
18445 (*thumb2_movcond): Likewise.
18446 (thumb2_casesi_internal): Likewise.
18447 (thumb2_casesi_internal_pic): Likewise.
18448 (*thumb2_alusi3_short): Likewise.
18449 (*thumb2_mov<mode>_shortim): Likewise.
18450 (*thumb2_addsi_short): Likewise.
18451 (*thumb2_subsi_short): Likewise.
18452 (thumb2_addsi3_compare0): Likewise.
18453 (*thumb2_cbz): Likewise.
18454 (*thumb2_cbnz): Likewise.
18455 (*thumb2_one_cmplsi2_short): Likewise.
18456 (*thumb2_negsi2_short): Likewise.
18457 (*orsi_notsi_si): Likewise.
18458 * config/arm/arm1020e.md: Update with new attributes.
18459 * config/arm/arm1026ejs.md: Update with new attributes.
18460 * config/arm/arm1136jfs.md: Update with new attributes.
18461 * config/arm/arm926ejs.md: Update with new attributes.
18462 * config/arm/cortex-a15.md: Update with new attributes.
18463 * config/arm/cortex-a5.md: Update with new attributes.
18464 * config/arm/cortex-a53.md: Update with new attributes.
18465 * config/arm/cortex-a7.md: Update with new attributes.
18466 * config/arm/cortex-a8.md: Update with new attributes.
18467 * config/arm/cortex-a9.md: Update with new attributes.
18468 * config/arm/cortex-m4.md: Update with new attributes.
18469 * config/arm/cortex-r4.md: Update with new attributes.
18470 * config/arm/fa526.md: Update with new attributes.
18471 * config/arm/fa606te.md: Update with new attributes.
18472 * config/arm/fa626te.md: Update with new attributes.
18473 * config/arm/fa726te.md: Update with new attributes.
18475 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18477 * config/aarch64/aarch64-simd.md
18478 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18479 <vwx> iterator to ensure correct register choice.
18480 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18481 (aarch64_sqdmull_n<mode>): Likewise.
18482 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18483 * config/aarch64/arm_neon.h
18484 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18485 (vml<as><q>_n_<su>16): Likewise.
18486 (vml<as>l_high_lane<q>_<su>16): Likewise.
18487 (vml<as>l_high_n_<su>16): Likewise.
18488 (vml<as>l_lane<q>_<su>16): Likewise.
18489 (vml<as>l_n_<su>16): Likewise.
18490 (vmul<q>_lane<q>_<su>16): Likewise.
18491 (vmul<q>_n_<su>16): Likewise.
18492 (vmull_lane<q>_<su>16): Likewise.
18493 (vmull_n_<su>16): Likewise.
18494 (vmull_high_lane<q>_<su>16): Likewise.
18495 (vmull_high_n_<su>16): Likewise.
18496 (vqrdmulh<q>_n_s16): Likewise.
18498 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18500 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18501 have the correct lane parameter.
18503 2013-09-06 Richard Biener <rguenther@suse.de>
18505 * cfganal.c (control_dependences::~control_dependences):
18506 Properly free all of the vector.
18508 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18511 * config/i386/i386.c (ix86_conditional_register_usage):
18512 Proper initialize extended SSE registers.
18514 2013-09-06 Jan Hubicka <jh@suse.cz>
18516 PR tree-optimization/58311
18517 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18519 2013-09-06 Jan Hubicka <jh@suse.cz>
18521 * Makefile.in (tree-sra.o): Update dependencies.
18522 * tree-sra.c: Include ipa-utils.h
18523 (scan_function): Use recursive_call_p.
18524 (has_caller_p): New function.
18525 (cgraph_for_node_and_aliases): Count also callers of aliases.
18527 2013-09-06 Jan Hubicka <jh@suse.cz>
18529 PR middle-end/58094
18530 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18531 * tree-tailcall.c: Include ipa-utils.h.
18532 (find_tail_calls): Use it.
18533 * ipa-pure-const.c (check_call): Likewise.
18534 * ipa-utils.c (recursive_call_p): New function.
18535 * ipa-utils.h (recursive_call_p): Dclare.
18536 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18537 (symtab_semantically_equivalent_p): New function.
18538 * Makefile.in (tree-tailcall.o): Update dependencies.
18540 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18542 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18543 non-inlinable part.
18545 2013-09-06 Richard Biener <rguenther@suse.de>
18547 * lto-streamer.h (lto_global_var_decls): Remove.
18548 * Makefile.in (OBJS): Remove lto-symtab.o.
18549 (lto-symtab.o): Remove.
18550 (GTFILES): Remove lto-symtab.c
18551 * lto-symtab.c: Move to lto/
18553 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18555 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18556 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18557 (UNSPEC_FPINT_RINT): New constant definitions.
18558 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18559 definition with 2 attributes.
18560 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18561 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18564 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18566 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18567 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18568 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18569 attribute to "z196_alone".
18570 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18573 2013-09-06 Richard Biener <rguenther@suse.de>
18575 * basic-block.h (class control_dependences): New.
18576 * tree-ssa-dce.c (control_dependence_map): Remove.
18578 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18579 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18580 find_pdom, find_control_dependence, find_all_control_dependences):
18582 (mark_control_dependent_edges_necessary,
18583 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18584 tree_dce_done, perform_tree_ssa_dce): Adjust.
18585 * cfganal.c (set_control_dependence_map_bit,
18586 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18587 find_all_control_dependences): Move from tree-ssa-dce.c and
18588 implement as methods of control_dependences class.
18589 (control_dependences::control_dependences): New.
18590 (control_dependences::~control_dependences): Likewise.
18591 (control_dependences::get_edges_dependent_on): Likewise.
18592 (control_dependences::get_edge): Likewise.
18594 2013-09-04 Jan Hubicka <jh@suse.cz>
18596 * tree.c (types_same_for_odr): Drop overactive check.
18597 * ipa-devirt.c (hash_type_name): Likewise.
18599 2013-09-04 Jan Hubicka <jh@suse.cz>
18601 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18602 (analyze_functions): ... here.
18604 2013-09-04 Jan Hubicka <jh@suse.cz>
18606 PR middle-end/58201
18607 * cgraphunit.c (analyze_functions): Clear AUX fields
18608 after processing; initialize assembler name has.
18610 2013-09-05 Jeff Law <law@redhat.com>
18612 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18613 from thread_around_empty_block. Record threading path into PATH.
18614 Recurse if threading through the initial block is successful.
18615 (thread_across_edge): Corresponding changes to slightly simplify.
18617 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18619 * config/aarch64/aarch64.md
18620 (type): Remove frecpe, frecps, frecpx.
18621 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18622 fix to be a TARGET_SIMD instruction.
18623 (aarch64_frecps): Remove.
18624 * config/aarch64/aarch64-simd.md
18625 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18626 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18628 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18629 Sofiane Naci <sofiane.naci@arm.com>
18631 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18632 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18633 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18634 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18635 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18636 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18637 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18638 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18639 into "clz, "rbit". Rename "shift" to "shift_imm".
18640 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18641 changes. Update for attribute changes all occurrences of arlo_* and
18643 * config/arm/arm-fixed.md: Update for attribute changes
18644 all occurrences of arlo_* types.
18645 * config/arm/thumb2.md: Update for attribute changes all occurrences
18647 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18648 (cortexa7_older_only): Likewise.
18649 (cortexa7_younger): Likewise.
18650 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18651 (1020alu_shift_op): Likewise.
18652 (1020alu_shift_reg_op): Likewise.
18653 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18654 (alu_shift_op): Likewise.
18655 (alu_shift_reg_op): Likewise.
18656 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18657 (11_alu_shift_op): Likewise.
18658 (11_alu_shift_reg_op): Likewise.
18659 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18660 (9_alu_shift_reg_op): Likewise.
18661 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18663 (cortex_a15_alu_shift): Likewise.
18664 (cortex_a15_alu_shift_reg): Likewise.
18665 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18667 (cortex_a5_alu_shift): Likewise.
18668 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18670 (cortex_a53_alu_shift): Likewise.
18671 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18673 (cortex_a7_alu_reg): Likewise.
18674 (cortex_a7_alu_shift): Likewise.
18675 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18677 (cortex_a8_alu_shift): Likewise.
18678 (cortex_a8_alu_shift_reg): Likewise.
18679 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18680 (cortex_a9_dp_shift): Likewise.
18681 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18683 * config/arm/cortex-r4.md
18684 (cortex_r4_alu): Update for attribute changes.
18685 (cortex_r4_mov): Likewise.
18686 (cortex_r4_alu_shift_reg): Likewise.
18687 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18688 (526_alu_shift_op): Likewise.
18689 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18690 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18691 (626te_alu_shift_op): Likewise.
18692 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18693 (726te_alu_shift_op): Likewise.
18694 (726te_alu_shift_reg_op): Likewise.
18695 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18696 (mp626_alu_shift_op): Likewise.
18697 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18698 (pj4_alu_conds): Likewise.
18699 (pj4_shift): Likewise.
18700 (pj4_shift_conds): Likewise.
18701 (pj4_alu_shift): Likewise.
18702 (pj4_alu_shift_conds): Likewise.
18703 * config/aarch64/aarch64.md: Update for attribute change
18704 all occurrences of arlo_* and shift* types.
18706 2013-09-05 Mike Stump <mikestump@comcast.net>
18708 * tree.h: Move documentation for tree_function_decl to tree-core.h
18709 with the declaration.
18711 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18714 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18715 looking for widest mode.
18717 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18719 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18721 2013-09-05 Richard Biener <rguenther@suse.de>
18723 PR tree-optimization/58137
18724 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18725 Do not create vectors of pointers.
18726 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18727 types for the components of the vector initializer.
18728 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18729 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18731 2013-09-05 Martin Jambor <mjambor@suse.cz>
18733 * ipa-prop.c (remove_described_reference): Accept missing references,
18734 return false if that hppens, otherwise return true.
18735 (cgraph_node_for_jfunc): New function.
18736 (try_decrement_rdesc_refcount): Likewise.
18737 (try_make_edge_direct_simple_call): Use them.
18738 (ipa_edge_removal_hook): Remove references from rdescs.
18739 (ipa_edge_duplication_hook): Clone rdescs and their references
18740 when the new edge has the same caller as the old one.
18741 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18742 reference before removing any edges.
18744 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18746 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18748 * thumb2.md (thumb2_storewb_parisi): New pattern.
18750 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18752 * config/aarch64/aarch64-option-extensions.def: Add
18753 AARCH64_OPT_EXTENSION of 'crc'.
18754 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18755 (AARCH64_ISA_CRC): Ditto.
18756 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18757 description of the CRC extension.
18759 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18761 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18762 * config/rs6000/linux.h: Ditto.
18763 * alpha/linux.h: Ditto.
18764 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18765 no_c99_libc_has_function.
18766 * config/c6x/uclinux-elf.h: Ditto.
18767 * config/lm32/uclinux-elf.h: Ditto.
18768 * config/m68k/uclinux.h: Ditto.
18769 * config/moxie/uclinux.h: Ditto.
18770 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18771 (crisv32-*-linux*, cris-*-linux*): Ditto.
18772 * config/bfin/bfin.c: Include "tm_p.h".
18774 2013-09-05 Richard Biener <rguenther@suse.de>
18776 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18777 check for a definition without a basic-block.
18779 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18780 Sofiane Naci <sofiane.naci@arm.com>
18782 * config/aarch64/aarch64.md
18783 (*movti_aarch64): Rename r_2_f and f_2_r.
18784 (*movsf_aarch64): Likewise.
18785 (*movdf_aarch64): Likewise.
18786 (*movtf_aarch64): Likewise.
18787 (aarch64_movdi_<mode>low): Likewise.
18788 (aarch64_movdi_<mode>high): Likewise.
18789 (aarch64_mov<mode>high_di): Likewise.
18790 (aarch64_mov<mode>low_di): Likewise.
18791 (aarch64_movtilow_tilow): Likewise.
18792 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18793 values to config/arm/types.md
18794 (attribute "conds"): Update for attribute change.
18795 (anddi3_insn): Likewise.
18796 (iordi3_insn): Likewise.
18797 (xordi3_insn): Likewise.
18798 (one_cmpldi2): Likewise.
18799 * config/arm/types.md (type): Add Neon types.
18800 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18801 use "type" attribute.
18802 (movmisalign<mode>_neon_store): Likewise.
18803 (movmisalign<mode>_neon_load): Likewise.
18804 (vec_set<mode>_internal): Likewise.
18805 (vec_setv2di_internal): Likewise.
18806 (vec_extract<mode>): Likewise.
18807 (vec_extractv2di): Likewise.
18808 (add<mode>3_neon): Likewise.
18809 (adddi3_neon): Likewise.
18810 (sub<mode>3_neon): Likewise.
18811 (subdi3_neon): Likewise.
18812 (mul<mode>3_neon): Likewise.
18813 (mul<mode>3add<mode>_neon): Likewise.
18814 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18815 (fma<VCVTF:mode>4)): Likewise.
18816 (fma<VCVTF:mode>4_intrinsic): Likewise.
18817 (fmsub<VCVTF:mode>4)): Likewise.
18818 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18819 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18820 (ior<mode>3): Likewise.
18821 (and<mode>3): Likewise.
18822 (anddi3_neon): Likewise.
18823 (orn<mode>3_neon): Likewise.
18824 (orndi3_neon): Likewise.
18825 (bic<mode>3_neon): Likewise.
18826 (bicdi3_neon): Likewise.
18827 (xor<mode>3): Likewise.
18828 (one_cmpl<mode>2): Likewise.
18829 (abs<mode>2): Likewise.
18830 (neg<mode>2): Likewise.
18831 (umin<mode>3_neon): Likewise.
18832 (umax<mode>3_neon): Likewise.
18833 (smin<mode>3_neon): Likewise.
18834 (smax<mode>3_neon): Likewise.
18835 (vashl<mode>3): Likewise.
18836 (vashr<mode>3_imm): Likewise.
18837 (vlshr<mode>3_imm): Likewise.
18838 (ashl<mode>3_signed): Likewise.
18839 (ashl<mode>3_unsigned): Likewise.
18840 (neon_load_count): Likewise.
18841 (ashldi3_neon_noclobber): Likewise.
18842 (signed_shift_di3_neon): Likewise.
18843 (unsigned_shift_di3_neon): Likewise.
18844 (ashrdi3_neon_imm_noclobber): Likewise.
18845 (lshrdi3_neon_imm_noclobber): Likewise.
18846 (widen_ssum<mode>3): Likewise.
18847 (widen_usum<mode>3): Likewise.
18848 (quad_halves_<code>v4si): Likewise.
18849 (quad_halves_<code>v4sf): Likewise.
18850 (quad_halves_<code>v8hi): Likewise.
18851 (quad_halves_<code>v16qi): Likewise.
18852 (reduc_splus_v2di): Likewise.
18853 (neon_vpadd_internal<mode>): Likewise.
18854 (neon_vpsmin<mode>): Likewise.
18855 (neon_vpsmax<mode>): Likewise.
18856 (neon_vpumin<mode>): Likewise.
18857 (neon_vpumax<mode>): Likewise.
18858 (ss_add<mode>_neon): Likewise.
18859 (us_add<mode>_neon): Likewise.
18860 (ss_sub<mode>_neon): Likewise.
18861 (us_sub<mode>_neon): Likewise.
18862 (neon_vadd<mode>_unspec): Likewise.
18863 (neon_vaddl<mode>): Likewise.
18864 (neon_vaddw<mode>): Likewise.
18865 (neon_vhadd<mode>): Likewise.
18866 (neon_vqadd<mode>): Likewise.
18867 (neon_vaddhn<mode>): Likewise.
18868 (neon_vmul<mode>): Likewise.
18869 (neon_vmla<mode>): Likewise.
18870 (neon_vmlal<mode>): Likewise.
18871 (neon_vmls<mode>): Likewise.
18872 (neon_vmlsl<mode>): Likewise.
18873 (neon_vqdmulh<mode>): Likewise.
18874 (neon_vqdmlal<mode>): Likewise.
18875 (neon_vqdmlsl<mode>): Likewise.
18876 (neon_vmull<mode>): Likewise.
18877 (neon_vqdmull<mode>): Likewise.
18878 (neon_vsub<mode>_unspec): Likewise.
18879 (neon_vsubl<mode>): Likewise.
18880 (neon_vsubw<mode>): Likewise.
18881 (neon_vqsub<mode>): Likewise.
18882 (neon_vhsub<mode>): Likewise.
18883 (neon_vsubhn<mode>): Likewise.
18884 (neon_vceq<mode>): Likewise.
18885 (neon_vcge<mode>): Likewise.
18886 (neon_vcgeu<mode>): Likewise.
18887 (neon_vcgt<mode>): Likewise.
18888 (neon_vcgtu<mode>): Likewise.
18889 (neon_vcle<mode>): Likewise.
18890 (neon_vclt<mode>): Likewise.
18891 (neon_vcage<mode>): Likewise.
18892 (neon_vcagt<mode>): Likewise.
18893 (neon_vtst<mode>): Likewise.
18894 (neon_vabd<mode>): Likewise.
18895 (neon_vabdl<mode>): Likewise.
18896 (neon_vaba<mode>): Likewise.
18897 (neon_vabal<mode>): Likewise.
18898 (neon_vmax<mode>): Likewise.
18899 (neon_vmin<mode>): Likewise.
18900 (neon_vpaddl<mode>): Likewise.
18901 (neon_vpadal<mode>): Likewise.
18902 (neon_vpmax<mode>): Likewise.
18903 (neon_vpmin<mode>): Likewise.
18904 (neon_vrecps<mode>): Likewise.
18905 (neon_vrsqrts<mode>): Likewise.
18906 (neon_vqabs<mode>): Likewise.
18907 (neon_vqneg<mode>): Likewise.
18908 (neon_vcls<mode>): Likewise.
18909 (clz<mode>2): Likewise.
18910 (popcount<mode>2): Likewise.
18911 (neon_vrecpe): Likewise.
18912 (neon_vrsqrte): Likewise.
18913 (neon_vget_lane<mode>_sext_internal): Likewise.
18914 (neon_vget_lane<mode>_zext_internal): Likewise.
18915 (neon_vdup_n<mode>): Likewise.
18916 (neon_vdup_nv2di): Likewise.
18917 (neon_vdpu_lane<mode>_internal): Likewise.
18918 (neon_vswp<mode>): Likewise.
18919 (float<mode><V_cvtto>2): Likewise.
18920 (floatuns<mode><V_cvtto>2): Likewise.
18921 (fix_trunc<mode><V_cvtto>)2): Likewise
18922 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18923 (neon_vcvt<mode>): Likewise.
18924 (neon_vcvtv4sfv4hf): Likewise.
18925 (neon_vcvtv4hfv4sf): Likewise.
18926 (neon_vcvt_n<mode>): Likewise.
18927 (neon_vmovn<mode>): Likewise.
18928 (neon_vqmovn<mode>): Likewise.
18929 (neon_vqmovun<mode>): Likewise.
18930 (neon_vmovl<mode>): Likewise.
18931 (neon_vmul_lane<mode>): Likewise.
18932 (neon_vmull_lane<mode>): Likewise.
18933 (neon_vqdmull_lane<mode>): Likewise.
18934 (neon_vqdmulh_lane<mode>): Likewise.
18935 (neon_vmla_lane<mode>): Likewise.
18936 (neon_vmlal_lane<mode>): Likewise.
18937 (neon_vqdmlal_lane<mode>): Likewise.
18938 (neon_vmls_lane<mode>): Likewise.
18939 (neon_vmlsl_lane<mode>): Likewise.
18940 (neon_vqdmlsl_lane<mode>): Likewise.
18941 (neon_vext<mode>): Likewise.
18942 (neon_vrev64<mode>): Likewise.
18943 (neon_vrev32<mode>): Likewise.
18944 (neon_vrev16<mode>): Likewise.
18945 (neon_vbsl<mode>_internal): Likewise.
18946 (neon_vshl<mode>): Likewise.
18947 (neon_vqshl<mode>): Likewise.
18948 (neon_vshr_n<mode>): Likewise.
18949 (neon_vshrn_n<mode>): Likewise.
18950 (neon_vqshrn_n<mode>): Likewise.
18951 (neon_vqshrun_n<mode>): Likewise.
18952 (neon_vshl_n<mode>): Likewise.
18953 (neon_vqshl_n<mode>): Likewise.
18954 (neon_vqshlu_n<mode>): Likewise.
18955 (neon_vshll_n<mode>): Likewise.
18956 (neon_vsra_n<mode>): Likewise.
18957 (neon_vsri_n<mode>): Likewise.
18958 (neon_vsli_n<mode>): Likewise.
18959 (neon_vtbl1v8qi): Likewise.
18960 (neon_vtbl2v8qi): Likewise.
18961 (neon_vtbl3v8qi): Likewise.
18962 (neon_vtbl4v8qi): Likewise.
18963 (neon_vtbx1v8qi): Likewise.
18964 (neon_vtbx2v8qi): Likewise.
18965 (neon_vtbx3v8qi): Likewise.
18966 (neon_vtbx4v8qi): Likewise.
18967 (neon_vtrn<mode>_internal): Likewise.
18968 (neon_vzip<mode>_internal): Likewise.
18969 (neon_vuzp<mode>_internal): Likewise.
18970 (neon_vld1<mode>): Likewise.
18971 (neon_vld1_lane<mode>): Likewise.
18972 (neon_vld1_dup<mode>): Likewise.
18973 (neon_vld1_dupv2di): Likewise.
18974 (neon_vst1<mode>): Likewise.
18975 (neon_vst1_lane<mode>): Likewise.
18976 (neon_vld2<mode>): Likewise.
18977 (neon_vld2_lane<mode>): Likewise.
18978 (neon_vld2_dup<mode>): Likewise.
18979 (neon_vst2<mode>): Likewise.
18980 (neon_vst2_lane<mode>): Likewise.
18981 (neon_vld3<mode>): Likewise.
18982 (neon_vld3qa<mode>): Likewise.
18983 (neon_vld3qb<mode>): Likewise.
18984 (neon_vld3_lane<mode>): Likewise.
18985 (neon_vld3_dup<mode>): Likewise.
18986 (neon_vst3<mode>): Likewise.
18987 (neon_vst3qa<mode>): Likewise.
18988 (neon_vst3qb<mode>): Likewise.
18989 (neon_vst3_lane<mode>): Likewise.
18990 (neon_vld4<mode>): Likewise.
18991 (neon_vld4qa<mode>): Likewise.
18992 (neon_vld4qb<mode>): Likewise.
18993 (neon_vld4_lane<mode>): Likewise.
18994 (neon_vld4_dup<mode>): Likewise.
18995 (neon_vst4<mode>): Likewise.
18996 (neon_vst4qa<mode>): Likewise.
18997 (neon_vst4qb<mode>): Likewise.
18998 (neon_vst4_lane<mode>): Likewise.
18999 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19000 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19001 (neon_vec_<US>mult_lo_<mode>): Likewise.
19002 (neon_vec_<US>mult_hi_<mode>): Likewise.
19003 (neon_vec_<US>shiftl_<mode>): Likewise.
19004 (neon_unpack<US>_<mode>): Likewise.
19005 (neon_vec_<US>mult_<mode>): Likewise.
19006 (vec_pack_trunc_<mode>): Likewise.
19007 (neon_vec_pack_trunk_<mode>): Likewise.
19008 (neon_vabd<mode>_2): Likewise.
19009 (neon_vabd<mode>_3): Likewise.
19010 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19011 (thumb2_movsi_vfp): Likewise.
19012 (movdi_vfp): Likewise.
19013 (movdi_vfp_cortexa8): Likewise.
19014 (movhf_vfp_neon): Likewise.
19015 (movhf_vfp): Likewiwse.
19016 (movsf_vfp): Likewiwse.
19017 (thumb2_movsf_vfp): Likewiwse.
19018 (movdf_vfp): Likewise.
19019 (thumb2_movdf_vfp): Likewise.
19020 (movsfcc_vfp): Likewise.
19021 (thumb2_movsfcc_vfp): Likewise.
19022 (movdfcc_vfp): Likewise.
19023 (thumb2_movdfcc_vfp): Likewise.
19024 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19025 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19026 (v10_v2c): Likewise.
19027 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19029 (cortex_a15_neon_int_2): Likewise.
19030 (cortex_a15_neon_int_3): Likewise.
19031 (cortex_a15_neon_int_4): Likewise.
19032 (cortex_a15_neon_int_5): Likewise.
19033 (cortex_a15_neon_vqneg_vqabs): Likewise.
19034 (cortex_a15_neon_vmov): Likewise.
19035 (cortex_a15_neon_vaba): Likewise.
19036 (cortex_a15_neon_vaba_qqq): Likewise.
19037 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19038 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19039 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19040 scalar_64_32_long_scalar): Likewise.
19041 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19042 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19043 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19044 lotype_qdd_64_32_long): Likewise.
19045 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19046 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19047 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19048 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19049 (cortex_a15_neon_shift_1): Likewise.
19050 (cortex_a15_neon_shift_2): Likewise.
19051 (cortex_a15_neon_shift_3): Likewise.
19052 (cortex_a15_neon_vshl_ddd): Likewise.
19053 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19054 (cortex_a15_neon_vsra_vrsra): Likewise.
19055 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19056 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19057 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19058 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19059 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19060 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19061 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19062 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19063 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19064 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19065 (cortex_a15_neon_bp_simple): Likewise.
19066 (cortex_a15_neon_bp_2cycle): Likewise.
19067 (cortex_a15_neon_bp_3cycle): Likewise.
19068 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19069 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19070 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19071 (cortex_a15_neon_vld2_4_regs): Likewise.
19072 (cortex_a15_neon_vld3_vld4): Likewise.
19073 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19074 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19075 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19076 (cortex_a15_neon_vst3_vst4): Likewise.
19077 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19078 (cortex_a15_neon_vld3_vld4_lane" 10
19079 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19080 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19081 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19082 (cortex_a15_neon_ldm_2): Likewise.0
19083 (cortex_a15_neon_stm_2): Likewise.
19084 (cortex_a15_neon_mcr): Likewise.
19085 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19086 (cortex_a15_neon_mrc): Likewise.
19087 (cortex_a15_neon_mrrc): Likewise.
19088 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19090 (cortex_a15_alu_shift): Likewise.
19091 (cortex_a15_alu_shift_reg): Likewise.
19092 (cortex_a15_mult32): Likewise.
19093 (cortex_a15_mult64): Likewise.
19094 (cortex_a15_block): Likewise.
19095 (cortex_a15_branch): Likewise.
19096 (cortex_a15_load1): Likewise.
19097 (cortex_a15_load3): Likewise.
19098 (cortex_a15_store1): Likewise.
19099 (cortex_a15_store3): Likewise.
19100 (cortex_a15_call): Likewise.
19101 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19102 (cortex_a5_f2r): Likewise.
19103 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19105 (cortex_a53_f2r): Likewise.
19106 * config/arm/cortex-a7.md
19107 (cortex_a7_branch): Update for attribute change.
19108 (cortex_a7_call): Likewise.
19109 (cortex_a7_alu_imm): Likewise.
19110 (cortex_a7_alu_reg): Likewise.
19111 (cortex_a7_alu_shift): Likewise.
19112 (cortex_a7_mul): Likewise.
19113 (cortex_a7_load1): Likewise.
19114 (cortex_a7_store1): Likewise.
19115 (cortex_a7_load2): Likewise.
19116 (cortex_a7_store2): Likewise.
19117 (cortex_a7_load3): Likewise.
19118 (cortex_a7_store3): Likewise.
19119 (cortex_a7_load4): Likewise.
19120 (cortex_a7_store4): Likewise.
19121 (cortex_a7_fpalu): Likewise.
19122 (cortex_a7_fconst): Likewise.
19123 (cortex_a7_fpmuls): Likewise.
19124 (cortex_a7_neon_mul): Likewise.
19125 (cortex_a7_fpmacs): Likewise.
19126 (cortex_a7_neon_mla: Likewise.
19127 (cortex_a7_fpmuld: Likewise.
19128 (cortex_a7_fpmacd: Likewise.
19129 (cortex_a7_fpfmad: Likewise.
19130 (cortex_a7_fdivs: Likewise.
19131 (cortex_a7_fdivd: Likewise.
19132 (cortex_a7_r2f: Likewise.
19133 (cortex_a7_f2r: Likewise.
19134 (cortex_a7_f_flags: Likewise.
19135 (cortex_a7_f_loads: Likewise.
19136 (cortex_a7_f_loadd: Likewise.
19137 (cortex_a7_f_stores: Likewise.
19138 (cortex_a7_f_stored: Likewise.
19139 (cortex_a7_neon): Likewise.
19140 * config/arm/cortex-a8-neon.md
19141 (cortex_a8_neon_mrc): Update for attribute change.
19142 (cortex_a8_neon_mrrc): Likewise.
19143 (cortex_a8_neon_int_1): Likewise.
19144 (cortex_a8_neon_int_2): Likewise.
19145 (cortex_a8_neon_int_3): Likewise.
19146 (cortex_a8_neon_int_4): Likewise.
19147 (cortex_a8_neon_int_5): Likewise.
19148 (cortex_a8_neon_vqneg_vqabs): Likewise.
19149 (cortex_a8_neon_vmov): Likewise.
19150 (cortex_a8_neon_vaba): Likewise.
19151 (cortex_a8_neon_vaba_qqq): Likewise.
19152 (cortex_a8_neon_vsma): Likewise.
19153 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19154 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19155 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19156 long_scalar): Likewise.
19157 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19158 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19159 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19160 long_scalar_qdd_64_32_long): Likewise.
19161 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19162 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19163 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19164 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19165 (cortex_a8_neon_shift_1): Likewise.
19166 (cortex_a8_neon_shift_2): Likewise.
19167 (cortex_a8_neon_shift_3): Likewise.
19168 (cortex_a8_neon_vshl_ddd): Likewise.
19169 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19170 (cortex_a8_neon_vsra_vrsra): Likewise.
19171 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19172 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19173 (cortex_a8_neon_fp_vsum): Likewise.
19174 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19175 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19176 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19177 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19178 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19179 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19180 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19181 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19182 (cortex_a8_neon_bp_simple): Likewise.
19183 (cortex_a8_neon_bp_2cycle): Likewise.
19184 (cortex_a8_neon_bp_3cycle): Likewise.
19185 (cortex_a8_neon_ldr): Likewise.
19186 (cortex_a8_neon_str): Likewise.
19187 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19188 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19189 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19190 (cortex_a8_neon_vld2_4_regs): Likewise.
19191 (cortex_a8_neon_vld3_vld4): Likewise.
19192 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19193 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19194 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19195 (cortex_a8_neon_vst3_vst4): Likewise.
19196 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19197 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19198 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19199 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19200 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19201 (cortex_a8_neon_mcr): Likewise.
19202 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19203 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19204 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19206 (ca9_neon_mrrc): Likewise.
19207 (cortex_a9_neon_int_1): Likewise.
19208 (cortex_a9_neon_int_2): Likewise.
19209 (cortex_a9_neon_int_3): Likewise.
19210 (cortex_a9_neon_int_4): Likewise.
19211 (cortex_a9_neon_int_5): Likewise.
19212 (cortex_a9_neon_vqneg_vqabs): Likewise.
19213 (cortex_a9_neon_vmov): Likewise.
19214 (cortex_a9_neon_vaba): Likewise.
19215 (cortex_a9_neon_vaba_qqq): Likewise.
19216 (cortex_a9_neon_vsma): Likewise.
19217 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19218 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19219 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19220 long_scalar): Likewise.
19221 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19222 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19223 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19224 long_scalar_qdd_64_32_long): Likewise.
19225 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19226 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19227 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19228 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19229 (cortex_a9_neon_shift_1): Likewise.
19230 (cortex_a9_neon_shift_2): Likewise.
19231 (cortex_a9_neon_shift_3): Likewise.
19232 (cortex_a9_neon_vshl_ddd): Likewise.
19233 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19234 (cortex_a9_neon_vsra_vrsra): Likewise.
19235 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19236 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19237 (cortex_a9_neon_fp_vsum): Likewise.
19238 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19239 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19240 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19241 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19242 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19243 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19244 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19245 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19246 (cortex_a9_neon_bp_simple): Likewise.
19247 (cortex_a9_neon_bp_2cycle): Likewise.
19248 (cortex_a9_neon_bp_3cycle): Likewise.
19249 (cortex_a9_neon_ldr): Likewise.
19250 (cortex_a9_neon_str): Likewise.
19251 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19252 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19253 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19254 (cortex_a9_neon_vld2_4_regs): Likewise.
19255 (cortex_a9_neon_vld3_vld4): Likewise.
19256 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19257 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19258 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19259 (cortex_a9_neon_vst3_vst4): Likewise.
19260 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19261 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19262 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19263 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19264 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19265 (cortex_a9_neon_mcr): Likewise.
19266 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19267 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19268 (cortex_a9_fps): Likewise.
19269 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19271 (cortex_m4_fmuls): Likewise.
19272 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19274 (cortex_r4_mrc): Likewise.
19275 * config/arm/iterators.md: Update comment referring to neon_type.
19276 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19277 (iwmmxt_movsi_insn): Likewise.
19278 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19280 (pj4_core_to_vfp): Likewise.
19281 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19283 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19284 (vfp_fstore): Likewise.
19285 * doc/md.texi: Change references to neon_type to refer to type.
19287 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19289 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19291 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19293 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19294 lglobl if not weak.
19296 2013-09-04 Easwaran Raman <eraman@google.com>
19298 PR middle-end/57370
19299 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19300 (build_and_add_sum): Use it.
19301 (appears_later_in_bb): Simplify code.
19303 2013-09-04 Teresa Johnson <tejohnson@google.com>
19305 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19307 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19309 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19311 2013-09-04 Jan Hubicka <jh@suse.cz>
19313 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19314 * ipa-devirt.c: Include diganostic.h
19315 (odr_type_d): Add types and types_set.
19316 (hash_type_name): Work for types with vtables during LTO.
19317 (odr_hasher::remove): Fix comment; destroy types_set.
19318 (add_type_duplicate): New function,
19319 (get_odr_type): Use it.
19320 (dump_type_inheritance_graph): Dump type duplicates.
19321 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19323 * tree.c (types_same_for_odr): Give exact answers on types with
19326 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19328 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19329 explaining their differences.
19331 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19333 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19335 2013-09-03 Jeff Law <law@redhat.com>
19337 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19338 when not threading through a joiner block. Pass joiner/no joiner
19339 state to register_jump_thread.
19340 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19341 state from argument rather than implying on path length.
19342 Dump the entire jump thread path into debugging dump.
19343 * tree-flow.h (register_jump_thread): Update prototype.
19345 2013-08-29 Xinliang David Li <davidxl@google.com>
19347 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19348 Remove a trivial gcc_assert.
19350 2013-08-29 Xinliang David Li <davidxl@google.com>
19352 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19353 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19354 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19355 Delay base decl alignment adjustment.
19356 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19357 * tree-vectorizer.h: New data structure.
19358 (set_dr_misalignment): New function.
19359 (dr_misalignment): Ditto.
19360 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19361 (vectorizable_load): Ditto.
19362 (ensure_base_align): New function.
19363 (vectorize_loops): Add dbg_cnt support.
19364 (execute_vect_slp): Ditto.
19365 * dbgcnt.def: New debug counter.
19366 * Makefile: New dependency.
19368 2013-09-03 Meador Inge <meadori@codesourcery.com>
19372 2013-08-30 Meador Inge <meadori@codesourcery.com>
19374 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19376 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19378 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19379 function descriptor.
19381 2013-09-03 Richard Biener <rguenther@suse.de>
19383 * tree-affine.c (add_elt_to_tree): Fix association issue,
19384 avoid useless converts and make sure to always return a
19385 properly typed result.
19387 2013-09-03 Richard Biener <rguenther@suse.de>
19389 PR middle-end/57656
19390 * fold-const.c (negate_expr_p): Fix division case.
19391 (negate_expr): Likewise.
19393 2013-09-03 Richard Biener <rguenther@suse.de>
19396 * tree-streamer-out.c: Include tm.h.
19397 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19399 2013-09-03 Jan Hubicka <jh@suse.cz>
19401 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19403 2013-09-03 Alan Modra <amodra@gmail.com>
19405 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19406 multilibs to big-endian target and vice versa.
19407 * config/rs6000/t-linux64: Use := assignment on all vars.
19408 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19409 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19410 * config/rs6000/t-linux64le: New file.
19411 * config/rs6000/t-linux64bele: New file.
19412 * config/rs6000/t-linux64lebe: New file.
19414 2013-09-02 Jan Hubicka <jh@suse.cz>
19416 * ipa-inline-transform.c (inline_transform): Do not
19417 optimize_inline_calls when not optimizing.
19419 2013-09-02 Jan Hubicka <jh@suse.cz>
19421 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19422 duplicated nodes for assembler names.
19423 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19424 hard registers from assembler name hash.
19426 2013-09-02 Jan Hubicka <jh@suse.cz>
19428 * ipa-split.c (execute_split_functions): Split externally visible
19429 functions called once.
19431 2013-09-02 Martin Jambor <mjambor@suse.cz>
19434 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19435 linked list. When finding the correct duplicate, also consider also
19436 the caller in additon to its inlined_to node.
19438 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19440 * config/aarch64/aarch64-simd-builtins.def
19441 (dup_lane_scalar): Remove.
19442 * config/aarch64/aarch64-simd.md
19443 (aarch64_simd_dup): Add 'w->w' alternative.
19444 (aarch64_dup_lane<mode>): Allow for VALL.
19445 (aarch64_dup_lane_scalar<mode>): Remove.
19446 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19447 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19448 (aarch64_get_lane_unsigned<mode>): Likewise.
19449 (aarch64_get_lane<mode>): Likewise.
19450 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19451 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19452 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19453 (VCON): Change container of V2SF.
19454 (vswap_width_name): Likewise.
19455 * config/aarch64/arm_neon.h
19456 (__aarch64_vdup_lane_any): New.
19457 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19458 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19459 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19461 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19463 PR middle-end/56382
19464 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19465 the source or the destination is a single hard register.
19467 2013-09-02 Richard Biener <rguenther@suse.de>
19469 PR middle-end/57511
19470 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19473 2013-09-02 Richard Biener <rguenther@suse.de>
19475 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19476 arithmetic to sizetype.
19478 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19480 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19481 Find auto-increment use both before and after candidate.
19483 2013-09-02 Marek Polacek <polacek@redhat.com>
19485 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19487 2013-09-01 Jan Hubicka <jh@suse.cz>
19489 * Makefile.in: Add ipa-profile.o
19490 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19491 * cgraph.c (struct cgraph_propagate_frequency_data,
19492 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19493 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19494 * cgraph.h (cgraph_propagate_frequency): Remove.
19495 * ipa-inline-analysis.c: Include ipa-utils.h;
19496 drop duplicated cfgloop.h.
19497 (inline_update_callee_summaries): Update.
19498 * ipa-profile.c: New file.
19499 * ipa-utils.h (ipa_propagate_frequency): Declare.
19500 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19501 data-streamer.h, value-prof.h.
19502 (symtab_remove_unreachable_nodes): Update profile.
19503 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19504 account_time_size, cmp_counts, dump_histogram,
19505 ipa_profile_generate_summary, ipa_profile_write_summary,
19506 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19507 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19508 Move to ipa-profile.c.
19510 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19512 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19514 2013-09-01 Jan Hubicka <jh@suse.cz>
19516 * common.opt (fdevirtualize-speculatively): New function.
19517 * invoke.texi (fdevirtualize-speculatively): Document.
19518 * ipa-devirt.c: Include ipa-inline.h
19519 (likely_target_p): New function.
19520 (ipa_devirt): New function.
19521 (gate_ipa_devirt): New function.
19522 (pass_data_ipa_devirt): New static var.
19523 (pass_ipa_devirt): Likewise.
19524 (make_pass_ipa_devirt): New function.
19525 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19526 (common_handle_option): Disable devirtualization when
19527 value range profiling is available.
19528 * passes.def (pass_ipa_devirt): Add.
19529 * timever.def (TV_IPA_DEVIRT): New timevar.
19530 * tree-pass.h (make_pass_ipa_devirt):
19532 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19534 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19535 include sanitize(undefined).
19537 2013-08-31 Diego Novillo <dnovillo@google.com>
19539 * Makefile.in (TREE_CORE_H): Define.
19541 (GTFILES): Add tree-core.h.
19542 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19544 * tree-core.h: New file.
19545 Move all data structures, enum, typedefs, global
19546 declarations and constants from ...
19547 * tree.h: ... here.
19549 2013-08-31 Jan Hubicka <jh@suse.cz>
19551 * bulitins.c (expand_builtin): Do not early exit for gcov
19552 instrumented functions.
19554 2013-08-31 Marek Polacek <polacek@redhat.com>
19556 * ubsan.c: Include tm_p.h.
19558 2013-08-31 Jan Hubicka <jh@suse.cz>
19560 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19563 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19564 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19565 * tree-cfg.c (verify_gimple_label): ... here.
19566 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19567 (ipa_merge_profiles): New function.
19568 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19569 (lto_input_function_body): Likewise.
19570 * ipa-utils.h (ipa_merge_profiles): Declare.
19571 * lto-streamer.h (lto_input_function_body): Update prototype.
19572 (emit_label_in_global_context_p): Remove.
19573 * lto-symtab.c: Include ipa-utils.h
19574 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19576 2013-08-31 Jan Hubicka <jh@suse.cz>
19578 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19580 2013-08-31 Jan Hubicka <jh@suse.cz>
19582 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19584 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19586 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19587 "cmp" RTX before signed_comparison_operator check to account
19588 for "code" changes.
19590 2013-08-30 Jan Hubicka <jh@suse.cz>
19592 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19593 (detect_type_change_1): Rename to ...
19594 (detect_type_change): ... this one; early return on non-polymorphic
19596 (detect_type_change_ssa): Add comp_type parameter; update
19597 use of detect_type_change.
19598 (compute_complex_assign_jump_func): Add param_type parameter;
19599 update use of detect_type_change_ssa.
19600 (compute_complex_ancestor_jump_func): Likewise.
19601 (ipa_get_callee_param_type): New function.
19602 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19603 update calls to the jump function computation functions.
19605 2013-08-30 Teresa Johnson <tejohnson@google.com>
19606 Steven Bosscher <steven@gcc.gnu.org>
19608 * cfgrtl.c (fixup_new_cold_bb): New routine.
19609 (commit_edge_insertions): Invoke fixup_partitions.
19610 (find_partition_fixes): New routine.
19611 (fixup_partitions): Ditto.
19612 (verify_hot_cold_block_grouping): Update comments.
19613 (rtl_verify_edges): Invoke find_partition_fixes.
19614 (rtl_verify_bb_pointers): Update comments.
19615 (rtl_verify_bb_layout): Ditto.
19616 * basic-block.h (probably_never_executed_edge_p): Declare.
19617 (fixup_partitions): Ditto.
19618 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19619 * bb-reorder.c (sanitize_hot_paths): New function.
19620 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19621 sanitize_hot_paths.
19622 * predict.c (probably_never_executed_edge_p): New routine.
19623 * cfg.c (check_bb_profile): Add partition insanity warnings.
19625 2013-08-30 Meador Inge <meadori@codesourcery.com>
19627 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19629 2013-08-30 Marek Polacek <polacek@redhat.com>
19631 * Makefile.in (ubsan.o): Add.
19632 (c-family/c-ubsan.o): Add.
19633 (builtins.o): Add ubsan.h dependency.
19634 * ubsan.h: New file.
19635 * ubsan.c: New file.
19636 * common.opt: Add -fsanitize=undefined option.
19637 (flag_sanitize): Add variable.
19638 (fsanitize=): Add option. Add Driver.
19639 (fsanitize=thread): Remove option.
19640 (fsanitize=address): Likewise.
19641 (static-libubsan): New option.
19642 * doc/invoke.texi: Document the new flag and -static-libubsan.
19643 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19644 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19645 * builtin-attrs.def (ATTR_COLD): Define.
19646 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19647 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19648 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19649 * flag-types.h (sanitize_code): New enum.
19650 * opts.c (common_handle_option): Parse command line arguments
19651 of -fsanitize=. Add -fsanitize=unreachable option.
19652 * varasm.c (get_variable_section): Adjust.
19653 (assemble_noswitch_variable): Likewise.
19654 (assemble_variable): Likewise.
19655 (output_constant_def_contents): Likewise.
19656 (categorize_decl_for_section): Likewise.
19657 (place_block_symbol): Likewise.
19658 (output_object_block): Likewise.
19659 * builtins.def: Likewise.
19660 * toplev.c (compile_file): Likewise.
19661 (process_options): Likewise.
19662 * cppbuiltin.c: Likewise.
19663 * tsan.c (tsan_pass): Likewise.
19664 (tsan_gate): Likewise.
19665 (tsan_gate_O0): Likewise.
19666 * cfgexpand.c (partition_stack_vars): Likewise.
19667 (expand_stack_vars): Likewise.
19668 (defer_stack_allocation): Likewise.
19669 (expand_used_vars): Likewise.
19670 * cfgcleanup.c (old_insns_match_p): Likewise.
19671 * asan.c (asan_finish_file): Likewise.
19672 (asan_instrument): Likewise.
19673 (gate_asan): Likewise.
19674 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19675 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19676 (asan_global_struct): Use pointer_sized_int_node instead
19677 calling build_nonstandard_integer_type.
19678 (initialize_sanitizer_builtins): Likewise.
19679 (asan_finish_file): Likewise.
19680 * gcc.c: Document %{%:function(args):X}.
19681 (static_spec_functions): Add sanitize.
19682 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19683 store funcval != NULL there.
19684 (do_spec_1): Adjust handle_spec_function caller.
19685 (handle_braces): Allow %:function(args) as condition.
19686 (sanitize_spec_function): New function.
19687 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19688 (LIBUBSAN_SPEC): Likewise.
19689 (LIBUBSAN_EARLY_SPEC): Likewise.
19690 (SANITIZER_SPEC): Handle libubsan.
19691 (SANITIZER_EARLY_SPEC): Likewise.
19692 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19693 instead of fsanitize=address.
19694 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19695 instead of fsanitize=address*.
19696 * builtins.c: Include ubsan.h.
19697 (fold_builtin_0): Instrument __builtin_unreachable.
19698 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19699 instead of flag_asan.
19700 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19701 (pointer_sized_int_node): Define.
19702 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19704 2013-08-30 Mike Stump <mikestump@comcast.net>
19706 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19709 2013-08-29 Jan Hubicka <jh@suse.cz>
19711 * cgraph.c (cgraph_function_body_availability): Handle weakref
19713 * passes.def: Remove pass_fixup_cfg.
19714 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19715 track when we need to remove functions.
19716 (gate_ipa_inline): Execute inlining always; add comment why.
19717 (pass_data_ipa_inline): Remove TODO_remove_functions.
19718 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19719 do not produce summaries.
19720 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19721 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19722 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19723 constant pool and vtable.
19725 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19727 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19728 New arm_neon.h's internal macros to specify 64-bit constants.
19729 Avoid using stdint.h's macros.
19731 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19733 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19734 before applying REG_P.
19736 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19738 PR tree-optimization/58277
19739 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19740 after seeing too many stmts with vdef in between dombb and current
19741 bb, invalidate everything.
19743 2013-08-30 Richard Biener <rguenther@suse.de>
19745 * fold-const.c (fold_single_bit_test): Fix overflow test.
19747 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19749 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19750 and which can live in a register, always retrieve the value on entry.
19751 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19752 passed by invisible reference specially.
19753 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19754 (vt_add_function_parameter): Correctly deal with a parameter passed by
19755 invisible reference.
19757 2013-08-30 Jan Hubicka <jh@suse.cz>
19759 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19761 2013-08-30 Richard Biener <rguenther@suse.de>
19763 PR tree-optimization/58228
19764 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19765 allow invariant loads in nested loop vectorization.
19767 2013-08-30 Richard Biener <rguenther@suse.de>
19769 PR tree-optimization/58223
19770 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19771 (has_anti_or_output_dependence): ... this and adjust to also
19772 look for output dependences.
19773 (mark_nodes_having_upstream_mem_writes): Adjust.
19774 (rdg_flag_uses): Likewise.
19776 2013-08-30 Richard Biener <rguenther@suse.de>
19778 PR tree-optimization/58010
19779 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19780 assert that we have a loop-closed PHI.
19782 2013-08-29 Jan Hubicka <jh@suse.cz>
19784 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19785 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19786 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19787 (lto_free_function_in_decl_state_for_node): New function.
19789 2013-08-29 Xinliang David Li <davidxl@google.com>
19791 * loop-unroll.c (report_unroll_peel): Minor message change.
19792 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19793 Emit alignment peeling message with default -fopt-info.
19794 (vect_loop_versioning): Emit loop version info message.
19795 * tree-vectorizer.c (vectorize_loops): Minor message change.
19796 (execute_vect_slp): Ditto.
19798 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19800 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19801 of the clone from the DECL_NAME of the original function.
19803 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19805 * passes.c (register_pass): Add overload.
19806 * tree-pass.h (register_pass): Forward declare it. Add comment.
19808 2013-08-29 Jan Hubicka <jh@suse.cz>
19810 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19811 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19812 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19813 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19814 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19815 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19816 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19817 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19819 2013-08-29 Teresa Johnson <tejohnson@google.com>
19821 * dumpfile.c (dump_loc): Output column number.
19822 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19823 * doc/invoke.texi: Document optall -fopt-info flag.
19824 * profile.c (read_profile_edge_counts): Use new dump framework.
19825 (compute_branch_probabilities): Ditto.
19826 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19827 when pass not in any opt group.
19828 * pass_manager.h (pass_manager::get_pass_profile): New method.
19829 * value-prof.c (check_counter): Use new dump framework.
19830 (check_ic_target): Ditto.
19831 * coverage.c (get_coverage_counts): Ditto.
19832 (coverage_init): Setup new dump framework.
19834 2013-08-29 Richard Biener <rguenther@suse.de>
19836 PR tree-optimization/58246
19837 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19838 handle the dominance check inside a basic-block.
19840 2013-08-29 Richard Biener <rguenther@suse.de>
19842 PR middle-end/57287
19843 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19844 of default defs that appear in abnormal PHI nodes.
19846 2013-08-29 Richard Biener <rguenther@suse.de>
19848 PR tree-optimization/57685
19849 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19850 single-use operands to avoid exponential complexity.
19852 2013-08-28 Dehao Chen <dehao@google.com>
19854 * ipa-inline.c (edge_badness): Fix integer underflow.
19856 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19858 * gtm-builtins.def (_ITM_free): Declare leaf.
19860 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19863 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19864 (*tls_local_dynamic_base_64_largepic): Likewise.
19865 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19866 Remove predicate from call operand.
19867 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19868 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19870 2013-08-28 Jeff Law <law@redhat.com>
19872 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19873 checks for the number of predecessors and successors allowed.
19874 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19875 which require copying a joiner block if there is a request which
19876 is a subpath that requires no joiner block copying.
19878 2013-08-28 Jan Hubicka <jh@suse.cz>
19880 * lto-streamer-out.c (DFS_write_tree_body): Drop
19881 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19882 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19883 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19884 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19885 Do not read DECL_ERROR_ISSUED.
19886 (unpack_ts_decl_with_vis_value_fields): Do not read
19888 (lto_input_ts_binfo_tree_pointers): Do not read
19889 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19890 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19891 write DECL_ERROR_ISSUED..
19892 (pack_ts_decl_with_vis_value_fields): Do not write
19894 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19895 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19896 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19897 * tree.h (tree_decl_common): Update comment.
19898 (DECL_ERROR_ISSUED): Remove.
19900 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19902 PR middle-end/58257
19903 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19905 2013-08-28 Jan Hubicka <jh@suse.cz>
19907 * builtins.def (free): Declare leaf.
19909 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19911 * gdbhooks.py: New.
19912 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19913 * configure: Regenerate.
19915 2013-08-27 Martin Jambor <mjambor@suse.cz>
19917 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19918 (ipa_ancestor_jf_data): Likewise.
19919 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19920 (ipa_get_jf_pass_through_type_preserved): New function.
19921 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19922 (ipa_get_jf_ancestor_type_preserved): New function.
19923 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19924 (ipa_get_jf_ancestor_result): Likewise.
19925 (propagate_vals_accross_pass_through): Use
19926 ipa_get_jf_pass_through_result to do all the value mappings.
19927 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19928 type_preserved flag.
19929 (ipa_set_jf_cst_copy): New function.
19930 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19931 (ipa_set_jf_arith_pass_through): Likewise.
19932 (ipa_set_ancestor_jf): Likewise.
19933 (compute_complex_assign_jump_func): Set type_preserved instead of
19935 (ipa_compute_jump_functions_for_edge): Likewise.
19936 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19937 (update_jump_functions_after_inlining): Update type_preserved.
19938 Explicitely create jump functions when combining one with pass_through.
19939 (ipa_write_jump_function): Stream the type_preserved flags.
19940 (ipa_read_jump_function): Likewise.
19942 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19943 Aldy Hernandez <aldyh@redhat.com>
19945 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19946 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19947 * function.h (struct function): Add has_force_vect_loops and
19949 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19950 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19952 * gimple.def: Update CLAUSES comments.
19953 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19954 (gimple_build_omp_for): Add argument to prototype.
19955 (gimple_omp_for_kind): New.
19956 (gimple_omp_for_set_kind): New.
19957 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19958 GOVD_DATA_SHARE_CLASS.
19959 (enum omp_region_type): Add ORT_SIMD.
19960 (gimple_add_tmp_var): Handle ORT_SIMD.
19961 (gimplify_var_or_parm_decl): Same.
19962 (is_gimple_stmt): Same.
19963 (omp_firstprivatize_variable): Same.
19964 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19965 (omp_notice_variable): Handle ORT_SIMD.
19966 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19967 (omp_check_private): Handle ORT_SIMD.
19968 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19969 OMP_CLAUSE_SAFELEN.
19970 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19971 Handle OMP_CLAUSE_LASTPRIVATE.
19972 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19973 OMP_CLAUSE_SAFELEN.
19974 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19975 (gimplify_expr): Handle OMP_SIMD.
19976 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19977 (expand_GOMP_SIMD_VF): New.
19978 (expand_GOMP_SIMD_LAST_LANE): New.
19979 * internal-fn.def (GOMP_SIMD_LANE): New.
19980 (GOMP_SIMD_VF): New.
19981 (GOMP_SIMD_LAST_LANE): New.
19982 * omp-low.c: Include target.h.
19983 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19984 OMP_CLAUSE_SAFELEN.
19985 (check_omp_nesting_restrictions): Same.
19987 (lower_rec_simd_input_clauses): New.
19988 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19990 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19991 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19992 (expand_omp_build_assign): New.
19993 (expand_omp_for_init_counts): New.
19994 (expand_omp_for_init_vars): New.
19995 (extract_omp_for_update_vars): New.
19996 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19997 and rewrite accordingly.
19998 (expand_omp_simd): New.
19999 (expand_omp_for): Use expand_omp_simd.
20000 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20001 (lower_omp_for): Do not lower the body.
20002 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20003 in their own loops.
20004 * tree-flow.h (find_omp_clause): Remove prototype.
20005 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20006 forcing vectorization of the loop, or if flag_tree_vectorize.
20007 (gate_tree_if_conversion): Similarly.
20008 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20009 gimple_build_omp_for.
20010 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20011 * tree-parloops (create_parallel_loop): Pass kind argument to
20012 gimple_build_omp_for.
20013 * tree-pretty-print.c (dump_omp_clause): Add cases for
20014 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20015 OMP_CLAUSE__SIMDUID_.
20016 (dump_generic_node): Handle OMP_SIMD.
20017 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20018 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20019 unroll OMP_SIMD loops here.
20020 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20021 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20023 (vect_analyze_data_refs): Handle simd loops.
20024 * tree-vect-loop.c (vectorizable_live_operation): Handle
20026 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20027 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20028 (vectorizable_load): Same.
20029 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20030 (struct simduid_to_vf): New.
20031 (simduid_to_vf::hash): New.
20032 (simduid_to-vf::equal): New.
20033 (struct simd_array_to_simduid): New.
20034 (simd_array_to_simduid::hash): New.
20035 (simd_array_to_simduid::equal): New.
20036 (adjust_simduid_builtins): New.
20037 (struct note_simd_array_uses_struct): New.
20038 (note_simd_array_uses_cb): New.
20039 (note_simd_array_uses): New.
20040 (vectorize_loops): Handle simd hints and adjust simd builtins
20042 * tree-vectorizer.h (struct _stmt_vec_info): Add
20043 simd_lane_access_p field.
20044 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20045 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20046 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20047 (omp_clause_code_name): Same.
20048 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20049 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20050 * tree.def (OMP_SIMD): New entry.
20051 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20052 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20053 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20054 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20055 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20056 (OMP_CLAUSE_LINEAR_STEP): New.
20057 (OMP_CLAUSE_SAFELEN_EXPR): New.
20058 (OMP_CLAUSE__SIMDUID__DECL): New.
20059 (find_omp_clause): New prototype.
20061 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20063 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20064 Haswell processor detection.
20066 2013-08-27 Christian Widmer <shadow@umbrox.de>
20069 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20070 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20071 AVX2 capable processors.
20073 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20075 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20076 of vget_low_* with implementations in terms of other intrinsics.
20078 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20080 PR middle-end/57219
20081 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20082 values to -1, 0 and 1.
20084 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20086 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20087 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20088 (<optab><mode>3_insn): Remove.
20089 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20090 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20091 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20092 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20093 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20094 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20095 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20096 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20097 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20098 (ror<mode>3_insn): Likewise.
20099 * config/aarch64/predicates.md (aarch64_simd_register): New.
20101 2013-08-27 Richard Biener <rguenther@suse.de>
20103 PR tree-optimization/57521
20104 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20105 one edge is non-critical.
20106 (find_phi_replacement_condition): Make sure to use a non-critical
20107 edge. Cleanup and remove old bug workarounds.
20108 (bb_postdominates_preds): Remove.
20109 (if_convertible_loop_p_1): Do not compute post-dominators.
20110 (combine_blocks): Do not free post-dominators.
20111 (main_tree_if_conversion): Likewise.
20112 (pass_data_if_conversion): Add TODO_verify_ssa.
20114 2013-08-27 DJ Delorie <dj@redhat.com>
20116 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20118 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20120 * function.c (assign_parm_find_data_types): Set passed_mode and
20121 nominal_mode to the TYPE_MODE of nominal_type for the built
20122 pointer type in case of the struct-pass-by-reference.
20124 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20126 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20127 (UINT16_TYPE): Change default to "unsigned int".
20129 * config/avr/avr.opt (mfract-convert-truncate): New option.
20130 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20131 is set, round negative fractional integers according to n1169
20132 when converting to integer types.
20134 2013-08-26 Jan Hubicka <jh@suse.cz>
20136 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20137 methods can not be called indirectly when their address is not taken.
20139 2013-08-26 Jan Hubicka <jh@suse.cz>
20141 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20144 2013-08-26 Jan Hubicka <jh@suse.cz>
20146 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20149 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20151 * reload.c (find_valid_class): Allow classes that do not include
20152 FIRST_PSEUDO_REGISTER - 1.
20154 2013-08-26 Jan Hubicka <jh@suse.cz>
20156 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20157 fix edge count/frequency when speculation failed; fix type check
20158 for the direct call.
20160 2013-08-26 Jan Hubicka <jh@suse.cz>
20162 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20164 2013-08-26 Jan Hubicka <jh@suse.cz>
20166 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20167 to be changed by edge redirection.
20169 2013-08-26 Jan Hubicka <jh@suse.cz>
20171 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20172 formating; add sanity check.
20173 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20174 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20175 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20176 (resolve_noninline_speculation): Update callee keys, too.
20178 2013-08-26 Jan Hubicka <jh@suse.cz>
20180 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20181 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20183 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20185 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20188 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20190 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20191 (x86_64_elf_select_section): Ditto.
20192 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20194 (ix86_pass_by_reference): Ditto.
20195 (output_set_got): Ditto.
20196 (ix86_unary_operator_ok): Ditto.
20197 (ix86_expand_builtin): Ditto.
20199 2013-08-23 Jan Hubicka <jh@suse.cz>
20201 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20203 2013-08-23 Jan Hubicka <jh@suse.cz>
20205 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20206 (tree_decl_with_vis): Add FINAL field.
20208 2013-08-23 Jeff Law <law@redhat.com>
20210 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20211 the debugging dump when the expression is fully redundant.
20213 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20215 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20216 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20217 * pretty-print.c (pp_formatted_text_data): Likewise.
20218 (pp_write_text_to_stream): Likewise.
20219 (pp_write_text_as_dot_label_to_stream): Likewise.
20220 (pp_append_r): Likewise.
20221 (pp_format): Likewise.
20222 (pp_flush): Likewise.
20223 (pp_clear_output_area): Likewise.
20224 (pp_append_text): Likewise.
20225 (pp_formatted_text): Likewise.
20226 (pp_remaining_character_count_for_line): Likewise.
20227 (pp_newline): Likewise.
20228 (pp_character): Likewise.
20229 (output_buffer::~output_buffer): Define.
20230 (pretty_printer::~pretty_printer): Destruct output buffer.
20231 * pretty-print.h (output_buffer::~output_buffer): Declare.
20232 (pretty_printer::~pretty_printer): Declare virtual.
20234 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20237 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20238 HOST_WIDE_INT_M1U): New macros.
20239 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20240 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20241 unsigned -1 for lshift.
20242 * cse.c (cse_insn): Likewise.
20243 * double-int.c (rshift_double, lshift_double): Likewise.
20244 * builtins.c (fold_builtin_bitop): Likewise.
20245 * combine.c (force_to_mode): Likewise.
20246 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20247 * simplify-rtx.c (simplify_const_unary_operation,
20248 simplify_const_binary_operation): Likewise.
20249 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20250 check_va_list_escapes): Likewise.
20251 * rtlanal.c (nonzero_bits1): Likewise.
20252 * expmed.c (expand_smod_pow2): Likewise.
20253 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20255 2013-08-23 Jan Hubicka <jh@suse.cz>
20257 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20258 as having address taken.
20260 2013-08-23 Jan Hubicka <jh@suse.cz>
20262 * ipa-utils.h (method_class_type): Declare.
20263 * ipa-devirt.c (method_class_type): Export.
20265 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20266 do not walk base classes of anonymous types.
20268 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20270 PR rtl-optimization/58220
20271 PR regression/58221
20272 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20273 handle SEQUENCE insns properly.
20275 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20277 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20279 (pp_newline_and_indent): Likewise.
20280 (pp_separate_with): Likewise.
20281 * pretty-print.c (pp_newline_and_flush): Define.
20282 (pp_newline_and_indent): Likewise.
20283 (pp_separate_with): Likewise.
20285 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20288 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20289 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20291 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20293 * config/i386/predicates.md (ext_sse_reg_operand): New.
20294 * config/i386/i386.md (*movti_internal): Use
20295 predicate to determine if EVEX is needed.
20296 (*movsi_internal): Ditto.
20297 (*movdf_internal): Ditto.
20298 (*movsf_internal): Ditto.
20299 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20301 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20303 PR tree-optimization/58209
20304 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20305 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20306 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20307 emit POINTER_PLUS_EXPR.
20308 (create_tailcall_accumulator): For pointer result type accumulate in
20311 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20313 * configure.ac: Add backslashes missing from the last change.
20314 * configure: Regenerate.
20316 2013-08-22 Jan Hubicka <jh@susue.cz>
20318 * ipa.c (function_and_variable_visibility): First remember function
20319 was global and then make it local.
20321 2013-08-22 Julian Brown <julian@codesourcery.com>
20323 * configure.ac: Add aarch64 to list of arches which use "nop" in
20325 * configure: Regenerate.
20327 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20329 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20330 gnu_libc_has_function.
20331 * config/s390/tpf.h: Likewise.
20333 2013-08-22 Jan Hubicka <jh@susue.cz>
20335 * timevar.c (validate_phases): Add cast.
20337 2013-08-22 Jan Hubicka <jh@susue.cz>
20339 * timevar.c (validate_phases): Use size_t for memory.
20340 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20342 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20344 * pretty-print.h (output_buffer::output_buffer): Declare.
20345 (pretty_printer::pretty_printer): Likewise.
20346 (pp_construct): Remove.
20347 * pretty-print.c (output_buffer::output_buffer): Define.
20348 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20349 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20350 (print_gimple_expr): Likewise.
20351 (print_gimple_seq): Likewise.
20352 (gimple_dump_bb): Likewise.
20353 * sched-vis.c (dump_value_slim): Likewise.
20354 (dump_insn_slim): Likewise.
20355 (dump_rtl_slim): Likewise.
20356 (str_pattern_slim): Likewise.
20357 * tree-mudflap.c (mf_varname_tree): Likewise.
20358 * graph.c (print_graph_cfg): Likewise.
20359 (start_graph_dump): Likewise.
20360 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20362 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20363 pretty printer initialization.
20364 * coretypes.h (diagnostic_context): Remove superflous type alias
20366 (pretty_printer): Likewise. Declare directly as a class.
20367 (pretty_print_info): Remove declaration as class.
20368 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20369 and pp_clear_output_area.
20370 (asan_add_global): Likewise.
20372 2013-08-22 Jan Hubicka <jh@suse.cz>
20374 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20375 * ipa-utils.h (update_type_inheritance_graph): Declare.
20376 (possible_polymorphic_call_target_p): Declare.
20377 (possible_polymorphic_call_target_p): New.
20378 * ipa-devirt.c: Update toplevel comments.
20379 (cached_polymorphic_call_targets): Move up.
20380 (odr_type_d): Move ID down.
20381 (polymorphic_type_binfo_p): Update comment.
20382 (odr_hasher::remove): Likewise;
20383 (get_odr_type): Set anonymous_namespace.
20384 (dump_odr_type): Dump it.
20385 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20386 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20387 (record_binfo): Add comment.
20388 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20390 (devirt_node_removal_hook): Do not iCE when cache is freed.
20391 (possible_polymorphic_call_target_p): New predicate.
20392 (update_type_inheritance_graph): New function.
20394 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20396 Sergey Lega <sergey.s.lega@intel.com>
20397 Anna Tikhonova <anna.tikhonova@intel.com>
20398 Ilya Tocar <ilya.tocar@intel.com>
20399 Andrey Turetskiy <andrey.turetskiy@intel.com>
20400 Ilya Verbin <ilya.verbin@intel.com>
20401 Kirill Yukhin <kirill.yukhin@intel.com>
20402 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20404 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20405 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20406 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20407 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20408 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20409 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20410 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20411 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20412 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20413 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20414 OPT_mavx512pf, OPT_mavx512er cases.
20415 * config/i386/constraints.md (v): New constraint.
20416 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20417 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20418 (bit_AVX512CD): New.
20419 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20420 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20421 * config/i386/i386-c.c (ix86_target_macros_internal):
20422 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20424 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20425 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20426 * config/i386/i386.c (regclass_map, dbx_register_map)
20427 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20428 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20429 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20430 -mavx512pf options.
20431 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20432 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20433 -mavx512pf options. Fix formatting.
20434 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20435 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20436 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20437 -mavx512cd, -mavx512pf options.
20438 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20439 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20440 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20442 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20443 (ix86_set_reg_reg_cost): Ditto.
20444 (x86_order_regs_for_local_alloc): Ditto.
20445 (MAX_VECT_LEN): Extend to 64-byte.
20446 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20447 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20448 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20449 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20450 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20451 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20452 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20453 (SSE_REG_MODE_P): Support new modes.
20454 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20455 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20456 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20457 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20458 (REG_CLASS_CONTENTS): Add new registers.
20459 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20460 (EXT_REX_SSE_REGNO_P): New.
20461 (HI_REGISTER_NAMES): Add new registers.
20462 * config/i386/i386.md: Define constants for new registers.
20463 (mode): Add new 512-bit modes.
20464 (prefix): Support evex prefix.
20465 (isa): Support avx512f, noavx512f, fma_avx512f.
20466 (ssemodesuffix): Add new 512-bit modes.
20468 (*movxi_internal_avx512f): Ditto.
20469 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20471 (*movsi_internal): Likewise.
20472 (*movdf_internal): Likewise.
20473 (*movsf_internal): Likewise.
20474 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20475 (<code><mode>3): Likewise.
20476 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20478 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20479 with the new constraint "v".
20480 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20482 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20483 with the new constraint "v".
20484 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20485 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20486 (*<plusminus_insn><mode>3): Likewise.
20487 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20488 (*mul<mode>3): Likewise.
20489 (<sse>_vmmul<mode>3): Likewise.
20490 (<sse>_div<mode>3): Likewise.
20491 (<sse>_vmdiv<mode>3): Likewise.
20492 (<sse>_sqrt<mode>2): Likewise.
20493 (<sse>_vmsqrt<mode>2): Likewise.
20494 (*<code><mode>3_finite): Likewise.
20495 (*<code><mode>3) <smaxmin>: Likewise.
20496 (<sse>_vm<code><mode>3): Likewise.
20497 (*<code><mode>3) <any_logic>: Likewise.
20498 (*fma_fmadd_<mode>): Likewise.
20499 (*fma_fmsub_<mode>): Likewise.
20500 (*fma_fnmadd_<mode>): Likewise.
20501 (*fma_fnmsub_<mode>): Likewise.
20502 (*fma_fmaddsub_<mode>): Likewise.
20503 (*fma_fmsubadd_<mode>): Likewise.
20504 (*fmai_fmadd_<mode>): Likewise.
20505 (*fmai_fmsub_<mode>): Likewise.
20506 (*fmai_fnmadd_<mode>): Likewise.
20507 (*fmai_fnmsub_<mode>): Likewise.
20508 (sse_cvtsi2ss): Likewise.
20509 (sse_cvtsi2ssq): Likewise.
20510 (sse_cvtss2si): Likewise.
20511 (sse_cvtss2si_2): Likewise.
20512 (sse_cvtss2siq): Likewise.
20513 (sse_cvtss2siq_2): Likewise.
20514 (sse_cvttss2si): Likewise.
20515 (sse_cvtss2siq_2): Likewise.
20516 (float<sseintvecmodelower><mode>2): Likewise.
20517 (sse2_cvtsd2si_2): Likewise.
20518 (sse2_cvtsd2siq_2): Likewise.
20519 (*<plusminus_insn><mode>3): Likewise.
20520 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20521 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20522 (ashr<mode>3): Likewise.
20523 (<shift_insn><mode>3): Likewise.
20524 (avx2_<code><mode>3): Likewise.
20525 (*avx2_<code><mode>3): Likewise.
20526 (*andnot<mode>3): Likewise.
20527 (*<code><mode>3) <any_logic>: Likewise.
20528 (abs<mode>2): Likewise.
20529 (avx2_permvar<mode>): Likewise.
20530 (avx2_perm<mode>_1): Likewise.
20531 (*avx_vpermilp<mode>): Likewise.
20532 (avx_vpermilvar<mode>3): Likewise.
20533 (avx2_ashrv<mode>): Likewise.
20534 (avx2_<shift_insn>v<mode>): Likewise.
20535 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20537 * doc/rtl.texi: Document XImode.
20539 2013-08-21 Jeff Law <law@redhat.com>
20541 * tree-flow.h (register_jump_thread): Pass vector of edges
20542 instead of each important edge.
20543 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20544 thread path into a vector and pass that to register_jump_thread.
20545 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20546 passed in edge vector to the current 3-edge form.
20549 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20551 * dce.c (fini_dce): Call df_analyze again just in case
20552 delete_unmarked_insns removed anything.
20554 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20556 * reload.h (struct reg_equivs): Rename to ..
20557 (struct reg_equivs_s): .. this.
20559 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20561 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20563 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20565 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20567 2013-08-21 Jeff Law <law@redhat.com>
20569 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20570 simplify assignments too. If the RHS collapses to a singleton
20571 range, then return the value for the range.
20573 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20575 * config/i386/sse.md (V16): Rename to...
20577 (mov<mode>): Update iterator name.
20578 (*mov<mode>_internal): Ditto.
20579 (push<mode>1): Ditto.
20580 (movmisalign<mode>): Ditto.
20582 2013-08-20 Jan Hubicka <jh@suse.cz>
20585 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20586 entry for direct edges.
20587 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20589 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20591 Revert my last two changes, r201865 and r201864:
20594 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20596 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20597 instances can own GC refs.
20599 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20600 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20601 (gcc::context::gt_pch_nx): Likewise.
20602 (gcc::context::gt_pch_nx): Likewise.
20603 * ggc.h (gt_ggc_mx <T>): New.
20604 (gt_pch_nx_with_op <T>): New.
20605 (gt_pch_nx <T>): New.
20606 * passes.c (opt_pass::gt_ggc_mx): New.
20607 (opt_pass::gt_pch_nx): New.
20608 (opt_pass::gt_pch_nx_with_op): New.
20609 (pass_manager::gt_ggc_mx): New.
20610 (pass_manager::gt_pch_nx): New.
20611 (pass_manager::gt_pch_nx_with_op): New.
20612 (pass_manager::operator new): Use
20613 ggc_internal_cleared_alloc_stat rather than xcalloc.
20614 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20615 (pass_manager::gt_ggc_mx): New.
20616 (pass_manager::gt_pch_nx): New.
20617 (pass_manager::gt_pch_nx_with_op): New.
20618 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20619 (opt_pass::operator new): New.
20620 (opt_pass::gt_ggc_mx): New.
20621 (opt_pass::gt_pch_nx): New.
20622 (opt_pass::gt_pch_nx_with_op): New.
20625 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20627 * Makefile.in (GTFILES): Add context.h.
20628 * context.c (gcc::context::operator new): New.
20629 (gcc::context::gt_ggc_mx): New.
20630 (gcc::context::gt_pch_nx): New.
20631 (gcc::context::gt_pch_nx): New.
20632 * context.h (gcc::context): Add GTY((user)) marking.
20633 (gcc::context::operator new): New.
20634 (gcc::context::gt_ggc_mx): New.
20635 (gcc::context::gt_pch_nx): New.
20636 (gcc::context::gt_pch_nx): New.
20637 (g): Add GTY marking.
20638 (gt_ggc_mx (gcc::context *)): New.
20639 (gt_pch_nx (gcc::context *)): New.
20640 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20641 void *cookie)): New.
20642 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20644 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20646 * dce.c (fini_dce): Call df_analyze again just in case
20647 delete_unmarked_insns removed anything.
20649 2013-08-20 Teresa Johnson <tejohnson@google.com>
20651 PR rtl-optimizations/57451
20652 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20653 from crossing split section boundaries.
20655 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20657 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20658 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20659 with MULTLIB_DEFAULTS.
20661 2013-08-20 Nick Clifton <nickc@redhat.com>
20663 * target.def (narrow_volatile_bitfield): Note that the default
20664 value is false, not !TARGET_STRICT_ALIGN.
20665 * doc/tm.texi: Regenerate.
20667 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20669 Fix LIB_SPEC for systems without libpthread.
20671 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20672 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20674 * config/i386/linux-common.h: Likewise.
20675 * config/mips/linux-common.h: Likewise.
20677 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20679 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20682 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20684 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20685 instances can own GC refs.
20687 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20688 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20689 (gcc::context::gt_pch_nx): Likewise.
20690 (gcc::context::gt_pch_nx): Likewise.
20691 * ggc.h (gt_ggc_mx <T>): New.
20692 (gt_pch_nx_with_op <T>): New.
20693 (gt_pch_nx <T>): New.
20694 * passes.c (opt_pass::gt_ggc_mx): New.
20695 (opt_pass::gt_pch_nx): New.
20696 (opt_pass::gt_pch_nx_with_op): New.
20697 (pass_manager::gt_ggc_mx): New.
20698 (pass_manager::gt_pch_nx): New.
20699 (pass_manager::gt_pch_nx_with_op): New.
20700 (pass_manager::operator new): Use
20701 ggc_internal_cleared_alloc_stat rather than xcalloc.
20702 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20703 (pass_manager::gt_ggc_mx): New.
20704 (pass_manager::gt_pch_nx): New.
20705 (pass_manager::gt_pch_nx_with_op): New.
20706 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20707 (opt_pass::operator new): New.
20708 (opt_pass::gt_ggc_mx): New.
20709 (opt_pass::gt_pch_nx): New.
20710 (opt_pass::gt_pch_nx_with_op): New.
20712 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20714 * Makefile.in (GTFILES): Add context.h.
20715 * context.c (gcc::context::operator new): New.
20716 (gcc::context::gt_ggc_mx): New.
20717 (gcc::context::gt_pch_nx): New.
20718 (gcc::context::gt_pch_nx): New.
20719 * context.h (gcc::context): Add GTY((user)) marking.
20720 (gcc::context::operator new): New.
20721 (gcc::context::gt_ggc_mx): New.
20722 (gcc::context::gt_pch_nx): New.
20723 (gcc::context::gt_pch_nx): New.
20724 (g): Add GTY marking.
20725 (gt_ggc_mx (gcc::context *)): New.
20726 (gt_pch_nx (gcc::context *)): New.
20727 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20728 void *cookie)): New.
20729 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20731 2013-08-20 Alan Modra <amodra@gmail.com>
20734 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20735 (rs6000_emit_epilogue): Likewise.
20737 2013-08-19 Dehao Chen <dehao@google.com>
20739 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20741 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20742 Jakub Jelinek <jakub@redhat.com>
20744 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20745 (BUILT_IN_FABSD64): Likewise.
20746 (BUILT_IN_FABSD128): Likewise.
20747 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20748 (fold_builtin_1): Likewise.
20749 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20750 destination and source operands.
20751 (*abstd2_fpr): Likewise.
20752 (*nabstd2_fpr): Likewise.
20754 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20756 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20759 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20761 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20764 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20766 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20767 * builtins.c (default_libc_has_function): New.
20768 (gnu_libc_has_function): Ditto.
20769 (no_c99_libc_has_function): Ditto.
20770 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20771 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20772 (fold_builtin_sincos): Likewise.
20773 (fold_builtin_cexp): Likewise.
20774 * builtins.def (DEF_C94_BUILTIN): Likewise.
20775 (DEF_C99_BUILTIN): Likewise.
20776 (DEF_C99_C90RES_BUILTIN): Likewise.
20777 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20778 definitions to using this define.
20779 * config/darwin-protos.h (darwin_libc_has_function): New.
20780 * config/darwin.c (darwin_libc_has_function): Ditto.
20781 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20782 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20783 * config/darwin.h: Ditto.
20784 * config/elfos.h: Ditto.
20785 * config/freebsd.h: Ditto.
20786 * config/i386/cygming.h: Ditto.
20787 * config/i386/djgpp.h: Ditto.
20788 * config/i386/i386-interix.h: Ditto.
20789 * config/microblaze/microblaze.h: Ditto.
20790 * config/mmix/mmix.h: Ditto.
20791 * config/gnu-user.h: Ditto.
20792 * config/ia64/hpux.h: Ditto.
20793 * config/pa/pa-hpux.h: Ditto.
20794 * config/pdp11/pdp11.h: Ditto.
20795 * config/picochip/picochip.h: Ditto.
20796 * config/linux.h: Ditto.
20797 * config/netbsd.h: Ditto.
20798 * config/openbsd.h: Ditto.
20799 * config/rs6000/aix43.h: Ditto.
20800 * config/rs6000/aix51.h: Ditto.
20801 * config/rs6000/aix52.h: Ditto.
20802 * config/rs6000/aix53.h: Ditto.
20803 * config/rs6000/aix61.h: Ditto.
20804 * config/rs6000/darwin.h: Ditto.
20805 * config/rs6000/linux.h: Ditto.
20806 * config/rs6000/linux64.h: Ditto.
20807 * config/s390/tpf.h: Ditto.
20808 * config/sol2-10.h: Ditto.
20809 * config/sol2.h: Ditto.
20810 * config/vms/vms.h: Ditto.
20811 * config/vxworks.h: Ditto.
20812 * config/linux-android.c (linux_android_libc_has_function):
20813 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20814 * config/linux-protos.h (linux_android_libc_has_function):
20816 * config/i386/i386.c (ix86_libc_has_function): New.
20817 * config/i386/i386-protos.h
20818 (ix86_libc_has_function): New declaration.
20819 * config/i386/i386.md
20820 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20821 ("isinf<mode>2): Likewise.
20822 * convert.c (convert_to_integer): Using new target hook
20823 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20824 TARGET_C99_FUNCTIONS.
20825 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20826 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20827 * coretypes.h (function_class): New enum for different
20828 classes of functions.
20829 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20830 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20831 (TARGET_HAS_SINCOS): Likewise.
20832 (TARGET_LIBC_HAS_FUNCTION): New.
20833 * doc/tm.texi: Regenerated.
20834 * targhooks.h (default_libc_has_function): New declaration.
20835 (no_c99_libc_has_function): Ditto.
20836 (gnu_libc_has_function): Ditto.
20837 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20838 and TARGET_HAS_SINCOS.
20840 2013-08-18 Jan Hubicka <jh@suse.cz>
20842 * Makeifle-in (ipa-devirt.o): New.
20843 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20844 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20845 (analyze_functions): Look into possible targets of polymorphic call.
20846 * dumpfile.c (dump_files): Add type-inheritance dump.
20847 * dumpfile.h (TDI_inheritance): New.
20848 * ipa-devirt.c: New file.
20849 * ipa-utils.h (odr_type_d): Forward declare.
20850 (odr_type): New type.
20851 (build_type_inheritance_graph): Declare.
20852 (possible_polymorphic_call_targets): Declare and introduce inline
20853 variant when only edge is pased.
20854 (dump_possible_polymorphic_call_targets): Likewise.
20855 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20856 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20857 (types_same_for_odr): ... here.
20858 * tree.h (type_in_anonymous_namespace_p): Declare.
20860 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20862 PR tree-optimization/58006
20863 * tree-parloops.c (take_address_of): Don't ICE if get_name
20865 (eliminate_local_variables_stmt): Remove clobber stmts.
20867 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20869 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20870 error message is issued for an alias to undefined symbol.
20872 2013-08-18 Jan Hubicka <jh@suse.cz>
20874 * cgraph.c (cgraph_create_indirect_edge): Discover
20875 polymorphic calls and record basic info into indirect_info.
20876 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20877 devirtualization, ignore objc function calls.
20878 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20879 call with no parm index info.
20880 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20881 * tree.c (virtual_method_call_p): New function.
20882 * tree.h (virtual_method_call_p): Declare.
20884 2013-08-16 Jan Hubicka <jh@suse.cz>
20886 PR middle-end/58179
20887 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20889 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20891 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20894 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20896 * gengtype.c (type_for_name): Add special-case support for
20897 locating types within the "gcc::" namespace.
20898 (open_base_files): Emit a "using namespace gcc" directive.
20900 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20903 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20904 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20906 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20907 array instead of each individual operand as a separate argument.
20908 (emit_fusion_gpr_load): Likewise.
20909 (expand_fusion_gpr_load): Add new function declaration.
20911 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20912 signature to have the operands passed as an array, instead of as
20913 separate arguments. Allow ZERO_EXTEND to be in the memory
20914 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20915 depend on the register live/dead flags when peepholes are run.
20916 (expand_fusion_gpr_load): New function to be called from the
20917 peephole2 pass, to change the register that addis sets to be the
20919 (emit_fusion_gpr_load): Change the calling signature to have the
20920 operands passed as an array, instead of as separate arguments.
20921 Allow ZERO_EXTEND to be in the memory address, and also
20922 SIGN_EXTEND if -mpower8-fusion-sign.
20924 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20925 unspec enumeration.
20926 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20927 adjust the register addis loads up in the peephole2 pass. Do not
20928 depend on the register live/dead state when the peephole pass is done.
20930 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20932 * gengtype.c (create_user_defined_type): Ensure that the kind
20933 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20934 declaration is seen before the GTY((user)) marking.
20936 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20939 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20941 2013-08-16 Jan Hubicka <jh@suse.cz>
20943 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20944 arugment expected_type.
20945 (gimple_fold_call): Use it.
20946 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20947 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20948 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20949 (try_make_edge_direct_virtual_call): Likewise.
20950 * tree.c (obj_type_ref_class): New.
20951 * tree.h (obj_type_ref_class): Use it.
20953 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20955 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20956 (rtl_slim_pp): Likewise.
20957 (init_rtl_slim_pretty_print): Likewise.
20958 (dump_value_slim): Don't call it. Use local pretty printer.
20959 (dump_insn_slim): Likewise.
20960 (dump_rtl_slim): Likewise.
20961 (str_pattern_slim): Likewise.
20962 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20965 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20967 PR tree-optimization/58164
20968 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20969 walk gimple_goto_dest of GIMPLE_GOTO.
20971 PR tree-optimization/58165
20972 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20973 bi_call must be the last stmt in a bb, don't split_block, instead
20974 use fallthru edge from it and give up if there is none.
20975 Release conds vector when returning early.
20977 2013-08-14 Xinliang David Li <davidxl@google.com>
20979 * config/i386/i386.c (ix86_option_override_internal):
20980 Remove unused variable and field.
20982 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20985 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20986 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20987 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20988 and Linux, correct BLKmode alignment when 128-bit alignment is
20989 required and compatibility flag is not set.
20990 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20991 for zero-size arguments when compatibility flag is not set.
20993 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20995 PR tree-optimization/58145
20996 * tree-sra.c (build_ref_for_offset): If prev_base has
20997 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20999 2013-08-14 Xinliang David Li <davidxl@google.com>
21001 * config/i386/i386.c (ix86_option_override_internal):
21002 Fix uninitialized variable error.
21004 2013-08-14 Xinliang David Li <davidxl@google.com>
21006 * config/i386/i386.opt: Define two new options.
21007 * config/i386/x86-tune.def: Add arch selector field in macros.
21008 * config/i386/i386.h: Adjust macro definition.
21009 * config/i386/i386.c (ix86_option_override_internal):
21011 (parse_mtune_ctrl_str): New function.
21012 (set_ix86_tune_features): New function.
21013 (ix86_function_specific_restore): Call the new helper function.
21015 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21017 PR rtl-optimization/57662
21018 * sel-sched.c (code_motion_process_successors): When the current insn
21019 is removed after the recursive traversal, break from the loop.
21020 Add comments and debug printouts.
21022 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21023 Alexandre Oliva <aoliva@redhat.com>
21026 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21027 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21028 there also UNSPEC_PLTOFF.
21030 2013-08-14 Marek Polacek <polacek@redhat.com>
21032 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21033 NUM_CONDITIONS bit positions.
21035 2013-08-13 Cary Coutant <ccoutant@google.com>
21037 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21038 (attr_checksum): Hash vector contents instead of pointer.
21039 (attr_checksum_ordered): Likewise.
21041 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21043 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21044 when Pmode != word_mode. Add length_address attribute.
21045 (sse3_monitor_<mode>): Merge from sse3_monitor and
21046 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21047 Pmode != word_mode. Update insn length attribute.
21048 * config/i386/i386.c (ix86_option_override_internal): Update
21049 ix86_gen_monitor selection for merged sse3_monitor insn.
21051 2013-08-13 Julian Brown <julian@codesourcery.com>
21053 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21054 perform invalid legitimization on greater-than-word-size modes for
21055 TARGET_E500_DOUBLE.
21057 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21059 * ira.c (setup_class_translate_array): Use aclass instead of cl
21060 for classes not fully covered by allocno classes.
21062 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21064 PR tree-optimization/57661
21065 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21066 * tree-inline.c (tree_function_versioning): Initialize it.
21067 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21068 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21069 that is not being copied.
21072 * asan.c (instrument_strlen_call): Fix typo in comment.
21073 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21075 2013-08-13 Steve Ellcey <sellcey@mips.com>
21077 * config/mips/mips.md (prefetch): Use lw instead of ld on
21078 loongson in 32bit mode.
21080 2013-08-13 Nick Clifton <nickc@redhat.com>
21082 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21084 2013-08-13 Jan Hubicka <jh@suse.cz>
21086 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21087 introduced edge; fix typo in sanity check.
21088 (cgraph_resolve_speculation): Export; improve diagnostic.
21089 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21090 speculation at type mismatch.
21091 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21092 (cgraph_resolve_speculation): Declare.
21093 (symtab_can_be_discarded): New function.
21094 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21095 * ipa-inline-transform.c (speculation_removed): New global var.
21096 (clone_inlined_nodes): See if speculation can be removed.
21097 (inline_call): If speculations was removed, we growths may not match.
21098 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21099 (speculation_useful_p): New function.
21100 (resolve_noninline_speculation): New function.
21101 (inline_small_functions): Resolve useless speculations.
21102 * ipa-inline.h (speculation_useful_p): Declare
21103 * ipa.c (can_replace_by_local_alias): Simplify.
21104 (ipa_profile): Produce speculative calls in non-lto, too;
21105 add simple cost model; produce local aliases.
21107 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21109 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21112 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21114 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21116 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21118 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21119 iterator instead of X87MODEF.
21121 2013-08-12 Perez Read <netfirewall@gmail.com>
21124 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21125 operand 0 for intel asm alternative.
21126 (*movabs<mode>_2): Ditto for operand 1.
21128 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21130 * config/aarch64/arm_none.h
21131 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21133 2013-08-12 Nick Clifton <nickc@redhat.com>
21135 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21137 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21139 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21140 expand for QI/HImode operand to produce more effictive code for
21141 unsigned char(short) --> float(double) conversion.
21143 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21145 * doc/invoke.texi: Mention that -ftls-model does not force the final
21148 2013-08-12 Marek Polacek <polacek@redhat.com>
21149 Marc Glisse <marc.glisse@inria.fr>
21151 PR tree-optimization/57980
21152 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21153 when creating -1 constant.
21155 2013-08-10 Jan Hubicka <jh@suse.cz>
21157 Workaround binutils PR14342.
21158 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21159 (gimple_init_edge_profiler): Likewise.
21160 (gimple_gen_ic_func_profiler): Likewise.
21162 2013-08-09 Jan Hubicka <jh@suse.cz>
21164 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21166 2013-08-09 Xinliang David Li <davidxl@google.com>
21168 * config/i386/stringop.def: New file.
21169 * config/i386/stringop.opt: New file.
21170 * config/i386/i386-opts.h: Include stringopt.def.
21171 * config/i386/i386.opt: Include stringopt.opt.
21172 * config/i386/i386.c (ix86_option_override_internal):
21173 Override default size based stringop inline strategies with options.
21174 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21177 2013-08-09 Jan Hubicka <jh@suse.cz>
21179 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21181 2013-08-09 Jan Hubicka <jh@suse.cz>
21183 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21185 (dump_cgraph_node): Dump profile-id.
21186 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21187 and common_target_probability.
21188 * lto-cgraph.c (lto_output_edge): Stream common targets.
21189 (lto_output_node): Stream profile ids.
21190 (input_node): Stream profile ids.
21191 (input_edge): Stream common targets.
21192 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21193 * ipa.c: Include value-prof.h
21194 (ipa_profile_generate_summary): Turn indirect call statement histograms
21195 into common targets.
21196 (ipa_profile): Turn common targets into speculative edges.
21198 2013-08-09 Jan Hubicka <jh@suse.cz>
21200 * cgraph.h (cgraph_node): Add profile_id.
21201 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21202 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21203 (del_node_map): Update.
21204 (find_func_by_funcdef_no): Replace by ...
21205 (find_func_by_profile_id): ... this one.
21206 (gimple_ic_transform): Do not remove useful histograms when
21207 speculation is not done; dump info when indirect call removal
21209 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21210 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21211 (__gcov_indirect_call_profiler_v2): .. this one.
21212 * profile.h (init_node_map): Update.
21213 * coverage.c (coverage_compute_profile_id): New function.
21214 * coverage.h (coverage_compute_profile_id): Declare.
21215 * tree-profile.c (init_ic_make_global_vars): Make
21216 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21217 (gimple_init_edge_profiler): Update prototype of
21218 __gcov_indirect_call_profiler.
21219 (gimple_gen_ic_func_profiler): Simplify.
21220 (tree_profiling): Use init_node_map
21222 2013-08-09 Jan Hubicka <jh@suse.cz>
21224 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21225 non-speculative refs.
21226 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21227 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21228 (cgraph_set_call_stmt): Likewise.
21229 (cgraph_create_edge_1): Fix release checking compilatoin;
21230 clear lto_stmt_uid.
21231 (cgraph_free_edge): Free indirect info.
21232 (cgraph_turn_edge_to_speculative): New function.
21233 (cgraph_speculative_call_info): New function.
21234 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21235 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21236 (dump_cgraph_node): Dump speculation.
21237 (verify_edge_count_and_frequency): Accept speculative edges.
21238 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21239 (verify_cgraph_node): Handle speculation.
21240 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21241 (cgraph_set_call_stmt): Update prototype.
21242 (cgraph_make_edge_direct): Update prototype.
21243 (cgraph_speculative_call_info): Declare.
21244 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21245 to change; update call of ipa_find_references.
21246 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21247 lto_stmt_uid and speculative flags.
21248 (ipa_dump_references): Dump speculation.
21249 (ipa_clone_references): Clone speculative flag.
21250 (ipa_clone_referring): Likewise.
21251 (ipa_clone_ref): New function.
21252 (ipa_find_reference): Look into lto_stmt_uids
21253 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21254 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21255 (ipa_find_reference): Update declaration.
21256 (ipa_clone_ref): Declare.
21257 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21258 stream speculative flag.
21259 (lto_output_ref): Stream statements uids and speculation.
21260 (input_ref): Likewise.
21261 (input_edge): Stream speuclation.
21262 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21263 (cgraph_set_call_stmt_including_clones): Handle speculation.
21264 * ipa-inline.c (heap_edge_removal_hook): New function.
21265 (inline_small_functions): Register it.
21266 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21267 also initialize refs.
21268 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21270 (try_make_edge_direct_simple_call): Likewise.
21271 (try_make_edge_direct_simple_call): Likewise.
21272 (update_indirect_edges_after_inlining): Likewise.
21273 (remove_described_reference): Look proper lto_stmt_uid.
21274 (propagate_controlled_uses): Likewise.
21275 (propagate_controlled_uses): Liekwise.
21276 * tree-inline.c (copy_bb): Copy speculative edges.
21277 (redirect_all_calls): New function.
21278 (copy_cfg_body): Do redirection after loop info is updated.
21279 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21281 2013-08-09 Jan Hubicka <jh@suse.cz>
21283 * lto-streamer-out.c (output_function): Renumber PHIs.
21284 * lto-streamer-in.c (input_function): Likewise.
21286 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21288 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21289 (get_lane_unsigned): Likewise.
21290 (dup_lane_scalar): Likewise.
21291 (get_lane): enable for VALL.
21292 * config/aarch64/aarch64-simd.md
21293 (aarch64_dup_lane_scalar<mode>): Remove.
21294 (aarch64_get_lane_signed<mode>): Likewise.
21295 (aarch64_get_lane_unsigned<mode>): Likewise.
21296 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21297 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21298 (aarch64_get_lane<mode>): Enable for all vector modes.
21299 (aarch64_get_lanedi): Remove misleading constraints.
21300 * config/aarch64/arm_neon.h
21301 (__aarch64_vget_lane_any): Define.
21302 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21303 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21304 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21305 * config/aarch64/iterators.md (VDQQH): New.
21306 (VDQQHS): Likewise.
21307 (vwcore): Likewise.
21309 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21311 * configure.ac: Add GAS check for LEON instructions on SPARC.
21312 * configure: Regenerate.
21313 * config.in: Likewise.
21314 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21316 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21317 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21319 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21320 (AS_LEON_FLAG): New macro.
21321 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21322 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21323 Deal with LEON and LEON3 for the memory model.
21324 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21325 (atomic_compare_and_swap<mode>_1): Likewise.
21326 (*atomic_compare_and_swap<mode>_1): Likewise.
21328 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21330 * config/arm/neon.md (vcond): Fix floating-point vector
21331 comparisons against 0.
21333 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21335 * lra-constraints.c (emit_spill_move): Remove assert.
21336 (process_alt_operands): Add more debugging
21337 output. Increase reject for spilling into memory. Decrease
21338 reject for reloading scratch.
21339 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21341 2013-08-08 Steve Ellcey <sellcey@mips.com>
21343 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21344 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21345 micromips incompatible. Add nan2008.
21346 (MULTILIB_DIRNAMES): Add nan2008.
21347 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21348 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21349 and micromips incompatible. Add nan2008.
21350 (MULTILIB_DIRNAMES): Add nan2008.
21351 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21353 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21355 PR rtl-optimization/58079
21356 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21357 simplify_comparison has widened a comparison with an integer.
21359 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21361 * config/arm/neon.md (movmisalign<mode>): Disable when we
21362 don't allow unaligned accesses.
21363 (*movmisalign<mode>_neon_store): Likewise.
21364 (*movmisalign<mode>_neon_load): Likewise.
21365 (*movmisalign<mode>_neon_store): Likewise.
21366 (*movmisalign<mode>_neon_load): Likewise.
21368 2013-08-08 Jan Hubicka <jh@suse.cz>
21370 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21371 (make_pass_rebuild_cgraph_edges): Also clear references.
21372 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21373 * ipa-inline-transform.c (inline_transform): Remove all references
21375 * cgraphunit.c (expand_function): Remove all references after
21377 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21378 (ipa_find_reference): Rewrite to iterator.
21379 (remove_stmt_references): Likewise.
21380 (ipa_clear_stmts_in_references): New function.
21381 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21382 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21384 * ipa-split.c (split_function): Remove references in split function.
21386 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21389 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21390 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21392 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21395 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21396 suggested mode for the assignment isn't compatible with the
21397 registers required.
21399 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21402 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21404 2013-08-07 Xinliang David Li <davidxl@google.com>
21406 * config/i386/i386.opt: New option -mtune-ctrl=.
21407 * config/i386/x86-tune.def: New file.
21408 * config/i386/i386.h: include x86-tune.def.
21409 * config/i386/i386.c (ix86_option_override_internal):
21410 Parsing -mtune-ctrl= option and set tune features.
21412 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21415 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21416 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21419 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21421 * rtl.h (update_alignments): Declare.
21422 * final.c (grow_label_align): New function extracted from...
21423 (shorten_branches): ...here. Call it.
21424 (update_alignments): New function.
21425 * reorg.c (sibling_labels): New variable.
21426 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21427 the new label along with it onto the sibling_labels vector.
21428 (fill_simple_delay_slots): Adjust call to get_label_before.
21429 (fill_slots_from_thread): Likewise.
21430 (relax_delay_slots): Likewise.
21431 (make_return_insns): Likewise.
21432 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21434 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21436 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21437 document its semantics.
21438 (diagnostic_report_diagnostic): Adjust accordingly.
21440 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21442 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21443 (sparc_option_override): ...and port to new C++ pass API.
21444 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21446 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21448 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21450 2013-08-06 Caroline Tice <cmtice@google.com>
21452 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21453 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21454 * tree-pass.h: Add pass_vtable_verify.
21455 * varasm.c (assemble_variable): Add code to properly set the comdat
21456 section and name for the .vtable_map_vars section.
21457 (assemble_vtyv_preinit_initializer): New function.
21458 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21460 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21461 * vtable-verify.c: New file.
21462 * vtable-verify.h: New file.
21463 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21464 initialiation levels.
21465 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21466 * passes.def: Insert pass_vtable_verify.
21467 * aclocal.m4: Reorder includes.
21468 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21469 -fvtv-counts options.
21470 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21471 as appropriate, if -fvtable-verify=... is used.
21472 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21473 -fvtable-verify=... is used.
21474 * Makefile.in (OBJS): Add vtable-verify.o to list.
21475 (vtable-verify.o): Add new build rule.
21476 (GTFILES): Add vtable-verify.c to list.
21477 * common.opt (fvtable-verify=): New flag.
21478 (vtv_priority): Values for fvtable-verify= flag.
21479 (fvtv-counts): New flag.
21480 (fvtv-debug): New flag.
21481 * tree.h (save_vtable_map_decl): New extern function decl.
21483 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21485 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21486 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21487 (pass_data_rl78_devirt): ...new pass_data instance and...
21488 (make_pass_rl78_devirt): ...new function.
21489 (rl78_asm_file_start): Port pass registration to new C++ API.
21491 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21493 * coretypes.h (rtl_opt_pass): Add.
21494 (gcc::context): Add.
21495 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21496 (epiphany_init): Port to new C++ pass API.
21497 (epiphany_optimize_mode_switching): Likewise.
21498 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21499 (pass_manager::get_pass_mode_switching): New.
21500 (pass_manager::get_pass_peephole2): New.
21501 * mode-switching.c (pass_mode_switching): Add clone method.
21502 * recog.c (pass_peephole2): Add clone method.
21503 (pass_split_all_insns): Add clone method.
21505 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21507 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21508 (mips_option_override): ...here, porting to new C++ API for passes.
21510 2013-08-06 Jan Hubicka <jh@suse.cz>
21512 * cgraph.c (cgraph_get_body): New function based on lto.c
21514 * cgraph.h (cgraph_get_body): Declare.
21515 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21517 * cgraphunit.c (expand_function): Get body prior expanding.
21518 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21519 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21521 * passes.c (do_per_function_toporder): Get body.
21522 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21523 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21525 2013-08-06 Martin Jambor <mjambor@suse.cz>
21528 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21529 is not re-finalized. Rename second parameter to no_collect.
21531 2013-08-06 Martin Jambor <mjambor@suse.cz>
21533 PR middle-end/58041
21534 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21535 MEM_REF has proper alignment information.
21537 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21540 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21542 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21543 rtx (*) (rtx, ...) with insn_gen_fn.
21544 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21545 insn_gen_fn::stored_funcptr. Add initializer braces.
21547 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21549 Rewrite how instances of passes are cloned to remove assumptions
21550 about their sizes (thus allowing pass subclasses to have
21551 additional data fields, albeit non-GC-managed ones at this point).
21553 * passes.c (make_pass_instance): Now that passes have clone
21554 methods, rewrite this function to eliminate XNEW and memcpy
21555 calls that used hardcoded sizes. Since this function no longer
21556 creates pass instances, rename it to...
21557 (add_pass_instance): ...this. Document the old way that passes were
21558 numbered and flagged, and rework this function to continue using it.
21559 (next_pass_1): Add an initial_pass argument for use by
21561 (position_pass): When adding multiple instances of a pass, use
21562 the pass's clone method, rather than relying on the XNEW/memcpy
21563 within the former make_pass_instance (now add_pass_instance).
21564 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21565 the initial instance of the current pass within the pass manager.
21567 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21569 This is the automated part of the conversion of passes from C
21570 structs to C++ classes.
21572 Patch autogenerated by refactor_passes.py from
21573 https://github.com/davidmalcolm/gcc-refactoring-scripts
21574 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21576 * asan.c (pass_asan): Convert from a global struct to a subclass of
21577 gimple_opt_pass along with...
21578 (pass_data_asan): ...new pass_data instance and...
21579 (make_pass_asan): ...new function.
21580 (pass_asan_O0): Convert from a global struct to a subclass of
21581 gimple_opt_pass along with...
21582 (pass_data_asan_O0): ...new pass_data instance and...
21583 (make_pass_asan_O0): ...new function.
21584 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21585 subclass of rtl_opt_pass along with...
21586 (pass_data_inc_dec): ...new pass_data instance and...
21587 (make_pass_inc_dec): ...new function.
21588 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21589 a subclass of rtl_opt_pass along with...
21590 (pass_data_reorder_blocks): ...new pass_data instance and...
21591 (make_pass_reorder_blocks): ...new function.
21592 (pass_duplicate_computed_gotos): Convert from a global struct to a
21593 subclass of rtl_opt_pass along with...
21594 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21595 (make_pass_duplicate_computed_gotos): ...new function.
21596 (pass_partition_blocks): Convert from a global struct to a subclass of
21597 rtl_opt_pass along with...
21598 (pass_data_partition_blocks): ...new pass_data instance and...
21599 (make_pass_partition_blocks): ...new function.
21600 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21601 struct to a subclass of rtl_opt_pass along with...
21602 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21604 (make_pass_branch_target_load_optimize1): ...new function.
21605 (pass_branch_target_load_optimize2): Convert from a global struct to a
21606 subclass of rtl_opt_pass along with...
21607 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21609 (make_pass_branch_target_load_optimize2): ...new function.
21610 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21611 of rtl_opt_pass along with...
21612 (pass_data_jump): ...new pass_data instance and...
21613 (make_pass_jump): ...new function.
21614 (pass_jump2): Convert from a global struct to a subclass of
21615 rtl_opt_pass along with...
21616 (pass_data_jump2): ...new pass_data instance and...
21617 (make_pass_jump2): ...new function.
21618 * cfgexpand.c (pass_expand): Convert from a global struct to a
21619 subclass of rtl_opt_pass along with...
21620 (pass_data_expand): ...new pass_data instance and...
21621 (make_pass_expand): ...new function.
21622 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21623 of rtl_opt_pass along with...
21624 (pass_data_free_cfg): ...new pass_data instance and...
21625 (make_pass_free_cfg): ...new function.
21626 (pass_into_cfg_layout_mode): Convert from a global struct to a
21627 subclass of rtl_opt_pass along with...
21628 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21629 (make_pass_into_cfg_layout_mode): ...new function.
21630 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21631 subclass of rtl_opt_pass along with...
21632 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21633 (make_pass_outof_cfg_layout_mode): ...new function.
21634 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21635 struct to a subclass of gimple_opt_pass along with...
21636 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21637 (make_pass_build_cgraph_edges): ...new function.
21638 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21639 subclass of gimple_opt_pass along with...
21640 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21641 (make_pass_rebuild_cgraph_edges): ...new function.
21642 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21643 subclass of gimple_opt_pass along with...
21644 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21646 (make_pass_remove_cgraph_callee_edges): ...new function.
21647 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21648 struct to a subclass of rtl_opt_pass along with...
21649 (pass_data_stack_adjustments): ...new pass_data instance and...
21650 (make_pass_stack_adjustments): ...new function.
21651 * combine.c (pass_combine): Convert from a global struct to a subclass
21652 of rtl_opt_pass along with...
21653 (pass_data_combine): ...new pass_data instance and...
21654 (make_pass_combine): ...new function.
21655 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21656 global struct to a subclass of rtl_opt_pass along with...
21657 (pass_data_compare_elim_after_reload): ...new pass_data instance
21659 (make_pass_compare_elim_after_reload): ...new function.
21660 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21661 of rtl_opt_pass along with...
21662 (pass_data_rtl_cprop): ...new pass_data instance and...
21663 (make_pass_rtl_cprop): ...new function.
21664 * cse.c (pass_cse): Convert from a global struct to a subclass of
21665 rtl_opt_pass along with...
21666 (pass_data_cse): ...new pass_data instance and...
21667 (make_pass_cse): ...new function.
21668 (pass_cse2): Convert from a global struct to a subclass of
21669 rtl_opt_pass along with...
21670 (pass_data_cse2): ...new pass_data instance and...
21671 (make_pass_cse2): ...new function.
21672 (pass_cse_after_global_opts): Convert from a global struct to a
21673 subclass of rtl_opt_pass along with...
21674 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21675 (make_pass_cse_after_global_opts): ...new function.
21676 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21677 of rtl_opt_pass along with...
21678 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21679 (make_pass_ud_rtl_dce): ...new function.
21680 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21681 rtl_opt_pass along with...
21682 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21683 (make_pass_fast_rtl_dce): ...new function.
21684 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21685 a subclass of rtl_opt_pass along with...
21686 (pass_data_df_initialize_opt): ...new pass_data instance and...
21687 (make_pass_df_initialize_opt): ...new function.
21688 (pass_df_initialize_no_opt): Convert from a global struct to a
21689 subclass of rtl_opt_pass along with...
21690 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21691 (make_pass_df_initialize_no_opt): ...new function.
21692 (pass_df_finish): Convert from a global struct to a subclass of
21693 rtl_opt_pass along with...
21694 (pass_data_df_finish): ...new pass_data instance and...
21695 (make_pass_df_finish): ...new function.
21696 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21697 rtl_opt_pass along with...
21698 (pass_data_rtl_dse1): ...new pass_data instance and...
21699 (make_pass_rtl_dse1): ...new function.
21700 (pass_rtl_dse2): Convert from a global struct to a subclass of
21701 rtl_opt_pass along with...
21702 (pass_data_rtl_dse2): ...new pass_data instance and...
21703 (make_pass_rtl_dse2): ...new function.
21704 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21705 subclass of rtl_opt_pass along with...
21706 (pass_data_dwarf2_frame): ...new pass_data instance and...
21707 (make_pass_dwarf2_frame): ...new function.
21708 * except.c (pass_set_nothrow_function_flags): Convert from a global
21709 struct to a subclass of rtl_opt_pass along with...
21710 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21712 (make_pass_set_nothrow_function_flags): ...new function.
21713 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21714 subclass of rtl_opt_pass along with...
21715 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21717 (make_pass_convert_to_eh_region_ranges): ...new function.
21718 * final.c (pass_compute_alignments): Convert from a global struct to a
21719 subclass of rtl_opt_pass along with...
21720 (pass_data_compute_alignments): ...new pass_data instance and...
21721 (make_pass_compute_alignments): ...new function.
21722 (pass_final): Convert from a global struct to a subclass of
21723 rtl_opt_pass along with...
21724 (pass_data_final): ...new pass_data instance and...
21725 (make_pass_final): ...new function.
21726 (pass_shorten_branches): Convert from a global struct to a subclass of
21727 rtl_opt_pass along with...
21728 (pass_data_shorten_branches): ...new pass_data instance and...
21729 (make_pass_shorten_branches): ...new function.
21730 (pass_clean_state): Convert from a global struct to a subclass of
21731 rtl_opt_pass along with...
21732 (pass_data_clean_state): ...new pass_data instance and...
21733 (make_pass_clean_state): ...new function.
21734 * function.c (pass_instantiate_virtual_regs): Convert from a global
21735 struct to a subclass of rtl_opt_pass along with...
21736 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21737 (make_pass_instantiate_virtual_regs): ...new function.
21738 (pass_leaf_regs): Convert from a global struct to a subclass of
21739 rtl_opt_pass along with...
21740 (pass_data_leaf_regs): ...new pass_data instance and...
21741 (make_pass_leaf_regs): ...new function.
21742 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21743 subclass of rtl_opt_pass along with...
21744 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21746 (make_pass_thread_prologue_and_epilogue): ...new function.
21747 (pass_match_asm_constraints): Convert from a global struct to a
21748 subclass of rtl_opt_pass along with...
21749 (pass_data_match_asm_constraints): ...new pass_data instance and...
21750 (make_pass_match_asm_constraints): ...new function.
21751 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21752 subclass of rtl_opt_pass along with...
21753 (pass_data_rtl_fwprop): ...new pass_data instance and...
21754 (make_pass_rtl_fwprop): ...new function.
21755 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21756 rtl_opt_pass along with...
21757 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21758 (make_pass_rtl_fwprop_addr): ...new function.
21759 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21760 rtl_opt_pass along with...
21761 (pass_data_rtl_pre): ...new pass_data instance and...
21762 (make_pass_rtl_pre): ...new function.
21763 (pass_rtl_hoist): Convert from a global struct to a subclass of
21764 rtl_opt_pass along with...
21765 (pass_data_rtl_hoist): ...new pass_data instance and...
21766 (make_pass_rtl_hoist): ...new function.
21767 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21768 subclass of gimple_opt_pass along with...
21769 (pass_data_lower_cf): ...new pass_data instance and...
21770 (make_pass_lower_cf): ...new function.
21771 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21772 from a global struct to a subclass of gimple_opt_pass along with...
21773 (pass_data_strength_reduction): ...new pass_data instance and...
21774 (make_pass_strength_reduction): ...new function.
21775 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21776 of rtl_opt_pass along with...
21777 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21778 (make_pass_rtl_ifcvt): ...new function.
21779 (pass_if_after_combine): Convert from a global struct to a subclass of
21780 rtl_opt_pass along with...
21781 (pass_data_if_after_combine): ...new pass_data instance and...
21782 (make_pass_if_after_combine): ...new function.
21783 (pass_if_after_reload): Convert from a global struct to a subclass of
21784 rtl_opt_pass along with...
21785 (pass_data_if_after_reload): ...new pass_data instance and...
21786 (make_pass_if_after_reload): ...new function.
21787 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21788 a subclass of rtl_opt_pass along with...
21789 (pass_data_initialize_regs): ...new pass_data instance and...
21790 (make_pass_initialize_regs): ...new function.
21791 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21792 of ipa_opt_pass_d along with...
21793 (pass_data_ipa_cp): ...new pass_data instance and...
21794 (make_pass_ipa_cp): ...new function.
21795 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21796 global struct to a subclass of gimple_opt_pass along with...
21797 (pass_data_inline_parameters): ...new pass_data instance and...
21798 (make_pass_inline_parameters): ...new function.
21799 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21800 subclass of gimple_opt_pass along with...
21801 (pass_data_early_inline): ...new pass_data instance and...
21802 (make_pass_early_inline): ...new function.
21803 (pass_ipa_inline): Convert from a global struct to a subclass of
21804 ipa_opt_pass_d along with...
21805 (pass_data_ipa_inline): ...new pass_data instance and...
21806 (make_pass_ipa_inline): ...new function.
21807 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21808 struct to a subclass of gimple_opt_pass along with...
21809 (pass_data_local_pure_const): ...new pass_data instance and...
21810 (make_pass_local_pure_const): ...new function.
21811 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21812 ipa_opt_pass_d along with...
21813 (pass_data_ipa_pure_const): ...new pass_data instance and...
21814 (make_pass_ipa_pure_const): ...new function.
21815 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21816 to a subclass of ipa_opt_pass_d along with...
21817 (pass_data_ipa_reference): ...new pass_data instance and...
21818 (make_pass_ipa_reference): ...new function.
21819 * ipa-split.c (pass_split_functions): Convert from a global struct to
21820 a subclass of gimple_opt_pass along with...
21821 (pass_data_split_functions): ...new pass_data instance and...
21822 (make_pass_split_functions): ...new function.
21823 (pass_feedback_split_functions): Convert from a global struct to a
21824 subclass of gimple_opt_pass along with...
21825 (pass_data_feedback_split_functions): ...new pass_data instance and...
21826 (make_pass_feedback_split_functions): ...new function.
21827 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21828 global struct to a subclass of simple_ipa_opt_pass along with...
21829 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21831 (make_pass_ipa_function_and_variable_visibility): ...new function.
21832 (pass_ipa_free_inline_summary): Convert from a global struct to a
21833 subclass of simple_ipa_opt_pass along with...
21834 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21835 (make_pass_ipa_free_inline_summary): ...new function.
21836 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21837 subclass of ipa_opt_pass_d along with...
21838 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21840 (make_pass_ipa_whole_program_visibility): ...new function.
21841 (pass_ipa_profile): Convert from a global struct to a subclass of
21842 ipa_opt_pass_d along with...
21843 (pass_data_ipa_profile): ...new pass_data instance and...
21844 (make_pass_ipa_profile): ...new function.
21845 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21846 ipa_opt_pass_d along with...
21847 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21848 (make_pass_ipa_cdtor_merge): ...new function.
21849 * ira.c (pass_ira): Convert from a global struct to a subclass of
21850 rtl_opt_pass along with...
21851 (pass_data_ira): ...new pass_data instance and...
21852 (make_pass_ira): ...new function.
21853 (pass_reload): Convert from a global struct to a subclass of
21854 rtl_opt_pass along with...
21855 (pass_data_reload): ...new pass_data instance and...
21856 (make_pass_reload): ...new function.
21857 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21858 subclass of rtl_opt_pass along with...
21859 (pass_data_cleanup_barriers): ...new pass_data instance and...
21860 (make_pass_cleanup_barriers): ...new function.
21861 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21862 of rtl_opt_pass along with...
21863 (pass_data_loop2): ...new pass_data instance and...
21864 (make_pass_loop2): ...new function.
21865 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21866 rtl_opt_pass along with...
21867 (pass_data_rtl_loop_init): ...new pass_data instance and...
21868 (make_pass_rtl_loop_init): ...new function.
21869 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21870 rtl_opt_pass along with...
21871 (pass_data_rtl_loop_done): ...new pass_data instance and...
21872 (make_pass_rtl_loop_done): ...new function.
21873 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21874 subclass of rtl_opt_pass along with...
21875 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21876 (make_pass_rtl_move_loop_invariants): ...new function.
21877 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21878 rtl_opt_pass along with...
21879 (pass_data_rtl_unswitch): ...new pass_data instance and...
21880 (make_pass_rtl_unswitch): ...new function.
21881 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21882 subclass of rtl_opt_pass along with...
21883 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21885 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21886 (pass_rtl_doloop): Convert from a global struct to a subclass of
21887 rtl_opt_pass along with...
21888 (pass_data_rtl_doloop): ...new pass_data instance and...
21889 (make_pass_rtl_doloop): ...new function.
21890 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21891 a subclass of rtl_opt_pass along with...
21892 (pass_data_lower_subreg): ...new pass_data instance and...
21893 (make_pass_lower_subreg): ...new function.
21894 (pass_lower_subreg2): Convert from a global struct to a subclass of
21895 rtl_opt_pass along with...
21896 (pass_data_lower_subreg2): ...new pass_data instance and...
21897 (make_pass_lower_subreg2): ...new function.
21898 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21899 struct to a subclass of ipa_opt_pass_d along with...
21900 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21901 (make_pass_ipa_lto_gimple_out): ...new function.
21902 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21903 of ipa_opt_pass_d along with...
21904 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21905 (make_pass_ipa_lto_finish_out): ...new function.
21906 * mode-switching.c (pass_mode_switching): Convert from a global struct
21907 to a subclass of rtl_opt_pass along with...
21908 (pass_data_mode_switching): ...new pass_data instance and...
21909 (make_pass_mode_switching): ...new function.
21910 * modulo-sched.c (pass_sms): Convert from a global struct to a
21911 subclass of rtl_opt_pass along with...
21912 (pass_data_sms): ...new pass_data instance and...
21913 (make_pass_sms): ...new function.
21914 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21915 subclass of gimple_opt_pass along with...
21916 (pass_data_expand_omp): ...new pass_data instance and...
21917 (make_pass_expand_omp): ...new function.
21918 (pass_lower_omp): Convert from a global struct to a subclass of
21919 gimple_opt_pass along with...
21920 (pass_data_lower_omp): ...new pass_data instance and...
21921 (make_pass_lower_omp): ...new function.
21922 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21923 of gimple_opt_pass along with...
21924 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21925 (make_pass_diagnose_omp_blocks): ...new function.
21926 * passes.c (pass_early_local_passes): Convert from a global struct to
21927 a subclass of simple_ipa_opt_pass along with...
21928 (pass_data_early_local_passes): ...new pass_data instance and...
21929 (make_pass_early_local_passes): ...new function.
21930 (pass_all_early_optimizations): Convert from a global struct to a
21931 subclass of gimple_opt_pass along with...
21932 (pass_data_all_early_optimizations): ...new pass_data instance and...
21933 (make_pass_all_early_optimizations): ...new function.
21934 (pass_all_optimizations): Convert from a global struct to a subclass
21935 of gimple_opt_pass along with...
21936 (pass_data_all_optimizations): ...new pass_data instance and...
21937 (make_pass_all_optimizations): ...new function.
21938 (pass_all_optimizations_g): Convert from a global struct to a subclass
21939 of gimple_opt_pass along with...
21940 (pass_data_all_optimizations_g): ...new pass_data instance and...
21941 (make_pass_all_optimizations_g): ...new function.
21942 (pass_rest_of_compilation): Convert from a global struct to a subclass
21943 of rtl_opt_pass along with...
21944 (pass_data_rest_of_compilation): ...new pass_data instance and...
21945 (make_pass_rest_of_compilation): ...new function.
21946 (pass_postreload): Convert from a global struct to a subclass of
21947 rtl_opt_pass along with...
21948 (pass_data_postreload): ...new pass_data instance and...
21949 (make_pass_postreload): ...new function.
21950 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21951 subclass of rtl_opt_pass along with...
21952 (pass_data_gcse2): ...new pass_data instance and...
21953 (make_pass_gcse2): ...new function.
21954 * postreload.c (pass_postreload_cse): Convert from a global struct to
21955 a subclass of rtl_opt_pass along with...
21956 (pass_data_postreload_cse): ...new pass_data instance and...
21957 (make_pass_postreload_cse): ...new function.
21958 * predict.c (pass_profile): Convert from a global struct to a subclass
21959 of gimple_opt_pass along with...
21960 (pass_data_profile): ...new pass_data instance and...
21961 (make_pass_profile): ...new function.
21962 (pass_strip_predict_hints): Convert from a global struct to a subclass
21963 of gimple_opt_pass along with...
21964 (pass_data_strip_predict_hints): ...new pass_data instance and...
21965 (make_pass_strip_predict_hints): ...new function.
21966 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21967 of rtl_opt_pass along with...
21968 (pass_data_peephole2): ...new pass_data instance and...
21969 (make_pass_peephole2): ...new function.
21970 (pass_split_all_insns): Convert from a global struct to a subclass of
21971 rtl_opt_pass along with...
21972 (pass_data_split_all_insns): ...new pass_data instance and...
21973 (make_pass_split_all_insns): ...new function.
21974 (pass_split_after_reload): Convert from a global struct to a subclass
21975 of rtl_opt_pass along with...
21976 (pass_data_split_after_reload): ...new pass_data instance and...
21977 (make_pass_split_after_reload): ...new function.
21978 (pass_split_before_regstack): Convert from a global struct to a
21979 subclass of rtl_opt_pass along with...
21980 (pass_data_split_before_regstack): ...new pass_data instance and...
21981 (make_pass_split_before_regstack): ...new function.
21982 (pass_split_before_sched2): Convert from a global struct to a subclass
21983 of rtl_opt_pass along with...
21984 (pass_data_split_before_sched2): ...new pass_data instance and...
21985 (make_pass_split_before_sched2): ...new function.
21986 (pass_split_for_shorten_branches): Convert from a global struct to a
21987 subclass of rtl_opt_pass along with...
21988 (pass_data_split_for_shorten_branches): ...new pass_data instance
21990 (make_pass_split_for_shorten_branches): ...new function.
21991 * ree.c (pass_ree): Convert from a global struct to a subclass of
21992 rtl_opt_pass along with...
21993 (pass_data_ree): ...new pass_data instance and...
21994 (make_pass_ree): ...new function.
21995 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21996 subclass of rtl_opt_pass along with...
21997 (pass_data_stack_regs): ...new pass_data instance and...
21998 (make_pass_stack_regs): ...new function.
21999 (pass_stack_regs_run): Convert from a global struct to a subclass of
22000 rtl_opt_pass along with...
22001 (pass_data_stack_regs_run): ...new pass_data instance and...
22002 (make_pass_stack_regs_run): ...new function.
22003 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22004 subclass of rtl_opt_pass along with...
22005 (pass_data_cprop_hardreg): ...new pass_data instance and...
22006 (make_pass_cprop_hardreg): ...new function.
22007 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22008 subclass of rtl_opt_pass along with...
22009 (pass_data_reginfo_init): ...new pass_data instance and...
22010 (make_pass_reginfo_init): ...new function.
22011 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22012 of rtl_opt_pass along with...
22013 (pass_data_regmove): ...new pass_data instance and...
22014 (make_pass_regmove): ...new function.
22015 * regrename.c (pass_regrename): Convert from a global struct to a
22016 subclass of rtl_opt_pass along with...
22017 (pass_data_regrename): ...new pass_data instance and...
22018 (make_pass_regrename): ...new function.
22019 * reorg.c (pass_delay_slots): Convert from a global struct to a
22020 subclass of rtl_opt_pass along with...
22021 (pass_data_delay_slots): ...new pass_data instance and...
22022 (make_pass_delay_slots): ...new function.
22023 (pass_machine_reorg): Convert from a global struct to a subclass of
22024 rtl_opt_pass along with...
22025 (pass_data_machine_reorg): ...new pass_data instance and...
22026 (make_pass_machine_reorg): ...new function.
22027 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22028 of rtl_opt_pass along with...
22029 (pass_data_sched): ...new pass_data instance and...
22030 (make_pass_sched): ...new function.
22031 (pass_sched2): Convert from a global struct to a subclass of
22032 rtl_opt_pass along with...
22033 (pass_data_sched2): ...new pass_data instance and...
22034 (make_pass_sched2): ...new function.
22035 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22036 to a subclass of rtl_opt_pass along with...
22037 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22038 (make_pass_stack_ptr_mod): ...new function.
22039 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22040 to a subclass of rtl_opt_pass along with...
22041 (pass_data_rtl_store_motion): ...new pass_data instance and...
22042 (make_pass_rtl_store_motion): ...new function.
22043 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22044 of gimple_opt_pass along with...
22045 (pass_data_tracer): ...new pass_data instance and...
22046 (make_pass_tracer): ...new function.
22047 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22048 to a subclass of gimple_opt_pass along with...
22049 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22050 (make_pass_diagnose_tm_blocks): ...new function.
22051 (pass_lower_tm): Convert from a global struct to a subclass of
22052 gimple_opt_pass along with...
22053 (pass_data_lower_tm): ...new pass_data instance and...
22054 (make_pass_lower_tm): ...new function.
22055 (pass_tm_init): Convert from a global struct to a subclass of
22056 gimple_opt_pass along with...
22057 (pass_data_tm_init): ...new pass_data instance and...
22058 (make_pass_tm_init): ...new function.
22059 (pass_tm_mark): Convert from a global struct to a subclass of
22060 gimple_opt_pass along with...
22061 (pass_data_tm_mark): ...new pass_data instance and...
22062 (make_pass_tm_mark): ...new function.
22063 (pass_tm_edges): Convert from a global struct to a subclass of
22064 gimple_opt_pass along with...
22065 (pass_data_tm_edges): ...new pass_data instance and...
22066 (make_pass_tm_edges): ...new function.
22067 (pass_tm_memopt): Convert from a global struct to a subclass of
22068 gimple_opt_pass along with...
22069 (pass_data_tm_memopt): ...new pass_data instance and...
22070 (make_pass_tm_memopt): ...new function.
22071 (pass_ipa_tm): Convert from a global struct to a subclass of
22072 simple_ipa_opt_pass along with...
22073 (pass_data_ipa_tm): ...new pass_data instance and...
22074 (make_pass_ipa_tm): ...new function.
22075 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22076 subclass of gimple_opt_pass along with...
22077 (pass_data_call_cdce): ...new pass_data instance and...
22078 (make_pass_call_cdce): ...new function.
22079 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22080 subclass of gimple_opt_pass along with...
22081 (pass_data_build_cfg): ...new pass_data instance and...
22082 (make_pass_build_cfg): ...new function.
22083 (pass_split_crit_edges): Convert from a global struct to a subclass of
22084 gimple_opt_pass along with...
22085 (pass_data_split_crit_edges): ...new pass_data instance and...
22086 (make_pass_split_crit_edges): ...new function.
22087 (pass_warn_function_return): Convert from a global struct to a
22088 subclass of gimple_opt_pass along with...
22089 (pass_data_warn_function_return): ...new pass_data instance and...
22090 (make_pass_warn_function_return): ...new function.
22091 (pass_warn_function_noreturn): Convert from a global struct to a
22092 subclass of gimple_opt_pass along with...
22093 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22094 (make_pass_warn_function_noreturn): ...new function.
22095 (pass_warn_unused_result): Convert from a global struct to a subclass
22096 of gimple_opt_pass along with...
22097 (pass_data_warn_unused_result): ...new pass_data instance and...
22098 (make_pass_warn_unused_result): ...new function.
22099 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22100 a subclass of gimple_opt_pass along with...
22101 (pass_data_merge_phi): ...new pass_data instance and...
22102 (make_pass_merge_phi): ...new function.
22103 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22104 a subclass of gimple_opt_pass along with...
22105 (pass_data_lower_complex): ...new pass_data instance and...
22106 (make_pass_lower_complex): ...new function.
22107 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22108 gimple_opt_pass along with...
22109 (pass_data_lower_complex_O0): ...new pass_data instance and...
22110 (make_pass_lower_complex_O0): ...new function.
22111 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22112 subclass of gimple_opt_pass along with...
22113 (pass_data_lower_eh): ...new pass_data instance and...
22114 (make_pass_lower_eh): ...new function.
22115 (pass_refactor_eh): Convert from a global struct to a subclass of
22116 gimple_opt_pass along with...
22117 (pass_data_refactor_eh): ...new pass_data instance and...
22118 (make_pass_refactor_eh): ...new function.
22119 (pass_lower_resx): Convert from a global struct to a subclass of
22120 gimple_opt_pass along with...
22121 (pass_data_lower_resx): ...new pass_data instance and...
22122 (make_pass_lower_resx): ...new function.
22123 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22124 of gimple_opt_pass along with...
22125 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22126 (make_pass_lower_eh_dispatch): ...new function.
22127 (pass_cleanup_eh): Convert from a global struct to a subclass of
22128 gimple_opt_pass along with...
22129 (pass_data_cleanup_eh): ...new pass_data instance and...
22130 (make_pass_cleanup_eh): ...new function.
22131 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22132 to a subclass of simple_ipa_opt_pass along with...
22133 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22134 (make_pass_ipa_lower_emutls): ...new function.
22135 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22136 a subclass of gimple_opt_pass along with...
22137 (pass_data_if_conversion): ...new pass_data instance and...
22138 (make_pass_if_conversion): ...new function.
22139 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22140 subclass of gimple_opt_pass along with...
22141 (pass_data_build_ssa): ...new pass_data instance and...
22142 (make_pass_build_ssa): ...new function.
22143 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22144 global struct to a subclass of gimple_opt_pass along with...
22145 (pass_data_loop_distribution): ...new pass_data instance and...
22146 (make_pass_loop_distribution): ...new function.
22147 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22148 subclass of gimple_opt_pass along with...
22149 (pass_data_mudflap_1): ...new pass_data instance and...
22150 (make_pass_mudflap_1): ...new function.
22151 (pass_mudflap_2): Convert from a global struct to a subclass of
22152 gimple_opt_pass along with...
22153 (pass_data_mudflap_2): ...new pass_data instance and...
22154 (make_pass_mudflap_2): ...new function.
22155 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22156 subclass of gimple_opt_pass along with...
22157 (pass_data_mudflap_1): ...new pass_data instance and...
22158 (make_pass_mudflap_1): ...new function.
22159 (pass_mudflap_2): Convert from a global struct to a subclass of
22160 gimple_opt_pass along with...
22161 (pass_data_mudflap_2): ...new pass_data instance and...
22162 (make_pass_mudflap_2): ...new function.
22163 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22164 gimple_opt_pass along with...
22165 (pass_data_nrv): ...new pass_data instance and...
22166 (make_pass_nrv): ...new function.
22167 (pass_return_slot): Convert from a global struct to a subclass of
22168 gimple_opt_pass along with...
22169 (pass_data_return_slot): ...new pass_data instance and...
22170 (make_pass_return_slot): ...new function.
22171 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22172 to a subclass of gimple_opt_pass along with...
22173 (pass_data_object_sizes): ...new pass_data instance and...
22174 (make_pass_object_sizes): ...new function.
22175 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22176 global struct to a subclass of gimple_opt_pass along with...
22177 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22179 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22180 (pass_fixup_cfg): Convert from a global struct to a subclass of
22181 gimple_opt_pass along with...
22182 (pass_data_fixup_cfg): ...new pass_data instance and...
22183 (make_pass_fixup_cfg): ...new function.
22184 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22185 (make_pass_mudflap_1): ...new function.
22186 (pass_mudflap_2): Replace declaration with that of...
22187 (make_pass_mudflap_2): ...new function.
22188 (pass_asan): Replace declaration with that of...
22189 (make_pass_asan): ...new function.
22190 (pass_asan_O0): Replace declaration with that of...
22191 (make_pass_asan_O0): ...new function.
22192 (pass_tsan): Replace declaration with that of...
22193 (make_pass_tsan): ...new function.
22194 (pass_tsan_O0): Replace declaration with that of...
22195 (make_pass_tsan_O0): ...new function.
22196 (pass_lower_cf): Replace declaration with that of...
22197 (make_pass_lower_cf): ...new function.
22198 (pass_refactor_eh): Replace declaration with that of...
22199 (make_pass_refactor_eh): ...new function.
22200 (pass_lower_eh): Replace declaration with that of...
22201 (make_pass_lower_eh): ...new function.
22202 (pass_lower_eh_dispatch): Replace declaration with that of...
22203 (make_pass_lower_eh_dispatch): ...new function.
22204 (pass_lower_resx): Replace declaration with that of...
22205 (make_pass_lower_resx): ...new function.
22206 (pass_build_cfg): Replace declaration with that of...
22207 (make_pass_build_cfg): ...new function.
22208 (pass_early_tree_profile): Replace declaration with that of...
22209 (make_pass_early_tree_profile): ...new function.
22210 (pass_cleanup_eh): Replace declaration with that of...
22211 (make_pass_cleanup_eh): ...new function.
22212 (pass_sra): Replace declaration with that of...
22213 (make_pass_sra): ...new function.
22214 (pass_sra_early): Replace declaration with that of...
22215 (make_pass_sra_early): ...new function.
22216 (pass_early_ipa_sra): Replace declaration with that of...
22217 (make_pass_early_ipa_sra): ...new function.
22218 (pass_tail_recursion): Replace declaration with that of...
22219 (make_pass_tail_recursion): ...new function.
22220 (pass_tail_calls): Replace declaration with that of...
22221 (make_pass_tail_calls): ...new function.
22222 (pass_tree_loop): Replace declaration with that of...
22223 (make_pass_tree_loop): ...new function.
22224 (pass_tree_loop_init): Replace declaration with that of...
22225 (make_pass_tree_loop_init): ...new function.
22226 (pass_lim): Replace declaration with that of...
22227 (make_pass_lim): ...new function.
22228 (pass_tree_unswitch): Replace declaration with that of...
22229 (make_pass_tree_unswitch): ...new function.
22230 (pass_predcom): Replace declaration with that of...
22231 (make_pass_predcom): ...new function.
22232 (pass_iv_canon): Replace declaration with that of...
22233 (make_pass_iv_canon): ...new function.
22234 (pass_scev_cprop): Replace declaration with that of...
22235 (make_pass_scev_cprop): ...new function.
22236 (pass_empty_loop): Replace declaration with that of...
22237 (make_pass_empty_loop): ...new function.
22238 (pass_record_bounds): Replace declaration with that of...
22239 (make_pass_record_bounds): ...new function.
22240 (pass_graphite): Replace declaration with that of...
22241 (make_pass_graphite): ...new function.
22242 (pass_graphite_transforms): Replace declaration with that of...
22243 (make_pass_graphite_transforms): ...new function.
22244 (pass_if_conversion): Replace declaration with that of...
22245 (make_pass_if_conversion): ...new function.
22246 (pass_loop_distribution): Replace declaration with that of...
22247 (make_pass_loop_distribution): ...new function.
22248 (pass_vectorize): Replace declaration with that of...
22249 (make_pass_vectorize): ...new function.
22250 (pass_slp_vectorize): Replace declaration with that of...
22251 (make_pass_slp_vectorize): ...new function.
22252 (pass_complete_unroll): Replace declaration with that of...
22253 (make_pass_complete_unroll): ...new function.
22254 (pass_complete_unrolli): Replace declaration with that of...
22255 (make_pass_complete_unrolli): ...new function.
22256 (pass_parallelize_loops): Replace declaration with that of...
22257 (make_pass_parallelize_loops): ...new function.
22258 (pass_loop_prefetch): Replace declaration with that of...
22259 (make_pass_loop_prefetch): ...new function.
22260 (pass_iv_optimize): Replace declaration with that of...
22261 (make_pass_iv_optimize): ...new function.
22262 (pass_tree_loop_done): Replace declaration with that of...
22263 (make_pass_tree_loop_done): ...new function.
22264 (pass_ch): Replace declaration with that of...
22265 (make_pass_ch): ...new function.
22266 (pass_ccp): Replace declaration with that of...
22267 (make_pass_ccp): ...new function.
22268 (pass_phi_only_cprop): Replace declaration with that of...
22269 (make_pass_phi_only_cprop): ...new function.
22270 (pass_build_ssa): Replace declaration with that of...
22271 (make_pass_build_ssa): ...new function.
22272 (pass_build_alias): Replace declaration with that of...
22273 (make_pass_build_alias): ...new function.
22274 (pass_build_ealias): Replace declaration with that of...
22275 (make_pass_build_ealias): ...new function.
22276 (pass_dominator): Replace declaration with that of...
22277 (make_pass_dominator): ...new function.
22278 (pass_dce): Replace declaration with that of...
22279 (make_pass_dce): ...new function.
22280 (pass_dce_loop): Replace declaration with that of...
22281 (make_pass_dce_loop): ...new function.
22282 (pass_cd_dce): Replace declaration with that of...
22283 (make_pass_cd_dce): ...new function.
22284 (pass_call_cdce): Replace declaration with that of...
22285 (make_pass_call_cdce): ...new function.
22286 (pass_merge_phi): Replace declaration with that of...
22287 (make_pass_merge_phi): ...new function.
22288 (pass_split_crit_edges): Replace declaration with that of...
22289 (make_pass_split_crit_edges): ...new function.
22290 (pass_pre): Replace declaration with that of...
22291 (make_pass_pre): ...new function.
22292 (pass_profile): Replace declaration with that of...
22293 (make_pass_profile): ...new function.
22294 (pass_strip_predict_hints): Replace declaration with that of...
22295 (make_pass_strip_predict_hints): ...new function.
22296 (pass_lower_complex_O0): Replace declaration with that of...
22297 (make_pass_lower_complex_O0): ...new function.
22298 (pass_lower_complex): Replace declaration with that of...
22299 (make_pass_lower_complex): ...new function.
22300 (pass_lower_vector): Replace declaration with that of...
22301 (make_pass_lower_vector): ...new function.
22302 (pass_lower_vector_ssa): Replace declaration with that of...
22303 (make_pass_lower_vector_ssa): ...new function.
22304 (pass_lower_omp): Replace declaration with that of...
22305 (make_pass_lower_omp): ...new function.
22306 (pass_diagnose_omp_blocks): Replace declaration with that of...
22307 (make_pass_diagnose_omp_blocks): ...new function.
22308 (pass_expand_omp): Replace declaration with that of...
22309 (make_pass_expand_omp): ...new function.
22310 (pass_expand_omp_ssa): Replace declaration with that of...
22311 (make_pass_expand_omp_ssa): ...new function.
22312 (pass_object_sizes): Replace declaration with that of...
22313 (make_pass_object_sizes): ...new function.
22314 (pass_strlen): Replace declaration with that of...
22315 (make_pass_strlen): ...new function.
22316 (pass_fold_builtins): Replace declaration with that of...
22317 (make_pass_fold_builtins): ...new function.
22318 (pass_stdarg): Replace declaration with that of...
22319 (make_pass_stdarg): ...new function.
22320 (pass_early_warn_uninitialized): Replace declaration with that of...
22321 (make_pass_early_warn_uninitialized): ...new function.
22322 (pass_late_warn_uninitialized): Replace declaration with that of...
22323 (make_pass_late_warn_uninitialized): ...new function.
22324 (pass_cse_reciprocals): Replace declaration with that of...
22325 (make_pass_cse_reciprocals): ...new function.
22326 (pass_cse_sincos): Replace declaration with that of...
22327 (make_pass_cse_sincos): ...new function.
22328 (pass_optimize_bswap): Replace declaration with that of...
22329 (make_pass_optimize_bswap): ...new function.
22330 (pass_optimize_widening_mul): Replace declaration with that of...
22331 (make_pass_optimize_widening_mul): ...new function.
22332 (pass_warn_function_return): Replace declaration with that of...
22333 (make_pass_warn_function_return): ...new function.
22334 (pass_warn_function_noreturn): Replace declaration with that of...
22335 (make_pass_warn_function_noreturn): ...new function.
22336 (pass_cselim): Replace declaration with that of...
22337 (make_pass_cselim): ...new function.
22338 (pass_phiopt): Replace declaration with that of...
22339 (make_pass_phiopt): ...new function.
22340 (pass_forwprop): Replace declaration with that of...
22341 (make_pass_forwprop): ...new function.
22342 (pass_phiprop): Replace declaration with that of...
22343 (make_pass_phiprop): ...new function.
22344 (pass_tree_ifcombine): Replace declaration with that of...
22345 (make_pass_tree_ifcombine): ...new function.
22346 (pass_dse): Replace declaration with that of...
22347 (make_pass_dse): ...new function.
22348 (pass_nrv): Replace declaration with that of...
22349 (make_pass_nrv): ...new function.
22350 (pass_rename_ssa_copies): Replace declaration with that of...
22351 (make_pass_rename_ssa_copies): ...new function.
22352 (pass_sink_code): Replace declaration with that of...
22353 (make_pass_sink_code): ...new function.
22354 (pass_fre): Replace declaration with that of...
22355 (make_pass_fre): ...new function.
22356 (pass_check_data_deps): Replace declaration with that of...
22357 (make_pass_check_data_deps): ...new function.
22358 (pass_copy_prop): Replace declaration with that of...
22359 (make_pass_copy_prop): ...new function.
22360 (pass_vrp): Replace declaration with that of...
22361 (make_pass_vrp): ...new function.
22362 (pass_uncprop): Replace declaration with that of...
22363 (make_pass_uncprop): ...new function.
22364 (pass_return_slot): Replace declaration with that of...
22365 (make_pass_return_slot): ...new function.
22366 (pass_reassoc): Replace declaration with that of...
22367 (make_pass_reassoc): ...new function.
22368 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22369 (make_pass_rebuild_cgraph_edges): ...new function.
22370 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22371 (make_pass_remove_cgraph_callee_edges): ...new function.
22372 (pass_build_cgraph_edges): Replace declaration with that of...
22373 (make_pass_build_cgraph_edges): ...new function.
22374 (pass_local_pure_const): Replace declaration with that of...
22375 (make_pass_local_pure_const): ...new function.
22376 (pass_tracer): Replace declaration with that of...
22377 (make_pass_tracer): ...new function.
22378 (pass_warn_unused_result): Replace declaration with that of...
22379 (make_pass_warn_unused_result): ...new function.
22380 (pass_diagnose_tm_blocks): Replace declaration with that of...
22381 (make_pass_diagnose_tm_blocks): ...new function.
22382 (pass_lower_tm): Replace declaration with that of...
22383 (make_pass_lower_tm): ...new function.
22384 (pass_tm_init): Replace declaration with that of...
22385 (make_pass_tm_init): ...new function.
22386 (pass_tm_mark): Replace declaration with that of...
22387 (make_pass_tm_mark): ...new function.
22388 (pass_tm_memopt): Replace declaration with that of...
22389 (make_pass_tm_memopt): ...new function.
22390 (pass_tm_edges): Replace declaration with that of...
22391 (make_pass_tm_edges): ...new function.
22392 (pass_split_functions): Replace declaration with that of...
22393 (make_pass_split_functions): ...new function.
22394 (pass_feedback_split_functions): Replace declaration with that of...
22395 (make_pass_feedback_split_functions): ...new function.
22396 (pass_strength_reduction): Replace declaration with that of...
22397 (make_pass_strength_reduction): ...new function.
22398 (pass_ipa_lower_emutls): Replace declaration with that of...
22399 (make_pass_ipa_lower_emutls): ...new function.
22400 (pass_ipa_function_and_variable_visibility): Replace declaration with
22402 (make_pass_ipa_function_and_variable_visibility): ...new function.
22403 (pass_ipa_tree_profile): Replace declaration with that of...
22404 (make_pass_ipa_tree_profile): ...new function.
22405 (pass_early_local_passes): Replace declaration with that of...
22406 (make_pass_early_local_passes): ...new function.
22407 (pass_ipa_whole_program_visibility): Replace declaration with that
22409 (make_pass_ipa_whole_program_visibility): ...new function.
22410 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22411 (make_pass_ipa_lto_gimple_out): ...new function.
22412 (pass_ipa_increase_alignment): Replace declaration with that of...
22413 (make_pass_ipa_increase_alignment): ...new function.
22414 (pass_ipa_inline): Replace declaration with that of...
22415 (make_pass_ipa_inline): ...new function.
22416 (pass_ipa_free_lang_data): Replace declaration with that of...
22417 (make_pass_ipa_free_lang_data): ...new function.
22418 (pass_ipa_free_inline_summary): Replace declaration with that of...
22419 (make_pass_ipa_free_inline_summary): ...new function.
22420 (pass_ipa_cp): Replace declaration with that of...
22421 (make_pass_ipa_cp): ...new function.
22422 (pass_ipa_reference): Replace declaration with that of...
22423 (make_pass_ipa_reference): ...new function.
22424 (pass_ipa_pure_const): Replace declaration with that of...
22425 (make_pass_ipa_pure_const): ...new function.
22426 (pass_ipa_pta): Replace declaration with that of...
22427 (make_pass_ipa_pta): ...new function.
22428 (pass_ipa_lto_finish_out): Replace declaration with that of...
22429 (make_pass_ipa_lto_finish_out): ...new function.
22430 (pass_ipa_tm): Replace declaration with that of...
22431 (make_pass_ipa_tm): ...new function.
22432 (pass_ipa_profile): Replace declaration with that of...
22433 (make_pass_ipa_profile): ...new function.
22434 (pass_ipa_cdtor_merge): Replace declaration with that of...
22435 (make_pass_ipa_cdtor_merge): ...new function.
22436 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22438 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22439 (pass_init_datastructures): Replace declaration with that of...
22440 (make_pass_init_datastructures): ...new function.
22441 (pass_fixup_cfg): Replace declaration with that of...
22442 (make_pass_fixup_cfg): ...new function.
22443 (pass_expand): Replace declaration with that of...
22444 (make_pass_expand): ...new function.
22445 (pass_instantiate_virtual_regs): Replace declaration with that of...
22446 (make_pass_instantiate_virtual_regs): ...new function.
22447 (pass_rtl_fwprop): Replace declaration with that of...
22448 (make_pass_rtl_fwprop): ...new function.
22449 (pass_rtl_fwprop_addr): Replace declaration with that of...
22450 (make_pass_rtl_fwprop_addr): ...new function.
22451 (pass_jump): Replace declaration with that of...
22452 (make_pass_jump): ...new function.
22453 (pass_jump2): Replace declaration with that of...
22454 (make_pass_jump2): ...new function.
22455 (pass_lower_subreg): Replace declaration with that of...
22456 (make_pass_lower_subreg): ...new function.
22457 (pass_cse): Replace declaration with that of...
22458 (make_pass_cse): ...new function.
22459 (pass_fast_rtl_dce): Replace declaration with that of...
22460 (make_pass_fast_rtl_dce): ...new function.
22461 (pass_ud_rtl_dce): Replace declaration with that of...
22462 (make_pass_ud_rtl_dce): ...new function.
22463 (pass_rtl_dce): Replace declaration with that of...
22464 (make_pass_rtl_dce): ...new function.
22465 (pass_rtl_dse1): Replace declaration with that of...
22466 (make_pass_rtl_dse1): ...new function.
22467 (pass_rtl_dse2): Replace declaration with that of...
22468 (make_pass_rtl_dse2): ...new function.
22469 (pass_rtl_dse3): Replace declaration with that of...
22470 (make_pass_rtl_dse3): ...new function.
22471 (pass_rtl_cprop): Replace declaration with that of...
22472 (make_pass_rtl_cprop): ...new function.
22473 (pass_rtl_pre): Replace declaration with that of...
22474 (make_pass_rtl_pre): ...new function.
22475 (pass_rtl_hoist): Replace declaration with that of...
22476 (make_pass_rtl_hoist): ...new function.
22477 (pass_rtl_store_motion): Replace declaration with that of...
22478 (make_pass_rtl_store_motion): ...new function.
22479 (pass_cse_after_global_opts): Replace declaration with that of...
22480 (make_pass_cse_after_global_opts): ...new function.
22481 (pass_rtl_ifcvt): Replace declaration with that of...
22482 (make_pass_rtl_ifcvt): ...new function.
22483 (pass_into_cfg_layout_mode): Replace declaration with that of...
22484 (make_pass_into_cfg_layout_mode): ...new function.
22485 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22486 (make_pass_outof_cfg_layout_mode): ...new function.
22487 (pass_loop2): Replace declaration with that of...
22488 (make_pass_loop2): ...new function.
22489 (pass_rtl_loop_init): Replace declaration with that of...
22490 (make_pass_rtl_loop_init): ...new function.
22491 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22492 (make_pass_rtl_move_loop_invariants): ...new function.
22493 (pass_rtl_unswitch): Replace declaration with that of...
22494 (make_pass_rtl_unswitch): ...new function.
22495 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22496 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22497 (pass_rtl_doloop): Replace declaration with that of...
22498 (make_pass_rtl_doloop): ...new function.
22499 (pass_rtl_loop_done): Replace declaration with that of...
22500 (make_pass_rtl_loop_done): ...new function.
22501 (pass_web): Replace declaration with that of...
22502 (make_pass_web): ...new function.
22503 (pass_cse2): Replace declaration with that of...
22504 (make_pass_cse2): ...new function.
22505 (pass_df_initialize_opt): Replace declaration with that of...
22506 (make_pass_df_initialize_opt): ...new function.
22507 (pass_df_initialize_no_opt): Replace declaration with that of...
22508 (make_pass_df_initialize_no_opt): ...new function.
22509 (pass_reginfo_init): Replace declaration with that of...
22510 (make_pass_reginfo_init): ...new function.
22511 (pass_inc_dec): Replace declaration with that of...
22512 (make_pass_inc_dec): ...new function.
22513 (pass_stack_ptr_mod): Replace declaration with that of...
22514 (make_pass_stack_ptr_mod): ...new function.
22515 (pass_initialize_regs): Replace declaration with that of...
22516 (make_pass_initialize_regs): ...new function.
22517 (pass_combine): Replace declaration with that of...
22518 (make_pass_combine): ...new function.
22519 (pass_if_after_combine): Replace declaration with that of...
22520 (make_pass_if_after_combine): ...new function.
22521 (pass_ree): Replace declaration with that of...
22522 (make_pass_ree): ...new function.
22523 (pass_partition_blocks): Replace declaration with that of...
22524 (make_pass_partition_blocks): ...new function.
22525 (pass_match_asm_constraints): Replace declaration with that of...
22526 (make_pass_match_asm_constraints): ...new function.
22527 (pass_regmove): Replace declaration with that of...
22528 (make_pass_regmove): ...new function.
22529 (pass_split_all_insns): Replace declaration with that of...
22530 (make_pass_split_all_insns): ...new function.
22531 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22532 (make_pass_fast_rtl_byte_dce): ...new function.
22533 (pass_lower_subreg2): Replace declaration with that of...
22534 (make_pass_lower_subreg2): ...new function.
22535 (pass_mode_switching): Replace declaration with that of...
22536 (make_pass_mode_switching): ...new function.
22537 (pass_sms): Replace declaration with that of...
22538 (make_pass_sms): ...new function.
22539 (pass_sched): Replace declaration with that of...
22540 (make_pass_sched): ...new function.
22541 (pass_ira): Replace declaration with that of...
22542 (make_pass_ira): ...new function.
22543 (pass_reload): Replace declaration with that of...
22544 (make_pass_reload): ...new function.
22545 (pass_clean_state): Replace declaration with that of...
22546 (make_pass_clean_state): ...new function.
22547 (pass_branch_prob): Replace declaration with that of...
22548 (make_pass_branch_prob): ...new function.
22549 (pass_value_profile_transformations): Replace declaration with that
22551 (make_pass_value_profile_transformations): ...new function.
22552 (pass_postreload_cse): Replace declaration with that of...
22553 (make_pass_postreload_cse): ...new function.
22554 (pass_gcse2): Replace declaration with that of...
22555 (make_pass_gcse2): ...new function.
22556 (pass_split_after_reload): Replace declaration with that of...
22557 (make_pass_split_after_reload): ...new function.
22558 (pass_branch_target_load_optimize1): Replace declaration with that
22560 (make_pass_branch_target_load_optimize1): ...new function.
22561 (pass_thread_prologue_and_epilogue): Replace declaration with that
22563 (make_pass_thread_prologue_and_epilogue): ...new function.
22564 (pass_stack_adjustments): Replace declaration with that of...
22565 (make_pass_stack_adjustments): ...new function.
22566 (pass_peephole2): Replace declaration with that of...
22567 (make_pass_peephole2): ...new function.
22568 (pass_if_after_reload): Replace declaration with that of...
22569 (make_pass_if_after_reload): ...new function.
22570 (pass_regrename): Replace declaration with that of...
22571 (make_pass_regrename): ...new function.
22572 (pass_cprop_hardreg): Replace declaration with that of...
22573 (make_pass_cprop_hardreg): ...new function.
22574 (pass_reorder_blocks): Replace declaration with that of...
22575 (make_pass_reorder_blocks): ...new function.
22576 (pass_branch_target_load_optimize2): Replace declaration with that
22578 (make_pass_branch_target_load_optimize2): ...new function.
22579 (pass_leaf_regs): Replace declaration with that of...
22580 (make_pass_leaf_regs): ...new function.
22581 (pass_split_before_sched2): Replace declaration with that of...
22582 (make_pass_split_before_sched2): ...new function.
22583 (pass_compare_elim_after_reload): Replace declaration with that of...
22584 (make_pass_compare_elim_after_reload): ...new function.
22585 (pass_sched2): Replace declaration with that of...
22586 (make_pass_sched2): ...new function.
22587 (pass_stack_regs): Replace declaration with that of...
22588 (make_pass_stack_regs): ...new function.
22589 (pass_stack_regs_run): Replace declaration with that of...
22590 (make_pass_stack_regs_run): ...new function.
22591 (pass_df_finish): Replace declaration with that of...
22592 (make_pass_df_finish): ...new function.
22593 (pass_compute_alignments): Replace declaration with that of...
22594 (make_pass_compute_alignments): ...new function.
22595 (pass_duplicate_computed_gotos): Replace declaration with that of...
22596 (make_pass_duplicate_computed_gotos): ...new function.
22597 (pass_variable_tracking): Replace declaration with that of...
22598 (make_pass_variable_tracking): ...new function.
22599 (pass_free_cfg): Replace declaration with that of...
22600 (make_pass_free_cfg): ...new function.
22601 (pass_machine_reorg): Replace declaration with that of...
22602 (make_pass_machine_reorg): ...new function.
22603 (pass_cleanup_barriers): Replace declaration with that of...
22604 (make_pass_cleanup_barriers): ...new function.
22605 (pass_delay_slots): Replace declaration with that of...
22606 (make_pass_delay_slots): ...new function.
22607 (pass_split_for_shorten_branches): Replace declaration with that of...
22608 (make_pass_split_for_shorten_branches): ...new function.
22609 (pass_split_before_regstack): Replace declaration with that of...
22610 (make_pass_split_before_regstack): ...new function.
22611 (pass_convert_to_eh_region_ranges): Replace declaration with that
22613 (make_pass_convert_to_eh_region_ranges): ...new function.
22614 (pass_shorten_branches): Replace declaration with that of...
22615 (make_pass_shorten_branches): ...new function.
22616 (pass_set_nothrow_function_flags): Replace declaration with that of...
22617 (make_pass_set_nothrow_function_flags): ...new function.
22618 (pass_dwarf2_frame): Replace declaration with that of...
22619 (make_pass_dwarf2_frame): ...new function.
22620 (pass_final): Replace declaration with that of...
22621 (make_pass_final): ...new function.
22622 (pass_rtl_seqabstr): Replace declaration with that of...
22623 (make_pass_rtl_seqabstr): ...new function.
22624 (pass_release_ssa_names): Replace declaration with that of...
22625 (make_pass_release_ssa_names): ...new function.
22626 (pass_early_inline): Replace declaration with that of...
22627 (make_pass_early_inline): ...new function.
22628 (pass_inline_parameters): Replace declaration with that of...
22629 (make_pass_inline_parameters): ...new function.
22630 (pass_update_address_taken): Replace declaration with that of...
22631 (make_pass_update_address_taken): ...new function.
22632 (pass_convert_switch): Replace declaration with that of...
22633 (make_pass_convert_switch): ...new function.
22634 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22635 to a subclass of simple_ipa_opt_pass along with...
22636 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22637 (make_pass_ipa_tree_profile): ...new function.
22638 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22639 subclass of gimple_opt_pass along with...
22640 (pass_data_sra_early): ...new pass_data instance and...
22641 (make_pass_sra_early): ...new function.
22642 (pass_sra): Convert from a global struct to a subclass of
22643 gimple_opt_pass along with...
22644 (pass_data_sra): ...new pass_data instance and...
22645 (make_pass_sra): ...new function.
22646 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22647 gimple_opt_pass along with...
22648 (pass_data_early_ipa_sra): ...new pass_data instance and...
22649 (make_pass_early_ipa_sra): ...new function.
22650 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22651 subclass of gimple_opt_pass along with...
22652 (pass_data_ccp): ...new pass_data instance and...
22653 (make_pass_ccp): ...new function.
22654 (pass_fold_builtins): Convert from a global struct to a subclass of
22655 gimple_opt_pass along with...
22656 (pass_data_fold_builtins): ...new pass_data instance and...
22657 (make_pass_fold_builtins): ...new function.
22658 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22659 subclass of gimple_opt_pass along with...
22660 (pass_data_copy_prop): ...new pass_data instance and...
22661 (make_pass_copy_prop): ...new function.
22662 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22663 global struct to a subclass of gimple_opt_pass along with...
22664 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22665 (make_pass_rename_ssa_copies): ...new function.
22666 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22667 subclass of gimple_opt_pass along with...
22668 (pass_data_dce): ...new pass_data instance and...
22669 (make_pass_dce): ...new function.
22670 (pass_dce_loop): Convert from a global struct to a subclass of
22671 gimple_opt_pass along with...
22672 (pass_data_dce_loop): ...new pass_data instance and...
22673 (make_pass_dce_loop): ...new function.
22674 (pass_cd_dce): Convert from a global struct to a subclass of
22675 gimple_opt_pass along with...
22676 (pass_data_cd_dce): ...new pass_data instance and...
22677 (make_pass_cd_dce): ...new function.
22678 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22679 subclass of gimple_opt_pass along with...
22680 (pass_data_dominator): ...new pass_data instance and...
22681 (make_pass_dominator): ...new function.
22682 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22683 gimple_opt_pass along with...
22684 (pass_data_phi_only_cprop): ...new pass_data instance and...
22685 (make_pass_phi_only_cprop): ...new function.
22686 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22687 subclass of gimple_opt_pass along with...
22688 (pass_data_dse): ...new pass_data instance and...
22689 (make_pass_dse): ...new function.
22690 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22691 a subclass of gimple_opt_pass along with...
22692 (pass_data_forwprop): ...new pass_data instance and...
22693 (make_pass_forwprop): ...new function.
22694 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22695 struct to a subclass of gimple_opt_pass along with...
22696 (pass_data_tree_ifcombine): ...new pass_data instance and...
22697 (make_pass_tree_ifcombine): ...new function.
22698 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22699 subclass of gimple_opt_pass along with...
22700 (pass_data_ch): ...new pass_data instance and...
22701 (make_pass_ch): ...new function.
22702 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22703 subclass of gimple_opt_pass along with...
22704 (pass_data_tree_loop): ...new pass_data instance and...
22705 (make_pass_tree_loop): ...new function.
22706 (pass_tree_loop_init): Convert from a global struct to a subclass of
22707 gimple_opt_pass along with...
22708 (pass_data_tree_loop_init): ...new pass_data instance and...
22709 (make_pass_tree_loop_init): ...new function.
22710 (pass_lim): Convert from a global struct to a subclass of
22711 gimple_opt_pass along with...
22712 (pass_data_lim): ...new pass_data instance and...
22713 (make_pass_lim): ...new function.
22714 (pass_tree_unswitch): Convert from a global struct to a subclass of
22715 gimple_opt_pass along with...
22716 (pass_data_tree_unswitch): ...new pass_data instance and...
22717 (make_pass_tree_unswitch): ...new function.
22718 (pass_predcom): Convert from a global struct to a subclass of
22719 gimple_opt_pass along with...
22720 (pass_data_predcom): ...new pass_data instance and...
22721 (make_pass_predcom): ...new function.
22722 (pass_vectorize): Convert from a global struct to a subclass of
22723 gimple_opt_pass along with...
22724 (pass_data_vectorize): ...new pass_data instance and...
22725 (make_pass_vectorize): ...new function.
22726 (pass_graphite): Convert from a global struct to a subclass of
22727 gimple_opt_pass along with...
22728 (pass_data_graphite): ...new pass_data instance and...
22729 (make_pass_graphite): ...new function.
22730 (pass_graphite_transforms): Convert from a global struct to a subclass
22731 of gimple_opt_pass along with...
22732 (pass_data_graphite_transforms): ...new pass_data instance and...
22733 (make_pass_graphite_transforms): ...new function.
22734 (pass_check_data_deps): Convert from a global struct to a subclass of
22735 gimple_opt_pass along with...
22736 (pass_data_check_data_deps): ...new pass_data instance and...
22737 (make_pass_check_data_deps): ...new function.
22738 (pass_iv_canon): Convert from a global struct to a subclass of
22739 gimple_opt_pass along with...
22740 (pass_data_iv_canon): ...new pass_data instance and...
22741 (make_pass_iv_canon): ...new function.
22742 (pass_scev_cprop): Convert from a global struct to a subclass of
22743 gimple_opt_pass along with...
22744 (pass_data_scev_cprop): ...new pass_data instance and...
22745 (make_pass_scev_cprop): ...new function.
22746 (pass_record_bounds): Convert from a global struct to a subclass of
22747 gimple_opt_pass along with...
22748 (pass_data_record_bounds): ...new pass_data instance and...
22749 (make_pass_record_bounds): ...new function.
22750 (pass_complete_unroll): Convert from a global struct to a subclass of
22751 gimple_opt_pass along with...
22752 (pass_data_complete_unroll): ...new pass_data instance and...
22753 (make_pass_complete_unroll): ...new function.
22754 (pass_complete_unrolli): Convert from a global struct to a subclass of
22755 gimple_opt_pass along with...
22756 (pass_data_complete_unrolli): ...new pass_data instance and...
22757 (make_pass_complete_unrolli): ...new function.
22758 (pass_parallelize_loops): Convert from a global struct to a subclass
22759 of gimple_opt_pass along with...
22760 (pass_data_parallelize_loops): ...new pass_data instance and...
22761 (make_pass_parallelize_loops): ...new function.
22762 (pass_loop_prefetch): Convert from a global struct to a subclass of
22763 gimple_opt_pass along with...
22764 (pass_data_loop_prefetch): ...new pass_data instance and...
22765 (make_pass_loop_prefetch): ...new function.
22766 (pass_iv_optimize): Convert from a global struct to a subclass of
22767 gimple_opt_pass along with...
22768 (pass_data_iv_optimize): ...new pass_data instance and...
22769 (make_pass_iv_optimize): ...new function.
22770 (pass_tree_loop_done): Convert from a global struct to a subclass of
22771 gimple_opt_pass along with...
22772 (pass_data_tree_loop_done): ...new pass_data instance and...
22773 (make_pass_tree_loop_done): ...new function.
22774 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22775 struct to a subclass of gimple_opt_pass along with...
22776 (pass_data_cse_reciprocals): ...new pass_data instance and...
22777 (make_pass_cse_reciprocals): ...new function.
22778 (pass_cse_sincos): Convert from a global struct to a subclass of
22779 gimple_opt_pass along with...
22780 (pass_data_cse_sincos): ...new pass_data instance and...
22781 (make_pass_cse_sincos): ...new function.
22782 (pass_optimize_bswap): Convert from a global struct to a subclass of
22783 gimple_opt_pass along with...
22784 (pass_data_optimize_bswap): ...new pass_data instance and...
22785 (make_pass_optimize_bswap): ...new function.
22786 (pass_optimize_widening_mul): Convert from a global struct to a
22787 subclass of gimple_opt_pass along with...
22788 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22789 (make_pass_optimize_widening_mul): ...new function.
22790 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22791 subclass of gimple_opt_pass along with...
22792 (pass_data_phiopt): ...new pass_data instance and...
22793 (make_pass_phiopt): ...new function.
22794 (pass_cselim): Convert from a global struct to a subclass of
22795 gimple_opt_pass along with...
22796 (pass_data_cselim): ...new pass_data instance and...
22797 (make_pass_cselim): ...new function.
22798 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22799 subclass of gimple_opt_pass along with...
22800 (pass_data_phiprop): ...new pass_data instance and...
22801 (make_pass_phiprop): ...new function.
22802 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22803 subclass of gimple_opt_pass along with...
22804 (pass_data_pre): ...new pass_data instance and...
22805 (make_pass_pre): ...new function.
22806 (pass_fre): Convert from a global struct to a subclass of
22807 gimple_opt_pass along with...
22808 (pass_data_fre): ...new pass_data instance and...
22809 (make_pass_fre): ...new function.
22810 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22811 subclass of gimple_opt_pass along with...
22812 (pass_data_reassoc): ...new pass_data instance and...
22813 (make_pass_reassoc): ...new function.
22814 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22815 subclass of gimple_opt_pass along with...
22816 (pass_data_sink_code): ...new pass_data instance and...
22817 (make_pass_sink_code): ...new function.
22818 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22819 subclass of gimple_opt_pass along with...
22820 (pass_data_strlen): ...new pass_data instance and...
22821 (make_pass_strlen): ...new function.
22822 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22823 struct to a subclass of gimple_opt_pass along with...
22824 (pass_data_build_alias): ...new pass_data instance and...
22825 (make_pass_build_alias): ...new function.
22826 (pass_build_ealias): Convert from a global struct to a subclass of
22827 gimple_opt_pass along with...
22828 (pass_data_build_ealias): ...new pass_data instance and...
22829 (make_pass_build_ealias): ...new function.
22830 (pass_ipa_pta): Convert from a global struct to a subclass of
22831 simple_ipa_opt_pass along with...
22832 (pass_data_ipa_pta): ...new pass_data instance and...
22833 (make_pass_ipa_pta): ...new function.
22834 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22835 subclass of gimple_opt_pass along with...
22836 (pass_data_uncprop): ...new pass_data instance and...
22837 (make_pass_uncprop): ...new function.
22838 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22839 global struct to a subclass of gimple_opt_pass along with...
22840 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22841 (make_pass_late_warn_uninitialized): ...new function.
22842 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22843 to a subclass of gimple_opt_pass along with...
22844 (pass_data_init_datastructures): ...new pass_data instance and...
22845 (make_pass_init_datastructures): ...new function.
22846 (pass_early_warn_uninitialized): Convert from a global struct to a
22847 subclass of gimple_opt_pass along with...
22848 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22849 (make_pass_early_warn_uninitialized): ...new function.
22850 (pass_update_address_taken): Convert from a global struct to a
22851 subclass of gimple_opt_pass along with...
22852 (pass_data_update_address_taken): ...new pass_data instance and...
22853 (make_pass_update_address_taken): ...new function.
22854 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22855 struct to a subclass of gimple_opt_pass along with...
22856 (pass_data_release_ssa_names): ...new pass_data instance and...
22857 (make_pass_release_ssa_names): ...new function.
22858 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22859 subclass of gimple_opt_pass along with...
22860 (pass_data_stdarg): ...new pass_data instance and...
22861 (make_pass_stdarg): ...new function.
22862 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22863 global struct to a subclass of gimple_opt_pass along with...
22864 (pass_data_convert_switch): ...new pass_data instance and...
22865 (make_pass_convert_switch): ...new function.
22866 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22867 to a subclass of gimple_opt_pass along with...
22868 (pass_data_tail_recursion): ...new pass_data instance and...
22869 (make_pass_tail_recursion): ...new function.
22870 (pass_tail_calls): Convert from a global struct to a subclass of
22871 gimple_opt_pass along with...
22872 (pass_data_tail_calls): ...new pass_data instance and...
22873 (make_pass_tail_calls): ...new function.
22874 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22875 struct to a subclass of gimple_opt_pass along with...
22876 (pass_data_lower_vector): ...new pass_data instance and...
22877 (make_pass_lower_vector): ...new function.
22878 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22879 gimple_opt_pass along with...
22880 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22881 (make_pass_lower_vector_ssa): ...new function.
22882 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22883 to a subclass of gimple_opt_pass along with...
22884 (pass_data_slp_vectorize): ...new pass_data instance and...
22885 (make_pass_slp_vectorize): ...new function.
22886 (pass_ipa_increase_alignment): Convert from a global struct to a
22887 subclass of simple_ipa_opt_pass along with...
22888 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22889 (make_pass_ipa_increase_alignment): ...new function.
22890 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22891 gimple_opt_pass along with...
22892 (pass_data_vrp): ...new pass_data instance and...
22893 (make_pass_vrp): ...new function.
22894 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22895 subclass of simple_ipa_opt_pass along with...
22896 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22897 (make_pass_ipa_free_lang_data): ...new function.
22898 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22899 gimple_opt_pass along with...
22900 (pass_data_tsan): ...new pass_data instance and...
22901 (make_pass_tsan): ...new function.
22902 (pass_tsan_O0): Convert from a global struct to a subclass of
22903 gimple_opt_pass along with...
22904 (pass_data_tsan_O0): ...new pass_data instance and...
22905 (make_pass_tsan_O0): ...new function.
22906 * var-tracking.c (pass_variable_tracking): Convert from a global
22907 struct to a subclass of rtl_opt_pass along with...
22908 (pass_data_variable_tracking): ...new pass_data instance and...
22909 (make_pass_variable_tracking): ...new function.
22910 * web.c (pass_web): Convert from a global struct to a subclass of
22911 rtl_opt_pass along with...
22912 (pass_data_web): ...new pass_data instance and...
22913 (make_pass_web): ...new function.
22914 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22915 declaration with that of...
22916 (make_pass_mode_switch_use): ...new function.
22917 (pass_resolve_sw_modes): Replace declaration with that of...
22918 (make_pass_resolve_sw_modes): ...new function.
22919 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22920 from a global struct to a subclass of rtl_opt_pass along with...
22921 (pass_data_mode_switch_use): ...new pass_data instance and...
22922 (make_pass_mode_switch_use): ...new function.
22923 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22924 from a global struct to a subclass of rtl_opt_pass along with...
22925 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22926 (make_pass_resolve_sw_modes): ...new function.
22927 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22928 struct to a subclass of rtl_opt_pass along with...
22929 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22930 (make_pass_insert_vzeroupper): ...new function.
22931 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22932 global struct to a subclass of rtl_opt_pass along with...
22933 (pass_data_work_around_errata): ...new pass_data instance and...
22934 (make_pass_work_around_errata): ...new function.
22935 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22936 struct to a subclass of rtl_opt_pass along with...
22937 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22938 (make_pass_mips_machine_reorg2): ...new function.
22940 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22942 * passes.c (pass_manager::operator new): New.
22944 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22946 Handwritten part of conversion of passes to C++ classes.
22948 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22949 (toplev.o): Add dep on PASS_MANAGER_H.
22950 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22951 of early local pases to reflect this moving from a global to a
22952 member of gcc::pass_manager.
22953 (cgraph_add_new_function): Likewise.
22954 * lto-cgraph.c (lto_output_node): Update for conversion of
22955 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22956 * passes.c (opt_pass::clone): New.
22957 (opt_pass::gate): New.
22958 (opt_pass::execute): New.
22959 (opt_pass::opt_pass): New.
22960 (pass_manager::execute_early_local_passes): New.
22961 (pass_manager::execute_pass_mode_switching): new.
22962 (finish_optimization_passes): Convert to...
22963 (pass_manager::finish_optimization_passes): ...this.
22964 (finish_optimization_passes): Update for conversion of passes to
22966 (register_dump_files_1): Use has_gate since we cannot portably
22967 check a vtable entry against NULL.
22968 (dump_one_pass): Likewise.
22969 (ipa_write_summaries_2): Likewise.
22970 (ipa_write_optimization_summaries_1): Likewise.
22971 (ipa_read_summaries_1): Likewise.
22972 (ipa_read_optimization_summaries_1): Likewise.
22973 (execute_ipa_stmt_fixups): Likewise.
22974 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22975 pass-creation functions rather than wiring up globals, and
22976 storing the results in fields of pass_manager generated using
22977 pass-instances.def.
22978 (pass_manager::dump_profile_report): Update for conversion of
22979 passes to C++ classes.
22980 (pass_manager::execute_ipa_summary_passes): Likewise.
22981 (execute_one_ipa_transform_pass): Likewise.
22982 (execute_one_pass): Use has_gate and has_execute since we cannot
22983 portably check a vtable entry against NULL.
22984 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22985 (pass_manager): Use pass-instances.def to add fields for the
22986 various pass instances.
22987 * toplev.c (finalize): Update for move of
22988 finish_optimization_passes to a method of gcc::pass_manager.
22989 * toplev.h (finish_optimization_passes): Move to method of class
22991 * tree-pass.h (struct pass_data): New.
22992 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22993 (opt_pass::gate): Convert to virtual function.
22994 (opt_pass::~opt_pass): New.
22995 (opt_pass::clone): New.
22996 (opt_pass::execute): Convert to virtual function.
22997 (opt_pass::opt_pass): New.
22998 (opt_pass::ctxt_): new.
22999 (gimple_opt_pass): Convert to subclass of opt_pass.
23000 (gimple_opt_pass::gimple_opt_pass): New.
23001 (rtl_opt_pass): Convert to subclass of opt_pass.
23002 (rtl_opt_pass::rtl_opt_pass): New.
23003 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23004 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23005 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23006 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23007 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23008 invocation of pass_mode_switching to reflect this moving from a
23009 global to a member of gcc::pass_manager.
23010 (ix86_option_override): Rework how pass_insert_vzeroupper is
23011 added to the pass_manager to reflect autogenerated changes.
23012 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23014 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23016 PR rtl-optimization/57708
23017 * recog.c (peep2_find_free_register): Validate all regs in a
23020 2013-08-05 Jan Hubicka <jh@suse.cz>
23023 * cgraph.c (verify_cgraph_node): Accept local flags from other
23025 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23026 (function_and_variable_visibility): Likewise.
23027 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23029 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23031 * graph.c (init_graph_slim_pretty_print): Remove.
23032 (print_graph_cfg): Do not call it. Use local pretty printer.
23033 (start_graph_dump): Likewise.
23035 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23037 * gimple-pretty-print.c (buffer): Remove.
23038 (initialized): Likewise.
23039 (maybe_init_pretty_print): Likewise.
23040 (print_gimple_stmt): Do not call it. Use non-static local
23041 pretty_printer variable.
23042 (print_gimple_expr): Likewise.
23043 (print_gimple_seq): Likewise.
23044 (gimple_dump_bb): Likewise.
23046 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23048 * asan.c (asan_pp): Remove.
23049 (asan_pp_initialized): Likewise.
23050 (asan_pp_initialize): Likewise.
23051 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23052 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23053 (asan_add_global): Likewise.
23055 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23057 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23058 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23059 * pretty-print.c (pp_formatted_text_data): Likewise.
23060 (pp_indent): Rename from pp_base_indent.
23061 (pp_format): Rename from pp_base_format.
23062 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23063 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23064 (pp_flush): Rename from pp_base_flush.
23065 (pp_set_line_maximum_length): Rename from
23066 pp_base_set_line_maximum_length.
23067 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23068 (pp_set_prefix): Rename from pp_base_set_prefix.
23069 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23070 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23071 (pp_append_text): Rename from pp_base_append_text.
23072 (pp_formatted_text): Rename from pp_base_formatted_text.
23073 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23074 (pp_remaining_character_count_for_line): Rename from
23075 pp_base_remaining_character_count_for_line.
23076 (pp_newline): Rename from pp_base_newline.
23077 (pp_character): Rename from pp_base_character.
23078 (pp_string): Rename from pp_base_string.
23079 (pp_maybe_space): Rename from pp_base_maybe_space.
23080 * asan.c (asan_pp_string): Adjust.
23081 (asan_emit_stack_protection): Likewise.
23082 (asan_add_global): Likewise.
23083 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23084 * tree-mudflap.c (mf_varname_tree): Likewise.
23085 * tree-pretty-print.c (pp_tree_identifier): Rename from
23086 pp_base_tree_identifier.
23087 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23088 Declare as function.
23090 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23092 * pretty-print.h (pp_bar_bar): New.
23093 (pp_ampersand_ampersand): Likewise.
23094 (pp_less_equal): Likewise.
23095 (pp_greater_equal): Likewise.
23096 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23097 printer functions instead of pp_string or operators and punctuators.
23098 (dump_gimple_call): Likewise.
23099 (dump_gimple_omp_for): Likewise.
23100 (dump_gimple_transaction): Likewise.
23101 (dump_gimple_phi): Likewise.
23102 (pp_gimple_stmt_1): Likewise.
23103 * sched-vis.c (print_insn): Likewise.
23104 * tree-mudflap.c (mf_varname_tree): Likewise.
23105 * tree-pretty-print.c (dump_block_node): Likewise.
23106 (dump_generic_node): Likewise.
23108 2013-08-02 Jan Hubicka <jh@suse.cz>
23110 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23112 * lto-streamer-out.c (tree_is_indexable): Results decls and
23113 parm decls are not indexable.
23114 (DFS_write_tree_body): Do not follow args and results.
23115 (hash_tree): Likewise.
23116 (output_functions): Rearrange so struct function is needed
23117 only when real body is output; be able to also ouptut abstract
23118 functions; output DECL_ARGUMENTS and DECL_RESULT.
23119 (lto_output): When not in WPA, ale store abstract functions.
23120 (write_symbol): Do not care about RESULT_DECL.
23121 (output_symbol_p): Handle correctly sbtract decls.
23122 * lto-streamer-in.c (input_function): Rearrange so struct
23123 function can be NULL at entry; allow streaming of
23124 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23125 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23126 sanity check during LTO.
23127 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23128 RESULT_DECl and DECL_ARGUMENTS.
23129 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23132 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23134 * pretty-print.h (pp_underscore): New.
23136 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23137 printer functions instead of pp_character.
23138 (dump_binary_rhs): Likewise.
23139 (dump_ternary_rhs): Likewise.
23140 (dump_gimple_call_args): Likewise.
23141 (pp_points_to_solution): Likewise.
23142 (dump_gimple_call): Likewise.
23143 (dump_gimple_switch): Likewise.
23144 (dump_gimple_cond): Likewise.
23145 (dump_gimple_bind): Likewise.
23146 (dump_gimple_try): Likewise.
23147 (dump_gimple_omp_for): Likewise.
23148 (dump_gimple_omp_continue): Likewise.
23149 (dump_gimple_omp_single): Likewise.
23150 (dump_gimple_omp_sections): Likewise.
23151 (dump_gimple_omp_block): Likewise.
23152 (dump_gimple_omp_critical): Likewise.
23153 (dump_gimple_transaction): Likewise.
23154 (dump_gimple_asm): Likewise.
23155 (dump_gimple_phi): Likewise.
23156 (dump_gimple_omp_parallel): Likewise.
23157 (dump_gimple_omp_task): Likewise.
23158 (dump_gimple_omp_atomic_load): Likewise.
23159 (dump_gimple_omp_atomic_store): Likewise.
23160 (dump_gimple_mem_ops): Likewise.
23161 (pp_gimple_stmt_1): Likewise.
23162 (pp_cfg_jump): Likewise.
23163 (dump_implicit_edges): Likewise.
23164 (gimple_dump_bb_for_graph): Likewise.
23165 * graph.c (draw_cfg_node): Likewise.
23166 * langhooks.c (lhd_print_error_function): Likewise.
23167 * sched-vis.c (print_exp): Likewise.
23168 (print_value): Likewise.
23169 (print_pattern): Likewise.
23170 (print_insn): Likewise.
23171 (rtl_dump_bb_for_graph): Likewise.
23172 * tree-pretty-print.c (dump_function_declaration): Likewise.
23173 (dump_array_domain): Likewise.
23174 (dump_omp_clause): Likewise.
23175 (dump_location): Likewise.
23176 (dump_generic_node): Likewise.
23177 (print_struct_decl): Likewise.
23178 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23180 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23182 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23183 candidate table when replacing a candidate statement.
23184 (replace_rhs_if_not_dup): Likewise.
23185 (replace_one_candidate): Likewise.
23187 2013-08-02 Jan Hubicka <jh@suse.cz>
23188 Martin Liska <marxin.liska@gmail.com>
23190 * cgraphunit.c (add_new_function): Fix logic when adding from
23192 (assemble_thunk): Rename to ...
23193 (expand_thunk); .. this one; export; get it working with
23194 general functions; make produced gimple valid.
23195 * cgraph.h (expand_thunk): Declare.
23197 2013-08-02 Jan Hubicka <jh@suse.cz>
23199 * ipa-cp.c (gather_context_independent_values): Use
23200 ipa_get_param_move_cost.
23201 (get_replacement_map): Remove PARAM; move parameter folding
23203 (create_specialized_node): Update.
23204 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23205 assert that we have gimple body; update move_cost.
23206 (count_formal_params): Assert that we have gimple body.
23207 (ipa_dump_param): New function.
23208 (ipa_alloc_node_params): Break out from ...
23209 (ipa_initialize_node_params): ... here.
23210 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23211 (ipa_write_node_info): Stream move costs.
23212 (ipa_read_node_info): Read move costs.
23213 (ipa_update_after_lto_read): Do not recompute node params.
23214 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23215 (ipa_get_param): Check we are not in WPA.
23216 (ipa_get_param_move_cost): New.
23217 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23218 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23219 parm numbers to be present.
23221 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23223 PR rtl-optimization/58048
23224 * lra-constraints.c (process_alt_operands): Don't check asm
23225 operand on register.
23227 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23229 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23230 the implied StoreLoad barrier for atomic operations if before.
23232 2013-08-02 Jan Hubicka <jh@suse.cz>
23233 Martin Liska <marxin.liska@gmail.com>
23235 * cgraph.c (cgraph_function_body_availability): Do not check
23237 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23238 symtab_node_availability): Declare.
23239 * ipa.c (can_replace_by_local_alias): New.
23240 (function_and_variable_visibility): Use it.
23241 * symtab.c (symtab_for_node_and_aliases,
23242 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23244 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23246 PR rtl-optimization/57963
23247 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23248 (lra_constraints): Use them.
23250 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23252 * config/arm/types.md (define_attr "type"): Add "load_acq"
23254 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23256 (cortex_a53_store1): Likewise.
23258 2013-08-01 Jan Hubicka <jh@suse.cz>
23260 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23261 partitions are not needed.
23263 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23265 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23266 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23267 MAYBE_NON_Q_CLASS_P where appropriate.
23269 2013-08-01 Jan Hubicka <jh@suse.cz>
23271 * cgraph.h (release_function_body): Declare.
23272 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23273 of unused delcarations.
23275 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23277 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23278 RTL form when subtracting a constant.
23280 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23282 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23283 Generate canonical plus rtx with negated immediate instead of minus
23285 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23287 2013-08-01 Jan Hubicka <jh@suse.cz>
23289 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23290 (cgraph_release_function_body): Likewise.
23291 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23292 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23293 to used_as_abstract_origin.
23294 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23295 symbols used as abstract origins.
23296 * cgraphunit.c (analyze_functions): Update.
23297 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23298 used_as_abstract_origin.
23299 * tree-inline.c (tree_function_versioning): Update
23300 used_as_abstract_origin; be ready for DECL_RESULT and
23301 DECL_ARGUMENTS to be NULL.
23303 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23304 for abstract functions.
23305 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23308 2013-08-01 Jan Hubicka <jh@suse.cz>
23310 * profile.c (compute_value_histograms): Fix thinko.
23312 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23314 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23315 aarch-common-protos.h to extra_headers.
23316 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23317 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23318 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23320 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23322 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23323 Include "../arm/types.md". Define "type" attribute for all patterns.
23324 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23327 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23329 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23330 to support power8 load fusion.
23331 (fusion_gpr_mem_load): Likewise.
23333 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23335 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23336 declarations for power8 load fusion.
23337 (emit_fusion_gpr_load): Likewise.
23339 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23340 tuning for power8, turn on fusion mode by default. Turn on sign
23341 extending fusion mode if normal fusion mode is on, and we are at
23343 (fusion_gpr_load_p): New function, return true if we can fuse an
23344 addis instruction with a dependent load to a GPR.
23345 (emit_fusion_gpr_load): Emit the instructions for power8 load
23348 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23349 (VSX load fusion peepholes): New peepholes to fuse together an
23350 addi instruction with a VSX load instruction.
23352 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23353 peepholes to fuse an addis instruction with a load to a GPR base
23354 register. If we are supporting sign extending fusions, convert
23355 sign extending loads to zero extending loads and add an explicit
23358 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23360 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23361 aarch-common-protos.h to extra_headers.
23362 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23363 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23364 (arm_early_store_addr_dep): Likewise.
23365 (arm_no_early_alu_shift_dep): Likewise.
23366 (arm_no_early_alu_shift_value_dep): Likewise.
23367 (arm_no_early_mul_dep): Likewise.
23368 (arm_no_early_store_addr_dep): Likewise.
23369 (arm_mac_accumulator_is_mul_result): Likewise.
23370 (arm_mac_accumulator_is_result): Likewise.
23371 * config/arm/aarch-common.c: ... here. New file.
23372 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23374 (arm_early_store_addr_dep): Likewise.
23375 (arm_no_early_alu_shift_dep): Likewise.
23376 (arm_no_early_alu_shift_value_dep): Likewise.
23377 (arm_no_early_mul_dep): Likewise.
23378 (arm_no_early_store_addr_dep): Likewise.
23379 (arm_mac_accumulator_is_mul_result): Likewise.
23380 (arm_mac_accumulator_is_result): Likewise.
23381 * config/arm/aarch-common-protos.h: ... here. New file.
23382 * config/arm/t-arm (aarch-common.o): Define.
23384 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23386 * config/arm/arm.md: Include new file "types.md".
23387 (define_attr "type"): Move from here to ...
23388 (define_attr "mul32"): Likewise.
23389 (define_attr "mul64"): Likewise.
23390 * config/arm/types.md: ... here. New file.
23392 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23394 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23395 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23397 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23399 * gen-pass-instances.awk: Fix offset of substr().
23401 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23403 * Makefile.in (pass-instances.def): New.
23404 (passes.o): Replace dependency on passes.def with one on
23407 * gen-pass-instances.awk: New.
23409 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23410 rather than passes.def, updating local definition of NEXT_PASS
23411 macro to add an extra NUM parameter (currently unused).
23413 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23415 * Makefile.in (PASS_MANAGER_H): New.
23416 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23417 (passes.o): Likewise.
23418 (statistics.o): Likewise.
23419 (cgraphunit.o): Likewise.
23420 (context.o): Depend on PASS_MANAGER_H.
23422 * pass_manager.h: New.
23424 * cgraphunit.c (cgraph_add_new_function): Update for moves
23425 of globals to fields of pass_manager.
23426 (analyze_function): Likewise.
23427 (expand_function): Likewise.
23428 (ipa_passes): Likewise.
23429 (compile): Likewise.
23431 * context.c (context::context): New.
23432 * context.h (context::context): New.
23433 (context::get_passes): New.
23434 (context::passes_): New.
23436 * lto-cgraph.c (input_node): Update for moves of globals to
23437 fields of pass_manager.
23439 * passes.c (all_passes): Remove, in favor of a field of the
23440 same name within the new class pass_manager.
23441 (all_small_ipa_passes): Likewise.
23442 (all_lowering_passes): Likewise.
23443 (all_regular_ipa_passes): Likewise.
23444 (all_late_ipa_passes): Likewise.
23445 (all_lto_gen_passes): Likewise.
23446 (passes_by_id): Likewise.
23447 (passes_by_id_size): Likewise.
23448 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23449 the new class pass_manager.
23450 (set_pass_for_id): Convert to...
23451 (pass_manager::set_pass_for_id): ...method.
23452 (get_pass_for_id): Convert to...
23453 (pass_manager::get_pass_for_id): ...method.
23454 (register_one_dump_file): Move body of implementation into...
23455 (pass_manager::register_one_dump_file): ...here.
23456 (register_dump_files_1): Convert to...
23457 (pass_manager::register_dump_files_1): ...method.
23458 (register_dump_files): Convert to...
23459 (pass_manager::register_dump_files): ...method.
23460 (create_pass_tab): Update for moves of globals to fields of
23462 (dump_passes): Move body of implementation into...
23463 (pass_manager::dump_passes): ...here.
23464 (register_pass): Move body of implementation into...
23465 (pass_manager::register_pass): ...here.
23466 (init_optimization_passes): Convert into...
23467 (pass_manager::pass_manager): ...constructor for new
23468 pass_manager class, and initialize the pass_lists array.
23469 (check_profile_consistency): Update for moves of globals to
23470 fields of pass_manager.
23471 (dump_profile_report): Move body of implementation into...
23472 (pass_manager::dump_profile_report): ...here.
23473 (ipa_write_summaries_1): Update for moves of pass lists from
23474 being globals to fields of pass_manager.
23475 (ipa_write_optimization_summaries): Likewise.
23476 (ipa_read_summaries): Likewise.
23477 (ipa_read_optimization_summaries): Likewise.
23478 (execute_all_ipa_stmt_fixups): Likewise.
23480 * statistics.c (statistics_fini): Update for moves of globals to
23481 fields of pass_manager.
23483 * toplev.c (general_init): Replace call to
23484 init_optimization_passes with construction of the pass_manager
23487 * tree-pass.h (all_passes): Remove, in favor of a field of the
23488 same name within the new class pass_manager.
23489 (all_small_ipa_passes): Likewise.
23490 (all_lowering_passes): Likewise.
23491 (all_regular_ipa_passes): Likewise.
23492 (all_lto_gen_passes): Likewise.
23493 (all_late_ipa_passes): Likewise.
23494 (passes_by_id): Likewise.
23495 (passes_by_id_size): Likewise.
23496 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23497 the new class pass_manager.
23498 (get_pass_for_id): Remove.
23500 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23502 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23505 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23507 * arm.md (mulhi3): New expand pattern.
23509 2013-07-30 Jan Hubicka <jh@suse.cz>
23510 Martin Liska <marxin.liska@gmail.com>
23512 * profile.c (compute_value_histograms): Do not ICE when
23513 there is mismatch only on some counters.
23515 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23517 PR rtl-optimization/57637
23518 * function.c (move_insn_for_shrink_wrap): Also check the
23519 GEN set of the LIVE problem for the liveness analysis
23520 if it exists, otherwise give up.
23522 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23524 PR tree-optimization/57993
23525 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23526 replaced statement in the candidate table.
23527 (phi_add_costs): Return infinite cost when the hidden basis does
23528 not dominate all phis on which the candidate is dependent.
23529 (replace_one_candidate): Record replaced statement in the
23532 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23534 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23535 (ashlv2si3): New expander.
23536 (*ashlv2si3_i): New define_insn_and_split.
23537 * predicates.md (float_operation): Allow patterns with three
23538 basic sub-patterns.
23540 PR rtl-optimization/58021
23541 * mode-switching.c (create_pre_exit): Always split off preceding
23542 insns if we are not at the basic block head.
23544 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23546 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23547 (UCLIBC_DYNAMIC_LINKER): New macro.
23548 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23550 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23551 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23553 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23554 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23555 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23556 for SF and DF modes. Use ieee_quad_format for TF mode.
23557 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23558 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23559 (mips_option_override): Handle `-mnan=legacy'.
23560 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23561 `-mabs=2008' and `-mnan=2008'.
23562 (OPTION_DEFAULT_SPECS): Add "nan" default.
23563 (ASM_SPEC): Handle `-mnan='.
23564 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23565 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23566 comment accordingly.
23567 (neg<mode>2): Likewise.
23568 * config/mips/mips.opt (mabs, mnan): New options.
23569 * doc/install.texi (Configuration): Document `--with-nan=' option.
23570 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23572 (MIPS Options): Document them.
23573 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23574 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23575 * configure: Regenerate.
23576 * config.in: Regenerate.
23578 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23580 * config/i386/i386.md (float post-reload splitters): Do not check
23581 for subregs of SSE registers.
23583 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23584 H.J. Lu <hongjiu.lu@intel.com>
23588 * config/i386/i386.md (post-reload splitter
23589 to avoid partial SSE reg dependency stalls): New pattern.
23591 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23593 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23595 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23597 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23598 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23600 2013-07-26 Cary Coutant <ccoutant@google.com>
23602 * dwarf2out.c (die_checksum_ordered): Don't include template
23603 instantiations in signature.
23604 (is_template_parameter): New function.
23605 (is_template_instantiation): New function.
23606 (generate_skeleton_bottom_up): Don't include template instantiations
23608 (generate_skeleton): Likewise.
23609 (break_out_comdat_types): Move recursive call to break out nested
23611 (prune_unused_types_mark_generic_parms_dies): Call
23612 is_template_parameter.
23614 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23616 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23617 uses vector registers.
23618 * config/aarch64/iterators.md: Add attributes rtn and vas.
23620 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23621 Richard Earnshaw <richard.earnshaw@arm.com>
23623 * combine.c (simplify_comparison): Re-canonicalize operands
23625 * config/arm/arm.md (movcond_addsi): New splitter.
23627 2013-07-25 Sterling Augustine <saugustine@google.com>
23629 * dwarf2out.c (size_of_pubnames): Move code to...
23630 (include_pubname_in_output): ...here. New.
23631 (want_pubnames): Rearrange.
23632 (output_pubnames): Call include_pubname_in_output. Move assertion.
23634 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23636 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23638 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23641 * doc/extend.texi: Remove obsolete builtins. Fix
23642 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23644 2013-07-25 Jan Hubicka <jh@suse.cz>
23646 * cgraph.c (release_function_body): Break out from ...
23647 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23648 and DECL_ARGUMENTS.
23649 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23650 old_tree in the map.
23651 (create_specialized_node): Update.
23652 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23654 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23655 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23656 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23657 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23660 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23662 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23663 addsi3_carryin_alt2_<optab>): Correct output template.
23665 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23667 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23668 Adjust for arm_restrict_it.
23669 Remove trailing whitespace.
23671 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23673 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23674 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23676 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23678 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23680 PR rtl-optimization/57960
23681 * lra-constraints.c (process_alt_operands): Use the right mode
23682 when checking strict_low.
23684 2013-07-25 Jan Hubicka <jh@suse.cz>
23686 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23687 * cgraph.c (cgraph_remove_node): Do not release function body
23688 when in cgraph streaming.
23689 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23690 in other partitions are not considered reachable; fix handling of
23693 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23695 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23697 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23702 * config/arm/arm.md ("*sibcall_insn): Replace use of
23703 Ss with US. Adjust output for v5 and v4t.
23704 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23706 * config/arm/constraints.md ("Ss"): Rename to US.
23708 2013-07-25 Terry Guo <terry.guo@arm.com>
23710 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23711 shift_add/shift_sub0/shift_sub1 RTXs.
23713 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23714 Anton Blanchard <anton@au1.ibm.com>
23716 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23717 (altivec_vpks<VI_char>ss): Likewise.
23718 (altivec_vpks<VI_char>us): Likewise.
23719 (altivec_vpku<VI_char>us): Likewise.
23720 (altivec_vpku<VI_char>um): Likewise.
23722 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23724 Introduce context class.
23726 * Makefile.in (CONTEXT_H): New.
23727 (OBJS): Add context.o.
23728 (toplev.o): Add CONTEXT_H to dependencies.
23731 * toplev.c (general_init): Create the singleton gcc::context instance.
23737 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23739 PR rtl-optimization/57968
23740 * mode-switching.c (create_pre_exit): Allow instructions that
23741 don't set a return register to need a non-exit mode.
23743 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23744 Anton Blanchard <anton@au1.ibm.com>
23746 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23747 operands to vperm for little endian.
23748 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23749 of lvsl to create the control mask for a vperm for little endian.
23751 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23752 Anton Blanchard <anton@au1.ibm.com>
23754 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23755 two operands for little-endian.
23757 2013-07-23 Steve Ellcey <sellcey@mips.com>
23759 * config/mips/mips.c (mips_case_values_threshold): New.
23760 (TARGET_CASE_VALUES_THRESHOLD): Define.
23762 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23763 Anton Blanchard <anton@au1.ibm.com>
23765 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23766 selection of field for vector splat in little endian mode.
23768 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23770 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23771 expanders to rs6000.md.
23772 (ior<mode>3): Likewise.
23773 (and<mode>3): Likewise.
23774 (one_cmpl<mode>2): Likewise.
23775 (nor<mode>3): Likewise.
23776 (andc<mode>3): Likewise.
23777 (eqv<mode>3): Likewise.
23778 (nand<mode>3): Likewise.
23779 (orc<mode>3): Likewise.
23781 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23784 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23785 to split multi-word logical operations.
23786 (rs6000_split_logical_di): Likewise.
23787 (rs6000_split_logical): Likewise.
23789 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23790 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23791 and allow TImode operations in 32-bit.
23792 (vsx_and<mode>3_64bit): Likewise.
23793 (vsx_ior<mode>3_32bit): Likewise.
23794 (vsx_ior<mode>3_64bit): Likewise.
23795 (vsx_xor<mode>3_32bit): Likewise.
23796 (vsx_xor<mode>3_64bit): Likewise.
23797 (vsx_one_cmpl<mode>2_32bit): Likewise.
23798 (vsx_one_cmpl<mode>2_64bit): Likewise.
23799 (vsx_nor<mode>3_32bit): Likewise.
23800 (vsx_nor<mode>3_64bit): Likewise.
23801 (vsx_andc<mode>3_32bit): Likewise.
23802 (vsx_andc<mode>3_64bit): Likewise.
23803 (vsx_eqv<mode>3_32bit): Likewise.
23804 (vsx_eqv<mode>3_64bit): Likewise.
23805 (vsx_nand<mode>3_32bit): Likewise.
23806 (vsx_nand<mode>3_64bit): Likewise.
23807 (vsx_orc<mode>3_32bit): Likewise.
23808 (vsx_orc<mode>3_64bit): Likewise.
23810 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23811 logical types in GPRs.
23813 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23814 logical insns to rs6000.md, and allow TImode operations in
23816 (altivec_ior<mode>3): Likewise.
23817 (altivec_xor<mode>3): Likewise.
23818 (altivec_one_cmpl<mode>2): Likewise.
23819 (altivec_nor<mode>3): Likewise.
23820 (altivec_andc<mode>3): Likewise.
23822 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23823 attributes for moving the 128-bit logical operations into
23825 (BOOL_REGS_OUTPUT): Likewise.
23826 (BOOL_REGS_OP1): Likewise.
23827 (BOOL_REGS_OP2): Likewise.
23828 (BOOL_REGS_UNARY): Likewise.
23829 (BOOL_REGS_AND_CR0): Likewise.
23830 (one_cmpl<mode>2): Add support for DI logical operations on
23831 32-bit, splitting the operations to 32-bit.
23832 (anddi3): Likewise.
23833 (iordi3): Likewise.
23834 (xordi3): Likewise.
23835 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23836 changes to combine the 32/64-bit code, allow logical operations on
23837 TI mode in 32-bit, and to use similar match_operator patterns like
23838 scalar mode uses. Combine the Altivec and VSX code for logical
23839 operations, and move it here.
23840 (ior<mode>3, 128-bit types): Likewise.
23841 (xor<mode>3, 128-bit types): Likewise.
23842 (one_cmpl<mode>3, 128-bit types): Likewise.
23843 (nor<mode>3, 128-bit types): Likewise.
23844 (andc<mode>3, 128-bit types): Likewise.
23845 (eqv<mode>3, 128-bit types): Likewise.
23846 (nand<mode>3, 128-bit types): Likewise.
23847 (orc<mode>3, 128-bit types): Likewise.
23848 (and<mode>3_internal): Likewise.
23849 (bool<mode>3_internal): Likewise.
23850 (boolc<mode>3_internal1): Likewise.
23851 (boolc<mode>3_internal2): Likewise.
23852 (boolcc<mode>3_internal1): Likewise.
23853 (boolcc<mode>3_internal2): Likewise.
23854 (eqv<mode>3_internal1): Likewise.
23855 (eqv<mode>3_internal2): Likewise.
23856 (one_cmpl1<mode>3_internal): Likewise.
23858 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23860 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23861 Rename flag_stack_usage to flag_stack_usage_info.
23863 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23865 * config/microblaze/sync.md: New file.
23866 * config/microblaze/microblaze.md: Include sync.md
23867 * config/microblaze/microblaze.c: Add print_operand 'y'.
23868 * config/microblaze/constraints.md: Add memory_contraint
23869 'Q' which is a single register.
23871 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23873 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23875 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23877 * reload.c (find_reloads): Exit loop once we find this operand
23878 cannot be reloaded somehow for this alternative.
23880 * reload.c (find_reloads): Exit loop once we find a hard register.
23882 * rtlanal.c (computed_jump_p): Exit loop once we find label
23885 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23887 * cfgloopmanip.c (remove_path): Exit loop after setting
23890 * gensupport.c (subst_dup): Avoid loop if code is not
23891 MATCH_DUP nor MATCH_OP_DUP.
23893 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23895 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23897 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23899 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23900 true for SP_REGNUM if mode == ptr_mode.
23901 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23902 with value R0_REGNUM + 31.
23904 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23906 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23907 pad pointer-typed argument downward.
23909 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23911 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23912 and __ILP32__ when the ILP32 model is in use.
23914 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23916 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23917 (aarch64_load_symref_appropriately): In the case of
23918 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23919 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23920 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23921 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23922 if 'mode' doesn't equal to 'ptr_mode'.
23923 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23924 'vcall_offset'; change to call aarch64_emit_move differently depending
23925 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23926 to calculate the upper bound of 'vcall_offset'.
23927 (aarch64_cannot_force_const_mem): Change to also return true if
23929 (aarch64_legitimize_reload_address): In the case of large
23930 displacements, add new local variable 'xmode' and an assertion
23931 based on it; change to use 'xmode' to generate the new rtx and
23933 (aarch64_asm_trampoline_template): Change to generate the template
23934 differently depending on TARGET_ILP32 or not; change to use
23935 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23936 (aarch64_trampoline_size): Removed.
23937 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23938 and replace immediate literals with it. Change to use 'ptr_mode'
23939 instead of 'DImode' and call convert_memory_address if the mode
23940 of 'fnaddr' doesn't equal to 'ptr_mode'.
23941 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23943 (aarch64_elf_asm_destructor): Likewise.
23944 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23945 on TARGET_ILP32 instead of aarch64_trampoline_size.
23946 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23947 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23948 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23949 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23950 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23951 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23952 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23953 depending on the value of 'mode'.
23954 (add_losym_<mode>): New.
23955 (ldr_got_small_<mode>): New, based on ldr_got_small.
23956 (ldr_got_small): Remove.
23957 (ldr_got_small_sidi): New.
23958 * config/aarch64/iterators.md (P): New.
23959 (PTR): Change to 'ptr_mode' in the condition.
23961 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23963 * config.gcc (aarch64*-*-*): Support --with-abi.
23964 (aarch64*-*-elf): Support --with-multilib-list.
23965 (aarch64*-*-linux*): Likewise.
23966 (supported_defaults): Add abi to aarch64*-*-*.
23967 * configure.ac: Mention AArch64 for --with-multilib-list.
23968 * configure: Re-generated.
23969 * config/aarch64/biarchilp32.h: New file.
23970 * config/aarch64/biarchlp64.h: New file.
23971 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23973 (MULTILIB_DEFAULTS): Ditto.
23974 (DRIVER_SELF_SPECS): Ditto.
23975 (ASM_SPEC): Update to also substitute -mabi.
23976 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23977 file whose name depends on -mabi= and -mbig-endian.
23978 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23980 (POINTER_SIZE): New define.
23981 (POINTERS_EXTEND_UNSIGNED): Ditto.
23982 (enum aarch64_abi_type): New enumeration tag.
23983 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23984 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23985 (TARGET_ILP32): New define.
23986 * config/aarch64/aarch64.opt (mabi): New.
23987 (aarch64_abi): New.
23988 (ilp32, lp64): New values for -mabi.
23989 * config/aarch64/t-aarch64 (comma): New define.
23990 (MULTILIB_OPTIONS): Ditto.
23991 (MULTILIB_DIRNAMES): Ditto.
23992 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23993 * doc/invoke.texi: Document -mabi for AArch64.
23995 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23997 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23999 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24000 Anton Blanchard <anton@au1.ibm.com>
24002 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24003 endianness when selecting field to splat.
24005 2013-07-22 Eric Christopher <echristo@gmail.com>
24007 * dwarf2out.c (die_odr_checksum): New function to use
24008 CHECKSUM_ macros and ULEB128 for DIE tag.
24009 (generate_type_signature): Use.
24011 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24013 * config.gcc (sparc*-*-*): Accept leon3 processor.
24014 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24015 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24016 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24017 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24018 (mfix-ut699): Adjust comment.
24019 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24020 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24021 (CPP_CPU_SPEC): Likewise.
24022 (ASM_CPU_SPEC): Likewise.
24023 * config/sparc/sparc.c (leon3_cost): New constant.
24024 (sparc_option_override): Add leon3 support.
24025 (mem_ref): New function.
24026 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24027 (sparc_do_work_around_errata): Look into the instruction in the delay
24028 slot and adjust accordingly. Add fix for the data cache nullify issues
24029 of the UT699. Change insertion position for the NOP.
24030 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24031 (leon3_load): New reservation.
24032 (leon_store): Bump latency to 2.
24033 (grfpu): New automaton.
24034 (grfpu_alu): New unit.
24035 (grfpu_ds): Likewise.
24036 (leon_fp_alu): Adjust.
24037 (leon_fp_mult): Delete.
24038 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24039 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24040 * config/sparc/sparc.md (cpu): Add leon3.
24041 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24042 (swapsi): Likewise.
24043 (atomic_test_and_set): Likewise.
24044 (ldstub): Likewise.
24046 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24048 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24049 default for R5900 targets.
24050 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24051 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24052 * config/mips/mips.c (mips_option_override): Report an error for
24053 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24054 for -march=r5900 -mhard-float.
24056 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24058 * df-problems.c (can_move_insns_across): Exit loop once we
24059 find a non-fixed, non-global register.
24061 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24064 * omega.c (omega_eliminate_red): Break after setting red_found.
24065 (omega_problem_has_red_equations): Similarly after setting found.
24066 (omega_query_variable): Similarly after setting coupled.
24068 2013-07-22 Marek Polacek <polacek@redhat.com>
24070 * gimplify.c: Don't include gimple.h twice.
24072 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24074 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24075 instead of TARGET_THUMB1.
24076 (Pz): New constraint.
24077 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24079 (compare_negsi_si): Likewise.
24080 (compare_addsi2_op0): Likewise.
24081 (compare_addsi2_op1): Likewise.
24082 (addsi3_carryin_<optab>): Likewise.
24083 (addsi3_carryin_alt2_<optab>): Likewise.
24084 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24085 for arm_restrict_it.
24086 (subsi3_carryin): Likewise.
24087 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24088 (minmax_arithsi): Disable for arm_restrict_it.
24089 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24090 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24091 (satsi_<SAT:code>_shift): Likewise.
24092 (arm_shiftsi3): Add alternative for 16-bit encoding.
24093 (arm32_movhf): Disable for arm_restrict_it.
24094 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24095 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24097 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24099 * config/arm/arm.md (attribute "insn"): Delete.
24100 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24101 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24102 (not_shiftsi): Update for attribute change.
24103 (not_shiftsi_compare0): Likewise.
24104 (not_shiftsi_compare0_scratch): Likewise.
24105 (arm_one_cmplsi2): Likewise.
24106 (thumb1_one_cmplsi2): Likewise.
24107 (notsi_compare0): Likewise.
24108 (notsi_compare0_scratch): Likewise.
24109 (thumb1_movdi_insn): Likewise.
24110 (arm_movsi_insn): Likewise.
24111 (movhi_insn_arch4): Likewise.
24112 (movhi_bytes): Likewise.
24113 (arm_movqi_insn): Likewise.
24114 (thumb1_movqi_insn): Likewise.
24115 (arm32_movhf): Likewise.
24116 (thumb1_movhf): Likewise.
24117 (arm_movsf_soft_insn): Likewise.
24118 (thumb1_movsf_insn): Likewise.
24119 (thumb_movdf_insn): Likewise.
24120 (movsicc_insn): Likewise.
24121 (movsfcc_soft_insn): Likewise.
24122 (and_scc): Likewise.
24123 (cond_move): Likewise.
24124 (if_move_not): Likewise.
24125 (if_not_move): Likewise.
24126 (if_shift_move): Likewise.
24127 (if_move_shift): Likewise.
24128 (if_shift_shift): Likewise.
24129 (if_not_arith): Likewise.
24130 (if_arith_not): Likewise.
24131 (cond_move_not): Likewise.
24132 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24133 (neon_mov<mode>): Likewise.
24134 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24135 (thumb2_movsi_vfp): Likewise.
24136 (movsf_vfp): Likewise.
24137 (thumb2_movsf_vfp): Likewise.
24138 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24140 (cortexa7_older_only): Likewise.
24141 (cortexa7_younger): Likewise.
24142 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24143 (1020alu_shift_op): Likewise.
24144 (1020alu_shift_reg_op): Likewise.
24145 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24146 (alu_shift_op): Likewise.
24147 (alu_shift_reg_op): Likewise.
24148 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24149 (11_alu_shift_op): Likewise.
24150 (11_alu_shift_reg_op): Likewise.
24151 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24152 (9_alu_shift_reg_op): Likewise.
24153 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24155 (cortex_a15_alu_shift): Likewise.
24156 (cortex_a15_alu_shift_reg): Likewise.
24157 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24158 (cortex_a5_alu_shift): Likewise.
24159 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24161 (cortex_a53_alu_shift): Likewise.
24162 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24164 (cortex_a7_alu_reg): Likewise.
24165 (cortex_a7_alu_shift): Likewise.
24166 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24167 (cortex_a8_alu_shift): Likewise.
24168 (cortex_a8_alu_shift_reg): Likewise.
24169 (cortex_a8_mov): Likewise.
24170 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24171 (cortex_a9_dp_shift): Likewise.
24172 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24173 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24174 (cortex_r4_mov): Likewise.
24175 (cortex_r4_alu_shift): Likewise.
24176 (cortex_r4_alu_shift_reg): Likewise.
24177 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24178 (526_alu_shift_op): Likewise.
24179 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24180 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24181 (626te_alu_shift_op): Likewise.
24182 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24183 (726te_alu_op): Likewise.
24184 (726te_alu_shift_op): Likewise.
24185 (726te_alu_shift_reg_op): Likewise.
24186 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24187 (mp626_alu_shift_op): Likewise.
24188 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24189 (pj4_alu_e1_conds): Likewise.
24190 (pj4_alu): Likewise.
24191 (pj4_alu_conds): Likewise.
24192 (pj4_shift): Likewise.
24193 (pj4_shift_conds): Likewise.
24194 (pj4_alu_shift): Likewise.
24195 (pj4_alu_shift_conds): Likewise.
24197 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24199 * config/arm/predicates.md (shiftable_operator_strict_it):
24201 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24202 Disable cond_exec version for arm_restrict_it.
24203 (thumb2_smaxsi3): Convert to generate cond_exec.
24204 (thumb2_sminsi3): Likewise.
24205 (thumb32_umaxsi3): Likewise.
24206 (thumb2_uminsi3): Likewise.
24207 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24208 (thumb2_neg_abssi2): Likewise.
24209 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24210 (thumb2_movsicc_insn): Adjust alternatives.
24211 (thumb2_mov_negscc): Disable for arm_restrict_it.
24212 (thumb2_mov_negscc_strict_it): New pattern.
24213 (thumb2_mov_notscc_strict_it): New pattern.
24214 (thumb2_mov_notscc): Disable for arm_restrict_it.
24215 (thumb2_ior_scc): Likewise.
24216 (thumb2_ior_scc_strict_it): New pattern.
24217 (thumb2_cond_move): Adjust for arm_restrict_it.
24218 (thumb2_cond_arith): Disable for arm_restrict_it.
24219 (thumb2_cond_arith_strict_it): New pattern.
24220 (thumb2_cond_sub): Adjust for arm_restrict_it.
24221 (thumb2_movcond): Likewise.
24222 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24223 (thumb2_zero_extendhisi2_v6): Likewise.
24224 (thumb2_zero_extendqisi2_v6): Likewise.
24225 (orsi_notsi_si): Likewise.
24226 (orsi_not_shiftsi_si): Likewise.
24228 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24230 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24231 instruction sequence is 1 byte shorter.
24233 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24235 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24236 it is not needed after split.
24238 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24241 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24242 second label for nonlocal goto receivers. Don't output pic base labels
24243 unless we're producing PIC; mark that action unreachable().
24244 (ix86_save_reg): If the function contains a nonlocal label, save the
24246 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24247 * config/darwin.c (emitted_pic_label_num): New GTY.
24248 (update_pic_label_number_if_needed): New.
24249 (machopic_output_function_base_name): Adjust for nonlocal receiver
24251 (machopic_should_output_picbase_label): New.
24252 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24253 (nonlocal_goto_receiver): New insn and split.
24255 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24257 * config/aarch64/aarch64-builtins.c
24258 (aarch64_fold_builtin): Fold abs in all modes.
24259 * config/aarch64/aarch64-simd-builtins.def
24260 (abs): Enable for all modes.
24261 * config/aarch64/arm_neon.h
24262 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24263 (vabs_f64): Add missing intrinsic.
24265 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24267 * config/aarch64/arm_neon.h (vabs_s64): New function
24269 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24272 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24273 * config/avr/avr.md (adjust_len): Add `round'.
24274 * config/avr/avr-protos.h (avr_out_round): New prototype.
24275 (avr_out_plus): Add `out_label' argument.
24276 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24277 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24278 Handle the case where `insn' is just a pattern.
24279 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24280 (avr_out_round): New function.
24281 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24283 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24285 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24286 Add check for flag_stack_usage to handle -fstack-usage support
24288 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24290 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24291 interaction for new Power8 flags and VSX.
24293 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24295 PR middle-end/57698
24296 * tree-inline.c (expand_call_inline): Emit errors during
24297 early_inlining only if optimization is not turned on.
24299 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24303 * passes.c (init_optimization_passes): Move the construction of
24304 the pass hierarchy into a new passes.def file.
24306 * Makefile.in (passes.o): Add dependency on passes.def.
24308 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24310 * passes.c (init_optimization_passes): Introduce macros for
24311 constructing the tree of passes (INSERT_PASSES_AFTER,
24312 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24313 TERMINATE_PASS_LIST).
24315 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24316 Wei Mi <wmi@google.com>
24318 PR rtl-optimization/57878
24319 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24321 (reload_pseudo_compare_func): Check nregs first for reload
24324 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24326 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24328 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24330 * read-rtl.c (validate_const_int): Once an invalid character is
24331 seen, quit the loop.
24333 * gengtype.c (write_roots): Similarly once we find the "deletable"
24334 or "if_marked" option.
24336 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24338 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24339 "xtab" and "sat". Move value "clz" from here to ...
24340 (attriubte "type"): ... here.
24341 (satsi_<SAT:code>): Delete "insn" attribute.
24342 (satsi_<SAT:code>_shift): Likewise.
24343 (arm_zero_extendqisi2addsi): Likewise.
24344 (arm_extendqisi2addsi): Likewise.
24345 (clzsi2): Update for attribute changes.
24346 (rbitsi2): Likewise.
24347 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24349 (arm_usatsihi): Likewise.
24350 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24352 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24354 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24355 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24356 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24357 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24358 in alphabetical order.
24359 (attribute "core_cycles"): Update for attribute changes.
24360 (arm_addsi3): Likewise.
24361 (addsi3_compare0): Likewise.
24362 (addsi3_compare0_scratch): Likewise.
24363 (addsi3_compare_op1): Likewise.
24364 (addsi3_compare_op2): Likewise.
24365 (compare_addsi2_op0): Likewise.
24366 (compare_addsi2_op1): Likewise.
24367 (addsi3_carryin_shift_<optab>): Likewise.
24368 (subsi3_carryin_shift): Likewise.
24369 (rsbsi3_carryin_shift): Likewise.
24370 (arm_subsi3_insn): Likewise.
24371 (subsi3_compare0): Likewise.
24372 (subsi3_compare): Likewise.
24373 (arm_andsi3_insn): Likewise.
24374 (thumb1_andsi3_insn): Likewise.
24375 (andsi3_compare0): Likewise.
24376 (andsi3_compare0_scratch): Likewise.
24377 (zeroextractsi_compare0_scratch
24378 (andsi_not_shiftsi_si): Likewise.
24379 (iorsi3_insn): Likewise.
24380 (iorsi3_compare0): Likewise.
24381 (iorsi3_compare0_scratch): Likewise.
24382 (arm_xorsi3): Likewise.
24383 (thumb1_xorsi3_insn): Likewise.
24384 (xorsi3_compare0): Likewise.
24385 (xorsi3_compare0_scratch): Likewise.
24386 (satsi_<SAT:code>_shift): Likewise.
24388 (arm_shiftsi3): Likewise.
24389 (shiftsi3_compare0): Likewise.
24390 (not_shiftsi): Likewise.
24391 (not_shiftsi_compare0): Likewise.
24392 (not_shiftsi_compare0_scratch): Likewise.
24393 (arm_one_cmplsi2): Likewise.
24394 (thumb_one_complsi2): Likewise.
24395 (notsi_compare0): Likewise.
24396 (notsi_compare0_scratch): Likewise.
24397 (thumb1_zero_extendhisi2): Likewise.
24398 (arm_zero_extendhisi2): Likewise.
24399 (arm_zero_extendhisi2_v6): Likewise.
24400 (arm_zero_extendhisi2addsi): Likewise.
24401 (thumb1_zero_extendqisi2): Likewise.
24402 (thumb1_zero_extendqisi2_v6): Likewise.
24403 (arm_zero_extendqisi2): Likewise.
24404 (arm_zero_extendqisi2_v6): Likewise.
24405 (arm_zero_extendqisi2addsi): Likewise.
24406 (thumb1_extendhisi2): Likewise.
24407 (arm_extendhisi2): Likewise.
24408 (arm_extendhisi2_v6): Likewise.
24409 (arm_extendqisi): Likewise.
24410 (arm_extendqisi_v6): Likewise.
24411 (arm_extendqisi2addsi): Likewise.
24412 (thumb1_extendqisi2): Likewise.
24413 (thumb1_movdi_insn): Likewise.
24414 (arm_movsi_insn): Likewise.
24415 (movsi_compare0): Likewise.
24416 (movhi_insn_arch4): Likewise.
24417 (movhi_bytes): Likewise.
24418 (arm_movqi_insn): Likewise.
24419 (thumb1_movqi_insn): Likewise.
24420 (arm32_movhf): Likewise.
24421 (thumb1_movhf): Likewise.
24422 (arm_movsf_soft_insn): Likewise.
24423 (thumb1_movsf_insn): Likewise.
24424 (movdf_soft_insn): Likewise.
24425 (thumb_movdf_insn): Likewise.
24426 (arm_cmpsi_insn): Likewise.
24427 (cmpsi_shiftsi): Likewise.
24428 (cmpsi_shiftsi_swp): Likewise.
24429 (arm_cmpsi_negshiftsi_si): Likewise.
24430 (movsicc_insn): Likewise.
24431 (movsfcc_soft_insn): Likewise.
24432 (arith_shiftsi): Likewise.
24433 (arith_shiftsi_compare0
24434 (arith_shiftsi_compare0_scratch
24435 (sub_shiftsi): Likewise.
24436 (sub_shiftsi_compare0
24437 (sub_shiftsi_compare0_scratch
24438 (and_scc): Likewise.
24439 (cond_move): Likewise.
24440 (if_plus_move): Likewise.
24441 (if_move_plus): Likewise.
24442 (if_move_not): Likewise.
24443 (if_not_move): Likewise.
24444 (if_shift_move): Likewise.
24445 (if_move_shift): Likewise.
24446 (if_shift_shift): Likewise.
24447 (if_not_arith): Likewise.
24448 (if_arith_not): Likewise.
24449 (cond_move_not): Likewise.
24450 (thumb1_ashlsi3): Set type attribute.
24451 (thumb1_ashrsi3): Likewise.
24452 (thumb1_lshrsi3): Likewise.
24453 (thumb1_rotrsi3): Likewise.
24454 (shiftsi3_compare0_scratch): Likewise.
24455 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24456 (neon_mov<mode>): Likewise.
24457 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24459 (thumb2_movsi_insn): Likewise.
24460 (thumb2_cmpsi_neg_shiftsi): Likewise.
24461 (thumb2_extendqisi_v6): Likewise.
24462 (thumb2_zero_extendhisi2_v6): Likewise.
24463 (thumb2_zero_extendqisi2_v6): Likewise.
24464 (thumb2_shiftsi3_short): Likewise.
24465 (thumb2_addsi3_compare0_scratch): Likewise.
24466 (orsi_not_shiftsi_si): Likewise.
24467 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24468 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24470 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24471 (1020alu_shift_op): Likewise.
24472 (1020alu_shift_reg_op): Likewise.
24473 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24474 (alu_shift_op): Likewise.
24475 (alu_shift_reg_op): Likewise.
24476 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24477 (11_alu_shift_op): Likewise.
24478 (11_alu_shift_reg_op): Likewise.
24479 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24480 (9_alu_shift_reg_op): Likewise.
24481 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24483 (cortex_a15_alu_shift): Likewise.
24484 (cortex_a15_alu_shift_reg): Likewise.
24485 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24487 (cortex_a5_alu_shift): Likewise.
24488 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24490 (cortex_a53_alu_shift): Likewise.
24491 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24493 (cortex_a7_alu_reg): Likewise.
24494 (cortex_a7_alu_shift): Likewise.
24495 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24497 (cortex_a8_alu_shift): Likewise.
24498 (cortex_a8_alu_shift_reg): Likewise.
24499 (cortex_a8_mov): Likewise.
24500 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24501 (cortex_a9_dp_shift): Likewise.
24502 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24504 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24506 (cortex_r4_mov): Likewise.
24507 (cortex_r4_alu_shift): Likewise.
24508 (cortex_r4_alu_shift_reg): Likewise.
24509 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24510 (526_alu_shift_op): Likewise.
24511 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24512 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24513 (626te_alu_shift_op): Likewise.
24514 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24515 (726te_alu_op): Likewise.
24516 (726te_alu_shift_op): Likewise.
24517 (726te_alu_shift_reg_op): Likewise.
24518 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24519 (mp626_alu_shift_op): Likewise.
24520 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24521 (pj4_alu_e1_conds): Likewise.
24522 (pj4_alu): Likewise.
24523 (pj4_alu_conds): Likewise.
24524 (pj4_shift): Likewise.
24525 (pj4_shift_conds): Likewise.
24526 (pj4_alu_shift): Likewise.
24527 (pj4_alu_shift_conds): Likewise.
24528 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24530 (cortexa7_older_only): Likewise.
24531 (cortexa7_younger): Likewise.
24533 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24535 * ipa-pure-const.c (generate_summary): Rename to...
24536 (pure_const_generate_summary): ... this.
24538 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24540 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24542 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24545 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24548 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24550 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24551 enabled without -march=zEC12.
24552 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24555 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24557 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24558 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24559 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24560 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24561 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24562 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24563 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24565 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24566 and ISA_HAS_NMADD3_NMSUB3.
24567 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24568 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24569 (nmsub4<mode>, nmsub3<mode>): Likewise.
24570 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24572 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24574 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24575 TARGET_MIPS5400 checking.
24577 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24578 Peter Bergner <bergner@vnet.ibm.com>
24580 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24581 registers in the comment.
24582 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24583 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24584 rather than FIRST_PSEUDO_REGISTERS.
24586 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24588 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24589 enable extra ISA flags with TARGET_HTM.
24591 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24593 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24596 2013-07-15 Cong Hou <congh@google.com>
24598 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24599 in compare function for sorting.
24601 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24603 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24604 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24605 * config/rs6000/rs6000.opt: Add -mhtm option.
24606 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24607 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24608 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24609 __HTM__ if the HTM instructions are available.
24610 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24611 htm_spr_reg_operand): New define_predicates.
24612 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24613 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24615 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24616 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24617 HTM builtin functions.
24618 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24619 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24620 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24621 (rs6000_builtin_mask_calculate): Likewise.
24622 (rs6000_option_override_internal): Likewise.
24623 (bdesc_htm): Add new HTM builtin support.
24624 (htm_spr_num): New function.
24625 (htm_spr_regno): Likewise.
24626 (rs6000_htm_spr_icode): Likewise.
24627 (htm_expand_builtin): Likewise.
24628 (htm_init_builtins): Likewise.
24629 (rs6000_expand_builtin): Add support for HTM builtin functions.
24630 (rs6000_init_builtins): Likewise.
24631 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24633 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24634 (TARGET_HTM, MASK_HTM): Define macros.
24635 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24636 (FIXED_REGISTERS): Likewise.
24637 (CALL_USED_REGISTERS): Likewise.
24638 (CALL_REALLY_USED_REGISTERS): Likewise.
24639 (REG_ALLOC_ORDER): Likewise.
24640 (enum reg_class): Likewise.
24641 (REG_CLASS_NAMES): Likewise.
24642 (REG_CLASS_CONTENTS): Likewise.
24643 (REGISTER_NAMES): Likewise.
24644 (ADDITIONAL_REGISTER_NAMES): Likewise.
24645 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24646 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24647 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24648 * config/rs6000/htm.md: New file.
24649 * config/rs6000/htmintrin.h: New file.
24650 * config/rs6000/htmxlintrin.h: New file.
24652 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24654 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24655 Define SYMBOL_TINY_GOT, update comment.
24656 * config/aarch64/aarch64.c
24657 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24658 (aarch64_expand_mov_immediate): Likewise.
24659 (aarch64_print_operand): Likewise.
24660 (aarch64_classify_symbol): Likewise.
24661 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24662 (ldr_got_tiny): Define.
24664 2013-07-13 Tobias Grosser <tobias@grosser.es>
24666 PR tree-optimization/54094
24667 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24668 scheduling dimension for the parallelism check from the polyhedral
24669 information in the AST.
24670 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24673 2013-07-13 Jason Merrill <jason@redhat.com>
24675 * print-tree.c (debug_vec_tree): Use debug_raw.
24676 (debug_raw (vec<tree, va_gc> &)): New.
24677 (debug_raw (vec<tree, va_gc> *)): New.
24678 * tree.h: Declare them.
24680 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24682 * ifcvt.c (ifcvt_after_combine): New static variable.
24683 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24685 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24686 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24687 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24689 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24691 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24693 2013-07-12 Michael Matz <matz@suse.de>
24695 PR middle-end/55771
24696 * convert.c (convert_to_real): Reject non-float inner types.
24698 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24700 * config/aarch64/aarch64-protos.h
24701 (aarch64_simd_immediate_valid_for_move): Remove.
24702 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24703 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24705 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24707 2013-07-11 Steve Ellcey <sellcey@mips.com>
24709 * config/mips/mips.c (mips_conditional_register_usage): Do not
24710 use t[0-7] registers in MIPS16 mode when optimizing for size.
24712 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24714 * config/i386/i386.c (dispatch_function_versions): Fix array
24715 indexing of function_version_info to match actual_versions.
24717 2013-07-11 Teresa Johnson <tejohnson@google.com>
24719 * vec.h (struct va_gc): Move release out-of-line.
24720 (va_gc::release): Call ggc_free on released vec.
24722 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24724 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24725 Require GOT register as additional operand in UNSPEC.
24726 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24727 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24728 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24729 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24730 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24731 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24732 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24734 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24737 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24738 name seen by assembler/linker rather if available.
24740 2013-07-11 Andreas Schwab <schwab@suse.de>
24742 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24744 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24746 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24748 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24750 * doc/tm.texi.in: Move hook documentation to ....
24751 * target.def: ... here.
24753 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24754 text on @hook line.
24755 * doc/tm.texi: Regenerate.
24757 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24760 * doc/invoke.texi: Document -Wconditionally-supported.
24762 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24765 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24768 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24771 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24772 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24773 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24774 Remove duplicate devices.
24775 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24776 * config/avr/t-multilib: Regenerate.
24777 * config/avr/avr-tables.opt: Regenerate.
24778 * doc/avr-mmcu.texi: Regenerate.
24780 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24783 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24785 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24787 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24788 the cost of MULT when optimizing for size.
24790 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24792 * config/cr16/cr16-protos.h: Don't include target.h.
24794 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24796 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24797 adjust register size for TDmode and TFmode for VSX registers.
24799 2013-07-08 Kai Tietz <ktietz@redhat.com>
24802 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24803 hook_bool_const_tree_true.
24805 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24807 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24808 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24809 * config/s390/s390.md: Define FPR*_REGNUM constants.
24810 Fix FPR2_REGNUM constant (18 -> 17).
24811 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24812 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24813 ("trunc<BFP:mode><DFP_ALL:mode>2")
24814 ("trunc<DFP_ALL:mode><BFP:mode>2")
24815 ("*extend<BFP:mode><DFP_ALL:mode>2")
24816 ("*extend<DFP_ALL:mode><BFP:mode>2")
24817 ("extend<BFP:mode><DFP_ALL:mode>2")
24818 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24821 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24823 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24825 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24827 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24828 and cfun_fpr_bit_p to cfun_fpr_save_p.
24829 (s390_frame_area, s390_register_info, s390_frame_info)
24830 (s390_emit_prologue, s390_emit_epilogue)
24831 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24833 * config/s390/s390.h: Define *_REGNUM macros for floating point
24836 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24838 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24840 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24842 PR rtl-optimization/57786
24843 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24844 and break out of the loop when it is set to false.
24846 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24849 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24850 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24851 (const_int 63)) 0)).
24852 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24853 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24854 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24856 PR rtl-optimization/57829
24857 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24858 mask bits outside of mode are just sign-extension from mode to HWI.
24860 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24862 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24863 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24864 adjust_address instead of change_address to keep info about alignment.
24865 (emit_strmov): Remove.
24866 (emit_memmov): New function.
24867 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24868 (expand_movmem_epilogue): Likewise and return updated rtx for
24870 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24871 destination and source.
24872 (decide_alignment): Refactor, handle vector_loop.
24873 (ix86_expand_movmem): Likewise.
24874 (ix86_expand_setmem): Likewise.
24875 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24877 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24879 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24880 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24882 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24884 * config/i386/sse.md (sse_movlhps): Change alternative 3
24885 of operand 2 to "m".
24887 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24890 * config/i386/sse.md (iptr): New mode attribute.
24891 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24892 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24893 (<sse>_vmmul<mode>3): Ditto.
24894 (<sse>_vmdiv<mode>3): Ditto.
24895 (sse_vmrcpv4sf2): Ditto.
24896 (<sse>_vmsqrt<mode>2): Ditto.
24897 (sse_vmrsqrtv4sf2): Ditto.
24898 (<sse>_vm<code><mode>3): Ditto.
24899 (avx_vmcmp<mode>3): Ditto.
24900 (<sse>_vmmaskcmp<mode>3): Ditto.
24901 (<sse>_comi): Ditto.
24902 (<sse>_ucomi): Ditto.
24903 (*xop_vmfrcz_<mode>): Ditto.
24904 (*fmai_fmadd_<mode>): Ditto.
24905 (*fmai_fmsub_<mode>): Ditto.
24906 (*fmai_fnmadd_<mode>): Ditto.
24907 (*fmai_fnmsub_<mode>): Ditto.
24908 (*fma4i_vmfmadd_<mode>): Ditto.
24909 (*fma4i_vmfmsub_<mode>): Ditto.
24910 (*fma4i_vmfnmadd_<mode>): Ditto.
24911 (*fma4i_vmfnmsub_<mode>): Ditto.
24912 (*xop_vmfrcz_<mode>): Ditto.
24913 (sse_cvtps2pi): Ditto.
24914 (sse_cvttps2pi): Ditto.
24915 (sse_cvtss2si): Ditto.
24916 (sse_cvtss2si_2): Ditto.
24917 (sse_cvtss2siq_2): Ditto.
24918 (sse_cvttss2si): Ditto.
24919 (sse_cvttss2siq): Ditto.
24920 (sse_cvtsd2si): Ditto.
24921 (sse_cvtsd2si_2): Ditto.
24922 (sse_cvtsd2siq_2): Ditto.
24923 (sse_cvttsd2si): Ditto.
24924 (sse_cvttsd2siq): Ditto.
24925 (sse_cvtsd2ss): Ditto.
24926 (sse_cvtss2sd): Ditto.
24927 (avx2_pbroadcast<mode>): Ditto.
24928 (avx2_pbroadcast<mode>_1): Ditto.
24929 (*avx_vperm_broadcast_v4sf): Ditto.
24931 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24932 (sse_movlhps): Ditto.
24933 (sse_storehps): Ditto.
24934 (sse_loadhps): Ditto.
24935 (sse_storelps): Ditto.
24936 (sse_loadlps): Ditto.
24937 (*vec_concatv4sf): Ditto.
24938 (*vec_interleave_highv2df): Ditto.
24939 (*vec_interleave_lowv2df): Ditto.
24940 (*vec_extractv2df_1_sse): Ditto.
24941 (*vec_extractv2df_0_sse): Ditto.
24942 (sse2_storelpd): Ditto.
24943 (sse2_loadlpd): Ditto.
24944 (sse2_movsd): Ditto.
24945 (*vec_concatv4si): Ditto.
24946 (vec_concatv2di): Ditto.
24948 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24949 for Intel asm dialect.
24950 (mmx_punpcklwd): Ditto.
24951 (mmx_punpckldq): Ditto.
24953 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24954 for intel assembler dialect.
24956 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24959 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24960 for BUILT_IN_C{LZ,LRSB}*.
24961 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24962 * tree-vrp.c (extract_range_basic): Handle
24963 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24964 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24965 fall thru to code calling set_value*.
24966 * builtins.c (expand_builtin): Remove *IMAX cases.
24967 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24968 if width is bigger than 2*HWI.
24970 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24972 PR rtl-optimization/55342
24973 * lra-int.h (lra_subreg_reload_pseudos): New.
24974 * lra.c: Add undoing optional reloads to the block diagram.
24975 (lra_subreg_reload_pseudos): New.
24976 (lra_optional_reload_pseudos): Change comments.
24977 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24978 lra_optional_reload_pseudos after undo transformations.
24979 * lra-assigns.c (pseudo_prefix_title): New.
24980 (lra_setup_reg_renumber): Use it.
24981 (spill_for): Ditto. Check subreg reload pseudos too.
24982 (assign_by_spills): Consider subreg reload pseudos too.
24983 * lra-constraints.c (simplify_operand_subreg): Use
24984 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24985 (curr_insn_transform): Recognize and do optional reloads.
24986 (undo_optional_reloads): New.
24987 (lra_undo_inheritance): Call undo_optional_reloads.
24989 2013-07-05 Thomas Quinot <quinot@adacore.com>
24991 * tree-complex.c (expand_complex_operations_1): Fix typo.
24993 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24995 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24996 (tune_params): New member 'const vec_costs'.
24997 * config/aarch64/aarch64.c (generic_vector_cost): New.
24998 (generic_tunings): New member 'generic_vector_cost'.
24999 (aarch64_builtin_vectorization_cost): New.
25000 (aarch64_add_stmt_cost): New.
25001 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25002 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25004 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25007 * config/i386/predicates.md (vsib_address_operand): Disallow
25008 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25010 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25012 PR middle-end/55030
25013 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25014 expand_builtin_setjmp_receiver.
25015 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25016 with NULL for the label parameter.
25017 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25018 the frame-pointer. Adjust comments.
25019 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25020 only if LABEL is non-NULL.
25022 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25024 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25025 (ARM_ABI_AAPCS64): Ditto.
25027 (ARM_DEFAULT_ABI): Ditto.
25029 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25031 * config/aarch64/aarch64-builtins.c
25032 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25033 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25035 * config/aarch64/aarch64-simd.md
25036 (aarch64_ld1<VALL:mode>): New.
25037 (aarch64_st1<VALL:mode>): Likewise.
25038 * config/aarch64/arm_neon.h
25039 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25041 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25043 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25045 (ix86_option_override_internal):Turn on all -mavx target flags by
25046 default as they are dependent on AVX anyway.
25048 2013-07-02 Cary Coutant <ccoutant@google.com>
25050 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25051 deterministic hash.
25052 (loc_checksum_ordered): Likewise.
25053 (hash_loc_operands): Remove inline keyword.
25055 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25057 PR tree-optimization/57741
25058 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25059 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25060 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25061 Allow REAL_CST step_exprs if flag_associative_math.
25062 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25064 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25066 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25068 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25070 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25072 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25074 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25076 (iorsi3_insn): Likewise.
25077 (arm_xorsi3): Likewise.
25079 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25081 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25083 (attribute "type"): ... here, and prefix with "wmmx_".
25084 (attribute "core_cycles"): Update for attribute changes.
25085 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25086 (tbcstv4hi): Likewise.
25087 (tbcstv2si): Likewise.
25088 (iwmmxt_iordi3): Likewise.
25089 (iwmmxt_xordi3): Likewise.
25090 (iwmmxt_anddi3): Likewise.
25091 (iwmmxt_nanddi3): Likewise.
25092 (iwmmxt_arm_movdi): Likewise.
25093 (iwmmxt_movsi_insn): Likewise.
25094 (mov<mode>_internal): Likewise.
25095 (and<mode>3_iwmmxt): Likewise.
25096 (ior<mode>3_iwmmxt): Likewise.
25097 (xor<mode>3_iwmmxt): Likewise.
25098 (add<mode>3_iwmmxt): Likewise.
25099 (ssaddv8qi3): Likewise.
25100 (ssaddv4hi3): Likewise.
25101 (ssaddv2si3): Likewise.
25102 (usaddv8qi3): Likewise.
25103 (usaddv4hi3): Likewise.
25104 (usaddv2si3): Likewise.
25105 (sub<mode>3_iwmmxt): Likewise.
25106 (sssubv8qi3): Likewise.
25107 (sssubv4hi3): Likewise.
25108 (sssubv2si3): Likewise.
25109 (ussubv8qi3): Likewise.
25110 (ussubv4hi3): Likewise.
25111 (ussubv2si3): Likewise.
25112 (mulv4hi3_iwmmxt): Likewise.
25113 (smulv4hi3_highpart): Likewise.
25114 (umulv4hi3_highpart): Likewise.
25115 (iwmmxt_wmacs): Likewise.
25116 (iwmmxt_wmacsz): Likewise.
25117 (iwmmxt_wmacu): Likewise.
25118 (iwmmxt_wmacuz): Likewise.
25119 (iwmmxt_clrdi): Likewise.
25120 (iwmmxt_clrv8qi): Likewise.
25121 (iwmmxt_clr4hi): Likewise.
25122 (iwmmxt_clr2si): Likewise.
25123 (iwmmxt_uavgrndv8qi3): Likewise.
25124 (iwmmxt_uavgrndv4hi3): Likewise.
25125 (iwmmxt_uavgv8qi3): Likewise.
25126 (iwmmxt_uavgv4hi3): Likewise.
25127 (iwmmxt_tinsrb): Likewise.
25128 (iwmmxt_tinsrh): Likewise.
25129 (iwmmxt_tinsrw): Likewise.
25130 (iwmmxt_textrmub): Likewise.
25131 (iwmmxt_textrmsb): Likewise.
25132 (iwmmxt_textrmuh): Likewise.
25133 (iwmmxt_textrmsh): Likewise.
25134 (iwmmxt_textrmw): Likewise.
25135 (iwmxxt_wshufh): Likewise.
25136 (eqv8qi3): Likewise.
25137 (eqv4hi3): Likewise.
25138 (eqv2si3): Likewise.
25139 (gtuv8qi3): Likewise.
25140 (gtuv4hi3): Likewise.
25141 (gtuv2si3): Likewise.
25142 (gtv8qi3): Likewise.
25143 (gtv4hi3): Likewise.
25144 (gtv2si3): Likewise.
25145 (smax<mode>3_iwmmxt): Likewise.
25146 (umax<mode>3_iwmmxt): Likewise.
25147 (smin<mode>3_iwmmxt): Likewise.
25148 (umin<mode>3_iwmmxt): Likewise.
25149 (iwmmxt_wpackhss): Likewise.
25150 (iwmmxt_wpackwss): Likewise.
25151 (iwmmxt_wpackdss): Likewise.
25152 (iwmmxt_wpackhus): Likewise.
25153 (iwmmxt_wpackwus): Likewise.
25154 (iwmmxt_wpackdus): Likewise.
25155 (iwmmxt_wunpckihb): Likewise.
25156 (iwmmxt_wunpckihh): Likewise.
25157 (iwmmxt_wunpckihw): Likewise.
25158 (iwmmxt_wunpckilb): Likewise.
25159 (iwmmxt_wunpckilh): Likewise.
25160 (iwmmxt_wunpckilw): Likewise.
25161 (iwmmxt_wunpckehub): Likewise.
25162 (iwmmxt_wunpckehuh): Likewise.
25163 (iwmmxt_wunpckehuw): Likewise.
25164 (iwmmxt_wunpckehsb): Likewise.
25165 (iwmmxt_wunpckehsh): Likewise.
25166 (iwmmxt_wunpckehsw): Likewise.
25167 (iwmmxt_wunpckelub): Likewise.
25168 (iwmmxt_wunpckeluh): Likewise.
25169 (iwmmxt_wunpckeluw): Likewise.
25170 (iwmmxt_wunpckelsb): Likewise.
25171 (iwmmxt_wunpckelsh): Likewise.
25172 (iwmmxt_wunpckelsw): Likewise.
25173 (ror<mode>3): Likewise.
25174 (ashr<mode>3_iwmmxt): Likewise.
25175 (lshr<mode>3_iwmmxt): Likewise.
25176 (ashl<mode>3_iwmmxt): Likewise.
25177 (ror<mode>3_di): Likewise.
25178 (ashr<mode>3_di): Likewise.
25179 (lshr<mode>3_di): Likewise.
25180 (ashl<mode>3_di): Likewise.
25181 (iwmmxt_wmadds): Likewise.
25182 (iwmmxt_wmaddu): Likewise.
25183 (iwmmxt_tmia): Likewise.
25184 (iwmmxt_tmiaph): Likewise.
25185 (iwmmxt_tmiabb): Likewise.
25186 (iwmmxt_tmiatb): Likewise.
25187 (iwmmxt_tmiabt): Likewise.
25188 (iwmmxt_tmiatt): Likewise.
25189 (iwmmxt_tmovmskb): Likewise.
25190 (iwmmxt_tmovmskh): Likewise.
25191 (iwmmxt_tmovmskw): Likewise.
25192 (iwmmxt_waccb): Likewise.
25193 (iwmmxt_wacch): Likewise.
25194 (iwmmxt_waccw): Likewise.
25195 (iwmmxt_waligni): Likewise.
25196 (iwmmxt_walignr): Likewise.
25197 (iwmmxt_walignr0): Likewise.
25198 (iwmmxt_walignr1): Likewise.
25199 (iwmmxt_walignr2): Likewise.
25200 (iwmmxt_walignr3): Likewise.
25201 (iwmmxt_wsadb): Likewise.
25202 (iwmmxt_wsadh): Likewise.
25203 (iwmmxt_wsadbz): Likewise.
25204 (iwmmxt_wsadhz): Likewise.
25205 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25206 (iwmmxt_wabsdiffb): Likewise.
25207 (iwmmxt_wabsdiffh): Likewise.
25208 (iwmmxt_wabsdiffw): Likewise.
25209 (iwmmxt_waddsubhx): Likewise
25210 (iwmmxt_wsubaddhx): Likewise.
25211 (addc<mode>3): Likewise.
25212 (iwmmxt_avg4): Likewise.
25213 (iwmmxt_avg4r): Likewise.
25214 (iwmmxt_wmaddsx): Likewise.
25215 (iwmmxt_wmaddux): Likewise.
25216 (iwmmxt_wmaddsn): Likewise.
25217 (iwmmxt_wmaddun): Likewise.
25218 (iwmmxt_wmulwsm): Likewise.
25219 (iwmmxt_wmulwum): Likewise.
25220 (iwmmxt_wmulsmr): Likewise.
25221 (iwmmxt_wmulumr): Likewise.
25222 (iwmmxt_wmulwsmr): Likewise.
25223 (iwmmxt_wmulwumr): Likewise.
25224 (iwmmxt_wmulwl): Likewise.
25225 (iwmmxt_wqmulm): Likewise.
25226 (iwmmxt_wqmulwm): Likewise.
25227 (iwmmxt_wqmulmr): Likewise.
25228 (iwmmxt_wqmulwmr): Likewise.
25229 (iwmmxt_waddbhusm): Likewise.
25230 (iwmmxt_waddbhusl): Likewise.
25231 (iwmmxt_wqmiabb): Likewise.
25232 (iwmmxt_wqmiabt): Likewise.
25233 (iwmmxt_wqmiatb): Likewise.
25234 (iwmmxt_wqmiatt): Likewise.
25235 (iwmmxt_wqmiabbn): Likewise.
25236 (iwmmxt_wqmiabtn): Likewise.
25237 (iwmmxt_wqmiatbn): Likewise.
25238 (iwmmxt_wqmiattn): Likewise.
25239 (iwmmxt_wmiabb): Likewise.
25240 (iwmmxt_wmiabt): Likewise.
25241 (iwmmxt_wmiatb): Likewise.
25242 (iwmmxt_wmiatt): Likewise.
25243 (iwmmxt_wmiabbn): Likewise.
25244 (iwmmxt_wmiabtn): Likewise.
25245 (iwmmxt_wmiatbn): Likewise.
25246 (iwmmxt_wmiattn): Likewise.
25247 (iwmmxt_wmiawbb): Likewise.
25248 (iwmmxt_wmiawbt): Likewise.
25249 (iwmmxt_wmiawtb): Likewise.
25250 (iwmmxt_wmiawtt): Likewise.
25251 (iwmmxt_wmiawbbn): Likewise.
25252 (iwmmxt_wmiawbtn): Likewise.
25253 (iwmmxt_wmiawtbn): Likewise.
25254 (iwmmxt_wmiawttn): Likewise.
25255 (iwmmxt_wmerge): Likewise.
25256 (iwmmxt_tandc<mode>3): Likewise.
25257 (iwmmxt_torc<mode>3): Likewise.
25258 (iwmmxt_torvsc<mode>3): Likewise.
25259 (iwmmxt_textrc<mode>3): Likewise.
25260 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25261 (wmmxt_pack): Likewise.
25262 (wmmxt_mult_c1): Likewise.
25263 (wmmxt_mult_c2): Likewise.
25264 (wmmxt_alu_c1): Likewise.
25265 (wmmxt_alu_c2): Likewise.
25266 (wmmxt_alu_c3): Likewise.
25267 (wmmxt_transfer_c1): Likewise.
25268 (wmmxt_transfer_c2): Likewise.
25269 (wmmxt_transfer_c3): Likewise.
25270 (marvell_f_iwmmxt_wstr): Likewise.
25271 (marvell_f_iwmmxt_wldr): Likewise.
25273 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25275 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25277 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25280 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25281 * lra-constraints.c (need_for_split_p): Check call used hard regs
25282 living through calls.
25284 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25285 call used regs for call insn.
25287 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25290 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25291 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25293 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25295 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25297 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25299 * lra-constraints.c (need_for_split_p): Check call used hard regs
25300 living through calls.
25302 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25305 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25306 to tie with any other modes. Eliminate Altivec vector mode tests,
25307 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25308 code, to return 0 if testing MODE2 for a condition, if we've
25309 already tested MODE1 for the same condition.
25311 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25313 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25316 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25318 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25319 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25321 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25323 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25325 (aarch64_symbolic_constant_p): Remove.
25326 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25327 static. Fix line length and white space.
25328 (aarch64_symbolic_constant_p): Remove.
25329 * config/aarch64/predicates.md (aarch64_valid_symref):
25330 Use aarch64_classify_symbol_expression.
25332 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25334 * config/arm/constraints.md (Ts): New constraint.
25335 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25337 (compare_scc): Use "Ts" constraint for operand 0.
25338 (ior_scc_scc): Likewise.
25339 (and_scc_scc): Likewise.
25340 (and_scc_scc_nodom): Likewise.
25341 (ior_scc_scc_cmp): Likewise for operand 7.
25342 (and_scc_scc_cmp): Likewise.
25343 * config/arm/thumb2.md (thumb2_movsi_insn):
25344 Add alternatives for 16-bit encodings.
25345 (thumb2_movhi_insn): Likewise.
25346 (thumb2_movsicc_insn): Likewise.
25347 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25348 (thumb2_negscc): Use "Ts" constraint.
25349 Move mvn instruction outside cond_exec block.
25350 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25351 for 16-bit encodings.
25353 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25355 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25357 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25358 (mulsi3subsi): Likewise.
25359 (mulsidi3adddi): Likewise.
25360 (mulsidi3_v6): Likewise.
25361 (umulsidi3_v6): Likewise.
25362 (umulsidi3adddi_v6): Likewise.
25363 (smulsi3_highpart_v6): Likewise.
25364 (umulsi3_highpart_v6): Likewise.
25365 (mulhisi3tb): Likewise.
25366 (mulhisi3bt): Likewise.
25367 (mulhisi3tt): Likewise.
25368 (maddhisi4): Likewise.
25369 (maddhisi4tb): Likewise.
25370 (maddhisi4tt): Likewise.
25371 (maddhidi4): Likewise.
25372 (maddhidi4tb): Likewise.
25373 (maddhidi4tt): Likewise.
25374 (zeroextractsi_compare0_scratch): Likewise.
25375 (insv_zero): Likewise.
25376 (insv_t2): Likewise.
25377 (anddi_notzesidi_di): Likewise.
25378 (anddi_notsesidi_di): Likewise.
25379 (andsi_notsi_si): Likewise.
25380 (iordi_zesidi_di): Likewise.
25381 (xordi_zesidi_di): Likewise.
25382 (andsi_iorsi3_notsi): Likewise.
25383 (smax_0): Likewise.
25384 (smax_m1): Likewise.
25385 (smin_0): Likewise.
25386 (not_shiftsi): Likewise.
25387 (unaligned_loadsi): Likewise.
25388 (unaligned_loadhis): Likewise.
25389 (unaligned_loadhiu): Likewise.
25390 (unaligned_storesi): Likewise.
25391 (unaligned_storehi): Likewise.
25392 (extv_reg): Likewise.
25393 (extzv_t2): Likewise.
25394 (divsi3): Likewise.
25395 (udivsi3): Likewise.
25396 (arm_zero_extendhisi2addsi): Likewise.
25397 (arm_zero_extendqisi2addsi): Likewise.
25398 (compareqi_eq0): Likewise.
25399 (arm_extendhisi2_v6): Likewise.
25400 (arm_extendqisi2addsi): Likewise.
25401 (arm_movt): Likewise.
25402 (thumb2_ldrd): Likewise.
25403 (thumb2_ldrd_base): Likewise.
25404 (thumb2_ldrd_base_neg): Likewise.
25405 (thumb2_strd): Likewise.
25406 (thumb2_strd_base): Likewise.
25407 (thumb2_strd_base_neg): Likewise.
25408 (arm_negsi2): Add alternative for 16-bit encoding.
25409 (arm_one_cmplsi2): Likewise.
25411 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25413 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25414 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25415 (movdfcc): Likewise.
25416 * config/arm/vfp.md (*thumb2_movsf_vfp):
25417 Disable predication for arm_restrict_it.
25418 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25419 (*thumb2_movdfcc_vfp): Likewise.
25420 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25421 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25422 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25423 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25424 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25425 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25426 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25427 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25428 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25429 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25430 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25431 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25432 Disable predication for arm_restrict_it.
25434 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25436 * config/i386/bmiintrin.h (_bextr_u32): New.
25437 (_bextr_u64): Ditto.
25439 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25441 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25442 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25443 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25444 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25445 * config/mips/n32-elf.h: ...this new file.
25447 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25450 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25451 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25453 2013-06-27 Catherine Moore <clm@codesourcery.com>
25455 * config/mips/mips-tables.opt: Regenerate.
25456 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25457 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25458 * doc/invoke.texi: Add -m14kc.
25460 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25463 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25464 constraints of operand 1 and 2.
25467 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25468 to match RTL canonicalization. Swap predicates and
25469 constraints of operand 1 and 2.
25471 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25473 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25474 Process OP_INOUT regs for splitting too.
25476 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25478 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25479 decl before the loop, initialize to NULL.
25480 (vectorizable_load): Initialize ptr_incr to NULL.
25482 2013-06-27 Martin Jambor <mjambor@suse.cz>
25485 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25486 * ipa-ref.c (ipa_maybe_record_reference): New function.
25487 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25488 * ipa-cp.c (create_specialized_node): Record potential references from
25490 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25492 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25494 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25495 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25496 'mode' to force_reg.
25497 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25498 (aarch64_expand_mov_immediate): Likewise.
25500 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25502 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25503 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25505 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25507 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25508 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25509 (struct machine_function): Add tbegin_p.
25510 (s390_canonicalize_comparison): Fold CC mode compares to
25511 conditional jump if possible.
25512 (s390_emit_jump): Return the emitted jump.
25513 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25514 Handle CCRAWmode compares.
25515 (s390_option_override): Default to -mhtm if available.
25516 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25517 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25518 FPRs instead of df_regs_ever_live_p.
25519 (s390_optimize_nonescaping_tx): New function.
25520 (s390_init_frame_layout): Extend clobbered_regs array to cover
25522 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25523 (s390_expand_tbegin): New function.
25524 (enum s390_builtin): New enum definition.
25525 (code_for_builtin): New array definition.
25526 (s390_init_builtins): New function.
25527 (s390_expand_builtin): New function.
25528 (TARGET_INIT_BUILTINS): Define.
25529 (TARGET_EXPAND_BUILTIN): Define.
25530 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25531 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25532 (s390_alc_comparison): Likewise.
25533 * config/s390/s390-modes.def: Add CCRAWmode.
25534 * config/s390/s390.h (processor_flags): Add PF_TX.
25535 (TARGET_CPU_HTM): Define macro.
25536 (TARGET_HTM): Define macro.
25537 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25538 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25539 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25540 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25541 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25542 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25543 ("*cc_to_int"): Move up.
25544 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25545 constants other than 0.
25546 ("*ccraw_to_int"): New insn and splitter definition.
25547 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25548 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25549 ("tx_assist"): New expander.
25550 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25551 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25552 * config/s390/s390.opt: Add -mhtm option.
25553 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25554 * config/s390/htmxlintrin.h: New file.
25555 * config/s390/htmintrin.h: New file.
25556 * config/s390/s390intrin.h: New file.
25557 * doc/extend.texi: Document htm builtins.
25558 * config.gcc: Add the new header files to extra_headers.
25560 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25562 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25563 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25565 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25566 Pat Haugen <pthaugen@us.ibm.com>
25567 Peter Bergner <bergner@vnet.ibm.com>
25569 * config/rs6000/power8.md: New.
25570 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25571 setting for power8 entry.
25572 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25573 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25574 test for Power4/Power5 only.
25575 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25577 (force_new_group): Adjust comment.
25578 * config/rs6000/rs6000.md: Include power8.md.
25580 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25582 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25583 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25585 (tune_params): Update comment.
25586 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25587 (arm_max_conditional_execute): New function.
25588 (thumb2_final_prescan_insn): Use max_insn_skipped and
25589 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25591 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25593 PR tree-optimization/57705
25594 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25595 SSA_NAME step, provided that it is not defined inside the loop.
25596 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25597 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25599 2013-06-25 Martin Jambor <mjambor@suse.cz>
25601 PR middle-end/57670
25602 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25603 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25605 (ipa_note_param_call): Initialize member_ptr flag.
25606 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25607 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25608 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25609 (ipa_read_indirect_edge_info): Likewise.
25611 2013-06-25 Richard Biener <rguenther@suse.de>
25613 PR middle-end/56977
25614 * passes.c (init_optimization_passes): Move pass_fold_builtins
25615 and pass_dce earlier with -Og.
25617 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25619 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25620 <BIT_FIELD_REF>: Remove trailing TAB.
25621 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25624 2013-06-24 Martin Jambor <mjambor@suse.cz>
25626 PR tree-optimization/57358
25627 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25628 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25629 (ipa_analyze_params_uses): Generate pessimistic info when true.
25631 2013-06-24 Martin Jambor <mjambor@suse.cz>
25633 PR tree-optimization/57539
25634 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25635 global.inlined_to of the new node to it. All callers changed.
25636 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25637 inlining_into, pass it to cgraph_clone_node.
25638 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25639 ipa_free_edge_args_substructures.
25640 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25641 rdesc linked list. Do not assert rdesc edges have inlined caller.
25642 Assert we have found an rdesc in the rdesc list.
25644 2013-06-24 Richard Biener <rguenther@suse.de>
25646 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25647 (pointer_set_lookup): Declare.
25648 (class pointer_map): New template class implementing a
25649 generic pointer to T map.
25650 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25651 pointer_map<T>::contains, pointer_map<T>::insert,
25652 pointer_map<T>::traverse): New functions.
25653 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25654 (pointer_set_lookup): New function.
25655 (pointer_set_contains): Use pointer_set_lookup.
25656 (pointer_set_insert): Likewise.
25657 (insert_aux): Remove.
25658 (struct pointer_map_t): Embed a pointer_set_t.
25659 (pointer_map_create): Adjust.
25660 (pointer_map_destroy): Likewise.
25661 (pointer_map_contains): Likewise.
25662 (pointer_map_insert): Likewise.
25663 (pointer_map_traverse): Likewise.
25664 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25665 pointer_map<unsigned> instead of a pointer_map_t.
25666 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25667 (streamer_tree_cache_lookup): Likewise.
25668 (streamer_tree_cache_create): Likewise.
25669 (streamer_tree_cache_delete): Likewise.
25670 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25671 pointer_map<unsigned> instead of a pointer_map_t.
25672 (lto_init_tree_ref_encoder): Adjust.
25673 (lto_destroy_tree_ref_encoder): Likewise.
25674 * lto-section-out.c (lto_output_decl_index): Likewise.
25675 (lto_record_function_out_decl_state): Likewise.
25676 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25678 2013-06-24 Richard Biener <rguenther@suse.de>
25680 PR tree-optimization/57488
25681 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25683 2013-06-24 Alan Modra <amodra@gmail.com>
25685 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25686 (gen_easy_altivec_constant): Likewise.
25687 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25688 easy_vector_constant_msb): Likewise.
25690 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25693 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25694 add missing return true.
25696 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25699 * config/sh/predicates.md (general_extend_operand): Invoke
25700 general_movsrc_operand for memory operands.
25701 (general_movsrc_operand): Allow reg+reg addressing, do not use
25702 general_operand for memory operands.
25704 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25706 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25707 when current target options does not apply.
25708 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25709 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25710 * config/i386/bmiintrin.h: Pass appropriate target
25711 attributes to header.
25712 * config/i386/mmintrin.h: Ditto.
25713 * config/i386/nmmintrin.h: Ditto.
25714 * config/i386/avx2intrin.h: Ditto.
25715 * config/i386/fxsrintrin.h: Ditto.
25716 * config/i386/tbmintrin.h: Ditto.
25717 * config/i386/xsaveintrin.h: Ditto.
25718 * config/i386/f16cintrin.h: Ditto.
25719 * config/i386/xtestintrin.h: Ditto.
25720 * config/i386/xsaveoptintrin.h: Ditto.
25721 * config/i386/bmi2intrin.h: Ditto.
25722 * config/i386/lzcntintrin.h: Ditto.
25723 * config/i386/smmintrin.h: Ditto.
25724 * config/i386/wmmintrin.h: Ditto.
25725 * config/i386/x86intrin.h: Remove all header include guards.
25726 * config/i386/prfchwintrin.h: Ditto.
25727 * config/i386/pmmintrin.h: Ditto.
25728 * config/i386/tmmintrin.h: Ditto.
25729 * config/i386/xmmintrin.h: Ditto.
25730 * config/i386/popcntintrin.h: Ditto.
25731 * config/i386/rdseedintrin.h: Ditto.
25732 * config/i386/ammintrin.h: Ditto.
25733 * config/i386/emmintrin.h: Ditto.
25734 * config/i386/immintrin.h: Remove all header include guards.
25735 * config/i386/fma4intrin.h: Ditto.
25736 * config/i386/lwpintrin.h: Ditto.
25737 * config/i386/xopintrin.h: Ditto.
25738 * config/i386/ia32intrin.h: Ditto.
25739 * config/i386/avxintrin.h: Ditto.
25740 * config/i386/rtmintrin.h: Ditto.
25741 * config/i386/fmaintrin.h: Ditto.
25742 * config/i386/mm3dnow.h: Ditto.
25744 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25746 * common/config/i386/i386-common.c: Handle LZCNT.
25748 2013-06-22 Andi Kleen <ak@linux.intel.com>
25750 * doc/extend.texi: Use __atomic_store_n instead of
25751 __atomic_store in HLE example.
25753 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25755 * config/sh/sh.c: Remove <cstdlib> workaround.
25757 2013-06-21 Andi Kleen <ak@linux.intel.com>
25759 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25761 2013-06-21 Andi Kleen <ak@linux.intel.com>
25763 * doc/extend.texi: Document that __atomic_clear and
25764 __atomic_test_and_set should only be used with bool.
25766 2013-06-20 Jan Hubicka <jh@suse.cz>
25768 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25769 types_same_for_odr.
25770 * tree.c (decls_same_for_odr): New function.
25771 (same_for_edr): New function.
25772 (types_same_for_odr): New function.
25773 (get_binfo_at_offset): Use it.
25774 * tree.h (types_same_for_odr): Declare.
25776 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25777 Jason Merrill <jason@redhat.com>
25779 * system.h: Include <cstdlib> as well as <stdlib.h>.
25781 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25784 * config/i386/i386.c (construct_container): Report error if
25785 long double is used with disabled x87 float returns.
25787 2013-06-20 Jan Hubicka <jh@suse.cz>
25789 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25791 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25793 PR rtl-optimization/57425
25794 PR rtl-optimization/57569
25795 * alias.c (write_dependence_p): Remove parameters mem_mode and
25796 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25797 Changed all callers.
25798 (canon_anti_dependence): Get comments and semantics in sync.
25799 Add parameter mem_canonicalized. Changed all callers.
25800 * rtl.h (canon_anti_dependence): Update prototype.
25802 2013-06-20 Richard Biener <rguenther@suse.de>
25804 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25805 byte case, inline streamer_read_uchar and defer section
25808 2013-06-20 Richard Biener <rguenther@suse.de>
25810 PR tree-optimization/57584
25811 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25812 SSA names into the expanded expression that take part in
25813 abnormal coalescing.
25815 2013-06-19 Sharad Singhai <singhai@google.com>
25817 * gcov.c (print_usage): Handle new option.
25818 (process_args): Ditto.
25819 (get_gcov_intermediate_filename): New function.
25820 (output_intermediate_file): New function.
25821 (output_gcov_file): New function
25822 (generate_results): Handle new option.
25823 (release_function): Relase demangled name.
25824 (read_graph_file): Handle demangled name.
25825 (output_lines): Ditto.
25826 * doc/gcov.texi: Document gcov intermediate format.
25828 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25831 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25832 (lra_emit_add): Use the functions. Add comment about Y as an
25835 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25838 * collect2.c (collect_atexit): New.
25839 (collect_exit): Delete.
25840 (main): Register collect_atexit with atexit.
25841 (collect_wait): Change collect_exit to exit.
25843 * collect2.h (collect_exit): Delete.
25844 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25846 2013-06-19 Wei Mi <wmi@google.com>
25848 PR rtl-optimization/57518
25849 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25850 if regno is used in paradoxical subreg.
25851 (update_equiv_regs): Check pdx_subregs[regno] before
25852 set a reg to be equivalent with a mem.
25854 2013-06-19 Matthias Klose <doko@ubuntu.com>
25857 * file-find.h (find_a_file): Add a mode parameter.
25858 * file-find.c (find_a_file): Likewise.
25859 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25860 with X_OK for the executables.
25861 * collect2.c (main): Call find_a_file with X_OK.
25863 2013-06-19 Steve Ellcey <sellcey@mips.com>
25866 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25867 Use NEXT_INSN instead of next_real_insn.
25869 2013-06-19 Jan Hubicka <jh@suse.cz>
25871 * cgraph.h (const_value_known_p): Replace by ...
25872 (ctor_for_folding): .. this one.
25873 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25874 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25875 * expr.c (expand_expr_real_1): Likewise.
25876 (string_constant): Likewise.
25877 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25878 * ipa.c (process_references): Likewise.
25879 (symtab_remove_unreachable_nodes): Likewise.
25880 * ipa-inline-analysis.c (param_change_prob): Likewise.
25881 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25882 (get_base_constructor): Likwise.
25883 * varpool.c (varpool_remove_node): Likewise.
25884 (varpool_remove_initializer): LIkewise.
25885 (dump_varpool_node): LIkwise.
25886 (const_value_known_p): Rewrite to ...
25887 (ctor_for_folding): ... this one.
25889 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25892 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25893 PERSONALITY in $PATH derived prefixes.
25895 2013-06-19 Jeff Law <law@redhat.com>
25897 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25900 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25901 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25904 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25906 * config/arm/vfp.md: Move VFP instruction classification documentation
25908 * config/arm/arm.md: ... here. Update instruction classification
25911 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25913 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25914 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25915 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25917 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25920 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25921 with NEXT_INSN. Use tablejump_p to check for jump table data
25924 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25927 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25928 that now in C++ the value is correct per the C++ standards.
25930 2013-06-19 Richard Biener <rguenther@suse.de>
25932 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25933 for global context.
25935 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25938 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25941 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25942 with next_active_insn.
25944 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25946 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25947 functions are inlined during failures to flag an error.
25948 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25949 in early inline pass.
25951 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25953 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25956 2013-06-18 Julian Brown <julian@codesourcery.com>
25958 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25959 Permit virtual register pre-reload if !strict.
25960 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25962 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25964 * config/arm/neon.md (movmisalign<mode>): Use
25965 neon_perm_struct_or_reg_operand instead of
25966 neon_struct_or_register_operand.
25967 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25968 neon_permissive_struct_operand instead of neon_struct_operand.
25969 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25970 neon_vector_mem_operand.
25971 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25972 neon_vector_mem_operand.
25973 (neon_permissive_struct_operand): New.
25974 (neon_struct_or_register_operand): Rename to...
25975 (neon_perm_struct_or_reg_operand): This. Adjust call to
25976 neon_vector_mem_operand.
25978 2013-06-18 Richard Biener <rguenther@suse.de>
25980 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25981 * lto-streamer.h: Include pointer-set.h.
25982 (struct lto_decl_slot): Remove.
25983 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25984 Remove next_index entry.
25985 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25986 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25987 (lto_init_tree_ref_encoder): Adjust.
25988 (lto_destroy_tree_ref_encoder): Likewise.
25989 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25990 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25991 (lto_output_decl_index): Adjust.
25992 (lto_new_out_decl_state): Likewise.
25993 (lto_record_function_out_decl_state): Likewise.
25994 * lto-streamer-out.c (copy_function): Likewise.
25996 2013-06-18 Richard Biener <rguenther@suse.de>
25998 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25999 * cgraphunit.c: Include cfgloop.h.
26000 (init_lowered_empty_function): Initialize the loop tree.
26001 (assemble_thunk): Insert new BBs into loops.
26003 2013-06-18 Richard Biener <rguenther@suse.de>
26005 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26006 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26007 the map from cache entry to cache index optional.
26008 (streamer_tree_cache_replace_tree): Adjust accordingly.
26009 (streamer_tree_cache_append): Likewise.
26010 (streamer_tree_cache_delete): Likewise.
26011 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26012 streamer cache map from cache entry to cache index.
26013 * lto-streamer-out.c (create_output_block): Adjust.
26015 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26017 * config/arm/arm.md (attribute "insn"): Move multiplication and
26018 division attributes to...
26019 (attribute "type"): ... here. Remove mult.
26020 (attribute "mul32"): New attribute.
26021 (attribute "mul64"): Add umaal.
26022 (*arm_mulsi3): Update attributes.
26023 (*arm_mulsi3_v6): Likewise.
26024 (*thumb_mulsi3): Likewise.
26025 (*thumb_mulsi3_v6): Likewise.
26026 (*mulsi3_compare0): Likewise.
26027 (*mulsi3_compare0_v6): Likewise.
26028 (*mulsi_compare0_scratch): Likewise.
26029 (*mulsi_compare0_scratch_v6): Likewise.
26030 (*mulsi3addsi): Likewise.
26031 (*mulsi3addsi_v6): Likewise.
26032 (*mulsi3addsi_compare0): Likewise.
26033 (*mulsi3addsi_compare0_v6): Likewise.
26034 (*mulsi3addsi_compare0_scratch): Likewise.
26035 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26036 (*mulsi3subsi): Likewise.
26037 (*mulsidi3adddi): Likewise.
26038 (*mulsi3addsi_v6): Likewise.
26039 (*mulsidi3adddi_v6): Likewise.
26040 (*mulsidi3_nov6): Likewise.
26041 (*mulsidi3_v6): Likewise.
26042 (*umulsidi3_nov6): Likewise.
26043 (*umulsidi3_v6): Likewise.
26044 (*umulsidi3adddi): Likewise.
26045 (*umulsidi3adddi_v6): Likewise.
26046 (*smulsi3_highpart_nov6): Likewise.
26047 (*smulsi3_highpart_v6): Likewise.
26048 (*umulsi3_highpart_nov6): Likewise.
26049 (*umulsi3_highpart_v6): Likewise.
26050 (mulhisi3): Likewise.
26051 (*mulhisi3tb): Likewise.
26052 (*mulhisi3bt): Likewise.
26053 (*mulhisi3tt): Likewise.
26054 (maddhisi4): Likewise.
26055 (*maddhisi4tb): Likewise.
26056 (*maddhisi4tt): Likewise.
26057 (maddhidi4): Likewise.
26058 (*maddhidi4tb): Likewise.
26059 (*maddhidi4tt): Likewise.
26060 (divsi3): Likewise.
26061 (udivsi3): Likewise.
26062 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26063 (thumb2_mulsi_short_compare0): Likewise.
26064 (thumb2_mulsi_short_compare0_scratch): Likewise.
26065 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26066 (1020mult2): Likewise.
26067 (1020mult3): Likewise.
26068 (1020mult4): Likewise.
26069 (1020mult5): Likewise.
26070 (1020mult6): Likewise.
26071 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26073 (cortex_a15_mult64): Likewise.
26074 (cortex_a15_sdiv): Likewise.
26075 (cortex_a15_udiv): Likewise.
26076 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26082 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26083 (pj4_ir_div): Likewise.
26084 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26085 (11_mult2): Likewise.
26086 (11_mult3): Likewise.
26087 (11_mult4): Likewise.
26088 (11_mult5): Likewise.
26089 (11_mult6): Likewise.
26090 (11_mult7): Likewise.
26091 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26092 (cortex_a8_mla): Likewise.
26093 (cortex_a8_mull): Likewise.
26094 (cortex_a8_smulwy): Likewise.
26095 (cortex_a8_smlald): Likewise.
26096 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26097 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26098 (cortex_r4_mul_3): Likewise.
26099 (cortex_r4_mla_4): Likewise.
26100 (cortex_r4_mla_3): Likewise.
26101 (cortex_r4_smlald): Likewise.
26102 (cortex_r4_mull): Likewise.
26103 (cortex_r4_sdiv): Likewise.
26104 (cortex_r4_udiv): Likewise.
26105 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26106 (cortex_a7_idiv): Likewise.
26107 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26108 (9_mult2): Likewise.
26109 (9_mult3): Likewise.
26110 (9_mult4): Likewise.
26111 (9_mult5): Likewise.
26112 (9_mult6): Likewise.
26113 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26114 (cortex_a53_sdiv): Likewise.
26115 (cortex_a53_udiv): Likewise.
26116 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26117 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26118 (mp626_mult2): Likewise.
26119 (mp626_mult3): Likewise.
26120 (mp626_mult4): Likewise.
26121 * config/arm/fa526.md (526_mult1): Update attribute change.
26122 (526_mult2): Likewise.
26123 * config/arm/arm-generic.md (mult): Update attribute change.
26124 (mult_ldsched_strongarm): Likewise.
26125 (mult_ldsched): Likewise.
26126 (multi_cycle): Likewise.
26127 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26128 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26129 (606te_mult2): Likewise.
26130 (606te_mult3): Likewise.
26131 (606te_mult4): Likewise.
26132 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26133 (cortex_a9_mac16): Likewise.
26134 (cortex_a9_multiply): Likewise.
26135 (cortex_a9_mac): Likewise.
26136 (cortex_a9_multiply_long): Likewise.
26137 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26138 (626te_mult2): Likewise.
26139 (626te_mult3): Likewise.
26140 (626te_mult4): Likewise.
26142 2013-06-18 Richard Biener <rguenther@suse.de>
26145 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26147 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26150 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26151 with next_active_insn.
26153 2013-06-18 Alan Modra <amodra@gmail.com>
26155 * config/rs6000/rs6000.h (enum data_align): New.
26156 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26157 (DATA_ABI_ALIGNMENT): Define.
26158 (CONSTANT_ALIGNMENT): Correct comment.
26159 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26160 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26162 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26164 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26165 ATTRIBUTE_UNUSED marking.
26167 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26169 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26170 alternative and update.
26171 (aarch64_dup_lanedi): Delete.
26172 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26173 * config/aarch64/aarch64-simd-builtins.def: Update.
26175 2013-06-17 Richard Biener <rguenther@suse.de>
26177 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26178 (lto_input_scc): Declare.
26179 (lto_input_tree_1): Likewise.
26180 (struct lto_stats_d): Add num_tree_bodies_output and
26181 num_pickle_refs_output.
26182 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26183 (lto_read_tree_1): Split out from ...
26184 (lto_read_tree): ... this.
26185 (lto_input_scc): New function.
26186 (lto_input_tree_1): Split out from ...
26187 (lto_input_tree): ... this. Handle LTO_tree_scc.
26188 (lto_data_in_create): Create the streamer cache without hashes.
26189 * lto-streamer-out.c (create_output_block): Create the streamer
26190 cache with hashes when not doing WPA.
26191 (lto_write_tree_1): Split out from ...
26192 (lto_write_tree): ... this.
26193 (get_symbol_initial_value): New function.
26194 (lto_output_tree_1): Split out from ...
26195 (lto_output_tree): ... this. Write trees as series of SCCs
26196 using a DFS walk via DFS_write_tree.
26197 (struct sccs, struct scc_entry): New types.
26198 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26199 (DFS_write_tree_body): New function.
26200 (DFS_write_tree): Likewise.
26201 (hash_tree): Likewise.
26202 (scc_entry_compare): Likewise.
26203 (hash_scc): Likewise.
26204 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26205 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26206 TREE_CHAIN as regular reference.
26207 (streamer_read_integer_cst): Remove.
26208 (streamer_get_pickled_tree): Adjust.
26209 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26210 of DECL_EXTERNALs in BLOCK_VARS for now.
26211 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26213 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26214 Add hash value argument and record that if hashes are recorded
26216 (streamer_tree_cache_insert_1): Adjust.
26217 (streamer_tree_cache_insert): Likewise.
26218 (streamer_tree_cache_insert_at): Rename to ...
26219 (streamer_tree_cache_replace_tree): ... this and adjust.
26220 (streamer_tree_cache_append): Adjust.
26221 (record_common_node): Likewise.
26222 (streamer_tree_cache_create): Add argument whether to
26223 record hash values together with trees.
26224 (streamer_tree_cache_delete): Adjust.
26225 * tree-streamer.h (struct streamer_tree_cache_d): Add
26227 (streamer_read_integer_cst): Remove.
26228 (streamer_tree_cache_insert): Adjust.
26229 (streamer_tree_cache_append): Likewise.
26230 (streamer_tree_cache_insert_at): Rename to ...
26231 (streamer_tree_cache_replace_tree): ... this and adjust.
26232 (streamer_tree_cache_create): Add argument whether to record hashes.
26233 (streamer_tree_cache_get): Rename to ...
26234 (streamer_tree_cache_get_tree): ... this.
26235 (streamer_tree_cache_get_hash): New function.
26236 * tree.c (cache_integer_cst): New function.
26237 * tree.h (cache_integer_cst): Declare.
26238 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26239 * lto-symtab.c (lto_varpool_replace_node): Only release
26240 DECL_INITIAL of non-prevailing decls.
26241 * varpool.c (varpool_remove_initializer): Do not release
26242 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26244 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26246 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26247 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26248 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26249 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26250 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26251 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26252 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26253 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26254 instead of TARGET_64BIT.
26255 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26256 Require ISA_HAS_<D>DIV.
26258 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26260 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26261 (mips*-*-linux*): Move default with_llsc setting to where other
26263 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26265 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26266 Likewise. Remove default with_tune setting. Move default float
26267 setting to its own block. Handle with_llsc in the same block as above.
26269 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26271 PR rtl-optimization/57425
26272 PR rtl-optimization/57569
26273 * alias.c (write_dependence_p): Add new parameters mem_mode,
26274 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26275 Changed all callers.
26276 (canon_anti_dependence): New function.
26277 * cse.c (check_dependence): Use canon_anti_dependence.
26278 * cselib.c (cselib_invalidate_mem): Likewise.
26279 * rtl.h (canon_anti_dependence): Declare.
26281 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26283 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26284 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26285 ".set mips3" for 64-bit targets.
26287 2013-06-15 Dehao Chen <dehao@google.com>
26289 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26290 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26291 (gimple_check_call_args): Likewise.
26292 * value-prof.c (check_ic_target): Likewise.
26293 * ipa-inline.c (early_inliner): Likewise.
26294 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26295 * cgraph.c (cgraph_create_edge_1): Likewise.
26296 (cgraph_make_edge_direct): Likewise.
26298 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26301 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26302 rs6000_output_move_128bit to handle emitting quad memory
26303 operations. Set attribute length to 8 bytes.
26305 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26307 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26309 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26310 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26311 (aarch64_<su>mlsl<mode>): Likewise.
26313 2013-06-14 Mike Stump <mikestump@comcast.net>
26315 * Makefile.in (TARGET_H): Add insn-codes.h.
26317 2013-06-14 Alan Modra <amodra@gmail.com>
26319 PR middle-end/57134
26320 PR middle-end/57586
26321 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26322 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26323 bitfield expansion when EXPAND_MEMORY.
26324 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26326 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26328 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26329 test for clearing quad memory on 32-bit later.
26331 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26333 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26334 (fold_negate_expr): Likewise.
26335 (fold_real_zero_addition_p): Handle vectors.
26336 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26338 2013-06-14 Alan Modra <amodra@gmail.com>
26340 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26342 2013-06-13 Jan Hubicka <jh@suse.cz>
26344 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26345 Local comdats are not externally visible.
26346 * symtab.c (dump_symtab_base): Dump externally visible.
26347 (verify_symtab_base): Verify back links in the symtab hash.
26349 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26351 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26352 CONVERT_EXPR as equal nodes.
26354 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26356 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26358 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26360 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26361 Generalize to complex and vector.
26362 * tree.c (build_all_ones_cst): New function.
26363 * tree.h (build_all_ones_cst): Declare it.
26365 2013-06-13 Alan Modra <amodra@gmail.com>
26367 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26368 * config/rs6000/rs6000.md (signbittf2): New insn.
26369 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26370 (abstf2_internal, cmptf_internal2): Likewise.
26371 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26373 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26374 Pat Haugen <pthaugen@us.ibm.com>
26375 Peter Bergner <bergner@vnet.ibm.com>
26377 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26378 power8 byte, half-word, and quad-word atomic instructions.
26379 (emit_store_conditional): Likewise.
26380 (rs6000_expand_atomic_compare_and_swap): Likewise.
26381 (rs6000_expand_atomic_op): Likewise.
26383 * config/rs6000/sync.md (larx): Add new modes for power8.
26385 (AINT): New mode iterator to include TImode as well as normal
26386 integer modes on power8.
26387 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26388 that VSX registers are not considered. Use AINT mode iterator
26389 instead of INT1 to allow inclusion of quad word atomic operations
26391 (load_locked<mode>): Likewise.
26392 (store_conditional<mode>): Likewise.
26393 (atomic_compare_and_swap<mode>): Likewise.
26394 (atomic_exchange<mode>): Likewise.
26395 (atomic_nand<mode>): Likewise.
26396 (atomic_fetch_<fetchop_name><mode>): Likewise.
26397 (atomic_nand_fetch<mode>): Likewise.
26398 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26400 (ATOMIC): On power8, add QImode, HImode modes.
26401 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26402 modes that promote to SImode.
26403 (load_lockedti): Convert TImode arguments to PTImode, so that we
26404 get a guaranteed even/odd register pair.
26405 (load_lockedpti): Likewise.
26406 (store_conditionalti): Likewise.
26407 (store_conditionalpti): Likewise.
26409 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26410 atomic load/store instructions.
26413 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26415 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26417 (insn_count): New attribute, with most cases extracted from...
26418 (length): ...here. Redefine most cases in terms of insn_count.
26419 (single_insn): Delete.
26420 (can_delay): Use insn_count to check for single instructions.
26421 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26422 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26423 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26424 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26425 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26426 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26427 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26428 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26429 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26430 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26431 rather than "length".
26432 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26433 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26434 Use "insn_count" rather than "length".
26435 * config/mips/mips-dsp.md
26436 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26437 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26440 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26442 PR tree-optimization/57361
26443 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26445 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26447 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26449 (aarch64_simd_combine<mode>): New instruction expansion.
26450 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26451 function prototype.
26452 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26453 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26455 2013-06-12 Jan Hubicka <jh@suse.cz>
26457 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26458 decl has when in streaming stage.
26459 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26460 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26462 2013-06-12 Roland Stigge <stigge@antcom.de>
26465 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26467 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26469 PR tree-optimization/57537
26470 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26471 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26473 2013-06-12 Richard Biener <rguenther@suse.de>
26475 * data-streamer.h (streamer_write_char_stream): CSE
26476 obs->current_pointer.
26477 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26478 streamer_write_char_stream manually and optimize the resulting loop.
26479 (streamer_write_hwi_stream): Likewise.
26481 2013-06-12 Jan Hubicka <jh@suse.cz>
26483 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26484 * cgraph.h (varpool_create_empty_node): Declare.
26485 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26487 * symtab.c (symtab_unregister_node): Be lax about missin entries
26489 (symtab_get_node): Update comment.
26490 * varpool.c (varpool_create_empty_node): Break out from ...
26491 (varpool_node_for_decl): ... here.
26492 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26494 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26496 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26497 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26498 part. Use straight-line flow at the end.
26499 <COMPONENT_REF>: Remove superfluous else.
26500 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26502 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26505 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26506 target hook even for !TREE_PUBLIC decls. If no resolution info
26507 is available, return false for common and external decls.
26509 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26511 * config/rl78/constraints.md (U): New constraint.
26512 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26515 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26518 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26519 to allow returning address to AT_PLATFORM name.
26521 2013-06-11 Jan Hubicka <jh@suse.cz>
26523 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26524 * cgraph.h (symtab_node_base): Add weakref flag.
26525 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26526 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26527 (output_weakrefs): Use weakref flag.
26528 * fold-const.c (simple_operand_p): Handle WEAK.
26529 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26530 * ipa.c (varpool_externally_visible_p): Drop weakref.
26531 (function_and_variable_visibility): Update comment; fix weakref
26532 sanity checks; do not clear DECL_WEAK on them.
26533 * lto-cgraph.c (lto_output_node): update.
26534 (lto_output_varpool_node): Update.
26535 (input_overwrite_node): Update.
26536 (input_node): Update.
26537 (input_varpool_node): Update.
26538 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26539 (lto_symtab_merge_symbols): Add sanity check.
26540 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26541 * passes.c (rest_of_decl_compilation): Set static flag, too.
26542 * symtab.c (dump_symtab_base): Dump weakref.
26543 (verify_symtab_base): Sanity check weakrefs.
26544 (symtab_make_decl_local): Remove duplicated code.
26545 (symtab_alias_ultimate_target): Simplify.
26546 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26548 2013-06-11 Tom de Vries <tom@codesourcery.com>
26550 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26551 sequence_vect == NULL.
26553 2013-06-11 DJ Delorie <dj@redhat.com>
26555 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26556 (rl78_unwind_word_mode): New.
26558 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26560 * final.c (debug_prefix_maps): Make static.
26562 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26564 * function.c (initial_trampoline): Remove stray copy.
26566 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26568 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26570 2013-06-11 Martin Jambor <mjambor@suse.cz>
26572 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26573 within bounds at the beginning of the function.
26575 2013-06-11 Alan Modra <amodra@gmail.com>
26577 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26579 (get_named_section): Don't NULL !DECL_P decl.
26581 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26583 * doc/invoke.texi (core-avx2): Document.
26585 (atom): Updated with MOVBE.
26587 2013-06-11 Richard Biener <rguenther@suse.de>
26589 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26591 2013-06-11 Anton Blanchard <anton@samba.org>
26593 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26594 correct shift value in little-endian mode.
26596 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26599 * varasm.c (get_variable_align): Move #endif to the right place.
26601 2013-06-10 Cary Coutant <ccoutant@google.com>
26603 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26604 for hash so that hash table traversal order is deterministic.
26606 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26607 Pat Haugen <pthaugen@us.ibm.com>
26608 Peter Bergner <bergner@vnet.ibm.com>
26610 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26611 of vectors in GPRS if they are direct moves or quad word load or
26614 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26616 (direct_move_p): Likewise.
26617 (quad_load_store_p): Likewise.
26619 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26620 classes into bins based on the physical register type.
26621 (reg_class_to_reg_type): Likewise.
26622 (IS_STD_REG_TYPE): Likewise.
26623 (IS_FP_VECT_REG_TYPE): Likewise.
26624 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26625 use direct move instructions.
26626 (reload_gpr_vsx): Likewise.
26627 (reload_vsx_gpr): Likewise.
26628 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26629 information that is a simplification of register classes. Also
26630 precalculate direct move reload helpers.
26631 (direct_move_p): New function to return true if the operation can
26632 be done as a direct move instruciton.
26633 (quad_load_store_p): New function to return true if the operation
26634 is a quad memory operation.
26635 (rs6000_legitimize_address): If quad memory, only allow register
26636 indirect for TImode addresses.
26637 (rs6000_legitimate_address_p): Likewise.
26638 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26639 (rs6000_reload_register_type): Likewise.
26640 (register_to_reg_type): Return register type.
26641 (rs6000_secondary_reload_simple_move): New helper function for
26642 secondary reload and secondary memory needed to identify anything
26643 that is a simple move, and does not need reloading.
26644 (rs6000_secondary_reload_direct_move): New helper function for
26645 secondary reload to identify cases that can be done with several
26646 instructions via the direct move instructions.
26647 (rs6000_secondary_reload_move): New helper function for secondary
26648 reload to identify moves between register types that can be done.
26649 (rs6000_secondary_reload): Add support for quad memory operations
26650 and for direct move.
26651 (rs6000_secondary_memory_needed): Likewise.
26652 (rs6000_debug_secondary_memory_needed): Change argument names.
26653 (rs6000_output_move_128bit): New function to return the move to
26654 use for 128-bit moves, including knowing about the various
26655 limitations of quad memory operations.
26657 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26658 memory operations. call rs6000_output_move_128bit for the actual
26659 instruciton(s) to generate.
26660 (vsx_movti_64bit): Likewise.
26662 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26663 (UNSPEC_P8V_MTVSRWZ): Likewise.
26664 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26665 (UNSPEC_P8V_MTVSRD): Likewise.
26666 (UNSPEC_P8V_XXPERMDI): Likewise.
26667 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26668 (UNSPEC_FUSION_GPR): Likewise.
26669 (FMOVE128_GPR): New iterator for direct move.
26670 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26671 (f32_sv): Likewise.
26672 (f32_dm): Likewise.
26673 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26674 loads and direct move instructions.
26675 (zero_extendsidi2_lfiwzx): Likewise.
26676 (extendsidi2_lfiwax): Likewise.
26677 (extendsidi2_nocell): Likewise.
26678 (floatsi<mode>2_lfiwax): Likewise.
26679 (lfiwax): Likewise.
26680 (floatunssi<mode>2_lfiwzx): Likewise.
26681 (lfiwzx): Likewise.
26682 (fix_trunc<mode>_stfiwx): Likewise.
26683 (fixuns_trunc<mode>_stfiwx): Likewise.
26684 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26685 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26686 (parity<mode>2_cmpb): Set length/type attr.
26687 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26688 for 'mr.' to fast_compare.
26689 (bpermd_<mode>): Change type attr to popcnt.
26690 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26691 (p8_mtvsrwz_1): Likewise.
26692 (p8_mtvsrwz_2): Likewise.
26693 (reload_fpr_from_gpr<mode>): Likewise.
26694 (p8_mtvsrd_1): Likewise.
26695 (p8_mtvsrd_2): Likewise.
26696 (p8_xxpermdi_<mode>): Likewise.
26697 (reload_vsx_from_gpr<mode>): Likewise.
26698 (reload_vsx_from_gprsf): Likewise.
26699 (p8_mfvsrd_3_<mode>): LIkewise.
26700 (reload_gpr_from_vsx<mode>): Likewise.
26701 (reload_gpr_from_vsxsf): Likewise.
26702 (p8_mfvsrd_4_disf): Likewise.
26703 (multi-word GPR splits): Do not split direct moves or quad memory
26706 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26708 * tree-into-ssa.c (interesting_blocks): Make static.
26710 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26713 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26714 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26715 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26716 (get_variable_align): New function.
26717 (get_variable_section, emit_bss, emit_common,
26718 assemble_variable_contents, place_block_symbol): Use
26719 get_variable_align instead of DECL_ALIGN.
26720 (assemble_noswitch_variable): Add align argument, use it
26721 instead of DECL_ALIGN.
26722 (assemble_variable): Adjust caller. Use get_variable_align
26723 instead of DECL_ALIGN.
26724 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26726 (DATA_ABI_ALIGNMENT): Define.
26727 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26728 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26729 opt is false, only return the psABI mandated alignment increase.
26730 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26731 (DATA_ABI_ALIGNMENT): ... this.
26732 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26733 (DATA_ABI_ALIGNMENT): ... this.
26734 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26735 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26736 (DATA_ABI_ALIGNMENT): ... this.
26737 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26738 * doc/tm.texi: Regenerated.
26740 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26742 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26743 cmp_code to construct REG_EQUAL note.
26745 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26748 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26749 that operands[2] doesn't overlap with operands[0].
26751 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26752 Jan Hubicka <jh@suse.cz>
26754 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26755 hack to mark symbols as used.
26757 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26759 PR rtl-optimization/57559
26760 * lra-constraints.c (process_alt_operands): Don't discourage
26761 memory with known offset for offsetable memory constraint.
26762 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26764 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26766 * varasm.c (struct oc_local_state): Reorder fields.
26767 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26768 and adjust accordingly.
26769 (output_constructor): Reorder initialization code and adjust call to
26770 output_constructor_bitfield.
26772 2013-06-07 Jan Hubicka <jh@suse.cz>
26774 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26776 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26778 * tree-object-size.c (unknown): Make const.
26780 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26782 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26783 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26784 for last alternative in the cpu_facility attribute.
26786 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26789 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26790 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26791 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26792 * config/arm/constraints.md (Dg): New constraint.
26793 * config/arm/neon.md (xordi3_neon): Remove.
26794 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26795 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26797 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26799 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26800 Clean up alternatives.
26802 2013-06-07 Alan Modra <amodra@gmail.com>
26804 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26807 2013-06-07 Alan Modra <amodra@gmail.com>
26809 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26811 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26813 * config/arm/constraints.md (Df): New constraint.
26814 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26815 Correct length attribute for last two alternatives.
26817 2013-06-07 Alan Modra <amodra@gmail.com>
26819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26820 override user -mfp-in-toc.
26821 (offsettable_ok_by_alignment): Consider just the current access
26822 rather than the whole object, unless BLKmode. Handle
26823 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26824 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26825 for -mcmodel=medium.
26826 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26827 override user -mfp-in-toc or -msum-in-toc. Default to
26828 -mno-fp-in-toc for -mcmodel=medium.
26830 2013-06-06 DJ Delorie <dj@redhat.com>
26832 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26833 TARGET_VALID_POINTER_MODE.
26835 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26836 Pat Haugen <pthaugen@us.ibm.com>
26837 Peter Bergner <bergner@vnet.ibm.com>
26839 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26840 Document new power8 builtins.
26842 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26843 condition code register, to allow 128-bit logical operations to be
26844 done in the VSX or GPR registers.
26845 (nor<mode>3): Use the canonical form for nor.
26846 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26847 vclz*, and vpopcnt* vector instructions.
26848 (nand<mode>3): Likewise.
26849 (orc<mode>3): Likewise.
26850 (clz<mode>2): LIkewise.
26851 (popcount<mode>2): Likewise.
26853 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26854 that only the GPRs are recognized.
26856 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26857 support for new power8 builtins.
26859 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26861 (xscvdpspn): Likewise.
26867 (vpopcnt): Likewise.
26868 (vpopcntb): Likewise.
26869 (vpopcnth): Likewise.
26870 (vpopcntw): Likewise.
26871 (vpopcntd): Likewise.
26873 (vmrgew): Likewise.
26874 (vmrgow): Likewise.
26876 (eqv_v16qi3): Likewise.
26877 (eqv_v8hi3): Likewise.
26878 (eqv_v4si3): Likewise.
26879 (eqv_v2di3): Likewise.
26880 (eqv_v4sf3): Likewise.
26881 (eqv_v2df3): Likewise.
26883 (nand_v16qi3): Likewise.
26884 (nand_v8hi3): Likewise.
26885 (nand_v4si3): Likewise.
26886 (nand_v2di3): Likewise.
26887 (nand_v4sf3): Likewise.
26888 (nand_v2df3): Likewise.
26890 (orc_v16qi3): Likewise.
26891 (orc_v8hi3): Likewise.
26892 (orc_v4si3): Likewise.
26893 (orc_v2di3): Likewise.
26894 (orc_v4sf3): Likewise.
26895 (orc_v2df3): Likewise.
26897 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26898 allow power8 quad mode in 64-bit.
26899 (rs6000_builtin_vectorized_function): Add support to vectorize
26900 ISA 2.07 count leading zeros, population count builtins.
26901 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26902 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26903 (builtin_function_type): Add vgbbd builtin function which takes an
26905 (altivec_expand_vec_perm_const): Add support for new power8 merge
26908 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26909 that does not include TImdoe for use with 32-bit.
26910 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26912 (UNSPEC_VSX_CVDPSPN): Likewise.
26913 (vsx_xscvdpspn): Likewise.
26914 (vsx_xscvspdpn): Likewise.
26915 (vsx_xscvdpspn_scalar): Likewise.
26916 (vsx_xscvspdpn_directmove): Likewise.
26917 (vsx_and<mode>3): Split logical operations into 32-bit and
26918 64-bit. Add support to do logical operations on TImode as well as
26919 VSX vector types. Allow logical operations to be done in either
26920 VSX registers or in general purpose registers in 64-bit mode. Add
26921 splitters if GPRs were used. For AND, add clobber of CCmode to
26922 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26924 (vsx_and<mode>3_32bit): Likewise.
26925 (vsx_and<mode>3_64bit): Likewise.
26926 (vsx_ior<mode>3): Likewise.
26927 (vsx_ior<mode>3_32bit): Likewise.
26928 (vsx_ior<mode>3_64bit): Likewise.
26929 (vsx_xor<mode>3): Likewise.
26930 (vsx_xor<mode>3_32bit): Likewise.
26931 (vsx_xor<mode>3_64bit): Likewise.
26932 (vsx_one_cmpl<mode>2): Likewise.
26933 (vsx_one_cmpl<mode>2_32bit): Likewise.
26934 (vsx_one_cmpl<mode>2_64bit): Likewise.
26935 (vsx_nor<mode>3): Likewise.
26936 (vsx_nor<mode>3_32bit): Likewise.
26937 (vsx_nor<mode>3_64bit): Likewise.
26938 (vsx_andc<mode>3): Likewise.
26939 (vsx_andc<mode>3_32bit): Likewise.
26940 (vsx_andc<mode>3_64bit): Likewise.
26941 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26942 and xxlorc instructions.
26943 (vsx_eqv<mode>3_64bit): Likewise.
26944 (vsx_nand<mode>3_32bit): Likewise.
26945 (vsx_nand<mode>3_64bit): Likewise.
26946 (vsx_orc<mode>3_32bit): Likewise.
26947 (vsx_orc<mode>3_64bit): Likewise.
26949 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26951 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26953 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26954 (p8_vmrgow): Likewise.
26955 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26956 GPRs to be split under VSX.
26957 (p8v_clz<mode>2): Add power8 count leading zero support.
26958 (p8v_popcount<mode>2): Add power8 population count support.
26959 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26962 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26965 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26967 (vec_nand): Likewise.
26968 (vec_vclz): Likewise.
26969 (vec_vclzb): Likewise.
26970 (vec_vclzd): Likewise.
26971 (vec_vclzh): Likewise.
26972 (vec_vclzw): Likewise.
26973 (vec_vgbbd): Likewise.
26974 (vec_vmrgew): Likewise.
26975 (vec_vmrgow): Likewise.
26976 (vec_vpopcnt): Likewise.
26977 (vec_vpopcntb): Likewise.
26978 (vec_vpopcntd): Likewise.
26979 (vec_vpopcnth): Likewise.
26980 (vec_vpopcntw): Likewise.
26982 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26984 PR rtl-optimization/57468
26985 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26988 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26990 PR rtl-optimization/57459
26991 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26992 type when setting live regs.
26994 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26996 * config/s390/s390.opt (mlra): New option.
26997 * config/s390/s390.c (s390_decompose_address): Check displacement
26998 for all registers for LRA.
26999 (s390_secondary_reload): Don't used secondary reloads for LRA.
27000 (s390_lra_p): New function.
27001 (TARGET_LRA_P): Define.
27002 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27003 of attribute cpu_facility to zarch for the last alternative.
27004 (*cmpmem_short): Ditto.
27006 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27008 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27009 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27010 (arm_expand_prologue): Likewise.
27012 2013-06-06 Teresa Johnson <tejohnson@google.com>
27015 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27016 as this is now done by redirect_edge_and_branch_force.
27017 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27018 barriers, and fix interaction with splitting.
27019 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27020 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27021 reflect changes made in the routine.
27022 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27023 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27024 since this is called in cfglayout mode, and replace partition fixup
27025 with assert as that is now done by force_nonfallthru_and_redirect.
27026 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27027 already be marked with region crossing note.
27028 (insert_section_boundary_note): Make non-static, gate on flag
27029 has_bb_partition, rewrite to also check for multiple partitions.
27030 (rest_of_handle_reorder_blocks): Remove call to
27031 insert_section_boundary_note, now done later during free_cfg.
27032 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27033 * bb-reorder.h (insert_section_boundary_note): Declare.
27034 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27035 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27036 invoke insert_section_boundary_note.
27037 (try_redirect_by_replacing_jump): Remove unnecessary
27038 check for region crossing note.
27039 (fixup_partition_crossing): New function.
27040 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27041 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27042 in non-cfglayout mode.
27043 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27044 remove old code that tried to do this. Emit barrier correctly
27045 when we are in cfglayout mode.
27046 (last_bb_in_partition): New function.
27047 (rtl_split_edge): Correctly fixup partition boundaries.
27048 (commit_one_edge_insertion): Remove old code that tried to
27049 fixup region crossing edge since this is now handled in
27050 split_block, and set up insertion point correctly since
27051 block may now end in a jump.
27052 (verify_hot_cold_block_grouping): Guard against checking when not in
27053 linearized RTL mode.
27054 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27056 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27057 rtl_verify_flow_info, so not called in cfglayout mode.
27058 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27059 (fixup_reorder_chain): Remove old code that attempted to fixup region
27060 crossing note as this is now handled in force_nonfallthru_and_redirect.
27061 (duplicate_insn_chain): Don't duplicate switch section notes.
27062 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27064 * basic-block.h (emit_barrier_after_bb): Declare.
27066 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27068 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27069 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27070 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27072 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27074 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27076 * config/arm/ldmstm.md: Regenerate.
27078 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27080 * config/arm/sync.md (atomic_loaddi_1):
27081 Disable predication for arm_restrict_it.
27082 (arm_load_exclusive<mode>): Likewise.
27083 (arm_load_exclusivesi): Likewise.
27084 (arm_load_exclusivedi): Likewise.
27085 (arm_load_acquire_exclusive<mode>): Likewise.
27086 (arm_load_acquire_exclusivesi): Likewise.
27087 (arm_load_acquire_exclusivedi): Likewise.
27088 (arm_store_exclusive<mode>): Likewise.
27089 (arm_store_exclusive<mode>): Likewise.
27090 (arm_store_release_exclusivedi): Likewise.
27091 (arm_store_release_exclusive<mode>): Likewise.
27093 2013-06-06 Richard Biener <rguenther@suse.de>
27095 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27097 (lto_tag_is_tree_code_p): Adjust.
27098 (lto_tag_is_gimple_code_p): Likewise.
27099 (lto_gimple_code_to_tag): Likewise.
27100 (lto_tag_to_gimple_code): Likewise.
27101 (lto_tree_code_to_tag): Likewise.
27102 (lto_tag_to_tree_code): Likewise.
27103 * data-streamer.h (streamer_write_hwi_in_range): Use
27104 uhwi streaming to stream the normalized range.
27105 (streamer_read_hwi_in_range): Likewise.
27107 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27109 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27110 (predicable_short_it): Likewise.
27111 (predicated): Likewise.
27112 (enabled): Handle above.
27113 (define_cond_exec): Set predicated attribute to yes.
27115 2013-06-05 Mike Stump <mikestump@comcast.net>
27117 * gdbinit.in (__FUNCTION__): Add.
27119 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27121 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27122 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27124 2013-06-05 Jan Hubicka <jh@suse.cz>
27126 * varasm.c (mark_decl_referenced): Revert the removal until targets
27129 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27131 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27132 instead of mark_decl_referenced.
27134 2013-06-05 Jan Hubicka <jh@suse.cz>
27136 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27137 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27138 and symtab_used_from_object_file_p.
27139 (cgraph_make_node_local_1): Clear forced_by_abi.
27140 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27141 * cgraph.h (symtab_node_base): Add forced_by_abi.
27142 (decide_is_variable_needed): Remove.
27143 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27144 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27145 (decide_is_symbol_needed): ... this one; handle symbols in general;
27146 always analyze virtuals; honnor forced_by_abi.
27147 (cgraph_finalize_function): Update.
27148 (varpool_finalize_decl): Update.
27149 (symbol_defined_and_needed): Remove.
27150 (analyze_functions): Update.
27151 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27152 output_refs, input_overwrite_node): Handle forced_by_abi.
27153 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27154 (address_taken_from_non_vtable_p): ... this one.
27155 (comdat_can_be_unshared_p_1): New function.
27156 (cgraph_comdat_can_be_unshared_p): Rename to ...
27157 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27158 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27159 (function_and_variable_visibility): Clear forced_by_abi as needed.
27160 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27161 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27162 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27163 * varpool.c (decide_is_variable_needed): Remove.
27165 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27167 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27168 (arm_option_override): Override arm_restrict_it where appropriate.
27169 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27170 * config/arm/arm.opt (mrestrict-it): New command-line option.
27171 * doc/invoke.texi: Document -mrestrict-it.
27173 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27175 * tsan.c (tsan_atomic_table): Make const.
27177 2013-06-05 Richard Biener <rguenther@suse.de>
27179 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27180 index associated with the tree we are supposed to replace.
27181 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27182 TREE_ASM_WRITTEN as zero for everything but SSA names.
27184 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27186 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27188 2013-06-04 Jan Hubicka <jh@suse.cz>
27190 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27191 (input_node, input_varpool_node): Handle correctly external same
27193 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27194 nodes at ltrans stage.
27196 2013-06-04 Jan Hubicka <jh@suse.cz>
27198 * ipa-inline.c (update_caller_keys): Fix availability test.
27199 (update_callee_keys): Likewise.
27200 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27201 to follow ELF standard.
27203 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27205 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27206 (mips64r5900el-*-elf*): New configurations.
27207 * config/mips/mips-cpus.def (r5900): New processor.
27208 * config/mips/mips-tables.opt: Regenerate.
27209 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27210 (mips_issue_rate): Handle PROCESSOR_R5900.
27211 (mips_reorg_process_insns): Force reorder mode for the R5900.
27212 * config/mips/mips.h (TARGET_MIPS5900): Define.
27213 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27215 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27217 * config/mips/mips.md (processor): Add r5900.
27218 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27220 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27222 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27223 into function to generate MOVI instruction.
27224 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27225 (aarch64_preferred_simd_mode): Turn into wrapper.
27226 (aarch64_output_scalar_simd_mov_immediate): New function.
27227 * config/aarch64/aarch64-protos.h: Add prototype for above.
27229 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27231 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27232 element_char member.
27233 (sizetochar): Return signed char.
27234 (aarch64_simd_valid_immediate): Remove elchar and other
27235 unnecessary variables.
27236 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27237 Calculate element_char as required.
27238 * config/aarch64/aarch64-protos.h: Update and move prototype
27239 for aarch64_output_simd_mov_immediate.
27240 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27243 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27245 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27246 information completed by aarch64_simd_valid_immediate.
27247 (aarch64_legitimate_constant_p): Update arguments.
27248 (aarch64_simd_valid_immediate): Work with struct rather than many
27250 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27251 (aarch64_simd_make_constant): Update arguments.
27252 (aarch64_output_simd_mov_immediate): Work with struct rather than
27253 many pointers. Output immediate directly rather than as operand.
27254 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27256 * config/aarch64/constraints.md (Dn): Update arguments.
27258 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27260 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27262 (aarch64_simd_immediate_valid_for_move): Remove.
27263 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27264 (aarch64_simd_make_constant): Update call.
27265 (aarch64_output_simd_mov_immediate): Update call.
27266 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27268 * config/aarch64/constraints.md (Dn): Update call.
27270 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27272 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27273 return type to bool for prototype.
27274 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27275 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27276 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27278 2013-06-04 Catherine Moore <clm@codesourcery.com>
27280 * config/mips/mips.opt (meva): New.
27281 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27282 (ASM_SPEC): Handle -meva.
27283 * doc/invoke.texi (meva): Document.
27285 2013-06-04 Alan Modra <amodra@gmail.com>
27287 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27290 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27292 * rtl.def: Add extra fourth optional field to define_cond_exec.
27293 * gensupport.c (process_one_cond_exec): Process attributes from
27295 * doc/md.texi: Document fourth field in define_cond_exec.
27297 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27299 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27300 out the processing order as in store_bit_field_1.
27302 2013-06-04 Jan Hubicka <jh@suse.cz>
27304 PR middle-end/57500
27305 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27306 non-VAR_DECL node if it does not exist yet.
27308 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27310 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27311 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27312 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27313 target_cpu_default setting.
27315 2013-06-03 Teresa Johnson <tejohnson@google.com>
27317 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27318 default to -fopt-info=optimized instead of all.
27319 * doc/invoke.texi: Ditto.
27320 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27321 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27322 (execute_vect_slp): Emit BB vectorization success under
27323 MSG_OPTIMIZED_LOCATIONS.
27324 * tree-vect-slp.c (vect_slp_transform_bb): Change
27325 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27326 * tree-vect-loop.c (vect_transform_loop): Ditto.
27328 2013-06-03 Jason Merrill <jason@redhat.com>
27331 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27332 Use TARGET_EXPR for C++.
27334 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27336 PR rtl-optimization/57268
27337 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27338 if DEBUG_INSN_P (insn).
27341 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27343 PR rtl-optimization/57268
27344 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27345 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27347 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27349 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27350 (ix86_avoid_lea_for_addr): Likewise.
27351 (exact_dependency_1): Likewise.
27352 (ix86_adjust_cost): Likewise.
27353 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27355 (do_reorder_for_imul): Fix typo, formatting and
27356 !reload_completed check removed.
27357 (ix86_sched_reorder): Fix typo and formatting.
27358 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27361 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27363 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27365 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27367 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27368 <STRING_CST>: Likewise.
27369 <VECTOR_CST>: Likewise.
27371 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27372 Mikael Morin <mikael@gcc.gnu.org>
27374 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27375 * config.in: Regenerated.
27376 * configure: Regenerated.
27378 2013-06-01 Jan Hubicka <jh@suse.cz>
27380 PR middle-end/57366
27381 * cgraphunit.c (compile): When weakref is not supported,
27382 set up transparent aliases before final output pass.
27383 * varasm.c (assemble_alias): Do not try to do it here.
27385 2013-06-01 Jan Hubicka <jh@suse.cz>
27387 PR middle-end/57467
27388 * passes.c (for_per_function): Skip unanalyzed functions.
27390 2013-06-01 Jan Hubicka <jh@suse.cz>
27392 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27393 (lto_symtab_merge_symbols_1): ... this one.
27394 (lto_symtab_merge_cgraph_nodes): Rename to ...
27395 (lto_symtab_merge_symbols): ... this one; simplify.
27396 * cgraph.c (same_body_aliases_done): Rename to ...
27397 (cpp_implicit_aliases_done): ... this one.
27398 (cgraph_create_function_alias): Update.
27399 (cgraph_same_body_alias): Update.
27400 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27401 (verify_edge_corresponds_to_fndecl): Simplify.
27402 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27403 (cgraph_node): Remove same_body_alias.
27404 (varpool_node): Remove alias_of and extra_name_alias.
27405 (same_body_aliases_done): Rename to ..
27406 (cpp_implicit_aliases_done): ... this one.
27407 (symtab_alias_ultimate_target): Add default parameter.
27408 (symtab_resolve_alias): New function.
27409 (fixup_same_cpp_alias_visibility): Declare.
27410 (cgraph_function_node): Add default parameter.
27411 (cgraph_node_asm_name): Likewise.
27412 (cgraph_function_or_thunk_node): Add default parameter; do
27413 not ICE when it is NULL.
27414 (varpool_variable_node): Likewise.
27415 * tree-emutls.c (create_emultls_var): Update.
27416 (ipa_lower_emutls): Update.
27417 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27418 (cgraph_reset_node): Reset alias info.
27419 (cgraph_finalize_function): Update.
27420 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27421 (analyze_function): Simplify.
27422 (cgraph_process_same_body_aliases): Simplify.
27423 (analyze_functions): Fixup same body aliases.
27424 (handle_alias_pairs): Simplify.
27425 (assemble_thunk): Update.
27426 (assemble_thunks_and_aliases): Update.
27427 (output_weakrefs): Rewrite.
27428 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27429 (lto_output_varpool_node): Likewise.
27430 (compute_ltrans_boundary): Remve assert.
27431 (get_alias_symbol): New functoin.
27432 (input_node): Rewrite alias handling.
27433 (input_varpool_node): Likewise.
27434 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27435 * ipa.c (process_references): Handle weakrefs correctly.
27436 (symtab_remove_unreachable_nodes): Likewise.
27437 * trans-mem.c (get_cg_data): Update.
27438 (ipa_tm_create_version_alias): Update.
27439 (ipa_tm_execute): Update.
27440 * symtab.c (dump_symtab_base): Dump aliases.
27441 (verify_symtab_base): Verify aliases.
27442 (symtab_node_availability): New function.
27443 (symtab_alias_ultimate_target): Simplify.
27444 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27445 handle all the fixup cases.
27446 (symtab_resolve_alias): New function.
27447 * passes.c (ipa_write_summaries): Handle weakrefs.
27448 * varpool.c (varpool_analyze_node): Simplify.
27449 (assemble_aliases): Update.
27450 (varpool_create_variable_alias): Simplify.
27451 (varpool_extra_name_alias): Simplify.
27452 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27453 (lto_symtab_merge_symbols): ... this one.
27455 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27458 PR rtl-optimization/57268
27459 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27460 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27462 2013-06-01 Tobias Burnus <burnus@net-b.de>
27464 Partially reverted:
27465 2013-05-31 Tobias Burnus <burnus@net-b.de>
27467 PR middle-end/57073
27468 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27471 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27473 PR rtl-optimization/57268
27474 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27475 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27477 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27479 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27480 unordered comparison operators when -fno-trapping-math is in effect
27482 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27483 and implement unordered comparison operators properly on the e500.
27485 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27487 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27488 for constant scalar integers.
27489 (simplify_relational_operation_1): Likewise.
27491 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27493 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27494 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27497 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27498 Igor Zamyatin <igor.zamyatin@intel.com>
27500 Silvermont (SLM) architecture performance tuning.
27501 * config/i386/i386.h (enum ix86_tune_indices): Add
27502 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27503 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27505 * config/i386/i386.c (initial_ix86_tune_features)
27506 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27507 (ix86_lea_outperforms): Handle Silvermont tuning.
27508 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27510 (ix86_use_lea_for_mov): Likewise.
27511 (ix86_avoid_lea_for_addr): Likewise.
27512 (ix86_lea_for_add_ok): Likewise.
27513 (exact_dependency_1): New function.
27514 (exact_store_load_dependency): Likewise.
27515 (ix86_adjust_cost): Handle Silvermont tuning.
27516 (do_reoder_for_imul): Likewise.
27517 (swap_top_of_ready_list): New function.
27518 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27520 * config/i386/i386.md (peepholes that split memory operand in fp
27523 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27525 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27526 Remove un-necessary braces.
27528 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27530 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27531 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27533 2013-05-31 Tobias Burnus <burnus@net-b.de>
27535 PR middle-end/57073
27536 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27538 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27541 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27542 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27543 * config/arm/neon.md (iordi3_neon): Remove.
27544 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27545 * config/arm/predicates.md (imm_for_neon_logic_operand):
27546 Move to earlier in the file.
27547 (neon_logic_op2): Likewise.
27548 (arm_iordi_operand_neon): New predicate.
27550 2013-05-31 Richard Biener <rguenther@suse.de>
27552 PR tree-optimization/57478
27553 PR tree-optimization/57453
27554 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27557 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27559 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27560 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27562 2013-05-30 Tobias Burnus <burnus@net-b.de>
27563 Thomas Koenig <tkoenig@gcc.gnu.org>
27565 PR middle-end/57073
27566 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27567 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27569 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27571 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27573 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27575 * target.def (register_usage_leveling_p): New hook.
27576 * targhooks.c (default_register_usage_leveling_p): New.
27577 * targhooks.h (default_register_usage_leveling_p): New prototype.
27578 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27579 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27580 * doc/tm.texi: Update.
27581 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27583 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27585 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27586 (*insv_reg<mode>): New define_insn.
27588 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27590 PR rtl-optimization/57439
27591 * postreload.c (move2add_valid_value_p): Check that we have
27592 a zero subreg_regno_offset when accessing the register in
27593 the requested mode.
27595 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27596 Igor Zamyatin <igor.zamyatin@intel.com>
27598 Silvermont (SLM) architecture pipeline model, tuning and
27600 * config.gcc: Add slm config options and target.
27602 * config/i386/slm.md: New.
27604 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27606 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27608 (ix86_target_macros_internal): Likewise.
27610 * config/i386/i386.c (slm_cost): New cost.
27611 (m_SLM): New macro flag.
27612 (initial_ix86_tune_features): Set m_SLM.
27613 (x86_accumulate_outgoing_args): Likewise.
27614 (x86_arch_always_fancy_math_387): Likewise.
27615 (processor_target_table): Add slm cost.
27616 (cpu_names): Add slm cpu name.
27617 (x86_option_override_internal): Set SLM ISA.
27618 (ix86_issue_rate): New case PROCESSOR_SLM.
27619 (ia32_multipass_dfa_lookahead): Likewise.
27620 (fold_builtin_cpu): Add slm.
27622 * config/i386/i386.h (TARGET_SLM): New target macro.
27623 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27624 (processor_type): Add PROCESSOR_SLM.
27626 * config/i386/i386.md (cpu): Add new value "slm".
27627 (slm.md): Include slm.md.
27629 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27630 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27632 * config/arm/arm-protos.h: Add and update function protos.
27633 * config/arm/arm.c (use_simple_return_p): New added.
27634 (thumb2_expand_return): Check simple_return flag.
27635 * config/arm/arm.md: Add simple_return and conditional simple_return.
27636 * config/arm/iterators.md: Add iterator for return and simple_return.
27638 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27640 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27641 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27642 (arm_emit_vfp_multi_reg_pop): Likewise.
27643 (thumb2_emit_ldrd_pop): Likewise.
27644 (arm_expand_epilogue): Add misc REG_CFA notes.
27645 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27647 2013-05-29 Lawrence Crowl <crowl@google.com>
27649 * config/arm/t-arm: Update for below.
27651 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27652 Change type to hash_table. Update dependent calls and types.
27654 * config/i386/t-cygming: Update for below.
27656 * config/i386/t-interix: Update for below.
27658 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27659 Change type to hash_table. Update dependent calls and types.
27660 (i386_find_on_wrapper_list::wrappers): Likewise.
27662 * config/ia64/t-ia64: Update for below.
27664 * config/ia64/ia64.c (bundle_state_table):
27665 Change type to hash_table. Update dependent calls and types.
27667 * config/mips/mips.c (mips_reorg_process_insns::htab):
27668 Change type to hash_table. Update dependent calls and types.
27670 * config/sol2.c (solaris_comdat_htab):
27671 Change type to hash_table. Update dependent calls and types.
27673 * config/t-sol2: Update for above.
27675 2013-05-29 Teresa Johnson <tejohnson@google.com>
27677 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27678 functions are not yet marked as defined.
27680 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27681 Pat Haugen <pthaugen@us.ibm.com>
27682 Peter Bergner <bergner@vnet.ibm.com>
27684 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27688 (vrotl<mode>3): Likewise.
27689 (vashl<mode>3): Likewise.
27690 (vlshr<mode>3): Likewise.
27691 (vashr<mode>3): Likewise.
27693 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27694 support for power8 V2DI builtins.
27696 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27697 power8 V2DI builtins.
27698 (vupkhsw): Likewise.
27699 (vupklsw): Likewise.
27700 (vaddudm): Likewise.
27701 (vminsd): Likewise.
27702 (vmaxsd): Likewise.
27703 (vminud): Likewise.
27704 (vmaxud): Likewise.
27705 (vpkudum): Likewise.
27706 (vpksdss): Likewise.
27707 (vpkudus): Likewise.
27708 (vpksdus): Likewise.
27713 (vsubudm): Likewise.
27714 (vcmpequd): Likewise.
27715 (vcmpgtsd): Likewise.
27716 (vcmpgtud): Likewise.
27717 (vcmpequd_p): Likewise.
27718 (vcmpgtsd_p): Likewise.
27719 (vcmpgtud_p): Likewise.
27720 (vupkhsw): Likewise.
27721 (vupklsw): Likewise.
27722 (vaddudm): Likewise.
27723 (vmaxsd): Likewise.
27724 (vmaxud): Likewise.
27725 (vminsd): Likewise.
27726 (vminud): Likewise.
27727 (vpksdss): Likewise.
27728 (vpksdus): Likewise.
27729 (vpkudum): Likewise.
27730 (vpkudus): Likewise.
27735 (vsubudm): Likewise.
27737 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27738 support for power8 V2DI instructions.
27740 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27741 power8 V2DI instructions. Combine pack and unpack insns to use an
27742 iterator for each mode. Check whether a particular mode supports
27743 Altivec instructions instead of just checking TARGET_ALTIVEC.
27744 (UNSPEC_VPKUWUM): Likewise.
27745 (UNSPEC_VPKSHSS): Likewise.
27746 (UNSPEC_VPKSWSS): Likewise.
27747 (UNSPEC_VPKUHUS): Likewise.
27748 (UNSPEC_VPKSHUS): Likewise.
27749 (UNSPEC_VPKUWUS): Likewise.
27750 (UNSPEC_VPKSWUS): Likewise.
27751 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27752 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27753 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27754 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27755 (UNSPEC_VUPKHSB): Likewise.
27756 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27757 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27758 (UNSPEC_VUPKHSH): Likewise.
27759 (UNSPEC_VUPKLSB): Likewise.
27760 (UNSPEC_VUPKLSH): Likewise.
27762 (VI_char): Likewise.
27763 (VI_scalar): Likewise.
27764 (VI_unit): Likewise.
27766 (VP_small): Likewise.
27767 (VP_small_lc): Likewise.
27768 (VU_char): Likewise.
27769 (add<mode>3): Likewise.
27770 (altivec_vaddcuw): Likewise.
27771 (altivec_vaddu<VI_char>s): Likewise.
27772 (altivec_vadds<VI_char>s): Likewise.
27773 (sub<mode>3): Likewise.
27774 (altivec_vsubcuw): Likewise.
27775 (altivec_vsubu<VI_char>s): Likewise.
27776 (altivec_vsubs<VI_char>s): Likewise.
27777 (altivec_vavgs<VI_char>): Likewise.
27778 (altivec_vcmpbfp): Likewise.
27779 (altivec_eq<mode>): Likewise.
27780 (altivec_gt<mode>): Likewise.
27781 (altivec_gtu<mode>): Likewise.
27782 (umax<mode>3): Likewise.
27783 (smax<mode>3): Likewise.
27784 (umin<mode>3): Likewise.
27785 (smin<mode>3): Likewise.
27786 (altivec_vpkuhum): Likewise.
27787 (altivec_vpkuwum): Likewise.
27788 (altivec_vpkshss): Likewise.
27789 (altivec_vpkswss): Likewise.
27790 (altivec_vpkuhus): Likewise.
27791 (altivec_vpkshus): Likewise.
27792 (altivec_vpkuwus): Likewise.
27793 (altivec_vpkswus): Likewise.
27794 (altivec_vpks<VI_char>ss): Likewise.
27795 (altivec_vpks<VI_char>us): Likewise.
27796 (altivec_vpku<VI_char>us): Likewise.
27797 (altivec_vpku<VI_char>um): Likewise.
27798 (altivec_vrl<VI_char>): Likewise.
27799 (altivec_vsl<VI_char>): Likewise.
27800 (altivec_vsr<VI_char>): Likewise.
27801 (altivec_vsra<VI_char>): Likewise.
27802 (altivec_vsldoi_<mode>): Likewise.
27803 (altivec_vupkhsb): Likewise.
27804 (altivec_vupkhs<VU_char>): Likewise.
27805 (altivec_vupkls<VU_char>): Likewise.
27806 (altivec_vupkhsh): Likewise.
27807 (altivec_vupklsb): Likewise.
27808 (altivec_vupklsh): Likewise.
27809 (altivec_vcmpequ<VI_char>_p): Likewise.
27810 (altivec_vcmpgts<VI_char>_p): Likewise.
27811 (altivec_vcmpgtu<VI_char>_p): Likewise.
27812 (abs<mode>2): Likewise.
27813 (vec_unpacks_hi_v16qi): Likewise.
27814 (vec_unpacks_hi_v8hi): Likewise.
27815 (vec_unpacks_lo_v16qi): Likewise.
27816 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27817 (vec_unpacks_lo_v8hi): Likewise.
27818 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27819 (vec_pack_trunc_v8h): Likewise.
27820 (vec_pack_trunc_v4si): Likewise.
27821 (vec_pack_trunc_<mode>): Likewise.
27823 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27825 (vec_vmaxsd): Likewise.
27826 (vec_vmaxud): Likewise.
27827 (vec_vminsd): Likewise.
27828 (vec_vminud): Likewise.
27829 (vec_vpksdss): Likewise.
27830 (vec_vpksdus): Likewise.
27831 (vec_vpkudum): Likewise.
27832 (vec_vpkudus): Likewise.
27833 (vec_vrld): Likewise.
27834 (vec_vsld): Likewise.
27835 (vec_vsrad): Likewise.
27836 (vec_vsrd): Likewise.
27837 (vec_vsubudm): Likewise.
27838 (vec_vupkhsw): Likewise.
27839 (vec_vupklsw): Likewise.
27841 2013-05-29 Jan Hubicka <jh@suse.cz>
27843 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27844 flags; reorder rest of fields in more consistent way.
27845 (varpool_node): Remove analyzed, finalized and alias.
27846 (cgraph_ndoe): Likewise.
27847 (symtab_alias_ultimate_target): New function.
27848 (cgraph_function_node): Move offline.
27849 (cgraph_reset_node): Declare.
27850 (cgraph_comdat_can_be_unshared_p): Remove.
27851 (varpool_remove_initializer): Declare.
27852 (varpool_first_defined_variable, varpool_next_defined_variable
27853 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27854 (cgraph_function_with_gimple_body_p): Update.
27855 (varpool_all_refs_explicit_p): Update.
27856 (symtab_alias_target): New function.
27857 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27858 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27859 (cgraph_function_or_thunk_node): Simplify using
27860 symtab_alias_ultimate_target.
27861 (varpool_variable_node): Likewise.
27862 * cgraph.c (cgraph_create_function_alias): Update.
27863 (cgraph_add_thunk): Update.
27864 (cgraph_remove_node): Update.
27865 (dump_cgraph_node): Do not dump removed flags.
27866 (cgraph_function_body_availability): Update.
27867 (cgraph_propagate_frequency): Update.
27868 (verify_cgraph_node): Check sanity of local flag.
27869 (cgraph_function_node): Move here from cgraph.h; revamp for
27870 cgraph_function_or_thunk_node.
27871 * lto-symtab.c (lto_varpool_replace_node): Update.
27872 (lto_symtab_resolve_can_prevail_p): Update.
27873 (lto_symtab_merge_cgraph_nodes): Update.
27874 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27875 propagate_constants_accross_call, devirtualization_time_bonus,
27876 ipcp_propagate_stage): Update.
27877 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27878 * ipa-inline-transform.c (clone_inlined_nodes,
27879 preserve_function_body_p): Update.
27880 * ipa-reference.c (propagate): Update.
27881 (write_node_summary_p): Update.
27882 * toplev.c (wrapup_global_declaration_2): Update.
27883 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27884 (analyze_function) ... this one.
27885 (cgraph_process_new_functions): Update.
27886 (cgraph_reset_node): Export.
27887 (cgraph_finalize_function): Update.
27888 (cgraph_add_new_function): Update.
27889 (process_function_and_variable_attributes): Update.
27890 (varpool_finalize_decl): Update.
27891 (symbol_finalized): Remove.
27892 (symbol_finalized_and_needed): Rename to ...
27893 (symbol_defined_and_needed): ... update.
27894 (cgraph_analyze_functions): Update.
27895 (handle_alias_pairs): Update.
27896 (mark_functions_to_output): Update.
27897 (assemble_thunk): Update.
27898 (output_in_order): Update.
27899 (output_weakrefs): Update.
27900 (finalize_compilation_unit): Update.
27901 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27902 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27903 input_node, input_varpool_node): Update.
27904 * dbxout.c (dbxout_expand_expr): Update.
27905 * cgraphclones.c (cgraph_clone_node): Update.
27906 (cgraph_copy_node_for_versioning): Update.
27907 (cgraph_materialize_clone): Update.
27908 (cgraph_materialize_all_clones): Update.
27909 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27910 propagate_pure_const, propagate_nothrow): Update.
27911 * lto-streamer-out.c (lto_output, write_symbol): Update.
27912 * ipa-utils.c (ipa_reverse_postorder): Update.
27913 * ipa-inline.c (can_inline_edge_p): Update.
27914 (update_caller_keys, ipa_inline): Update.
27915 * dwarf2out.c (reference_to_unused,
27916 premark_types_used_by_global_vars_helper): Update.
27917 * tree-eh.c (tree_could_trap_p): Update.
27918 * ipa-split.c (consider_split, execute_split_functions): Update.
27919 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27920 has_addr_references_p): Update; move ahead in file for better
27922 (process_references): Simplify.
27923 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27924 bodies are removed.
27925 (cgraph_comdat_can_be_unshared_p): Make static.
27926 (cgraph_externally_visible_p): Update.
27927 (varpool_externally_visible_p): Update.
27928 (function_and_variable_visibility): Update.
27929 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27930 ipa_tm_mark_force_output_node): Update.
27931 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27932 estimate_edge_devirt_benefit, inline_generate_summary,
27933 inline_write_summary): Update.
27934 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27935 * ipa-prop.c (ipa_compute_jump_functions): Update.
27936 (ipa_print_node_params, ipa_prop_read_section,
27937 ipa_update_after_lto_read, read_replacements_section): Update.
27938 * varasm.c (mark_decl_referenced): Update.
27939 (assemble_alias, dump_tm_clone_pairs): Update.
27940 * tree-inline.c (copy_bb): Update.
27941 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27943 * symtab.c (dump_symtab_base): Print new flags.
27944 (verify_symtab_base): Verify new flags.
27945 (symtab_alias_ultimate_target): New function.
27946 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27947 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27949 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27951 * i386.c (ix86_get_function_versions_dispatcher,
27952 ix86_generate_version_dispatcher_body): Update.
27953 (fold_builtin_cpu): Use varpool_add_new_variable.
27954 * varpool.c (varpool_remove_initializer): Break out from ...
27955 (varpool_remove_node): ... this one.
27956 (dump_varpool_node, varpool_node_for_asm,
27957 cgraph_variable_initializer_availability, varpool_analyze_node,
27958 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27959 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27962 2013-05-29 Jan Hubicka <jh@suse.cz>
27964 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27966 2013-05-29 Easwaran Raman <eraman@google.com>
27968 PR tree-optimization/57442
27969 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27970 when control exits the main loop.
27972 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27974 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27976 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27977 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27978 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27981 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27983 PR tree-optimization/57441
27984 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27985 Don't limit size of incr_vec to number of candidates.
27987 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27989 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27990 and mips16 directories.
27991 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27992 (MULTILIB_DIRNAMES): Ditto.
27993 (MULTILIB_EXCEPTIONS): Add new exceptions.
27994 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27995 (MULTILIB_DIRNAMES): Ditto.
27996 (MULTILIB_EXCEPTIONS): Add new exceptions.
27998 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27999 Marcus Shawcroft <marcus.shawcroft@arm.com>
28001 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28002 SYMBOL_TINY_ABSOLUTE.
28003 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28004 SYMBOL_TINY_ABSOLUTE.
28005 (aarch64_expand_mov_immediate): Likewise.
28006 (aarch64_classify_symbol): Likewise.
28007 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28008 Permit SYMBOL_TINY_ABSOLUTE.
28009 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28011 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28012 Marcus Shawcroft <marcus.shawcroft@arm.com>
28014 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28015 Refactor if/switch. Replace gcc_assert with if.
28017 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28019 * config/i386/i386.c (initial_ix86_tune_features): Enable
28020 FP Reassociation for AMD bdver1 and bdver2.
28022 2013-05-29 Martin Jambor <mjambor@suse.cz>
28024 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28025 and IMAGPART_EXPR do not occur within other handled_components.
28027 2013-05-29 Richard Biener <rguenther@suse.de>
28029 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28030 access on whether the use is in the BB we currently try to
28032 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28033 vectorize to vect_bb_slp_scalar_cost.
28035 2013-05-29 Richard Biener <rguenther@suse.de>
28037 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28038 computing scalar cost offsetted by stmts that are kept live
28040 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28041 for computation of scalar cost.
28043 2013-05-28 Steve Ellcey <sellcey@mips.com>
28045 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28047 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28049 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28050 array notation built-in reduction functions.
28051 * doc/passes.texi (Passes): Added documentation about changes done
28053 * doc/invoke.texi (C Dialect Options): Added documentation about
28054 the -fcilkplus flag.
28055 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28056 (BUILTINS_DEF): Depend on cilkplus.def.
28057 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28058 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28059 * cilkplus.def: New file.
28061 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28063 PR rtl-optimization/57439
28064 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28066 2013-05-28 Easwaran Raman <eraman@google.com>
28068 PR tree-optimization/57337
28069 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28070 (find_insert_point): Correctly identify the insertion point
28071 when two statements with the same UID is compared.
28073 2013-05-28 Richard Biener <rguenther@suse.de>
28075 PR tree-optimization/56787
28076 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28077 from the list of data references.
28078 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28080 (vect_analyze_loop_operations): Likewise.
28081 (vect_transform_loop): Remove clobbers.
28083 2013-05-28 Martin Jambor <mjambor@suse.cz>
28085 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28086 and REALPART_EXPRs have scalar type.
28088 2013-05-28 Richard Biener <rguenther@suse.de>
28090 PR tree-optimization/57411
28091 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28093 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28094 virtual operand propagation.
28096 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28098 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28099 destination register for bmasksi_vis.
28100 (vector_init_bshuffle): Likewise.
28101 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28103 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28105 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28106 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28107 mode if the instruction isn't available in the original mode.
28108 * config/sparc/sparc.opt (mfix-ut699): New option.
28109 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28110 (divdf3): Turn into expander.
28111 (divdf3_nofix): New insn.
28112 (divdf3_fix): Likewise.
28113 (divsf3): Disable if -mfix-ut699.
28114 (sqrtdf2): Turn into expander.
28115 (sqrtdf2_nofix): New insn.
28116 (sqrtdf2_fix): Likewise.
28117 (sqrtsf2): Disable if -mfix-ut699.
28119 2013-05-27 Richard Biener <rguenther@suse.de>
28121 PR middle-end/57412
28122 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28123 block for the new loop.
28125 2013-05-27 Richard Biener <rguenther@suse.de>
28127 PR tree-optimization/57343
28128 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28129 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28130 (number_of_iterations_cond): Do not build the folded tree.
28132 2013-05-27 Richard Biener <rguenther@suse.de>
28135 PR middle-end/57381
28136 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28137 OEP_CONSTANT_ADDRESS_OF retained.
28139 PR tree-optimization/57417
28140 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28141 for unchanged base.
28142 (set_ssa_val_to): Compare addresses using
28143 get_addr_base_and_unit_offset.
28145 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28147 PR rtl-optimization/56833
28148 * postreload.c (move2add_record_mode): New function.
28149 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28150 (move2add_use_add2_insn): Use move2add_record_sym_value.
28151 (move2add_use_add3_insn): Likewise.
28152 (reload_cse_move2add): Use move2add_valid_value_p and
28153 move2add_record_mode. Invalidate call-clobbered and REG_INC
28154 affected regs by setting reg_mode to VOIDmode.
28155 (move2add_note_store): Don't pretend the inside of a SUBREG is
28156 the actual destination. Invalidate single/leading registers by
28157 setting reg_mode to VOIDmode.
28158 Use move2add_record_sym_value, move2add_valid_value_p and
28159 move2add_record_mode.
28161 2013-05-27 Richard Biener <rguenther@suse.de>
28163 PR tree-optimization/57396
28164 * tree-affine.c (double_int_constant_multiple_p): Properly
28165 return false for val == 0 and div != 0.
28167 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28169 * config/mips/mips.h: Use #elif in preprocessor conditions.
28171 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28174 * config/mips/constraints.md (kl): New constraint.
28175 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28176 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28177 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28178 from LO for MIPS16.
28179 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28181 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28184 * config/mips/mips.c (mips_can_inline_p): New function.
28185 (TARGET_CAN_INLINE_P): Define.
28187 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28189 * sched-int.h (ds_t, dw_t): Make unsigned int.
28190 Fix documentation that describes how all the ds_t bits are used.
28191 Reserve the last bit for delayed-branch scheduling.
28192 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28193 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28194 (gen_dep_weak_1): Remove prototype.
28195 * sched-deps.c (get_dep_weak_1): Make static.
28196 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28197 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28198 * doc/tm.texi: Regenerate.
28199 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28201 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28204 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28206 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28207 Sandra Loosemore <sandra@codesourcery.com>
28209 * config.gcc (powerpc-*): Allow native for with-cpu.
28211 2013-05-24 Jeff Law <law@redhat.com>
28213 PR tree-optimization/57124
28214 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28215 conversion feeding a condition if the range has an overflow
28216 if -fstrict-overflow. Add warnings for when we do make the
28219 2013-05-24 Dehao Chen <dehao@google.com>
28221 * tree-cfg.c (locus_discrim_map): Fix the typo.
28222 (locus_discrim_hasher): Likewise.
28223 (locus_discrim_hasher::hash): Likewise.
28224 (locus_discrim_hasher::equal): Likewise.
28226 2013-05-24 Martin Jambor <mjambor@suse.cz>
28228 PR tree-optimization/57294
28229 * cgraph.h (ipa_record_stmt_references): Declare.
28230 * cgraphbuild.c (ipa_record_stmt_references): New function.
28231 (build_cgraph_edges): Use ipa_record_stmt_references.
28232 (rebuild_cgraph_edges): Likewise.
28233 (cgraph_rebuild_references): Likewise.
28234 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28235 associated with the old statement and build references from the
28236 newly built statements.
28237 * ipa-ref.c (ipa_remove_stmt_references): New function.
28238 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28240 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28242 * lra-constraints.c (emit_spill_move): Use smaller mode for
28244 (check_and_process_move): Consider mem-reg moves for secondary
28246 (curr_insn_transform): Don't lose insns emitted before for
28247 secondary memory moves.
28248 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28249 reg set up in the current insn.
28251 2013-05-24 Dehao Chen <dehao@google.com>
28253 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28255 (locus_descrim_hasher::equal): Likewise.
28256 (build_gimple_cfg): New discriminator assignment algorithm.
28257 (make_edges): Likewise.
28258 (next_discriminator_for_locus): Likewise.
28259 (same_line_p): Likewise.
28260 (assign_discriminators): Likewise.
28261 (make_cond_expr_edges): Likewise.
28262 (make_gimple_switch_edges): Likewise.
28263 (make_goto_expr_edges): Likewise.
28264 (make_gimple_asm_edges): Likewise.
28266 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28268 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28269 X format specifier to only display bottom 16 bits.
28270 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28271 immediate to match for operand 2, since it will be masked.
28273 2013-05-24 Richard Biener <rguenther@suse.de>
28275 PR tree-optimization/57287
28276 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28277 all SSA names that occur in abnormal PHIs.
28279 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28282 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28283 that index is not negative.
28285 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28287 PR rtl-optimization/55177
28288 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28289 (simplify_byte_swapping_operation): New.
28290 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28291 (simplify_relational_operation_1): Deal with BSWAP.
28293 2013-05-23 Richard Henderson <rth@redhat.com>
28296 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28297 (ix86_reorg): Call it.
28299 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28302 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28303 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28304 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28306 2013-05-23 Christian Bruel <christian.bruel@st.com>
28309 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28311 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28312 Marcus Shawcroft <marcus.shawcroft@arm.com>
28314 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28315 * config/aarch64/constraints.md (Usa): Remove.
28316 * doc/md.texi (AArch64 Usa): Remove.
28318 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28319 Marcus Shawcroft <marcus.shawcroft@arm.com>
28321 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28322 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28323 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28324 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28326 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28328 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28329 instruction (AdvSIMD).
28330 * config/aarch64/aarch64-builtins.c
28331 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28332 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28334 2013-05-23 Martin Jambor <mjambor@suse.cz>
28336 PR middle-end/57347
28337 * tree.h (contains_bitfld_component_ref_p): Declare.
28338 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28339 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28341 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28342 not access a bit-field. Assert all final offsets are byte-aligned.
28344 2013-05-23 Richard Biener <rguenther@suse.de>
28346 PR tree-optimization/57380
28347 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28348 least one invariant or re-used load.
28349 * passes.c (init_optimization_passes): Move pass_phiprop before
28352 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28354 * config/aarch64/aarch64-simd.md
28355 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28357 2013-05-23 Richard Biener <rguenther@suse.de>
28359 PR middle-end/57381
28360 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28361 OEP_CONSTANT_ADDRESS_OF retained.
28363 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28365 PR middle-end/57344
28366 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28367 don't lower unit. Handle unit not being always BITS_PER_WORD.
28369 2013-05-23 Richard Biener <rguenther@suse.de>
28371 PR rtl-optimization/57341
28372 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28373 instead of true_dependence.
28375 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28377 * bb-reorder.c (branch_threshold): Make const.
28378 (exec_threshold): Ditto.
28380 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28381 Pat Haugen <pthaugen@us.ibm.com>
28382 Peter Bergner <bergner@vnet.ibm.com>
28384 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28385 documentation for the power8 crypto builtins.
28387 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28389 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28390 macros for defining power8 builtin functions.
28391 (BU_P8V_AV_2): Likewise.
28392 (BU_P8V_AV_P): Likewise.
28393 (BU_P8V_VSX_1): Likewise.
28394 (BU_P8V_OVERLOAD_1): Likewise.
28395 (BU_P8V_OVERLOAD_2): Likewise.
28396 (BU_CRYPTO_1): Likewise.
28397 (BU_CRYPTO_2): Likewise.
28398 (BU_CRYPTO_3): Likewise.
28399 (BU_CRYPTO_OVERLOAD_1): Likewise.
28400 (BU_CRYPTO_OVERLOAD_2): Likewise.
28401 (XSCVSPDP): Fix typo, point to the correct instruction.
28402 (VCIPHER): Add power8 crypto builtins.
28403 (VCIPHERLAST): Likewise.
28404 (VNCIPHER): Likewise.
28405 (VNCIPHERLAST): Likewise.
28406 (VPMSUMB): Likewise.
28407 (VPMSUMH): Likewise.
28408 (VPMSUMW): Likewise.
28409 (VPERMXOR_V2DI): Likewise.
28410 (VPERMXOR_V4SI: Likewise.
28411 (VPERMXOR_V8HI: Likewise.
28412 (VPERMXOR_V16QI: Likewise.
28413 (VSHASIGMAW): Likewise.
28414 (VSHASIGMAD): Likewise.
28415 (VPMSUM): Likewise.
28416 (VPERMXOR): Likewise.
28417 (VSHASIGMA): Likewise.
28419 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28420 __CRYPTO__ if the crypto instructions are available.
28421 (altivec_overloaded_builtins): Add support for overloaded power8
28424 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28425 support for power8 crypto builtins.
28426 (builtin_function_type): Likewise.
28427 (altivec_init_builtins): Add support for builtins that take vector
28428 long long (V2DI) arguments.
28430 * config/rs6000/crypto.md: New file, define power8 crypto
28433 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28434 Pat Haugen <pthaugen@us.ibm.com>
28435 Peter Bergner <bergner@vnet.ibm.com>
28437 * doc/invoke.texi (Option Summary): Add power8 options.
28438 (RS/6000 and PowerPC Options): Likewise.
28440 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28441 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28442 wm, wn, wr documentation.
28444 * config/rs6000/constraints.md (wm): New constraint for VSX
28445 registers if direct move instructions are enabled.
28446 (wn): New constraint for no registers.
28447 (wq): New constraint for quad word even GPR registers.
28448 (wr): New constraint if 64-bit instructions are enabled.
28449 (wv): New constraint if power8 vector instructions are enabled.
28450 (wQ): New constraint for quad word memory locations.
28452 * config/rs6000/predicates.md (const_0_to_15_operand): New
28453 constraint for 0..15 for crypto instructions.
28454 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28455 as GPR and floating point registers.
28456 (int_reg_operand): New predicate to match only GPR registers.
28457 (base_reg_operand): New predicate to match base registers.
28458 (quad_int_reg_operand): New predicate to match even GPR registers
28459 for quad memory operations.
28460 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28461 operations in both GPR and VSX registers.
28462 (quad_memory_operand): New predicate for quad memory operations.
28463 (reg_or_indexed_operand): New predicate for direct move support.
28465 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28466 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28467 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28468 (POWERPC_MASKS): Add power8 options.
28469 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28472 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28473 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28475 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28476 (-mpower8-fusion): New power8 options.
28477 (-mpower8-fusion-sign): Likewise.
28478 (-mpower8-vector): Likewise.
28479 (-mcrypto): Likewise.
28480 (-mdirect-move): Likewise.
28481 (-mquad-memory): Likewise.
28483 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28484 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28486 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28487 (rs6000_debug_vector_unit): Add p8_vector.
28488 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28489 definitions. Also print fusion state.
28490 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28491 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28492 (rs6000_option_override_internal): Add support for power8.
28493 (rs6000_common_init_builtins): Add debugging for skipped builtins
28494 if -mdebug=builtin.
28495 (rs6000_adjust_cost): Add power8 support.
28496 (rs6000_issue_rate): Likewise.
28497 (insn_must_be_first_in_group): Likewise.
28498 (insn_must_be_last_in_group): Likewise.
28499 (force_new_group): Likewise.
28500 (rs6000_register_move_cost): Likewise.
28501 (rs6000_opt_masks): Likewise.
28503 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28504 power8 capable assembler, default to power7 options.
28505 (TARGET_DIRECT_MOVE): Likewise.
28506 (TARGET_CRYPTO): Likewise.
28507 (TARGET_P8_VECTOR): Likewise.
28508 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28509 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28510 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28511 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28512 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28513 (TARGET_XSCVDPSPN): Likewise.
28514 (TARGET_XSCVSPDPN): Likewsie.
28515 (TARGET_SYNC_HI_QI): Likewise.
28516 (TARGET_SYNC_TI): Likewise.
28517 (MASK_CRYPTO): Likewise.
28518 (MASK_DIRECT_MOVE): Likewise.
28519 (MASK_P8_FUSION): Likewise.
28520 (MASK_P8_VECTOR): Likewise.
28521 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28522 temporary used by some of the direct move instructions to get two FP
28523 temporary registers does not force creation of a stack frame.
28524 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28525 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28526 that any VSX registers are tieable, even if they are also an
28527 Altivec vector mode.
28528 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28529 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28530 (RS6000_BTM_CRYPTO): Likewise.
28531 (RS6000_BTM_COMMON): Likewise.
28533 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28534 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28535 (enum rs6000_vector): Add power8 vector support.
28537 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28541 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28542 (any_sibcall_could_use_r3): this and handle indirect calls.
28543 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28545 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28547 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28549 2013-05-22 Richard Biener <rguenther@suse.de>
28551 PR middle-end/57349
28552 * profile.c (branch_prob): Do not split blocks that are
28553 abnormally receiving from ECF_RETURNS_TWICE functions.
28555 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28557 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28558 address mode. Move pointer mode initialization to the same place.
28560 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28562 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28563 while it has any effect.
28565 2013-05-21 Easwaran Raman <eraman@google.com>
28567 PR tree-optimization/57322
28568 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28569 UID of the statement added to the BB to be 1.
28571 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28573 PR tree-optimization/57331
28574 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28575 of conversion from pointer type to integral type with integer.
28577 2013-05-21 Martin Jambor <mjambor@suse.cz>
28580 * ipa-prop.c (ipa_read_node_info): Process param_used and
28581 controlled_uses in the same order as when writing.
28583 2013-05-21 Magnus Granberg <baldrick@free.fr>
28586 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28588 2013-05-21 Richard Biener <rguenther@suse.de>
28590 PR tree-optimization/57318
28591 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28592 estimate stmts with side-effects as likely eliminated.
28594 2013-05-21 Richard Biener <rguenther@suse.de>
28596 PR tree-optimization/57330
28597 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28598 preserve the call stmts fntype.
28600 2013-05-21 Richard Biener <rguenther@suse.de>
28602 PR tree-optimization/57303
28603 * tree-ssa-sink.c (statement_sink_location): Improve killing
28604 stmt detection and properly handle self-assignments.
28606 2013-05-21 Christian Bruel <christian.bruel@st.com>
28608 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28609 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28610 registers. Set register size out of the PARALLEL loop.
28612 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28615 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28616 (*fmasf4, *fmasf4_media): New insns.
28618 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28620 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28621 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28622 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28623 (mips_idiv_insns): Update the comments to say that the returned
28624 instruction counts are in units of BASE_INSN_LENGTH.
28625 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28626 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28627 using 2 rather than 4 as the length of indirect MIPS16 and
28628 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28629 length of a NOP. Don't divide MIPS16 lengths by 2.
28630 (mips16_split_long_branches): Assume a branch is long if the
28631 length is greater than 4 rather than 8.
28632 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28633 rather than multiplying them by 2. Multiply instruction counts
28634 by BASE_INSN_LENGTH rather than 4.
28635 (*jump_mips16, tls_get_tp_mips16_<mode>)
28636 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28638 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28640 * config/mips/mips.md (extended_mips16): Remove branch case.
28641 (length): Remove duplicated extended_mips16 test.
28643 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28645 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28647 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28649 * recog.h (Recog_data): Rename to...
28650 (recog_data_d): ...this.
28651 (recog_data): Update accordingly.
28652 * recog.c (recog_data): Likewise.
28653 * reload.c (save_recog_data): Likewise.
28654 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28655 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28657 2013-05-17 Julian Brown <julian@codesourcery.com>
28659 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28660 found in a REG_EQUAL note, invalidate it.
28662 2013-05-17 Easwaran Raman <eraman@google.com>
28664 * tree-ssa-reassoc.c (find_insert_point): New function.
28665 (insert_stmt_after): Likewise.
28666 (get_def_stmt): Likewise.
28667 (ensure_ops_are_available): Likewise.
28668 (not_dominated_by): Likewise.
28669 (rewrite_expr_tree): Do not move statements beyond what is
28670 necessary. Remove call to swap_ops_for_binary_stmt...
28671 (reassociate_bb): ... and move it here.
28672 (build_and_add_sum): Assign UIDs for new statements.
28673 (linearize_expr): Likewise.
28674 (do_reassoc): Renumber gimple statement UIDs.
28676 2013-05-17 Jan Hubicka <jh@suse.cz>
28678 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28680 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28681 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28683 (output_weakrefs): Update.
28685 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28686 Martin Jambor <mjambor@suse.cz>
28688 PR middle-end/57276
28689 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28690 value that corresponds to the given aggval is found in values vector.
28692 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28694 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28695 sse, sse2, sse3, ssse3 and sse4a flags to options.
28697 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28699 * gengtype-state.c: (s_expr_writer): New class, to handle
28700 prettifying of output layout of s-expressions.
28701 (state_writer): New class, to write out gtype.state.
28702 (state_written_type_count): Move this variable into member data of
28704 (s_expr_writer::s_expr_writer): New code: constructor for new class
28705 (state_writer::state_writer(): ditto
28706 (s_expr_writer::write_new_line): New function
28707 (s_expr_writer::write_any_indent): ditto
28708 (s_expr_writer::begin_s_expr): ditto
28709 (s_expr_writer::end_s_expr): ditto
28710 (write_state_fileloc): convert to method of state_writer...
28711 (state_writer:: write_state_fileloc): ...and use methods of
28712 s_expr_writer to write indentation into the gtype.state output file
28713 to visually represent the hierarchical structure of the list
28715 (write_state_fields): ditto, renaming to...
28716 (state_writer::write_state_fields)
28717 (write_state_a_string): ditto, renaming to...
28718 (state_writer::write_state_a_string)
28719 (write_state_string_option): ditto, renaming to...
28720 (state_writer::write_state_string_option)
28721 (write_state_type_option): ditto, renaming to...
28722 (state_writer::write_state_type_option)
28723 (write_state_nested_option): ditto, renaming to...
28724 (state_writer::write_state_nested_option)
28725 (write_state_option): ditto, renaming to...
28726 (state_writer::write_state_option)
28727 (write_state_options): ditto, renaming to...
28728 (state_writer::write_state_options)
28729 (write_state_lang_bitmap): ditto, renaming to...
28730 (state_writer::write_state_lang_bitmap)
28731 (write_state_version): ditto, renaming to...
28732 (state_writer::write_state_version)
28733 (write_state_scalar_type): ditto, renaming to...
28734 (state_writer::write_state_scalar_type)
28735 (write_state_string_type): ditto, renaming to...
28736 (state_writer::write_state_string_type)
28737 (write_state_undefined_type): ditto, renaming to...
28738 (state_writer::write_state_undefined_type)
28739 (write_state_struct_union_type): ditto, renaming to...
28740 (state_writer::write_state_struct_union_type)
28741 (write_state_struct_type): ditto, renaming to...
28742 (state_writer::write_state_struct_type)
28743 (write_state_user_struct_type): ditto, renaming to...
28744 (state_writer::write_state_user_struct_type)
28745 (write_state_lang_struct_type): ditto, renaming to...
28746 (state_writer::write_state_lang_struct_type)
28747 (write_state_param_struct_type): ditto, renaming to...
28748 (state_writer::write_state_param_struct_type)
28749 (write_state_pointer_type): ditto, renaming to...
28750 (state_writer::write_state_pointer_type)
28751 (write_state_array_type): ditto, renaming to...
28752 (state_writer::write_state_array_type)
28753 (write_state_gc_used): ditto, renaming to...
28754 (state_writer::write_state_gc_used)
28755 (write_state_common_type_content): ditto, renaming to...
28756 (state_writer::write_state_common_type_content)
28757 (write_state_type): ditto, renaming to...
28758 (state_writer::write_state_type)
28759 (write_state_pair_list): ditto, renaming to...
28760 (state_writer::write_state_pair_list)
28761 (write_state_pair): ditto, renaming to...
28762 (state_writer::write_state_pair)
28763 (write_state_typedefs): ditto, renaming to...
28764 (state_writer::write_state_typedefs)
28765 (write_state_structures): ditto, renaming to...
28766 (state_writer::write_state_structures)
28767 (write_state_param_structs): ditto, renaming to...
28768 (state_writer::write_state_param_structs)
28769 (write_state_variables): ditto, renaming to...
28770 (state_writer::write_state_variables)
28771 (write_state_srcdir): ditto, renaming to...
28772 (state_writer::write_state_srcdir)
28773 (write_state_files_list): ditto, renaming to...
28774 (state_writer::write_state_files_list)
28775 (write_state_languages): ditto, renaming to...
28776 (state_writer::write_state_languages)
28777 (write_state): create a state_writer instance and use it when
28778 writing out the state file
28780 2013-05-17 Mike Stump <mikestump@comcast.net>
28782 PR rtl-optimization/57304
28783 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28784 accessing DF_REF_REAL_LOC.
28786 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28788 PR rtl-optimization/57281
28789 PR rtl-optimization/57300
28790 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28791 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28792 what the other splitter did if the registers are dead.
28794 2013-05-17 Richard Biener <rguenther@suse.de>
28796 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28799 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28801 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28804 2013-05-17 Marek Polacek <polacek@redhat.com>
28806 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28807 length when doing non-zero store of storing '\0' to '\0'.
28809 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28811 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28812 vect_external_def oprnd1 with loop_vinfo, try to emit
28813 optional cast, negation and and stmts on the loop preheader
28814 edge instead of into the pattern def seq.
28816 PR tree-optimization/57051
28817 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28818 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28820 2013-05-16 Nick Clifton <nickc@redhat.com>
28822 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28823 (rl78_is_naked_func): New function.
28824 (rl78_expand_prologue): Skip prologue generation for naked functions.
28825 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28826 * doc/extend.texi (naked): Add RL78 to the list of processors
28827 that supports this attribute.
28829 2013-05-16 Jeff Law <law@redhat.com>
28831 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28833 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28835 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28836 cache parameters using detect_caches_amd also for CYRIX,
28837 NSC and TM2 signatures.
28839 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28840 Dzianis Kahanovich <mahatma@eu.by>
28844 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28845 VIA/Centaur processors and determine their cache parameters
28846 using detect_caches_amd.
28848 2013-05-16 Teresa Johnson <tejohnson@google.com>
28850 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28851 (rtl_verify_edges): New function.
28852 (rtl_verify_bb_insns): Ditto.
28853 (rtl_verify_bb_pointers): Ditto.
28854 (rtl_verify_bb_insn_chain): Ditto.
28855 (rtl_verify_fallthru): Ditto.
28856 (rtl_verify_bb_layout): Ditto.
28857 (rtl_verify_flow_info_1): Outline checks into new functions.
28858 (rtl_verify_flow_info): Ditto.
28860 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28862 * cfghooks.c (copy_bbs): Add update_dominance argument.
28863 * cfghooks.h (copy_bbs): Update prototype.
28864 * tree-cfg.c (gimple_duplicate_sese_region):
28865 Add update_dominance argument.
28866 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28867 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28868 gimple_duplicate_sese_region call.
28869 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28870 Update copy_bbs call.
28871 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28872 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28874 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28876 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28877 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28878 vect_recog_rotate_pattern.
28879 (vect_recog_rotate_pattern): New function.
28881 2013-05-16 Jason Merrill <jason@redhat.com>
28883 * Makefile.in (LLINKER): New variable.
28884 (mostlyclean): Remove link mutex.
28885 * configure.ac: Handle --enable-link-mutex.
28886 * lock-and-run.sh: New script.
28888 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28891 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28894 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28896 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28898 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28900 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28901 * config/arm/arm.c (next_consecutive_mem): New function.
28902 (gen_movmem_ldrd_strd): Likewise.
28903 * config/arm/arm.md (movmemqi): Update condition and code.
28904 (unaligned_loaddi, unaligned_storedi): New patterns.
28906 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28908 * config.gcc: Obsolete *-*-solaris2.9*.
28909 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28911 2013-05-16 Richard Biener <rguenther@suse.de>
28913 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28914 earlier, after GRAPHITE transforms and IV canonicalization.
28916 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28918 * omp-low.c (extract_omp_for_data): For collapsed loops,
28919 if at least one of the loops is known at compile time to
28920 iterate zero times, set count to 0.
28921 (expand_omp_regimplify_p): New function.
28922 (expand_omp_for_generic): For collapsed loops, if at least
28923 one of the loops isn't known to iterate at least once,
28924 add runtime check with setting count to 0.
28925 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28926 For unsigned types if it isn't known at compile time that
28927 the loop will iterate at least once, add runtime check to bypass
28928 the whole loop if initial condition isn't true.
28930 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28932 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28934 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28936 PR middle-end/57286
28937 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28938 transformations to avoid an infinite loop.
28940 2013-05-16 Marek Polacek <polacek@redhat.com>
28942 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28944 2013-05-15 Leif Ekblad <leif@rdos.net>
28946 * config/i386/i386.c (ix86_decompose_address): Use
28947 DEFAULT_TLS_SEG_REG to access TLS segment register.
28948 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28949 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28950 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28952 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28955 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28956 sibling calls to functions that would normally be lazily bound,
28957 unless $gp is call-clobbered.
28959 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28961 * config/i386/i386.c (ix86_option_override_internal): Update
28962 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28963 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28964 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28965 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28967 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28969 2013-05-15 Andreas Schwab <schwab@suse.de>
28971 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28972 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28975 2013-05-15 Teresa Johnson <tejohnson@google.com>
28977 * loop-unroll.c (report_unroll_peel): Check decision before
28978 emitting unroll/peel message.
28980 2013-05-15 Teresa Johnson <tejohnson@google.com>
28982 * function.h (has_bb_partition): New rtl_data flag.
28983 (bb_reorder_complete): Ditto.
28984 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28985 instead of flag_reorder_blocks_and_partition.
28986 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28987 with some enhancements.
28988 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28989 * bb-reorder.c (connect_traces): Check for has_bb_partition
28990 instead of flag_reorder_blocks_and_partition.
28991 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28992 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28993 verify_hot_cold_block_grouping.
28994 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28996 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28999 * config/arm/predicates.md (call_insn_operand): New predicate.
29000 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29001 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29002 if insn is not a tail call.
29003 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29005 * config/arm/arm.h (enum reg_class): New caller save register class.
29006 (REG_CLASS_NAMES): Likewise.
29007 (REG_CLASS_CONTENTS): Likewise.
29008 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29011 2013-05-15 Richard Biener <rguenther@suse.de>
29013 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29014 of MSG_OPTIMIZED_LOCATIONS.
29015 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29016 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29018 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29019 of MSG_OPTIMIZED_LOCATIONS.
29020 (execute_vect_slp): Likewise.
29021 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29022 (vect_create_cond_for_alias_checks): Likewise.
29023 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29024 (vect_recog_widen_mult_pattern): Likewise.
29025 (vect_recog_widen_sum_pattern): Likewise.
29026 (vect_recog_over_widening_pattern): Likewise.
29027 (vect_recog_widen_shift_pattern): Likewise.
29028 (vect_recog_vector_vector_shift_pattern): Likewise.
29029 (vect_recog_divmod_pattern): Likewise.
29030 (vect_recog_mixed_size_cond_pattern): Likewise.
29031 (vect_recog_bool_pattern): Likewise.
29032 (vect_pattern_recog_1): Likewise.
29034 2013-05-15 Martin Jambor <mjambor@suse.cz>
29036 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29037 non-functions to builtin_unreachable.
29038 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29039 correct when new direct edges were discovered.
29041 2013-05-15 Martin Jambor <mjambor@suse.cz>
29043 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29044 header, print symbol order instead of node uid, print more information
29045 about indirect edge targets.
29046 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29048 (ipa_make_edge_direct_to_target): Likewise.
29049 (remove_described_reference): Likewise.
29050 (propagate_controlled_uses): Likewise.
29051 (ipa_print_node_params): Also print symbol order.
29052 (ipcp_transform_function): Print symbol order instead of node uids.
29053 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29054 (cgraph_get_create_real_symbol_node): Likewise.
29055 * ipa-cp.c (print_lattice): Likewise.
29056 (print_all_lattices): Likewise.
29057 (determine_versionability): Likewise.
29058 (initialize_node_lattices): Likewise.
29059 (estimate_local_effects): Likewise.
29060 (update_profiling_info): Likewise.
29061 (create_specialized_node): Likewise.
29062 (perhaps_add_new_callers): Likewise.
29063 (decide_about_value): Likewise.
29064 (decide_whether_version_node): Likewise.
29065 (identify_dead_nodes): Likewise.
29066 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29067 (dump_inline_summary): Likewise.
29068 (estimate_node_size_and_time): Likewise.
29069 (inline_analyze_function): Likewise.
29070 * ipa-inline.c (report_inline_failed_reason): Likewise.
29071 (want_early_inline_function_p): Likewise.
29072 (edge_badness): Likewise.
29073 (update_edge_key): Likewise.
29074 (inline_small_functions): Likewise. Add dumping of order to two other
29076 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29077 instead of node uids.
29078 (propagate_pure_const): Likewise.
29079 (propagate_pure_const): Likewise.
29080 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29081 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29082 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29084 * tree-pretty-print.c (dump_function_header): Likewise.
29085 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29086 Print symbol order instead of node uids.
29088 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29090 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29091 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29093 2013-05-15 Richard Biener <rguenther@suse.de>
29095 PR tree-optimization/57275
29096 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29097 return value for fail to do runtime alias checks for gather loads.
29099 2013-05-15 Jan Hubicka <jh@suse.cz>
29103 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29104 weakrefs are not external.
29105 (lto_symtab_merge_decls): Fix thinko when dealing with
29106 non-lto_symtab decls.
29107 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29108 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29109 * varpool.c (dump_varpool_node): Dump more flags.
29111 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29113 * config/i386/i386.c (processor_alias_table): Add instruction
29114 FSGSBASE for AMD bdver3 architecture.
29116 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29118 * tree.c (warn_deprecated_use): Print file:line using locus color.
29119 * diagnostic.c (diagnostic_report_current_module): Print file:line
29120 and file:line:column using locus color.
29122 2013-05-14 Mike Stump <mikestump@comcast.net>
29124 * gdbinit.in: Add __null.
29126 2013-05-14 Mike Stump <mikestump@comcast.net>
29128 * recog.h: Rename struct recog_data to Recog_data.
29129 * recog.c: Likewise.
29130 * reload.c (can_reload_into): Likewise.
29131 * config/picochip/picochip.c: Likewise.
29133 2013-05-14 Mike Stump <mikestump@comcast.net>
29135 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29137 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29139 * resource.h (struct resources): Remove unch_memory member.
29140 (CLEAR_RESOURCE): Don't clear unch_memory.
29141 * resource.c (mark_referenced_resources): Don't set it.
29142 (mark_set_resources): Likewise.
29143 (mark_target_live_regs): Don't clear it.
29144 (init_resource_info): Likewise.
29145 * reorg.c (resource_conflicts_p): Don't compare it.
29146 (redundant_insn): Don't set it.
29148 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29150 * emit-rtl.c (next_label): Remove unused function.
29151 (skip_consecutive_labels, link_cc0_insns): Move to ...
29152 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29153 only place where these functions are used, and make them static.
29155 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29157 * fold-const.c (fold_negate_expr): Handle vectors.
29158 (fold_truth_not_expr): Make it static.
29159 (fold_invert_truthvalue): New static function.
29160 (invert_truthvalue_loc): Handle vectors. Do not call
29161 fold_truth_not_expr directly.
29162 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29163 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29164 (fold_comparison): Handle vector constants.
29165 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29166 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29167 * tree.h (fold_truth_not_expr): Remove declaration.
29169 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29171 * config/aarch64/aarch64-simd.md
29172 (aarch64_vcond_internal<mode>): Rename to...
29173 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29174 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29175 float modes. Clarify all iterator modes.
29176 (vcond<mode><mode>): Use new name for vcond expanders.
29177 (vcond<v_cmp_result><mode>): Likewise.
29178 (vcondu<mode><mode>: Likewise.
29179 * config/aarch64/iterators.md (VDQF_COND): New.
29181 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29184 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29185 variable for the shift amount. Check that we shift by non-negative
29188 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29191 * config/arm/arm.h (EPILOGUE_USES): Only return true
29192 for LR_REGNUM after epilogue_completed.
29194 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29196 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29197 is error_mark_node.
29199 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29202 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29203 and Solaris 11+/x86 with gld.
29204 * configure: Regenerate.
29206 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29208 * expmed.c (expand_shift_1): Canonicalize rotates by
29209 constant bitsize / 2 to bitsize - 1.
29210 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29211 case ROTATERT>: Likewise.
29214 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29216 * config/i386/i386.md (rotateinv): New code attr.
29217 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29218 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29219 roll $31, %eax, etc.
29221 2013-05-14 Richard Biener <rguenther@suse.de>
29223 PR middle-end/57235
29224 * tree-eh.c (sink_clobbers): Give up for successors with
29225 multiple predecessors and no virtual uses.
29227 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29229 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29230 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29232 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29234 PR middle-end/57251
29235 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29236 the case when both op0 and op1 have VOIDmode.
29238 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29240 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29241 in multiply-accumulate mode.
29243 2013-05-13 Guozhi Wei <carrot@google.com>
29245 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29247 2013-05-13 Kai Tietz <ktietz@redhat.com>
29250 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29251 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29252 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29253 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29254 (ix86_expand_prologue): Likewise.
29255 (ix86_expand_split_stack_prologue): Likewise.
29256 (legitimate_pic_address_disp_p): Likewise.
29257 (legitimize_pic_address): Likewise.
29258 (legitimize_tls_address): Likewise.
29259 (legitimize_pe_coff_symbol): Likewise.
29260 (output_pic_addr_const): Likewise.
29261 (construct_plt_address): Likewise.
29262 (ix86_expand_call): Likewise.
29263 (x86_output_mi_thunk): Likewise.
29264 (x86_function_profiler): Likewise.
29266 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29268 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29269 similar switch cases.
29270 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29271 (aarch64_simd_mov_to_<mode>low): Delete.
29272 (aarch64_simd_mov_to_<mode>high): Delete.
29273 (move_lo_quad_<mode>): Add w<-r alternative.
29274 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29275 (aarch64_simd_mov_from_*): Update type attribute.
29276 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29279 2013-05-13 Jan Hubicka <jh@suse.cz>
29281 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29282 * config/i386/i386.c (ix86_compute_frame_layout,
29283 ix86_expand_epilogue, emit_i387_cw_initialization,
29284 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29285 ix86_local_alignment): Fix use of size/speed predicates.
29287 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29289 PR tree-optimization/45216
29290 PR tree-optimization/57157
29291 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29292 the (-Y) & (B - 1) variant if OP is |.
29293 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29294 return shifted. Use (-op1) & (prec - 1) as other_amount
29295 instead of prec - op1.
29297 2013-05-13 Martin Jambor <mjambor@suse.cz>
29299 PR middle-end/42371
29300 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29301 (ipa_constant_data): New type.
29302 (ipa_jump_func): Use ipa_constant_data to hold information about
29303 constant jump functions.
29304 (ipa_get_jf_constant): Adjust to jump function type changes.
29305 (ipa_get_jf_constant_rdesc): New function.
29306 (ipa_param_descriptor): New field controlled_uses.
29307 (ipa_get_controlled_uses): New function.
29308 (ipa_set_controlled_uses): Likewise.
29309 * ipa-ref.h (ipa_find_reference): Declare.
29310 * ipa-prop.c (ipa_cst_ref_desc): New type.
29311 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29313 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29314 New parameter cs. Adjust all callers.
29315 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29316 (remove_described_reference): New function.
29317 (jfunc_rdesc_usable): Likewise.
29318 (try_make_edge_direct_simple_call): Decrement controlled use count,
29319 attempt to remove reference if it hits zero.
29320 (combine_controlled_uses_counters): New function.
29321 (propagate_controlled_uses): Likewise.
29322 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29323 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29324 (ipa_print_node_params): Print described use counter.
29325 (ipa_write_jump_function): Adjust to jump function type changes.
29326 (ipa_read_jump_function): New parameter CS, pass it to
29327 ipa_set_jf_constant. Adjust caller.
29328 (ipa_write_node_info): Stream controlled use count
29329 (ipa_read_node_info): Likewise.
29330 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29332 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29333 count. Remove cloning-added reference if it reaches zero.
29334 * ipa-ref.c (ipa_find_reference): New function.
29336 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29338 * config/i386/i386.c (processor_target_table): Modified default
29339 alignment values for AMD BD and BT architectures.
29341 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29343 * tree-vect-generic.c (uniform_vector_p): Move ...
29344 * tree.c (uniform_vector_p): ... here.
29345 * tree.h (uniform_vector_p): Declare it.
29346 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29349 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29351 PR tree-optimization/57230
29352 * tree-ssa-strlen.c (handle_char_store): Record length for
29353 array store from STRING_CST.
29355 PR tree-optimization/57230
29356 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29359 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29361 * config/epiphany/epiphany.c (epiphany_init): Check size of
29362 NUM_MODES_FOR_MODE_SWITCHING.
29363 (epiphany_expand_prologue):
29364 Remove CONFIG_REGNUM initial value handling code.
29365 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29366 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29367 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29368 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29369 Don't return 1 for FP_MODE_NONE.
29370 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29371 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29372 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29373 * config/epiphany/epiphany.md (save_config): New pattern.
29375 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29377 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29379 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29381 * config/i386/i386.md (memory): Handle sseishft1.
29382 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29383 (*vec_extractv2di_1): Ditto.
29385 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29387 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29390 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29392 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29393 Add mthumb/march=armv7-a multilib.
29394 Add mthumb/march=armv7-r multilib.
29395 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29397 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29399 * config/v850/t-rtems: Add more multilibs.
29401 2013-05-10 Richard Biener <rguenther@suse.de>
29403 PR tree-optimization/57214
29404 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29405 not propagate from SSA names that occur in abnormal PHI nodes.
29407 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29409 * stor-layout.c (element_precision): New function.
29410 * machmode.h (element_precision): Declare it.
29411 * tree.c (build_minus_one_cst): New function.
29412 (element_precision): Likewise.
29413 * tree.h (build_minus_one_cst): Declare new function.
29414 (element_precision): Likewise.
29415 * fold-const.c (operand_equal_p): Use element_precision.
29416 (fold_binary_loc): Handle vector types.
29417 * convert.c (convert_to_integer): Use element_precision.
29418 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29421 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29423 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29424 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29425 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29426 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29427 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29428 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29429 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29430 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29431 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29432 (Uuw8): New constraints.
29433 (Usb4): Move into alphabetical order.
29434 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29435 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29436 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29437 previously unnamed patterns.
29438 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29439 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29440 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29441 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29442 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29443 of specific lengths.
29445 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29447 * config/i386/i386.md (rotateinv): New code attr.
29448 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29449 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29450 roll $31, %eax, etc.
29452 PR tree-optimization/45216
29453 PR tree-optimization/57157
29454 * tree-ssa-forwprop.c (simplify_rotate): New function.
29455 (ssa_forward_propagate_and_combine): Call it.
29457 2013-05-10 Richard Biener <rguenther@suse.de>
29459 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29460 disable peeling when we version for aliasing.
29461 (vector_alignment_reachable_p): Honor explicit user alignment.
29462 (vect_supportable_dr_alignment): Likewise.
29463 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29464 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29465 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29466 then peeling to arrange for the cost-model check to come first.
29468 2013-05-10 Alan Modra <amodra@gmail.com>
29470 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29471 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29472 * configure: Regenerate.
29474 2013-05-10 Alan Modra <amodra@gmail.com>
29477 * varasm.c (default_elf_select_section): Move !DECL_P check..
29478 (get_named_section): ..to here before calling get_section_name.
29480 (default_section_type_flags): Add DECL_P check.
29481 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29482 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29484 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29486 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29487 When using gen_stack_adjust_str with a register offset, add a
29488 REG_FRAME_RELATED_EXPR note.
29490 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29492 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29493 (*vec_extractv4si_zext_mem): Ditto.
29494 (*vec_extractv2di): Add 0->x and x->x alternatives.
29495 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29496 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29498 2013-05-09 Jason Merrill <jason@redhat.com>
29500 N3639 C++1y VLA support
29501 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29504 * tree.c (build_constructor_va): New.
29505 * tree.h: Declare it.
29507 2013-05-09 Martin Jambor <mjambor@suse.cz>
29510 * gimple-fold.c (canonicalize_constructor_val): Call
29511 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29513 2013-05-09 Jan Hubicka <jh@suse.cz>
29514 Richard Biener <rguenther@suse.de>
29517 * symtab.c (symtab_make_decl_local): Do not add private names.
29519 2013-05-09 Jan Hubicka <jh@suse.cz>
29522 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29523 (unlink_from_assembler_name_hash): Likewise.
29524 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29525 symtab_unregister_node, symtab_initialize_asm_name_hash,
29526 change_decl_assembler_name): Update.
29528 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29530 * config/aarch64/aarch64.md: New movtf split.
29531 (*movtf_aarch64): Update.
29532 (aarch64_movdi_tilow): Handle TF modes and rename to
29533 aarch64_movdi_<mode>low.
29534 (aarch64_movdi_tihigh): Handle TF modes and rename to
29535 aarch64_movdi_<mode>high
29536 (aarch64_movtihigh_di): Handle TF modes and rename to
29537 aarch64_mov<mode>high_di
29538 (aarch64_movtilow_di): Handle TF modes and rename to
29539 aarch64_mov<mode>low_di
29540 (aarch64_movtilow_tilow): Remove spurious whitespace.
29541 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29543 (aarch64_print_operand): Update.
29545 2013-05-09 Alan Modra <amodra@gmail.com>
29547 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29549 * configure: Regenerate.
29551 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29553 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29554 splitter preparation statements.
29555 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29556 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29559 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29561 * gimple-ssa-strength-reduction.c (count_candidates): Change
29562 return value to int.
29563 (analyze_candidates_and_replace): Change type of length to int.
29565 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29567 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29568 (*vec_extract<mode>): Use VI12_128 mode iterator.
29569 (*vec_extract<mode>_mem): Ditto.
29570 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29573 2013-05-08 Diego Novillo <dnovillo@google.com>
29578 2012-08-17 Diego Novillo <dnovillo@google.com>
29581 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29582 * config.in: Regenerate.
29583 * configure: Regenerate.
29584 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29586 2013-05-08 Jan Hubicka <jh@suse.cz>
29589 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29590 * cgraph.h (symtab_node_base): Add unique_name.
29591 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29592 input_overwrite_node, input_varpool_node): Stream unique_name.
29593 * cgraphclones.c (cgraph_create_virtual_clone,
29594 cgraph_function_versioning): Set unique_name.
29595 * ipa.c (function_and_variable_visibility): Set unique_name.
29597 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29599 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29600 (alloc_cand_and_find_basis): Restrict conditional candidate
29601 processing to CAND_MULTs.
29603 2013-05-08 Jan Hubicka <jh@suse.cz>
29606 lto-symtab.c (lto_symtab_symbol_p): New function.
29607 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29608 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29609 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29610 Skip static symbols.
29612 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29614 PR tree-optimization/57200
29615 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29616 Only call inform if the preceding warning_at returns true.
29618 2013-05-07 Han Shen <shenhan@google.com>
29620 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29621 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29622 * common.opt (fstack-protector-strong): New option.
29623 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29624 * doc/invoke.texi (Optimization Options): Document
29625 "-fstack-protector-strong".
29626 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29628 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29630 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29632 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29634 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29635 it is not lhs of the insn.
29636 (setup_reg_equiv): Remove insn having equiv memory which it is not
29638 * lra-constraints.c (process_address): Try to improve generation
29639 code for address base + disp.
29640 (lra_constraints): Make correct the code for checking insn setting
29641 up backward equivalence. Remove insn only if it is in the init
29643 * lra-eliminations.c (update_reg_eliminate): Change return value.
29644 (lra_eliminate): Use the result.
29646 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29648 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29649 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29650 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29651 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29652 register target operands.
29653 (*vec_extractv8hi_sse2): New pattern.
29654 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29655 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29656 (*vec_extract<mode>_mem): New insn and split pattern.
29658 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29660 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29661 (TARGET_ASAN_SHADOW_OFFSET): Define.
29662 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29663 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29665 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29667 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29668 (incr_vec_index): Return -1 if increment not found.
29669 (create_add_on_incoming_edge): Assert if increment not found.
29670 (record_increment): Limit number of increments recorded.
29671 (all_phi_incrs_profitable): Return false if an increment not found.
29672 (replace_profitable_candidates): Don't process increments that were
29674 (analyze_candidates_and_replace): Limit size of incr_vec.
29676 2013-05-07 Richard Biener <rguenther@suse.de>
29678 * calls.c (special_function_p): setjmp-like functions are leaf.
29679 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29680 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29682 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29684 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29685 (aarch64_simd_mov<mode>): New expander.
29686 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29687 (aarch64_simd_mov_to_<mode>high): Likewise.
29688 (aarch64_simd_mov_from_<mode>low): Likewise.
29689 (aarch64_simd_mov_from_<mode>high): Likewise.
29690 (aarch64_dup_lane<mode>): Update.
29691 (aarch64_dup_lanedi): New instruction pattern.
29692 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29693 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29695 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29697 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29698 (replace_mult_candidate): Remove unnecessary argument; remove
29699 unnecessary parameter from call to introduce_cast_before_cand.
29700 (replace_unconditional_candidate): Remove unnecessary parameter
29701 from call to replace_mult_candidate.
29702 (replace_conditional_candidate): Likewise.
29703 (insert_initializers): Use make_temp_ssa_name.
29704 (introduce_cast_before_cand): Remove unnecessary argument; use
29705 make_temp_ssa_name.
29706 (replace_one_candidate): Remove unnecessary argument; remove
29707 unnecessary parameter from calls to introduce_cast_before_cand.
29708 (replace_profitable_candidates): Remove unnecessary parameters
29709 from calls to replace_one_candidate.
29711 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29713 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29714 phi def as possibly hiding a basis for a CAND_ADD whose operands
29715 have been commuted in the analysis.
29716 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29718 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29720 * config/aarch64/aarch64.md
29721 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29722 shift value between 0-4.
29724 2013-05-07 Richard Biener <rguenther@suse.de>
29726 * double-int.h (rshift): New overload.
29727 * double-int.c (rshift): New function.
29728 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29729 (create_reference_ops_from_ref): Remove.
29730 (vn_reference_insert): Use shared ops for constructing the
29731 reference and copy it.
29733 2013-05-07 Richard Biener <rguenther@suse.de>
29735 PR middle-end/57190
29736 * tree-eh.c (sink_clobbers): Properly propagate
29737 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29739 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29741 PR tree-optimization/57149
29742 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29743 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29744 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29745 uninit_undefined_value_p instead of ssa_undefined_value_p.
29748 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29749 for modifier == EXPAND_INITIALIZER.
29751 2013-05-07 Anton Blanchard <anton@samba.org>
29753 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29754 for powerpc64 little endian.
29755 * configure: Regenerate.
29757 2013-05-06 Graham Stott <grahams@btinternet.com>
29759 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29760 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29761 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29762 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29764 2013-05-06 Graham Stott <grahams@btinternet.com>
29766 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29767 codes which allow non-lvalues.
29769 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29771 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29772 components are all 1s.
29773 (integer_minus_onep): New function.
29774 * tree.h (integer_minus_onep): Declare it.
29775 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29776 integer_minus_onep instead of integer_all_onesp.
29778 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29781 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29782 variations of these patterns.
29784 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29786 * config/i386/i386.md (isa): Add x64_sse4 member.
29787 (enabled): Handle x64_sse4.
29788 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29789 instruction for 64bit SSE4_1 targets. Update insn attributes.
29790 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29791 instruction for SSE4_1 targets. Update insn attributes.
29792 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29793 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29794 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29796 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29797 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29798 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29800 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29803 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29805 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29807 * final.c (do_assembler_dialects): Don't handle curly braces and
29808 vertical bar escaped by % as dialect delimiters.
29809 (output_asm_insn): Print curly braces and vertical bar if escaped
29810 by % and ASSEMBLER_DIALECT defined.
29811 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29812 * doc/tm.texi: Regenerated.
29814 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29816 * config/mips/mips.c: Include tree-pass.h.
29817 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29818 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29819 (pass_mips_machine_reorg2): New machine specific pass.
29820 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29821 (mips_option_override): Register the new pass.
29822 * rtl.h (cleanup_barriers): Remove prototype.
29823 (dbr_schedule): Likewise.
29824 * jump.c (cleanup_barriers): Make static.
29825 * reorg.c (dbr_schedule): Likewise.
29827 2013-05-06 Richard Biener <rguenther@suse.de>
29829 PR tree-optimization/57185
29830 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29831 SSA names properly.
29833 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29836 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29837 between "first_arg" and "insn", not "last" and "insn".
29839 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29841 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29842 (find_candidates_in_block): Re-enable slsr_process_phi.
29843 (create_phi_basis): Fix double counting of candidate adjustment.
29845 2013-05-06 Richard Biener <rguenther@suse.de>
29847 PR middle-end/57147
29848 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29849 the edge is also fallthru, preserve it and just clear the
29851 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29852 also complex, preserve that and just clear the fallthru flag.
29853 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29854 update virtual operands.
29856 2013-05-06 Alan Modra <amodra@gmail.com>
29858 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29859 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29860 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29861 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29862 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29863 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29865 2013-05-06 Alan Modra <amodra@gmail.com>
29867 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29868 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29869 (DEFAULT_ASM_ENDIAN): Define.
29870 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29871 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29872 Update -K PIC clause from sysv4.h.
29873 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29874 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29876 2013-05-06 Alan Modra <amodra@gmail.com>
29878 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29879 twice for little-endian.
29880 (ashrdi3_no_power, ashrdi3): Support little-endian.
29882 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29885 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29886 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29888 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29889 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29890 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29893 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29894 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29896 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29897 * config/pa/pa.opt: Make mbig-switch a no-op.
29898 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29899 (CASE_VECTOR_MODE): Always return SImode.
29900 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29901 for the !TARGET_BIG_SWITCH case.
29902 * config/pa/pa-linux.h: Likewise.
29903 * config/pa/pa-openbsd.h: Likewise.
29904 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29905 * config/pa/pa.md (short_jump): Remove define_insn.
29906 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29907 (casesi0): Remove define_insn.
29908 (type): Remove btable_branch.
29909 (pa_combine_type): Likewise.
29910 (in_nullified_branch_delay): Likewise.
29911 (in_call_delay): Likewise.
29912 (define_delay): Likewise.
29913 (define_insn_reservation "Z3"): Likewise.
29914 (define_insn_reservation "Z4"): Likewise.
29915 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29916 (pa_adjust_insn_length): Remove adjustment for btable branches.
29917 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29920 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29922 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29923 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29924 Add m->r,x alternatives.
29925 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29926 splitters using SWI48x mode iterator.
29927 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29928 TARGET_64BIT. Add m->x alternative.
29929 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29930 Add o->x alternative. Enable for TARGET_SSE.
29931 (sse_storeq): Remove expander.
29932 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29933 with memory input operand.
29934 (*vec_extractv2di_1 splitter): New.
29935 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29936 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29938 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29940 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29941 (INT_LOWPART): Delete.
29942 (extract_MB): Adjust.
29943 (extract_ME): Adjust.
29944 (print_operand): Adjust.
29946 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29948 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29949 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29950 (reg_or_logical_cint_operand, easy_fp_constant,
29951 logical_const_operand): Delete "CONST_DOUBLE" case.
29952 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29953 "HOST_BITS_PER_WIDE_INT == 64" test.
29954 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29955 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29956 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29957 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29959 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29960 CONST_DOUBLE DImode/VOIDmode case.
29961 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29962 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29963 CONST_DOUBLE VOIDmode case.
29964 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29965 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29966 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29967 Delete CONST_DOUBLE case.
29968 (splitters for mov FMOVE64 const_double): Delete
29969 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29970 "HOST_BITS_PER_WIDE_INT >= 64" test.
29971 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29973 (mov DI const_double): Delete.
29975 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29977 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29978 on op shows all bits zero in mode of a lowpart subreg, return zero.
29980 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29983 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29984 to save TFmode registers and DImode to save TImode registers for
29985 caller save operations.
29986 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29987 mark being partially clobbered since they only use the first
29990 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29991 and TDmode only use the upper 64-bits of each VSX register.
29993 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29995 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29996 (find_candidates_in_block): Disable slsr_process_phi.
29998 2013-05-03 Guozhi Wei <carrot@google.com>
30000 * coverage.c (coverage_obj_init): Move the construction of gcov
30002 (build_init_ctor): ... here.
30004 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30006 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30007 (slsr_cand_d): Redefine def_phi.
30008 (stride_status, phi_adjust_status, count_phis_status): New enums.
30009 (find_phi_def): New.
30010 (find_basis_for_base_expr): New.
30011 (find_basis_for_candidate): Handle hidden bases.
30012 (alloc_cand_and_find_basis): Handle phi candidates.
30013 (slsr_process_phi): New.
30014 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30015 (create_mul_imm_cand): Likewise.
30016 (create_add_ssa_cand): Exclude phi base candidates.
30017 (create_add_imm_cand): Likewise.
30018 (slsr_process_cast): Likewise.
30019 (slsr_process_copy): Likewise.
30020 (find_candidates_in_block): Handle phi candidates.
30021 (dump_candidate): Likewise.
30022 (unconditional_cands): Delete.
30023 (unconditional_cands_with_known_stride_p): Delete.
30024 (phi_dependent_cand_p): New.
30025 (cand_increment): Handle phi-dependent candidates.
30026 (replace_dependent): Delete.
30027 (replace_mult_candidate): New.
30028 (replace_unconditional_candidate): New.
30029 (incr_vec_index): Move to avoid forward reference.
30030 (create_add_on_incoming_edge): New.
30031 (create_phi_basis): New.
30032 (replace_dependents): Delete.
30033 (replace_conditional_candidate): New.
30034 (phi_add_costs): New.
30035 (replace_uncond_cands_and_profitable_phis): New.
30036 (record_increment): Handle phi adjustments.
30037 (record_phi_increments): New.
30038 (record_increments): Handle phi adjustments.
30039 (phi_incr_cost): New.
30040 (lowest_cost_path): Handle phis.
30041 (total_savings): Likewise.
30042 (analyze_increments): Likewise.
30043 (ncd_with_phi): New.
30044 (ncd_of_cand_and_phis): New.
30045 (nearest_common_dominator_for_cands): Handle phi increments.
30046 (all_phi_incrs_profitable): New.
30047 (replace_profitable_candidates): Handle phi-dependent candidates.
30048 (analyze_candidates_and_replace): Likewise.
30050 2013-05-03 Teresa Johnson <tejohnson@google.com>
30053 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30054 do not exceed REG_BR_PROB_BASE.
30056 2013-05-03 Jeff Law <law@redhat.com>
30058 PR tree-optimization/57144
30059 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30060 operand of the condition will bit into the new type when eliminating
30061 a cast feeding a condition.
30063 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30065 PR rtl-optimization/57130
30066 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30067 of COMPARE as in_code to the recursive call if needed.
30069 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30071 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30072 (enabled): Handle new members.
30073 * config/i386/sse.md (*vec_concatv2si): Merge from
30074 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30075 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30077 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30079 PR tree-optimization/57027
30080 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30081 for fnms opportunity, check we got the prerequisite kind
30082 of tree / gimple before using accessor functions.
30084 2013-05-03 Richard Biener <rguenther@suse.de>
30086 * double-int.h (lshift): New overload without precision
30087 and arith argument.
30088 (operator *=, operator +=, operator -=): Move ...
30089 * double-int.c (operator *=, operator +=, operator -=): ... here
30090 and implement more efficiently.
30091 (mul_double_with_sign): Remove.
30092 (lshift_double): Adjust to take unsinged shift argument, push
30093 dispatching code to callers.
30094 (mul_double_wide_with_sign): Add early out for callers that
30095 are not interested in high parts or overflow.
30096 (lshift): New function.
30097 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30098 dispatch code here.
30099 (lrotate, rrotate): Use logical shifts.
30100 * expr.c (get_inner_reference): Use lshift.
30101 * fixed-value.c (do_fixed_divide): Likewise.
30102 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30103 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30104 (indirect_refs_may_alias_p): Likewise.
30105 (stmt_kills_ref_p_1): Likewise.
30107 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30109 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30111 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30113 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30114 scalar form of FABD instruction.
30116 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30118 * lra-constraints.c (process_alt_operands): Add checking alt
30119 number to choose the best alternative.
30121 2013-05-02 Richard Biener <rguenther@suse.de>
30123 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30124 bitmap and its handling.
30125 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30127 2013-05-02 Richard Biener <rguenther@suse.de>
30129 PR middle-end/57140
30130 * tree-inline.c (copy_loops): Properly handle removed loops.
30131 (copy_cfg_body): Mark destination loops for fixup if source
30132 loops needed fixup.
30134 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30137 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30138 generating simple_return for naked functions.
30140 2013-05-02 Martin Jambor <mjambor@suse.cz>
30142 PR middle-end/56988
30143 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30144 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30146 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30147 ipa_agg_replacement_value structures.
30148 (known_aggs_to_agg_replacement_list): Likewise.
30149 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30150 (read_agg_replacement_chain): Likewise.
30151 (ipcp_transform_function): Also check that by_ref flags match.
30153 2013-05-02 Richard Biener <rguenther@suse.de>
30155 * graphds.h (struct graph): Add obstack member.
30156 * graphds.c (new_graph): Initialize obstack and allocate
30158 (add_edge): Allocate edge from the obstack.
30159 (free_graph): Free the obstack instead of all edges and vertices.
30161 2013-05-02 Teresa Johnson <tejohnson@google.com>
30163 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30165 * cfg.c (update_bb_profile_for_threading): Ditto.
30166 * tree-inline.c (copy_bb): Ditto.
30167 (copy_edges_for_bb): Ditto.
30168 (initialize_cfun): Ditto.
30169 (copy_cfg_body): Ditto.
30170 (expand_call_inline): Ditto.
30171 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30172 (estimate_node_size_and_time): Ditto.
30173 (inline_merge_summary): Ditto.
30174 * cgraphclones.c (cgraph_clone_edge): Ditto.
30175 (cgraph_clone_node): Ditto.
30176 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30177 (compute_trg_info): Ditto.
30179 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30181 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30182 S reg when fp attribute set.
30183 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30185 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30187 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30189 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30190 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30191 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30193 2013-05-02 Richard Biener <rguenther@suse.de>
30195 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30196 (struct instantiate_cache_entry): New type.
30197 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30198 (struct instantiate_cache_type): New type.
30199 (set_instantiated_value, get_instantiated_value): Remove.
30200 (get_instantiated_value_entry): New function.
30201 (instantiate_scev_name): Use the new cache and adjust.
30202 (instantiate_scev_poly): Adjust.
30203 (instantiate_scev_binary): Likewise.
30204 (instantiate_array_ref): Likewise.
30205 (instantiate_scev_convert): Likewise.
30206 (instantiate_scev_not): Likewise.
30207 (instantiate_scev_3): Likewise.
30208 (instantiate_scev_2): Likewise.
30209 (instantiate_scev_r): Likewise.
30210 (instantiate_scev): Likewise.
30211 (resolve_mixers): Likewise.
30213 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30216 * lra-constraints.c (best_small_class_operands_num): Remove.
30217 (process_alt_operands): Remove small_class_operands_num. Take
30218 small classes operands into losers and only if the operand is not
30219 matched. Modify debugging output.
30220 (curr_insn_transform): Remove best_small_class_operands_num.
30223 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30225 * config/aarch64/aarch64-builtins.c
30226 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30227 * config/aarch64/aarch64-simd-builtins.def
30228 (reduc_splus_): Add new modes.
30229 (reduc_uplus_): New.
30230 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30231 (reduc_uplus_v4sf): Likewise.
30232 (reduc_splus_v4sf): Likewise.
30233 (aarch64_addv<mode>): Likewise.
30234 (reduc_uplus_<mode>): Likewise.
30235 (reduc_splus_<mode>): Likewise.
30236 (aarch64_addvv2di): Likewise.
30237 (reduc_uplus_v2di): Likewise.
30238 (reduc_splus_v2di): Likewise.
30239 (aarch64_addvv2si): Likewise.
30240 (reduc_uplus_v2si): Likewise.
30241 (reduc_splus_v2si): Likewise.
30242 (reduc_<sur>plus_<mode>): New.
30243 (reduc_<sur>plus_v2di): Likewise.
30244 (reduc_<sur>plus_v2si): Likewise.
30245 (reduc_<sur>plus_v4sf): Likewise.
30246 (aarch64_addpv4sf): Likewise.
30247 * config/aarch64/arm_neon.h
30248 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30249 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30250 add UNSPEC_SADDV, UNSPEC_UADDV.
30252 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30254 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30256 * config/aarch64/arm_neon.h
30257 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30259 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30261 * config/aarch64/aarch64-builtins
30262 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30264 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30266 * config/aarch64/aarch64-simd-builtins.def
30267 (reduc_smax_): New.
30268 (reduc_smin_): Likewise.
30269 (reduc_umax_): Likewise.
30270 (reduc_umin_): Likewise.
30271 (reduc_smax_nan_): Likewise.
30272 (reduc_smin_nan_): Likewise.
30275 (smax): Update for V2SF, V4SF and V2DF modes.
30278 (smin_nan): Likewise.
30279 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30280 (<su><maxmin><mode>3): ...This, refactor.
30281 (s<maxmin><mode>3): New.
30282 (<maxmin_uns><mode>3): Likewise.
30283 (reduc_<maxmin_uns>_<mode>): Refactor.
30284 (reduc_<maxmin_uns>_v4sf): Likewise.
30285 (reduc_<maxmin_uns>_v2si): Likewise.
30286 (aarch64_<fmaxmin><mode>: Remove.
30287 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30289 (vmin<q>_f<32,64>): Likewise.
30290 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30292 (su): Add mappings for smax, smin, umax, umin.
30294 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30295 (FMAXMIN): Rename as...
30296 (FMAXMIN_UNS): ...This.
30298 (fmaxminv): Likewise.
30299 (fmaxmin): Likewise.
30301 (maxmin_uns_op): Likewise.
30303 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30305 * config/aarch64/arm_neon.h
30306 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30307 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30308 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30310 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30312 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30313 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30315 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30317 * config/aarch64/aarch64-simd.md
30318 (vcond<mode>_internal): Handle special cases for constant masks.
30319 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30320 (vcondu<mode><mode>): Likewise.
30321 (vcond<v_cmp_result><mode>): New.
30323 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30325 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30326 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30327 * config/aarch64/aarch64-simd-builtins.def
30328 (cmeq): Update to BUILTIN_VALLDI.
30333 * config/aarch64/arm_neon.h
30334 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30335 to builtins or C as appropriate.
30337 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30339 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30341 (cmhi): Rename to...
30343 * config/aarch64/aarch64-simd.md
30344 (simd_mode): Add SF.
30345 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30346 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30347 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30348 (cstore<mode>_neg): ...This.
30349 * config/aarch64/iterators.md
30351 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30352 (COMPARISONS): New.
30353 (UCOMPARISONS): Likewise.
30354 (optab): Add missing comparisons.
30360 (VCMP_S): Likewise.
30361 (VCMP_U): Likewise.
30362 (V_cmp_result): Add DF, SF modes.
30363 (v_cmp_result): Likewise.
30365 (vmtype): Likewise.
30366 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30368 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30370 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30371 define_insn to define_insn_and_split.
30372 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30373 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30374 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30375 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30376 (thumb2_negscc): Likewise.
30378 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30380 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30382 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30384 * config/arm/thumb2.md: Remove trailing whitespaces.
30386 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30388 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30389 Use gen_int_mode rather than GEN_INT.
30391 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30393 * value-prof.c (stream_in_histogram_value): Remove the strayed
30396 2013-04-30 Richard Biener <rguenther@suse.de>
30398 PR middle-end/57122
30399 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30401 2013-04-30 Richard Biener <rguenther@suse.de>
30403 PR middle-end/57107
30404 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30406 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30408 PR rtl-optimization/56957
30409 PR rtl-optimization/57105
30410 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30411 variable. Use just INSN_UID for determining whether an insn
30412 should be only disconnected from the insn stream.
30413 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30415 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30417 PR tree-optimization/57104
30418 * tsan.c (instrument_expr): Don't instrument accesses to
30419 DECL_HARD_REGISTER VAR_DECLs.
30421 2013-04-30 Richard Biener <rguenther@suse.de>
30423 * function.h (loops_for_fn): New inline function.
30424 (set_loops_for_fn): Likewise.
30425 * cfgloop.h (place_new_loop): Add struct function parameter.
30426 (get_loop): Likewise.
30427 (get_loops): Likewise.
30428 (number_of_loops): Likewise.
30429 (fel_next): Adjust.
30430 (fel_init): Likewise.
30431 * cfg.c (get_loop_copy): Adjust.
30432 * cfgloop.c (flow_loops_dump): Likewise.
30433 (record_loop_exits): Likewise.
30434 (verify_loop_structure): Likewise.
30435 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30436 (estimate_reg_pressure_cost): Likewise.
30437 (mark_loop_exit_edges): Likewise.
30438 * cfgloopmanip.c (place_new_loop): Likewise.
30439 (add_loop): Likewise.
30440 (duplicate_loop): Likewise.
30441 * graph.c (draw_cfg_nodes): Likewise.
30442 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30443 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30444 (extract_affine_chrec): Likewise.
30445 (build_scop_iteration_domain): Likewise.
30446 * graphite.c (graphite_initialize): Likewise.
30447 * ira-build.c (create_loop_tree_nodes): Likewise.
30448 (more_one_region_p): Likewise.
30449 (rebuild_regno_allocno_maps): Likewise.
30450 (mark_loops_for_removal): Likewise.
30451 (mark_all_loops_for_removal): Likewise.
30452 (remove_unnecessary_regions): Likewise.
30453 (ira_build): Likewise.
30454 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30455 * loop-init.c (fix_loop_structure): Likewise.
30456 (gate_rtl_move_loop_invariants): Likewise.
30457 (gate_rtl_unswitch): Likewise.
30458 (gate_rtl_unroll_and_peel_loops): Likewise.
30459 (rtl_doloop): Likewise.
30460 * lto-streamer-in.c (input_cfg): Likewise.
30461 * lto-streamer-out.c (output_cfg): Likewise.
30462 * modulo-sched.c (sms_schedule): Likewise.
30463 * predict.c (tree_estimate_probability): Likewise.
30464 (tree_estimate_probability_driver): Likewise.
30465 (estimate_loops): Likewise.
30466 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30467 (move_sese_region_to_fn): Likewise.
30468 (debug_loop_num): Likewise.
30469 * tree-chrec.c (chrec_evaluate): Likewise.
30470 (hide_evolution_in_other_loops_than_loop): Likewise.
30471 (chrec_component_in_loop_num): Likewise.
30472 (reset_evolution_in_loop): Likewise.
30473 (evolution_function_is_invariant_rec_p): Likewise.
30474 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30475 * tree-inline.c (copy_loops): Likewise.
30476 (copy_cfg_body): Likewise.
30477 (tree_function_versioning): Likewise.
30478 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30479 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30481 (add_to_evolution_1): Likewise.
30482 (scev_const_prop): Likewise.
30483 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30484 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30485 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30486 (tree_ssa_lim_initialize): Likewise.
30487 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30488 (verify_loop_closed_ssa): Likewise.
30489 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30490 (tree_ssa_loop_im): Likewise.
30491 (tree_ssa_loop_unswitch): Likewise.
30492 (tree_vectorize): Likewise.
30493 (check_data_deps): Likewise.
30494 (tree_ssa_loop_ivcanon): Likewise.
30495 (tree_ssa_loop_bounds): Likewise.
30496 (tree_complete_unroll): Likewise.
30497 (tree_complete_unroll_inner): Likewise.
30498 (tree_parallelize_loops): Likewise.
30499 (tree_ssa_loop_prefetch): Likewise.
30500 (tree_ssa_loop_ivopts): Likewise.
30501 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30502 * tree-vectorizer.c (vectorize_loops): Likewise.
30504 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30506 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30507 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30508 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30509 with EABI_LINK_SPEC.
30511 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30514 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30517 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30520 * lra-constraints.c (process_alt_operands): Discourage a bit more
30521 using memory for pseudos. Print cost dump for alternatives.
30522 Modify cost values for conflicts with early clobbers.
30523 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30525 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30528 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30530 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30532 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30533 from/to S register.
30534 (movdi_aarch64): Support LDR/STR from/to D register.
30536 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30538 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30539 or higher by default.
30541 2013-04-29 Richard Biener <rguenther@suse.de>
30543 PR middle-end/57075
30544 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30545 even if not adding abnormal edges for calls that can make
30548 2013-04-29 Richard Biener <rguenther@suse.de>
30550 PR middle-end/57103
30551 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30553 (move_stmt_r): Remove redundant checking.
30555 2013-04-29 Teresa Johnson <tejohnson@google.com>
30558 * basic-block.h (apply_scale): New function.
30559 (apply_probability): Use apply_scale.
30560 * gimple-streamer-in.c (input_bb): Ditto.
30561 * lto-streamer-in.c (input_cfg): Ditto.
30562 * lto-cgraph.c (merge_profile_summaries): Ditto.
30563 * tree-optimize.c (execute_fixup_cfg): Ditto.
30564 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30565 (copy_edges_for_bb): Ditto.
30566 (copy_cfg_body): Ditto.
30568 2013-04-29 Tom de Vries <tom@codesourcery.com>
30570 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30571 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30572 (tail_merge_optimize): Handle current_loops == NULL.
30574 2013-04-26 Jeff Law <law@redhat.com>
30576 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30577 (simplify_cond_using_ranges): Generalize code to simplify
30578 COND_EXPRs where one argument is a constant and the other
30579 is an SSA_NAME created by an integral type conversion.
30581 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30583 * config/arm/arm.md (store_minmaxsi): Use only when
30584 optimize_insn_for_size_p.
30586 2013-04-29 Christian Bruel <christian.bruel@st.com>
30589 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30591 2013-04-29 Richard Biener <rguenther@suse.de>
30593 PR middle-end/57089
30594 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30595 loop tree make sure to schedule a fixup for the child as well.
30596 (expand_omp_for_generic): Properly add loops.
30597 (expand_omp_for_static_nochunk): Likewise.
30598 (expand_omp_for_static_chunk): Likewise.
30599 (expand_omp_for): For the degenerate case fixup loops.
30600 (expand_omp_sections): Fix default bb placement in loops.
30601 (expand_omp_atomic_pipeline): Properly add loops.
30603 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30605 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30607 2013-04-29 Tom de Vries <tom@codesourcery.com>
30609 * tree-ssa-tail-merge.c: Update header comment.
30611 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30613 * config/aarch64/arm_neon.h
30614 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30615 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30616 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30617 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30618 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30619 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30620 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30621 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30623 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30625 * config/aarch64/aarch64-simd.md
30626 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30627 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30628 fix_trunc, fixuns_trunc.
30629 (ftrunc<VDQF:mode>2): New.
30630 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30631 (fix_trunc_optab): New.
30633 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30635 * config/aarch64/aarch64-builtins.c
30636 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30637 iceilf, lround, iroundf.
30639 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30642 * config/i386/i386.h (enum ix86_tune_indices)
30643 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30644 New, split from X86_TUNE_INTER_UNIT_MOVES.
30645 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30646 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30647 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30648 (TARGET_INTER_UNIT_MOVES): Remove.
30649 * config/i386/i386.c (initial_ix86_tune_features): Update.
30650 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30651 (ix86_expand_convert_uns_didf_sse): Use
30652 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30653 (ix86_expand_vector_init_one_nonzero): Ditto.
30654 (ix86_expand_vector_init_interleave): Ditto.
30655 (inline_secondary_memory_needed): Return true for moves from SSE class
30656 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30657 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30658 * config/i386/constraints.md (Yi, Ym): Depend on
30659 TARGET_INTER_UNIT_MOVES_TO_VEC.
30660 (Yj, Yn): New constraints.
30661 * config/i386/i386.md (*movdi_internal): Change constraints of
30662 operand 1 from Yi to Yj and from Ym to Yn.
30663 (*movsi_internal): Ditto.
30664 (*movdf_internal): Ditto.
30665 (*movsf_internal): Ditto.
30666 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30667 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30668 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30669 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30670 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30671 * config/i386/sse.md (movdi_to_sse): Ditto.
30672 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30673 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30674 TARGET_INTER_UNIT_MOVES.
30675 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30676 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30677 instead of TARGET_INTER_UNIT_MOVES.
30678 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30679 operand 1 from Yi to Yj and from Ym to Yn.
30681 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30683 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30684 (float_truncate_hi_): Likewise.
30685 (float_extend_lo_): Likewise.
30686 (float_truncate_lo_): Likewise.
30687 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30688 (aarch64_float_extend_lo_v2df): Likewise.
30689 (vec_unpacks_hi_v4sf): Likewise.
30690 (aarch64_float_truncate_lo_v2sf): Likewise.
30691 (aarch64_float_truncate_hi_v4sf): Likewise.
30692 (vec_pack_trunc_v2df): Likewise.
30693 (vec_pack_trunc_df): Likewise.
30695 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30697 * config/aarch64/aarch64-builtins.c
30698 (aarch64_fold_builtin): Fold float conversions.
30699 * config/aarch64/aarch64-simd-builtins.def
30700 (floatv2si, floatv4si, floatv2di): New.
30701 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30702 * config/aarch64/aarch64-simd.md
30703 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30704 * config/aarch64/iterators.md (FLOATUORS): New.
30705 (optab): Add float, floatuns.
30706 (su_optab): Likewise.
30708 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30710 * config/aarch64/aarch64-builtins.c
30711 (aarch64_builtin_vectorized_function): Use new names for
30713 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30714 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30715 (fcvtzu): Split as...
30716 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30717 (fcvtas): Split as...
30718 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30719 (fcvtau): Split as...
30720 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30721 (fcvtps): Split as...
30722 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30723 (fcvtpu): Split as...
30724 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30725 (fcvtms): Split as...
30726 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30727 (fcvtmu): Split as...
30728 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30729 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30730 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30731 (lfrintnusf, lfrintnudf): Likewise.
30732 * config/aarch64/aarch64-simd.md
30733 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30735 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30736 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30737 (fcvt_pattern): Likewise.
30739 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30741 * config/aarch64/aarch64-simd.md
30742 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30743 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30745 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30747 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30748 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30749 (vrnd<a,m,n,p>_f32): Implement using builtins.
30750 (vrnd<i,x><q>_f<32, 64>): New.
30752 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30754 * config/aarch64/aarch64-builtins.c
30755 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30756 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30757 (frintz): Rename to...
30759 (frintp): Rename to...
30761 (frintm): Rename to...
30763 (frinti): Rename to...
30764 (nearbyint): ...this.
30765 (frintx): Rename to...
30767 (frinta): Rename to...
30769 * config/aarch64/aarch64-simd.md
30770 (aarch64_frint<frint_suffix><mode>): Delete.
30771 (<frint_pattern><mode>2): Convert to insn.
30772 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30773 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30774 (frint_pattern): Likewise.
30775 (frint_suffix): Likewise.
30777 2013-04-29 Richard Biener <rguenther@suse.de>
30779 PR tree-optimization/57081
30780 * loop-init.c: Include tree-flow.h.
30781 (loop_optimizer_finalize): Free number of iteration estimates.
30782 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30784 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30786 PR tree-optimization/57083
30787 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30788 non-singleton shift count range, zero extend low_bound for uns case.
30790 * config/i386/predicates.md (general_vector_operand): New predicate.
30791 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30792 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30793 if they aren't nonimmediate operands. If their original values
30794 satisfy const_vector_equal_evenodd_p, don't shift them.
30795 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30796 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30797 if not nonimmediate_operand.
30798 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30799 instead of register_operand.
30800 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30802 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30804 * stor-layout.c (finalize_size_functions): Allocate a structure and
30805 reset cfun before dumping the functions.
30807 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30809 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30812 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30813 use xop_pmacsdqh if uns_p.
30814 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30815 the immediate rotate count.
30817 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30819 * rtl.h (struct rtx_def): Add comment for field jump.
30820 (LRA_SUBREG_P): New macro.
30821 * recog.c (register_operand): Check LRA_SUBREG_P.
30822 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30824 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30825 (lra_final_code_change): Skip subreg change for operators.
30826 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30827 if there are no operand changes.
30828 * lra-constraints.c (curr_insn_set): New.
30829 (match_reload): Set LRA_SUBREG_P.
30830 (emit_spill_move): Ditto.
30831 (check_and_process_move): Use curr_insn_set. Process only single
30832 set insns. Don't initialize sec_mem_p and change_p.
30833 (simplify_operand_subreg): Use LRA_SUBREG_P.
30834 (reg_in_class_p): New function.
30835 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30836 of #ifdef. Add code to remove cycling.
30837 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30838 non-null disp. Reload inner instead of disp when base and index
30839 are null. Try to put lo_sum into register.
30840 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30841 (check_and_process_move): Move code for move cost check to
30842 simple_move_p. Remove equiv_substitution.
30843 (simple_move_p): New function.
30844 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30845 curr_insn_set. Call check_and_process_move only for single set
30846 insns. Use the new function. Move call of check_and_process_move
30847 after operand equiv substitution and address process.
30849 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30852 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30853 with nonlocal goto receivers or returns twice calls, ignore
30854 unininitialized values from abnormal edges to nl goto receiver
30855 or returns twice call.
30857 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30859 PR tree-optimization/57051
30860 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30861 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30864 2013-04-26 Richard Biener <rguenther@suse.de>
30866 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30867 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30868 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30869 (fixup_loop_arrays_after_move): New function.
30870 (move_sese_region_to_fn): Properly outline the loop tree parts
30871 of the SESE region.
30873 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30875 * config/i386/i386.md (type, unit): Fix long lines.
30877 2013-04-26 Richard Biener <rguenther@suse.de>
30879 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30880 (lto-streamer-out.o): Likewise.
30881 * cfgloop.c (init_loops_structure): Export, add struct function
30882 argument and adjust.
30883 (flow_loops_find): Adjust.
30884 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30885 (init_loops_structure): Declare.
30886 * lto-streamer-in.c: Include cfgloop.h.
30887 (input_cfg): Input the loop tree.
30888 * lto-streamer-out.c: Include cfgloop.h.
30889 (output_cfg): Output the loop tree.
30890 (output_struct_function_base): Do not drop PROP_loops.
30892 2013-03-26 Richard Biener <rguenther@suse.de>
30894 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30895 (pass_build_cfg): Provide PROP_loops.
30896 (move_sese_region_to_fn): Remove loops that are outlined into fn
30898 * tree-inline.c: Include cfgloop.h.
30899 (initialize_cfun): Do not drop PROP_loops.
30900 (copy_loops): New function.
30901 (copy_cfg_body): Copy loop structure.
30902 (tree_function_versioning): Initialize destination loop tree.
30903 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30904 (pass_parallelize_loops): Do IL verification.
30905 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30906 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30907 the CFG make sure we fixup loops as well.
30908 * tree-ssa-tail-merge.c: Include cfgloop.h.
30909 (replace_block_by): When merging loop latches mark loops for fixup.
30910 * lto-streamer-out.c (output_struct_function_base): Drop
30911 PROP_loops for now.
30912 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30913 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30914 * ipa-split.c: Include cfgloop.h.
30915 (split_function): Add the new return block to the loop tree root.
30916 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30917 whether we have removed the forwarder block.
30918 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30919 * cfgloop.h (place_new_loop): Declare.
30920 * cfgloopmanip.c (place_new_loop): Export.
30921 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30922 (tree-switch-conversion.o): Likewise.
30923 (tree-complex.o): Likewise.
30924 (tree-inline.o): Likewise.
30925 (tree-ssa-tailmerge.o): Likewise.
30926 (ipa-split.o): Likewise.
30927 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30928 (tree-ssa-copy.o): Likewise.
30929 * tree-switch-conversion.c: Include cfgloop.h
30930 (process_switch): If we emit a bit-test cascade, schedule loops
30932 * tree-complex.c: Include cfgloop.h.
30933 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30934 * asan.c: Include cfgloop.h.
30935 (create_cond_insert_point): Properly add new basic-blocks to
30936 loops, schedule loop fixup.
30937 * cfgloop.c (verify_loop_structure): Check that looks are not
30939 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30941 (expand_omp_for_generic): Likewise.
30942 (expand_omp_sections): Likewise.
30943 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30944 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30945 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30946 is initialized, not when loops are present.
30947 * tree-parloops.c (parallelize_loops): Remove checking here.
30948 * passes.c (init_optimization_passes): Schedule a copy-propagation
30949 pass before complete unrolling of inner loops.
30951 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30953 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30954 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30955 (colorize_init): Add argument to _WIN32 version.
30956 * toplev.c: Include diagnostic-color.h.
30957 (process_options): Default to -fdiagnostics-color=auto if
30958 GCC_COLORS env var is in the environment.
30959 * common.opt (fdiagnostics-color=): Add Var and Init.
30960 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30961 env var is in the environment, the default is auto rather than never.
30963 * diagnostic.h (file_name_as_prefix): Add context argument.
30964 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30965 the string as locus.
30966 * langhooks.c (lhd_print_error_function): Adjust caller.
30968 2013-04-25 Lawrence Crowl <crowl@google.com>
30970 * var-tracking.c (shared_hash_def::htab):
30971 Change type to hash_table. Update dependent calls and types.
30973 2013-04-25 Lawrence Crowl <crowl@google.com>
30975 * Makefile.in: Update as needed below.
30977 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30978 Move declaration to after the type's method definitons.
30980 * attribs.c (htab_t scoped_attributes::attribute_hash):
30981 Change type to hash_table. Update dependent calls and types.
30983 * bitmap.c (htab_t bitmap_desc_hash):
30984 Change type to hash_table. Update dependent calls and types.
30986 * cselib.c (htab_t cselib_hash_table):
30987 Change type to hash_table. Update dependent calls and types.
30989 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30990 (hash_string_slot_node): Move implementation into lto-streamer.h
30991 struct string_slot_hasher.
30992 (eq_string_slot_node): Likewise.
30994 * data-streamer-out.c: Update output_block::string_hash_table
30995 dependent calls and types.
30997 * dwarf2cfi.c (htab_t trace_index):
30998 Change type to hash_table. Update dependent calls and types.
31000 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31001 Change type to hash_table. Update dependent calls and types.
31002 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31003 (htab_t optimize_external_refs::map): Likewise.
31004 (htab_t output_comp_unit::extern_map): Likewise.
31005 (htab_t output_comdat_type_unit::extern_map): Likewise.
31006 (htab_t output_macinfo::macinfo_htab): Likewise.
31007 (htab_t optimize_location_lists::htab): Likewise.
31008 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31010 * except.c (htab_t ehspec_hash_type):
31011 Change type to hash_table. Update dependent calls and types.
31012 (assign_filter_values::ttypes): Likewise.
31013 (assign_filter_values::ehspec): Likewise.
31014 (sjlj_assign_call_site_values::ar_hash): Likewise.
31015 (convert_to_eh_region_ranges::ar_hash): Likewise.
31017 * gcse.c (htab_t pre_ldst_table):
31018 Change type to hash_table. Update dependent calls and types.
31020 * ggc-common.c (htab_t saving_htab):
31021 Change type to hash_table. Update dependent calls and types.
31022 (htab_t loc_hash): Likewise.
31023 (htab_t ptr_hash): Likewise.
31024 (call_count): Rename ggc_call_count.
31025 (call_alloc): Rename ggc_call_alloc.
31026 (loc_descriptor): Rename make_loc_descriptor.
31027 (add_statistics): Rename ggc_add_statistics.
31029 * ggc-common.c (saving_htab):
31030 Change type to hash_table. Update dependent calls and types.
31032 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31033 (push_gimplify_context): Likewise.
31034 (pop_gimplify_context): Likewise.
31035 (struct gimple_temp_hash_elt): Added.
31036 (struct gimplify_hasher): Likewise.
31037 (struct gimplify_ctx.temp_htab):
31038 Change type to hash_table. Update dependent calls and types.
31040 * gimple-fold.c: Include gimplify-ctx.h.
31042 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31043 Change type to hash_table. Update dependent calls and types.
31044 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31045 avoid potential global name collision.
31047 * gimplify.c: Include gimplify-ctx.h.
31048 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31049 (htab_t gimplify_ctx::temp_htab):
31050 Update dependent calls and types for new type hash_table.
31051 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31052 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31054 * gimplify-ctx.h: New.
31055 (struct gimple_temp_hash_elt): Move from gimplify.c.
31056 (class gimplify_hasher): New.
31057 (struct gimplify_ctx): Move from gimple.h.
31058 (htab_t gimplify_ctx::temp_htab):
31059 Change type to hash_table. Update dependent calls and types.
31061 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31062 (htab_t ivs_params::newivs_index):
31063 Change type to hash_table. Update dependent calls and types.
31064 (htab_t ivs_params::params_index): Likewise.
31065 (htab_t print_generated_program::params_index): Likewise.
31066 (htab_t gloog::newivs_index): Likewise.
31067 (htab_t gloog::params_index): Likewise.
31069 * graphite.c: Include graphite-htab.h.
31070 4htab_t graphite_transform_loops::bb_pbb_mapping):
31071 Change type to hash_table. Update dependent calls and types.
31073 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31074 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31075 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31077 * graphite-dependences.c: Include graphite-htab.h.
31078 (loop_is_parallel_p): Change hash table type of parameter.
31080 * graphite-htab.h: New.
31081 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31082 (extern find_pbb_via_hash): Move from graphite-poly.h.
31083 (extern loop_is_parallel_p): Move from graphite-poly.h.
31084 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31086 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31087 (extern loop_is_parallel_p): Move to graphite-htab.h.
31088 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31090 * haifa-sched.c (htab_t delay_htab):
31091 Change type to hash_table. Update dependent calls and types.
31092 (htab_t delay_htab_i2): Likewise.
31094 * ira-color.c (htab_t allocno_hard_regs_htab):
31095 Change type to hash_table. Update dependent calls and types.
31097 * ira-costs.c (htab_t cost_classes_htab):
31098 Change type to hash_table. Update dependent calls and types.
31100 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31101 Change type to hash_table. Update dependent calls and types.
31103 * loop-iv.c (htab_t bivs):
31104 Change type to hash_table. Update dependent calls and types.
31106 * loop-unroll.c (htab_t opt_info::insns_to_split):
31107 Change type to hash_table. Update dependent calls and types.
31108 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31110 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31111 (struct string_slot_hasher): New.
31112 (htab_t output_block::string_hash_table):
31113 Change type to hash_table. Update dependent calls and types.
31115 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31116 (htab_t file_name_hash_table):
31117 Change type to hash_table. Update dependent calls and types.
31119 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31122 * lto-streamer.c (htab_t tree_htab):
31123 Change type to hash_table. Update dependent calls and types.
31125 * omp-low.c: Include gimplify-ctx.h.
31127 * passes.c (htab_t name_to_pass_map):
31128 Change type to hash_table. Update dependent calls and types.
31129 (pass_traverse): Rename to passes_pass_traverse.
31131 * plugin.c (htab_t event_tab):
31132 Change type to hash_table. Update dependent calls and types.
31134 * postreload-gcse.c (htab_t expr_table):
31135 Change type to hash_table. Update dependent calls and types.
31136 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31138 * sese.c (debug_rename_map_1): Make extern.
31139 (htab_t copy_bb_and_scalar_dependences::rename_map):
31140 Change type to hash_table. Update dependent calls and types.
31142 * sese.h (extern debug_rename_map): Move to .c file.
31144 * store-motion.c (htab_t store_motion_mems_table):
31145 Change type to hash_table. Update dependent calls and types.
31147 * trans-mem.c (htab_t tm_new_mem_hash):
31148 Change type to hash_table. Update dependent calls and types.
31150 * tree-browser.c (htab_t TB_up_ht):
31151 Change type to hash_table. Update dependent calls and types.
31153 * tree-cfg.c (htab_t discriminator_per_locus):
31154 Change type to hash_table. Update dependent calls and types.
31156 * tree-complex.c: Include tree-hasher.h
31157 (htab_t complex_variable_components):
31158 Change type to hash_table. Update dependent calls and types.
31160 * tree-eh.c (htab_t finally_tree):
31161 Change type to hash_table. Update dependent calls and types.
31163 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31164 struct int_tree_hasher.
31165 (extern int_tree_map_eq): Likewise.
31166 (uid_decl_map_hash): Removed.
31167 (extern decl_tree_map_eq): Likewise.
31169 * tree-hasher.h: New.
31170 (struct int_tree_hasher): New.
31171 (typedef int_tree_htab_type): New.
31173 * tree-inline.c: Include gimplify-ctx.h.
31175 * tree-mudflap.c: Include gimplify-ctx.h.
31177 * tree-parloops.c: Include tree-hasher.h.
31178 (htab_t eliminate_local_variables_stmt::decl_address):
31179 Change type to hash_table. Update dependent calls and types.
31180 (htab_t separate_decls_in_region::decl_copies): Likewise.
31182 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31183 Change type to hash_table. Update dependent calls and types.
31185 * tree-sra.c (candidates):
31186 Change type to hash_table. Update dependent calls and types.
31188 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31190 (int_tree_map_hash): Likewise.
31192 * tree-ssa-dom.c (htab_t avail_exprs):
31193 Change type to hash_table. Update dependent calls and types.
31195 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31196 Change type to hash_table. Update dependent calls and types.
31198 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31199 Change type to hash_table. Update dependent calls and types.
31201 * tree-ssa-phiopt.c (seen_ssa_names):
31202 Change type to hash_table. Update dependent calls and types.
31204 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31205 Change type to hash_table. Update dependent calls and types.
31207 * tree-ssa-uncprop.c (equiv):
31208 Change type to hash_table. Update dependent calls and types.
31210 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31212 PR rtl-optimization/57003
31213 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31214 call note_stores with kill_clobbered_value callback again after
31215 killing regs_invalidated_by_call.
31217 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31219 * config/aarch64/aarch64-simd.md
31220 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31221 (aarch64_simd_bsl<mode>): Likewise.
31222 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31224 2013-04-25 Marek Polacek <polacek@redhat.com>
31226 PR tree-optimization/57066
31227 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31229 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31231 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31233 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31235 * config/aarch64/aarch64-builtins.c
31236 (aarch64_fold_builtin): New.
31237 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31238 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31239 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31240 * config/aarch64/arm_neon.h
31241 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31243 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31244 Tejas Belagod <tejas.belagod@arm.com>
31246 * config/aarch64/aarch64-builtins.c
31247 (aarch64_gimple_fold_builtin): New.
31248 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31249 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31250 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31251 (addvv4sf): Update.
31252 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31254 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31256 * config/aarch64/aarch64.md
31257 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31259 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31261 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31262 (*ngcsi_uxtw): New pattern.
31264 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31265 Julian Brown <julian@codesourcery.com>
31267 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31268 (TB_DREG): Add T_V4HF.
31269 (v4hf_UP): New macro.
31270 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31271 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31272 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31274 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31275 (arm_vector_mode_supported_p): Handle V4HF.
31276 (arm_mangle_map): Handle V4HFmode.
31277 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31278 * config/arm/arm_neon_builtins.def: Add entries for
31279 vcvtv4hfv4sf, vcvtv4sfv4hf.
31280 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31281 (neon_vcvtv4hfv4sf): Likewise.
31282 * config/arm/neon-gen.ml: Handle half-precision floating point
31284 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31285 * config/arm/arm_neon.h: Regenerate.
31286 * config/arm/neon.ml (type elts): Add F16.
31287 (type vectype): Add T_float16x4, T_floatHF.
31288 (type vecmode): Add V4HF.
31289 (type features): Add Requires_FP_bit feature.
31290 (elt_width): Handle F16.
31291 (elt_class): Likewise.
31292 (elt_of_class_width): Likewise.
31293 (mode_of_elt): Refactor.
31294 (type_for_elt): Handle F16, fix error messages.
31295 (vectype_size): Handle T_float16x4.
31296 (vcvt_sh): New function.
31297 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31298 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31299 (string_of_mode): Handle V4HF.
31300 * doc/arm-neon-intrinsics.texi: Regenerate.
31302 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31304 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31305 format specifier in 'X' case.
31307 2013-04-25 Alan Modra <amodra@gmail.com>
31310 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31311 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31312 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31313 Repeat for many other rotate/shift and mask patterns using subregs.
31314 Name lshiftrt insns.
31315 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31316 on WORDS_BIG_ENDIAN.
31318 2013-04-25 Alan Modra <amodra@gmail.com>
31320 * config.gcc: Support little-endian powerpc-linux targets.
31321 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31322 (LINK_OS_LINUX_SPEC): Define.
31323 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31324 Preserve MASK_LITTLE_ENDIAN.
31325 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31326 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31327 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31328 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31329 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31330 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31331 Correct fp word order for little-endian. Don't shift toc entries
31332 smaller than a word for little-endian.
31333 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31334 (bswapdi2 splits): Correct low-part subreg for little-endian.
31335 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31336 low/high where such is correct only for be.
31337 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31338 little-endian for -mcall-aixdesc.
31340 2013-04-25 Alan Modra <amodra@gmail.com>
31342 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31343 replace_equiv_address_nv.
31345 2013-04-25 Alan Modra <amodra@gmail.com>
31347 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31349 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31352 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31353 * rtl.h (struct rtx_def): ...
31355 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31357 PR rtl-optimizations/57046
31358 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31359 for multi-reg splits.
31361 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31363 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31365 2013-04-24 Sterling Augustine <saugustine@google.com>
31367 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31368 (comp_dir_string, debug_str_dwo_section): New.
31369 (DEBUG_STR_DWO_SECTION): Rename to ...
31370 (DEBUG_DWO_STR_SECTION): ... this.
31371 (DEBUG_NORM_STR_SECTION): Delete.
31372 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31373 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31374 (find_AT_string): Move most logic to ...
31375 (find_AT_string_in_table): ... here. New.
31376 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31377 add_skeleton_AT_string. Delete logic.
31378 (output_skeleton_debug_sections): Remove call to
31379 add_top_level_skeleton_die_attrs.
31380 (add_comp_dir_attribute): Move logic to comp_dir_string.
31381 (dwarf2out_init): Initialize debug_str_dwo_section.
31382 (output_indirect_string): Call find_string_form.
31383 (output_indirect_strings): Rewrite.
31384 (prune_unused_types): Empty skeleton_debug_str_hash.
31385 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31386 (dwarf2out_finish): Call output_indirect_strings.
31388 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31390 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31392 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31394 * rtl.h (struct rtx_def): Add comment for field jump.
31395 (LRA_SUBREG_P): New macro.
31396 * recog.c (register_operand): Check LRA_SUBREG_P.
31397 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31399 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31400 (lra_final_code_change): Skip subreg change for operators.
31401 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31402 if there are no operand changes.
31403 * lra-constraints.c (curr_insn_set): New.
31404 (match_reload): Set LRA_SUBREG_P.
31405 (emit_spill_move): Ditto.
31406 (check_and_process_move): Use curr_insn_set. Process only single
31407 set insns. Don't initialize sec_mem_p and change_p.
31408 (simplify_operand_subreg): Use LRA_SUBREG_P.
31409 (reg_in_class_p): New function.
31410 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31411 of #ifdef. Add code to remove cycling.
31412 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31413 non-null disp. Reload inner instead of disp when base and index
31414 are null. Try to put lo_sum into register.
31415 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31416 (check_and_process_move): Move code for move cost check to
31417 simple_move_p. Remove equiv_substitution.
31418 (simple_move_p): New function.
31419 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31420 curr_insn_set. Call check_and_process_move only for single set
31421 insns. Use the new function. Move call of check_and_process_move
31422 after operand equiv substitution and address process.
31424 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31426 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31427 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31428 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31430 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31432 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31434 2013-04-24 Marek Polacek <polacek@redhat.com>
31436 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31437 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31438 (select_loops_exit_conditions): Likewise.
31439 (number_of_iterations_for_all_loops): Likewise.
31440 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31441 (scev_analysis): Likewise.
31443 2013-04-02 Catherine Moore <clm@codesourcery.com>
31444 Chao-ying Fu <fu@mips.com>
31446 * config/mips/micromips.md (jraddiusp): New pattern.
31447 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31448 instruction if possible.
31450 2013-04-24 Alan Modra <amodra@gmail.com>
31452 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31454 2013-04-24 Julian Brown <julian@codesourcery.com>
31455 Chung-Lin Tang <cltang@codesourcery.com>
31457 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31458 dependency behavior in enumeration type DIE generation. Add TODO note
31459 to comments about future DW_FORM_sdata/udata re-work of related code.
31461 2013-04-23 Lawrence Crowl <crowl@google.com>
31463 * Makefile.in: Update as needed below.
31465 * hash-table.h (class hash_table):
31466 Correct many methods with parameter types compare_type to the correct
31467 value_type. (Correct code was unlikely to notice the change.)
31468 (hash_table::elements_with_deleted) New.
31469 (class hashtable::iterator): New.
31470 (hashtable::begin()): New.
31471 (hashtable::end()): New.
31472 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31474 * statistics.c (statistics_hashes):
31475 Change type to hash_table. Update dependent calls and types.
31477 * tree-into-ssa.c (var_infos):
31478 Change type to hash_table. Update dependent calls and types.
31480 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31481 Change type to hash_table. Update dependent calls and types.
31483 * tree-ssa-loop-im.c (struct mem_ref.refs):
31484 Change type to hash_table. Update dependent calls and types.
31486 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31487 Change type to hash_table. Update dependent calls and types.
31489 * tree-ssa-sccvn.c (vn_tables_s::nary):
31490 Change type to hash_table. Update dependent calls and types.
31491 (vn_tables_s::phis): Likewise.
31492 (vn_tables_s::references): Likewise.
31494 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31495 (vn_reference_eq): Update parameter and return types.
31497 * tree-ssa-structalias.c (pointer_equiv_class_table):
31498 Change type to hash_table. Update dependent calls and types.
31499 (location_equiv_class_table): Likewise.
31501 * tree-vect-data-refs.c: Consequential changes for making
31502 peeling a hash_table.
31504 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31505 (destroy_loop_vec_info): Dependent hash_table update.
31507 * tree-vectorizer.h (peeling_htab):
31508 Change type to hash_table. Update dependent calls and types.
31510 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31512 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31513 to check the register content is equal or not.
31514 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31515 to assign register content record.
31516 * lra-eliminations.c (update_reg_eliminate): Use
31517 lra_update_reg_val_offset to update register content offset.
31518 * lra-int.h (struct lra_reg): Add offset member.
31519 (lra_reg_val_equal_p): New static inline function.
31520 (lra_update_reg_val_offset): New static inline function.
31521 (lra_assign_reg_val): New static inline function.
31522 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31523 to assign register content record.
31524 (initialize_lra_reg_info_element): Initial offset to zero.
31526 2013-04-23 Catherine Moore <clm@codesourcery.com>
31528 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31529 operands. Record compression.
31531 2013-04-23 Xinliang David Li <davidxl@google.com>
31533 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31535 2013-04-23 Richard Biener <rguenther@suse.de>
31537 PR middle-end/57036
31538 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31539 parameter, only add abnormal goto edges from the copied body
31540 if the call could perform abnormal gotos.
31541 (copy_cfg_body): Adjust.
31543 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31545 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31547 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31549 * coretypes.h (gimple_stmt_iterator): Add struct to make
31552 2013-04-23 Richard Biener <rguenther@suse.de>
31554 PR tree-optimization/57026
31555 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31556 from SSA names occuring in abnormal PHI nodes.
31558 2013-04-22 Andi Kleen <ak@linux.intel.com>
31560 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31562 2013-04-22 Andi Kleen <ak@linux.intel.com>
31564 * lto/lto.c (print_lto_report_1): Declare early.
31565 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31567 2013-04-22 Andi Kleen <ak@linux.intel.com>
31569 * common.opt (-flto-report-wpa): Add.
31570 * doc/invoke.texi (-flto-report-wpa): Add.
31571 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31574 2013-04-22 Xinliang David Li <davidxl@google.com>
31576 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31577 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31578 * Makefile.in: New dependency
31580 David Daney <ddaney.cavm@gmail.com>
31582 * configure.ac (gcc_cv_as_micromips_support): Use the
31583 --fatal-warnings option.
31584 * configure: Regenerate.
31586 2013-04-22 Marek Polacek <polacek@redhat.com>
31589 * tsan.c (instrument_expr): Don't instrument expression
31590 in case its size is zero.
31592 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31596 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31598 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31600 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31602 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31603 (gimple_stmt_iterator): New typedef.
31604 * gimple.h (gimple_stmt_iterator): Rename to...
31605 (gimple_stmt_iterator_d): ... This.
31606 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31607 trees be valid for GIMPLE and GENERIC.
31608 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31609 * gimple-fold.c (gimple_fold_call): Call target hook
31610 gimple_fold_builtin.
31611 * hooks.c (hook_bool_gsiptr_false): New.
31612 * hooks.h (hook_bool_gsiptr_false): New.
31613 * target.def (fold_stmt): New.
31614 * doc/tm.texi: Regenerate.
31616 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31619 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31620 a set sp if no stack realignment.
31622 2013-04-22 Nick Clifton <nickc@redhat.com>
31624 * config.gcc (tilegx-linux): Extend extra_objs rather than
31626 (tilepro-linux): Likewise.
31628 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31630 * config/aarch64/aarch64-builtins.c
31632 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31633 (VAR<1-12>): Add MAP parameter.
31634 (BUILTIN_*): Likewise.
31635 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31636 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31637 (aarch64_ushl_n<mode>): Likewise.
31638 (aarch64_sshr_n<mode>): Likewise.
31639 (aarch64_ushr_n<mode>): Likewise.
31640 (aarch64_<maxmin><mode>): Likewise.
31641 (aarch64_sqrt<mode>): Likewise.
31642 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31643 (vshr<q>_n_*): Likewise.
31645 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31647 * config/aarch64/aarch64-builtins.c
31648 (aarch64_simd_builtin_type_mode): Handle SF types.
31650 (BUILTIN_GPF): Define.
31651 (aarch64_init_simd_builtins): Handle SF types.
31652 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31653 (frecps): Likewise.
31654 (frecpx): Likewise.
31655 * config/aarch64/aarch64-simd.md
31656 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31657 (aarch64_frecpe<mode>): New.
31658 (aarch64_frecps<mode>): Likewise.
31659 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31660 (v8type): Add frecp<esx>.
31661 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31662 (aarch64_frecps<mode>): Likewise.
31663 * config/aarch64/iterators.md (FRECP): New.
31664 (frecp_suffix): Likewise.
31665 * config/aarch64/arm_neon.h
31666 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31668 2013-04-22 Christian Bruel <christian.bruel@st.com>
31671 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31672 (REG_CLASS_NAMES): Idem.
31673 (REG_CLASS_CONTENTS): Idem.
31674 (REGCLASS_HAS_FP_REG): Idem.
31675 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31676 (sh_conditional_register_usage): Idem.
31678 2013-04-21 Jeff Law <law@redhat.com>
31680 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31681 (ssa_forward_propagate_and_combine): Use it.
31683 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31685 * lra.c: Update the flow chart diagram.
31687 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31689 PR rtl-optimization/56847
31690 * lra-constraints.c (process_alt_operands): Discourage alternative
31691 with non-matche doffsettable memory constraint fro memory with
31694 2013-04-19 Richard Biener <rguenther@suse.de>
31696 PR tree-optimization/56982
31697 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31699 * gimplify.c (gimplify_call_expr): Notice special calls.
31700 (gimplify_modify_expr): Likewise.
31701 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31702 abnormal control flow receivers.
31703 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31704 in the same way as cfun->has_nonlocal_labels.
31705 (gimple_purge_dead_abnormal_call_edges): Likewise.
31706 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31707 receivers start a basic-block.
31709 2013-04-19 Richard Biener <rguenther@suse.de>
31711 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31713 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31714 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31715 (SLP_TREE_LOAD_PERMUTATION): Add.
31716 (vect_transform_slp_perm_load): Adjust prototype.
31717 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31718 (vect_free_slp_instance): Likewise.
31719 (vect_create_new_slp_node): Likewise.
31720 (vect_supported_slp_permutation_p): Remove.
31721 (vect_slp_rearrange_stmts): Adjust.
31722 (vect_supported_load_permutation_p): Likewise. Inline
31723 vect_supported_slp_permutation_p here.
31724 (vect_analyze_slp_instance): Compute load permutations per
31725 slp node instead of per instance.
31726 (vect_get_slp_defs): Adjust.
31727 (vect_transform_slp_perm_load): Likewise.
31728 (vect_schedule_slp_instance): Remove redundant code.
31729 (vect_schedule_slp): Remove hack for PR56270, add it ...
31730 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31731 CSE loads for SLP. Adjust.
31733 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31735 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31736 spelling in two comments.
31738 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31741 * config/arm/arm.c (load_multiple_sequence): Require SP
31742 as base register for loads if SP is in the register list.
31744 2013-04-19 Martin Jambor <mjambor@suse.cz>
31746 PR tree-optimization/56718
31747 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31748 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31749 and made public. Adjusted all callers.
31750 (ipa_intraprocedural_devirtualization): New function.
31751 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31752 (ipa_intraprocedural_devirtualization): Likewise.
31753 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31755 2013-04-19 Richard Biener <rguenther@suse.de>
31757 PR tree-optimization/57000
31758 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31760 2013-04-19 Terry Guo <terry.guo@arm.com>
31762 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31764 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31765 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31766 (cortex_m4_fmacs): Use new reservations.
31767 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31769 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31771 PR rtl-optimization/56999
31772 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31774 (lra_coalesce): Remove split_origin_bitmap and related code.
31775 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31776 ranges if necessary.
31778 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31780 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31782 (ix86_expand_call): Remove clobbered_registers array and use
31783 x86_64_ms_sysv_extra_clobbered_registers instead.
31784 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31786 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31788 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31789 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31790 (*call_value_rex64_ms_sysv): Ditto.
31792 2013-04-18 Cary Coutant <ccoutant@google.com>
31794 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31795 parent instead of die_mark.
31797 2013-04-18 Diego Novillo <dnovillo@google.com>
31799 * gimple.c (create_gimple_tmp): New.
31800 (get_expr_type): New.
31801 (build_assign): New.
31802 (build_type_cast): New.
31803 * gimple.h (enum ssa_mode): Define.
31804 (gimple_seq_set_location): New.
31805 * asan.c (build_check_stmt): Change some gimple_build_* calls
31806 to use build_assign and build_type_cast.
31808 2013-04-18 Richard Biener <rguenther@suse.de>
31810 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31811 handle negative step. Remove redundant checks.
31812 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31813 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31814 for negative step and grouped loads fail to vectorize.
31816 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31818 * emit-rtl.c (reset_insn_used_flags): New function.
31819 (reset_all_used_flags): Use it.
31820 (verify_insn_sharing): New function.
31821 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31823 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31825 PR tree-optimization/56984
31826 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31827 and (x >> M) >= N don't register any assertion if N << M is the
31830 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31832 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31833 do not delete_insn insns that have not yet been emitted, only
31834 unlink them with remove_insn.
31835 * df-scan.c (df_insn_delete): Revert r197492.
31837 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31839 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31840 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31842 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31844 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31845 define_insn_and_split.
31846 (and_scc,ior_scc,negscc): Likewise.
31847 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31849 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31851 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31852 can benefit from using a sequence of LDRD instructions in epilogue
31853 instead of a single LDM instruction.
31855 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31858 * doc/extend.texi: Fix typo.
31860 2013-04-17 Richard Biener <rguenther@suse.de>
31862 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31863 (vect_build_slp_tree): ... here.
31864 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31865 match. Remove special-casing of mismatched complex loads.
31866 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31867 re-try the match with swapped commutative operands.
31868 (vect_supported_load_permutation_p): Remove special-casing of
31869 mismatched complex loads.
31870 (vect_analyze_slp_instance): Adjust.
31872 2013-04-17 Richard Biener <rguenther@suse.de>
31874 PR rtl-optimization/56921
31875 * cfgloop.h (struct loop): Add simple_loop_desc member.
31876 (struct niter_desc): Mark with GTY(()).
31877 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31878 * loop-iv.c (get_simple_loop_desc): Likewise.
31879 (free_simple_loop_desc): Likewise.
31882 2013-04-16 Richard Biener <rguenther@suse.de>
31884 PR rtl-optimization/56921
31885 * loop-init.c (pass_rtl_move_loop_invariants): Add
31886 TODO_do_not_ggc_collect to todo_flags_finish.
31887 (pass_rtl_unswitch): Same.
31888 (pass_rtl_unroll_and_peel_loops): Same.
31889 (pass_rtl_doloop): Same.
31891 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31893 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31894 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31895 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31897 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31898 * tree-streamer.c (record_common_node): Adjust reference in comment.
31900 2013-04-17 Terry Guo <terry.guo@arm.com>
31902 * config/arm/cortex-m4.md: Add a new bypass.
31904 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31906 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31908 (*subs_<optab><mode>_multp2): New pattern.
31909 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31910 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31912 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31914 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31915 (*subs_mul_imm_<mode>): New pattern.
31917 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31920 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31921 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31922 (vsx_movti_32bit): Change j->wa to O->wa.
31924 2013-04-16 Richard Biener <rguenther@suse.de>
31926 PR rtl-optimization/56921
31927 * loop-init.c (pass_rtl_move_loop_invariants): Add
31928 TODO_do_not_ggc_collect to todo_flags_finish.
31929 (pass_rtl_unswitch): Same.
31930 (pass_rtl_unroll_and_peel_loops): Same.
31931 (pass_rtl_doloop): Same.
31933 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31935 * config/arm/arm.c (emit_multi_reg_push): New declaration
31936 for an existing function.
31937 (arm_emit_strd_push): New function.
31938 (arm_expand_prologue): Used here.
31939 (arm_emit_ldrd_pop): New function.
31940 (arm_expand_epilogue): Used here.
31941 (arm_get_frame_offsets): Update condition.
31942 (arm_emit_multi_reg_pop): Add a special case for load of a single
31943 register with writeback.
31945 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31947 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31950 2013-04-16 Richard Biener <rguenther@suse.de>
31952 PR tree-optimization/56756
31953 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31954 (first_mem_ref_loc): New.
31955 (execute_sm): Place the load temporarily before a previous
31956 access instead of in the latch edge to ensure its SSA dependencies
31957 are defined at points dominating the load.
31959 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31961 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31962 correct fix by moving header and footer insn to the footer of
31963 the merged basic block. Clear BB_END of the merged-away block.
31965 PR middle-end/43631
31966 * emit-rtl.c (make_note_raw): New function.
31967 (link_insn_into_chain): New static inline function.
31968 (add_insn): Use it.
31969 (add_insn_before, add_insn_after): Factor insn chain linking code...
31970 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31971 using link_insn_into_chain.
31972 (note_outside_basic_block_p): New helper function for emit_note_after
31973 and emit_note_before.
31974 (emit_note_after): Use nobb variant of add_insn_after if the note
31975 should not be contained in a basic block.
31976 (emit_note_before): Use nobb variant of add_insn_before if the note
31977 should not be contained in a basic block.
31978 (emit_note_copy): Use make_note_raw.
31979 (emit_note): Likewise.
31980 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31981 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31982 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31983 the moved barrier the tail of the basic block it follows.
31984 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31986 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31988 PR tree-optimization/56962
31989 * gimple-ssa-strength-reduction.c (record_increment): Only set
31990 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31991 either rhs1 or rhs2 is equal to c->base_expr.
31993 2013-04-15 Richard Biener <rguenther@suse.de>
31995 PR tree-optimization/56933
31996 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31998 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31999 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32000 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32001 dependence check ...
32002 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32004 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32005 GROUP_READ_WRITE_DEPENDENCE.
32007 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32009 * emit-rtl.c (reset_all_used_flags): New function.
32010 (verify_rtl_sharing): Call reset_all_used_flags before and after
32011 performing the checks.
32013 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32015 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32016 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32017 * config/arm/constraints.md (De): New constraint.
32018 * config/arm/neon.md (anddi3_neon): Delete.
32019 (neon_vand<mode>): Expand to standard anddi3 pattern.
32020 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32021 Move earlier in the file.
32022 (neon_inv_logic_op2): Likewise.
32023 (arm_anddi_operand_neon): New predicate.
32025 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32027 * configure.ac (gcc_cv_ld_as_needed): Set
32028 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32029 Use -z ignore, -z record on *-*-solaris2*.
32030 (HAVE_LD_AS_NEEDED): Update comment.
32031 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32032 * configure: Regenerate.
32033 * config.in: Regenerate.
32034 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32035 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32036 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32037 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32038 equivalents. Fix markup.
32039 * doc/tm.texi: Regenerate.
32041 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32043 * config/i386/i386.opt: New option mstack-protector-guard=.
32044 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32045 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32046 TARGET_SSP_TLS_GUARD.
32047 * config/i386/i386.c (ix86_option_override_internal): Set
32048 ix86_stack_protector_guard.
32049 * config/i386/i386.md (stack_protect_set): Enable for
32050 TARGET_SSP_TLS_GUARD only.
32051 (stack_protect_set_<mode>): Ditto.
32052 (stack_protect_test): Ditto.
32053 (stack_protect_test_<mode>): Ditto.
32054 * doc/invoke.texi (i386 Option): Document.
32056 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32059 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32060 (S_MODES): Set H_MODE bit.
32061 (SF_MODES): Set only S_MODE and SF_MODE bits.
32062 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32063 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32064 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32065 <MODE_FLOAT>: Likewise.
32067 2013-04-15 Joey Ye <joey.ye@arm.com>
32069 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32071 2013-04-15 Joey Ye <joey.ye@arm.com>
32073 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32075 (thumb_far_jump_used_p): Count instruction size and set
32078 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32080 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32081 * resource.c (mark_target_live_regs): Reformat conditional block.
32083 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32085 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32086 notes, they are emitted only just before final.
32087 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32089 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32091 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32092 * cfgrtl.c (delete_insn): Call it here instead.
32093 * lra-spills.c (lra_final_code_change): Use delete_insn.
32094 * haifa-sched.c (sched_remove_insn): Likewise.
32095 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32096 returning to the nop pool.
32097 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32098 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32100 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32102 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32103 * doc/tm.texi: Regenerated.
32105 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32107 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32110 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32112 * df-core.c (df_find_def): Compare register numbers.
32113 (df_find_use): Likewise.
32115 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32118 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32119 lra_in_progress for return.
32121 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32123 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32124 define_insn into define_insn_and_split and emit movsicc patterns.
32126 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32128 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32130 2013-04-12 Richard Biener <rguenther@suse.de>
32132 * tree-pass.h (TODO_do_not_ggc_collect): New.
32133 * passes.c (execute_one_ipa_transform_pass): Honor
32134 TODO_do_not_ggc_collect.
32135 (execute_one_pass): Likewise.
32138 2013-04-10 Richard Biener <rguenther@suse.de>
32140 * passes.c (init_optimization_passes): Remove reload pass.
32141 * ira.c (do_reload): Merge into ...
32143 (rest_of_handle_reload): Remove.
32144 (pass_reload): Likewise.
32145 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32146 of reload for vzeroupper pass placement.
32148 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32150 PR tree-optimization/56918
32151 PR tree-optimization/56920
32152 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32153 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32154 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32155 use wide_mul_with_sign method.
32157 2013-04-12 Richard Biener <rguenther@suse.de>
32159 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32160 not be considered a gimple constant.
32162 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32164 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32165 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32168 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32169 Jakub Jelinek <jakub@redhat.com>
32171 * opts.c: Include diagnostic-color.h.
32172 (common_handle_option): Handle OPT_fdiagnostics_color_.
32173 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32174 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32175 (diagnostic-color.o): New.
32176 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32177 (diagnostic_color_rule): New enum.
32178 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32179 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32180 the location string.
32181 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32182 either NULL, or color kind.
32183 * diagnostic-color.c: New file.
32184 * diagnostic-color.h: New file.
32185 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32187 * doc/invoke.texi (-fdiagnostics-color): Document.
32188 * pretty-print.h (pp_show_color): Define.
32189 (struct pretty_print_info): Add show_color field.
32190 * diagnostic.c: Include diagnostic-color.h.
32191 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32192 macros. Colorize error:, warning: etc. strings and also the location
32194 (diagnostic_show_locus): Colorize the caret line.
32195 * pretty-print.c: Include diagnostic-color.h.
32196 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32197 inside of %< %> quotes or quoted through q format modifier.
32199 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32201 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32203 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32205 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32206 code in CC_NZ mode.
32207 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32210 2013-04-11 Marek Polacek <polacek@redhat.com>
32212 PR tree-optimization/48184
32213 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32215 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32217 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32218 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32219 (skip_simple_arithmetic): Tidy up.
32220 * tree.h (skip_simple_constant_arithmetic): Declare.
32222 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32224 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32226 2013-04-11 Richard Biener <rguenther@suse.de>
32228 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32229 generate vector constants.
32231 2013-04-11 Richard Biener <rguenther@suse.de>
32233 PR tree-optimization/56878
32234 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32235 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32237 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32238 Prefer to align the DR with the most invariant base address.
32240 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32242 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32245 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32247 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32248 floating-point vector comparisons against 0.
32250 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32252 PR tree-optimization/56899
32253 * fold-const.c (extract_muldiv_1): Apply distributive law
32254 only if TYPE_OVERFLOW_WRAPS (ctype).
32256 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32259 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32260 loading has side effect.
32262 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32264 * config/sparc/sparc.c: Include tree-pass.h.
32265 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32266 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32267 head of file. Change return type. Split off gate function.
32268 (sparc_gate_work_around_errata): New function.
32269 (pass_work_around_errata): New pass definition.
32270 (insert_pass_work_around_errata) New pass insert definition to
32271 insert pass_work_around_errata just after delayed-branch scheduling.
32272 (sparc_option_override): Insert the pass.
32273 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32275 2013-04-10 David S. Miller <davem@davemloft.net>
32277 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32278 or -mcpu=hypersparc.
32280 * target.def (cstore_mode): New hook.
32281 * target.h: Include insn-codes.h
32282 * targhooks.c: Likewise.
32283 (default_cstore_mode): New function.
32284 * targhooks.h: Declare it.
32285 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32286 * doc/tm.texi: Rebuild.
32287 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32288 target hook, rather than inspecting the insn_data.
32289 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32290 (TARGET_CSTORE_MODE): Redefine.
32291 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32293 * config/sparc/predicates.md (cstore_result_operand): New special
32295 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32296 Use it for operand 0.
32297 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32298 (*snesi_special): Likewise.
32299 (*snesi_zero): Likewise.
32300 (*seqsi_zero): Likewise.
32301 (*sltu_insn): Likewise.
32302 (*sgeu_insn): Likewise.
32303 (*seqdi_special): Make operand 0 and comparison operation be of
32305 (*snedi_special): Likewise.
32306 (*snedi_special_vis3): Likewise.
32307 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32308 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32309 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32310 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32311 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32312 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32313 (*sltu_extend_sp64): Likewise.
32314 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32315 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32316 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32317 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32318 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32320 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32322 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32323 (aarch64_start_file): Use the new function.
32325 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32326 Jason Merrill <jason@redhat.com>
32328 * common.opt: Add -gdwarf.
32329 * opts.c (common_handle_option): Handle it.
32330 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32332 2013-04-10 Richard Biener <rguenther@suse.de>
32334 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32335 (execute_one_ipa_transform_pass): But unconditionally here.
32336 (execute_one_pass): And here.
32337 (init_optimization_passes): Remove reload pass.
32338 * tree-pass.h (TODO_ggc_collect): Remove.
32339 (pass_reload): Likewise.
32340 * ira.c (do_reload): Merge into ...
32342 (rest_of_handle_reload): Remove.
32343 (pass_reload): Likewise.
32344 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32345 of reload for vzeroupper pass placement.
32346 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32347 and todo_flags_finish of all passes.
32349 2013-04-10 Richard Biener <rguenther@suse.de>
32351 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32352 first_const_oprnd field, rename first_def_type to first_op_type.
32353 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32354 (vect_get_and_check_slp_defs): Always use the type of the
32355 operand. Allow mixed vect_external_def, vect_constant_def types.
32356 (vect_get_constant_vectors): Handle mixed vect_external_def,
32357 vect_constant_def types.
32359 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32361 PR tree-optimization/55524
32362 * tree-ssa-math-opts.c
32363 (convert_mult_to_fma): Don't use an fms construct
32364 when we don't have an fms operation, but fnma, and it looks
32365 likely that we'll be able to use the latter.
32367 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32369 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32371 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32372 inline fail caused by overwritable functions.
32374 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32376 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32377 unnecessary bits in the constant power of two case.
32379 2013-04-10 Richard Biener <rguenther@suse.de>
32381 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32382 broken code swapping operands.
32383 (vect_build_slp_tree): Do not compute load permutations here.
32384 (vect_analyze_slp_instance): Compute load permutations here,
32385 after building the SLP tree.
32387 2013-04-09 Christian Bruel <christian.bruel@st.com>
32389 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32390 of next/prev_real_insn.
32392 2013-04-09 Jan Hubicka <jh@suse.cz>
32394 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32395 Drop aliased parameter.
32396 (function_and_variable_visibility): Do not handle alias pairs.
32397 * cgraph.c (varpool_externally_visible_p): Update prototype.
32398 * varpool.c (varpool_add_new_variable): Update.
32400 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32402 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32404 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32406 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32408 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32410 2013-04-09 Marek Polacek <polacek@redhat.com>
32412 PR tree-optimization/48762
32413 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32415 2013-04-09 Richard Biener <rguenther@suse.de>
32417 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32419 (vect_build_slp_tree): Likewise.
32420 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32421 calculating the cost of a SLP instance.
32422 (vect_analyze_slp_instance): Use it from here, after building
32425 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32427 PR middle-end/56883
32428 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32429 expand_omp_for_static_chunk): Use simple_p = true in
32430 force_gimple_operand_gsi calls when assigning to addressable decls.
32432 2013-04-09 Jeff Law <law@redhat.com>
32434 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32435 when the boolean was created by converting a wider object which
32436 had a boolean range.
32438 2013-04-09 Richard Biener <rguenther@suse.de>
32440 * tree-vectorizer.h (slp_void_p): Remove.
32441 (slp_tree): Typedef before _slp_tree declaration.
32442 (struct _slp_tree): Use a vector of slp_tree as children.
32443 (vect_get_place_in_interleaving_chain): Remove.
32444 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32446 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32448 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32449 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32450 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32451 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32452 Use slp_node instead of slp_void_p and adjust.
32454 2013-04-09 Richard Biener <rguenther@suse.de>
32456 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32457 work that is not necessary.
32459 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32461 PR tree-optimization/56854
32462 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32463 forward into clobber stmts if it would change MEM_REF lhs into
32466 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32468 * tree.c (type_hash_lookup, type_hash_add): Make static.
32469 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32471 2013-04-09 Richard Biener <rguenther@suse.de>
32473 * tree.h (unsave_expr_now): Remove.
32474 * tree-inline.c (mark_local_for_remap_r): Remove.
32475 (unsave_expr_1): Likewise.
32476 (unsave_r): Likewise.
32477 (unsave_expr_now): Likewise.
32478 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32479 (propagate_tree_value): Likewise.
32481 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32483 * doc/rtl.texi (sequence): Rewrite documentation to match the
32484 current use of SEQUENCE rtl objects.
32485 * rtl.def (SEQUENCE): Likewise.
32487 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32488 Update documentation.
32489 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32490 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32492 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32494 2013-04-08 Teresa Johnson <tejohnson@google.com>
32496 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32497 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32499 (estimate_edge_size_and_time): Add comment to suggest using rounding
32501 (estimate_node_size_and_time): Ditto.
32502 (remap_edge_change_prob): Use helper rounding divide methods.
32503 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32504 (gimple_mod_pow2_value_transform): Ditto.
32505 (gimple_mod_subtract_transform): Ditto.
32506 (gimple_ic_transform): Ditto.
32507 (gimple_stringops_transform): Ditto.
32508 * stmt.c (conditional_probability): Ditto.
32509 (emit_case_dispatch_table): Ditto.
32510 * lto-cgraph.c (merge_profile_summaries): Ditto.
32511 * tree-optimize.c (execute_fixup_cfg): Ditto.
32512 * cfgcleanup.c (try_forward_edges): Ditto.
32513 * cfgloopmanip.c (scale_loop_profile): Ditto.
32515 (duplicate_loop_to_header_edge): Ditto.
32516 (lv_adjust_loop_entry_edge): Ditto.
32517 * tree-vect-loop.c (vect_transform_loop): Ditto.
32518 * profile.c (compute_branch_probabilities): Ditto.
32519 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32520 * lto-streamer-in.c (input_cfg): Ditto.
32521 * gimple-streamer-in.c (input_bb): Ditto.
32522 * ipa-cp.c (update_profiling_info): Ditto.
32523 (update_specialized_profile): Ditto.
32524 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32525 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32527 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32528 (compute_trg_info): Ditto.
32529 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32530 (purge_dead_edges): Ditto.
32531 * loop-unswitch.c (unswitch_loop): Ditto.
32532 * cgraphclones.c (cgraph_clone_edge): Ditto.
32533 (cgraph_clone_node): Ditto.
32534 * tree-inline.c (copy_bb): Ditto.
32535 (copy_edges_for_bb): Ditto.
32536 (initialize_cfun): Ditto.
32537 (copy_cfg_body): Ditto.
32538 (expand_call_inline): Ditto.
32540 2013-04-08 Kai Tietz <ktietz@redhat.com>
32542 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32543 TARGET_CYGWIN64 by TARGET_64BIT.
32545 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32547 * config/epiphany/epiphany.md (GPR_1): New constant.
32548 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32549 * config/epiphany/epiphany.c (gen_compare_reg):
32550 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32551 is already in place.
32552 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32553 Don't require being called during rtl expansion; If y operlaps r0,
32555 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32556 (epiphany_expand_epilogue): Likewise.
32558 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32559 Don't use CC_FPmode for ORDERED / UNORDERED.
32560 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32562 * config/epiphany/constraints.md (CnL): New constraint.
32563 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32564 * config/epiphany/predicates.md (add_operand): Allow 1024.
32566 * config/epiphany/epiphany.md (logical_op): New code iterator.
32567 (op_mnc): New code attribute.
32568 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32569 (mov_f+1, mov_f+2): New peephole2 patterns.
32571 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32572 (cstoresi4): Also allow re-use of zero result when doing a NE
32573 comparison to a non-zero operand.
32574 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32576 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32577 Use gen_addsi3_i / gen_subsi3_i.
32579 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32583 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32584 contain anything but clobbers, at most one __builtin_stack_restore,
32585 optionally debug stmts and final resx, and if it has at least one
32586 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32587 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32588 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32589 which isn't defaut definition, remove them.
32590 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32591 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32592 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32593 with MEM_REF LHS with SSA_NAME address.
32595 2013-04-08 Jeff Law <law@redhat.com>
32597 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32599 2013-04-08 Richard Biener <rguenther@suse.de>
32601 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32603 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32604 determined vector type.
32605 (vect_analyze_data_refs): Likewise.
32606 (vect_get_new_vect_var): Adjust.
32607 (vect_create_destination_var): Preserve SSA name versions.
32608 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32609 not dump anything here.
32611 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32613 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32614 Add member lr_slot_known.
32615 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32617 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32618 Remove code that sets lr_slot_offset according to what a previous
32619 version of epiphany_emit_save_restore used to do.
32620 (epiphany_emit_save_restore): When doing an lr save or restore,
32621 set/verify lr_slot_known and lr_slot_offset.
32623 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32626 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32629 2013-04-08 Richard Biener <rguenther@suse.de>
32631 * alias.c (find_base_term): Fix thinko in previous change.
32633 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32635 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32636 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32637 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32638 if possible to compute val.
32639 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32640 For QImode integers don't require anything about precision. Use
32641 const_with_all_bytes_same to find out if the constant doesn't have
32642 repeated bytes in it.
32644 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32646 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32649 2013-04-08 Marek Polacek <polacek@redhat.com>
32651 PR rtl-optimization/48182
32652 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32655 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32658 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32659 nuses, make sure we have a label.
32661 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32664 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32665 (rs6000_emit_swdiv_low_precision): Remove.
32666 (rs6000_emit_swdiv): Rewrite to handle between one and four
32667 iterations of Newton-Raphson generally; modify required number of
32668 iterations for some cases.
32669 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32671 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32673 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32674 set-but-unused variable.
32676 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32677 basic blocks of released function bodies garbage-collectable.
32679 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32680 (struct rtl_opt_pass): Add TODO_df_finish.
32682 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32684 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32686 * config/arm/constraints.md (q): New constraint.
32687 * config/arm/ldrdstrd.md: New file.
32688 * config/arm/arm.md (ldrdstrd.md) New include.
32689 (arm_movdi): Use "q" instead of "r" constraint
32690 for double-word memory access.
32691 (movdf_soft_insn): Likewise.
32692 * config/arm/vfp.md (movdi_vfp): Likewise.
32693 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32694 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32695 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32696 (mem_ok_for_ldrd_strd): Likewise.
32697 (output_move_double): Update assertion.
32699 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32701 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32703 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32705 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32706 define_insn_and_split.
32707 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32709 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32711 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32712 define_insn_and_split.
32713 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32714 (shiftsi3_compare): New pattern.
32715 (rrx): New pattern.
32716 * config/arm/unspecs.md (UNSPEC_RRX): New.
32718 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32720 * config/arm/arm.md (negdi_extendsidi): New pattern.
32721 (negdi_zero_extendsidi): Likewise.
32723 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32725 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32726 define_insn_and_split.
32727 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32728 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32730 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32732 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32733 define_insn_and_split.
32734 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32735 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32737 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32739 * config/arm/arm.md (subsi3_carryin): New pattern.
32740 (subsi3_carryin_const): Likewise.
32741 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32742 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32744 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32746 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32748 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32750 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32751 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32753 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32755 * config/arm/arm.c (arm_expand_builtin): Change fcode
32756 type to unsigned int.
32758 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32760 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32762 2013-04-04 Ian Lance Taylor <iant@google.com>
32764 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32767 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32769 PR middle-end/56729
32770 * df-scan.c (df_insn_delete): Disable failing assert.
32772 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32774 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32775 New function prototype.
32776 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32777 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32778 (arm_builtin_vectorized_function): New function.
32780 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32782 * config/arm/arm_neon_builtins.def: New file.
32783 * config/arm/arm.c (neon_builtin_data): Move contents to
32784 arm_neon_builtins.def.
32785 (enum arm_builtins): Include neon builtin definitions.
32786 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32787 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32789 2013-04-04 Marek Polacek <polacek@redhat.com>
32791 PR tree-optimization/48186
32792 * predict.c (maybe_hot_frequency_p): Return false if
32793 HOT_BB_FREQUENCY_FRACTION is 0.
32794 (cgraph_maybe_hot_edge_p): Likewise.
32796 2013-04-04 Richard Biener <rguenther@suse.de>
32798 PR tree-optimization/56826
32799 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32802 2013-04-04 Richard Biener <rguenther@suse.de>
32804 PR tree-optimization/56213
32805 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32806 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32808 2013-04-04 Richard Biener <rguenther@suse.de>
32810 PR tree-optimization/56837
32811 * tree-loop-distribution.c (classify_partition): For non-zero
32812 values require that the value has the same precision as its
32813 mode to be useful as memset value.
32815 2013-04-03 Nick Clifton <nickc@redhat.com>
32817 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32818 (fmssf4): Use fmsf.s on E3V5 architectures.
32819 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32820 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32822 2013-04-03 Jeff Law <law@redhat.com>
32824 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32825 (lra-eliminations.o): Likewise.
32827 2013-04-03 Teresa Johnson <tejohnson@google.com>
32829 * gcov-io.c (compute_working_sets): Moved most of body of old
32830 compute_working_sets here from profile.c.
32831 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32832 (gcov_working_set_t): Moved typedef here from basic-block.h
32833 (compute_working_set): Declare.
32834 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32835 (get_working_sets): Renamed from compute_working_set,
32836 replace most of body with call to new compute_working_sets.
32837 (get_exec_counts): Replace call to compute_working_sets
32838 to get_working_sets.
32839 * profile.h (get_working_sets): Renamed from compute_working_set.
32840 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32841 to get_working_sets.
32842 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32843 * gcov-dump.c (dump_working_sets): New function.
32845 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32847 * hwint.c (sext_hwi, zext_hwi): New functions.
32848 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32849 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32850 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32851 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32852 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32853 (sext_hwi, zext_hwi): New functions.
32855 2013-04-03 Jeff Law <law@redhat.com>
32857 PR tree-optimization/56799
32858 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32859 back test for widening conversion erroneously dropped in prior change.
32861 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32864 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32865 instead of next_real_insn.
32867 2013-04-03 Marek Polacek <polacek@redhat.com>
32870 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32872 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32875 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32877 (thumb1_output_casesi): Likewise.
32878 (thumb2_output_casesi): Likewise.
32880 2013-04-03 Richard Biener <rguenther@suse.de>
32882 PR tree-optimization/56817
32883 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32885 (tree_unroll_loops_completely_1): ... new function to manually
32886 walk the loop tree, properly defering outer loops of unrolled
32887 loops to later iterations.
32889 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32891 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32892 (vectorizable_load): Likewise.
32893 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32894 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32896 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32898 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32901 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32903 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32905 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32907 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32909 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32911 PR tree-optimization/56790
32912 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32915 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32917 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32919 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32920 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32923 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32926 * tree.h (force_folding_builtin_constant_p): New decl.
32927 * builtins.c (force_folding_builtin_constant_p): New variable.
32928 (fold_builtin_constant_p): Fold immediately also if
32929 force_folding_builtin_constant_p.
32931 2013-04-03 Richard Biener <rguenther@suse.de>
32933 PR tree-optimization/56812
32934 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32935 DRs of the same interleaving chain are independent.
32937 2013-04-02 Jason Merrill <jason@redhat.com>
32939 * gdbinit.in (pbb): Use debug fn.
32941 2013-04-02 Lawrence Crowl <crowl@google.com>
32943 * sese.h (struct ivtype_map_elt_s): Remove unused.
32944 (extern debug_ivtype_map): Remove unused.
32945 (extern eq_ivtype_map_elts): Remove unused.
32946 * sese.c (debug_ivtype_map): Removed unused.
32947 (debug_ivtype_map_1): Removed unused.
32948 (debug_ivtype_elt): Remove unused.
32949 (eq_ivtype_map_elts): Remove unused.
32951 2013-04-02 Kai Tietz <ktietz@redhat.com>
32954 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32955 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32956 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32958 (legitimize_pe_coff_symbol): Likewise.
32959 (is_imported_p): New helper-function.
32960 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32961 for Windows x64 targets.
32962 (ix86_expand_prologue): Optimize for pe-coff targets.
32963 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32964 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32965 medium/large code-model.
32966 (legitimize_pic_address): Likewise.
32967 (legitimize_tls_address): Likewise.
32968 (ix86_expand_call): Likewise.
32969 (x86_output_mi_thunk): Likewise.
32970 (get_dllimport_decl): Add new beimport argument.
32971 (construct_plt_address): Don't assert for x64 pe-coff targets.
32972 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32974 (SYMBOL_FLAG_STUBVAR): New macro.
32975 (SYMBOL_REF_STUBVAR_P): Likewise.
32976 * config/i386/winnt.c (stub_list): New structure.
32977 (stub_head): New local variable.
32978 (i386_pe_record_stub): New function.
32979 (i386_pe_file_end): Emit refptr-stubs.
32981 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32983 PR rtl-optimization/56745
32984 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32985 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32988 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32989 and both of them are MEM_REFs, just compare first argument for
32990 equality and attempt to deal even with differing offsets.
32993 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32994 of gimple_clobber_p to be MEM_REF.
32995 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32996 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32997 after gimplification.
32998 * asan.c (get_mem_ref_of_assignment): Don't instrument
32999 gimple_clobber_p stmts.
33000 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33001 gimple_clobber_p stmt if they have MEM_REF lhs and
33002 are dead because of another gimple_clobber_p stmt.
33003 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33004 gimple_clobber_p stmts like debug stmts.
33005 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33006 that refer to unused VAR_DECLs or uninitialized values.
33007 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33008 gimple_clobber_p stmts if they refer to removed parameters.
33009 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33012 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33014 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33015 using SWI48 mode attribute.
33017 2013-04-02 Wei Mi <wmi@google.com>
33019 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33020 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33021 *<rotate_insn><mode>3_mask in i386.md.
33023 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33025 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33027 2013-04-02 Richard Biener <rguenther@suse.de>
33029 PR tree-optimization/56778
33030 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33031 Runtime alias tests are not supported for gather loads.
33032 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33033 stmts referenced from SSA operands before updating SSA form.
33035 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33036 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33038 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33039 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33040 * config/arm/cortex-a53.md: New file.
33041 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33042 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33043 * config/arm/arm.c (arm_issue_rate): Likewise.
33044 * config/arm/arm-tune.md: Regenerate
33045 * config/arm/arm-tables.opt: Regenerate.
33046 * config/arm/arm-cores.def: Add cortex-a53.
33048 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33050 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33053 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33055 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33056 scalar load/store operations using B/H registers.
33057 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33059 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33061 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33063 * config/aarch64/aarch64.c
33064 (aarch64_simd_scalar_immediate_valid_for_move): New.
33065 * config/aarch64/aarch64-protos.h
33066 (aarch64_simd_scalar_immediate_valid_for_move): New.
33067 * config/aarch64/constraints.md (Dh, Dq): New.
33068 * config/aarch64/iterators.md (hq): New.
33070 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33072 * reorg.c (get_branch_condition): Deal with conditional returns.
33073 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33075 2013-04-01 Wei Mi <wmi@google.com>
33077 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33078 Truncate operand 2 using %b asm operand modifier.
33079 (*<shift_insn><mode>3_mask): Ditto.
33080 (*<rotate_insn><mode>3_mask): Ditto.
33082 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33084 PR middle-end/56798
33085 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33087 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33089 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33091 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33093 2013-03-30 Lawrence Crowl <crowl@google.com>
33095 * dse.c (clear_alias_sets): Remove never set.
33096 (disqualified_clear_alias_sets): Remove never set.
33097 (clear_alias_mode_pool): Remove never set.
33098 (dse_step0): Remove condition that is never true.
33099 (canon_address): Remove condition that is never true.
33100 (dse_step7): Remove condition that is never true.
33101 (rest_of_handle_dse): Remove condition that is never true.
33102 (rest_of_handle_dse::did_global): Remove never read from above.
33103 (dse_step2_spill): Remove never called from above.
33104 (dse_step5_spill): Remove never called from above.
33106 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33108 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33109 JUMP_TABLE_DATA changes.
33110 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33111 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33112 (Insns) <jump_table_data>: New entry.
33113 * doc/tm.texi: Regenerate.
33115 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33117 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33118 for table jump at the end of a basic block using tablejump_p.
33119 * targhooks.c (default_invalid_within_doloop): Likewise.
33120 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33121 target hook implementation that is identical to the default hook.
33122 (rs6000_invalid_within_doloop): Remove.
33124 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33125 unused variable from tablejump_p call.
33127 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33128 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33129 (INSN_DELETED_P): Likewise.
33130 (emit_jump_table_data): New prototype.
33131 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33132 after 4th as unused.
33133 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33134 * sched-vis.c (print_insn): Likewise.
33135 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33136 insn for compatibility with back ends that use next_active_insn to
33137 identify jump table data.
33138 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33139 (remove_insn): Likewise.
33140 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33142 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33143 (emit_jump_table_data): New function.
33145 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33146 basic block, a JUMP_TABLE_DATA never is.
33147 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33148 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33149 off from code handling real insns.
33150 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33151 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33152 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33153 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33154 is not a NONDEBUG_INSN_P.
33155 * ira-costs.c (scan_one_insn): Likewise.
33156 * jump.c (mark_all_labels): Likewise.
33157 (mark_jump_label_1): Likewise.
33158 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33159 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33161 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33162 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33163 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33164 JUMP_TABLE_DATA_P insns.
33165 (calculate_elim_costs_all_insns): Likewise.
33166 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33167 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33168 (delete_output_reload): Code style fixups.
33169 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33170 insn flags on this non-insn.
33171 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33172 as scheduling barriers, for pre-change compatibility.
33173 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33174 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33176 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33177 redundant JUMP_TABLE_DATA_P test.
33178 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33179 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33180 (frv_for_each_packet): Likewise.
33181 * config/i386/i386.c (min_insn_size): Likewise.
33182 (ix86_avoid_jump_mispredicts): Likewise.
33183 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33184 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33185 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33186 (mips16_insn_length): Robustify.
33187 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33188 (mips16_split_long_branches): Likewise.
33189 * config/pa/pa.c (pa_combine_instructions): Likewise.
33190 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33191 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33192 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33193 as contributing to pool range lengths.
33194 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33195 Remove redundant JUMP_TABLE_DATA_P test.
33196 (sh_loop_align): Likewise.
33197 (split_branches): Likewise.
33198 (sh_insn_length_adjustment): Likewise.
33199 * config/spu/spu.c (get_branch_target): Likewise.
33201 2013-03-29 Jan Hubicka <jh@suse.cz>
33203 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33204 gcov streaming; stream hot bb threshold to ltrans.
33205 * predict.c (get_hot_bb_threshold): Break out from ....
33206 (maybe_hot_count_p): ... here.
33207 (set_hot_bb_threshold): New function.
33208 * lto-section-in.c (lto_section_name): Add profile.
33209 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33210 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33211 and data-streamer.h
33212 (histogram_entry): New structure.
33213 (histogram, histogram_pool): New global vars.
33214 (histogram_hash): New structure.
33215 (histogram_hash::hash): New method.
33216 (histogram_hash::equal): Likewise.
33217 (account_time_size): New function.
33218 (cmp_counts): New function.
33219 (dump_histogram): New function.
33220 (ipa_profile_generate_summary): New function.
33221 (ipa_profile_write_summary): New function.
33222 (ipa_profile_read_summary): New function.
33223 (ipa_profile): Decide on threshold.
33224 (pass_ipa_profile): Add ipa_profile_write_summary and
33225 ipa_profile_read_summary.
33226 * Makefile.in (ipa.o): Update dependencies.
33227 * lto-streamer.h (LTO_section_ipa_profile): New section.
33229 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33231 * tree.h (VAR_P): New.
33233 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33236 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33238 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33240 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33241 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33242 (control_flow_insn_p): Likewise.
33243 * cfgrtl.c (duplicate_insn_chain): Likewise.
33244 * final.c (get_attr_length_1): Likewise.
33245 (shorten_branches): Likewise.
33246 (final_scan_insn): Likewise.
33247 * function.c (instantiate_virtual_regs): Likewise.
33248 * gcse.c (insert_insn_end_basic_block): Likewise.
33249 * ira-costs.c (scan_one_insn): Likewise.
33250 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33251 * lra.c (check_rtl): Likewise.
33252 * reload1.c (elimination_costs_in_insn): Likewise.
33253 * reorg.c (follow_jumps): Likewise.
33255 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33256 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33257 (thumb_far_jump_used_p): Likewise.
33258 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33259 (workaround_speculation): Likewise.
33260 (add_sched_insns_for_speculation): Likewise.
33261 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33262 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33263 (frv_for_each_packet): Likewise.
33264 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33265 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33266 (final_emit_insn_group_barriers): Likewise.
33267 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33268 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33269 (mips16_insn_length): Likewise.
33270 * config/pa/pa.c (pa_reorg): Likewise.
33271 (pa_combine_instructions): Likewise.
33272 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33273 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33274 (sh_reorg): Likewise.
33275 (split_branches): Likewise.
33276 * config/spu/spu.c (get_branch_target): Likewise.
33278 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33281 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33283 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33284 Fix declaration name.
33286 2013-03-28 Lawrence Crowl <crowl@google.com>
33288 * graphds.h (struct graph.indicies): Remove unused.
33289 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33290 (SCOP_ORIGINAL_PDDRS): Remove unused.
33291 * sese.h (extern insert_loop_close_phis): Removed unused.
33292 (extern insert_guard_phis): Removed unused.
33293 (extern ivtype_map_elt_info): Removed unused.
33294 (new_ivtype_map_elt): Removed unused.
33295 * sese.c (ivtype_map_elt_info): Removed unused.
33297 2013-03-28 Lawrence Crowl <crowl@google.com>
33299 * Makefile.in: Add several missing include dependences.
33301 (test-dump.o): New. This object is not added to any executable,
33302 but is present for ad-hoc testing.
33304 (debug (const bitmap_head_def &)): New.
33305 (debug (const bitmap_head_def *)): New.
33307 (extern debug (const bitmap_head_def &)): New.
33308 (extern debug (const bitmap_head_def *)): New.
33310 (debug (edge_def &)): New.
33311 (debug (edge_def *)): New.
33313 (debug (basic_block_def &)): New.
33314 (debug (basic_block_def *)): New.
33316 (dump_node (const_tree, int, FILE *)): Correct source file.
33318 (debug (die_struct &)): New.
33319 (debug (die_struct *)): New.
33321 (extern debug (die_struct &)): New.
33322 (extern debug (die_struct *)): New.
33323 * gimple-pretty-print.c
33324 (debug (gimple_statement_d &)): New.
33325 (debug (gimple_statement_d *)): New.
33326 * gimple-pretty-print.h
33327 (extern debug (gimple_statement_d &)): New.
33328 (extern debug (gimple_statement_d *)): New.
33330 (debug (ira_allocno_copy &)): New.
33331 (debug (ira_allocno_copy *)): New.
33332 (debug (ira_allocno &)): New.
33333 (debug (ira_allocno *)): New.
33335 (extern debug (ira_allocno_copy &)): New.
33336 (extern debug (ira_allocno_copy *)): New.
33337 (extern debug (ira_allocno &)): New.
33338 (extern debug (ira_allocno *)): New.
33340 (debug (live_range &)): New.
33341 (debug (live_range *)): New.
33343 (debug (lra_live_range &)): New.
33344 (debug (lra_live_range *)): New.
33346 (debug (lra_live_range &)): New.
33347 (debug (lra_live_range *)): New.
33349 (debug (omega_pb_d &)): New.
33350 (debug (omega_pb_d *)): New.
33352 (extern debug (omega_pb_d &)): New.
33353 (extern debug (omega_pb_d *)): New.
33355 (debug (const rtx_def &)): New.
33356 (debug (const rtx_def *)): New.
33358 (debug_tree (tree): Move within file.
33359 (debug_raw (const tree_node &)): New.
33360 (debug_raw (const tree_node *)): New.
33361 (dump_tree_via_hooks (const tree_node *, int)): New.
33362 (debug (const tree_node &)): New.
33363 (debug (const tree_node *)): New.
33364 (debug_verbose (const tree_node &)): New.
33365 (debug_verbose (const tree_node *)): New.
33366 (debug_head (const tree_node &)): New.
33367 (debug_head (const tree_node *)): New.
33368 (debug_body (const tree_node &)): New.
33369 (debug_body (const tree_node *)): New.
33370 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33371 (debug (vec<tree, va_gc> &)): New.
33372 (debug (vec<tree, va_gc> *)): New.
33374 (extern debug (const rtx_def &)): New.
33375 (extern debug (const rtx_def *)): New.
33377 (debug_raw (simple_bitmap_def &)): New.
33378 (debug_raw (simple_bitmap_def *)): New.
33379 (debug (simple_bitmap_def &)): New.
33380 (debug (simple_bitmap_def *)): New.
33382 (extern debug (simple_bitmap_def &)): New.
33383 (extern debug (simple_bitmap_def *)): New.
33384 (extern debug_raw (simple_bitmap_def &)): New.
33385 (extern debug_raw (simple_bitmap_def *)): New.
33387 (debug (vinsn_def &)): New.
33388 (debug (vinsn_def *)): New.
33389 (debug_verbose (vinsn_def &)): New.
33390 (debug_verbose (vinsn_def *)): New.
33391 (debug (expr_def &)): New.
33392 (debug (expr_def *)): New.
33393 (debug_verbose (expr_def &)): New.
33394 (debug_verbose (expr_def *)): New.
33395 (debug (vec<rtx> &)): New.
33396 (debug (vec<rtx> *)): New.
33398 (extern debug (vinsn_def &)): New.
33399 (extern debug (vinsn_def *)): New.
33400 (extern debug_verbose (vinsn_def &)): New.
33401 (extern debug_verbose (vinsn_def *)): New.
33402 (extern debug (expr_def &)): New.
33403 (extern debug (expr_def *)): New.
33404 (extern debug_verbose (expr_def &)): New.
33405 (extern debug_verbose (expr_def *)): New.
33406 (extern debug (vec<rtx> &)): New.
33407 (extern debug (vec<rtx> *)): New.
33409 (_list_iter_cond_expr): Make inline instead of static.
33411 (debug (sreal &)): New.
33412 (debug (sreal *)): New.
33414 (extern debug (sreal &)): New.
33415 (extern debug (sreal *)): New.
33417 (extern debug_raw (const tree_node &)): New.
33418 (extern debug_raw (const tree_node *)): New.
33419 (extern debug (const tree_node &)): New.
33420 (extern debug (const tree_node *)): New.
33421 (extern debug_verbose (const tree_node &)): New.
33422 (extern debug_verbose (const tree_node *)): New.
33423 (extern debug_head (const tree_node &)): New.
33424 (extern debug_head (const tree_node *)): New.
33425 (extern debug_body (const tree_node &)): New.
33426 (extern debug_body (const tree_node *)): New.
33427 (extern debug (vec<tree, va_gc> &)): New.
33428 (extern debug (vec<tree, va_gc> *)): New.
33430 (debug (struct loop &)): New.
33431 (debug (struct loop *)): New.
33432 (debug_verbose (struct loop &)): New.
33433 (debug_verbose (struct loop *)): New.
33434 * tree-dump.c: Add header dependence.
33436 (extern debug (struct loop &)): New.
33437 (extern debug (struct loop *)): New.
33438 (extern debug_verbose (struct loop &)): New.
33439 (extern debug_verbose (struct loop *)): New.
33441 (debug (data_reference &)): New.
33442 (debug (data_reference *)): New.
33443 (debug (vec<data_reference_p> &)): New.
33444 (debug (vec<data_reference_p> *)): New.
33445 (debug (vec<ddr_p> &)): New.
33446 (debug (vec<ddr_p> *)): New.
33448 (extern debug (data_reference &)): New.
33449 (extern debug (data_reference *)): New.
33450 (extern debug (vec<data_reference_p> &)): New.
33451 (extern debug (vec<data_reference_p> *)): New.
33452 (extern debug (vec<ddr_p> &)): New.
33453 (extern debug (vec<ddr_p> *)): New.
33455 (debug (pt_solution &)): New.
33456 (debug (pt_solution *)): New.
33458 (extern debug (pt_solution &)): New.
33459 (extern debug (pt_solution *)): New.
33461 (debug (_var_map &)): New.
33462 (debug (_var_map *)): New.
33463 (debug (tree_live_info_d &)): New.
33464 (debug (tree_live_info_d *)): New.
33466 (extern debug (_var_map &)): New.
33467 (extern debug (_var_map *)): New.
33468 (extern debug (tree_live_info_d &)): New.
33469 (extern debug (tree_live_info_d *)): New.
33471 2013-03-28 Jan Hubicka <jh@suse.cz>
33473 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33475 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33477 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33478 record only when desired or required.
33480 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33482 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33483 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33485 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33487 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33488 (*andsi3_compare0_uxtw): New pattern.
33489 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33490 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33492 2013-03-28 Jan Hubicka <jh@suse.cz>
33494 * data-streamer-in.c (streamer_read_gcov_count): New function.
33495 * gimple-streamer-out.c: Include value-prof.h.
33496 (output_gimple_stmt): Output histogram.
33497 (output_bb): Use streamer_write_gcov_count.
33498 * value-prof.c: Include data-streamer.h
33499 (dump_histogram_value): Add HIST_TYPE_MAX.
33500 (stream_out_histogram_value): New function.
33501 (stream_in_histogram_value): New function.
33502 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33503 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33504 * data-streamer-out.c (streamer_write_gcov_count): New function.
33505 (streamer_write_gcov_count_stream): New function.
33506 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33507 (lto_output_node): Likewise.
33508 (input_node, input_edge): Likewise.
33509 * lto-streamer-out.c (output_cfg): Update streaming.
33510 * lto-streamer-in.c (input_cfg): Likewise.
33511 * data-streamer.h (streamer_write_gcov_count,
33512 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33513 * gimple-streamer-in.c: Include value-prof.h
33514 (input_gimple_stmt): Input histograms.
33515 (input_bb): Update profile streaming.
33517 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33519 * genmodes.c (emit_max_int): New function.
33520 (emit_insn_modes_h): Added call to emit_max_function.
33521 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33523 * machmode.def: Fixed comment.
33525 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33527 * combine.c (try_combine): Removed useless assert.
33528 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33530 2013-03-28 Marek Polacek <polacek@redhat.com>
33531 Richard Biener <rguenther@suse.de>
33533 PR tree-optimization/56695
33534 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33535 build signed result of a vector comparison.
33536 * tree-cfg.c (verify_gimple_comparison): Check that a result
33537 of a vector comparison has signed type.
33539 2013-03-28 Richard Biener <rguenther@suse.de>
33541 PR tree-optimization/37021
33542 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33543 do not restrict gaps between groups.
33544 * tree-vect-stmts.c (vectorizable_load): Properly account for
33545 a gap between groups.
33547 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33549 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33550 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33553 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33555 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33556 * doc/extend.texi (Named Address Spaces): Ditto.
33557 (Variable Attributes): Ditto.
33559 2013-03-27 Kai Tietz <ktietz@redhat.com>
33561 * config.build: Add support for cygwin x64 target.
33562 * config.gcc: Likewise.
33563 * config.host: Likewise.
33564 * configure.ac: Likewise
33565 * configure: Regenerated.
33567 2013-03-27 Kai Tietz <ktietz@redhat.com>
33569 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33570 * config/i386/t-cygwin-w64: New file.
33571 * config/i386/cygwin-w64.h: New file.
33572 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33573 and add support for x64-cygwin target.
33574 (CPP_SPEC): Likewise.
33575 (CXX_WRAP_SPEC_LIST): Undefine before define.
33576 (LIBGCJ_SONAME): Use 15 as version.
33578 2013-03-27 Richard Biener <rguenther@suse.de>
33580 PR tree-optimization/56716
33581 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33582 dumping for ref nodes.
33584 2013-03-27 Martin Jambor <mjambor@suse.cz>
33586 PR tree-optimization/55334
33587 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33588 restricted pointers to arrays.
33590 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33592 * Makefile.in (.SUFFIXES): Add .cc.
33593 (.c.o): Apply same recipe for implicit rule .cc.o.
33595 2013-03-27 Richard Biener <rguenther@suse.de>
33597 PR tree-optimization/37021
33598 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33599 REALPART/IMAGPART_EXPRs around the supported refs.
33600 * tree-ssa-structalias.c (find_func_aliases): Assume that
33601 floating-point values are not used to transfer pointers.
33603 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33605 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33606 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33607 * doc/tm.texi: Regenerate.
33608 * targhooks.h (default_has_ifunc_p): New.
33609 * targhooks.c (default_has_ifunc_p): Ditto.
33610 * config/linux-protos.h: New file.
33611 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33612 hook for linux which disables support of indirect functions in android.
33613 * config/linux-android.c: New file.
33614 * config/t-linux-android.c: Ditto.
33615 * config.gcc: Added new object file linux-android.o.
33616 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33617 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33618 * varasm.c (do_assemble_alias): Likewise.
33619 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33620 doesn't support indirect functions.
33621 * configure: Regenerate.
33623 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33626 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33627 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33630 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33632 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33634 2013-03-27 Terry Guo <terry.guo@arm.com>
33636 * config/arm/arm-cores.def: Added core cortex-r7.
33637 * config/arm/arm-tune.md: Regenerated.
33638 * config/arm/arm-tables.opt: Regenerated.
33639 * doc/invoke.texi: Added entry for core cortex-r7.
33641 2013-03-27 Walter Lee <walt@tilera.com>
33643 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33644 double-decrement of next_scratch_regno.
33646 2013-03-27 Walter Lee <walt@tilera.com>
33648 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33650 (insn_v1mulus): Ditto.
33651 (insn_v2muls): Ditto.
33653 2013-03-27 Walter Lee <walt@tilera.com>
33655 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33656 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33658 2013-03-27 Walter Lee <walt@tilera.com>
33660 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33661 (*sibcall_value): Ditto.
33663 2013-03-27 Walter Lee <walt@tilera.com>
33665 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33666 (insn_mnz_v8qi): ... this ...
33667 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33669 (insn_v<n>mnz): Replaced by ...
33670 (insn_v1mnz): ... this ...
33671 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33673 (insn_mz_<mode>): Replaced by ...
33674 (insn_mz_v8qi): ... this ...
33675 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33677 (insn_v<n>mz): Replaced by ...
33678 (insn_v1mz): ... this ...
33679 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33682 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33684 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33686 2013-03-26 Roland McGrath <mcgrathr@google.com>
33688 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33689 than fprintf with a non-constant, non-format string.
33691 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33693 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33694 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33695 operand 0 predicate.
33696 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33697 attribute. Use general_x64nomem_operand as operand 1 predicate.
33698 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33699 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33700 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33701 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33702 (mov<mode>_insv_1): Remove expander. Merge insn with
33703 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33704 Use general_x64nomem_operand as operand 1 predicate.
33705 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33706 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33707 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33708 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33709 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33710 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33711 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33712 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33713 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33714 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33715 (general_x64nomem_operand): Ditto.
33717 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33719 * config/rtems.opt: Add -pthread option.
33721 2013-03-26 Richard Biener <rguenther@suse.de>
33723 * alias.c (find_base_term): Avoid redundant and not used recursion.
33724 (base_alias_check): Get the initial base term from the caller.
33725 (true_dependence_1): Compute and pass base terms to base_alias_check.
33726 (write_dependence_p): Likewise.
33727 (may_alias_p): Likewise.
33729 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33731 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33732 PC-relative load in SI modes and above only.
33734 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33736 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33737 * config/arm/iwmmxt.md (WCGR0): Update.
33738 (WCGR1, WCGR2, WCGR3): Likewise.
33740 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33742 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33743 Use x64 and nox64 isa attributes.
33745 2013-03-26 Richard Biener <rguenther@suse.de>
33747 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33748 alignment computations and rely on get_object_alignment_1
33749 for the !TYPE_P case.
33750 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33752 2013-03-26 Walter Lee <walt@tilera.com>
33754 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33755 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33757 2013-03-25 Jeff Law <law@redhat.com>
33759 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33760 check for INTEGRAL_TYPE_P that was missing due to checking in
33761 wrong version of prior patch.
33763 2013-03-25 Walter Lee <walt@tilera.com>
33765 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33766 TILEGX_INSN_SHUFFLEBYTES1.
33767 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33769 (tilegx_builtins): Ditto.
33770 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33772 2013-03-25 Walter Lee <walt@tilera.com>
33774 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33775 (floatunssisf2): New pattern.
33776 (floatsidf2): New pattern.
33777 (floatunssidf2): New pattern.
33779 2013-03-25 Walter Lee <walt@tilera.com>
33781 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33782 tests for constraint J, K, N, P.
33784 2013-03-25 Walter Lee <walt@tilera.com>
33786 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33787 Use indirect/pcrel encoding.
33788 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33791 2013-03-25 Steve Ellcey <sellcey@mips.com>
33793 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33794 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33795 * config/mips/mips.c (mips_option_override): Set IMADD default.
33796 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33797 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33798 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33799 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33800 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33802 2013-03-25 Jeff Law <law@redhat.com>
33804 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33805 slightly to avoid creating and folding useless trees. Simplify
33806 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33808 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33810 * config/i386/i386.md (*zero_extendsidi2): Merge with
33811 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33812 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33813 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33814 targets. Clarify comment.
33816 2013-03-25 Martin Jambor <mjambor@suse.cz>
33818 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33819 pass-through jump functions differently.
33820 (ipa_read_jump_function): Likewise. Also use setter functions to set
33823 2013-03-25 Martin Jambor <mjambor@suse.cz>
33825 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33826 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33828 (ipa_get_indirect_edge_target): New function.
33829 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33830 ipa_get_indirect_edge_target. Update all callers.
33831 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33832 ipa_get_indirect_edge_target_1 instead of calling
33833 ipa_get_indirect_edge_target.
33834 (create_specialized_node): Pass aggvlas to
33835 ipcp_discover_new_direct_edges.
33837 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33839 * config/arm/arm.md (f_sels, f_seld): New types.
33840 (*cmov<mode>): New pattern.
33841 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33844 2013-03-25 Kai Tietz <ktietz@redhat.com>
33846 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33847 POSIX-printf for mingw-hosted builds.
33849 2013-03-25 Richard Biener <rguenther@suse.de>
33851 PR middle-end/56694
33852 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33853 must-not-throw stmt location.
33855 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33857 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33858 Emit load-acquire versions when acq is true.
33859 (arm_emit_store_exclusive): Add rel parameter.
33860 Emit store-release versions when rel is true.
33861 (arm_split_compare_and_swap): Use acquire-release instructions
33863 of barriers when appropriate.
33864 (arm_split_atomic_op): Likewise.
33865 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33866 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33867 (VUNSPEC_SLX): Likewise.
33868 (VUNSPEC_LDA): Likewise.
33869 (VUNSPEC_STL): Likewise.
33870 * config/arm/sync.md (atomic_load<mode>): New pattern.
33871 (atomic_store<mode>): Likewise.
33872 (arm_load_acquire_exclusive<mode>): Likewise.
33873 (arm_load_acquire_exclusivesi): Likewise.
33874 (arm_load_acquire_exclusivedi): Likewise.
33875 (arm_store_release_exclusive<mode>): Likewise.
33877 2013-03-25 Catherine Moore <clm@codesourcery.com>
33879 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33880 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33881 * config/mip/predicates.md (lwsp_swsp_operand,
33882 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33883 sb16_operand, db4_operand, db7_operand, ib3_operand,
33884 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33885 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33886 andi16_operand): New predicates.
33887 * config/mips/mips.md (compression): New attribute.
33888 (enabled): New attribute.
33889 (length): Consider compression in computing length.
33890 (shift_compression): New code attribute.
33891 (*add<mode>3): New operands. Record compression.
33892 (sub<mode>3): Likewise.
33893 (one_cmpl<mode>2): Likewise.
33894 (*and<mode>3): Likewise.
33895 (*ior<mode>3): Likewise.
33896 (unnamed pattern for xor): Likewise.
33897 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33898 (*<optab><mode>3): Likewise.
33899 (*mov<mode>_internal: Likewise.
33900 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33901 (mips_unsigned_immediate_p): New.
33902 (umips_lwsp_swsp_address_p): New.
33903 (m16_based_address_p): New.
33904 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33905 (mips_unsigned_immediate_p): New prototype.
33906 (lwsp_swsp_address_p): New prototype.
33907 (m16_based_address_p): New prototype.
33908 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33909 (mips_signed_immediate_p): New function.
33910 (m16_based_address_p): New function.
33911 (lwsp_swsp_address_p): New function.
33912 (mips_print_operand_punctuation): Recognize short delay slot insns
33913 for microMIPS.add<mode>3"
33915 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33918 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33919 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33921 2013-03-25 Richard Biener <rguenther@suse.de>
33923 PR tree-optimization/56689
33924 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33927 2013-03-25 Richard Biener <rguenther@suse.de>
33929 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33931 (memory_references): Likewise.
33932 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33933 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33934 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33935 (gather_mem_refs_in_loops): Fold into ...
33936 (analyze_memory_references): ... this. Move initialization
33937 to tree_ssa_lim_initialize.
33938 (fill_always_executed_in): Rename to ...
33939 (fill_always_executed_in_1): ... this.
33940 (fill_always_executed_in): Move contains_call computation to
33941 this new function from ...
33942 (tree_ssa_lim_initialize): ... here.
33943 (tree_ssa_lim): Call fill_always_executed_in.
33945 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33947 * postreload.c (reload_combine): Fix code detecting returns.
33949 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33951 * function.c (emit_use_return_register_into_block): On cc0 targets,
33952 do not emit the sequence between cc0 setter and user.
33954 2013-03-25 Kai Tietz <ktietz@redhat.com>
33956 * config/i386/predicates.md (local_symbolic_operand): Interpret
33957 dll-imported symbols as none-local.
33959 2013-03-25 Richard Biener <rguenther@suse.de>
33961 * tree-ssa-loop-im.c (struct depend): Remove.
33962 (struct lim_aux_data): Make depends a vec of gimples.
33963 (free_lim_aux_data): Adjust.
33964 (add_dependency): Likewise.
33965 (set_level): Likewise.
33967 2013-03-25 Richard Biener <rguenther@suse.de>
33969 PR middle-end/56434
33970 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33971 the pointer returned by calls with ECF_MALLOC set.
33973 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33975 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33977 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33979 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33980 using MMXMODE mode iterator.
33981 (*move<mode>_internal): Merge with *movv2sf_internal and
33982 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33984 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33986 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33987 (record_last_mem_set_info): Likewise.
33989 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33990 of XNEWVEC followed by memset.
33991 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33993 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33995 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33996 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33997 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33998 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33999 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34000 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34001 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34002 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34003 BARRIER_P instead of GET_CODE.
34005 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34007 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34008 inaccuracy in the probing code.
34010 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34011 (ctrapdi4): Likewise.
34013 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34015 * calls.c (expand_call): Add missing guard to code handling return
34016 of non-BLKmode structures in MSB.
34017 * function.c (expand_function_end): Likewise.
34019 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34021 * combine.c (try_combine): Adjust comment. Do not add the set of
34022 insn #0 if the destination indirectly is set or dies in insn #2.
34023 Tidy up code to distribute a new note.
34025 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34027 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34028 also for alternatives 16 and 17.
34030 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34032 * config/i386/sse.md (*mov<mode>_internal): Merge with
34033 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34034 Emit insn template depending on type attribute. Use
34035 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34036 movd instead of movq mnemonic for interunit moves. Rewrite mode
34037 attribute calculation. Remove unit attribute calculation.
34038 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34039 Set prefix_data16 attribute for DImode ssemov types.
34040 Use Ym instead of y for SSE-MMX conversion alternatives.
34041 Reorder operand constraints.
34043 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34045 * df.h (df_insn_delete): Adjust prototype.
34046 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34047 and let it decide whether mark the basic block dirty.
34048 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34049 * df-scan.c (df_insn_info_delete): New helper function, split
34050 off from df_insn_delete.
34051 (df_scan_free_bb_info): Use it.
34052 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34054 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34055 that the insn is actually an insn and it has a non-NULL basic block.
34056 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34058 2013-03-22 Richard Biener <rguenther@suse.de>
34060 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34062 (mem_ref_alloc): Do not allocate them.
34063 (refs_independent_p): Do not query or maintain a cache.
34065 2013-03-22 Richard Biener <rguenther@suse.de>
34067 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34068 (gather_mem_refs_in_loops): Do not compute it.
34069 (analyze_memory_references): Do not allocate it.
34070 (tree_ssa_lim_finalize): Do not free it.
34071 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34073 2013-03-22 Richard Biener <rguenther@suse.de>
34075 * is-a.h (as_a): Use gcc_checking_assert.
34077 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34079 * config/aarch64/aarch64.c (aarch64_print_operand): New
34080 format specifier for printing a constant in hex.
34081 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34082 format specifier for printing second operand.
34084 2013-03-22 Richard Biener <rguenther@suse.de>
34086 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34088 (gather_mem_refs_in_loops): Perform store accumulation here.
34089 (create_vop_ref_mapping_loop): Remove.
34090 (create_vop_ref_mapping): Likewise.
34091 (analyze_memory_references): Initialize refs_stored_in_loop.
34092 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34093 (record_indep_loop): Remove.
34094 (record_dep_loop): New function.
34095 (ref_indep_loop_p_1): Adjust to only walk over references
34096 in the loop, not its subloops.
34097 (ref_indep_loop_p): Rename to ...
34098 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34099 maintaining a more fine-grained cache.
34100 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34101 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34103 2013-03-22 Richard Biener <rguenther@suse.de>
34105 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34106 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34107 aggregate mem_ref_loc.
34108 (free_mem_ref_locs): Inline into ...
34109 (memref_free): ... this and adjust.
34110 (mem_ref_alloc): Adjust.
34111 (mem_ref_locs_alloc): Remove.
34112 (record_mem_ref_loc): Adjust.
34113 (get_all_locs_in_loop): Rewrite into ...
34114 (for_all_locs_in_loop): ... this iterator.
34115 (rewrite_mem_ref_loc): New functor.
34116 (rewrite_mem_refs): Use for_all_locs_in_loop.
34117 (sm_set_flag_if_changed): New functor.
34118 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34119 (ref_always_accessed): New functor.
34120 (ref_always_accessed_p): Use for_all_locs_in_loop.
34122 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34124 * tree-pass.h (PROP_gimple_lvec): New.
34125 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34126 (init_optimization_passes): Move pass_lower_vector.
34127 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34129 (pass_lower_vector): Provide PROP_gimple_lvec.
34130 (pass_lower_vector_ssa): Likewise.
34131 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34133 2013-03-21 Mark Wielaard <mjw@redhat.com>
34135 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34137 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34139 * config/i386/i386.md (*movdi_internal): Disparage slightly
34140 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34141 conversion alternatives.
34143 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34145 PR middle-end/48087
34146 * diagnostic.def (DK_WERROR): New kind.
34147 * diagnostic.h (werrorcount): Define.
34148 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34149 promoted to DK_ERROR, increment DK_WERROR counter instead of
34151 * toplev.c (toplev_main): Call print_ignored_options even if
34152 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34153 even if just werrorcount is non-zero.
34156 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34158 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34159 (string_cst_pool_decl): New function.
34160 (optimize_one_addr_into_implicit_ptr): New function.
34161 (resolve_addr_in_expr): Optimize DWARF location expression
34162 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34163 which doesn't live in memory, but has DW_AT_location or
34164 DW_AT_const_value, or refers to a string literal, into
34165 DW_OP_GNU_implicit_pointer.
34166 (optimize_location_into_implicit_ptr): New function.
34167 (resolve_addr): If removing DW_AT_location of a variable because
34168 it was DW_OP_addr of address of the variable, but the variable doesn't
34169 live in memory, try to emit const value attribute for the initializer.
34171 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34173 * tree.h (VECTOR_TYPE_P): New macro.
34174 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34175 TYPE_MODE): Use it.
34176 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34177 VEC_COND_EXPR cannot be lvalues.
34178 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34180 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34182 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34183 Restrict the transformation to equal modes.
34185 2013-03-21 Richard Biener <rguenther@suse.de>
34187 PR tree-optimization/39326
34188 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34189 (MEM_ANALYZABLE): Adjust.
34190 (record_mem_ref_loc): Move bitmap ops ...
34191 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34192 unanalyzable refs, do not record locations for it.
34193 (analyze_memory_references): Allocate ref zero as shared
34195 (refs_independent_p): Do not test for unanalyzed mems here.
34196 (ref_indep_loop_p_1): Special-case disambiguation against
34197 the unanalyzed ref.
34198 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34200 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34202 * config/arm/arm-protos.h (tune_params): Add
34203 prefer_neon_for_64bits field.
34204 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34205 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34206 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34207 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34208 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34209 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34210 (arm_option_override): Handle -mneon-for-64bits new option.
34211 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34212 (prefer_neon_for_64bits): Declare new variable.
34213 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34214 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34215 (arch_enabled): Handle new arch types. Remove support for onlya8
34217 (one_cmpldi2): Use new arch names.
34218 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34219 * config/arm/arm.opt (mneon-for-64bits): Add option.
34220 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34221 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34222 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34224 * doc/invoke.texi (-mneon-for-64bits): Document.
34226 2013-03-21 Richard Biener <rguenther@suse.de>
34228 PR tree-optimization/39326
34229 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34230 (sort_bbs_in_loop_postorder_cmp): New function.
34231 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34233 2013-03-21 Richard Biener <rguenther@suse.de>
34235 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34236 (vect_insert_into_interleaving_chain): Likewise.
34237 (vect_drs_dependent_in_basic_block): Inline ...
34238 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34240 (vect_analyze_data_ref_dependence): ... here. Simplify.
34241 (vect_check_interleaving): Simplify.
34242 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34243 (vect_slp_analyze_data_ref_dependences): ... this new function.
34244 (dr_group_sort_cmp): New function.
34245 (vect_analyze_data_ref_accesses): Compute data-reference groups
34246 here instead of in vect_analyze_data_ref_dependence. Use
34247 a more efficient algorithm.
34248 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34249 vect_slp_analyze_data_ref_dependences. Call
34250 vect_analyze_data_ref_accesses earlier.
34251 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34252 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34253 (vect_slp_analyze_data_ref_dependences): New prototype.
34255 2013-03-21 Richard Biener <rguenther@suse.de>
34257 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34258 ref is stored in the loop.
34259 (find_refs_for_sm): Walk only over all stores.
34260 (store_motion_loop): Allocate from lim_bitmap_obstack.
34261 (store_motion): Likewise.
34263 2013-03-21 Richard Biener <rguenther@suse.de>
34265 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34266 Update virtual SSA form.
34268 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34270 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34271 * configure: Regenerate.
34272 * config.in: Regenerate.
34273 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34274 if !HAVE_LD_EH_FRAME_CIEV3.
34276 2013-03-21 Richard Biener <rguenther@suse.de>
34278 * tree-cfg.c (verify_expr_no_block): New function.
34279 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34280 nor DECL_VALUE_EXPR have locations with associated blocks.
34281 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34282 (clear_unused_block_pointer): Remove code dealing with
34283 blocks in DECL_DEBUG_EXPR locations.
34285 2013-03-21 Richard Biener <rguenther@suse.de>
34287 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34288 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34289 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34290 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34291 instead of DECL_DEBUG_EXPR_IS_FROM.
34292 * gimplify.c (gimplify_modify_expr): Likewise.
34293 * tree-cfg.c (verify_expr_location_1): Likewise.
34294 * tree-complex.c (create_one_component_var): Likewise.
34295 * tree-sra.c (create_access_replacement): Likewise.
34296 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34297 (clear_unused_block_pointer): Likewise.
34298 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34299 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34300 * var-tracking.c (var_debug_decl): Likewise.
34301 (track_expr_p): Likewise.
34302 * tree-inline.c (add_local_variables): Likewise. Set
34303 DECL_HAS_DEBUG_EXPR_P after copying it.
34304 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34305 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34307 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34310 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34311 * configure: Regenerate.
34312 * config.in: Regenerate.
34313 * config/i386/i386.md (*movdf_internal): Use
34314 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34315 movd instead of movq mnemonic for interunit moves.
34316 (*movdi_internal): Ditto.
34318 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34320 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34321 (abd<mode>_3): New pattern.
34322 (aba<mode>_3): New pattern.
34323 (fabd<mode>_3): New pattern.
34325 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34327 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34328 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34329 occurrence of REGISTER_PREFIX as its empty string.
34331 2013-03-20 Jeff Law <law@redhat.com>
34333 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34334 addititional equivalences for equality comparisons between an SSA_NAME
34335 and a constant where the SSA_NAME was set from a widening conversion.
34337 2013-03-20 Walter Lee <walt@tilera.com>
34339 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34341 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34343 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34344 depending on type attribute.
34345 (*movti_internal): Ditto.
34346 (*movtf_internal): Ditto.
34347 (*movxf_internal): Ditto.
34348 (*movdf_internal): Ditto.
34349 (*movsf_internal): Ditto.
34351 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34353 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34354 maybe_vex for sselog1 and ssemov types.
34355 (*movdi_internal): Reorder operand constraints.
34356 (*movsi_internal): Ditto. Set prefix attribute to
34357 maybe_vex for sselog1 and ssemov types.
34358 (*movtf_internal): Set prefix attribute to maybe_vex
34359 for sselog1 and ssemov types.
34360 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34361 DImode ssemov types. Reorder operand constraints.
34362 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34363 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34364 attribute for SImode ssemov types. Reorder operand constraints.
34366 2013-03-20 Martin Jambor <mjambor@suse.cz>
34368 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34369 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34371 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34373 * config/rs6000/predicates.md (indexed_address, update_address_mem
34374 update_indexed_address_mem): New predicates.
34375 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34376 attribute for load/store instructions.
34377 * config/rs6000/dfp.md (movsd_store): Likewise.
34378 (movsd_load): Likewise.
34379 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34380 (unnamed HI->DI extend define_insn): Likewise.
34381 (unnamed SI->DI extend define_insn): Likewise.
34382 (unnamed QI->SI extend define_insn): Likewise.
34383 (unnamed QI->HI extend define_insn): Likewise.
34384 (unnamed HI->SI extend define_insn): Likewise.
34385 (unnamed HI->SI extend define_insn): Likewise.
34386 (extendsfdf2_fpr): Likewise.
34387 (movsi_internal1): Likewise.
34388 (movsi_internal1_single): Likewise.
34389 (movhi_internal): Likewise.
34390 (movqi_internal): Likewise.
34391 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34392 attribute for load/store instructions.
34393 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34395 (mov<mode>_softfloat): Likewise.
34396 (mov<mode>_hardfloat32): Likewise.
34397 (mov<mode>_hardfloat64): Likewise.
34398 (mov<mode>_softfloat64): Likewise.
34399 (movdi_internal32): Likewise.
34400 (movdi_internal64): Likewise.
34401 (probe_stack_<mode>): Likewise.
34403 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34405 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34406 floating point, and decimal floating point to reload iterator.
34408 * config/rs6000/constraints.md (wl constraint): New constraints to
34409 return FLOAT_REGS if certain options are used to reduce the number
34410 of separate patterns that exist in the file.
34411 (wx constraint): Likewise.
34412 (wz constraint): Likewise.
34414 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34415 -mdebug=reg, print wg, wl, wx, and wz constraints.
34416 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34417 Initialize the reload functions for 64-bit binary/decimal floating
34419 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34420 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34421 create the buffer on the stack to overcome not having a 32-bit
34423 (rs6000_emit_move): Likewise.
34424 (rs6000_secondary_memory_needed_rtx): Likewise.
34425 (rs6000_alloc_sdmode_stack_slot): Likewise.
34426 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34427 via xxlxor, just like DFmode 0.0.
34429 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34430 define as 1 if we are running on a power7 or newer.
34431 (enum r6000_reg_class_enum): Add new constraints.
34433 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34434 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34435 with other moves by using conditional constraits (wg). Use LFIWZX
34436 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34437 (movsd splitter): Likewise.
34438 (movsd_hardfloat): Likewise.
34439 (movsd_softfloat): Likewise.
34441 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34442 binary and decimal floating point moves.
34443 (fmove_ok): New attributes to combine binary and decimal floating
34444 point moves, and to combine power6x (mfpgpr) moves along normal
34446 (real_value_to_target): Likewise.
34447 (f32_lr): Likewise.
34448 (f32_lm): Likewise.
34449 (f32_li): Likewise.
34450 (f32_sr): Likewise.
34451 (f32_sm): Likewise.
34452 (f32_si): Likewise.
34453 (movsf): Combine binary and decimal floating point moves. Combine
34454 power6x (mfpgpr) moves with other moves by using conditional
34455 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34456 (mov<mode> for SFmode/SDmode); Likewise.
34457 (SFmode/SDmode splitters): Likewise.
34458 (movsf_hardfloat): Likewise.
34459 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34460 (movsf_softfloat): Likewise.
34461 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34463 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34464 wx and wz constraints.
34466 * config/rs6000/constraints.md (wg constraint): New constraint to
34467 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34472 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34473 -mdebug=reg, print wg, wl, wx, and wz constraints.
34474 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34475 Initialize the reload functions for 64-bit binary/decimal floating
34477 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34478 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34479 create the buffer on the stack to overcome not having a 32-bit
34481 (rs6000_emit_move): Likewise.
34482 (rs6000_secondary_memory_needed_rtx): Likewise.
34483 (rs6000_alloc_sdmode_stack_slot): Likewise.
34484 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34485 via xxlxor, just like DFmode 0.0.
34487 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34488 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34489 with other moves by using conditional constraits (wg). Use LFIWZX
34490 and STFIWX for loading SDmode on power7.
34491 (movdd splitters): Likewise.
34492 (movdd_hardfloat32): Likewise.
34493 (movdd_softfloat32): Likewise.
34494 (movdd_hardfloat64_mfpgpr): Likewise.
34495 (movdd_hardfloat64): Likewise.
34496 (movdd_softfloat64): Likewise.
34498 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34499 64-bit binary and decimal floating point moves.
34500 (FMOVE64X): Likewise.
34501 (movdf): Combine 64-bit binary and decimal floating point moves.
34502 Combine power6x (mfpgpr) moves with other moves by using
34503 conditional constraits (wg).
34504 (mov<mode> for DFmode/DDmode): Likewise.
34505 (DFmode/DDmode splitters): Likewise.
34506 (movdf_hardfloat32): Likewise.
34507 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34508 (movdf_softfloat32): Likewise.
34509 (movdf_hardfloat64_mfpgpr): Likewise.
34510 (movdf_hardfloat64): Likewise.
34511 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34512 (movdf_softfloat64): Likewise.
34513 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34514 (reload_<mode>_load): Move to later in the file so they aren't in
34515 the middle of the floating point move insns.
34516 (reload_<mode>_store): Likewise.
34518 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34522 constraint if -mdebug=reg.
34523 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34524 Enable using dd reload support if needed.
34526 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34527 binary and decimal floating point moves in rs6000.md.
34528 (movtd_internal): Likewise.
34530 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34531 decimal floating point moves.
34533 (movtf_internal): Likewise.
34534 (mov<mode>_internal, TDmode/TFmode): Likewise.
34535 (movtf_softfloat): Likewise.
34536 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34538 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34539 movdi_internal64, using wg constraint for move direct operations.
34540 (movdi_internal64): Likewise.
34542 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34543 MODES_TIEABLE_P for selected modes. Print the numerical value of
34544 the various virtual registers. Use GPR/FPR first/last values,
34545 instead of hard coding the register numbers. Print which modes
34546 have reload functions registered.
34547 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34548 settings before/after setting cpu, target and subtarget settings.
34549 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34550 and for secondary reload failures in rs6000_secondary_reload_inner.
34551 (rs6000_secondary_reload_fail): Likewise.
34552 (rs6000_secondary_reload_inner): Likewise.
34554 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34555 macros for first/last GPR and FPR registers.
34556 (LAST_GPR_REGNO): Likewise.
34557 (FIRST_FPR_REGNO): Likewise.
34558 (LAST_FPR_REGNO): Likewise.
34560 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34561 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34562 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34563 (vcond<mode><mode>): Likewise.
34564 (vcondu<mode><mode>): Likewise.
34565 (vector_gtu<mode>): Likewise.
34566 (vector_gte<mode>): Likewise.
34567 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34568 to prevent the compiler from converting DImode operations to TImode.
34569 (ior<mode>3): Likewise.
34570 (and<mode>3): Likewise.
34571 (one_cmpl<mode>2): Likewise.
34572 (nor<mode>3): Likewise.
34573 (andc<mode>3): Likewise.
34575 * config/rs6000/constraints.md (wt constraint): New constraint
34576 that returns VSX_REGS if TImode is allowed in VSX registers.
34578 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34579 constant under VSX.
34581 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34582 similar to TImode, but it is restricted to being in the GPRs.
34584 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34585 TImode to occupy a single VSX register.
34587 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34588 -mvsx-timode for power7/power8.
34589 (power7 cpu): Likewise.
34590 (power8 cpu): Likewise.
34592 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34593 sure that TFmode/TDmode take up two registers if they are ever
34594 allowed in the upper VSX registers.
34595 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34597 (rs6000_init_hard_regno_mode_ok): Likewise.
34598 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34599 constraint. Print if LRA is turned on.
34600 (rs6000_option_override_internal): Give an error if -mvsx-timode
34601 and VSX is not enabled.
34602 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34603 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34604 to reg+offset addressing. Use PTImode when checking offset
34605 addresses for validity.
34606 (reg_offset_addressing_ok_p): Likewise.
34607 (rs6000_legitimate_offset_address_p): Likewise.
34608 (rs6000_legitimize_address): Likewise.
34609 (rs6000_legitimize_reload_address): Likewise.
34610 (rs6000_legitimate_address_p): Likewise.
34611 (rs6000_eliminate_indexed_memrefs): Likewise.
34612 (rs6000_emit_move): Likewise.
34613 (rs6000_secondary_reload): Likewise.
34614 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34615 reloads to fpr registers to continue to use reg+offset addressing,
34616 but 64-bit reloads to altivec registers need reg+reg addressing.
34617 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34618 it. Treat LO_SUM like a PLUS operation.
34619 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34620 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34621 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34622 registers to share a register with a smaller sized type, since VSX
34623 puts scalars in the upper 64-bits.
34624 (print_operand): Add support for PTImode.
34625 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34626 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34627 registers, but don't have arithmetic support.
34628 (rs6000_memory_move_cost): Add test for VSX.
34629 (rs6000_opt_masks): Add -mvsx-timode.
34631 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34634 (VSr): Use wt constraint for TImode.
34635 (VSv): Drop TImode support.
34636 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34637 (vsx_movti_64bit): Likewise.
34638 (vsx_movti_32bit): Likewise.
34639 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34640 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34641 one '?' on the appropriate output constraint. Do not allow TImode
34642 logical operations on 32-bit systems.
34643 (vsx_ior<mode>3): Likewise.
34644 (vsx_xor<mode>3): Likewise.
34645 (vsx_one_cmpl<mode>2): Likewise.
34646 (vsx_nor<mode>3): Likewise.
34647 (vsx_andc<mode>3): Likewise.
34648 (vsx_concat_<mode>): Likewise.
34649 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34651 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34652 OPTION_MASK_VSX_TIMODE.
34653 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34654 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34656 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34657 (TI2 iterator): New iterator for TImode, PTImode.
34658 (wd mode attribute): Add values for vector types.
34659 (movti_string): Replace TI move operations with operations for TImode
34660 and PTImode. Add support for TImode being allowed in VSX registers.
34661 (mov<mode>_string, TImode/PTImode): Likewise.
34662 (movti_ppc64): Likewise.
34663 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34664 (TI mode splitters): Likewise.
34666 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34669 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34671 PR tree-optimization/56355
34672 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34673 Also handle integers with undefined overflow.
34675 2013-03-20 Catherine Moore <clm@codesourcery.com>
34676 Maciej W. Rozycki <macro@codesourcery.com>
34677 Tom de Vries <tom@codesourcery.com>
34678 Nathan Sidwell <nathan@codesourcery.com>
34679 Iain Sandoe <iain@codesourcery.com>
34680 Nathan Froyd <froydnj@codesourcery.com>
34681 Chao-ying Fu <fu@mips.com>
34683 * doc/extend.texi: (micromips, nomicromips, nocompression):
34684 Document new function attributes.
34685 * doc/invoke.texi (minterlink-compressed, mmicromips,
34686 m14k, m14ke, m14kec): Document new options.
34687 (minterlink-mips16): Update documentation.
34688 * doc/md.texi (ZC, ZD): Document new constraints.
34689 * configure.ac (gcc_cv_as_micromips): Check if linker
34690 supports the .set micromips directive.
34691 * configure: Regenerate.
34692 * config.in: Regenerate.
34693 * config/mips/mips-tables.opt: Regenerate.
34694 * config/mips/micromips.md: New file.
34695 * constraints.md (ZC, ZD): New constraints.
34696 * config/mips/predicates.md (movep_src_register): New predicate.
34697 (movep_src_operand): New predicate.
34698 (non_volatile_mem_operand): New predicate.
34699 * config/mips/mips.md (multimem): New type.
34700 (length): Differentiate between 17-bit and 18-bit branch offsets.
34701 (MOVEP1, MOVEP2): New mode iterator.
34702 (mov_<load>l): Use ZC constraint.
34703 (mov_<load>r): Likewise.
34704 (mov_<store>l): Likewise.
34705 (mov_<store>r): Likewise.
34706 (*branch_equality<mode>_inverted): Add microMIPS support.
34707 (*branch_equality<mode>): Likewise.
34708 (*jump_absolute): Likewise.
34709 (indirect_jump_<mode>): Likewise.
34710 (tablejump_<mode>): Likewise.
34711 (<optab>_internal): Likewise.
34712 (sibcall_internal): Likewise.
34713 (sibcall_value_internal): Likewise.
34714 (prefetch): Use constraint ZD.
34715 * config/mips/mips.opt (minterlink-compressed): New option.
34716 (minterlink-mips16): Now an alias for minterlink-compressed.
34717 (mmicromips): New option.
34718 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34719 (compare_and_swap_12): Likewise.
34720 (sync_add<mode>): Likewise.
34721 (sync_<optab>_12): Likewise.
34722 (sync_old_<optab>_12): Likewise.
34723 (sync_new_<optab>_12): Likewise.
34724 (sync_nand_12): Likewise.
34725 (sync_old_nand_12): Likewise.
34726 (sync_new_nand_12): Likewise.
34727 (sync_sub<mode>): Likewise.
34728 (sync_old_add<mode>): Likewise.
34729 (sync_old_sub<mode>): Likewise.
34730 (sync_new_add<mode>): Likewise.
34731 (sync_new_sub<mode>): Likewise.
34732 (sync_<optab><mode>): Likewise.
34733 (sync_old_<optab><mode>): Likewise.
34734 (sync_new_<optab><mode>): Likewise.
34735 (sync_nand<mode>): Likewise.
34736 (sync_old_nand<mode>): Likewise.
34737 (sync_new_nand<mode>): Likewise.
34738 (sync_lock_test_and_set<mode>): Likewise.
34739 (test_and_set_12): Likewise.
34740 (atomic_compare_and_swap<mode>): Likewise.
34741 (atomic_exchange<mode>_llsc): Likewise.
34742 (atomic_fetch_add<mode>_llsc): Likewise.
34743 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34744 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34745 (umips_save_restore_pattern_p): Likewise.
34746 (umips_load_store_pair_p): Likewise.
34747 (umips_output_load_store_pair): Likewise.
34748 (umips_movep_target_p): Likewise.
34749 (umips_12bit_offset_address_p): Likewise.
34750 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34751 (mips_base_mips16): Rename this...
34752 (mips_base_compression_flags): ...to this. Update all uses.
34753 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34754 (mips_mips16_decl_p): Delete.
34755 (mips_nomips16_decl_p): Delete.
34756 (mips_get_compress_on_flags): New function.
34757 (mips_get_compress_off_flags): New function.
34758 (mips_get_compress_mode): New function.
34759 (mips_get_compress_on_name): New function.
34760 (mips_get_compress_off_name): New function.
34761 (mips_insert_attributes): Support multiple compression types.
34762 (mips_merge_decl_attributes): Likewise.
34763 (umips_12bit_offset_address_p): New function.
34764 (mips_start_function_definition): Emit .set micromips directive.
34765 (mips_call_may_need_jalx_p): New function.
34766 (mips_function_ok_for_sibcall): Add microMIPS support.
34767 (mips_print_operand_punctuation): Support short delay slots and
34769 (umips_swm_mask, umips_swm_encoding): New.
34770 (umips_build_save_restore): New function.
34771 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34772 (was_mips16_p): Remove.
34773 (old_compression_mode): New.
34774 (mips_set_compression_mode): New function.
34775 (mips_set_current_function): Add microMIPS support.
34776 (mips_option_override): Likewise.
34777 (umips_save_restore_pattern_p): New function.
34778 (umips_output_save_restore): New function.
34779 (umips_load_store_pair_p_1): New function.
34780 (umips_load_store_pair_p): New function.
34781 (umips_output_load_store_pair_1): New function.
34782 (umips_output_load_store_pair): New function.
34783 (umips_movep_target_p) New function.
34784 (mips_prepare_pch_save): Add microMIPS support.
34785 * config/mips/mips.h (TARGET_COMPRESSION): New.
34786 (TARGET_CPU_CPP_BUILTINS): Update macro
34787 to use new compression flags and to support microMIPS.
34788 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34789 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34790 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34791 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34792 (ASM_SPEC): Support mmicromips and mno-micromips.
34793 (M16STORE_REG_P): New macro.
34794 (MIPS_CALL): Support TARGET_MICROMIPS.
34795 (MICROMIPS_J): New macro.
34796 (mips_base_mips16): Rename this...
34797 (mips_base_compression_flags): ...to this.
34798 (UMIPS_12BIT_OFFSET_P): New macro.
34799 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34800 (MULTILIB_DIRNAMES): Likewise.
34801 2013-03-20 Richard Biener <rguenther@suse.de>
34803 PR tree-optimization/56661
34804 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34805 the result does not have to be distinct.
34807 2013-03-20 Richard Biener <rguenther@suse.de>
34809 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34812 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34813 Steven Bosscher <steven@gcc.gnu.org>
34815 PR rtl-optimization/56605
34816 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34818 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34821 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34822 that require movd instead of movq.
34824 2013-03-20 Richard Biener <rguenther@suse.de>
34826 * tree-ssa-structalias.c (struct variable_info): Add pointer
34827 to the first field of an aggregate with sub-vars. Make
34828 this and the pointer to the next subfield its ID.
34829 (vi_next): New function.
34830 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34831 storedanything_id, integer_id): Increment by one.
34832 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34833 get_call_clobber_vi): Adjust.
34834 (solution_set_expand): Simplify and speedup.
34835 (solution_set_add): Inline into ...
34836 (set_union_with_increment): ... this. Adjust accordingly.
34837 (do_sd_constraint): Likewise.
34838 (do_ds_constraint): Likewise.
34839 (do_complex_constraint): Simplify.
34840 (build_pred_graph): Adjust.
34841 (solve_graph): Likewise. Simplify and speedup.
34842 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34843 get_constraint_for_component_ref, get_constraint_for_1,
34844 first_vi_for_offset, first_or_preceding_vi_for_offset,
34845 create_function_info_for, create_variable_info_for_1,
34846 create_variable_info_for, intra_create_variable_infos): Adjust.
34847 (init_base_vars): Push NULL for ID zero.
34848 (compute_points_to_sets): Adjust.
34850 2013-03-20 Richard Biener <rguenther@suse.de>
34852 * cfgloop.c (verify_loop_structure): Streamline and avoid
34853 ICEing on corrupt loop tree.
34854 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34857 2013-03-20 Richard Biener <rguenther@suse.de>
34859 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34860 check whether an SSA update is needed.
34862 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34864 * config/mips/constraints.md (T): Rename to...
34868 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34869 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34871 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34873 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34874 (*subsi3_carryin_uxtw): Likewise.
34876 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34878 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34879 (*rorsi3_insn_uxtw): Likewise.
34881 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34883 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34884 (*extrsi5_insn_uxtw): Likewise.
34886 2013-03-19 Richard Biener <rguenther@suse.de>
34888 PR tree-optimization/56273
34889 * passes.c (init_optimization_passes): Move second VRP after DOM.
34891 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34893 * config/i386/i386.md (*movti_internal): Merge from
34894 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34895 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34896 nox64 isa attributes.
34898 2013-03-18 Richard Biener <rguenther@suse.de>
34900 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34902 (merge_node_constraints): Likewise.
34903 (build_succ_graph): Likewise.
34904 (valid_graph_edge): Inline into single caller.
34905 (unify_nodes): Likewise. Use bitmap_set_bit return value
34907 (scc_visit): Fix formatting and variable use.
34908 (do_sd_constraint): Use gcc_checking_assert.
34909 (do_ds_constraint): Likewise.
34910 (do_complex_constraint): Likewise.
34911 (condense_visit): Likewise. Cleanup.
34912 (dump_pred_graph): New function.
34913 (perform_var_substitution): Dump the pred-graph before
34914 variable substitution.
34915 (find_equivalent_node): Use gcc_checking_assert.
34916 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34918 2013-03-18 Richard Biener <rguenther@suse.de>
34920 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34921 Remove cond_expr_stmt_list argument and do not gimplify the
34923 (vect_loop_versioning): Adjust.
34924 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34925 Cleanup to use less temporaries.
34926 (vect_create_data_ref_ptr): Cleanup.
34928 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34930 PR tree-optimization/56635
34931 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34932 require types_compatible_p types.
34934 2013-03-18 Nick Clifton <nickc@redhat.com>
34936 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34937 spurious backslash.
34939 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34940 Add missing line to comment describing function.
34942 2013-03-18 Richard Biener <rguenther@suse.de>
34944 PR tree-optimization/56210
34945 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34946 Handle string / character search functions.
34947 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34949 2013-03-18 Richard Biener <rguenther@suse.de>
34951 PR middle-end/56483
34952 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34953 and implement properly.
34954 * gimple.h (gimple_cond_single_var_p): Remove.
34956 2013-03-18 Richard Biener <rguenther@suse.de>
34958 * tree-data-ref.h (find_data_references_in_loop): Declare.
34959 * tree-data-ref.c (get_references_in_stmt): Use a stack
34960 vector pre-allocated in the callers.
34961 (find_data_references_in_stmt): Adjust.
34962 (graphite_find_data_references_in_stmt): Likewise.
34963 (create_rdg_vertices): Likewise.
34964 (find_data_references_in_loop): Export.
34965 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34966 Compute dependences here...
34967 (vect_analyze_data_refs): ...not here. When we encounter
34968 a non-vectorizable data reference in basic-block vectorization
34969 truncate the data reference vector. Do not bother to
34970 fixup data-dependence information for gather loads.
34971 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34972 of data references, as reported.
34974 2013-03-18 Richard Biener <rguenther@suse.de>
34976 PR tree-optimization/3713
34977 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34978 has_constants and expr.
34979 (stmt_has_constants): Properly valueize SSA names when deciding
34980 whether the stmt has constants.
34982 2013-03-18 Richard Biener <rguenther@suse.de>
34984 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34985 whole function when there is nothing to do.
34986 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34987 * tree-vectorizer.c (vectorize_loops): Update virtual and
34988 loop-closed SSA once.
34989 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34991 2013-03-18 Richard Biener <rguenther@suse.de>
34993 PR middle-end/56113
34994 * domwalk.c (bb_postorder): New global static.
34995 (cmp_bb_postorder): New function.
34996 (walk_dominator_tree): Replace scheme imposing an order for
34997 visiting dominator sons by one sorting them at the time they
34998 are pushed on the stack.
35000 2013-03-18 Richard Biener <rguenther@suse.de>
35002 PR tree-optimization/39326
35003 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35004 (struct mem_ref): Replace mem member with ao_ref typed member.
35005 (MEM_ANALYZABLE): Adjust.
35006 (memref_eq): Likewise.
35007 (mem_ref_alloc): Likewise.
35008 (gather_mem_refs_stmt): Likewise.
35009 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35010 (execute_sm_if_changed_flag_set): Adjust.
35011 (execute_sm): Likewise.
35012 (ref_always_accessed_p): Likewise.
35013 (refs_independent_p): Likewise.
35014 (can_sm_ref_p): Likewise.
35016 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35019 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35020 return 1 even for !unsignedp.
35022 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35024 * config/i386/i386.md (isa): Add x64 and nox64.
35025 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35026 (*pushtf): Enable *roF alternative for x64 isa only.
35027 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35028 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35029 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35030 (*movtf_internal): Merge from *movtf_internal_rex64 and
35031 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35032 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35033 nox64 isa attributes.
35034 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35035 nox64 isa attributes.
35036 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35038 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35040 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35042 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35045 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35046 class names. Remove trailing comma after "ALL_REGS".
35048 2013-03-16 Jan Hubicka <jh@suse.cz>
35050 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35051 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35052 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35053 of cgraph_get_create_node.
35054 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35056 2013-03-16 Jason Merrill <jason@redhat.com>
35059 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35060 with DW_AT_default_value.
35062 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35064 * BASE-VER: Set to 4.9.0.
35066 2013-03-14 Andi Kleen <ak@linux.intel.com>
35069 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35070 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35071 Document _x* TSX intrinsics.
35073 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35074 David Holsgrove <david.holsgrove@xilinx.com>
35076 * configure.ac: Add MicroBlaze TLS support detection.
35077 * configure: Regenerate.
35078 * config/microblaze/microblaze-protos.h
35079 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35080 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35081 * config/microblaze/microblaze.c (microblaze_address_type): Add
35082 ADDRESS_TLS and tls_reloc address types.
35083 (microblaze_address_info): Add tls_reloc.
35084 (TARGET_HAVE_TLS): Define.
35085 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35086 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35087 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35088 load_tls_operand, microblaze_call_tls_get_addr,
35089 microblaze_legitimize_tls_address): New functions.
35090 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35091 (get_base_reg): Use microblaze_tls_symbol_p.
35092 (microblaze_classify_address): Handle TLS.
35093 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35094 label_mentioned_p and microblaze_tls_referenced_p.
35095 (microblaze_legitimize_address): Handle TLS.
35096 (microblaze_address_insns): Handle ADDRESS_TLS.
35097 (pic_address_needs_scratch): Handle TLS.
35098 (print_operand_address): Handle TLS.
35099 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35100 (microblaze_expand_move): Handle TLS.
35101 (microblaze_legitimate_constant_p): Check
35102 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35103 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35104 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35105 (PIC_OFFSET_TABLE_REGNUM): Set.
35106 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35107 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35108 (addsi3, movsi_internal2, movdf_internal): Update constraints
35109 * config/microblaze/predicates.md (arith_plus_operand): Define
35110 (move_operand): Redefine as move_src_operand,
35111 check microblaze_tls_referenced_p.
35113 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35115 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35116 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35118 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35120 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35123 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35125 PR tree-optimization/53265
35126 * common.opt (Waggressive-loop-optimizations): New option.
35127 * tree-ssa-loop-niter.c: Include tree-pass.h.
35128 (do_warn_aggressive_loop_optimizations): New function.
35129 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35130 if number_of_latch_executions returned constant.
35131 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35132 early. If number_of_latch_executions returned constant, set
35133 nb_iterations_upper_bound back to it.
35134 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35136 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35137 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35139 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35140 (MULTILIB_OSDIRNAMES): Set.
35141 * genmultilib: If defaultosdirname doesn't start with :: , set
35142 defaultosdirname2 instead, clear it and emit two . multilib_raw
35143 entries instead of just one.
35145 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35147 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35148 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35149 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35150 (SUBTARGET_OVERRIDE_OPTIONS): New.
35152 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35155 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35156 (musermode): Convert to Var(TARGET_USERMODE).
35157 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35158 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35159 * config/sh/sh.c (sh_option_override): Use
35160 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35161 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35163 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35165 (udivsi3_i4_single, divsi3_i4_single): Use
35166 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35168 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35170 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35173 2013-03-13 Richard Biener <rguenther@suse.de>
35175 PR tree-optimization/56608
35176 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35177 calls when vectorizing basic-blocks.
35179 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35182 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35185 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35187 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35189 2013-03-11 Jan Hubicka <jh@suse.cz>
35192 * lto-streamer-out.c (output_symbol_p): Skip references from
35193 constructors of external variables.
35195 2013-03-11 Jan Hubicka <jh@suse.cz>
35197 PR middle-end/56571
35198 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35200 * emit-rtl.c (verify_rtx_sharing): Likewise.
35201 (copy_insn_1): Likewise.
35202 * rtl.c (copy_rtx): Likewise.
35204 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35207 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35208 output_operand_lossage message.
35210 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35213 * arm.c (shift_op): Validate RTL pattern on the fly.
35214 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35217 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35220 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35221 new call patterns that clobber %fr12.
35222 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35223 split and postreload patterns.
35224 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35225 registers %fr12 and %fr12R as call used.
35227 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35229 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35230 (canon_address, record_store, replace_read, check_mem_read_rtx,
35231 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35232 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35233 rest_of_handle_dse): Likewise.
35235 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35237 PR middle-end/56524
35238 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35240 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35241 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35242 (save_optabs_if_changed): Replace with...
35243 (init_tree_optimization_optabs): ...this.
35244 * optabs.c (save_optabs_if_changed): Rename to...
35245 (init_tree_optimization_optabs): ...this. Take the optimization node
35246 as argument. Do nothing if the base optabs are already correct.
35247 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35248 to recompute optabs.
35249 * function.h (function): Remove optabs field.
35250 * function.c (invoke_set_current_function_hook): Call
35251 init_tree_optimization_optabs. Use the result to initialize
35254 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35256 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35257 if GTMA_HAS_NO_INSTRUMENTATION.
35258 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35259 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35260 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35261 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35262 GTMA_HAS_NO_INSTRUMENTATION.
35264 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35266 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35269 2013-03-08 Marek Polacek <polacek@redhat.com>
35270 Jakub Jelinek <jakub@redhat.com>
35272 PR tree-optimization/56478
35273 * predict.c (is_comparison_with_loop_invariant_p): Change the
35274 type of loop_step to tree.
35275 (predict_loops): Adjust.
35276 (predict_iv_comparison): Perform the computations on double_ints.
35278 2013-03-08 Richard Biener <rguenther@suse.de>
35280 PR tree-optimization/56570
35281 * tree-cfg.c (verify_expr_location_1): Verify locations for
35283 * tree-sra.c (create_access_replacement): Strip locations
35284 from DECL_DEBUG_EXPRs.
35286 2013-03-08 Richard Biener <rguenther@suse.de>
35288 * tree-inline.c (expand_call_inline): Do not associate
35289 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35290 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35292 2013-03-08 Richard Biener <rguenther@suse.de>
35294 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35295 or block changes with -Og. Fix for location / block encoding
35296 changes and PHI arguments with locations.
35298 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35300 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35302 (struct output_info): Likewise.
35303 (register_overhead): Remove bad gcc_assert.
35304 (bitmap_find_bit): If there is only a single bitmap element, do not
35305 count a miss as a search.
35306 (print_statistics): Update for counter type changes.
35307 (dump_bitmap_statistics): Likewise. Print headers such that they
35308 are properly lined up with the printed counters.
35310 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35312 PR tree-optimization/56559
35313 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35314 check that it has only a single use.
35316 2013-03-07 Richard Biener <rguenther@suse.de>
35318 * doc/invoke.texi (fwhole-program): Discourage use in combination
35321 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35323 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35325 PR tree-optimization/56539
35326 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35327 instead of GSI_CONTINUE_LINKING as last argument to
35328 force_gimple_operand_gsi. Adjust function comment.
35330 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35333 PR middle-end/56548
35334 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35335 promoted mode, convert the result back to the original mode.
35337 2013-03-06 Richard Biener <rguenther@suse.de>
35339 PR middle-end/56294
35340 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35341 (insert_updated_phi_nodes_compare_uids): New function.
35342 (update_ssa): Sort symbols_to_rename after UID before
35343 traversing it to insert PHI nodes.
35345 2013-03-06 Richard Biener <rguenther@suse.de>
35347 PR middle-end/50494
35348 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35349 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35352 2013-02-13 Richard Biener <rguenther@suse.de>
35355 * varasm.c (output_constant_def_1): Get the decl representing
35356 the constant as argument.
35357 (output_constant_def): Wrap output_constant_def_1.
35358 (make_decl_rtl): Use output_constant_def_1 with the decl
35359 representing the constant.
35360 (build_constant_desc): Optionally re-use a decl already
35361 representing the constant.
35362 (tree_output_constant_def): Adjust.
35364 2013-03-06 Joey Ye <joey.ye@arm.com>
35367 * gcc.c (convert_white_space): New function.
35368 (main): Handles white space in function name.
35370 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35373 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35374 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35375 to SH_DIV_CALL_TABLE for TARGET_SH2.
35376 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35378 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35379 call-table options.
35381 2013-03-05 Sterling Augustine <saugustine@google.com>
35382 Cary Coutant <ccoutant@google.com>
35385 * dwarf2out.c (resolve_addr): Don't call
35386 remove_loc_list_addr_table_entries a second time for the same
35389 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35392 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35393 (avoid_complex_debug_insns): New function.
35394 (expand_debug_locations): Call it.
35396 PR rtl-optimization/56484
35397 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35398 lifetimes of hard registers on small register class machines.
35400 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35402 * config/microblaze/microblaze-protos.h: Rename
35403 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35404 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35406 (microblaze_fast_interrupt_function_p): New function.
35407 (microblaze_is_interrupt_handler): Rename to
35408 microblaze_is_interrupt_variant and add fast_interrupt check.
35409 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35410 (save_restore_insns): Likewise.
35411 (compute_frame_size): Likewise.
35412 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35413 (microblaze_globalize_label): Likewise.
35414 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35415 * config/microblaze/microblaze.md: Use wrapper
35416 microblaze_is_interrupt_variant.
35418 2013-03-05 Kai Tietz <ktietz@redhat.com>
35420 * sdbout.c (sdbout_one_type): Switch to current function's section
35421 supporting cold/hot.
35423 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35425 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35428 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35430 PR middle-end/56461
35431 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35432 if VALGRIND_GET_VBITS is defined, temporarily make object
35433 memory all defined, and restore previous valgrind addressability
35434 and definability afterwards. Free this_object at the end.
35436 PR middle-end/56461
35437 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35438 right before calling lra_create_live_ranges, also call it
35439 when clearing live_p. Only call lra_clear_live_ranges
35440 at the end if live_p.
35442 PR middle-end/56461
35443 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35445 2013-03-05 Richard Biener <rguenther@suse.de>
35447 PR tree-optimization/56521
35448 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35451 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35454 * except.h (remove_unreachable_eh_regions): New prototype.
35455 * except.c (remove_eh_handler_splicer): New function, split out
35456 of remove_eh_handler.
35457 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35458 warning about running it on many EH regions one at a time.
35459 (remove_unreachable_eh_regions_worker): New function, walk the
35460 EH tree in depth-first order and remove non-marked regions.
35461 (remove_unreachable_eh_regions): New function.
35462 * tree-eh.c (mark_reachable_handlers): New function, split out
35463 from remove_unreachable_handlers.
35464 (remove_unreachable_handlers): Use mark_reachable_handlers and
35465 remove_unreachable_eh_regions.
35466 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35467 and remove_unreachable_eh_regions.
35469 2013-03-05 Richard Biener <rguenther@suse.de>
35471 PR middle-end/56525
35472 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35473 not freeing them until the end.
35475 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35477 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35479 2013-03-05 Richard Biener <rguenther@suse.de>
35481 PR tree-optimization/56270
35482 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35483 of loads after scheduling an SLP instance.
35485 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35487 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35489 (check_gcc_parallelize): Run guality.exp as a separate job from
35490 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35491 struct-layout-1.exp with stackalign.exp.
35493 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35495 PR middle-end/56461
35496 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35497 load_index sbitmap even if some bit in it isn't set.
35499 PR middle-end/56461
35500 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35501 (discover_iteration_bound_by_body_walk): Change queues to
35502 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35503 spelling in comment. Call safe_push on queues[bound_index] directly.
35504 Release queues[queue_index] in every iteration unconditionally.
35505 Release bounds vector.
35507 PR middle-end/56461
35508 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35509 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35510 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35513 2013-03-05 Richard Biener <rguenther@suse.de>
35516 * tree-inline.c (remap_blocks_to_null): New function.
35517 (expand_call_inline): When expanding a call stmt without
35518 an associated block inline remap all callee blocks to NULL.
35520 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35522 PR rtl-optimization/56494
35523 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35524 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35525 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35527 PR middle-end/56461
35528 * sel-sched-ir.c (free_sched_pools): Release
35529 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35530 if succs_info_pool.max_top isn't -1.
35533 * opts.c (opts_obstack, opts_concat): Moved to...
35534 * opts-common.c (opts_obstack, opts_concat): ... here.
35536 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35538 PR middle-end/56461
35539 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35541 2013-03-04 Martin Jambor <mjambor@suse.cz>
35543 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35544 all appropriate places.
35546 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35548 PR tree-optimization/56424
35549 * ipa-split.c (split_function): Do not set the RSO flag if result is
35550 not by reference and its type is a register type.
35552 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35554 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35555 (microblaze_legitimate_pic_operand): Likewise
35556 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35557 new function microblaze_legitimate_pic_operand
35558 * config/microblaze/microblaze-protos.h
35559 (microblaze_legitimate_pic_operand): Declare.
35561 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35563 * config/microblaze/predicates.md (call_insn_simple_operand):
35564 New predicate for supported rtx code types.
35565 * config/microblaze/microblaze.md (call_internal1): Use
35566 call_insn_simple_operand predicate.
35568 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35570 PR middle-end/56461
35571 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35572 partitions.ordered_remove.
35574 PR middle-end/56461
35575 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35576 vec_oprnds0.create (1) for modifier == NONE.
35578 PR middle-end/56461
35579 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35580 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35581 vec_oprnds1 right before pushing anything to it for
35584 PR middle-end/56461
35585 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35586 set nbbs to 0 instead of having separate code path.
35587 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35588 instead of false as last argument if returning NULL.
35590 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35592 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35593 the attribute is now called "target" instead of "option".
35594 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35595 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35596 attribute/pragma name for TARGET_OPTION_VALID_P and
35597 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35598 * doc/tm.texi: Regenerated.
35600 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35602 * config/microblaze/microblaze.c:
35603 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35604 * config/microblaze/microblaze.h: Add -mxl-reorder to
35606 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35607 instructions emitted if TARGET_REORDER.
35608 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35609 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35612 2013-03-01 Xinliang David Li <davidxl@google.com>
35614 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35617 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35619 PR middle-end/56461
35620 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35621 vector even when returning true. Fix up function comment formatting.
35623 PR middle-end/56461
35624 * ira-build.c (ira_loop_nodes_count): New variable.
35625 (create_loop_tree_nodes): Initialize it.
35626 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35628 PR middle-end/56461
35629 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35630 method on dr_chain and result_chain.
35631 * tree-vect-stmts.c (vectorizable_store): Only call
35632 result_chain.create if j == 0.
35634 PR middle-end/56461
35635 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35636 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35637 before overwriting it.
35639 2013-03-01 Tobias Burnus <burnus@net-b.de>
35641 * doc/extended.texi (C Extensions): Change order in @menu
35643 (Other MIPS Built-in Functions): Move last MIPS entry before
35644 "picoChip Built-in Functions".
35645 (SH Built-in Functions): Move after RX Built-in Functions.
35646 * doc/gcc.texi (Introduction): Change order in @menu
35648 * doc/md.texi (Constraints): Ditto.
35649 * gty.texi (Type Information): Ditto.
35650 (User-provided marking routines for template types): Make
35652 * doc/invoke.texi (AArch64 Options): Move before
35653 "Adapteva Epiphany Options".
35655 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35656 Jakub Jelinek <jakub@redhat.com>
35659 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35660 no_address_safety_analysis attribute.
35661 * doc/extend.texi (no_address_safety_attribute): Rename to
35662 no_sanitize_address attribute, mention no_address_safety_analysis
35663 attribute as deprecated alias.
35665 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35667 PR middle-end/56461
35668 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35669 type to vec<vec<tree> > *.
35670 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35671 to be vec<tree> instead of vec<tree> *, set vec_defs
35672 to vNULL and call vec_defs.create (number_of_vects), adjust other
35674 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35675 vectorizable_condition): Adjust vect_get_slp_defs callers.
35677 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35679 * config/aarch64/aarch64.c
35680 (aarch64_float_const_representable): Remove unused variable.
35682 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35684 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35686 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35688 * config/aarch64/aarch64-builtins.c
35689 (aarch64_init_simd_builtins): Make static.
35691 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35693 * config/aarch64/aarch64.c
35694 (aarch64_simd_make_constant): Make static.
35696 2013-02-28 Martin Jambor <mjambor@suse.cz>
35698 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35699 with no initialization to the RHS of debug statements.
35701 2013-02-28 Martin Jambor <mjambor@suse.cz>
35703 PR tree-optimization/56294
35704 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35706 (get_access_replacement): Do not call create_access_replacement.
35707 Assert a replacement exists.
35708 (get_repl_default_def_ssa_name): Create the replacement declaration
35711 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35713 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35714 final_end_function.
35716 2013-02-28 Marek Polacek <polacek@redhat.com>
35718 PR rtl-optimization/56466
35719 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35720 if we're changing a loop.
35721 (peel_loops_completely): Likewise.
35723 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35726 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35728 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35731 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35732 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35733 INTX_FTYPE_FX, FX_FTYPE_INTX.
35734 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35736 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35738 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35739 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35740 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35741 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35742 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35743 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35744 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35745 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35746 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35747 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35748 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35749 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35750 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35751 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35752 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35753 (avrxmega6): Increase max flash segments from 5 to 6.
35754 * config/avr/t-multilib: Regenerate.
35755 * config/avr/avr-tables.opt: Regenerate.
35756 * doc/avr-mmcu.texi: Regenerate.
35758 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35760 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35761 (avr_device_to_arch): Rename to avr_device_to_ld.
35762 (avr_device_to_as): New prototype.
35763 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35764 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35765 * config/avr/driver-avr.c (avr_device_to_as): New.
35766 (avr_device_to_arch): Rename to avr_device_to_ld.
35768 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35770 PR middle-end/56461
35771 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35772 method on dr_chain and result_chain.
35774 PR middle-end/56461
35775 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35776 pointer_set_destroy on not_executed_last_iteration.
35778 PR middle-end/56461
35779 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35781 PR middle-end/56461
35782 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35783 FOR_EACH_DEFINED_FUNCTION when freeing state.
35785 PR middle-end/56461
35786 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35788 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35791 PR middle-end/56461
35792 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35793 known_aggs[i].items and release known_aggs vector.
35795 PR middle-end/56461
35796 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35798 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35800 * config/microblaze/microblaze.c (microblaze_emit_compare):
35801 Use xor for EQ/NE comparisions.
35802 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35803 (cbranchsf4): Adjust operator to comparison_operator.
35805 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35807 PR middle-end/56461
35808 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35810 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35811 vec_safe_push, always update *slot.
35812 (redirect_edge_var_map_clear): Use vec_free.
35813 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35814 (free_var_map_entry): Use vec_free.
35815 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35816 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35818 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35820 PR middle-end/45472
35821 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35822 when the may_trap_p bit of the exprs being merged differs.
35823 Reorder tests for speculativeness in the logical and operator.
35825 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35827 * incpath.c (add_standard_paths): Use reconcat instead of concat
35828 where appropriate and avoid leaking memory.
35830 * opts.h: Include obstack.h.
35831 (opts_concat): New prototype.
35832 (opts_obstack): New declaration.
35833 * opts.c (opts_concat): New function.
35834 (opts_obstack): New variable.
35835 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35836 (finish_options): Use opts_concat instead of concat
35837 and XOBNEWVEC instead of XNEWVEC.
35838 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35839 generate_option): Likewise.
35840 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35841 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35844 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35845 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35847 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35849 PR middle-end/56461
35850 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35852 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35854 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35855 (arm_block_move_unaligned_straight): Likewise.
35856 (arm_adjust_block_mem): Likewise.
35858 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35861 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35862 temp, cond and label.
35863 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35866 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35867 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35870 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35871 of prologue/epilogue functions.
35874 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35875 Remove unused variable cfa_offset.
35876 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35879 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35880 type promotion to unsigned.
35883 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35884 for HOST_WIDE_INT of 32 bit / same size as int.
35885 (arm_block_move_unaligned_straight): Likewise.
35886 (arm_adjust_block_mem): Likewise.
35889 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35892 2013-02-26 Marek Polacek <polacek@redhat.com>
35894 PR tree-optimization/56426
35895 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35897 2013-02-26 Richard Biener <rguenther@suse.de>
35900 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35901 unused variable loops.
35903 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35905 PR tree-optimization/56448
35906 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35907 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35908 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35909 later operands of the references, or even first operand for
35910 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35912 PR tree-optimization/56443
35913 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35914 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35915 to type_for_mode langhook.
35917 2013-02-25 Matt Turner <mattst88@gmail.com>
35919 * doc/invoke.texi: Document r4700.
35921 2013-02-25 Richard Biener <rguenther@suse.de>
35923 PR tree-optimization/56175
35924 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35926 (simplify_bitwise_binary): ... here. Also guard the conversion
35927 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35929 2013-02-25 Catherine Moore <clm@codesourcery.com>
35932 2013-02-24 Catherine Moore <clm@codesourcery.com>
35933 Maciej W. Rozycki <macro@codesourcery.com>
35934 Tom de Vries <tom@codesourcery.com>
35935 Nathan Sidwell <nathan@codesourcery.com>
35936 Iain Sandoe <iain@codesourcery.com>
35937 Nathan Froyd <froydnj@codesourcery.com>
35938 Chao-ying Fu <fu@mips.com>
35940 * doc/extend.texi: (micromips, nomicromips, nocompression):
35941 Document new function attributes.
35942 * doc/invoke.texi (minterlink-compressed, mmicromips,
35943 m14k, m14ke, m14kec): Document new options.
35944 (minterlink-mips16): Update documentation.
35945 * doc/md.texi (ZC, ZD): Document new constraints.
35946 * configure.ac (gcc_cv_as_micromips): Check if linker
35947 supports the .set micromips directive.
35948 * configure: Regenerate.
35949 * config.in: Regenerate.
35950 * config/mips/mips-tables.opt: Regenerate.
35951 * config/mips/micromips.md: New file.
35952 * constraints.md (ZC, AD): New constraints.
35953 * config/mips/predicates.md (movep_src_register): New predicate.
35954 (movep_src_operand): New predicate.
35955 (non_volatile_mem_operand): New predicate.
35956 * config/mips/mips.md (multimem): New type.
35957 (length): Differentiate between 17-bit and 18-bit branch offsets.
35958 (MOVEP1, MOVEP2): New mode iterator.
35959 (mov_<load>l): Use ZC constraint.
35960 (mov_<load>r): Likewise.
35961 (mov_<store>l): Likewise.
35962 (mov_<store>r): Likewise.
35963 (*branch_equality<mode>_inverted): Add microMIPS support.
35964 (*branch_equality<mode>): Likewise.
35965 (*jump_absolute): Likewise.
35966 (indirect_jump_<mode>): Likewise.
35967 (tablejump_<mode>): Likewise.
35968 (<optab>_internal): Likewise.
35969 (sibcall_internal): Likewise.
35970 (sibcall_value_internal): Likewise.
35971 (prefetch): Use constraint ZD.
35972 * config/mips/mips.opt (minterlink-compressed): New option.
35973 (minterlink-mips16): Now an alias for minterlink-compressed.
35974 (mmicromips): New option.
35975 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35976 (compare_and_swap_12): Likewise.
35977 (sync_add<mode>): Likewise.
35978 (sync_<optab>_12): Likewise.
35979 (sync_old_<optab>_12): Likewise.
35980 (sync_new_<optab>_12): Likewise.
35981 (sync_nand_12): Likewise.
35982 (sync_old_nand_12): Likewise.
35983 (sync_new_nand_12): Likewise.
35984 (sync_sub<mode>): Likewise.
35985 (sync_old_add<mode>): Likewise.
35986 (sync_old_sub<mode>): Likewise.
35987 (sync_new_add<mode>): Likewise.
35988 (sync_new_sub<mode>): Likewise.
35989 (sync_<optab><mode>): Likewise.
35990 (sync_old_<optab><mode>): Likewise.
35991 (sync_new_<optab><mode>): Likewise.
35992 (sync_nand<mode>): Likewise.
35993 (sync_old_nand<mode>): Likewise.
35994 (sync_new_nand<mode>): Likewise.
35995 (sync_lock_test_and_set<mode>): Likewise.
35996 (test_and_set_12): Likewise.
35997 (atomic_compare_and_swap<mode>): Likewise.
35998 (atomic_exchange<mode>_llsc): Likewise.
35999 (atomic_fetch_add<mode>_llsc): Likewise.
36000 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36001 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36002 (umips_save_restore_pattern_p): Likewise.
36003 (umips_load_store_pair_p): Likewise.
36004 (umips_output_load_store_pair): Likewise.
36005 (umips_movep_target_p): Likewise.
36006 (umips_12bit_offset_address_p): Likewise.
36007 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36008 (mips_base_mips16): Rename this...
36009 (mips_base_compression_flags): ...to this. Update all uses.
36010 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36011 (mips_mips16_decl_p): Delete.
36012 (mips_nomips16_decl_p): Delete.
36013 (mips_get_compress_on_flags): New function.
36014 (mips_get_compress_off_flags): New function.
36015 (mips_get_compress_mode): New function.
36016 (mips_get_compress_on_name): New function.
36017 (mips_get_compress_off_name): New function.
36018 (mips_insert_attributes): Support multiple compression types.
36019 (mips_merge_decl_attributes): Likewise.
36020 (umips_12bit_offset_address_p): New function.
36021 (mips_start_function_definition): Emit .set micromips directive.
36022 (mips_call_may_need_jalx_p): New function.
36023 (mips_function_ok_for_sibcall): Add microMIPS support.
36024 (mips_print_operand_punctuation): Support short delay slots and
36026 (umips_swm_mask, umips_swm_encoding): New.
36027 (umips_build_save_restore): New function.
36028 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36029 (was_mips16_p): Remove.
36030 (old_compression_mode): New.
36031 (mips_set_compression_mode): New function.
36032 (mips_set_current_function): Add microMIPS support.
36033 (mips_option_override): Likewise.
36034 (umips_save_restore_pattern_p): New function.
36035 (umips_output_save_restore): New function.
36036 (umips_load_store_pair_p_1): New function.
36037 (umips_load_store_pair_p): New function.
36038 (umips_output_load_store_pair_1): New function.
36039 (umips_output_load_store_pair): New function.
36040 (umips_movep_target_p) New function.
36041 (mips_prepare_pch_save): Add microMIPS support.
36042 * config/mips/mips.h (TARGET_COMPRESSION): New.
36043 (TARGET_CPU_CPP_BUILTINS): Update macro
36044 to use new compression flags and to support microMIPS.
36045 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36046 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36047 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36048 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36049 (ASM_SPEC): Support mmicromips and mno-micromips.
36050 (M16STORE_REG_P): New macro.
36051 (MIPS_CALL): Support TARGET_MICROMIPS.
36052 (MICROMIPS_J): New macro.
36053 (mips_base_mips16): Rename this...
36054 (mips_base_compression_flags): ...to this.
36055 (UMIPS_12BIT_OFFSET_P): New macro.
36056 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36057 (MULTILIB_DIRNAMES): Likewise.
36059 2013-02-25 Tom de Vries <tom@codesourcery.com>
36061 PR rtl-optimization/56131
36062 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36063 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36064 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36066 2013-02-25 Tobias Burnus <burnus@net-b.de>
36068 * doc/invoke.texi (-fsanitize=): Move from optimization
36069 to debugging options.
36071 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36073 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36075 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36076 Alexander Monakov <amonakov@ispras.ru>
36078 PR middle-end/56077
36079 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36080 flush pending lists also on non-jumps. Adjust comment.
36082 2013-02-24 Catherine Moore <clm@codesourcery.com>
36083 Maciej W. Rozycki <macro@codesourcery.com>
36084 Tom de Vries <tom@codesourcery.com>
36085 Nathan Sidwell <nathan@codesourcery.com>
36086 Iain Sandoe <iain@codesourcery.com>
36087 Nathan Froyd <froydnj@codesourcery.com>
36088 Chao-ying Fu <fu@mips.com>
36090 * doc/extend.texi: (micromips, nomicromips, nocompression):
36091 Document new function attributes.
36092 * doc/invoke.texi (minterlink-compressed, mmicromips,
36093 m14k, m14ke, m14kec): Document new options.
36094 (minterlink-mips16): Update documentation.
36095 * doc/md.texi (ZC, ZD): Document new constraints.
36096 * configure.ac (gcc_cv_as_micromips): Check if linker
36097 supports the .set micromips directive.
36098 * configure: Regenerate.
36099 * config.in: Regenerate.
36100 * config/mips/mips-tables.opt: Regenerate.
36101 * config/mips/micromips.md: New file.
36102 * constraints.md (ZC, AD): New constraints.
36103 * config/mips/predicates.md (movep_src_register): New predicate.
36104 (movep_src_operand): New predicate.
36105 (non_volatile_mem_operand): New predicate.
36106 * config/mips/mips.md (multimem): New type.
36107 (length): Differentiate between 17-bit and 18-bit branch offsets.
36108 (MOVEP1, MOVEP2): New mode iterator.
36109 (mov_<load>l): Use ZC constraint.
36110 (mov_<load>r): Likewise.
36111 (mov_<store>l): Likewise.
36112 (mov_<store>r): Likewise.
36113 (*branch_equality<mode>_inverted): Add microMIPS support.
36114 (*branch_equality<mode>): Likewise.
36115 (*jump_absolute): Likewise.
36116 (indirect_jump_<mode>): Likewise.
36117 (tablejump_<mode>): Likewise.
36118 (<optab>_internal): Likewise.
36119 (sibcall_internal): Likewise.
36120 (sibcall_value_internal): Likewise.
36121 (prefetch): Use constraint ZD.
36122 * config/mips/mips.opt (minterlink-compressed): New option.
36123 (minterlink-mips16): Now an alias for minterlink-compressed.
36124 (mmicromips): New option.
36125 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36126 (compare_and_swap_12): Likewise.
36127 (sync_add<mode>): Likewise.
36128 (sync_<optab>_12): Likewise.
36129 (sync_old_<optab>_12): Likewise.
36130 (sync_new_<optab>_12): Likewise.
36131 (sync_nand_12): Likewise.
36132 (sync_old_nand_12): Likewise.
36133 (sync_new_nand_12): Likewise.
36134 (sync_sub<mode>): Likewise.
36135 (sync_old_add<mode>): Likewise.
36136 (sync_old_sub<mode>): Likewise.
36137 (sync_new_add<mode>): Likewise.
36138 (sync_new_sub<mode>): Likewise.
36139 (sync_<optab><mode>): Likewise.
36140 (sync_old_<optab><mode>): Likewise.
36141 (sync_new_<optab><mode>): Likewise.
36142 (sync_nand<mode>): Likewise.
36143 (sync_old_nand<mode>): Likewise.
36144 (sync_new_nand<mode>): Likewise.
36145 (sync_lock_test_and_set<mode>): Likewise.
36146 (test_and_set_12): Likewise.
36147 (atomic_compare_and_swap<mode>): Likewise.
36148 (atomic_exchange<mode>_llsc): Likewise.
36149 (atomic_fetch_add<mode>_llsc): Likewise.
36150 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36151 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36152 (umips_save_restore_pattern_p): Likewise.
36153 (umips_load_store_pair_p): Likewise.
36154 (umips_output_load_store_pair): Likewise.
36155 (umips_movep_target_p): Likewise.
36156 (umips_12bit_offset_address_p): Likewise.
36157 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36158 (mips_base_mips16): Rename this...
36159 (mips_base_compression_flags): ...to this. Update all uses.
36160 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36161 (mips_mips16_decl_p): Delete.
36162 (mips_nomips16_decl_p): Delete.
36163 (mips_get_compress_on_flags): New function.
36164 (mips_get_compress_off_flags): New function.
36165 (mips_get_compress_mode): New function.
36166 (mips_get_compress_on_name): New function.
36167 (mips_get_compress_off_name): New function.
36168 (mips_insert_attributes): Support multiple compression types.
36169 (mips_merge_decl_attributes): Likewise.
36170 (umips_12bit_offset_address_p): New function.
36171 (mips_start_function_definition): Emit .set micromips directive.
36172 (mips_call_may_need_jalx_p): New function.
36173 (mips_function_ok_for_sibcall): Add microMIPS support.
36174 (mips_print_operand_punctuation): Support short delay slots and
36176 (umips_swm_mask, umips_swm_encoding): New.
36177 (umips_build_save_restore): New function.
36178 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36179 (was_mips16_p): Remove.
36180 (old_compression_mode): New.
36181 (mips_set_compression_mode): New function.
36182 (mips_set_current_function): Add microMIPS support.
36183 (mips_option_override): Likewise.
36184 (umips_save_restore_pattern_p): New function.
36185 (umips_output_save_restore): New function.
36186 (umips_load_store_pair_p_1): New function.
36187 (umips_load_store_pair_p): New function.
36188 (umips_output_load_store_pair_1): New function.
36189 (umips_output_load_store_pair): New function.
36190 (umips_movep_target_p) New function.
36191 (mips_prepare_pch_save): Add microMIPS support.
36192 * config/mips/mips.h (TARGET_COMPRESSION): New.
36193 (TARGET_CPU_CPP_BUILTINS): Update macro
36194 to use new compression flags and to support microMIPS.
36195 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36196 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36197 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36198 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36199 (ASM_SPEC): Support mmicromips and mno-micromips.
36200 (M16STORE_REG_P): New macro.
36201 (MIPS_CALL): Support TARGET_MICROMIPS.
36202 (MICROMIPS_J): New macro.
36203 (mips_base_mips16): Rename this...
36204 (mips_base_compression_flags): ...to this.
36205 (UMIPS_12BIT_OFFSET_P): New macro.
36206 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36207 (MULTILIB_DIRNAMES): Likewise.
36209 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36212 * target-globals.c (save_target_globals): For init_reg_sets and
36213 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36215 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36217 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36218 * config/aarch64/t-aarch64
36219 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36221 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36223 PR inline-asm/56148
36224 * lra-constraints.c (process_alt_operands): Reload operand
36225 conflicting with earlier clobber only if no more other conflicting
36228 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36231 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36232 if not linking a shared library.
36234 2013-02-22 Seth LaForge <sethml@google.com>
36236 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36238 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36240 * config/arm/arm.md (split for extendsidi): Update condition.
36241 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36242 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36243 (qhs_zextenddi_cstr): Likewise.
36245 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36247 PR middle-end/56420
36248 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36249 avoid signed wrapping.
36250 (expand_mult): Handle properly multiplication by
36251 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36252 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36253 in the compiler if coeff is HOST_WIDE_INT_MIN.
36254 (expand_divmod): Don't make ext_op1 static, change it's type to
36255 uhwi. Avoid undefined behavior in -INTVAL (op1).
36257 PR rtl-optimization/50339
36258 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36260 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36261 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36262 into splitting_ashiftrt field.
36263 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36265 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36268 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36270 PR middle-end/56108
36271 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36272 are sure to go irrevocable.
36274 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36276 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36277 scalars are valid operands.
36279 2013-02-21 Martin Jambor <mjambor@suse.cz>
36281 PR tree-optimization/56310
36282 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36283 only matching indices and non-negative final offsets.
36284 (intersect_aggregates_with_edge): Pass src_idx to
36285 agg_replacements_to_vector. Pass src_idx insstead of index to
36286 intersect_with_agg_replacements.
36288 2013-02-21 Martin Jambor <mjambor@suse.cz>
36290 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36291 instead of hard-wired defaults.
36293 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36295 * doc/invoke.texi (MIPS Options): Update documentation of the
36296 floating-point multiply-accumulate instruction restrictions.
36298 2013-02-21 Kostya Serebryany <kcc@google.com>
36300 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36301 asan_shadow_offset on x86_64 linux.
36303 2013-02-21 Richard Biener <rguenther@suse.de>
36305 PR tree-optimization/56415
36307 2013-02-11 Richard Biener <rguenther@suse.de>
36309 PR tree-optimization/56273
36310 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36313 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36316 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36319 PR inline-asm/56405
36320 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36321 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36323 2013-02-20 Jan Hubicka <jh@suse.cz>
36325 PR tree-optimization/56265
36326 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36327 when target is referenced for first time.
36329 2013-02-20 Richard Biener <rguenther@suse.de>
36331 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36332 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36333 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36334 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36335 not return anything.
36336 (rename_ssa_copies): Do not remove unused locals.
36337 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36338 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36339 * passes.c (execute_function_todo): Do not schedule unused locals
36340 removal if cleanup_tree_cfg did something.
36341 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36342 about the number of removed locals.
36344 2013-02-20 Richard Biener <rguenther@suse.de>
36346 PR tree-optimization/56398
36347 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36349 2013-02-20 Martin Jambor <mjambor@suse.cz>
36351 PR tree-optimization/55334
36352 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36353 restricted pointers to arrays.
36355 2013-02-20 Richard Biener <rguenther@suse.de>
36356 Jakub Jelinek <jakub@redhat.com>
36358 PR tree-optimization/56396
36359 * tree-ssa-ccp.c (n_const_val): New static variable.
36360 (get_value): Return NULL for SSA names we don't have a lattice
36362 (ccp_initialize): Initialize n_const_val.
36363 * tree-ssa-copy.c (n_copy_of): New static variable.
36364 (init_copy_prop): Initialize n_copy_of.
36365 (get_value): Return NULL_TREE for SSA names we don't have a
36368 2013-02-20 Martin Jambor <mjambor@suse.cz>
36370 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36372 2013-02-20 Richard Biener <rguenther@suse.de>
36374 * genpreds.c (write_lookup_constraint): Do not compare first
36375 letter of the constraint again.
36377 2013-02-20 Richard Biener <rguenther@suse.de>
36379 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36381 (get_use_iv_cost): Terminate hashtable walk when coming across
36384 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36386 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36387 reassociation for avx2 targets.
36389 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36391 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36392 Add version check for v8.10.a to enable microblaze_has_clz
36393 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36394 version and TARGET_PATTERN_COMPARE check
36395 * config/microblaze/microblaze.md: New clzsi2 instruction
36397 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36399 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36400 function before branching.
36402 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36404 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36406 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36408 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36410 PR middle-end/55889
36411 * sel-sched.c: Include ira.h.
36412 (implicit_clobber_conflict_p): New function.
36413 (moveup_expr): Use it.
36414 * Makefile.in (sel-sched.o): Depend on ira.h.
36416 2013-02-19 Richard Biener <rguenther@suse.de>
36418 PR tree-optimization/56384
36419 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36420 (vn_hash_type): Split out from ...
36421 (vn_hash_constant_with_type): ... here.
36422 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36423 (vn_phi_eq): Compare types from vn_phi_s structure.
36424 (vn_phi_lookup): Populate vn_phi_s type.
36425 (vn_phi_insert): Likewise.
36427 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36429 PR tree-optimization/56350
36430 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36431 if haven't found reduction or nested cycle operand, rather than
36432 asserting we must find it.
36434 PR tree-optimization/56381
36435 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36438 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36439 Jakub Jelinek <jakub@redhat.com>
36442 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36443 (swap_optab_enable): Same.
36444 (init_all_optabs): Use argument instead of global.
36445 * tree.h (struct tree_optimization_option): New field target_optabs.
36446 * expr.h (init_all_optabs): Add argument to prototype.
36447 (TREE_OPTIMIZATION_OPTABS): New.
36448 (save_optabs_if_changed): Protoize.
36449 * optabs.h: Declare this_fn_optabs.
36450 * optabs.c (save_optabs_if_changed): New.
36451 Declare this_fn_optabs.
36452 (init_optabs): Add argument to init_all_optabs() call.
36453 * function.c (invoke_set_current_function_hook): Handle per
36455 * function.h (struct function): New field optabs.
36456 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36457 optimization_current_node has changed.
36458 * target-globals.h (save_target_globals_default_opts): Protoize.
36459 * target-globals.c (save_target_globals_default_opts): New.
36461 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36464 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36465 registers %fr12 and %fr12R as call used.
36468 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36469 and HImode, require all displacements to be an integer multiple of
36471 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36472 only allow QImode and HImode when reload is in progress and strict is
36473 true. Likewise for symbolic addresses. Use base14_operand to check
36474 displacements in REG+BASE addresses.
36476 2013-02-18 Richard Biener <rguenther@suse.de>
36478 PR tree-optimization/56366
36479 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36480 handle sign-conversion of outer-loop initial induction value.
36482 2013-02-18 Richard Biener <rguenther@suse.de>
36484 PR middle-end/56349
36485 * cfghooks.c (merge_blocks): If we merge a latch into another
36486 block adjust references to it.
36487 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36488 (verify_loop_structure): Verify that a recorded latch is in fact
36491 2013-02-18 Richard Biener <rguenther@suse.de>
36493 PR tree-optimization/56321
36494 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36495 order SSA name release and virtual operand unlinking.
36497 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36499 * config/microblaze/microblaze.md (save_stack_block): Define.
36500 (restore_stack_block): Likewise.
36502 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36504 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36505 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36506 * config/microblaze/microblaze.c (microblaze_option_override):
36507 Bail out early for PIC modes when target does not support PIC.
36509 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36511 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36512 Replace with a microblaze version.
36513 (microblaze_trampoline_init): Adapt for microblaze.
36514 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36517 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36518 Dodji Seketeli <dodji@redhat.com>
36521 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36522 (instrument_mem_region_access): Do not forget to always put
36523 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36524 0) statement, even for cases where either 'base' or 'base + len'
36525 are not instrumented -- because they have been previously
36526 instrumented. Simplify the logic by putting all the statements
36527 instrument 'base + len' inside a sequence, and then insert that
36528 sequence right before the current insertion point. Then, to
36529 instrument 'base + len', just get an iterator on that statement.
36530 And do not forget to update the pointer to iterator the function
36531 received as argument.
36533 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36535 PR rtl-optimization/56348
36536 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36538 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36540 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36541 (clean_graph_dump_file): Pass base to start_graph_dump.
36543 2013-02-14 Richard Henderson <rth@redhat.com>
36546 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36548 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36550 * collect2-aix.h: Define F_LOADONLY.
36552 2013-02-14 Richard Biener <rguenther@suse.de>
36555 * varasm.c (output_constant_def_1): Get the decl representing
36556 the constant as argument.
36557 (output_constant_def): Wrap output_constant_def_1.
36558 (make_decl_rtl): Use output_constant_def_1 with the decl
36559 representing the constant.
36560 (build_constant_desc): Optionally re-use a decl already
36561 representing the constant.
36562 (tree_output_constant_def): Adjust.
36564 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36567 * asan.c (instrument_builtin_call): Really put the length of the
36568 second source argument into src1_len.
36570 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36572 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36573 argument. If it is false, don't create edge from then_bb to
36575 (insert_if_then_before_iter): Pass true to it.
36576 (build_check_stmt): Pass false to it.
36577 (transform_statements): Flush hash table only on extended basic
36578 block boundaries, rather than at the beginning of every bb.
36579 Don't flush hash table on nonfreeing_call_p calls.
36580 * tree-flow.h (nonfreeing_call_p): New prototype.
36581 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36583 2013-02-13 David S. Miller <davem@davemloft.net>
36585 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36587 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36590 * ira.c (max_regno_before_ira): Move from ...
36592 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36595 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36597 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36599 2013-02-13 Richard Biener <rguenther@suse.de>
36602 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36603 globals in MEM_REFs.
36605 2013-02-13 Richard Biener <rguenther@suse.de>
36607 * loop-init.c (loop_optimizer_init): Clear loop state when
36608 re-initializing preserved loops.
36609 * loop-unswitch.c (unswitch_single_loop): Return whether
36610 we unswitched the loop. Do not verify loop state here.
36611 (unswitch_loops): When we unswitched a loop discover new loops.
36613 2013-02-13 Kostya Serebryany <kcc@google.com>
36615 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36617 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36619 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36621 Avoid instrumenting duplicated memory access in the same basic block
36622 * Makefile.in (asan.o): Add new dependency on hash-table.h
36623 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36624 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36625 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36626 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36627 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36628 (get_mem_ref_of_assignment): New functions.
36629 (get_mem_refs_of_builtin_call): Extract from
36630 instrument_builtin_call and tweak a little bit to make it fit with
36632 (instrument_builtin_call): Use the new
36633 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36634 of is_gimple_builtin_call.
36635 (instrument_derefs, instrument_mem_region_access): Insert the
36636 instrumented memory reference into the hash table.
36637 (maybe_instrument_assignment): Renamed instrument_assignment into
36638 this, and change it to advance the iterator when instrumentation
36639 actually happened and return true in that case. This makes it
36640 homogeneous with maybe_instrument_assignment, and thus give a
36641 chance to callers to be more 'regular'.
36642 (transform_statements): Clear the memory reference hash table
36643 whenever we enter a new BB, when we cross a function call, or when
36644 we are done transforming statements. Use
36645 maybe_instrument_assignment instead of instrumentation. No more
36646 need to special case maybe_instrument_assignment and advance the
36647 iterator after calling it; it's now handled just like
36648 maybe_instrument_call. Update comment.
36650 2013-02-13 Richard Biener <rguenther@suse.de>
36652 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36653 Fix loop discovery code.
36655 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36657 PR inline-asm/56148
36658 * lra-constraints.c (process_alt_operands): Match early clobber
36659 operand with itself. Check conflicts with earlyclobber only if
36660 the operand is not reloaded. Prefer to reload conflicting operand
36661 if earlyclobber and matching operands are the same.
36663 2013-02-12 Richard Biener <rguenther@suse.de>
36666 * lto-streamer-out.c (write_symbol): Do not output symbols
36667 for hard register variables.
36669 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36672 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36673 (umulsidi3_insn, mulsidi3_insn): New insns.
36675 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36677 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36678 (struct tune_params): Add vec_costs field.
36679 * config/arm/arm.c (arm_builtin_vectorization_cost)
36680 (arm_add_stmt_cost): New functions.
36681 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36682 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36683 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36684 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36685 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36686 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36687 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36689 2013-02-12 Richard Biener <rguenther@suse.de>
36692 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36693 decls again if possible.
36695 2013-02-12 Richard Biener <rguenther@suse.de>
36697 PR middle-end/56288
36698 * tree-ssa.c (verify_ssa_name): Fix check, move
36699 SSA_NAME_IN_FREE_LIST check up.
36701 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36702 Steven Bosscher <steven@gcc.gnu.org>
36704 PR rtl-optimization/56151
36705 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36706 equal to op0 or op1, and last_insn pattern is CODE operation
36707 with MEM dest and one of the operands matches that MEM.
36709 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36711 * doc/extend.texi: Document Function Multiversioning and "default"
36712 parameter string to target attribute.
36713 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36714 target attribute parameter is "default".
36715 (ix86_compare_version_priority): Remove checks for target attribute.
36716 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36717 Remove check for target attribute equal to NULL. Add assert.
36718 (ix86_generate_version_dispatcher_body): Change error to sorry.
36720 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36721 Jack Howarth <howarth@bromo.med.uc.edu>
36722 Patrick Marlier <patrick.marlier@gmail.com>
36725 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36726 define ENDFILE_SPEC as TM_DESTRUCTOR.
36727 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36729 2013-02-11 Alexander Potapenko <glider@google.com>
36730 Jack Howarth <howarth@bromo.med.uc.edu>
36731 Jakub Jelinek <jakub@redhat.com>
36734 * config/darwin.c (cdtor_record): Rename ctor_record.
36735 (sort_cdtor_records): Rename sort_ctor_records.
36736 (finalize_dtors): New routine to sort destructors by
36737 priority before use in assemble_integer.
36738 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36740 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36742 PR rtl-optimization/56275
36743 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36744 offset is non-negative and less than cmode size before
36745 calling simplify_subreg.
36747 2013-02-11 Richard Biener <rguenther@suse.de>
36749 PR tree-optimization/56264
36750 * cfgloop.h (fix_loop_structure): Adjust prototype.
36751 * loop-init.c (fix_loop_structure): Return the number of
36752 newly discovered loops.
36753 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36754 are discovered, do a full loop-closed SSA rewrite.
36756 2013-02-11 Richard Biener <rguenther@suse.de>
36758 PR tree-optimization/56273
36759 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36761 (check_array_ref): Fix missing newline in dumps.
36762 (search_for_addr_array): Likewise.
36764 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36766 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36768 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36771 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36773 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36775 PR rtl-optimization/56246
36776 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36778 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36779 constraints are satisfied.
36781 2013-02-08 Jeff Law <law@redhat.com>
36784 * emit-rtl.c (reg_is_parm_p): New function.
36785 * regs.h (reg_is_parm_p): New prototype.
36786 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36787 callee-clobbered registers.
36789 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36792 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36793 If there is no implicit builtin declaration, just return NULL.
36795 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36797 * config/i386/sse.md (FMAMODEM): New mode iterator.
36798 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36799 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36801 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36803 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36804 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36805 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36807 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36809 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36810 (microblaze*-*-elf): Likewise.
36811 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36813 * config/microblaze/microblaze-c.c: Add builtin defines for
36814 _LITTLE_ENDIAN and _BIG_ENDIAN.
36815 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36816 add to TARGET_DEFAULT flags.
36817 Expand ASM_SPEC and LINK_SPEC.
36818 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36819 * config/microblaze/microblaze.md: Update extendsidi2 and
36820 movdi_internal instructions to use low-order / high-order reg
36822 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36823 options and inversemask / mask of LITTLE_ENDIAN.
36824 * config/microblaze/t-microblaze: Expand multilib options to
36825 include mlittle-endian (le) and update exceptions patterns.
36827 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36829 PR rtl-optimization/56195
36830 * lra-constraints.c (get_reload_reg): Don't reuse regs
36831 if they have smaller mode than requested, if they have
36832 wider mode than requested, try to return a SUBREG.
36834 PR tree-optimization/56250
36835 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36836 if type is unsigned and code isn't MULT_EXPR.
36838 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36840 PR tree-optimization/56064
36841 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36842 bits according to mode.
36843 * fixed-value.h (fixed_from_double_int)
36844 (const_fixed_from_double_int): Adjust comments.
36846 2013-02-08 Richard Biener <rguenther@suse.de>
36849 * lto-streamer.h (struct data_in): Remove current_file, current_line
36850 and current_col members.
36851 * lto-streamer-out.c (lto_output_location): Stream changed bits
36852 en-block for efficiency.
36853 * lto-streamer-in.c (clear_line_info): Remove.
36854 (lto_input_location): Cache current file, line and column
36855 globally via local statics. Read changed bits en-block.
36856 (input_function): Do not call clear_line_info.
36857 (lto_read_body): Likewise.
36858 (lto_input_toplevel_asms): Likewise.
36860 2013-02-08 Michael Matz <matz@suse.de>
36862 PR tree-optimization/52448
36863 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36864 (nt_call_phase): New static.
36865 (add_or_mark_expr): Only mark accesses with newer phase than any
36867 (nonfreeing_call_p): New.
36868 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36869 (nt_fini_block): Keep blocks marked as visited.
36870 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36872 2013-02-08 Richard Biener <rguenther@suse.de>
36874 * ira.c (ira): Free broken dominator information.
36876 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36878 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36880 2013-02-08 Marek Polacek <polacek@redhat.com>
36882 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36884 2013-02-08 Richard Biener <rguenther@suse.de>
36886 PR middle-end/56181
36887 * cfgloop.h (flow_loops_find): Adjust.
36888 (bb_loop_header_p): Declare.
36889 * cfgloop.c (bb_loop_header_p): New function split out from ...
36890 (flow_loops_find): ... here. Adjust function signature,
36891 support incremental loop structure update.
36892 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36893 * cfgloopmanip.c (fix_loop_structure): Move ...
36894 * loop-init.c (fix_loop_structure): ... here.
36895 (apply_loop_flags): Split out from ...
36896 (loop_optimizer_init): ... here.
36897 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36898 in incremental mode, only remove dead loops here.
36900 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36903 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36904 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36905 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36906 (*round<mode>3.libgcc): New insns for fixed-modes.
36907 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36908 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36909 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36910 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36911 implementations. Define to __builtin_avr_absFX,
36912 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36913 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36914 __builtin_avr_countlsFX, respectively.
36915 * config/avr/avr-c.c (target.h): Include it.
36916 (enum avr_builtin_id): New enum.
36917 (avr_resolve_overloaded_builtin): New static function.
36918 (avr_register_target_pragmas): Use it to set
36919 targetm.resolve_overloaded_builtin.
36920 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36921 tree nodes used by DEF_BUILTIN.
36922 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36923 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36924 <AVR_BUILTIN_xxBITS>: Same.
36926 2013-02-08 Richard Biener <rguenther@suse.de>
36928 * cfgloop.c (verify_loop_structure): Properly handle
36929 a loop exiting to another loop header.
36930 * ira-int.h (ira_loops): Remove.
36931 * ira.c (ira_loops): Remove.
36932 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36933 (do_reload): Use loop_optimizer_finalize.
36934 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36935 number_of_loops to access the loop tree.
36936 (more_one_region_p): Likewise.
36937 (finish_loop_tree_nodes): Likewise.
36938 (rebuild_regno_allocno_maps): Likewise.
36939 (mark_loops_for_removal): Likewise.
36940 (mark_all_loops_for_removal): Likewise.
36941 (remove_unnecessary_regions): Likewise.
36942 (ira_build): Likewise.
36943 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36945 2013-02-08 Richard Biener <rguenther@suse.de>
36947 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36948 * ipa-pure-const.c (analyze_function): Avoid calling
36949 mark_irreducible_loops twice.
36950 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36952 2013-02-07 David S. Miller <davem@davemloft.net>
36954 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36956 * var-tracking.c (vt_add_function_parameter): Test the presence of
36957 HAVE_window_save properly and do not remap argument registers when
36958 we have a leaf function.
36960 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36963 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36965 * config/i386/i386.c (ix86_print_operand): Ditto.
36967 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36969 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36971 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36973 PR rtl-optimization/56225
36974 * lra-constraints.c (process_alt_operands): Check that reload hard
36975 reg can hold value for strict_low_part.
36977 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36980 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36981 dwarf2out_end_function.
36982 (in_first_function_p, maybe_at_text_label_p,
36983 first_loclabel_num_not_at_text_label): New variables.
36984 (dwarf2out_var_location): In the first function find out
36985 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36986 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36989 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36991 PR rtl-optimization/56178
36992 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36993 SUBREG of a register. Tidy up related block of code.
36994 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36995 note if the source is a register or a SUBREG of a register.
36997 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37000 * config/rs6000/rs6000.md (ptrm): New mode attr.
37001 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37002 call_value_indirect_aix<pttrsize>,
37003 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37006 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37008 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37009 if -bnortl. Convert to strcmp and strncmp.
37011 2013-02-07 Alan Modra <amodra@gmail.com>
37014 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37015 addresses won't wrap when offsetting.
37016 (rs6000_secondary_reload): Provide secondary reloads needed for
37017 wrapping LO_SUM addresses.
37019 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37021 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37022 MACH, just __MACH__.
37024 2013-02-06 Richard Biener <rguenther@suse.de>
37026 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37027 instead of calling fix_loop_structure.
37029 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37031 PR middle-end/56217
37032 * omp-low.c (use_pointer_for_field): Return false if
37033 lower_send_shared_vars doesn't generate any copy-out code.
37035 2013-02-06 Tom de Vries <tom@codesourcery.com>
37037 PR rtl-optimization/56131
37038 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37039 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37040 of the label is NULL. Add comment.
37042 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37044 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37047 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37048 (STATIC_LIBTSAN_LIBS): Likewise.
37049 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37050 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37051 is defined, don't add anything else beyond that.
37052 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37053 (LINK_COMMAND_SPEC): Use them.
37055 PR tree-optimization/56205
37056 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37057 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37058 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37060 2013-02-05 Richard Biener <rguenther@suse.de>
37062 PR tree-optimization/53342
37063 PR tree-optimization/53185
37064 * tree-vectorizer.h (vect_check_strided_load): Remove.
37065 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37066 not disallow peeling for vectorized strided loads.
37067 (vect_check_strided_load): Make static and simplify.
37068 (vect_analyze_data_refs): Adjust.
37069 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37070 correctly when vectorizing strided loads.
37072 2013-02-05 Richard Biener <rguenther@suse.de>
37074 * doc/install.texi: Refer to ISL, not PPL.
37076 2013-02-05 Jan Hubicka <jh@suse.cz>
37078 PR tree-optimization/55789
37079 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37081 2013-02-05 Jan Hubicka <jh@suse.cz>
37083 PR tree-optimization/55789
37084 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37085 the dead call anyway.
37087 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37090 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37092 2013-02-04 Alexander Potapenko <glider@google.com>
37093 Jack Howarth <howarth@bromo.med.uc.edu>
37094 Jakub Jelinek <jakub@redhat.com>
37097 * config/darwin.c (sort_ctor_records): Stabilized qsort
37098 on constructor priority by using original position.
37099 (finalize_ctors): New routine to sort constructors by
37100 priority before use in assemble_integer.
37101 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37103 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37106 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37107 about visibility on artificial decls.
37108 * config/sol2.c (solaris_assemble_visibility): Likewise.
37110 2013-02-04 Kai Tietz <ktietz@redhat.com>
37113 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37114 argument and improve checking of return-argument types for 16-byte
37116 (ix86_function_value_1): Add additional valtype argument on call
37117 of function_value_64.
37118 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37119 handling infunction_value_64 function.
37121 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37123 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37125 2013-02-04 Richard Biener <rguenther@suse.de>
37127 PR tree-optimization/56188
37128 * tree-ssa-structalias.c (label_visit): Consider case with
37129 initially non-empty points-to set.
37130 (perform_var_substitution): Dump node mapping and clean up.
37132 2013-02-04 Richard Guenther <rguenther@suse.de>
37135 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37136 node prevail as last resort.
37137 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37138 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37140 2013-02-04 Richard Biener <rguenther@suse.de>
37142 PR tree-optimization/56113
37143 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37145 (equiv_class_lookup_or_add): ... this.
37146 (label_visit): Adjust and fix error in previous patch.
37147 (perform_var_substitution): Adjust.
37149 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37151 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37152 * config/sh/sh4-300.md: Likewise.
37153 * config/sh/sh4a.md: Likewise.
37154 * config/sh/constraints.md: Likewise.
37155 * config/sh/sh.md: Likewise.
37156 * config/sh/netbsd-elf.h: Likewise.
37157 * config/sh/predicates.md: Likewise.
37158 * config/sh/sh-protos.h: Likewise.
37159 * config/sh/ushmedia.h: Likewise.
37160 * config/sh/linux.h: Likewise.
37161 * config/sh/sh.c: Likewise.
37162 * config/sh/superh.h: Likewise.
37163 * config/sh/elf.h: Likewise.
37164 * config/sh/sh4.md: Likewise.
37165 * config/sh/sh.h: Likewise.
37167 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37169 * config/pa/constraints.md: Adjust unused letters. Change "T"
37170 constraint to match_test floating_point_store_memory_operand().
37171 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37172 (base14_operand): New.
37173 (floating_point_store_memory_operand): New.
37174 (integer_store_memory_operand): Revise to use base14_operand and
37175 reg_plus_base_memory_operand.
37176 (move_dest_operand): Allow symbolic_memory_operands.
37177 (symbolic_memory_operand): Check for LO_SOM.
37178 (symbolic_operand): Change default case to break.
37179 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37180 CONST_DOUBLE values to be reloaded by putting them into memory when
37181 the destination is a floating point register.
37182 (movdf): Remove code to handle CONST_DOUBLE.
37184 (reload_indf_r1): New.
37185 (reload_insf_r1): New.
37186 Consistently use "Q" and "T" constraints with integer and floating
37187 point move instructions, respectively.
37188 (movdi): Remove FAIL.
37189 Change predicate for source operand unamed DImode move from
37190 general_operand to move_src_operand.
37191 (umulsidi3): Change predicate for destination operand to
37193 Likewise for similar unamed patterns.
37194 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37195 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37196 (hppa_legitimize_address): Simplify mask calculation.
37197 (pa_emit_move_sequence): Revised handling of secondary reloads from
37198 REG+D addresses for floating point loads and stores. Directly handle
37199 loading CONST0_RTX (mode) to a floating point register.
37200 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37201 to floating point registers. Don't restrict secondary reloads to
37202 floating point registers to integer modes. Revise some comments and
37204 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37205 (pa_legitimate_address_p): New.
37206 (pa_legitimize_reload_address): New.
37207 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37208 (STRICT_REG_OK_FOR_BASE_P): New.
37209 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37210 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37212 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37213 Andrew Dixie <andrewd@gentrack.com>
37215 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37218 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37220 * expmed.c (extract_bit_field_1): Pass the full width of the
37221 structure to get_best_reg_extraction_insn.
37223 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37226 * configure.ac (use_cxa_atexit): Add AIX.
37227 * configure: Regenerate.
37229 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37231 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37234 * final.c (need_profile_function): New variable.
37235 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37236 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37237 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37238 notes, targetm.asm_out.function_prologue doesn't emit anything,
37239 HAVE_prologue and profiler should be emitted before prologue,
37240 set need_profile_function instead of emitting it.
37241 (final_scan_insn): If need_profile_function, emit
37242 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37243 NOTE_INSN_FUNCTION_BEG note.
37245 2013-02-01 Richard Henderson <rth@redhat.com>
37247 * config/rs6000/rs6000.md (smulditi3): New.
37250 * config/alpha/alpha.md (umulditi3): New.
37252 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37254 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37255 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37257 2013-02-01 Richard Biener <rguenther@suse.de>
37259 PR tree-optimization/56113
37260 * tree-ssa-structalias.c (label_visit): Reduce work for
37261 single-predecessor nodes.
37263 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37265 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37266 range isn't testing for zero.
37268 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37270 PR middle-end/56113
37271 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37273 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37274 Nick Clifton <nickc@redhat.com>
37276 * config/v850/constraints.md (Q): Define as a memory constraint.
37277 * config/v850/predicates.md (label_ref_operand): New predicate.
37278 (e3v5_shift_operand): New predicate.
37279 (ior_operator): New predicate.
37280 * config/v850/t-v850: Add e3v5 multilib.
37281 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37282 (v850_gen_movdi): Prototype.
37283 * config/v850/v850.c: Add support for e3v5 architecture.
37284 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37286 (construct_save_jarl): Add e3v5 long JARL support.
37287 (v850_adjust_insn_length): New function. Adjust length of call
37288 insns when using e3v5 instructions.
37289 (v850_gen_movdi): New function: Generate instructions to move a
37291 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37292 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37293 (TARGET_USE_FPU): Enable for e3v5.
37294 (CONST_OK_FOR_W): New macro.
37295 (ADJUST_INSN_LENGTH): Define.
37296 * config/v850/v850.md (UNSPEC_LOOP): Define.
37297 (attr cpu): Add v850e3v5.
37298 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37299 (movdi): New pattern.
37300 (movdi_internal): New pattern.
37301 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37302 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37303 (cstoresf4): Likewise.
37304 (cstoredf4): Likewise.
37305 (insv): New pattern.
37306 (rotlso3_a): New pattern.
37307 (rotlsi3_b): New pattern
37308 (rotlsi3_v850e3v5): New pattern.
37309 (doloop_begin): New pattern.
37310 (fix_loop_counter): New pattern.
37311 (doloop_end): New pattern.
37312 (branch_normal): Add e3v5 long branch support.
37313 (branch_invert): Likewise.
37314 (branch_z_normal): Likewise.
37315 (branch_z_invert): Likewise.
37316 (branch_nz_normal): Likewise.
37317 (branch_nz_invert): Likewise.
37318 (call_internal_short): Add e3v5 register-indirect JARL support.
37319 (call_internal_long): Likewise.
37320 (call_value_internal_short): Likewise.
37321 (call_value_internal_long): Likewise.
37322 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37323 (mloop): New option.
37324 * config.gcc: Add support for configuring v840e3v5 target.
37325 * doc/invoke.texi: Document new v850 specific command line options.
37327 2013-01-31 Paul Koning <ni1d@arrl.net>
37331 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37332 children if parent is a class.
37333 (prune_unused_types_prune): Don't add DW_AT_declaration.
37335 2013-01-31 Richard Biener <rguenther@suse.de>
37337 PR tree-optimization/56157
37338 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37339 match up operand with SLP child.
37341 2013-01-31 Jason Merrill <jason@redhat.com>
37344 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37345 parameters the first time.
37346 (gen_scheduled_generic_parms_dies): Check completeness here.
37348 2013-01-31 Richard Biener <rguenther@suse.de>
37350 PR middle-end/53073
37351 * common.opt (faggressive-loop-optimizations): New flag,
37352 enabled by default.
37353 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37354 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37355 infer_loop_bounds_from_undefined by it.
37357 2013-01-31 Richard Biener <rguenther@suse.de>
37359 PR tree-optimization/56150
37360 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37361 visit virtual operands.
37362 (find_uses_to_rename_bb): Likewise.
37364 2013-01-31 Richard Biener <rguenther@suse.de>
37366 PR tree-optimization/56150
37367 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37368 mixed store non-store stmts.
37370 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37373 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37374 LIBASAN_EARLY_SPEC is defined.
37375 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37376 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37378 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37381 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37382 invalid args instead of ICEing on it.
37383 (ix86_valid_target_attribute_tree): Return error_mark_node if
37384 ix86_valid_target_attribute_inner_p failed.
37385 (ix86_valid_target_attribute_p): Return false only if
37386 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37387 target("default") attribute.
37388 (sorted_attr_string): Change argument from const char * to tree,
37389 merge in all target attribute arguments rather than just one.
37390 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37391 instead of free. Avoid using strcat.
37392 (ix86_mangle_function_version_assembler_name): Mangle
37393 target("default") as if no target attribute is present. Adjust
37394 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37395 instead of xmalloc and XDELETEVEC instead of free.
37396 (ix86_function_versions): Don't return true if one of the decls
37397 doesn't have target attribute. If they don't and one of the decls
37398 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37399 sorted_attr_string caller. Use XDELETEVEC instead of free.
37400 (ix86_supports_function_versions): Remove.
37401 (make_name): Fix up formatting.
37402 (make_dispatcher_decl): Remove resolver_name and its initialization.
37403 Avoid leaking memory.
37404 (is_function_default_version): Return true if there is
37405 target("default") attribute rather than no target attribute at all.
37406 (make_resolver_func): Avoid leaking memory.
37407 (ix86_generate_version_dispatcher_body): Likewise.
37408 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37409 * target.def (supports_function_versions): Remove.
37410 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37411 * doc/tm.texi: Regenerated.
37413 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37415 PR rtl-optimization/56144
37416 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37417 for values with side effects.
37419 2013-01-30 Richard Biener <rguenther@suse.de>
37421 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37422 (sparseset_pop): Likewise.
37423 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37424 to be able to use quick_push in the worker loop.
37426 2013-01-30 Marek Polacek <polacek@redhat.com>
37428 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37430 2013-01-30 Richard Biener <rguenther@suse.de>
37433 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37435 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37437 PR tree-optimization/56064
37438 * fixed-value.c (fixed_from_double_int): New function.
37439 * fixed-value.h (fixed_from_double_int): New prototype.
37440 (const_fixed_from_double_int): New static inline function.
37441 * fold-const.c (native_interpret_fixed): New static function.
37442 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37443 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37444 (native_encode_fixed): New static function.
37445 (native_encode_expr) <FIXED_CST>: Use it.
37446 (native_interpret_int): Move double_int worker code to...
37447 * double-int.c (double_int::from_buffer): ...this new static method.
37448 * double-int.h (double_int::from_buffer): Prototype it.
37450 2013-01-30 Richard Biener <rguenther@suse.de>
37452 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37453 New pointer-map and obstack.
37454 (init_alias_vars): Allocate pointer-map and obstack.
37455 (delete_points_to_sets): Free them.
37456 (find_what_var_points_to): Cache result.
37457 (find_what_p_points_to): Adjust for changed interface of
37458 find_what_var_points_to.
37459 (compute_points_to_sets): Likewise.
37460 (ipa_pta_execute): Likewise.
37462 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37464 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37465 * configure: Regenerate.
37466 * config.in: Regenerate.
37467 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37468 #nobits/#progbits if supported.
37470 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37473 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37474 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37475 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37477 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37479 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37480 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37482 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37484 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37485 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37487 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37489 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37491 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37492 * config/arm/cortex-a7.md: New bypasses using
37493 arm_mac_accumulator_is_result.
37495 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37497 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37498 (cortex_a7_neon_mla): Likewise.
37499 (cortex_a7_fpfmad): New reservation.
37500 (cortex_a7_fpmacs): Use ffmas and update required units.
37501 (cortex_a7_fpmuld): Update required units and latency.
37502 (cortex_a7_fpmacd): Likewise.
37503 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37504 (cortex_a7_neon). Likewise.
37505 (bypass) Update participating units.
37507 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37509 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37510 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37512 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37513 (vfp_fmul): Use ffmad.
37514 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37515 (cortex_r4_fmacd): Use ffmad.
37516 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37517 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37518 (cortex_a9_fmacd): Use ffmad.
37519 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37520 (cortex_a8_vfp_macd): Use ffmad.
37521 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37522 (cortex_a5_fpmacd): Use ffmad.
37523 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37524 (cortex_a15_vfp_macd): Use ffmad.
37525 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37527 2013-01-29 Jason Merrill <jason@redhat.com>
37530 * varasm.c (default_assemble_visibility): Don't warn about
37531 visibility on artificial decls.
37533 2013-01-29 Richard Biener <rguenther@suse.de>
37535 PR tree-optimization/56113
37536 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37538 (label_visit): Free duplicate bitmaps and record the leader instead.
37539 (perform_var_substitution): Adjust.
37541 2013-01-29 Richard Biener <rguenther@suse.de>
37543 PR tree-optimization/55270
37544 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37545 the CFG, schedule loops for fixup.
37547 2013-01-29 Nick Clifton <nickc@redhat.com>
37549 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37552 2013-01-28 Leif Ekblad <leif@rdos.net>
37554 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37555 * config/i386/i386.h (TARGET_RDOS): New macro.
37556 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37557 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37558 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37559 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37560 DEFAULT_LARGE_SECTION_THRESHOLD.
37561 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37562 * config/i386/rdos.h: New file.
37563 * config/i386/rdos64.h: New file.
37565 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37568 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37571 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37573 PR rtl-optimization/56117
37574 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37575 call cselib_lookup_from_insn on the MEM before calling
37576 add_insn_mem_dependence.
37578 2013-01-28 Richard Biener <rguenther@suse.de>
37580 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37581 to a stmt that didn't have one.
37582 (copy_phis_for_bb): Likewise for PHI arguments.
37583 (copy_debug_stmt): Likewise for debug stmts.
37585 2013-01-28 Richard Biener <rguenther@suse.de>
37587 PR tree-optimization/56034
37588 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37589 (partition_builtin_p): Adjust.
37590 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37591 it is the last partition.
37592 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37593 up the vertex for the definition.
37594 (classify_partition): Classify whether a partition is a
37595 PKIND_REDUCTION, thus has uses outside of the loop.
37596 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37597 Merge all PKIND_REDUCTION partitions into the last partition.
37598 (tree_loop_distribution): Seed partitions from reductions as well.
37600 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37602 PR tree-optimization/56125
37603 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37604 pow(x,c) into sqrt(x) * powi(x, n/2) or
37605 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37606 optimizing for size.
37607 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37608 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37611 PR tree-optimization/56094
37612 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37613 to UNKNOWN_LOCATION while gimplifying expr.
37615 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37618 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37619 operand 0 in movabs insn template for -masm=intel asm alternative.
37620 (*movabs<mode>_2): Ditto for operand 1.
37622 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37625 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37628 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37630 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37633 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37635 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37636 Undef to avoid warning.
37638 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37640 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37641 * configure: Regenerate.
37643 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37645 PR tree-optimization/56098
37646 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37647 for stmts with volatile ops.
37648 (cond_store_replacement): Don't optimize if assign has volatile ops.
37649 (cond_if_else_store_replacement_1): Don't optimize if either
37650 then_assign or else_assign have volatile ops.
37651 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37654 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37656 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37658 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37660 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37661 missing ':' in asm example.
37663 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37665 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37666 entries into lane and laneq entries.
37667 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37668 Remove AdvSIMD scalar modes.
37669 (aarch64_sq<r>dmulh_laneq<mode>): New.
37670 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37672 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37673 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37674 * config/aarch64/iterators.md (VCOND): New.
37677 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37680 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37681 Add NULL LIBNAME argument to existing definitions.
37682 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37683 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37684 * config/avr/avr.c (DEF_BUILTIN): Same.
37685 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37686 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37687 implementation is available (DECL_ASSEMBLER_NAME is set).
37688 (avr_fold_absfx): New static function.
37689 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37690 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37691 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37692 AVR_BUILTIN_ABSLLK.
37693 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37694 (abshk, absk, abslk, absllk): Provide as static inline functions.
37696 2013-01-25 Marek Polacek <polacek@redhat.com>
37698 PR tree-optimization/56035
37699 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37701 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37703 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37704 (*movtf_internal_rex64): Add (!o,C) alternative
37705 (*movxf_internal_rex64): Ditto.
37706 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37708 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37710 * doc/invoke.texi: fix typo.
37711 * doc/objc.texi: fix typo.
37713 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37715 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37716 for the first two alternatives.
37718 2013-01-24 Diego Novillo <dnovillo@google.com>
37720 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37721 (ggc-zone.o): Remove.
37722 * configure.ac: Remove option --with-gc.
37723 * configure: Re-generate.
37724 * doc/install.texi: Remove documentation for --with-gc.
37725 * gengtype.c (write_enum_defn): Remove. Update all users.
37726 (write_Types_process_field): Remove generation of gt_e_* argument.
37727 (output_type_enum): Remove. Update all users.
37728 (write_enum_defn): Remove. Update all users.
37729 (enum alloc_zone): Remove. Update all users.
37730 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37731 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37732 Update all callers.
37733 (struct ptr_data): Remove field TYPE. Update all users.
37734 (gt_pch_note_object): Remove argument TYPE. Update all users.
37735 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37737 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37738 (struct alloc_zone): Remove.
37739 (ggc_internal_alloc_zone_stat): Remove.
37740 (ggc_internal_cleared_alloc_zone_stat): Remove.
37741 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37742 (ggc_pch_count_object): Remove last argument. Update all users.
37743 (ggc_pch_alloc_object): Remove last argument. Update all users.
37744 (struct alloc_zone): Remove.
37745 * ggc-zone.c: Remove.
37746 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37747 (struct alloc_zone): Remove.
37748 (ggc_alloc_typed_stat): Remove.
37749 (ggc_alloc_typed): Remove.
37750 (ggc_splay_alloc): Remove first argument.
37751 (rtl_zone): Remove. Update all users.
37752 (tree_zone): Remove. Update all users.
37753 (tree_id_zone): Remove. Update all users.
37754 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37755 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37756 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37757 * tree-ssanames.c: Remove references to zone allocator in comments.
37759 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37761 * config/avr/avr.c (avr_out_fract): Make register numbers that
37762 might be outside of source operand signed.
37764 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37766 * config/i386/constraints.md (Yf): New constraint.
37767 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37768 of f constraint to conditionaly disable x87 register preferences.
37769 (*movdf_internal): Ditto.
37770 (*movsf_internal): Ditto.
37772 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37774 PR inline-asm/55934
37775 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37776 that have operands with impossible constraints.
37777 Add a FIXME for a speed-up opportunity.
37778 * lra-constraints.c (process_alt_operands): Verify that a class
37779 selected from constraints on asms is valid for the operand mode.
37780 (curr_insn_transform): Remove incorrect comment.
37782 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37784 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37785 TOC operand is a valid symbol ref in the constant pool.
37787 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37789 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37791 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37794 * config/avr/stdfix.h: New file.
37795 * t-avr (stdfix-gcc.h): New rule to build it.
37796 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37798 2013-01-23 Kostya Serebryany <kcc@google.com>
37800 * config/darwin.h: remove dependency on
37801 CoreFoundation (asan on Mac OS).
37803 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37806 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37807 instead of cmpdi_operand for first comparison operand.
37808 Don't assert that comparison operands aren't both constants.
37810 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37812 * doc/install.texi (Downloading the Source): Update references to
37813 downloading separate components.
37815 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37817 * doc/extend.texi (__int128): Improve grammar.
37819 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37822 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37823 alternative to (o,r).
37824 (*movdi_internal_rex64): Remove (!o,n) alternative.
37825 (DImode immediate->memory splitter): Remove.
37826 (DImode immediate->memory peephole2): Remove.
37827 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37828 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37829 alternative to (!o,*r).
37830 (*movtf_internal_sse): New pattern.
37831 (*movxf_internal_rex64): New pattern.
37832 (*movxf_internal): Disable for TARGET_64BIT.
37833 (*movdf_internal_rex64): Remove (!o,F) alternative.
37835 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37837 PR middle-end/56074
37838 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37839 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37840 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37841 stmt locations where LOCATION_LOCUS of the stmt location is
37842 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37845 * config/i386/i386.md (UNSPEC_STOS): New.
37846 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37847 *strsetqi_1): Add UNSPEC_STOS.
37849 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37852 * doc/invoke.texi: Remove left over -Wsynth example.
37854 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37856 PR tree-optimization/56051
37857 * fold-const.c (fold_binary_loc): Don't fold
37858 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37859 a narrowing conversion, or widening conversion from signed
37862 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37864 PR rtl-optimization/56023
37865 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37866 dependent on debug instruction.
37868 2013-01-21 Martin Jambor <mjambor@suse.cz>
37870 PR middle-end/56022
37871 * function.c (allocate_struct_function): Call
37872 invoke_set_current_function_hook earlier.
37874 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37876 * reload1.c (init_reload): Only initialize reload_obstack
37877 during the first call.
37879 2013-01-21 Marek Polacek <polacek@redhat.com>
37881 * cfgloop.c (verify_loop_structure): Fix up grammar.
37883 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37885 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37886 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37888 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37891 * config/arm/marvell-pj4.md: Update copyright year.
37892 Fix up use of alu to alu_reg and simple_alu_imm.
37894 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37896 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37898 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37901 * lra-constraints.c (curr_insn_transform): Don't reuse original
37902 insn for secondary memory move when memory mode should be different.
37904 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37906 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37907 atomic_storedi_1): New patterns.
37909 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37911 btver2 pipeline descriptions.
37912 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37914 * config/i386/i386.md (btver2_decode): New type attributes.
37915 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37917 * config/i386/btver2.md: New file describing btver2 pipelines.
37919 2013-01-19 Andrew Pinski <apinski@cavium.com>
37921 PR tree-optimization/52631
37922 * tree-ssa-sccvn (visit_use): Before looking up the original
37923 statement, try looking up the simplified expression.
37925 2013-01-19 Anthony Green <green@moxielogic.com>
37927 * config/moxie/moxie.c (moxie_expand_prologue): Set
37928 current_function_static_stack_size.
37930 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37932 PR tree-optimization/56029
37933 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37934 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37936 2013-01-18 Sharad Singhai <singhai@google.com>
37938 PR tree-optimization/55995
37939 * dumpfile.c (dump_loc): Print location only if available.
37940 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37942 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37945 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37946 secondary memory move.
37947 (inherit_reload_reg): Use rclass instead of cl for
37948 check_secondary_memory_needed_p.
37950 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37952 PR middle-end/56015
37953 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37954 the case where writing real complex part of target modifies op1.
37956 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37958 * config/aarch64/aarch64-simd.md
37959 (aarch64_vcond_internal<mode>): Handle unordered cases.
37960 * config/aarch64/iterators.md (v_cmp_result): New.
37962 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37963 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37965 * config/arm/marvell-pj4.md: New file.
37966 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37967 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37968 (generic_vfp): Likewise.
37969 * config/arm/arm-cores.def: Add marvell-pj4.
37970 * config/arm/arm-tune.md: Regenerate.
37971 * config/arm/arm-tables.opt: Regenerate.
37972 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37973 * doc/invoke.texi: Document marvell-pj4.
37975 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37977 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37979 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37984 * var-tracking.c (negative_power_of_two_p): New.
37985 (global_get_addr_cache, local_get_addr_cache): New.
37986 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37987 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37989 (vt_stack_offset_p): Remove.
37990 (vt_canon_true_dep): Always canonicalize loc's address.
37991 (clobber_overlapping_mems): Make sure we have a MEM.
37992 (local_get_addr_clear_given_value): New.
37993 (val_reset): Clear local cached entries.
37994 (compute_bb_dataflow): Create and release the local cache.
37995 Disable duplicate MEMs clobbering.
37996 (emit_notes_in_bb): Clobber MEMs likewise.
37997 (vt_emit_notes): Create and release the local cache.
37998 (vt_initialize, vt_finalize): Create and release the global
37999 cache, respectively.
38000 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38002 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38004 PR libmudflap/53359
38005 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38006 not found in the symtab.
38008 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38011 PR rtl-optimization/55547
38012 PR rtl-optimization/53827
38015 * alias.c (offset_overlap_p): New, factored out of...
38016 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38017 the conservative special case for symbolic constants. Don't
38018 adjust zero sizes on alignment.
38020 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38022 PR rtl-optimization/52573
38023 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38024 REG_UNUSED for the same register.
38026 2013-01-17 Richard Biener <rguenther@suse.de>
38027 Marek Polacek <polacek@redhat.com>
38029 PR rtl-optimization/55833
38030 * loop-unswitch.c (unswitch_loops): Move loop verification...
38031 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38032 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38033 Set it to true when we're removing a loop from hierarchy tree in
38034 an irreducible region.
38035 (fix_bb_placements): Adjust caller.
38036 (fix_loop_placements): Likewise.
38038 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38040 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38041 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38042 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38043 Remove ID. Adjust comments.
38044 * config/avr/avr-c.c (avr_builtin_name): Remove.
38045 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38046 * config/avr/avr.c (avr_tolower): New static function.
38047 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38048 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38049 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38052 2013-01-17 Jan Hubicka <jh@suse.cz>
38054 PR tree-optimization/55273
38055 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38057 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38060 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38061 store through atomic_store<mode>_1.
38062 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38064 2013-01-17 Martin Jambor <mjambor@suse.cz>
38066 PR tree-optimizations/55264
38067 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38068 for virtual methods.
38069 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38070 virtual methods before inlining is over.
38071 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38073 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38076 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38078 PR rtl-optimization/56005
38079 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38080 pending reads for prefetch.
38082 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38084 * config/aarch64/aarch64.md
38085 (*cstoresi_neg_uxtw): New pattern.
38086 (*cmovsi_insn_uxtw): New pattern.
38087 (*<optab>si3_uxtw): New pattern.
38088 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38089 (*<optab>si3_insn_uxtw): New pattern.
38090 (*bswapsi2_uxtw): New pattern.
38092 2013-01-16 Richard Biener <rguenther@suse.de>
38094 * tree-inline.c (tree_function_versioning): Remove set but
38095 never used variable.
38097 2013-01-16 Richard Biener <rguenther@suse.de>
38099 PR tree-optimization/55964
38100 * tree-flow.h (rename_variables_in_loop): Remove.
38101 (rename_variables_in_bb): Likewise.
38102 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38103 (copy_loop_before): Adjust and delete update-ssa status.
38104 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38105 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38106 (rename_variables_in_loop): Remove.
38107 (slpeel_update_phis_for_duplicate_loop): Likewise.
38108 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38109 use available cfg machinery instead of duplicating it.
38110 Update PHI nodes and perform poor-mans SSA update here.
38111 (slpeel_tree_peel_loop_to_edge): Adjust.
38113 2013-01-16 Richard Biener <rguenther@suse.de>
38115 PR tree-optimization/54767
38116 PR tree-optimization/53465
38117 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38118 (vrp_visit_phi_node): For PHI arguments coming via backedges
38119 drop all symbolical range information.
38120 (execute_vrp): Compute backedges.
38122 2013-01-16 Richard Biener <rguenther@suse.de>
38124 * doc/install.texi: Update CLooG and ISL requirements to
38127 2013-01-16 Christian Bruel <christian.bruel@st.com>
38130 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38131 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38132 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38134 2013-01-16 DJ Delorie <dj@redhat.com>
38136 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38137 (UNSPECV_SP_SWITCH_E): New.
38138 (sp_switch_1): Change to an unspec.
38139 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38142 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38144 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38145 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38146 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38147 (expand_mem_thread_fence): Ditto.
38148 (expand_mem_signal_fence): Ditto.
38149 (expand_atomic_load): Ditto.
38150 (expand_atomic_store): Ditto.
38152 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38154 PR rtl-optimization/55547
38155 PR rtl-optimization/53827
38158 * alias.c (memrefs_conflict_p): Set sizes to negative after
38161 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38164 * function.c (thread_prologue_and_epilogue_insns): Always
38165 add crtl->drap_reg to set_up_by_prologue.set, even if
38166 stack_realign_drap is false.
38168 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38170 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38171 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38172 *call): Fix indention.
38174 2013-01-15 Tom de Vries <tom@codesourcery.com>
38177 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38180 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38182 PR rtl-optimization/55153
38183 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38185 2013-01-15 Martin Jambor <mjambor@suse.cz>
38187 PR tree-optimization/55920
38188 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38189 accesses as grp_to_be_debug_replaced.
38191 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38193 PR tree-optimization/55920
38194 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38195 there is non-useless type conversion needed from debug rhs to lhs,
38196 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38198 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38199 Mikael Pettersson <mikpe@it.uu.se>
38202 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38204 (ASM_OUTPUT_CASE_LABEL): Remove.
38205 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38206 * final.c (shorten_branches): Update alignment of labels before
38207 jump tables if CASE_VECTOR_SHORTEN_MODE.
38209 2013-01-15 Richard Biener <rguenther@suse.de>
38212 * system.h: Do not include gmp.h for building host tools.
38214 2013-01-15 Richard Biener <rguenther@suse.de>
38216 PR middle-end/55882
38217 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38218 account for bitpos when computing alignment.
38220 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38222 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38223 (ix86_target_macros_internal): Likewise.
38225 * config/i386/i386.c (m_CORE2I7): Removed.
38226 (m_CORE_HASWELL): New macro.
38227 (m_CORE_ALL): Likewise.
38228 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38229 (initial_ix86_arch_features): Likewise.
38230 (processor_target_table): Initializations for Core avx2.
38231 (cpu_names): New names "core-avx2".
38232 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38233 PROCESSOR_CORE_HASWELL.
38234 (ix86_issue_rate): New case.
38235 (ia32_multipass_dfa_lookahead): Likewise.
38236 (ix86_sched_init_global): Likewise.
38238 * config/i386/i386.h (TARGET_HASWELL): New macro.
38239 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38240 (processor_type): New PROCESSOR_HASWELL.
38242 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38244 PR tree-optimization/55955
38245 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38246 *SHIFT_EXPR and *ROTATE_EXPR codes.
38248 PR tree-optimization/48766
38249 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38250 -ftrapv disable -fwrapv.
38252 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38255 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38256 etc. to 1 and not to __flash.
38257 Use LL suffix for __INT24_MAX__ with -mint8.
38258 Use ULL suffix for __UINT24_MAX__ with -mint8.
38260 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38262 * config/avr/avr-arch.h
38263 (struct base_arch_s): Use typedef avr_arch_t instead.
38264 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38265 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38266 * config/avr/avr.c: Same.
38267 * config/avr/avr-devices.c: Same.
38268 * config/avr/driver-avr.c: Same.
38269 * config/avr/gen-avr-mmcu-texi.c: Same.
38270 * config/avr/avr-mcus.def: Adjust comment.
38272 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38274 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38275 * config/aarch64/iterators.md (VALLDI): New.
38277 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38278 Andi Kleen <ak@linux.intel.com>
38281 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38282 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38285 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38287 * config/avr/avr-stdint.h: Remove trailing blanks.
38288 * config/avr/avr-log.h: Same.
38289 * config/avr/avr-arch.h: Same.
38290 * config/avr/avr-devices.c: Same.
38291 * config/avr/avr-dimode.md: Same.
38292 * config/avr/predicates.md: Same.
38293 * config/avr/avr-c.c: Same. And fix typo.
38295 * config/avr/avr-protos.h: Same. And:
38296 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38297 (init_cumulative_args): Rename to avr_init_cumulative_args.
38298 (expand_prologue): Rename to avr_expand_prologue.
38299 (expand_epilogue): Rename to avr_expand_epilogue.
38300 (adjust_insn_length): Rename to avr_adjust_insn_length.
38301 (notice_update_cc): Rename to avr_notice_update_cc.
38302 (final_prescan_insn): Rename to avr_final_prescan_insn.
38303 * config/avr/avr.c: Same.
38304 * config/avr/avr.h: Same.
38305 * config/avr/avr.md: Remove trailing blanks.
38306 (prologue): Use avr_expand_prologue.
38307 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38309 2013-01-14 Richard Biener <rguenther@suse.de>
38311 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38312 verify_location, collect_subblocks): New functions.
38313 (verify_gimple_in_cfg): Verify that locations only reference
38314 BLOCKs in the functions BLOCK tree.
38316 2013-01-14 Richard Biener <rguenther@suse.de>
38318 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38320 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38322 (insert_out_of_ssa_copy_on_edge): Likewise.
38323 (rewrite_close_phi_out_of_ssa): Likewise.
38324 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38326 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38327 propagated constants.
38328 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38331 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38333 * config/avr/avr-modes.def: Add GPL copyright notice.
38335 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38337 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38338 MEMMODEL_MASK to determine memory model.
38339 (atomic_store<mode>): Ditto from operands[2].
38340 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38342 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38345 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38346 (fold_gimple_assign): Don't call unshare_expr here.
38347 (fold_ctor_reference): Call unshare_expr.
38349 2013-01-13 Terry Guo <terry.guo@arm.com>
38351 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38352 * doc/fragments.texi: Document MULTILIB_REUSE.
38353 * gcc.c (multilib_reuse): New internal spec.
38354 (set_multilib_dir): Also search multilib from multilib_reuse.
38355 * genmultilib (tmpmultilib3): Refactor code.
38356 (tmpmultilib4): Ditto.
38357 (multilib_reuse): New multilib argument.
38359 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38361 * Makefile.in: Update copyright.
38363 2013-01-12 Tom de Vries <tom@codesourcery.com>
38365 PR middle-end/55890
38366 * calls.c (expand_call): Check if arg_nr is valid.
38368 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38370 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38371 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38372 documentation. Add missing '__' in front of
38373 __builtin_ia32_packssdw256.
38375 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38378 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38379 NO_REGS for larl operands.
38380 (s390_reload_larl_operand): Use s390_load_address instead of
38383 2013-01-11 Richard Biener <rguenther@suse.de>
38385 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38386 (verify_node_sharing): ... here.
38387 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38389 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38391 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38392 Substitute TREECHECKING.
38393 * configure: Regenerate.
38394 * Makefile.in (TREECHECKING): New.
38396 2013-01-11 Richard Guenther <rguenther@suse.de>
38398 PR tree-optimization/44061
38399 * tree-vrp.c (extract_range_basic): Compute zero as
38400 value-range for __builtin_constant_p of function parameters.
38402 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38404 Update copyright years.
38406 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38408 PR rtl-optimization/55672
38409 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38410 const to be eliminable.
38412 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38414 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38415 * configure: Regenerate.
38417 2013-01-10 Richard Biener <rguenther@suse.de>
38419 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38421 2013-01-10 Richard Biener <rguenther@suse.de>
38424 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38425 locations for virtual PHI arguments.
38426 (rewrite_update_phi_arguments): Likewise.
38428 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38430 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38433 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38435 PR tree-optimization/55921
38436 * tree-complex.c (expand_complex_asm): New function.
38437 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38439 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38442 * config/s390/s390.c (s390_symref_operand_p)
38443 (s390_loadrelative_operand_p): Merge the two functions.
38444 (s390_check_qrst_address, print_operand_address): Add parameters
38445 to s390_loadrelative_operand_p invokation.
38446 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38447 (s390_reload_larl_operand, s390_secondary_reload): Use
38448 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38449 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38451 2013-01-09 Mike Stump <mikestump@comcast.net>
38453 * dse.c (record_store): Remove unnecessary assert.
38455 2013-01-09 Jan Hubicka <jh@suse.cz>
38457 PR tree-optimization/55569
38458 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38459 * cfgloop.h (scale_loop_profile): Likewise.
38461 2013-01-09 Jan Hubicka <jh@suse.cz>
38464 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38466 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38468 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38470 PR middle-end/55114
38471 * expr.h (maybe_emit_group_store): Declare.
38472 * expr.c (maybe_emit_group_store): New function.
38473 * builtins.c (expand_builtin_int_roundingfn): Call it.
38474 (expand_builtin_int_roundingfn_2): Likewise.
38476 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38478 PR rtl-optimization/55829
38479 * lra-constraints.c (match_reload): Add code for absent output.
38480 (curr_insn_transform): Add code for reloads of matched inputs
38483 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38485 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38486 attribute of movddup insn to DF.
38487 (*vec_interleave_lowv2df): Ditto.
38488 (vec_dupv2df): Ditto.
38490 2013-01-09 Jan Hubicka <jh@suse.cz>
38492 PR tree-optimiation/55875
38493 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38494 EVERY_ITERATION parameter.
38495 (number_of_iterations_exit): Check if exit is executed every iteration.
38496 (idx_infer_loop_bounds): Similarly here.
38497 (n_of_executions_at_most): Simplify
38498 to only test for cases where statement is dominated by the
38499 particular bound; handle correctly the "postdominance" test.
38500 (scev_probably_wraps_p): Use max loop iterations info
38501 as a global bound first.
38503 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38504 Nick Clifton <nickc@redhat.com>
38506 * config/v850/v850.md (cbranchsf4): New pattern.
38507 (cstoresf4): New pattern.
38508 (cbranchdf4): New pattern.
38509 (cstoredf4): New pattern.
38510 (movsicc): Disallow floating point comparisons.
38511 (cmpsf_le_insn): Fix order of operators.
38512 (cmpsf_lt_insn): Likewise.
38513 (cmpsf_eq_insn): Likewise.
38514 (cmpdf_le_insn): Likewise.
38515 (cmpdf_lt_insn): Likewise.
38516 (cmpdf_eq_insn): Likewise.
38517 (cmpsf_ge_insn): Use LE comparison.
38518 (cmpdf_ge_insn): Likewise.
38519 (cmpsf_gt_insn): Use LT comparison.
38520 (cmpdf_gt_insn): Likewise.
38521 (cmpsf_ne_insn): Delete pattern.
38522 (cmpdf_ne_insn): Delete pattern.
38523 * config/v850/v850.c (v850_gen_float_compare): Use
38524 gen_cmpdf_eq_insn for NE comparison.
38525 (v850_float_z_comparison_operator)
38526 (v850_float_nz_comparison_operator): Move from here ...
38527 * config/v850/predicates.md: ... to here. Move GT and GE
38528 comparisons into v850_float_z_comparison_operator.
38529 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38531 (v850_float_nz_comparison_operator): Likewise.
38533 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38535 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38536 with calls to gen_insvsi/gen_insvdi.
38538 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38540 * config/i386/i386.c (initial_ix86_tune_features): Set up
38541 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38543 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38544 Jakub Jelinek <jakub@redhat.com>
38546 PR tree-optimization/48189
38547 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38548 If nitercst is 0, don't predict the exit edge.
38550 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38552 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38553 in asm_fprintf with reg_names.
38554 (aarch64_print_operand_address): Likewise.
38555 (aarch64_return_addr): Likewise.
38556 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38558 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38560 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38561 (INT_U6_BITS): Likewise.
38562 * config/pa/predicates.md (uint6_operand): New predicate.
38563 (shift5_operand, shift6_operand): Likewise.
38564 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38566 (lshrdi3): Use shift6_operand.
38567 (shrpsi4, shrpdi4): New insn patterns.
38568 (extzv): Delete expander.
38569 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38570 predicates in unamed zero extract patterns. Tighten common constraint.
38571 (extv): Delete expander.
38572 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38573 predicates in unamed sign extract patterns. Tighten common constraint.
38574 (insv): Delete expander.
38575 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38576 predicates in unamed insert patterns. Tighten common constraint.
38577 Change uint32_operand predicate to uint6_operand predicate in unamed
38578 DImode pattern to insert constant values of type 1...1xxxx.
38580 2013-01-04 Jan Hubicka <jh@suse.cz>
38582 PR tree-optimization/55823
38583 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38586 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38587 Uros Bizjak <ubizjak@gmail.com>
38589 PR rtl-optimization/55845
38590 * df-problems.c (can_move_insns_across): Stop scanning at
38591 volatile_insn_p source instruction or give up if
38592 across_from .. across_to range contains any volatile_insn_p
38595 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38597 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38598 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38600 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38601 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38603 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38606 * asan.c (asan_clear_shadow): New function.
38607 (asan_emit_stack_protection): Use it.
38609 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38611 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38612 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38613 with tab instead of space.
38615 2013-01-08 Nick Clifton <nickc@redhat.com>
38617 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38618 register bank 0 at the start of an interrupt handler.
38619 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38622 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38624 * config/aarch64/aarch64-simd.md
38625 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38626 (aarch64_simd_bsl): Likewise.
38627 (aarch64_vcond_internal<mode>): Likewise.
38628 (vcond<mode><mode>): Likewise.
38629 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38630 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38632 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38634 * config/aarch64/aarch64-builtins.c
38635 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38637 2013-01-08 Martin Jambor <mjambor@suse.cz>
38640 * tree-sra.c (analyze_access_subtree): Return true also after
38641 potentially creating a debug-only replacement.
38643 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38645 PR middle-end/55890
38646 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38648 PR tree-optimization/54120
38649 * tree-vrp.c (range_fits_type_p): Don't allow
38650 src_precision < precision from signed vr to unsigned_p
38651 if vr->min or vr->max is negative.
38652 (simplify_float_conversion_using_ranges): Test can_float_p
38653 against CODE_FOR_nothing.
38655 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38656 Richard Biener <rguenther@suse.de>
38658 PR middle-end/55851
38659 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38660 types instead of just INTEGER_TYPE types.
38662 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38664 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38667 2013-01-07 Steve Ellcey <sellcey@mips.com>
38670 * config/mips/mips.opt: Change mad to mmad to match documentation.
38672 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38675 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38676 .progmemx.data now.
38678 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38681 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38682 (avr_addrspace_t): Add .section_name field.
38683 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38685 (avr_addrspace): Same. Initialize .section_name. Remove last
38686 NULL entry. Put __memx into .progmemx.data.
38687 (progmem_section_prefix): Remove.
38688 (avr_asm_init_sections): No need to initialize progmem_section.
38689 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38690 section name prefix.
38691 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38692 retrieve the progmem section.
38693 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38694 boundary to run over avr_addrspace[].
38695 (avr_register_target_pragmas): Ditto.
38697 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38699 * varasm.c (output_constant_def_contents): For asan_protect_global
38700 protected strings, adjust DECL_ALIGN if needed, before testing for
38702 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38703 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38705 (output_object_block): For asan protected decls, emit asan padding
38706 after their contents.
38707 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38708 (asan_finish_file): Test it here instead.
38710 2013-01-07 Nick Clifton <nickc@redhat.com>
38711 Matthias Klose <doko@debian.org>
38712 Doug Kwan <dougkwan@google.com>
38713 H.J. Lu <hongjiu.lu@intel.com>
38716 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38718 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38720 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38722 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38724 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38726 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38729 * doc/install.texi (Cross-Compiler-Specific Options): Document
38732 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38734 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38735 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38736 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38737 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38738 vqmovun_high_s64): Fix source operand number and update copyright.
38740 2013-01-07 Richard Biener <rguenther@suse.de>
38742 PR middle-end/55890
38743 * gimple.h (gimple_call_builtin_p): New overload.
38744 * gimple.c (validate_call): New function.
38745 (gimple_call_builtin_p): Likewise.
38746 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38747 Use gimple_call_builtin_p.
38748 (find_func_clobbers): Likewise.
38749 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38750 (strlen_optimize_stmt): Likewise.
38752 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38754 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38755 (vld1q_dup_*): Likewise.
38756 (vld1_*): Likewise.
38757 (vld1q_*): Likewise.
38758 (vld1_lane_*): Likewise.
38759 (vld1q_lane_*): Likewise.
38761 2013-01-07 Richard Biener <rguenther@suse.de>
38763 * lto-streamer.h (LTO_minor_version): Bump to 2.
38765 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38767 * config/aarch64/aarch64-protos.h
38768 (aarch64_const_double_zero_rtx_p): Rename to...
38769 (aarch64_float_const_zero_rtx_p): ...this.
38770 (aarch64_float_const_representable_p): New.
38771 (aarch64_output_simd_mov_immediate): Likewise.
38772 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38773 move immediate case.
38774 * config/aarch64/aarch64.c
38775 (aarch64_const_double_zero_rtx_p): Rename to...
38776 (aarch64_float_const_zero_rtx_p): ...this.
38777 (aarch64_print_operand): Allow printing of new constants.
38778 (aarch64_valid_floating_const): New.
38779 (aarch64_legitimate_constant_p): Check for valid floating-point
38781 (aarch64_simd_valid_immediate): Likewise.
38782 (aarch64_vect_float_const_representable_p): New.
38783 (aarch64_float_const_representable_p): Likewise.
38784 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38785 (aarch64_output_simd_mov_immediate): New.
38786 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38787 (*movdf_aarch64): Likewise.
38788 * config/aarch64/constraints.md (Ufc): New.
38789 (Y): call aarch64_float_const_zero_rtx.
38790 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38792 2013-01-07 Richard Biener <rguenther@suse.de>
38794 PR tree-optimization/55888
38795 PR tree-optimization/55862
38796 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38797 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38798 not if it is contained therein.
38800 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38802 * config/avr/t-avr: Typo.
38804 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38807 * config/avr/t-avr: Don't automatically rebuild
38808 $(srcdir)/config/avr/t-multilib
38809 $(srcdir)/config/avr/avr-tables.opt
38810 $(srcdir)/doc/avr-mmcu.texi
38811 (avr-mcus): New phony target to build them on request.
38812 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38813 * avr/avr-mcus.def: Adjust comments.
38815 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38817 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38819 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38821 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38823 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38825 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38827 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38829 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38830 to generate profiling.
38831 * config/rs6000/aix64.h (LIB_SPEC): Same.
38833 2013-01-04 Andrew Pinski <apinski@cavium.com>
38835 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38837 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38839 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38841 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38843 (ix86_expand_move): Ditto.
38844 (ix86_zero_extend_to_Pmode): Ditto.
38845 (ix86_expand_call): Ditto.
38846 (ix86_expand_special_args_builtin): Ditto.
38847 (ix86_expand_builtin): Ditto.
38849 2013-01-04 Richard Biener <rguenther@suse.de>
38851 PR tree-optimization/55862
38852 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38853 translating them through PHI nodes.
38855 2013-01-04 Martin Jambor <mjambor@suse.cz>
38857 PR tree-optimization/55755
38858 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38859 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38861 2013-01-04 Marek Polacek <polacek@redhat.com>
38863 PR middle-end/55859
38864 * opts.c (default_options_optimization): Clarify error message.
38866 2013-01-04 Richard Biener <rguenther@suse.de>
38868 PR middle-end/55863
38869 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38872 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38875 * config/pa/pa.md (movsi): Revert previous change.
38876 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38879 2013-01-03 Richard Henderson <rth@redhat.com>
38881 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38882 after eliminating TLS symbols.
38884 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38887 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38888 * graphite-poly.c (debug_gmp_value): Likewise.
38890 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38893 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38894 selected code model, define __code_mode_small__, __code_model_medium__,
38895 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38896 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38897 xchg temporary register with %k. Declare temporary register as
38899 [__x86_64__]: For medium and large code models, preserve %rbx register.
38901 2013-01-03 Richard Biener <rguenther@suse.de>
38903 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38904 (dump_subscript): Adjust.
38905 (finalize_ddr_dependent): Do not dump redundant info.
38906 (analyze_siv_subscript): Adjust.
38907 (subscript_dependence_tester): Likewise.
38908 (compute_affine_dependence): Likewise.
38910 2013-01-03 Richard Biener <rguenther@suse.de>
38913 2013-01-03 Richard Biener <rguenther@suse.de>
38915 PR tree-optimization/55857
38916 * tree-vect-stmts.c (vectorizable_load): Do not setup
38917 re-alignment for invariant loads.
38919 2013-01-02 Richard Biener <rguenther@suse.de>
38921 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38922 invariant load do not generate a vector load from the scalar location.
38924 2013-01-03 Richard Biener <rguenther@suse.de>
38926 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38927 for not vectorizing.
38928 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38929 not build INDIRECT_REFs, call get_name once only.
38930 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38931 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38933 2013-01-03 Richard Biener <rguenther@suse.de>
38935 PR tree-optimization/55857
38936 * tree-vect-stmts.c (vectorizable_load): Do not setup
38937 re-alignment for invariant loads.
38939 2013-01-03 Richard Biener <rguenther@suse.de>
38942 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38943 prefer a built-in decl.
38945 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38947 * gcc.c (process_command): Update copyright notice dates.
38948 * gcov.c (print_version): Likewise.
38949 * gcov-dump.c (print_version): Likewise.
38951 PR rtl-optimization/55838
38952 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38953 iv0.step, iv1.step and step.
38955 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38956 Marc Glisse <marc.glisse@inria.fr>
38958 PR tree-optimization/55832
38959 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38960 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38961 integer_{one,zero}_node.
38963 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38966 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38967 * var-tracking.c (reverse_op): Don't add reverse ops to
38968 VALUEs that have already
38969 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38971 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38973 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38975 2013-01-02 Teresa Johnson <tejohnson@google.com>
38977 * dumpfile.c (dump_loc): Print filename with location.
38978 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38979 new location_t parameter to emit complete unroll message with
38980 new dump framework.
38981 (canonicalize_loop_induction_variables): Compute loops location
38982 and pass to try_unroll_loop_completely.
38983 * loop-unroll.c (report_unroll_peel): New function.
38984 (peel_loops_completely): Use new dump format with location
38985 for main dumpfile message, and invoke report_unroll_peel on success.
38986 (decide_unrolling_and_peeling): Ditto.
38987 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38988 by report_unroll_peel.
38989 (decide_peel_completely): Ditto.
38990 (decide_unroll_constant_iterations): Ditto.
38991 (decide_unroll_runtime_iterations): Ditto.
38992 (decide_peel_simple): Ditto.
38993 (decide_unroll_stupid): Ditto.
38994 * cfgloop.c (get_loop_location): New function.
38995 * cfgloop.h (get_loop_location): Declare.
38997 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38999 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39002 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39004 PR middle-end/55198
39005 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39006 BLKmode objects when EXPAND_MEMORY is specified.
39008 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39010 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39012 (fold_builtin_cpu): Do not share cpu model decls across statements.
39014 2013-01-02 Jason Merrill <jason@redhat.com>
39017 * tree.c (build_array_type_1): Revert earlier change.
39019 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39021 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39023 * config/aarch64/aarch64-tune.md: Re-generate.
39025 2013-01-02 Richard Biener <rguenther@suse.de>
39027 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39028 invariant load do not generate a vector load from the scalar location.
39030 2013-01-02 Richard Biener <rguenther@suse.de>
39033 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39034 * configure: Regenerate.
39036 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39038 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39039 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39040 (expand_builtin_int_roundingfn_2): Keep the original target around
39041 for the fallback case.
39043 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39045 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39046 to be clear for sign changes.
39048 2013-01-01 Jan Hubicka <jh@suse.cz>
39050 * ipa-inline-analysis.c: Fix formatting.
39052 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39054 PR tree-optimization/55831
39055 * tree-vect-loop.c (get_initial_def_for_induction): Use
39056 gsi_after_labels instead of gsi_start_bb.
39058 Copyright (C) 2013 Free Software Foundation, Inc.
39060 Copying and distribution of this file, with or without modification,
39061 are permitted in any medium without royalty provided the copyright
39062 notice and this notice are preserved.