1 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
4 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
5 checking t1 twice instead of t1 and t2 respectively.
8 * config/cris/predicates.md (cris_nonsp_register_operand):
10 * config/cris/cris.md: Replace register_operand with
11 cris_nonsp_register_operand for destinations in all
12 define_splits where a register is set more than once.
14 2013-12-23 Jason Merrill <jason@redhat.com>
16 * gdbinit.in (input_line, input_filename): Define.
18 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
19 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
20 * cif-code.def: Add USES_COMDAT_LOCAL.
21 * symtab.c (verify_symtab_base): Make sure we don't refer to a
22 comdat-local symbol from outside its comdat.
23 * cgraph.c (verify_cgraph_node): Likewise.
24 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
25 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
26 (function_and_variable_visibility): Handle comdat-local fns.
27 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
28 * ipa-inline-analysis.c (compute_inline_parameters): Update
30 * ipa-inline-transform.c (inline_call): Likewise.
31 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
32 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
33 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
34 (lto_output_node): Write it.
35 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
36 DECL_COMDAT_GROUP for comdat-locals.
38 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
40 * config/i386/i386.c (processor_target_table): Move Bonnell and
41 Silvermont entries before generic.
43 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
46 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
47 consant/external operand, and add a few missing \n.
49 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
50 Tocar Ilya <ilya.tocar@intel.com>
52 * config/i386/core2.md: Replace corei7 with nehalem.
54 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
55 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
58 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
59 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
60 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
61 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
62 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
63 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
64 __tune_haswell__, __bonnell/__bonnell__,
65 __silvermont/__silvermont__, __tune_bonnell__,
68 * config/i386/i386.c (m_COREI7): Renamed to ...
70 (m_COREI7_AVX): Renamed to ...
71 (m_SANDYBRIDGE): This.
72 (m_ATOM): Renamed to ...
74 (m_SLM): Renamed to ...
76 (m_CORE_ALL): Updated.
77 (cpu_names): Add "nehalem", "westmere", "sandybridge",
78 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
80 (PTA_NEHALEM): Likewise.
81 (PTA_WESTMERE): Likewise.
82 (PTA_SANDYBRIDGE): Likewise.
83 (PTA_IVYBRIDGE): Likewise.
84 (PTA_HASWELL): Likewise.
85 (PTA_BROADWELL): Likewise.
86 (PTA_BONNELL): Likewise.
87 (PTA_SILVERMONT): Likewise.
88 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
89 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
90 (ix86_lea_outperforms): Updated.
91 (ix86_issue_rate): Likewise.
92 (ix86_adjust_cost): Likewise.
93 (ia32_multipass_dfa_lookahead): Likewise.
94 (do_reorder_for_imul): Likewise.
95 (swap_top_of_ready_list): Likewise.
96 (ix86_sched_reorder): Likewise.
97 (ix86_sched_init_global): Likewise.
98 (get_builtin_code_for_version): Likewise.
99 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
100 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
101 (arch_names_table): Updated.
103 * config/i386/i386.h (TARGET_COREI7): Removed.
104 (TARGET_COREI7_AVX): Likewise.
105 (TARGET_ATOM): Likewise.
106 (TARGET_SLM): Likewise.
107 (TARGET_NEHALEM): New.
108 (TARGET_SANDYBRIDGE): Likewise.
109 (TARGET_BONNELL): Likewise.
110 (TARGET_SILVERMONT): Likewise.
111 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
112 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
113 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
114 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
115 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
116 before TARGET_CPU_DEFAULT_broadwell.
117 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
118 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
119 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
121 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
123 * config/i386/x86-tune.def: Updated.
125 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
126 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
127 haswell, bonnel, silvermont. Add westmere.
129 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
131 PR rtl-optimization/57422
132 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
133 can always be scheduled in its current form.
135 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
137 PR rtl-optimization/57422
138 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
141 2013-12-20 Sharad Singhai <singhai@google.com>
143 * Makefile.in: Add optinfo.texi.
144 * doc/invoke.texi: Fix typo.
145 * doc/optinfo.texi: New documentation for optimization info.
146 * doc/passes.texi: Add new node.
148 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
150 * vec.h (stack_vec): Convert to a templaate specialization of
152 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
153 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
154 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
155 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
156 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
157 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
158 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
159 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
160 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
162 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
164 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
165 arguments to push onto the stack and no varargs, save ip into the last
166 stack slot if r3 isn't available on entry.
168 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
170 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
171 * config/arm/arm_neon.h: Regenerate.
172 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
173 * doc/arm-neon-intrinsics.texi: Regenerate.
175 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
177 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return NO_REGS
180 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
182 * config/arm/arm_acle.h: Add underscores before variables.
184 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
186 PR tree-optimization/59544
187 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
189 (vectorizable_store): Handle negative step.
191 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
193 * config.gcc: Support march=broadwell.
194 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
195 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
196 * doc/invoke.texi: Document march=broadwell.
198 2013-12-20 Jakub Jelinek <jakub@redhat.com>
200 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
201 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
203 (instrument_bool_enum_load): New function.
204 (ubsan_pass): Call it.
205 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
206 * asan.c (create_cond_insert_point): No longer static.
207 * asan.h (create_cond_insert_point): Declare.
208 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
210 * opts.c (common_handle_option): Handle -fsanitize=bool and
212 * builtins.c (fold_builtin_memory_op): When sanitizing bool
213 and enum loads, don't use enum or bool types for memcpy folding.
214 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
215 (SANITIZE_UNDEFINED): Or these in.
217 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
219 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
220 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
221 to determine available register number.
222 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
223 macro NDS32_MODE_TYPE_ALIGN.
224 (nds32_function_arg): Refine code layout.
226 2013-12-19 Jeff Law <law@redhat.com>
228 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
229 handles both zero and sign extension.
231 2013-12-19 Teresa Johnson <tejohnson@google.com>
233 PR gcov-profile/59542
234 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
235 if we have made any changes.
237 2013-12-19 Jakub Jelinek <jakub@redhat.com>
240 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
241 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
243 (attr_rtx_1): Change hashcode variable to unsigned.
244 (attr_string): Likewise. Perform first multiplication in unsigned
246 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
248 * double-int.c (neg_double): Likewise.
249 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
250 * combine.c (force_to_mode): Likewise.
251 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
252 reload_cse_move2add, move2add_note_store): Likewise.
253 * simplify-rtx.c (simplify_const_unary_operation,
254 simplify_const_binary_operation): Likewise.
255 * ipa-split.c (find_split_points): Initialize first.can_split
256 and first.non_ssa_vars.
257 * gengtype-state.c (read_state_files_list): Fix up check.
258 * genautomata.c (reserv_sets_hash_value): Use portable rotation
261 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
263 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
264 * doc/arm-neon-intrinsics.texi: Regenerate.
266 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
268 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
270 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
272 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
273 (arm_init_neon_builtins): Handle crypto builtins.
274 (bdesc_2arg): Likewise.
275 (bdesc_1arg): Likewise.
276 (bdesc_3arg): New table.
277 (arm_expand_ternop_builtin): New function.
278 (arm_expand_unop_builtin): Handle sha1h explicitly.
279 (arm_expand_builtin): Handle ternary builtins.
280 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
281 Define __ARM_FEATURE_CRYPTO.
282 * config/arm/arm.md: Include crypto.md.
283 (is_neon_type): Add crypto types.
284 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
285 * config/arm/crypto.def: New.
286 * config/arm/crypto.md: Likewise.
287 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
288 (CRYPTO_BINARY): Likewise.
289 (CRYPTO_TERNARY): Likewise.
290 (CRYPTO_SELECTING): Likewise.
291 (crypto_pattern): New int attribute.
292 (crypto_size_sfx): Likewise.
293 (crypto_mode): Likewise.
294 (crypto_type): Likewise.
295 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
296 Handle crypto intrinsics.
297 * config/arm/neon.ml: Add support for poly64 and polt128 types
298 and intrinsics. Define crypto intrinsics.
299 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
300 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
301 (neon_vreinterpretv8hi<mode>): Likewise.
302 (neon_vreinterpretv4si<mode>): Likewise.
303 (neon_vreinterpretv4sf<mode>): Likewise.
304 (neon_vreinterpretv2di<mode>): Likewise.
305 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC,
306 UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H,
307 UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2,
308 UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
309 * config/arm/arm_neon.h: Regenerate.
311 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
314 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
315 DEFAULT_LINKER is defined.
316 * common.opt (fuse-ld=bfd): Add Driver.
317 (fuse-ld=gold): Likewise.
318 * gcc.c (use_ld): New variable.
319 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
321 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
323 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
325 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
326 * config.gcc (extra_headers): Add arm_acle.h.
327 * config/arm/arm.c (FL_CRC32): Define.
328 (arm_have_crc): Likewise.
329 (arm_option_override): Set arm_have_crc.
330 (arm_builtins): Add CRC32 builtins.
331 (bdesc_2arg): Likewise.
332 (arm_init_crc32_builtins): New function.
333 (arm_init_builtins): Initialise CRC32 builtins.
334 (arm_file_start): Handle architecture extensions.
335 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FEATURE_CRC32.
336 Define __ARM_32BIT_STATE.
337 (TARGET_CRC32): Define.
338 * config/arm/arm-arches.def: Add armv8-a+crc.
339 * config/arm/arm-tables.opt: Regenerate.
340 * config/arm/arm.md (type): Add crc.
341 (<crc_variant>): New insn.
342 * config/arm/arm_acle.h: New file.
343 * config/arm/iterators.md (CRC): New int iterator.
344 (crc_variant, crc_mode): New int attributes.
345 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
346 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
347 * doc/invoke.texi: Document -march=armv8-a+crc option.
348 * doc/extend.texi: Document ACLE intrinsics.
350 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
353 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
355 * config/arm/ldmstm.md: Regenerate.
357 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
360 * config/arm/predicates.md (arm_hard_general_register_operand):
362 (arm_hard_register_operand): Remove.
363 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
365 * config/arm/ldmstm.md: Regenerate.
367 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
370 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
371 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
372 vfp_hard_register_operand.
374 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
376 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
377 Define builtin types for poly64_t poly128_t.
378 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
379 * aarch64/aarch64-simd-builtins.def: Update builtins table.
380 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
381 aarch64_crypto_pmullv2di): New.
382 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
384 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
385 (vmull_p64, vmull_high_p64): New.
386 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
388 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
390 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
391 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha256h<sha256_op>v4si,
392 aarch64_crypto_sha256su0v4si, aarch64_crypto_sha256su1v4si): New.
393 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
394 vsha256su0q_u32, vsha256su1q_u32): New.
395 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
397 (CRYPTO_SHA256): New int iterator.
398 (sha256_op): New int attribute.
400 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
402 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
403 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
405 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
406 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
407 aarch64_crypto_sha1su0v4si): New.
408 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
409 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
410 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
412 (CRYPTO_SHA1): New int iterator.
413 (sha1_op): New int attribute.
415 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
417 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
418 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
420 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
421 aarch64_crypto_aes<aesmc_op>v16qi): New.
422 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
424 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
426 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
427 (aes_op, aesmc_op): New int attributes.
429 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
431 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
432 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
433 crypto_sha256_slow): New.
435 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
437 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
438 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
440 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
441 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
443 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
445 (s390_hotpatch_trampoline_halfwords_max): New constant
446 (s390_hotpatch_trampoline_halfwords): New static variable
447 (get_hotpatch_attribute): New function
448 (s390_handle_hotpatch_attribute): New function
449 (s390_attribute_table): New target specific attribute table to implement
450 the hotpatch attribute
451 (s390_option_override): Parse hotpatch options
452 (s390_function_num_hotpatch_trampoline_halfwords): New function
453 (s390_can_inline_p): Implement target hook to
454 suppress hotpatching for explicitly inlined functions
455 (s390_asm_output_function_label): Generate hotpatch prologue
456 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
457 (TARGET_CAN_INLINE_P): Define to implement target hook
458 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
459 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
461 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
462 function label generation for hotpatching
463 (FUNCTION_BOUNDARY): Align functions to eight bytes
464 * doc/extend.texi: Document hotpatch attribute
465 * doc/invoke.texi: Document -mhotpatch option
467 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
469 * config/i386/i386.c: Include cfgloop.h.
470 (ix86_loop_memcount): New function.
471 (ix86_loop_unroll_adjust): New function.
472 (TARGET_LOOP_UNROLL_ADJUST): Define.
474 (TARGET_ADJUST_UNROLL): Define.
475 * config/i386/x86-tune.def
476 (X86_TUNE_ADJUST_UNROLL): Define.
478 2013-12-19 Marek Polacek <polacek@redhat.com>
480 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
481 variable alg. Use index variable i directly.
483 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
485 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
488 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
490 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
491 Consider TARGET_CPU_DEFAULT settings.
493 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
495 * config/aarch64/aarch64-cores.def: Add support for
496 -mcpu=cortex-a57.cortex-a53.
497 * config/aarch64/aarch64-tune.md: Regenerate.
498 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
500 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
502 * config/aarch64/aarch64-cores.def: Add new column for
504 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle
506 * config/aarch64/aarch64.c (AARCH64_CORE): Handle
508 (aarch64_parse_cpu): mcpu implies a default value for mtune.
509 * config/aarch64/aarch64.h (AARCH64_CORE): Handle
512 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
514 * common/config/aarch64/aarch64-common.c
515 (aarch64_rewrite_selected_cpu): New.
516 (aarch64_rewrite_mcpu): New.
517 * config/aarch64/aarch64-protos.h
518 (aarch64_rewrite_selected_cpu): New.
519 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
520 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
521 (ASM_CPU_SPEC): Likewise.
522 (EXTRA_SPEC_FUNCTIONS): Likewise.
523 (EXTRA_SPECS): Likewise.
524 (ASM_SPEC): Likewise.
525 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
528 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
530 * omp-low.c (simd_clone_clauses_extract): Replaced the string
531 "cilk simd elemental" with "cilk simd function."
532 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
533 Removed a carriage-return from a warning string.
535 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
537 * passes.c (execute_function_dump): Set graph_dump_initialized
539 (pass_init_dump_file): Similarly.
540 (execute_one_pass): Pass new argument to do_per_function.
541 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
543 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
545 * doc/tree-ssa.texi (SSA Operands): Remove reference to
547 Synchronize SSA_OP* definitions with source.
548 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
549 Add not to SSA_OP* macro definitions.
551 2013-12-18 Jakub Jelinek <jakub@redhat.com>
555 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
556 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
557 prefix existing define_insn names with *.
559 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
561 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
563 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
564 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
566 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
567 cortex-a57, cortex-a57.cortex-a53.
569 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
572 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
573 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
574 (dwarf2out_frame_debug_expr): Tidy.
576 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
578 Sergey Lega <sergey.s.lega@intel.com>
579 Anna Tikhonova <anna.tikhonova@intel.com>
580 Ilya Tocar <ilya.tocar@intel.com>
581 Andrey Turetskiy <andrey.turetskiy@intel.com>
582 Ilya Verbin <ilya.verbin@intel.com>
583 Kirill Yukhin <kirill.yukhin@intel.com>
584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
586 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
587 (*fma_fmsub_<mode>): Ditto.
588 (*fma_fnmadd_<mode>): Ditto.
589 (*fma_fnmsub_<mode>): Ditto.
590 (*fma_fmaddsub_<mode>): Ditto.
591 (*fma_fmsubadd_<mode>): Ditto.
592 (avx512f_vternlog<mode>): Ditto.
593 (avx512f_fixupimm<mode>): Ditto.
594 (avx512f_sfixupimm<mode>): Ditto.
595 (avx512f_vpermi2var<mode>3): Ditto.
596 (avx512f_vpermt2var<mode>3): Ditto.
597 (avx512f_fmaddsub_<mode>_maskz): New.
598 (avx512f_vternlog<mode>_maskz): Ditto.
599 (avx512f_fixupimm<mode>_maskz): Ditto.
600 (avx512f_sfixupimm<mode>_maskz): Ditto.
601 (avx512f_vpermi2var<mode>3_maskz): Ditto.
602 (avx512f_vpermt2var<mode>3_maskz): Ditto.
603 (avx512f_expand<mode>_maskz): Ditto.
604 * config/i386/subst.md (sd_maskz_name): Ditto.
605 (sd_mask_op4): Ditto.
606 (sd_mask_op5): Ditto.
607 (sd_mask_codefor): Ditto.
608 (sd_mask_mode512bit_condition): Ditto.
611 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
613 Sergey Lega <sergey.s.lega@intel.com>
614 Anna Tikhonova <anna.tikhonova@intel.com>
615 Ilya Tocar <ilya.tocar@intel.com>
616 Andrey Turetskiy <andrey.turetskiy@intel.com>
617 Ilya Verbin <ilya.verbin@intel.com>
618 Kirill Yukhin <kirill.yukhin@intel.com>
619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
621 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
622 (avx512f_ucmp<mode>3): Ditto.
623 (avx512f_eq<mode>3): Ditto.
624 (avx512f_gt<mode>3): Ditto.
625 (avx512f_testm<mode>3): Ditto.
626 (avx512f_testnm<mode>3): Ditto.
627 * config/i386/subst.md (SUBST_S): New.
628 (mask_scalar_merge_name): Ditto.
629 (mask_scalar_merge_operand3): Ditto.
630 (mask_scalar_merge_operand4): Ditto.
631 (mask_scalar_merge): Ditto.
633 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
636 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
638 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
640 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
643 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
645 2013-12-17 Teresa Johnson <tejohnson@google.com>
647 PR gcov-profile/59527
648 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
649 branch, which can't be eliminated.
651 2013-12-18 Martin Liska <marxin.liska@gmail.com>
652 Jan Hubicka <jh@suse.cz>
654 * cgraphunit.c (node_cmp): New function.
655 (expand_all_functions): Function ordering added.
656 * common.opt: New profile based function reordering flag introduced.
657 * lto-partition.c: Support for time profile added.
659 * predict.c (handle_missing_profiles): Time profile handled in
662 2013-12-17 Jakub Jelinek <jakub@redhat.com>
664 PR tree-optimization/59523
665 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
668 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
670 * ipa-inline.c (gate_ipa_inline): Remove.
671 (const pass_data pass_data_ipa_inline): Unset has_gate.
672 (class pass_ipa_inline): Remove gate() method.
674 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
676 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
677 in contains_type_p query.
679 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
681 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
684 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
687 * omp-low.c: Remove leftover comment.
689 * omp-low.c (check_combined_parallel): Reflect reality in comment.
691 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
693 * doc/passes.texi (Pass manager): Refer to passes.def.
695 * doc/gccint.texi (Top): Fix inclusion order.
697 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
699 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
700 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
701 * config/arm/arm.md (generic_vfp): Remove cortexa12.
703 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
705 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
706 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
707 * config/arm/arm-tables.opt: Regenerate.
708 * config/arm/arm-tune.md: Regenerate.
710 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
712 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
714 * config/arm/arm-cores.def (cortex-a57): New.
715 * doc/invoke.texi: Document -mcpu=cortex-a57.
716 * config/arm/arm-tables.opt: Regenerate.
717 * config/arm/arm-tune.md: Regenerate.
718 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
720 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
722 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
723 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
724 * config/arm/arm-tables.opt: Regenerate.
725 * config/arm/arm-tune.md: Regenerate.
727 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
729 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
731 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
732 * config/arm/genopt.sh: Improve layout.
733 * config/arm/arm-tune.md: Regenerate.
734 * config/arm/arm-tables.opt: Regenerate.
735 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
736 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
737 (arm_option_override): When a CPU is chosen, that should also
738 form the tune target.
739 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
741 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
743 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
744 (arm_rewrite_mcpu): Likewise.
745 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
746 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
747 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
748 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
749 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
750 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
752 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
754 * expmed.c (lowpart_bit_field_p): Fix comment.
755 (store_bit_field_using_insv): Fix formatting.
756 (store_bit_field): Likewise.
757 (store_fixed_bit_field): More declaration and remove return.
758 (store_fixed_bit_field_1): Fix formatting.
759 (extract_fixed_bit_field): Move declaration.
760 (extract_fixed_bit_field_1): Simplify.
762 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
764 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
766 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
768 2013-12-17 Jakub Jelinek <jakub@redhat.com>
770 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
771 instead of x as last gen_lowpart argument.
773 2013-12-16 Jakub Jelinek <jakub@redhat.com>
775 * predict.h (PROB_LIKELY): Fix the value.
776 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
777 for overflow checking for modes without 2xwider supported mode,
778 if the mode has 2xnarrower mode.
780 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
781 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
782 try to improve generated code if one of the arguments is constant
783 or get_range_info says that one of the argument is always
784 negative or always non-negative.
785 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
786 (simplify_stmt_using_ranges): Call it.
788 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
790 PR rtl-optimization/59466
791 * emit-rtl.c (change_address_1): Don't validate address for LRA.
792 * recog.c (general_operand): Accept any memory for LRA.
793 * lra.c (lra_set_insn_recog_data): Add an assert.
795 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
799 2013-12-14 Jan Hubicka <jh@suse.cz>
800 Markus Trippelsdorf <octoploid@yandex.com>
803 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
804 call is already devirtualized.
806 2013-12-16 Jakub Jelinek <jakub@redhat.com>
808 * Makefile.in (version.o): Restore dependencies on
809 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
811 2013-12-14 Jan Hubicka <jh@suse.cz>
814 * ipa-devirt.c (get_class_context): Do not ICE when type is found
817 2013-12-16 Jakub Jelinek <jakub@redhat.com>
820 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
821 reductions without placeholder if is_simd, but when not using
822 GOMP_SIMD* internal calls, also perform the reduction operation
823 on the outer var rather than simple assignment.
825 2013-12-16 Jakub Jelinek <jakub@redhat.com>
829 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
830 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
832 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
833 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
834 calls to supply the gimple operand containing the base tree
835 as an extra argument.
836 * tree-ssa-ter.c: Include gimple-walk.h.
837 (find_ssaname, find_ssaname_in_store): New helper functions.
838 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
839 same_root_var if USE is used somewhere in the stores of the stmt.
840 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
841 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
842 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
843 check_ipa_store): Likewise.
844 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
845 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
846 (verify_non_ssa_vars, visit_bb): Adjust their callers.
847 * cfgexpand.c (add_scope_conflicts_1): Use
848 walk_stmt_load_store_addr_fn type for visit variable.
849 (visit_op, visit_conflict): Remove name of the stmt
850 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
851 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
852 argument and ATTRIBUTE_UNUSED.
853 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
854 unnamed tree argument.
855 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
856 ATTRIBUTE_UNUSED from stmt parameter.
858 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
860 * opts-common.c (integral_argument): Add support for
861 hexadecimal command option integer arguments. Update comments.
863 2013-12-14 Jan Hubicka <jh@suse.cz>
866 * ipa-prop.c (ipa_analyze_call_uses): Skip already
869 2013-12-14 Jan Hubicka <jh@suse.cz>
871 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
873 2013-12-14 Jan Hubicka <jh@suse.cz>
876 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
878 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
881 * config/i386/i386.c (ix86_function_specific_restore): Don't
884 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
886 * var-tracking.c (add_stores): Fix oversight in latest commit.
888 2013-12-14 Marek Polacek <polacek@redhat.com>
891 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
892 expand_binop with correct optab depending on code.
894 2013-12-14 Tom de Vries <tom@codesourcery.com>
896 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
898 2013-12-13 DJ Delorie <dj@redhat.com>
900 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
902 * config/msp430/msp430.md (movqi): replace general_operand with
903 msp_general_operand and nonimmediate_operand with
904 msp_nonimmediate_operand to allow volatile operands.
909 (addhi3_cy): Likewise.
910 (addchi4_cy): Likewise.
911 (xor<mode>3): Likewise.
912 (ome_cmpl<mode>2): Likewise.
913 (extendqihi2): Likewise.
914 (zero_extendqihi2): Likewise.
915 (zero_extendhipsi2): Likewise.
916 (truncpsihi2): Likewise.
919 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
921 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
923 * lra-int.h (lra_init_equiv): New prototype.
924 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
925 (loc_equivalence_callback): Use the 3rd arg.
926 (lra_constraints): Update equivalences. Pass curr_insn to
927 simplify_replace_fn_rtx.
928 * lra.c (lra): Call lra_init_equiv.
930 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
932 * genmodes.c (emit_max_int): Fixed missing parens.
934 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
936 PR tree-optimization/59149
937 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
938 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
941 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
943 * config/arc/arc.h (BITS_PER_UNIT): Removed.
944 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
945 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
946 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
947 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
948 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
949 * config/spu/spu.h (BITS_PER_UNIT): Removed.
950 * defaults.h (BITS_PER_UNIT): Removed.
951 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
952 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
953 (MAX_BITSIZE_MODE_ANY_INT): Updated.
954 * doc/tm.texi (BITS_PER_UNIT): Removed.
955 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
956 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
957 (create_modes): Added code to set bits_per_unit and
958 max_bitsize_mode_any_int.
959 (emit_max_int): Changed code generation.
960 * mkconfig.sh: Added insn-modes.h.
962 2013-12-13 Jeff Law <law@redhat.com>
964 PR tree-optimization/45685
965 * tree-ssa-phiopt.c (neg_replacement): New function.
966 (tree_ssa_phiopt_worker): Call it.
968 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
970 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
972 2013-12-13 Bin Cheng <bin.cheng@arm.com>
974 PR tree-optimization/58296
975 PR tree-optimization/41488
976 * tree-scalar-evolution.c: Include necessary header files.
977 (simplify_peeled_chrec): New function.
978 (analyze_evolution_in_loop): New static variable.
979 Call simplify_peeled_chrec.
980 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
981 (add_old_iv_candidates): Don't add candidate for peeled IV.
982 * tree-affine.h (aff_combination_zero_p): New function.
984 2013-12-13 Nick Clifton <nickc@redhat.com>
986 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
987 true if the current function has the wakeup attribute.
988 (msp430_start_function): Note if the function has the wakeup
990 (msp430_attribute_table): Add wakeup attribute.
991 (msp430_expand_epilogue): Add support for wakeup functions.
992 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
993 the DINT instruction.
994 * doc/extend.texi: Document the wakeup attribute.
996 2013-12-13 Kai Tietz <kitetz@redhat.com>
999 * config/i386/i386.c (ix86_option_override_internal): Set for
1000 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1003 2013-12-12 Jeff Law <law@redhat.com>
1005 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1006 for zero-extended MULT simple LEA pattern.
1008 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1011 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1012 values if necessary.
1014 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1017 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1018 is true, don't check omp_privatize_by_reference.
1019 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1020 decl is private in outer context. Adjust omp_check_private caller.
1022 2013-12-11 Jeff Law <law@redhat.com>
1024 PR rtl-optimization/59446
1025 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1026 test for crossing a loop header.
1028 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1031 * config/i386/i386.c (get_builtin): New function.
1032 (ix86_builtin_vectorized_function): Replace all instances of
1033 ix86_builtins[...] with get_builtin(...).
1034 (ix86_builtin_reciprocal): Ditto.
1036 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1038 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1039 (lang_hooks_for_cilkplus): Remove.
1040 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1041 (lhd_install_body_with_frame_cleanup): Likewise.
1042 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1043 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1044 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1045 (LANG_HOOKS_CILKPLUS): Likewise.
1046 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1047 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1048 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1049 (gimplify_call_expr): Likewise.
1051 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1053 * expr.c (expand_assignment): Remove dependency on
1054 flag_strict_volatile_bitfields. Always set the memory
1056 (expand_expr_real_1): Likewise.
1058 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1061 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1062 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1063 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1064 to do the real work.
1065 (store_fixed_bit_field_1): New function.
1066 (store_split_bit_field): Limit the unit size to the memory mode size,
1067 to prevent recursion.
1069 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1070 Sandra Loosemore <sandra@codesourcery.com>
1076 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1077 and bitregion_end parameters. Test for compliance with C++
1079 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1080 Add fallback logic for cases where -fstrict-volatile-bitfields
1081 is supposed to apply, but cannot.
1082 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1083 extract_fixed_bit_field_1 to do the extraction.
1084 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1085 Call extract_fixed_bit_field_1 to do the real work.
1086 (extract_fixed_bit_field_1): New function.
1088 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1094 * expmed.c (strict_volatile_bitfield_p): New function.
1095 (store_bit_field_1): Don't special-case strict volatile
1097 (store_bit_field): Handle strict volatile bitfields here instead.
1098 (store_fixed_bit_field): Don't special-case strict volatile
1100 (extract_bit_field_1): Don't special-case strict volatile
1102 (extract_bit_field): Handle strict volatile bitfields here instead.
1103 (extract_fixed_bit_field): Don't special-case strict volatile
1104 bitfields here. Simplify surrounding code to resemble that in
1105 store_fixed_bit_field.
1106 * doc/invoke.texi (Code Gen Options): Update
1107 -fstrict-volatile-bitfields description.
1109 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1111 * configure.ac: Add check for aarch64 assembler -mabi support.
1112 * configure: Regenerate.
1113 * config.in: Regenerate.
1114 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1115 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1116 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1117 if assembler does not support -mabi and option ilp32 is selected.
1118 * doc/install.texi: Added note that building gcc 4.9 and after
1119 with pre 2.24 binutils will not support -mabi=ilp32.
1121 2013-12-11 Marek Polacek <polacek@redhat.com>
1124 * expr.c (expand_expr_real_1): Remove assert dealing with
1125 internal calls and turn that into a condition instead.
1127 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1129 * config/arm/arm.opt (mlra): Enable LRA by default.
1131 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1133 PR tree-optimization/59417
1134 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1135 in a different bb rhan var, only duplicate points-to info and
1136 not alignment info and don't duplicate range info.
1137 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1138 assertion failure handle inconsistencies in range info by only
1139 using var's range info and not PHI result range infos.
1141 PR tree-optimization/59386
1142 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1143 unshare_expr (id->retval) before passing it to gimple_build_assign.
1145 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1148 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1149 PR tree-optimization/41488
1150 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1151 for PEELED_CHREC kind IV.
1152 * tree-scalar-evolution.c: Include necessary header files.
1153 (peeled_chrec_map, simplify_peeled_chrec): New.
1154 (analyze_evolution_in_loop): New static variable.
1155 Call simplify_peeled_chrec.
1156 (scev_initialize): Initialize peeled_chrec_map.
1157 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1159 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1162 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1165 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1167 PR rtl-optimization/58295
1168 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1169 WORD_REGISTER_OPERATIONS targets.
1171 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1173 * genrecog.c (validate_pattern): Treat all messages except missing
1175 * config/epiphany/epiphany.md: Remove constraints from
1177 * config/h8300/h8300.md: Remove constraints from define_splits.
1178 * config/msp430/msp430.md: Likewise.
1179 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1180 nonimmediate_operand rather than general_operand for operand 0.
1181 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1182 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1183 Use match_operator rather than match_test to invoke general_operand.
1184 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1185 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1187 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1189 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1190 register_operand rather than pointer_operand. Add modes to the
1192 (insn_ldna_add<bitsuffix>): Likewise.
1193 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1194 (insn_ldnt_add<bitsuffix>): Likewise.
1195 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1196 (insn_ld_add_L2<bitsuffix>): Likewise.
1197 (insn_ldna_add_L2<bitsuffix>): Likewise.
1198 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1199 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1200 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1201 (insn_ld_add_miss<bitsuffix>): Likewise.
1202 (insn_ldna_add_miss<bitsuffix>): Likewise.
1203 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1204 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1205 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1206 (insn_st_add<bitsuffix>): Likewise.
1207 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1208 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1209 (insn_stnt_add<bitsuffix>): Likewise.
1210 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1211 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1212 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1213 reg_or_0_operand for operand 0.
1214 (insn_v2<pack_insn>): Likewise.
1215 (vec_pack_hipart_v4hi): Likewise.
1216 (insn_v2packh): Likewise.
1217 (vec_pack_ssat_v2si): Likewise.
1218 (insn_v4packsc): Likewise.
1220 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1222 * basic-block.h (gcov_working_set_t): Put back typedef.
1223 * gcov-io.h (gcov_bucket_type): Likewise.
1224 (gcov_working_set_info, gcov_working_set_t): Likewise.
1226 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1228 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1230 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1231 rename to cgraph_inline_failed_t.
1232 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1234 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1236 * conditions.h (CC_STATUS): Remove typedef.
1237 * bitmap.h (bitmap_obstack): Remove typedef.
1238 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1240 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1242 (bitmap_iterator): Remove typedef.
1243 * target.h (cumulative_args_t, print_switch_type,
1244 secondary_reload_info): Remove typedef.
1245 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1246 dw_cfi_oprnd_struct alias.
1247 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1248 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1249 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1251 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1253 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1254 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1256 * params.h (param_info, compiler_param): Remove typedef.
1257 * opts.h (cl_deferred_param): Remove typedef.
1258 * sreal.h (sreal): Remove typedef.
1259 * ddg.h (dep_type, dep_data_type): Remove typedef.
1260 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1262 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1263 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1264 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1265 and rename to aff_tree.
1266 * sched-int.h (region): Remove typedef.
1267 * diagnostic.h (diagnostic_info,
1268 diagnostic_classification_change_t): Remove typedef.
1269 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1271 * sbitmap.h (sbitmap_iterator): Remove typedef.
1272 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1273 Remove typedef and rename to imm_use_iterator.
1274 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1276 * ggc-internal.h (ggc_statistics): Remove typedef.
1277 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1278 rename to cselib_val.
1279 * tree-core.h (alias_pair): Remove typedef.
1280 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1282 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1284 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1285 * tree-data-ref.h (conflict_function): Remove typedef.
1286 * tree-inline.h (copy_body_data): Remove typedef.
1287 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1288 edge_growth_cache_entry): Remove typedef.
1289 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1290 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1291 Remove typedef and rename to gimple_stmt_iterator.
1292 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1293 rename to ce_if_block.
1294 (edge_iterator): Remove typedef.
1295 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1296 and rename to ipa_agg_jf_item.
1297 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1298 ipa_parm_adjustment_t): Remove typedef.
1299 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1301 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1303 * gcov-io.h (gcov_bucket_type): Remove typedef.
1304 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1305 to gcov_working_set_t.
1306 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1307 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1308 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1309 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1310 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1311 replace_label_data): Remove typedef.
1312 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1313 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1314 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1315 sel_region_bb_info_def, succ_iterator): Remove typedef.
1316 (deps_where_def, deps_where_t): Remove typedef and rename to
1318 * coretypes.h: Adapt forward declarations.
1319 * tree-scalar-evolution.h: Likewise.
1320 * tree-ssa-address.h: Likewise.
1321 * tree-ssa-operands.h: Likewise.
1322 * function.h: Likewise.
1323 * config/frv/frv-protos.h: Likewise.
1324 * targhooks.h: Likewise.
1325 * basic_block.h: Likewise.
1326 * rtl.def: Adapt documentation.
1327 * doc/tm.texi: Likewise.
1328 * ipa-cp.c: Adapt uses.
1329 * bitmap.c: Likewise.
1330 * dwarf2out.c: Likewise.
1331 * target.def: Likewise.
1332 * ipa-inline-analysis.c: Likewise.
1333 * dwarf2cfi.c: Likewise.
1334 * tree-ssa-loop-ivopts.c: Likewise.
1335 * lto-cgraph.c: Likewise.
1336 * config/frv/frv.c: Likewise.
1337 * ifcvt.c: Likewise.
1338 * ipa-prop.c: Likewise.
1340 2013-12-10 Kai Tietz <ktietz@redhat.com>
1343 * config/i386/i386.c (ix86_expand_prologue): Address saved
1344 registers stack-relative, not via frame-pointer.
1346 2013-12-10 Richard Biener <rguenther@suse.de>
1349 * tree-ssa-structalias.c (solution_set_expand): Expand into
1350 a different possibly cached bitmap and return the result.
1351 (set_union_with_increment): Pass in a shared expanded bitmap
1353 (do_sd_constraint): Likewise.
1354 (do_ds_constraint): Likewise.
1355 (do_complex_constraint): Likewise.
1356 (solve_graph): Manage the shared expanded bitmap.
1358 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1360 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1361 (LOOP_VINFO_SCALAR_LOOP): Define.
1362 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1363 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1364 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1366 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1368 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1370 (release_bb_predicate): New function.
1371 (free_bb_predicate): Use it.
1372 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1373 just to immediately allocate it again.
1374 (add_to_predicate_list): Add loop argument. If basic blocks that
1375 dominate loop->latch don't insert any predicate.
1376 (add_to_dst_predicate_list): Adjust caller.
1377 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1378 handle it like flag_tree_loop_if_convert_stores.
1379 (insert_gimplified_predicates): Likewise.
1380 (ifcvt_can_use_mask_load_store): New function.
1381 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1382 argument, check if some conditional loads or stores can't be
1383 converted into MASK_LOAD or MASK_STORE.
1384 (if_convertible_stmt_p): Add any_mask_load_store argument,
1385 pass it down to if_convertible_gimple_assign_stmt_p.
1386 (predicate_bbs): Don't return bool, only check if the last stmt
1387 of a basic block is GIMPLE_COND and handle that. Adjust
1388 add_to_predicate_list caller.
1389 (if_convertible_loop_p_1): Only call predicate_bbs if
1390 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1391 afterwards, check gimple_code of stmts here. Replace is_predicated
1392 check with dominance check. Add any_mask_load_store argument,
1393 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1394 call if_convertible_phi_p only after all if_convertible_stmt_p
1396 (if_convertible_loop_p): Add any_mask_load_store argument,
1397 pass it down to if_convertible_loop_p_1.
1398 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1399 (combine_blocks): Add any_mask_load_store argument, pass
1400 it down to insert_gimplified_predicates and call predicate_mem_writes
1401 if it is set. Call predicate_bbs.
1402 (version_loop_for_if_conversion): New function.
1403 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1404 calls. Return todo flags instead of bool, call
1405 version_loop_for_if_conversion if if-conversion should be just
1406 for the vectorized loops and nothing else.
1407 (main_tree_if_conversion): Adjust caller. Don't call
1408 tree_if_conversion for dont_vectorize loops if if-conversion
1409 isn't explicitly enabled.
1410 * tree-vect-data-refs.c (vect_check_gather): Handle
1411 MASK_LOAD/MASK_STORE.
1412 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1413 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1414 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1415 expand_MASK_STORE): New functions.
1416 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1417 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1418 (vectorize_loops): Don't try to vectorize loops with
1419 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1420 loops, fold LOOP_VECTORIZED internal call depending on if loop
1421 has been vectorized or not.
1422 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1424 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1425 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1426 still to loop's entry or exit edge.
1427 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1428 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1429 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1431 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1432 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1433 right place in the CFG afterwards.
1434 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1436 * cfgloop.h (struct loop): Add dont_vectorize field.
1437 * tree-loop-distribution.c (copy_loop_before): Adjust
1438 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1439 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1440 * passes.def: Add a note that pass_vectorize must immediately follow
1442 * tree-predcom.c (split_data_refs_to_components): Give up if
1444 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
1446 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1448 (vectorizable_mask_load_store): New function.
1449 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1450 (vect_transform_stmt): Handle MASK_STORE.
1451 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1452 DR_STMT where lhs is NULL.
1453 * optabs.h (can_vec_perm_p): Fix up comment typo.
1454 (can_vec_mask_load_store_p): New prototype.
1455 * optabs.c (can_vec_mask_load_store_p): New function.
1457 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1459 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1460 the extraction of a bit-field of null size.
1462 2013-12-10 Marek Polacek <polacek@redhat.com>
1465 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1466 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1467 instead of gimple_code.
1469 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1471 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1472 Add android definitions.
1473 (s390x-*-linux*): Use linux-protos.h.
1475 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1477 PR tree-optimization/41488
1478 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1479 for PEELED_CHREC kind IV.
1480 * tree-scalar-evolution.c: Include necessary header files.
1481 (peeled_chrec_map, simplify_peeled_chrec): New.
1482 (analyze_evolution_in_loop): New static variable.
1483 Call simplify_peeled_chrec.
1484 (scev_initialize): Initialize peeled_chrec_map.
1485 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1487 2013-12-09 Andrew Pinski <apinski@cavium.com>
1489 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1490 that options are conflicting ones.
1492 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1494 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1496 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1498 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1500 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1501 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1503 * cfganal.c (inverted_post_order_compute): Likewise.
1504 * cfgcleanup.c (try_optimize_cfg): Likewise.
1505 * cfgexpand.c (add_scope_conflicts): Likewise.
1506 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1507 * cfgrtl.c (relink_block_chain): Likewise.
1508 * dce.c (mark_artificial_uses): Likewise.
1509 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1510 * df-problems.c (df_lr_verify_solution_start,
1511 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1512 df_live_verify_solution_start, df_live_verify_solution_end,
1513 df_live_set_all_dirty, df_live_verify_transfer_functions,
1514 df_md_local_comput): Likewise.
1515 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1516 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1517 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1518 free_dominance_info): Likewise.
1519 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1520 * graph.c (draw_cfg_edges): Likewise.
1521 * graphite-scop-detection.c (print_graphite_scop_statistics,
1522 dot_all_scops_1): Likewise.
1523 * graphite.c (print_global_statistics,
1524 print_graphite_scop_statistics): Likewise.
1525 * ira.c (do_reload): Likewise.
1526 * loop-init.c (loop_optimizer_finalize): Likewise.
1527 * lto-streamer-in.c (input_function): Likewise.
1528 * lto-streamer-out.c (output_function): Likewise.
1529 * mcf.c (adjust_cfg_counts): Likewise.
1530 * predict.c (estimate_loops): Likewise.
1531 * sched-rgn.c (haifa_find_rgns): Likewise.
1532 * tree-cfg.c (split_critical_edges): Likewise.
1533 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1534 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1535 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1536 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1537 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1538 * vtable-verify.c (vtable_verify_main): Likewise.
1539 * web.c (web_main): Likewise.
1541 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1543 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1545 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1546 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1547 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1548 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1549 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1550 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1551 * config/sh/sh.c (sh_md_init_global): Likewise.
1552 * config/sh/sh_optimize_sett_clrt.cc
1553 (sh_optimize_sett_clrt::execute): Likewise.
1554 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1556 * dominance.c (calc_dfs_tree): Likewise.
1557 * final.c (final): Likewise.
1558 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1559 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1560 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1561 * lcm.c (compute_antinout_edge): Likewise.
1562 * mode-switching.c (optimize_mode_switching): Likewise.
1563 * postreload.c (reload_combine): Likewise.
1564 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1565 * tree-ssa-live.c (live_worklist): Likewise.
1567 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1569 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1571 * asan.c (transform_statements, execute_sanopt): Eliminate
1572 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1574 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1575 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1576 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1577 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1578 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1579 duplicate_computed_gotos): Likewise.
1580 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1581 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1582 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1583 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1584 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1585 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1587 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1588 verify_loop_structure): Likewise.
1589 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1590 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1591 verify_hot_cold_block_grouping, purge_all_dead_edges,
1592 fixup_abnormal_edges, record_effective_endpoints,
1593 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1594 break_superblocks): Likewise.
1595 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1596 cgraph_rebuild_references): Likewise.
1597 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1598 * combine.c (delete_noop_moves, create_log_links,
1599 combine_instructions): Likewise.
1600 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1601 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1603 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1604 c6x_reorg): Likewise.
1605 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1606 * config/frv/frv.c (frv_optimize_membar): Likewise.
1607 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1608 * config/ia64/ia64.c (ia64_reorg): Likewise.
1609 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1610 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1611 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1612 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1613 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1614 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1615 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1616 reorder_var_tracking_notes): Likewise.
1617 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1618 reorder_var_tracking_notes): Likewise.
1619 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1620 * cprop.c (compute_hash_table_work, compute_cprop_data,
1621 local_cprop_pass, find_implicit_sets): Likewise.
1622 * cse.c (cse_condition_code_reg): Likewise.
1623 * dce.c (prescan_insns_for_dce): Likewise.
1624 * df-core.c (df_compact_blocks): Likewise.
1625 * df-problems.c (df_word_lr_alloc): Likewise.
1626 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1627 df_update_entry_exit_and_calls): Likewise.
1628 * dominance.c (calculate_dominance_info, verify_dominators,
1629 debug_dominance_info): Likewise.
1630 * dse.c (dse_step5_nospill): Likewise.
1631 * except.c (finish_eh_generation): Likewise.
1632 * final.c (compute_alignments): Likewise.
1633 * function.c (thread_prologue_and_epilogue_insns,
1634 rest_of_match_asm_constraints): Likewise.
1635 * gcse.c (compute_hash_table_work, prune_expressions,
1636 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1637 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1638 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1639 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1640 find_explicit_erroneous_behaviour): Likewise.
1641 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1642 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1643 * haifa-sched.c (haifa_sched_init): Likewise.
1644 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1646 * ifcvt.c (if_convert): Likewise.
1647 * init-regs.c (initialize_uninitialized_regs): Likewise.
1648 * ipa-prop.c (ipcp_transform_function): Likewise.
1649 * ipa-pure-const.c (analyze_function): Likewise.
1650 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1651 * ira-build.c (form_loop_tree): Likewise.
1652 * ira-costs.c (find_costs_and_classes): Likewise.
1653 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1654 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1655 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1656 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1657 * jump.c (mark_all_labels): Likewise.
1658 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1659 compute_nearerout, compute_rev_insert_delete): Likewise.
1660 * loop-init.c (fix_loop_structure): Likewise.
1661 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1662 * lower-subreg.c (decompose_multiword_subregs,
1663 decompose_multiword_subregs): Likewise.
1664 * lra-assigns.c (assign_by_spills): Likewise.
1665 * lra-coalesce.c (lra_coalesce): Likewise.
1666 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1668 * lra-eliminations.c (lra_init_elimination): Likewise.
1669 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1670 lra_final_code_change): Likewise.
1671 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1672 update_inc_notes): Likewise.
1673 * mcf.c (adjust_cfg_counts): Likewise.
1674 * mode-switching.c (optimize_mode_switching): Likewise.
1675 * modulo-sched.c (rest_of_handle_sms): Likewise.
1676 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1677 expand_omp_target): Likewise.
1678 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1679 * postreload.c (reload_cse_regs_1): Likewise.
1680 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1681 tree_estimate_probability, expensive_function_p,
1682 estimate_bb_frequencies, compute_function_frequency): Likewise.
1683 * profile.c (is_inconsistent, compute_branch_probabilities,
1684 branch_prob): Likewise.
1685 * ree.c (find_removable_extensions): Likewise.
1686 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1687 * regcprop.c (copyprop_hardreg_forward): Likewise.
1688 * reginfo.c (init_subregs_of_mode): Likewise.
1689 * regrename.c (regrename_analyze): Likewise.
1690 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1692 * reload1.c (has_nonexceptional_receiver, reload,
1693 calculate_elim_costs_all_insns): Likewise.
1694 * resource.c (init_resource_info, free_resource_info): Likewise.
1695 * sched-ebb.c (schedule_ebbs): Likewise.
1696 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1697 haifa_find_rgns, sched_rgn_local_init): Likewise.
1698 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1699 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1700 make_regions_from_the_rest): Likewise.
1701 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1702 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1703 * store-motion.c (compute_store_table, build_store_vectors,
1704 one_store_motion_pass): Likewise.
1705 * tracer.c (tail_duplicate): Likewise.
1706 * trans-mem.c (compute_transaction_bits): Likewise.
1707 * tree-call-cdce.c (tree_call_cdce): Likewise.
1708 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1709 fold_cond_expr_cond, make_edges, assign_discriminators,
1710 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1711 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1712 execute_fixup_cfg): Likewise.
1713 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1714 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1716 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1717 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1718 mark_reachable_handlers): Likewise.
1719 * tree-emutls.c (lower_emutls_function_body): Likewise.
1720 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1721 * tree-inline.c (optimize_inline_calls): Likewise.
1722 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1723 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1724 * tree-object-size.c (compute_object_sizes): Likewise.
1725 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1726 insert_backedge_copies, tree_profiling): Likewise.
1727 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1728 * tree-sra.c (scan_function, sra_modify_function_body,
1729 propagate_dereference_distances, ipa_sra_modify_function_body,
1730 convert_callers): Likewise.
1731 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1732 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1733 create_outofssa_var_map, coalesce_partitions): Likewise.
1734 * tree-ssa-copy.c (init_copy_prop): Likewise.
1735 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1736 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1737 eliminate_unnecessary_stmts): Likewise.
1738 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1740 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1741 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1742 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1743 analyze_memory_references, fill_always_executed_in,
1744 tree_ssa_lim_finalize): Likewise.
1745 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1747 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1748 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1749 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1750 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1751 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1753 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1754 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1755 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1756 tree_ssa_uncprop): Likewise.
1757 * tree-ssa-uninit.c (warn_uninitialized_vars,
1758 execute_late_warn_uninitialized): Likewise.
1759 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1760 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1762 * tree-switch-conversion.c (do_switchconv): Likewise.
1763 * tree-vect-generic.c (expand_vector_operations): Likewise.
1764 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1765 execute_vect_slp): Likewise.
1766 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1767 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1769 * ubsan.c (ubsan_pass): Likewise.
1770 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1771 gimple_find_values_to_profile): Likewise.
1772 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1773 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1775 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1777 * basic-block.h (last_basic_block): Eliminate macro.
1779 * asan.c (transform_statements): Eliminate use of last_basic_block
1780 in favor of last_basic_block_for_fn, in order to make use of cfun
1782 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1783 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1784 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1785 * cfg.c (compact_blocks): Likewise.
1786 * cfganal.c (mark_dfs_back_edges,
1787 control_dependences::control_dependences, post_order_compute,
1788 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1789 single_pred_before_succ_order): Likewise.
1790 * cfgbuild.c (make_edges): Likewise.
1791 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1792 * cfghooks.c (verify_flow_info): Likewise.
1793 * cfgloop.c (verify_loop_structure): Likewise.
1794 * cfgloopanal.c (just_once_each_iteration_p,
1795 mark_irreducible_loops): Likewise.
1796 * cfgloopmanip.c (fix_bb_placements, remove_path,
1797 update_dominators_in_loop): Likewise.
1798 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1799 break_superblocks, rtl_flow_call_edges_add): Likewise.
1800 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1801 * config/frv/frv.c (frv_optimize_membar): Likewise.
1802 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1803 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1804 * cprop.c (compute_local_properties, find_implicit_sets,
1805 bypass_conditional_jumps, one_cprop_pass): Likewise.
1806 * cse.c (cse_main): Likewise.
1807 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1808 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1809 * df-problems.c (df_lr_verify_solution_start,
1810 df_live_verify_solution_start, df_md_local_compute): Likewise.
1811 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1812 calc_idoms): Likewise.
1813 * domwalk.c (dom_walker::walk): Likewise.
1814 * dse.c (dse_step0, dse_step3): Likewise.
1815 * function.c (epilogue_done): Likewise.
1816 * gcse.c (alloc_gcse_mem, compute_local_properties,
1817 prune_insertions_deletions, compute_pre_data,
1818 pre_expr_reaches_here_p, one_pre_gcse_pass,
1819 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1820 one_code_hoisting_pass): Likewise.
1821 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1822 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1823 * haifa-sched.c (unlink_bb_notes): Likewise.
1824 * ipa-split.c (execute_split_functions): Likewise.
1825 * ira-build.c (create_loop_tree_nodes,
1826 remove_unnecessary_regions): Likewise.
1827 * ira-emit.c (ira_emit): Likewise.
1828 * ira.c (find_moveable_pseudos, ira): Likewise.
1829 * lcm.c (compute_antinout_edge, compute_laterin,
1830 compute_insert_delete, pre_edge_lcm, compute_available,
1831 compute_nearerout, compute_rev_insert_delete,
1832 pre_edge_rev_lcm): Likewise.
1833 * loop-unroll.c (opt_info_start_duplication,
1834 apply_opt_in_copies): Likewise.
1835 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1836 * lra-lives.c (lra_create_live_ranges): Likewise.
1837 * lra.c (lra): Likewise.
1838 * mode-switching.c (optimize_mode_switching): Likewise.
1839 * recog.c (split_all_insns): Likewise.
1840 * regcprop.c (copyprop_hardreg_forward): Likewise.
1841 * regrename.c (regrename_analyze): Likewise.
1842 * reload1.c (reload): Likewise.
1843 * resource.c (init_resource_info): Likewise.
1844 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1845 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1846 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1847 recompute_rev_top_order, sel_init_pipelining,
1848 make_regions_from_the_rest): Likewise.
1849 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1851 * tracer.c (tail_duplicate): Likewise.
1852 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1853 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1854 gimple_flow_call_edges_add): Likewise.
1855 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1856 cleanup_tree_cfg_1): Likewise.
1857 * tree-complex.c (tree_lower_complex): Likewise.
1858 * tree-inline.c (copy_cfg_body): Likewise.
1859 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1860 prepare_def_site_for, update_ssa): Likewise.
1861 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1862 * tree-ssa-dom.c (record_edge_info): Likewise.
1863 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1864 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1865 * tree-ssa-loop-manip.c (copy_phi_node_args
1866 gimple_duplicate_loop_to_header_edge): Likewise.
1867 * tree-ssa-pre.c (compute_antic): Likewise.
1868 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1869 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1870 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1871 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1872 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1873 * tree-stdarg.c (reachable_at_most_once): Likewise.
1874 * tree-vrp.c (find_assert_locations): Likewise.
1875 * var-tracking.c (vt_find_locations): Likewise.
1877 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1879 * basic-block.h (profile_status): Eliminate macro.
1881 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1882 profile_status macro in favor of profile_status_for_fn, making
1883 use of cfun explicit.
1884 * cfghooks.c (account_profile_record): Likewise.
1885 * cfgloopanal.c (single_likely_exit):
1886 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1887 * graphite.c (graphite_finalize):
1888 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1889 ubsan_expand_si_overflow_neg_check,
1890 ubsan_expand_si_overflow_mul_check): Likewise.
1891 * ipa-split.c (consider_split, execute_split_functions):
1892 * loop-unroll.c (decide_peel_simple):
1893 * optabs.c (emit_cmp_and_jump_insn_1):
1894 * predict.c (maybe_hot_edge_p, probably_never_executed,
1895 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1896 tree_estimate_probability_driver, estimate_bb_frequencies,
1897 compute_function_frequency, rebuild_frequencies): Likewise.
1898 * profile.c (compute_branch_probabilities): Likewise.
1899 * tree-cfg.c (gimple_account_profile_record): Likewise.
1900 * tree-inline.c (optimize_inline_calls): Likewise.
1902 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1904 * basic-block.h (label_to_block_map): Eliminate macro.
1906 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1907 with uses of label_to_block_map_for_fn, making uses of cfun be
1909 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1910 (verify_gimple_label): Likewise.
1912 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1914 * basic-block.h (basic_block_info): Eliminate macro.
1916 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1917 basic_block_info with basic_block_info_for_fn, making uses
1918 of cfun be explicit.
1919 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1921 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1923 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1925 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1926 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1927 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1928 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1929 * caller-save.c (insert_one_insn): Likewise.
1930 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1931 * cfgexpand.c (add_scope_conflicts): Likewise.
1932 * cfghooks.c (verify_flow_info): Likewise.
1933 * cfgloop.c (flow_loops_find): Likewise.
1934 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1935 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1936 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1937 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1938 * cse.c (cse_main): Likewise.
1939 * dce.c (fast_dce): Likewise.
1940 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1941 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1942 df_bb_replace, df_dump_region): Likewise.
1943 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1944 df_live_bb_local_compute, df_chain_remove_problem)
1945 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1946 df_md_bb_local_compute, df_md_local_compute,
1947 df_md_transfer_function): Likewise.
1948 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1949 df_reorganize_refs_by_insn, df_bb_refs_collect,
1950 df_record_entry_block_defs, df_update_entry_block_defs,
1951 df_record_exit_block_uses): Likewise.
1952 * dominance.c (nearest_common_dominator_for_set): Likewise.
1953 * gcse.c (hoist_code): Likewise.
1954 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1955 * ipa-inline-analysis.c (param_change_prob,
1956 estimate_function_body_sizes): Likewise.
1957 * ipa-split.c (dominated_by_forbidden): Likewise.
1958 * loop-unroll.c (apply_opt_in_copies): Likewise.
1959 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1960 * lra-lives.c (lra_create_live_ranges): Likewise.
1961 * predict.c (propagate_freq): Likewise.
1962 * regrename.c (regrename_analyze): Likewise.
1963 * regstat.c (regstat_bb_compute_ri,
1964 regstat_bb_compute_calls_crossed): Likewise.
1965 * resource.c (mark_target_live_regs): Likewise.
1966 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1967 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1968 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1969 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1970 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1971 * sched-vis.c (debug_bb_n_slim): Likewise.
1972 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1973 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1974 * sel-sched.c (remove_insns_that_need_bookkeeping)
1975 (current_region_empty_p, sel_region_init,
1976 simplify_changed_insns): Likewise.
1977 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1978 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1979 * tree-cfg.c (make_edges, end_recording_case_labels,
1980 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1981 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1982 gimple_purge_all_dead_eh_edges,
1983 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1984 * tree-cfgcleanup.c (fixup_noreturn_call,
1985 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1986 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1987 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1988 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1989 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1990 * tree-ssa-live.c (live_worklist): Likewise.
1991 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1992 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1993 * tree-ssa-pre.c (compute_antic): Likewise.
1994 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1995 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1996 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1997 same_succ_flush_bbs, update_worklist, set_cluster,
1998 same_phi_alternatives, find_clusters_1, apply_clusters,
1999 update_debug_stmts): Likewise.
2000 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2001 thread_through_all_blocks): Likewise.
2002 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2003 * tree-vrp.c (find_assert_locations): Likewise.
2005 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2007 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2009 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2010 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2011 (expunge_block): Likewise.
2012 * cfgrtl.c (create_basic_block_structure): Likewise.
2013 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2014 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2015 * tree-cfg.c (create_bb): Likewise.
2017 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2019 * basic-block.h (profile_status_for_function): Rename to...
2020 (profile_status_for_fn): ...this.
2022 * cfg.c (check_bb_profile): Update for renaming.
2023 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2024 * lto-streamer-in.c (input_cfg): Likewise.
2025 * lto-streamer-out.c (output_cfg): Likewise.
2026 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2027 maybe_hot_bb_p, probably_never_executed)
2028 (handle_missing_profiles): Likewise.
2029 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2030 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2032 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2034 * basic-block.h (label_to_block_map_for_function): Rename to...
2035 (label_to_block_map_for_fn): ...this.
2037 * lto-streamer-in.c (input_cfg): Update for renaming.
2038 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2040 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2042 * basic-block.h (last_basic_block_for_function): Rename to...
2043 (last_basic_block_for_fn): ...this.
2045 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2046 last_basic_block_for_function to last_basic_block_for_fn.
2047 * lto-streamer-in.c (input_cfg): Likewise.
2048 * lto-streamer-out.c (output_cfg): Likewise.
2049 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2050 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2053 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2055 * basic-block.h (basic_block_info_for_function): Rename to...
2056 (basic_block_info_for_fn): ...this.
2057 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2058 (BASIC_BLOCK_FOR_FN): ...this.
2059 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2060 (SET_BASIC_BLOCK_FOR_FN): ...this.
2062 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2063 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2064 * ipa-utils.c (ipa_merge_profiles): Likewise.
2065 * lto-streamer-in.c (make_new_block): Update for renaming of
2066 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2067 (input_cfg): Update for renamings.
2068 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2069 (dump_function_to_file): Update for renaming of
2070 basic_block_info_for_function to basic_block_info_for_fn.
2072 2013-12-09 Richard Biener <rguenther@suse.de>
2075 * tree-ssa-structalias.c (set_union_with_increment): Remove
2077 (do_complex_constraint): Call set_union_with_increment with
2078 the solution delta, not the full solution.
2079 (make_transitive_closure_constraints): Merge the two
2082 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2084 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2085 more address validation checks.
2087 2013-12-09 Marek Polacek <polacek@redhat.com>
2090 * vtable-verify.c (verify_bb_vtables): Check the return value
2091 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2093 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2095 * config/arm/arm.md (generic_sched): Add cortexa12.
2096 (generic_vfp): Likewise.
2097 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2098 (arm_cortex_a12_tune): New tuning struct.
2099 * config/arm/arm-cores.def: Add cortex-a12.
2100 * config/arm/arm-tables.opt: Regenerate.
2101 * config/arm/arm-tune.md: Likewise.
2102 * config/arm/bpabi.h: Add cortex-a12.
2103 * doc/invoke.texi: Document -mcpu=cortex-a12.
2105 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2107 * doc/install.texi (Prerequisites): Explicitly mention C library
2108 and its headers for multilib builds.
2110 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2114 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2115 OPT_mcbranchdi entry.
2116 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2118 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2119 and TARGET_CMPEQDI_T variables.
2120 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2122 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2124 * config/linux.h: Fix typo in a comment.
2126 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2128 * config.gcc (*linux*): Split libc selection from Android support.
2129 Add libc selection to all *linux* targets. Add Android support to
2130 architectures that support it.
2131 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2132 (mips*-*-linux*): Add Android support.
2134 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2135 Maxim Kuvyrkov <maxim@kugelworks.com>
2137 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2138 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2139 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2141 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2143 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2144 Define appropriately for Linux and uClinux targets.
2146 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2148 * config/linux.c (linux_has_ifunc_p): Use correct test.
2150 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2152 * config/linux.c (linux_android_has_ifunc_p): Rename to
2154 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2155 * config/linux-protos.h (linux_android_has_ifunc_p,)
2156 (linux_android_libc_has_function): Update declarations.
2157 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2158 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2160 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2162 * linux-android.c: Rename to linux.c.
2163 * t-linux-android: Rename to t-linux. Update references
2165 * config.gcc: Update references to t-linux-android and linux-android.o.
2167 2013-12-07 Alan Modra <amodra@gmail.com>
2169 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2172 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2174 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2176 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2178 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2181 2013-12-06 Caroline Tice <cmtice@google.com>
2183 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2184 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2185 vtable pointer with the results of the verification call, rather than
2186 only the uses in the next statement.
2188 2013-12-06 Andrew Pinski <apinski@cavium.com>
2191 * config/aarch64/aarch64.md (trap): New pattern.
2193 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2195 PR tree-optimization/59388
2196 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2197 gimplify tem after stmt rather than before it.
2199 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2200 (get_references_in_stmt): Don't record operand addresses, but
2201 operands themselves.
2202 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2203 Adjust for the pos -> ref change.
2205 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2207 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2209 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2210 (processor_alias_table): Likewise.
2211 (ix86_option_override_internal): Likewise.
2212 * config/i386/i386.h (target_cpu_default): Replace
2213 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2215 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2217 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2220 * config/i386/i386.c (type_natural_mode): Properly handle
2221 size 8 for !TARGET_64BIT.
2223 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2225 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2228 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2229 Mark Mitchell <mark@codesourcery.com>
2232 * config/arm/arm.md (trap): New pattern.
2233 * config/arm/types.md: Added a type for trap.
2235 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2237 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2239 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2242 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2243 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2244 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2245 (TARGET_BUILTIN_DECL): Define.
2246 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2247 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2248 (enum sparc_builtins): New enumeral type.
2249 (sparc_builtins): New static array.
2250 (sparc_builtins_icode): Likewise.
2251 (def_builtin): Accept a separate icode and save the result.
2252 (def_builtin_const): Likewise.
2253 (sparc_fpu_init_builtins): New function.
2254 (sparc_vis_init_builtins): Pass the builtin code.
2255 (sparc_init_builtins): Call it if TARGET_FPU.
2256 (sparc_builtin_decl): New function.
2257 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2258 (sparc_handle_vis_mul8x16): Use the builtin code.
2259 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2260 and SPARC_BUILTIN_PDISTN.
2261 (compound_expr): New helper function.
2262 (sparc_atomic_assign_expand_fenv): New function.
2263 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2265 (flush, flushdi): Merge into single pattern.
2266 (ldfsr): New instruction.
2269 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2271 * asan.c: Remove struct tags when referring to class varpool_node.
2272 * cgraph.h: Likewise.
2273 * cgraphbuild.c: Likewise.
2274 * cgraphunit.c: Likewise.
2275 * dbxout.c: Likewise.
2276 * dwarf2out.c: Likewise.
2277 * gimple-fold.c: Likewise.
2278 * ipa-devirt.c: Likewise.
2279 * ipa-ref-inline.h: Likewise.
2280 * ipa-ref.h: Likewise.
2281 * ipa-reference.c: Likewise.
2282 * ipa-utils.c: Likewise.
2284 * lto-cgraph.c: Likewise.
2285 * lto-streamer-out.c: Likewise.
2286 * lto-streamer.h: Likewise.
2287 * passes.c: Likewise.
2288 * toplev.c: Likewise.
2289 * tree-eh.c: Likewise.
2290 * tree-emutls.c: Likewise.
2291 * tree-pass.h: Likewise.
2292 * tree-ssa-structalias.c: Likewise.
2293 * tree-vectorizer.c: Likewise.
2295 * varasm.c: Likewise.
2296 * varpool.c: Likewise.
2298 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2300 * cgraphunit.c: Remove struct tags when referring to class
2301 ipa_opt_pass_d or class opt_pass.
2302 * function.h: Likewise.
2303 * lto-cgraph.c: Likewise.
2304 * pass_manager.h: Likewise.
2305 * passes.c: Likewise.
2306 * tree-pass.h: Likewise.
2308 2013-12-06 Richard Biener <rguenther@suse.de>
2310 PR tree-optimization/59058
2311 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2312 (LOOP_VINFO_NITERSM1): New macro.
2313 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2314 the vector loop entry test in terms of scalar latch executions.
2315 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2316 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2317 number of latch executions.
2318 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2319 (vect_analyze_loop_form): Likewise.
2320 (vect_generate_tmps_on_preheader): Compute the number of
2321 vectorized iterations differently.
2323 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2325 * config/score/score.c (score_force_temporary): Delete function.
2326 (score_split_symbol): Ditto.
2327 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2328 parentheses to silence ambiguity warning and reindent.
2330 2013-12-05 Marek Polacek <polacek@redhat.com>
2332 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2334 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2336 * config.gcc: Support --with-cpu=ia.
2338 * config/i386/i386.c (cpu_names): Add "ia".
2339 (processor_alias_table): Likewise.
2340 (ix86_option_override_internal): Disallow -march=ia.
2341 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2343 * doc/invoke.texi: Document -mtune=ia.
2345 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2347 PR rtl-optimization/59317
2348 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2351 2013-12-05 Martin Jambor <mjambor@suse.cz>
2354 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2355 non-BLKmode in their naturally aligned type.
2357 2013-12-05 Marek Polacek <polacek@redhat.com>
2361 * ubsan.c: Include rtl.h and expr.h.
2362 (ubsan_encode_value): Add new parameter. If expanding, assign
2363 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2364 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2365 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2366 * ubsan.h (ubsan_encode_value): Adjust declaration.
2367 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2368 ubsan_build_overflow_builtin above expand_normal call. Surround
2369 this call with push_temp_slots and pop_temp_slots.
2370 (ubsan_expand_si_overflow_neg_check): Likewise.
2371 (ubsan_expand_si_overflow_mul_check): Likewise.
2373 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2375 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2376 the get_alternative_base call with flag_expensive_optimizations.
2377 (alloc_cand_and_find_basis): Likewise.
2379 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2381 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2382 vec_select for overlapping register lanes.
2384 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2386 * config/i386/i386.c (ix86_expand_builtin): Generate
2387 reg for readflags built-in when optimizing.
2388 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2389 (pushfl<mode>2): This. Fix iterator.
2390 (*popfl<mode>): Rename to ...
2391 (*popfl<mode>1): This. Fix iterator.
2393 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2395 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2396 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2397 (ix86_init_mmx_sse_builtins): Define
2398 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2399 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2400 (ix86_expand_builtin): Expand them.
2401 * config/i386/ia32intrin.h (__readeflags): New.
2402 (__writeeflags): Ditto.
2403 * config/i386/i386.md (*pushfl<mode>): Ditto.
2404 (*popfl<mode>1): Ditto.
2406 2013-12-05 Richard Biener <rguenther@suse.de>
2408 PR tree-optimization/59374
2409 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2410 Commonize known and unknown dependence case fixing the allowed
2411 read-write dependence case and dropping code that should not matter.
2413 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2415 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2416 generation of predicated version.
2417 (epilogue_deallocate_stack): Ditto.
2418 (prologue_allocate_stack_pr): Add explicit predicated version.
2419 (epilogue_deallocate_stack_pr): Ditto.
2420 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2422 2013-12-05 Alan Modra <amodra@gmail.com>
2424 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2426 <recursive call for build != host>: Clear GMPINC. Don't bother
2429 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2430 Marek Polacek <polacek@redhat.com>
2432 * opts.c (common_handle_option): Handle
2433 -fsanitize=signed-integer-overflow.
2434 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2435 negv<mode>3, negv<mode>3_1): Define expands.
2436 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2437 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2438 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2439 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2440 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2441 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2442 PROB_ALWAYS): Define.
2443 (ubsan_build_overflow_builtin): Declare.
2444 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2446 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2447 (ubsan_build_overflow_builtin): New function.
2448 (instrument_si_overflow): Likewise.
2449 (ubsan_pass): Add signed integer overflow checking.
2450 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2451 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2452 * internal-fn.c: Include ubsan.h and target.h.
2453 (ubsan_expand_si_overflow_addsub_check): New function.
2454 (ubsan_expand_si_overflow_neg_check): Likewise.
2455 (ubsan_expand_si_overflow_mul_check): Likewise.
2456 (expand_UBSAN_CHECK_ADD): Likewise.
2457 (expand_UBSAN_CHECK_SUB): Likewise.
2458 (expand_UBSAN_CHECK_MUL): Likewise.
2459 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2460 (-A) + B -> B - A when doing the signed integer overflow checking.
2461 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2463 * tree-vrp.c (extract_range_basic): Handle internal calls.
2464 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2466 * asan.c: Include predict.h.
2467 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2468 * predict.c: Move the PROB_* macros...
2469 * predict.h (enum br_predictor): ...here.
2470 (PROB_LIKELY, PROB_UNLIKELY): Define.
2471 * trans-mem.c: Include predict.h.
2472 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2473 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2475 2013-12-04 Jeff Law <law@redhat.com>
2477 * common.opt: Split up -fisolate-erroneous-paths into
2478 -fisolate-erroneous-paths-dereference and
2479 -fisolate-erroneous-paths-attribute.
2480 * invoke.texi: Corresponding changes.
2481 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2482 what kind of statements can be used to infer a non-null range.
2483 * gimple.h (infer_nonnull_range): Update prototype.
2484 * tree-vrp.c (infer_value_range): Corresponding changes.
2485 * opts.c (default_options_table): Update due to option split.
2486 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2487 (find_implicit_erroneous_behaviour): Pass additional arguments
2488 to infer_nonnull_range.
2489 (find_explicit_erroneous_behaviour): Similarly.
2490 (gate_isolate_erroneous_paths): Check both of the new options.
2492 2013-12-04 Jeff Law <law@redhat.com>
2494 * expr.c (expand_assignment): Update comments.
2496 2013-12-04 Tobias Burnus <burnus@net-b.de>
2499 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2500 * tree.def (NAMELIST_DECL): Add.
2501 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2502 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2503 * dwarf2out.c (gen_namelist_decl): New function.
2504 (gen_decl_die, dwarf2out_decl): Call it.
2505 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2506 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2507 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2509 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2511 2013-12-03 Xinliang David Li <davidxl@google.com>
2513 * tree-ssa-structalias.c (constraint_set_union): Change return type
2515 (merge_node_constraints): Ditto.
2516 (unify_nodes): Update changed set when constraints set changes.
2518 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2520 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2522 * configure: Regenerated.
2524 * gdbasan.in: New file.
2526 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2528 PR rtl-optimization/58726
2529 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2530 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2532 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2533 Uros Bizjak <ubizjak@gmail.com>
2536 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2537 !TARGET_AVX there is misaligned MEM operand with vector mode
2538 and get_attr_ssememalign is 0, return false.
2539 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2540 computed alignment and for non-temporal loads/stores also
2541 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2542 * config/i386/sse.md
2543 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2544 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2545 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2546 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2547 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2548 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2549 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2550 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2551 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2552 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2553 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2554 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2555 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2556 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2557 * config/i386/i386.md (ssememalign): New define_attr.
2559 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2561 PR tree-optimization/59355
2562 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2563 * opts.c (common_handle_option): Fix comment spelling.
2565 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2567 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2568 (name_expansions): New static variable.
2569 (alt_base_map): Ditto.
2570 (get_alternative_base): New function.
2571 (find_basis_for_candidate): For CAND_REF, optionally call
2572 find_basis_for_base_expr with the returned value from
2573 get_alternative_base.
2574 (record_potential_basis): Add new parameter 'base' of type 'tree';
2575 add an assertion of non-NULL base; use base to set node->base_expr.
2576 (alloc_cand_and_find_basis): Update; call record_potential_basis
2577 for CAND_REF with the returned value from get_alternative_base.
2578 (replace_refs): Dump details on the replacing.
2579 (execute_strength_reduction): Call pointer_map_create for
2580 alt_base_map; call free_affine_expand_cache with &name_expansions.
2582 2013-12-03 Wei Mi <wmi@google.com>
2584 PR rtl-optimization/59020
2585 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2586 (sched_analyze_insn): Call try_group_insn.
2587 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2588 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2589 (group_insns_for_macro_fusion): Removed.
2590 (sched_init): Remove calling group_insns_for_macro_fusion.
2592 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2594 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2596 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2598 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2600 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2602 (aarch64_can_eliminate): Don't check elimination source when
2603 frame_pointer_required is false.
2605 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2607 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2608 position independent code.
2609 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2611 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2614 * config/i386/i386.c (emit_memset): Adjust destination address
2616 (expand_setmem_epilogue): Likewise.
2618 2013-12-03 Marek Polacek <polacek@redhat.com>
2621 * calls.c (expand_call): Disallow passing huge arguments by value.
2623 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2625 PR tree-optimization/59362
2626 * tree-object-size.c (object_sizes): Change into array of
2627 vec<unsigned HOST_WIDE_INT>.
2628 (compute_builtin_object_size): Check computed bitmap for
2629 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2630 vector if new SSA_NAMEs appeared.
2631 (init_object_sizes): Check computed bitmap for non-NULL.
2632 Call safe_grow on object_sizes elements instead of initializing
2634 (fini_object_sizes): Call release on object_sizes elements, don't
2638 * gimplify.c (nonlocal_vla_vars): New variable.
2639 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2640 nonlocal_vla_vars chain.
2641 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2642 if outer_bind has DECL_INITIAL (current_function_decl) block.
2645 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2647 * expr.h (struct saved_pending_stack_adjust): New type.
2648 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2650 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2651 and get_last_insn before do_pending_stack_adjust, call
2652 restore_pending_stack_adjust after delete_insns_since.
2653 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2654 before calling emit_conditional_move.
2655 * expmed.c (expand_sdiv_pow2): Likewise.
2656 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2658 2013-12-02 Jeff Law <law@redhat.com>
2660 PR tree-optimization/59322
2661 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2662 Remove code which copied jump threading paths.
2664 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2667 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2668 for saving in cl_target_option.
2669 (ix86_tune_string): Ditto.
2670 (ix86_cmodel): Ditto.
2672 (ix86_asm_dialect): Ditto.
2673 (ix86_branch_cost): Ditto.
2674 (ix86_dump_tunes): Ditto.
2675 (ix86_force_align_arg_pointer): Ditto.
2676 (ix86_force_drap): Ditto.
2677 (ix86_incoming_stack_boundary_arg): Ditto.
2678 (ix86_pmode): Ditto.
2679 (ix86_preferred_stack_boundary_arg): Ditto.
2680 (ix86_recip_name): Ditto.
2681 (ix86_regparm): Ditto.
2682 (ix86_section_threshold): Ditto.
2683 (ix86_sse2avx): Ditto.
2684 (ix86_stack_protector_guard): Ditto.
2685 (ix86_stringop_alg): Ditto.
2686 (ix86_tls_dialect): Ditto.
2687 (ix86_tune_ctrl_string): Ditto.
2688 (ix86_tune_memcpy_strategy): Ditto.
2689 (ix86_tune_memset_strategy): Ditto.
2690 (ix86_tune_no_default): Ditto.
2691 (ix86_veclibabi_type): Ditto.
2692 * config/i386/i386.c (function_specific_save): Save the above
2693 variables in gcc_options to cl_target_option.
2694 (function_specific_restore): Do the reverse done in
2695 function_specific_save.
2696 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2697 and ix86_tune_string to use the opts structure.
2698 (ix86_option_override_internal):Change
2699 ix86_incoming_stack_boundary_arg to
2700 opts->x_ix86_incoming_stack_boundary_arg
2702 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2704 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2705 in #ifndef IN_LIBGCC2 / #endif.
2707 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2709 PR tree-optimization/59358
2710 * tree-vrp.c (union_ranges): To check for the partially overlapping
2711 ranges or adjacent ranges, also compare *vr0max with vr1max.
2713 2013-12-02 Sterling Augustine  <saugustine@google.com>
2715 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2716 when there isn't a skeleton die.
2718 2013-12-02 Marek Polacek <polacek@redhat.com>
2721 * doc/invoke.texi: Document -fsanitize=return.
2723 2013-12-02 Tobias Burnus <burnus@net-b.de>
2724 Manuel López-Ibáñez <manu@gcc.gnu.org>
2727 * doc/invoke.texi: Add missing @opindex.
2728 (-fsanitize=): Use @gcctabopt instead of @itemize.
2730 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2732 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2733 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2734 targets like arm-none-eabi.
2735 * expr.c (expand_assignment): Handle normal fields like bit regions.
2737 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2740 * function.c (invoke_set_current_function_hook): Call
2741 targetm.set_current_function after setting this_fn_optabs.
2743 2013-12-02 Richard Biener <rguenther@suse.de>
2745 PR tree-optimization/59139
2746 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2747 code in get_val_for.
2748 (get_val_for): Use gcc_checking_asserts.
2750 2013-12-02 Richard Biener <rguenther@suse.de>
2753 * tree-ssa-operands.c (opf_implicit): Remove.
2754 (opf_address_taken): New flag.
2755 (get_expr_operands): Remove early out, pass down opf_address_taken for
2756 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2757 (get_indirect_ref_operands): Rename to ...
2758 (get_mem_ref_operands): ... this.
2759 (get_asm_expr_operands): Rename to ...
2760 (get_asm_stmt_operands): ... this.
2762 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2764 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2766 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2768 PR tree-optimization/59356
2769 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2770 offset computation using the precision of the index type.
2772 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2775 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2776 when rclass is GENERAL_REGS.
2778 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2780 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2781 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2783 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2785 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2788 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2790 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2792 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2793 Eric Botcazou <ebotcazou@adacore.com>
2795 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2796 as applied to nonzero_sign_valid when last_set_mode has less precision
2799 2013-11-30 Tobias Burnus <burnus@net-b.de>
2802 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2803 environment variable and link to a list with flags.
2804 (-fsanitize=thread): Ditto and update link.
2806 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2808 PR rtl-optimization/59340
2809 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2812 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2814 * lra.c (lra): Set lra_in_progress before check_rtl call.
2815 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2816 adding clobber regs when LRA is running.
2818 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2821 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2823 2013-11-29 Richard Biener <rguenther@suse.de>
2826 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2827 free_stmt_operands, update_stmt_operands): Add struct function
2829 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2830 function argument from fini_ssa_operands, verify_ssa_operands,
2831 free_stmt_operands and update_stmt_operands everywhere.
2832 * tree-ssanames.h (release_ssa_name_fn): New.
2833 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2834 * tree-ssanames.c (release_ssa_name): Rename to ...
2835 (release_ssa_name_fn): ... this and add struct function argument.
2836 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2837 (update_stmt_fn): New function.
2838 * tree-cfg.c (move_block_to_fn): Adjust.
2839 * tree-if-conv.c (free_bb_predicate): Likewise.
2840 * tree-ssa.c (verify_ssa): Likewise.
2841 (delete_tree_ssa): Likewise.
2842 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2843 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2844 update_stmt_fn instead of update_stmt.
2846 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2848 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2851 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2853 * config/arm/arm.md (store_minmaxsi): Use only when
2854 optimize_function_for_size_p.
2856 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2857 Yury Gribov <y.gribov@samsung.com>
2860 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2861 * gcc.c: Using libsanitizer spec instead of explicit libs.
2863 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2866 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2867 * cgraph.h (varpool_node): Add need_bounds_init field.
2868 * lto-cgraph.c (lto_output_varpool_node): Output
2869 need_bounds_init value.
2870 (input_varpool_node): Read need_bounds_init value.
2871 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2874 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2875 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2876 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2877 (gen_type_die_with_usage): Skip pointer bounds.
2878 (dwarf2out_global_decl): Likewise.
2881 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2882 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2883 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2884 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2885 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2886 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2887 (gimple_call_with_bounds_p): New.
2888 (gimple_call_set_with_bounds): New.
2889 (gimple_call_num_nobnd_args): Remove.
2890 (gimple_call_nobnd_arg): Remove.
2891 * tree.h (CALL_WITH_BOUNDS_P): New.
2892 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2895 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2896 * common.opt (fcheck-pointer-bounds): Move to ...
2897 * c-family/c.opt: ... here.
2898 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2899 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2900 * langhooks.h (lang_hooks): Remove chkp_supported field.
2901 * toplev.c (process_options): Remove chkp_supported check.
2904 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2905 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2906 * tree.h (POINTER_BOUNDS_P): New.
2907 (BOUNDED_TYPE_P): New.
2909 (pointer_bounds_type_node): New.
2910 * tree.c (build_common_tree_nodes): Initialize
2911 pointer_bounds_type_node.
2912 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2913 (gimple_call_num_nobnd_args): New.
2914 (gimple_call_nobnd_arg): New.
2915 (gimple_return_retbnd): New.
2916 (gimple_return_set_retbnd): New
2917 * gimple.c (gimple_build_return): Increase number of ops
2918 for return statement.
2919 (gimple_call_get_nobnd_arg_index): New.
2920 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2923 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2924 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2925 with "chkp ctor" and "bnd_legacy" attributes.
2926 * gimplify.c (gimplify_init_constructor): Avoid infinite
2927 loop during gimplification of bounds initializer.
2930 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2931 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2932 (handle_bnd_legacy): New.
2933 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2934 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2938 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2939 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2940 (BT_FN_PTR_CONST_PTR): New.
2941 (BT_FN_CONST_PTR_CONST_PTR): New.
2942 (BT_FN_PTR_CONST_PTR_SIZE): New.
2943 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2944 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2945 (BT_FN_VOID_CONST_PTR_SIZE): New.
2946 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2947 * chkp-builtins.def: New.
2948 * builtins.def: include chkp-builtins.def.
2949 (DEF_CHKP_BUILTIN): New.
2950 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2951 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2952 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2953 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2954 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2955 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2956 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2957 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2958 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2959 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2960 * common.opt (fcheck-pointer-bounds): New.
2961 * toplev.c (process_options): Check Pointer Bounds Checker is
2963 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2966 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2967 * target.def (builtin_chkp_function): New.
2968 (chkp_bound_type): New.
2969 (chkp_bound_mode): New.
2970 (fn_abi_va_list_bounds_size): New.
2971 (load_bounds_for_arg): New.
2972 (store_bounds_for_arg): New.
2973 * targhooks.h (default_load_bounds_for_arg): New.
2974 (default_store_bounds_for_arg): New.
2975 (default_fn_abi_va_list_bounds_size): New.
2976 (default_chkp_bound_type): New.
2977 (default_chkp_bound_mode): New.
2978 (default_builtin_chkp_function): New.
2979 * targhooks.c (default_load_bounds_for_arg): New.
2980 (default_store_bounds_for_arg): New.
2981 (default_fn_abi_va_list_bounds_size): New.
2982 (default_chkp_bound_type): New.
2983 (default_chkp_bound_mode); New.
2984 (default_builtin_chkp_function): New.
2985 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2986 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2987 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2988 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2989 (TARGET_CHKP_BOUND_TYPE): New.
2990 (TARGET_CHKP_BOUND_MODE): New.
2991 * doc/tm.texi: Regenerated.
2992 * langhooks.h (lang_hooks): Add chkp_supported field.
2993 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2994 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2997 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2998 * config/i386/constraints.md (B): New.
3001 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3002 * config/i386/i386-modes.def (BND32): New.
3004 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3005 * config/i386/i386.c (isa_opts): Add mmpx.
3006 (regclass_map): Add bound registers.
3007 (dbx_register_map): Likewise.
3008 (dbx64_register_map): Likewise.
3009 (svr4_dbx_register_map): Likewise.
3011 (ix86_option_override_internal): Support MPX ISA.
3012 (ix86_conditional_register_usage): Support bound registers.
3013 (print_reg): Likewise.
3014 (ix86_code_end): Add MPX bnd prefix.
3015 (output_set_got): Likewise.
3016 (ix86_output_call_insn): Likewise.
3017 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3018 (ix86_print_operand_punct_valid_p): Likewise.
3019 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3021 (ix86_class_likely_spilled_p): Add bound regs support.
3022 (ix86_hard_regno_mode_ok): Likewise.
3023 (x86_order_regs_for_local_alloc): Likewise.
3024 (ix86_bnd_prefixed_insn_p): New.
3025 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3026 (FIXED_REGISTERS): Add bound registers.
3027 (CALL_USED_REGISTERS): Likewise.
3028 (REG_ALLOC_ORDER): Likewise.
3029 (HARD_REGNO_NREGS): Likewise.
3031 (VALID_BND_REG_MODE): New.
3032 (FIRST_BND_REG): New.
3033 (LAST_BND_REG): New.
3034 (reg_class): Add BND_REGS.
3035 (REG_CLASS_NAMES): Likewise.
3036 (REG_CLASS_CONTENTS): Likewise.
3038 (ANY_BND_REG_P): New.
3040 (HI_REGISTER_NAMES): Add bound registers.
3041 * config/i386/i386.md (UNSPEC_BNDMK): New.
3042 (UNSPEC_BNDMK_ADDR): New.
3043 (UNSPEC_BNDSTX): New.
3044 (UNSPEC_BNDLDX): New.
3045 (UNSPEC_BNDLDX_ADDR): New.
3046 (UNSPEC_BNDCL): New.
3047 (UNSPEC_BNDCU): New.
3048 (UNSPEC_BNDCN): New.
3049 (UNSPEC_MPX_FENCE): New.
3052 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3053 (length_immediate): Likewise.
3054 (prefix_0f): Likewise.
3056 (prefix_rep): Check for bnd prefix.
3057 (length_nobnd): New.
3058 (length): Use length_nobnd if specified.
3063 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3066 (simple_return_internal): Likewise.
3067 (simple_return_pop_internal): Likewise.
3068 (*indirect_jump): Add MPX bnd prefix.
3069 (*tablejump_1): Likewise.
3070 (simple_return_internal_long): Likewise.
3071 (simple_return_indirect_internal): Likewise.
3075 (*mov<mode>_internal_mpx): New.
3076 (<mode>_<bndcheck>): New.
3077 (*<mode>_<bndcheck>): New.
3082 * config/i386/predicates.md (lea_address_operand): Rename to...
3083 (address_no_seg_operand): ... this.
3084 (address_mpx_no_base_operand): New.
3085 (address_mpx_no_index_operand): New.
3086 (bnd_mem_operator): New.
3087 * config/i386/i386.opt (mmpx): New.
3088 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3089 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3092 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3093 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3094 * tree.def (POINTER_BOUNDS_TYPE): New.
3095 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3096 (POINTER_BOUNDS_MODE): New.
3097 (make_pointer_bounds_mode): New.
3098 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3099 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3100 (layout_type): Support POINTER_BOUNDS_TYPE.
3101 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3102 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3103 (type_contains_placeholder_1): Likewise.
3104 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3105 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3106 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3108 2013-11-29 Richard Biener <rguenther@suse.de>
3111 * tree-cfg.c (verify_expr): Restrict bounds verification of
3112 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3114 2013-11-29 Richard Biener <rguenther@suse.de>
3116 PR tree-optimization/59334
3117 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3120 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3121 Richard Biener <rguenther@suse.de>
3124 * omp-low.c (simd_clone_create): Return NULL if for definition
3125 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3126 before calling cgraph_function_versioning.
3127 (expand_simd_clones): Look for "omp declare simd" attribute first.
3128 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3129 Punt if node->global.inlined_to.
3130 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3131 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3132 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3134 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3137 * tree-core.h (enum omp_clause_schedule_kind): Add
3138 OMP_CLAUSE_SCHEDULE_LAST.
3139 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3140 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3141 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3142 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3143 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3144 (DFS_write_tree_body): Handle OMP_CLAUSE.
3145 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3146 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3147 (write_ts_omp_clause_tree_pointers): New function.
3148 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3149 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3150 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3151 (unpack_value_fields): Call it for OMP_CLAUSE.
3152 (streamer_alloc_tree): Handle OMP_CLAUSE.
3153 (lto_input_ts_omp_clause_tree_pointers): New function.
3154 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3156 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3158 * doc/implement-c.texi: Document C11 implementation-defined
3159 behavior. Refer to -ffp-contract=fast for contraction behavior.
3160 * doc/invoke.texi (-std=c99, std=c11): Update description of
3162 (-std=gnu99): Don't mention as future default.
3163 (-std=gnu11): Mention as intended future default.
3164 * doc/standards.texi: Update descriptions of C99 and C11 support.
3165 Limit statement about C99 facilities for freestanding
3166 implementations to some platforms only.
3168 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3171 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3173 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3176 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3177 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3178 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3179 Don't call lra_init_elimination.
3180 (ira): Call ira_setup_eliminable_regset without arguments.
3181 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3182 from ira_setup_eliminable_regset call.
3183 * gcse.c (calculate_bb_reg_pressure): Ditto.
3184 * haifa-sched.c (sched_init): Ditto.
3185 * lra.h (lra_init_elimination): Remove the prototype.
3186 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3187 used_insn_alternative upper.
3188 (lra_eliminate_regs_1): Add one more parameter.
3189 (lra-eliminate): Ditto.
3190 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3191 (setup_sp_offset): New.
3192 (lra_process_new_insns): Call setup_sp_offset.
3193 (lra): Add argument to lra_eliminate calls.
3194 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3195 (get_equiv_with_elimination): New.
3196 (process_addr_reg): Call get_equiv_with_elimination instead of
3197 get_equiv_substitution.
3198 (equiv_address_substitution): Ditto.
3199 (loc_equivalence_change_p): Ditto.
3200 (loc_equivalence_callback, lra_constraints): Ditto.
3201 (curr_insn_transform): Ditto. Print the sp offset
3202 (process_alt_operands): Prevent stack pointer reloads.
3203 (lra_constraints): Remove one argument from lra_eliminate call.
3204 Move it up. Mark used hard regs bfore it. Use
3205 get_equiv_with_elimination instead of get_equiv_substitution.
3206 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3207 assert for param values combination. Use sp offset. Add argument
3208 to lra_eliminate_regs_1 calls.
3209 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3210 (curr_sp_change): New static var.
3211 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3212 Don't prevent elimination to sp if we can calculate its change.
3213 Pass the argument to mark_not_eliminable calls.
3214 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3215 argument to lra_eliminate_regs_1 call.
3216 (update_reg_eliminate): Move calculation of hard regs for spill
3217 lower. Switch off lra_in_progress temporarily to generate regs
3218 involved into elimination.
3219 (lra_init_elimination): Rename to init_elimination. Make it
3220 static. Set up insn sp offset, check the offsets at the end of BBs.
3221 (process_insn_for_elimination): Add parameter. Pass its value to
3222 eliminate_regs_in_insn.
3223 (lra_eliminate): : Add parameter. Pass its value to
3224 process_insn_for_elimination. Add assert for param values
3225 combination. Call init_elimination. Don't update offsets in
3226 equivalence substitutions.
3227 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3228 for created stack slot.
3229 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3232 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3234 * config/arm/iterators.md (vrint_conds): New int attribute.
3235 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3236 (smax<mode>3): Likewise.
3237 (smin<mode>3): Likewise.
3239 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3241 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3242 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3243 * tree-ssanames.h (set_range_info): Add range_type argument.
3244 (duplicate_ssa_name_range_info): Likewise.
3245 * tree-ssanames.c (set_range_info): Take the range type as argument
3246 and store it in SSA_NAME_ANTI_RANGE_P.
3247 (duplicate_ssa_name_range_info): Likewise.
3248 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3249 (set_nonzero_bits): Update call to set_range_info.
3250 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3251 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3252 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3253 (vrp_finalize): Likewise, passing anti-ranges directly.
3255 2013-11-28 Richard Biener <rguenther@suse.de>
3257 PR tree-optimization/59330
3258 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3259 and fix delayed marking of free calls not necessary.
3261 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3263 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3265 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3267 2013-11-28 Terry Guo <terry.guo@arm.com>
3269 * config/arm/arm.c (v7m_extra_costs): New table.
3270 (arm_v7m_tune): Use it.
3272 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3274 * config/sol2.h (TIME_LIBRARY): Define.
3276 2013-11-28 Richard Biener <rguenther@suse.de>
3279 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3280 CONST_DECLs in function context are not indexable.
3282 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3284 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3285 not optimized for size.
3287 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3289 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3291 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3292 data->asan_base as base for vars and update asan_alignb.
3293 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3294 Pass them to asan_emit_stack_protection.
3295 * asan.c (asan_detect_stack_use_after_return): New variable.
3296 (asan_emit_stack_protection): Add pbase and alignb arguments.
3297 Implement use after return sanitization.
3298 * asan.h (asan_emit_stack_protection): Adjust prototype.
3299 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3301 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3303 * common.opt: Introduced a new option -fsimd-cost-model.
3304 * doc/invoke.texi: Introduced a new openmp-simd warning and
3305 a new -fsimd-cost-model option.
3306 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3307 to rely on the particular loop info.
3308 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3309 (vect_peeling_hash_choose_best_peeling): Ditto.
3310 (vect_enhance_data_refs_alignment): Ditto.
3311 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3312 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3313 plus added openmp-simd warining.
3315 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3317 PR rtl-optimization/59311
3318 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3319 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3321 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3323 * var-tracking.c (track_expr_p): Do not track declarations for parts
3324 of tracked parameters.
3325 (add_stores): Do not track values for tracked parameters passed in
3327 (vt_get_decl_and_offset): Handle PARALLEL.
3328 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3330 2013-11-27 Jeff Law <law@redhat.com>
3332 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3333 clobber the loop structure thread_block was unsuccessful. If
3334 thread_block was unsuccessful, cleanup appropriately.
3336 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3338 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3339 (score_char_to_class): Likewise.
3341 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3343 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3344 the overflow bit set.
3346 2013-11-27 Richard Biener <rguenther@suse.de>
3349 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3351 (rebuild_cgraph_edges): Likewise.
3352 * ipa-inline-analysis.c (estimate_function_body_sizes):
3353 Skip internal calls.
3354 * tree-inline.c (estimate_num_insns): Estimate size of internal
3356 (gimple_expand_calls_inline): Do not try inline-expanding
3358 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3359 force_vect and simduid.
3360 (input_struct_function_base): Stream has_force_vect_loops
3361 and has_simduid_loops.
3362 (input_function): Adjust.
3363 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3364 force_vect and simduid.
3365 (output_struct_function_base): Stream has_force_vect_loops
3366 and has_simduid_loops.
3368 2013-11-27 Kai Tietz <ktietz@redhat.com>
3370 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3373 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3375 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3376 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3378 2013-11-27 Marek Polacek <polacek@redhat.com>
3381 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3382 instead of walk_gimple_op.
3383 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3385 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3386 Jakub Jelinek <jakub@redhat.com>
3388 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3389 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3390 (struct cgraph_node): Add simdclone and simd_clones fields.
3391 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3392 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3393 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3394 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3395 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3396 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3397 * doc/tm.texi: Regenerated.
3398 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3399 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3400 attribute is present.
3401 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3402 (simd_clone_vector_of_formal_parm_types): New function.
3403 (simd_clone_struct_alloc, simd_clone_struct_copy,
3404 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3405 simd_clone_compute_base_data_type, simd_clone_mangle,
3406 simd_clone_create, simd_clone_adjust_return_type,
3407 create_tmp_simd_array, simd_clone_adjust_argument_types,
3408 simd_clone_init_simd_arrays): New functions.
3409 (struct modify_stmt_info): New type.
3410 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3411 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3413 (pass_data_omp_simd_clone): New variable.
3414 (pass_omp_simd_clone): New class.
3415 (make_pass_omp_simd_clone): New function.
3416 * passes.def (pass_omp_simd_clone): New.
3417 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3418 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3419 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3420 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3421 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3422 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3423 * tree-vect-data-refs.c: Include cgraph.h.
3424 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3425 and find_data_references_in_bb, if find_data_references_in_stmt
3426 fails, still allow calls to #pragma omp declare simd functions
3427 in #pragma omp simd loops unless they contain data references among
3428 the call arguments or in lhs.
3429 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3431 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3433 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3434 call_simd_clone_vec_info_type.
3435 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3436 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3437 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3438 tree-scalar-evolution.h and cgraph.h.
3439 (vectorizable_call): Handle calls without lhs. Assert
3440 !stmt_can_throw_internal instead of failing for it. Don't update
3442 (struct simd_call_arg_info): New.
3443 (vectorizable_simd_clone_call): New function.
3444 (vect_transform_stmt): Call it.
3445 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3447 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3448 if cgraph_function_with_gimple_body_p is true.
3450 2013-11-27 Tom de Vries <tom@codesourcery.com>
3451 Marc Glisse <marc.glisse@inria.fr>
3454 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3456 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3457 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3460 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3463 * expr.c (emit_group_store): Don't write past the end of the structure.
3464 (store_bit_field): Fix formatting.
3466 2013-11-27 Richard Biener <rguenther@suse.de>
3468 PR tree-optimization/59288
3469 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3470 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3472 2013-11-27 Marek Polacek <polacek@redhat.com>
3474 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3475 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3476 rather than ADDR_EXPRs.
3478 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3480 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3482 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3484 * gengtype.c (struct seen_tag): New.
3485 (already_seen_tag): New.
3486 (mark_tag_as_seen): New.
3487 (walk_subclasses): Support having multiple subclasses using the
3488 same tag by tracking which tags have already been seen, and using
3489 this to avoid adding duplicate cases to the "switch" statement.
3490 The call to already_seen_tag introduces an O(N^2) when running
3491 gengtype on N, the number of tags, due to the repeated linear
3492 search, but currently max(N) is relatively small (the number of
3493 GSS codes, which is 26).
3494 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3497 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3498 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3499 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3500 GIMPLE_OMP_RETURN happens to share the data layout of
3501 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3502 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3503 underlying GSS value from GSS_OMP_PARALLEL to
3504 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3505 not directly related; they merely share in-memory layout.
3506 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3507 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3509 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3511 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3513 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3514 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3515 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3516 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3519 * gimple.h (gimple_statement_resx): New subclass of
3520 gimple_statement_eh_ctrl, with the invariant that
3521 stmt->code == GIMPLE_RESX.
3522 (gimple_statement_eh_dispatch): New subclass of
3523 gimple_statement_eh_ctrl, with the invariant that
3524 stmt->code == GIMPLE_EH_DISPATH.
3526 (gimple_statement_omp_parallel): The existing class expressed
3527 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3528 are not all related, so it makes more sense for this class to
3529 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3530 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3531 rename the existing gimple_statement_omp_parallel class to...
3532 (gimple_statement_omp_parallel_layout): ...this, expressing
3533 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3534 (gimple_statement_omp_taskreg): New subclass of
3535 gimple_statement_omp_parallel_layout, expressing the invariant
3536 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3537 as used by the various gimple_omp_taskreg_ accessors.
3538 (gimple_statement_omp_parallel): Reintroduce this class, this time
3539 as a subclass of gimple_statement_omp_taskreg to express the
3540 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3541 (gimple_statement_omp_target) New class, subclassing
3542 gimple_statement_omp_parallel_layout, to express the invariant
3543 stmt->code == GIMPLE_OMP_TARGET.
3544 (gimple_statement_omp_task): Update to inherit from
3545 gimple_statement_omp_taskreg rather than
3546 gimple_statement_omp_parallel.
3548 (gimple_statement_omp_single): Rename to...
3549 (gimple_statement_omp_single_layout): ...this, expressing the
3550 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3551 (gimple_statement_omp_single): ...and reintroduce this name as
3552 a subclass of gimple_statement_omp_single_layout, expressing
3553 the invariant that code == GIMPLE_OMP_SINGLE.
3554 (gimple_statement_omp_teams): New class, subclassing
3555 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3557 (gimple_statement_omp_atomic_store): Rename to...
3558 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3559 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3560 (gimple_statement_omp_atomic_store): ...and reintroduce this
3561 name as a subclass of gimple_statement_omp_atomic_store_layout
3562 with code == GIMPLE_OMP_ATOMIC_STORE.
3563 (gimple_statement_omp_return): New class, subclassing
3564 gimple_statement_omp_atomic_store_layout for the code
3567 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3568 (is_a_helper <gimple_statement_resx>::test): New.
3569 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3570 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3571 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3572 (is_a_helper <gimple_statement_omp_return>::test): New.
3573 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3574 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3575 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3577 (is_a_helper <gimple_statement_omp_target>::test): New.
3578 (is_a_helper <gimple_statement_omp_single>::test): Only check
3579 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3580 (is_a_helper <gimple_statement_omp_teams>::test): New.
3582 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3583 (is_a_helper <const gimple_statement_resx>::test): New.
3584 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3585 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3586 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3587 (is_a_helper <const gimple_statement_omp_return>::test): New.
3588 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3589 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3590 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3592 (is_a_helper <const gimple_statement_omp_target>::test): New.
3593 (is_a_helper <const gimple_statement_omp_single>::test): Only
3594 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3595 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3597 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3598 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3599 gimple_statement_omp_atomic_store with downcasts to
3600 gimple_statement_omp_return, thus requiring that the code be
3602 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3603 downcasts to gimple_statement_eh_ctrl with downcasts to
3604 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3605 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3606 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3607 downcasts to gimple_statement_eh_dispatch, thus requiring that
3608 the code be GIMPLE_EH_DISPATCH.
3609 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3610 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3611 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3612 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3613 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3614 gimple_statement_omp_parallel with downcasts to
3615 gimple_statement_omp_taskreg, thus requiring that the code be
3616 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3617 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3618 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3619 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3620 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3621 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3622 gimple_statement_omp_parallel with downcasts to
3623 gimple_statement_omp_target, thus requiring that the code be
3625 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3626 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3627 gimple_statement_omp_single with downcasts to
3628 gimple_statement_omp_teams, thus requiring that the code be
3631 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3632 gimple_statement_resx.
3633 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3634 gimple_statement_eh_dispatch.
3636 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3638 PR tree-optimization/59014
3639 * tree-vrp.c (register_edge_assert_for_1): Don't look
3640 through conversions from non-integral types or through
3641 narrowing conversions.
3644 * config/i386/i386.c (device_alg): Fix up formatting.
3645 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3646 similarly to count && count < epilogue_size_needed. Fix up
3648 * builtins.c (determine_block_size): Fix comment typo.
3651 * ubsan.c (ubsan_source_location): Don't add any location
3652 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3653 (ubsan_create_data): Strip block info from LOC.
3656 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3657 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3659 PR rtl-optimization/59166
3660 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3661 DF_REF_LOC in validate_change call.
3662 (split_live_ranges_for_shrink_wrap): Likewise.
3665 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3666 of references to constant size types in simd loops, defer emitting
3667 initializer for the new_var, emit it later on only if not using
3671 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3672 for the inner loop if collapse_bb is non-NULL.
3673 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3675 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3677 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3678 a constant immediate before force_reg.
3680 2013-11-26 Richard Biener <rguenther@suse.de>
3682 PR tree-optimization/59245
3683 * tree-vrp.c (set_value_range): Assert that we don't have
3684 overflowed constants (but our infinities).
3685 (set_value_range_to_value): Drop all overflow flags.
3686 (vrp_visit_phi_node): Likewise.
3687 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3688 to set a constant range.
3690 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3693 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3694 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3695 for zero_extend case.
3697 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3700 * configure.ac (install_gold_as_default): New. Set to yes for
3701 --disable-ld or --enable-gold=default.
3702 (gcc_cv_ld_gold_srcdir): New.
3703 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3704 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3705 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3706 * configure: Regenerated.
3708 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3709 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3710 (original) [collect-ld && -fuse-ld=bfd]: Set to
3711 $ORIGINAL_LD_BFD_FOR_TARGET.
3712 (original) [collect-ld && -fuse-ld=gold]: Set to
3713 $ORIGINAL_LD_GOLD_FOR_TARGET.
3714 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3715 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3717 2013-11-26 Terry Guo <terry.guo@arm.com>
3719 * config/arm/arm.c (require_pic_register): Handle high pic base
3720 register for thumb-1.
3721 (arm_load_pic_register): Also initialize high pic base register.
3722 * doc/invoke.texi: Update documentation for option -mpic-register.
3724 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3728 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3729 Prefix function names with 'sh_'. Make them non-static.
3730 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3731 sh_max_mov_insn_displacement): Add declarations.
3732 * config/sh/constraints.md (Q): Reject QImode.
3733 (Sdd): Use match_code "mem".
3734 (Snd): Fix erroneous matching of non-memory operands.
3735 * config/sh/predicates.md (short_displacement_mem_operand): New
3737 (general_movsrc_operand): Disallow PC relative QImode loads.
3738 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3739 (*movqi, *movhi): Merge both insns into...
3740 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3741 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3742 on the operand types.
3744 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3746 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3747 Remove unused variable save_config.
3748 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3751 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3753 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3754 using other intrinsics.
3755 (vtbx3_<psu>8): Likewise.
3757 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3759 * config/aarch64/aarch64-builtins.c
3760 (aarch64_types_bsl_p_qualifiers): New.
3761 (aarch64_types_bsl_s_qualifiers): Likewise.
3762 (aarch64_types_bsl_u_qualifiers): Likewise.
3763 (TYPES_BSL_P): Likewise.
3764 (TYPES_BSL_S): Likewise.
3765 (TYPES_BSL_U): Likewise.
3766 (BUILTIN_VALLDIF): Likewise.
3767 (BUILTIN_VDQQH): Likewise.
3768 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3769 * config/aarch64/aarch64-simd.md
3770 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3771 (aarch64_simd_bsl<mode>): Likewise.
3772 * config/aarch64/arm_neon.h
3773 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3774 * config/aarch64/iterators.md (VALLDIF): New.
3775 (Vbtype): Handle more modes.
3777 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3779 * config/aarch64/aarch64-builtins.c
3780 (aarch64_type_qualifiers): Add qualifier_poly.
3781 (aarch64_build_scalar_type): Also build Poly types.
3782 (aarch64_build_vector_type): Likewise.
3783 (aarch64_build_type): Likewise.
3784 (aarch64_build_signed_type): New.
3785 (aarch64_build_unsigned_type): Likewise.
3786 (aarch64_build_poly_type): Likewise.
3787 (aarch64_init_simd_builtins): Also handle Poly types.
3789 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3791 * config/aarch64/aarch64-builtins.c
3792 (VAR1): Use new naming scheme for aarch64_builtins.
3793 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3795 2013-11-26 Richard Biener <rguenther@suse.de>
3797 PR tree-optimization/59287
3798 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3799 Remove no longer necessary special-casing of union accesses.
3801 2013-11-26 Richard Biener <rguenther@suse.de>
3803 * pretty-print.c (output_buffer::~output_buffer): Really
3806 2013-11-25 Jeff Law <law@redhat.com>
3808 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3809 invalidate loop information.
3811 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3813 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3815 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3819 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3821 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3822 previously visited basic blocks before recursing instead of only one
3825 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3827 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3828 * config/aarch64/aarch64-cores.def (cortex-a53):
3829 Use cortexa53 tuning struct.
3831 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3834 * fold-const.c: Include hash-table.h.
3836 2013-11-25 Marek Polacek <polacek@redhat.com>
3839 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3841 2013-11-25 Richard Biener <rguenther@suse.de>
3843 * tree-dfa.c: Remove unused convert.h include.
3845 2013-11-25 Terry Guo <terry.guo@arm.com>
3847 * doc/invoke.texi (-mslow-flash-data): Document new option.
3848 * config/arm/arm.opt (mslow-flash-data): New option.
3849 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3851 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3853 (arm_disable_literal_pool): Declare it.
3854 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3855 (arm_option_override): Handle new option.
3856 (thumb2_legitimate_address_p): Don't allow symbol references when
3857 literal pools are disabled.
3858 (arm_max_const_double_inline_cost): New function.
3859 * config/arm/arm.md (types.md): Include it before ...
3860 (use_literal_pool): New attribute.
3861 (enabled): Use new attribute.
3862 (split pattern): Replace symbol+offset with MOVW/MOVT.
3864 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3867 Revert previous commit.
3869 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3871 * jump.c (reset_insn_reg_label_operand_notes): New function,
3873 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3874 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3876 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3877 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3878 expensive CFG cleanup is called for.
3879 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3880 (cfg_layout_finalize): Delete dead jump tables before re-building
3882 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3883 basic blocks, not before.
3884 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3886 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3887 insns chain of a scheduling extended basic block, they cannot appear
3888 there in cfglayout mode.
3890 2013-11-24 Tobias Burnus <burnus@net-b.de>
3892 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3894 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3896 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3899 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3901 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3903 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3905 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3907 2013-11-23 David Edelson <dje.gcc@gmail.com>
3908 Andrew Dixie <andrewd@gentrack.com>
3911 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3912 (COLLECT_SHARED_FINI_FUNC): Define.
3914 * collect2.c (aix_shared_initname): Declare.
3915 (aix_shared_fininame): Declare.
3916 (symkind): Add SYM_AIXI and SYM_AIXD.
3917 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3918 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3919 (aixlazy_flag): Parse.
3920 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3921 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3923 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3925 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3926 (rs6000_xcoff_select_section): Place decls with stricter alignment
3927 into named sections.
3928 (rs6000_xcoff_unique_section): Allow unique sections for
3929 uninitialized data with strict alignment.
3931 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3933 PR tree-optimization/59154
3934 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3935 rhs1 of a cast and new_op is invariant, fold_convert it.
3936 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3937 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3939 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3942 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3943 Declare as MULTI_ARG_1_SF instruction.
3944 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3945 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3946 from *xop_vmfrcz_<mode>.
3947 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3948 to merge scalar result with __A.
3949 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3952 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3954 * gimplify.h (recalculate_side_effects): Delete.
3955 * gimplify.c (recalculate_side_effects): Make static and add comment.
3957 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3959 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3960 for the destination of a define_peephole2. Likewise register_operand
3961 rather than arith_reg_operand. Remove constraints from
3964 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3966 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3968 (mn10300_store_multiple_operation_p): Declare.
3969 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3971 (mn10300_store_multiple_operation_p): ...this and remove mode
3973 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3976 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3978 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3979 (pop_multiple_operation): Delete.
3980 (analyze_push_multiple_operation): Declare.
3981 (analyze_pop_multiple_operation): Declare.
3982 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3983 (analyze_push_multiple_operation): ...this and remove mode argument.
3984 (pop_multiple_operation): Rename to...
3985 (analyze_pop_multiple_operation): ...this and remove mode argument.
3986 * config/bfin/predicates.md (push_multiple_operation): Define.
3987 (pop_multiple_operation): Likewise.
3989 2013-11-23 Alan Modra <amodra@gmail.com>
3991 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3993 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3996 * common.opt (static-liblsan): Add.
3997 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3999 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4000 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4002 * opts.c (common_handle_option): Handle -fsanitize=leak.
4003 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4004 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4005 (LIBUBSAN_EARLY_SPEC): Remove.
4006 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4007 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4008 (sanitize_spec_function): Handle %sanitize(leak).
4009 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4011 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4012 Jakub Jelinek <jakub@redhat.com>
4014 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4015 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4016 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4017 (ipa_modify_formal_parameters): Adjust caller. Remove
4018 synth_parm_prefix argument. Use operator enum instead of bit fields.
4019 Add assert for properly handling vector of references. Handle
4020 creating brand new parameters.
4021 (ipa_modify_call_arguments): Use operator enum instead of bit
4023 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4025 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4027 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4028 Use operator enum instead of bit fields.
4029 * ipa-prop.h (enum ipa_parm_op): New.
4030 (struct ipa_parm_adjustment): New field op. Rename reduction
4031 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4033 (ipa_modify_formal_parameters): Remove last argument.
4034 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4035 ipa_get_adjustment_candidate): New prototypes.
4036 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4037 enum. Set arg_prefix.
4038 (get_adjustment_for_base): Use operator enum.
4039 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4041 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4042 (ipa_sra_modify_function_body): Same. No longer static.
4043 (sra_ipa_reset_debug_stmts): Use operator enum.
4044 (modify_function): Do not pass prefix argument.
4046 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4048 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4049 (ubsan_pass): Ignore clobber stmts.
4051 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4052 * opts.c (common_handle_option): Add -fsanitize=return.
4053 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4054 or it into SANITIZE_UNDEFINED.
4056 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4057 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4058 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4059 Don't instrument accesses to VAR_DECLs which are known to fit
4060 into their bounds and the vars are known to have shadow bytes
4061 indicating allowed access.
4062 (asan_dynamic_init_call): New function.
4063 (asan_add_global): If vnode->dynamically_initialized,
4064 set __has_dynamic_init to 1 instead of 0.
4065 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4066 * asan.h (asan_dynamic_init_call): New prototype.
4067 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4069 2013-11-22 Martin Jambor <mjambor@suse.cz>
4071 PR rtl-optimization/10474
4072 * ira.c (interesting_dest_for_shprep_1): New function.
4073 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4074 also check parallels.
4076 2013-11-22 Jeff Law <law@redhat.com>
4078 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4079 NULL for RHS, which we used to invalidate equivalences.
4080 (record_temporary_equivalences_from_phis): New bitmap arguments
4081 and a boolean indicating if we have passed a backedge. If we
4082 have passed a backedge, then set the appropriate bit in the
4083 bitmaps for the SRC & DEST of PHIs creating equivalences.
4084 (invalidate_equivalences, dummy_simplify): New functions.
4085 (cond_arg_set_in_b): Remove.
4086 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4087 arguments and a boolean indicating if we have passed a backedge.
4088 If we have passed a backedge, then perform invalidations as needed.
4089 (thread_around_empty_blocks): If we have seen a backedge, then
4090 use the dummy simplify routine.
4091 (thread_through_normal_block): Likewise. Pass bitmaps and
4092 backedge status to children. Do not pessimize so much when
4093 traversing backedges in the CFG.
4094 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4095 If we have seen a backedge, then use the dummy simplify routine.
4096 Do not pessimize so much when traversing backedges.
4098 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4100 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4101 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4103 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4105 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4106 PTA_PCLMUL and PTA_RDRND for Silvermont.
4107 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4110 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4112 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4114 * hooks.h (hook_uint_mode_0): Add Prototype.
4115 * hooks.c (hook_uint_mode_0): New default function.
4116 * target.def (atomic_align_for_mode): New target hook.
4117 * tree.c (build_atomic_base): Add alignment override parameter.
4118 (build_common_tree_nodes): Use atomic alignment override.
4119 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4120 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4122 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4124 * gimple.h: Remove all includes.
4125 (recalculate_side_effects): Move prototype to gimplify.h.
4126 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4127 * gengtype.c (open_base_files): Add gimple.h include list.
4128 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4129 * gimple.c: Adjust include list.
4130 (recalculate_side_effects): Move to gimplify.c.
4131 * gimplify.c: Adjust include list.
4132 (recalculate_side_effects): Relocate from gimple.c.
4133 * alias.c: Add required include files removed from gimple.h.
4135 * builtins.c: Likewise.
4136 * calls.c: Likewise.
4137 * cfgexpand.c: Likewise.
4138 * cfgloop.c: Likewise.
4139 * cfgloopmanip.c: Likewise.
4140 * cgraphbuild.c: Likewise.
4141 * cgraph.c: Likewise.
4142 * cgraphclones.c: Likewise.
4143 * cgraphunit.c: Likewise.
4144 * cilk-common.c: Likewise.
4145 * data-streamer.c: Likewise.
4146 * data-streamer-in.c: Likewise.
4147 * data-streamer-out.c: Likewise.
4149 * dwarf2out.c: Likewise.
4150 * emit-rtl.c: Likewise.
4151 * except.c: Likewise.
4153 * fold-const.c: Likewise.
4154 * function.c: Likewise.
4155 * gimple-builder.c: Likewise.
4156 * gimple-expr.c: Likewise.
4157 * gimple-fold.c: Likewise.
4158 * gimple-iterator.c: Likewise.
4159 * gimple-low.c: Likewise.
4160 * gimple-pretty-print.c: Likewise.
4161 * gimple-ssa-isolate-paths.c: Likewise.
4162 * gimple-ssa-strength-reduction.c: Likewise.
4163 * gimple-streamer-in.c: Likewise.
4164 * gimple-streamer-out.c: Likewise.
4165 * gimple-walk.c: Likewise.
4166 * gimplify-me.c: Likewise.
4167 * graphite-blocking.c: Likewise.
4168 * graphite.c: Likewise.
4169 * graphite-clast-to-gimple.c: Likewise.
4170 * graphite-dependences.c: Likewise.
4171 * graphite-interchange.c: Likewise.
4172 * graphite-optimize-isl.c: Likewise.
4173 * graphite-poly.c: Likewise.
4174 * graphite-scop-detection.c: Likewise.
4175 * graphite-sese-to-poly.c: Likewise.
4176 * internal-fn.c: Likewise.
4178 * ipa-cp.c: Likewise.
4179 * ipa-devirt.c: Likewise.
4180 * ipa-inline-analysis.c: Likewise.
4181 * ipa-inline.c: Likewise.
4182 * ipa-profile.c: Likewise.
4183 * ipa-prop.c: Likewise.
4184 * ipa-pure-const.c: Likewise.
4185 * ipa-reference.c: Likewise.
4186 * ipa-split.c: Likewise.
4187 * ipa-utils.c: Likewise.
4188 * langhooks.c: Likewise.
4189 * lto-cgraph.c: Likewise.
4190 * lto-compress.c: Likewise.
4191 * lto-opts.c: Likewise.
4192 * lto-section-in.c: Likewise.
4193 * lto-section-out.c: Likewise.
4194 * lto-streamer.c: Likewise.
4195 * lto-streamer-in.c: Likewise.
4196 * lto-streamer-out.c: Likewise.
4197 * omp-low.c: Likewise.
4198 * opts-global.c: Likewise.
4199 * passes.c: Likewise.
4200 * predict.c: Likewise.
4201 * profile.c: Likewise.
4204 * stor-layout.c: Likewise.
4205 * symtab.c: Likewise.
4206 * targhooks.c: Likewise.
4207 * toplev.c: Likewise.
4208 * tracer.c: Likewise.
4209 * trans-mem.c: Likewise.
4210 * tree-affine.c: Likewise.
4212 * tree-call-cdce.c: Likewise.
4213 * tree-cfg.c: Likewise.
4214 * tree-cfgcleanup.c: Likewise.
4215 * tree-chrec.c: Likewise.
4216 * tree-complex.c: Likewise.
4217 * tree-data-ref.c: Likewise.
4218 * tree-dfa.c: Likewise.
4219 * tree-eh.c: Likewise.
4220 * tree-emutls.c: Likewise.
4221 * tree-if-conv.c: Likewise.
4222 * tree-inline.c: Likewise.
4223 * tree-into-ssa.c: Likewise.
4224 * tree-loop-distribution.c: Likewise.
4225 * tree-nested.c: Likewise.
4226 * tree-nrv.c: Likewise.
4227 * tree-object-size.c: Likewise.
4228 * tree-outof-ssa.c: Likewise.
4229 * tree-parloops.c: Likewise.
4230 * tree-phinodes.c: Likewise.
4231 * tree-predcom.c: Likewise.
4232 * tree-pretty-print.c: Likewise.
4233 * tree-profile.c: Likewise.
4234 * tree-scalar-evolution.c: Likewise.
4235 * tree-sra.c: Likewise.
4236 * tree-ssa-address.c: Likewise.
4237 * tree-ssa-alias.c: Likewise.
4238 * tree-ssa.c: Likewise.
4239 * tree-ssa-ccp.c: Likewise.
4240 * tree-ssa-coalesce.c: Likewise.
4241 * tree-ssa-copy.c: Likewise.
4242 * tree-ssa-copyrename.c: Likewise.
4243 * tree-ssa-dce.c: Likewise.
4244 * tree-ssa-dom.c: Likewise.
4245 * tree-ssa-dse.c: Likewise.
4246 * tree-ssa-forwprop.c: Likewise.
4247 * tree-ssa-ifcombine.c: Likewise.
4248 * tree-ssa-live.c: Likewise.
4249 * tree-ssa-loop.c: Likewise.
4250 * tree-ssa-loop-ch.c: Likewise.
4251 * tree-ssa-loop-im.c: Likewise.
4252 * tree-ssa-loop-ivcanon.c: Likewise.
4253 * tree-ssa-loop-ivopts.c: Likewise.
4254 * tree-ssa-loop-manip.c: Likewise.
4255 * tree-ssa-loop-niter.c: Likewise.
4256 * tree-ssa-loop-prefetch.c: Likewise.
4257 * tree-ssa-loop-unswitch.c: Likewise.
4258 * tree-ssa-math-opts.c: Likewise.
4259 * tree-ssanames.c: Likewise.
4260 * tree-ssa-operands.c: Likewise.
4261 * tree-ssa-phiopt.c: Likewise.
4262 * tree-ssa-phiprop.c: Likewise.
4263 * tree-ssa-pre.c: Likewise.
4264 * tree-ssa-propagate.c: Likewise.
4265 * tree-ssa-reassoc.c: Likewise.
4266 * tree-ssa-sccvn.c: Likewise.
4267 * tree-ssa-sink.c: Likewise.
4268 * tree-ssa-strlen.c: Likewise.
4269 * tree-ssa-structalias.c: Likewise.
4270 * tree-ssa-tail-merge.c: Likewise.
4271 * tree-ssa-ter.c: Likewise.
4272 * tree-ssa-threadedge.c: Likewise.
4273 * tree-ssa-threadupdate.c: Likewise.
4274 * tree-ssa-uncprop.c: Likewise.
4275 * tree-ssa-uninit.c: Likewise.
4276 * tree-stdarg.c: Likewise.
4277 * tree-streamer.c: Likewise.
4278 * tree-streamer-in.c: Likewise.
4279 * tree-streamer-out.c: Likewise.
4280 * tree-switch-conversion.c: Likewise.
4281 * tree-tailcall.c: Likewise.
4282 * tree-vect-data-refs.c: Likewise.
4283 * tree-vect-generic.c: Likewise.
4284 * tree-vect-loop.c: Likewise.
4285 * tree-vect-loop-manip.c: Likewise.
4286 * tree-vectorizer.c: Likewise.
4287 * tree-vect-patterns.c: Likewise.
4288 * tree-vect-slp.c: Likewise.
4289 * tree-vect-stmts.c: Likewise.
4290 * tree-vrp.c: Likewise.
4292 * ubsan.c: Likewise.
4293 * value-prof.c: Likewise.
4294 * varpool.c: Likewise.
4295 * var-tracking.c: Likewise.
4296 * vtable-verify.c: Likewise.
4297 * config/darwin.c: Likewise.
4298 * config/aarch64/aarch64-builtins.c: Likewise.
4299 * config/aarch64/aarch64.c: Likewise.
4300 * config/alpha/alpha.c: Likewise.
4301 * config/i386/i386.c: Likewise.
4302 * config/i386/winnt.c: Likewise.
4303 * config/ia64/ia64.c: Likewise.
4304 * config/m32c/m32c.c: Likewise.
4305 * config/mep/mep.c: Likewise.
4306 * config/mips/mips.c: Likewise.
4307 * config/rs6000/rs6000.c: Likewise.
4308 * config/s390/s390.c: Likewise.
4309 * config/sh/sh.c: Likewise.
4310 * config/sparc/sparc.c: Likewise.
4311 * config/spu/spu.c: Likewise.
4312 * config/stormy16/stormy16.c: Likewise.
4313 * config/tilegx/tilegx.c: Likewise.
4314 * config/tilepro/tilepro.c: Likewise.
4315 * config/xtensa/xtensa.c: Likewise.
4317 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4320 * arm.md (negdi_extendsidi): Fix invalid split.
4322 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4324 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4325 (vmov_n_f64): Likewise.
4326 (vmov_n_p8): Likewise.
4327 (vmov_n_p16): Likewise.
4328 (vmov_n_s8): Likewise.
4329 (vmov_n_s16): Likewise.
4330 (vmov_n_s32): Likewise.
4331 (vmov_n_s64): Likewise.
4332 (vmov_n_u8): Likewise.
4333 (vmov_n_u16): Likewise.
4334 (vmov_n_u32): Likewise.
4335 (vmov_n_u64): Likewise.
4336 (vmovq_n_f32): Likewise.
4337 (vmovq_n_f64): Likewise.
4338 (vmovq_n_p8): Likewise.
4339 (vmovq_n_p16): Likewise.
4340 (vmovq_n_s8): Likewise.
4341 (vmovq_n_s16): Likewise.
4342 (vmovq_n_s32): Likewise.
4343 (vmovq_n_s64): Likewise.
4344 (vmovq_n_u8): Likewise.
4345 (vmovq_n_u16): Likewise.
4346 (vmovq_n_u32): Likewise.
4347 (vmovq_n_u64): Likewise.
4349 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4351 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4352 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4353 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4354 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4355 and also change to float UNSPEC.
4356 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4357 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4358 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4359 result access for big-endian.
4360 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4361 intrinsics for big-endian.
4362 * config/aarch64/iterators.md (VDQV): Add V2DI.
4364 (vp): New mode attribute.
4366 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4368 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4369 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4372 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4374 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4375 for big-endian element order.
4376 (aarch64_simd_vec_setv2di): Likewise.
4377 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4378 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4379 (vec_extract): Expand using aarch64_get_lane.
4380 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4382 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4384 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4385 and stores to be ABI compliant.
4387 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4389 * input.h (input_line): Remove.
4390 (input_filename): Likewise.
4391 (in_system_header): Likewise.
4392 * tree.h (EXPR_LOC_OR_HERE): Remove.
4393 * config/bfin/bfin.c (output_file_start): Remove use of
4394 input_filename macro.
4395 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4396 * gimplify.c (internal_get_tmp_var): Likewise.
4397 EXPR_LOC_OR_HERE macro.
4398 (shortcut_cond_expr): Likewise.
4399 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4400 use of input_filename macro.
4401 * tree.c (get_file_function_name): Likewise.
4403 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4405 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4407 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4409 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4410 (same sized) elements even if the type of the CONSTRUCTOR has
4411 vector mode and target is a REG.
4413 2013-11-22 Richard Biener <rguenther@suse.de>
4416 2013-11-21 Richard Biener <rguenther@suse.de>
4418 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4419 nb_iterations_upper_bound by one.
4421 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4423 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4426 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4427 core-avx-i, core-avx2 and slm.
4429 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4431 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4433 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4435 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4436 (stzx_24_<mode>): Likewise mra_operand.
4438 2013-11-22 Jeff Law <law@redhat.com>
4440 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4441 (thread_block_1): Do not cancel jump threads which go from
4442 inside a loop, through the header, then back inside the loop.
4443 (bb_ends_with_multiway_branch): New function.
4444 (thread_through_all_blocks): Handle threading cases which start
4445 in a loop through the loop header to a point in the loop.
4447 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4448 jump thread path properly.
4450 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4452 * vec.h (auto_vec): New class.
4453 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4454 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4455 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4456 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4457 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4458 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4459 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4460 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4461 appropriate instead of vec for local variables.
4463 2013-11-21 Teresa Johnson <tejohnson@google.com>
4466 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4467 not understood by old_insns_match_p.
4469 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4471 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4472 little endian change.
4473 (vec_pack_sfix_trunc_v2df): Likewise.
4474 (vec_pack_ufix_trunc_v2df): Likewise.
4475 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4476 double checking of endianness.
4478 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4480 * tree-vect-generic.c (optimize_vector_constructor): New function.
4481 (expand_vector_operations_1): Call it.
4483 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4485 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4486 ix86_zero_extend_to_Pmode where appropriate.
4487 (ix86_expand_builtin): Ditto.
4489 2013-11-21 Cary Coutant <ccoutant@google.com>
4491 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4492 (add_linkage_name): Don't add linkage name for -g1.
4493 (decls_for_scope): Process subblocks for -g1.
4494 (dwarf2out_source_line): Output line tables for -g1.
4495 (dwarf2out_finish): Likewise.
4496 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4497 unused scopes for -g1.
4498 * opts.c (common_handle_option): Handle -g same as -g2.
4499 * doc/invoke.texi: Update description for -g1.
4501 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4503 * doc/extend.texi: Document htm builtins.
4505 2013-11-21 Jeff Law <law@redhat.com>
4507 PR tree-optimization/59221
4508 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4509 temporary equivalences when threading through joiner blocks.
4511 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4513 PR rtl-optimization/55950
4514 * real.c (real_sqrt): Remove function.
4515 * real.h (real_sqrt): Remove prototype.
4516 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4517 SQRT using real_sqrt.
4519 2013-11-21 Richard Biener <rguenther@suse.de>
4521 PR tree-optimization/59058
4522 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4523 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4524 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4525 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4526 (NITERS_KNOWN_P): Fold into ...
4527 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4528 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4529 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4530 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4531 (vect_do_peeling_for_alignment): Re-use precomputed niter
4532 instead of re-emitting it.
4533 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4534 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4535 * tree-vect-loop.c (vect_get_loop_niters): Use
4536 number_of_latch_executions.
4537 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4538 (vect_analyze_loop_form): Simplify.
4539 (vect_analyze_loop_operations): Move epilogue peeling code ...
4540 (vect_analyze_loop_2): ... here and adjust it to compute
4541 LOOP_VINFO_PEELING_FOR_NITER.
4542 (vect_estimate_min_profitable_iters): Use
4543 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4544 (vect_build_loop_niters): Emit on the preheader.
4545 (vect_generate_tmps_on_preheader): Likewise.
4546 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4547 of recomputing it. Adjust.
4549 2013-11-21 Richard Biener <rguenther@suse.de>
4551 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4552 LOC_LINE): Remove wrappers and fix all users.
4553 (struct _loop_vec_info): Remove loop_line_number member.
4554 (LOOP_VINFO_LOC): Remove.
4555 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4556 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4559 2013-11-21 Richard Biener <rguenther@suse.de>
4561 * tree-ssa-forwprop.c (simplify_vce): New function.
4562 (ssa_forward_propagate_and_combine): Call it.
4564 2013-11-21 Richard Biener <rguenther@suse.de>
4566 * tree-vect-loop-manip.c (vect_build_loop_niters,
4567 vect_generate_tmps_on_preheader): Move ...
4568 * tree-vect-loop.c (vect_build_loop_niters,
4569 vect_generate_tmps_on_preheader): ... here and simplify.
4570 (vect_transform_loop): Call them here and pass down results
4572 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4573 Get niter variables from caller.
4574 (vect_do_peeling_for_alignment): Likewise.
4575 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4576 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4579 2013-11-21 Richard Biener <rguenther@suse.de>
4581 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4582 nb_iterations_upper_bound by one.
4584 2013-11-21 Richard Biener <rguenther@suse.de>
4586 PR tree-optimization/59058
4587 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4588 (build_size_arg_loc): Apply niter adjustment here.
4589 (generate_memset_builtin): Adjust.
4590 (generate_memcpy_builtin): Likewise.
4591 (classify_partition): Do not use number_of_exit_cond_executions
4592 but record whether niter needs to be adjusted.
4594 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4596 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4599 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4602 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4603 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4604 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4605 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4606 sh_optimize_sett_clrt pass.o to extra_objs.
4608 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4610 * cfg.c (dump_edge_info): Remove redundant comment.
4611 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4612 EXIT_BLOCK_PTR in comment.
4613 (try_optimize_cfg): Likewise.
4614 * cfgrtl.c (last_bb_in_partition): Likewise.
4615 * cgraph.c (cgraph_node_cannot_return): Likewise.
4616 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4617 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4618 * ipa-split.c (consider_split): Likewise.
4619 * profile.c (find_spanning_tree): Likewise.
4620 * sched-int.h (common_sched_info_def.add_block): Likewise.
4621 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4622 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4623 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4624 in comments to now removed ENTRY_BLOCK_PTR macro.
4625 (tree_forwarder_block_p): Reword reference in comment to
4627 * tree-inline.c (copy_cfg_body): Reword references in comments to
4628 now removed ENTRY_BLOCK_PTR macro.
4629 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4630 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4631 a comma to the comment to clarify the meaning.
4633 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4635 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4637 (free_gimplify_stack): Add prototype.
4638 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4639 (struct gimplify_ctx): Relocate here.
4640 (gimplify_ctxp): Make static.
4641 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4642 list of struct gimplify_ctx.
4643 (push_gimplify_context): Add default parameters and allocate a struct
4645 (pop_gimplify_context): Free a struct back to the pool.
4646 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4647 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4648 use a local 'struct gimplify_ctx'.
4649 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4650 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4652 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4653 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4654 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4655 lower_omp_teams, execute_lower_omp): Likewise.
4656 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4657 * tree-inline.c (optimize_inline_calls): Likewise.
4659 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4661 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4662 (vsx_extract_<mode>): Likewise.
4663 (*vsx_extract_<mode>_one_le): New LE variant on
4664 *vsx_extract_<mode>_zero.
4665 (vsx_extract_v4sf): Adjust for little endian.
4667 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4669 PR rtl-optimization/59133
4670 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4672 (lra_create_new_reg_with_unique_value): Pass new argument value.
4673 (lra_emit_add, lra_emit_move): Ditto.
4674 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4675 (change_class): Rename to lra_change_class. Move to lra-int.h.
4676 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4678 (process_addr_reg, process_addr): Ditto.
4679 (curr_insn_transform): Ditto. Add check on old pseudo for
4681 * lra-int.h (lra_get_regno_hard_regno): Move below.
4682 (lra_change_class): Renamed change_class from lra.c.
4684 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4686 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4687 the children of a NULL pointer.
4689 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4691 * lra.c (lra): Set lra_in_progress before check_rtl call.
4692 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4693 adding clobber regs when LRA is running.
4695 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4697 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4698 restriction for ISA_MIPS32R2.
4699 (ISA_HAS_LXC1_SXC1): New macro.
4700 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4701 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4702 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4703 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4704 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4705 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4706 (*<ANYF:storex>_<P:mode>): Likewise.
4708 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4710 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4711 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4712 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4713 * config/mips/mips.md (recip_condition): Remove mode attribute.
4714 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4716 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4718 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4721 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4722 Make sure neg2_ovf is set before being used.
4724 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4726 * plugin.def: Add comment about register_callback and
4727 invoke_plugin_callbacks_full.
4729 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4730 Handle PLUGIN_INCLUDE_FILE event.
4732 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4734 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4735 allow subregs of TDmode in FPRs of smaller size in little-endian.
4736 (rs6000_split_multireg_move): When splitting an access to TDmode
4737 in FPRs, do not use simplify_gen_subreg.
4739 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4742 * real.c: Remove comment about decimal string conversion and
4744 (real_from_string): Use MPFR to convert nonzero decimal constant
4747 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4749 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4750 endianness of the D registers for the legacy encodings.
4752 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4754 PR rtl-optimization/54300
4755 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4756 outputs in a single-set are killed from the value chains.
4758 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4760 * cgraph.h (varpool_node): Add need_bounds_init field.
4761 * lto-cgraph.c (lto_output_varpool_node): Output
4762 need_bounds_init value.
4763 (input_varpool_node): Read need_bounds_init value.
4764 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4766 2013-11-20 Jan Hubicka <jh@suse.cz>
4768 * opts.c (finish_options): Imply -ffat-lto-objects with
4769 -fno-use-linker-plugin.
4770 * common.opt (fuse-linker-plugin): Add var.
4772 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4774 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4775 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4776 (gen_type_die_with_usage): Skip pointer bounds.
4777 (dwarf2out_global_decl): Likewise.
4779 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4781 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4784 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4787 * config/i386/i386.c (ix86_option_override_internal): Add missed
4788 argument prefix for 'ix86_fpmath'.
4789 * config/i386/ssemath.h: Add missed definition of
4790 TARGET_FPMATH_DEFAULT_P macros.
4792 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4793 Mike Stump <mikestump@comcast.net>
4794 Richard Sandiford <rdsandiford@googlemail.com>
4796 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4797 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4798 tree_fits_shwi_p or tree_fits_uhwi_p.
4799 * builtins.c (fold_builtin_powi): Likewise.
4800 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4802 * dbxout.c (dbxout_symbol): Likewise.
4803 * expr.c (expand_expr_real_1): Likewise.
4804 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4805 (fold_binary_loc): Likewise.
4806 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4807 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4808 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4809 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4810 * stor-layout.c (compute_record_mode): Likewise.
4811 * tree-cfg.c (verify_expr): Likewise.
4812 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4813 * tree-pretty-print.c (dump_array_domain): Likewise.
4814 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4815 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4816 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4817 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4818 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4819 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4820 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4821 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4822 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4823 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4824 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4825 (create_variable_info_for_1): Likewise.
4826 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4827 (vect_verify_datarefs_alignment): Likewise.
4828 (vect_analyze_data_ref_accesses): Likewise.
4829 (vect_prune_runtime_alias_test_list): Likewise.
4830 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4832 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4834 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4835 overflow. Use tree_to_shwi.
4837 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4839 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4840 HOST_WIDE_INTs when folding (x >> c) << c.
4842 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4843 Dominik Vogt <vogt@linux.vnet.ibm.com>
4845 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4846 int comparisons with an out of range condition code.
4847 (s390_optimize_nonescaping_tx): Skip empty BBs.
4848 Generate the new tbegin RTX when removing the FPR clobbers (with
4850 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4851 result before doing the retry calculations.
4852 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4854 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4855 the TDB setting part of an tbegin.
4856 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4857 ("tx_assist"): Set unused argument to an immediate zero instead of
4858 loading zero into a GPR and pass it as argument.
4859 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4860 Remove inline and related attributes.
4861 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4862 (__TM_is_illegal, __TM_is_footprint_exceeded)
4863 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4865 2013-11-20 Richard Biener <rguenther@suse.de>
4868 * lto-opts.c (lto_write_options): Write defaults only if
4869 they were not explicitely specified. Also write
4870 -ffp-contract default.
4871 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4873 (run_gcc): Pass through -ffp-contract.
4875 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4877 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4879 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4881 * config/aarch64/aarch64-builtins.c
4882 (aarch64_simd_itype): Remove.
4883 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4884 (VAR1): Use qualifiers.
4885 (aarch64_build_scalar_type): New.
4886 (aarch64_build_vector_type): Likewise.
4887 (aarch64_build_type): Likewise.
4888 (aarch64_init_simd_builtins): Refactor, remove special cases,
4889 consolidate main loop.
4890 (aarch64_simd_expand_args): Likewise.
4892 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4895 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4897 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4899 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4901 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4903 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4904 to "vec<>" instances.
4905 (build_pretty_printer): Register the vec<>* prettyprinter.
4907 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4909 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4910 (GdbSubprinter.handles_type): New.
4911 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4912 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4913 (GdbPrettyPrinters.add_printer): Remove in favor of...
4914 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4915 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4916 (GdbPrettyPrinters.__call__): Update search for subprinter
4917 to use handles_type method.
4918 (build_pretty_printer): Update registration of subprinters to
4919 use the new API above, supporting multiple spelling of each type,
4920 and allowing for future regex-based subprinters.
4922 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4924 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4925 V16QI vector splat case for little endian.
4927 2013-11-19 Jeff Law <law@redhat.com>
4929 * tree-ssa-threadedge.c (thread_across_edge): After threading
4930 through a joiner, allow threading a normal block requiring duplication.
4932 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4933 jump threading requests that would muck up the loop structures.
4935 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4936 * tree-ssa-threadupdate.h: Likewise.
4938 2013-11-19 Mike Stump <mikestump@comcast.net>
4940 * gdbinit.in: Add pmz to print out mpz values.
4942 2013-11-20 Jan Hubicka <jh@suse.cz>
4944 * common.opt (ffat-lto-objects): Disable by default.
4945 * doc/invoke.texi (fat-lto-objects): Update documentation.
4946 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4948 2013-11-19 Martin Jambor <mjambor@suse.cz>
4950 PR rtl-optimization/59099
4951 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4953 (ira): Move init_reg_equiv and call to
4954 split_live_ranges_for_shrink_wrap up, remove analyses around call
4955 to find_moveable_pseudos.
4957 2013-11-20 Alan Modra <amodra@gmail.com>
4959 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4960 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4961 to strict alignment on older processors when little-endian.
4962 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4965 2013-11-19 Teresa Johnson <tejohnson@google.com>
4967 * common/config/i386/i386-common.c: Enable
4968 -freorder-blocks-and-partition at -O2 and up for x86.
4969 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4970 * opts.c (finish_options): Only warn if
4971 -freorder-blocks-and-partition was set on command line.
4973 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4975 * final.c (final_scan_insn): Emit a label for the split
4976 cold function part. Label name is formed by suffixing
4977 the original function name with "cold".
4979 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4981 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4982 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4983 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4984 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4985 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4987 (EXIT_BLOCK_PTR): Likewise.
4988 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4989 (FOR_ALL_BB_FN): Update for renaming of
4990 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4992 * cfg.c (init_flow): Likewise.
4993 (check_bb_profile): Likewise.
4994 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4995 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4996 * cfghooks.c (account_profile_record): Likewise.
4997 * cfgloop.c (init_loops_structure): Likewise.
4998 * cgraphbuild.c (record_eh_tables): Likewise.
4999 (compute_call_stmt_bb_frequency): Likewise.
5000 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5001 * lto-streamer-in.c (input_cfg): Likewise.
5002 * predict.c (maybe_hot_frequency_p): Likewise.
5003 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5004 * tree-inline.c (initialize_cfun): Likewise.
5005 (copy_cfg_body): Likewise.
5006 (copy_body): Likewise.
5007 (tree_function_versioning): Likewise.
5009 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5010 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5011 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5012 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5013 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5014 (connect_traces): Likewise.
5015 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5016 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5017 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5019 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5021 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5022 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5023 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5024 (rotate_loop): Likewise.
5025 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5026 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5028 (alloc_aux_for_edges): Likewise.
5029 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5030 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5032 (compact_blocks): Likewise.
5033 (clear_edges): Likewise.
5034 * cfganal.c (single_pred_before_succ_order): Remove usage of
5035 ENTRY_BLOCK_PTR macro.
5036 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5037 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5038 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5039 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5040 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5042 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5043 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5045 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5046 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5047 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5048 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5049 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5050 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5052 (print_edge_list): Likewise.
5053 (create_edge_list): Likewise.
5054 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5055 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5057 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5059 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5060 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5061 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5062 (try_optimize_cfg): Likewise.
5063 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5064 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5065 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5066 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5067 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5068 (try_forward_edges): Likewise.
5069 (try_simplify_condjump): Likewise.
5070 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5071 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5072 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5073 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5075 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5076 (expand_gimple_tailcall): Likewise.
5077 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5078 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5079 (tidy_fallthru_edges): Likewise.
5080 (verify_flow_info): Likewise.
5081 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5082 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5083 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5084 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5085 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5086 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5087 (get_loop_body_in_dom_order): Likewise.
5088 (get_loop_body): Likewise.
5089 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5090 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5091 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5093 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5094 (fix_bb_placement): Likewise.
5095 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5096 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5097 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5098 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5100 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5101 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5102 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5103 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5105 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5106 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5107 (fixup_reorder_chain): Likewise.
5108 (relink_block_chain): Likewise.
5109 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5110 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5111 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5112 (force_one_exit_fallthru): Likewise.
5113 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5115 (rtl_verify_edges): Likewise.
5116 (commit_edge_insertions): Likewise.
5117 (commit_one_edge_insertion): Likewise.
5118 (rtl_split_edge): Likewise.
5119 (force_nonfallthru_and_redirect): Likewise.
5120 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5121 (skip_insns_after_block): Likewise.
5122 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5124 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5125 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5127 (contains_no_active_insn_p): Likewise.
5128 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5129 (entry_of_function): Likewise.
5130 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5131 (fixup_new_cold_bb): Likewise.
5132 (patch_jump_insn): Likewise.
5133 (try_redirect_by_replacing_jump): Likewise.
5134 (block_label): Likewise.
5135 (could_fall_through): Likewise.
5136 (can_fallthru): Likewise.
5137 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5138 ENTRY_BLOCK_PTR macro.
5139 (rebuild_cgraph_edges): Likewise.
5140 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5141 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5142 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5143 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5144 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5145 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5146 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5147 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5149 (reg_nonzero_bits_for_combine): Likewise.
5150 (set_nonzero_bits_and_sign_copies): Likewise.
5151 (combine_instructions): Likewise.
5152 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5154 (bypass_conditional_jumps): Likewise.
5155 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5156 (find_implicit_sets): Likewise.
5157 (cprop_jump): Likewise.
5158 * cse.c (cse_cc_succs): Likewise.
5159 (cse_find_path): Likewise.
5160 * df-problems.c (df_lr_confluence_0): Likewise.
5161 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5162 ENTRY_BLOCK_PTR macro.
5163 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5164 * dominance.c (iterate_fix_dominators): Remove usage of
5165 ENTRY_BLOCK_PTR macro.
5166 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5167 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5168 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5170 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5172 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5174 * domwalk.c (cmp_bb_postorder): Likewise.
5175 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5176 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5178 (sjlj_emit_function_enter): Likewise.
5179 * final.c (compute_alignments): Likewise.
5180 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5181 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5182 (reposition_prologue_and_epilogue_notes): Remove usage of
5183 EXIT_BLOCK_PTR macro.
5184 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5186 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5187 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5188 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5189 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5190 (compute_code_hoist_vbeinout): Likewise.
5191 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5192 (pre_expr_reaches_here_p_work): Likewise.
5193 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5194 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5196 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5197 ENTRY_BLOCK_PTR macro.
5198 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5200 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5201 ENTRY_BLOCK_PTR macro.
5202 * graphite-scop-detection.c (build_scops): Likewise.
5203 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5204 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5205 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5207 (unlink_bb_notes): Likewise.
5208 (create_check_block_twin): Likewise.
5209 (init_before_recovery): Likewise.
5210 (sched_extend_bb): Likewise.
5211 (priority): Likewise.
5212 * hw-doloop.c (reorder_loops): Likewise.
5213 (discover_loop): Likewise.
5214 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5215 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5216 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5217 (block_has_only_trap): Likewise.
5218 (cond_exec_find_if_block): Likewise.
5219 (merge_if_block): Likewise.
5220 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5221 ENTRY_BLOCK_PTR macro.
5222 (record_modified): Likewise.
5223 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5224 EXIT_BLOCK_PTR macro.
5225 (local_pure_const): Likewise.
5226 * ipa-split.c (split_function): Remove uses of macros:
5227 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5228 (find_split_points): Likewise.
5229 (consider_split): Likewise.
5230 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5231 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5232 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5233 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5234 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5235 ENTRY_BLOCK_PTR macro.
5236 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5237 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5238 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5239 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5240 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5242 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5244 (compute_farthest): Likewise.
5245 (compute_available): Likewise.
5246 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5247 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5249 (compute_earliest): Likewise.
5250 (compute_antinout_edge): Likewise.
5251 * loop-iv.c (simplify_using_initial_values): Remove usage of
5252 ENTRY_BLOCK_PTR macro.
5253 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5255 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5257 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5259 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5260 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5261 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5263 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5265 * lto-streamer-out.c (output_cfg): Likewise.
5266 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5268 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5269 * mode-switching.c (optimize_mode_switching): Likewise.
5270 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5271 * modulo-sched.c (rest_of_handle_sms): Likewise.
5272 (canon_loop): Likewise.
5273 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5274 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5275 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5276 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5278 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5279 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5280 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5281 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5282 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5283 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5284 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5285 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5286 (gimple_predict_edge): Likewise.
5287 (probably_never_executed): Likewise.
5288 * profile.c (find_spanning_tree): Remove uses of macros:
5289 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5290 (branch_prob): Likewise.
5291 (compute_branch_probabilities): Likewise.
5292 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5293 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5294 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5295 (set_bb_counts): Likewise.
5296 (correct_negative_edge_counts): Likewise.
5297 (get_exec_counts): Likewise.
5298 (instrument_values): Likewise.
5299 (instrument_edges): Likewise.
5300 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5302 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5303 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5304 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5305 (reg_to_stack): Likewise.
5306 * regs.h (REG_N_SETS): Likewise.
5307 * reload.c (find_dummy_reload): Likewise.
5308 (combine_reloads): Likewise.
5309 (push_reload): Likewise.
5310 * reload1.c (has_nonexceptional_receiver): Remove usage of
5311 EXIT_BLOCK_PTR macro.
5312 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5314 (find_basic_block): Likewise.
5315 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5316 (schedule_ebbs): Likewise.
5317 * sched-int.h (sel_sched_p): Likewise.
5318 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5320 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5321 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5323 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5324 (extend_rgns): Likewise.
5325 (find_single_block_region): Likewise.
5326 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5327 ENTRY_BLOCK_PTR macro.
5328 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5329 (sel_create_recovery_block): Likewise.
5330 (bb_ends_ebb_p): Likewise.
5331 (sel_bb_end): Likewise.
5332 (sel_bb_head): Likewise.
5333 (free_lv_sets): Likewise.
5334 (init_lv_sets): Likewise.
5335 (tidy_control_flow): Likewise.
5336 (maybe_tidy_empty_bb): Likewise.
5337 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5338 (_succ_iter_start): Likewise.
5339 (sel_bb_empty_or_nop_p): Likewise.
5340 (get_loop_exit_edges_unique_dests): Likewise.
5341 (inner_loop_header_p): Likewise.
5342 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5343 (find_block_for_bookkeeping): Likewise.
5344 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5345 (insert_store): Likewise.
5346 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5347 ENTRY_BLOCK_PTR macro.
5348 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5349 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5350 (gate_tm_init): Likewise.
5351 (tm_region_init): Likewise.
5352 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5353 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5354 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5355 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5357 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5358 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5360 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5362 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5364 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5366 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5367 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5368 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5369 (build_gimple_cfg): Likewise.
5370 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5371 (gimple_can_merge_blocks_p): Likewise.
5372 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5373 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5374 * tree-complex.c (update_parameter_components): Remove usage of
5375 ENTRY_BLOCK_PTR macro.
5376 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5377 EXIT_BLOCK_PTR macro.
5378 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5379 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5380 (delete_unreachable_blocks_update_callgraph): Likewise.
5381 (initialize_cfun): Likewise.
5382 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5383 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5384 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5385 * tree-into-ssa.c (update_ssa): Likewise.
5386 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5387 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5388 (rewrite_into_ssa): Likewise.
5389 (rewrite_debug_stmt_uses): Likewise.
5390 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5391 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5392 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5393 ENTRY_BLOCK_PTR macro.
5394 * tree-scalar-evolution.h (block_before_loop): Likewise.
5395 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5396 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5398 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5400 (propagate_dereference_distances): Remove uses of macros:
5401 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5402 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5404 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5405 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5406 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5407 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5408 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5409 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5410 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5411 (mark_control_dependent_edges_necessary): Remove uses of macros:
5412 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5413 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5414 ENTRY_BLOCK_PTR macro.
5415 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5416 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5417 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5418 (calculate_live_on_exit): Likewise.
5419 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5420 (loe_visit_block): Likewise.
5421 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5422 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5423 (live_on_entry): Likewise.
5424 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5425 EXIT_BLOCK_PTR macro.
5426 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5427 ENTRY_BLOCK_PTR macro.
5428 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5429 (bound_difference): Likewise.
5430 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5431 of EXIT_BLOCK_PTR macro.
5432 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5433 of ENTRY_BLOCK_PTR macro.
5434 * tree-ssa-math-opts.c (register_division_in): Likewise.
5435 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5436 * tree-ssa-pre.c (compute_avail): Likewise.
5437 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5438 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5439 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5440 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5441 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5443 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5444 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5445 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5446 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5447 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5448 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5449 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5450 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5451 (find_pdom): Likewise.
5452 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5453 * tree-stdarg.c (reachable_at_most_once): Likewise.
5454 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5455 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5456 (eliminate_tail_call): Likewise.
5457 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5459 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5460 * var-tracking.c (vt_initialize): Remove uses of macros:
5461 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5462 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5463 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5464 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5466 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5468 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5469 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5470 of EXIT_BLOCK_PTR macro.
5471 * config/arm/arm.c (require_pic_register): Remove usage of
5472 ENTRY_BLOCK_PTR macro.
5473 (arm_r3_live_at_start_p): Likewise.
5474 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5475 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5476 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5477 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5478 ENTRY_BLOCK_PTR macro.
5479 * config/i386/i386.c (ix86_count_insn): Likewise.
5480 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5481 (ix86_pad_short_function): Likewise.
5482 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5483 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5484 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5485 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5486 (ix86_expand_epilogue): Likewise.
5487 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5488 (ia64_expand_prologue): Likewise.
5490 2013-11-19 Catherine Moore <clm@codesourcery.com>
5492 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5493 * config/mips/mips.opt (mfix-rm7000): New option.
5494 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5495 * config/mips/mips.c (mips_reorg_process_insns): Disable
5496 noreorder for TARGET_FIX_RM7000.
5498 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5500 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5502 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5504 * config/arm/arm.c (arm_new_rtx_costs):
5505 Handle narrow mode add-shifts properly.
5506 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5507 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5510 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5512 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5514 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5516 * config/rs6000/vector.md ("mov<mode>"): Do not call
5517 rs6000_emit_le_vsx_move to move into or out of GPRs.
5518 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5519 source and destination are not GPR hard regs.
5521 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5523 * basic-block.h (n_edges_for_function): Rename macro to...
5524 (n_edges_for_fn): ...this.
5525 (n_edges): Eliminate macro as work towards making uses of
5528 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5529 to "n_edges_for_fn".
5531 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5532 (clear_edges): Likewise.
5533 (free_edge): Likewise.
5534 * cfghooks.c (dump_flow_info): Likewise.
5535 * cprop.c (is_too_expensive): Likewise.
5536 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5537 * gcse.c (is_too_expensive): Likewise.
5538 (prune_insertions_deletions): Likewise.
5539 * mcf.c (create_fixup_graph): Likewise.
5540 * sched-rgn.c (haifa_find_rgns): Likewise.
5541 * tree-cfg.c (gimple_dump_cfg): Likewise.
5542 * var-tracking.c (variable_tracking_main_1): Likewise.
5544 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5546 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5549 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5551 * config/aarch64/aarch64.md
5552 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5554 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5556 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5558 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5560 * varasm.c (align_variable): Give error instead of warning for
5561 unsupported alignment.
5562 (assemble_noswitch_variable): Likewise.
5564 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5566 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5569 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5571 * loop-doloop.c (doloop_optimize_loops): Remove unused
5572 loop iterator argument from FOR_EACH_LOOP.
5574 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5576 Convert gimple types from a union to C++ inheritance.
5577 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5578 * coretypes.h (union gimple_statement_d): Remove declaration.
5579 (gimple): Convert from being a "union gimple_statement_d *"
5580 to a "struct gimple_statement_base *".
5581 (const_gimple): Likewise (with "const").
5582 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5583 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5584 * gimple-pretty-print.c (debug): Change parameter from a
5585 "gimple_statement_d &" to a "gimple_statement_base &".
5586 (debug): Change parameter from a "gimple_statement_d *" to
5587 a "gimple_statement_base *".
5588 * gimple-pretty-print.h (debug): Update declarations as above.
5589 * gimple.c (gimple_alloc_stat): Update for renaming of
5590 ggc_alloc_cleared_gimple_statement_d_stat to
5591 ggc_alloc_cleared_gimple_statement_stat.
5592 * gimple.h: Include "is-a.h" for use by is_a_helper
5593 specializations in followup autogenerated patch.
5594 (struct gimple statement_base): Make this type usable as a base
5595 class by adding "desc", "tag" and "variable_size" to GTY, thus
5596 using opting-in to gengtype's support for simple inheritance.
5597 (gimple_statement_with_ops_base): Convert to a subclass of
5598 gimple_statement_base, dropping initial "gsbase" field. Note that
5599 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5600 (gimple_statement_with_ops): Convert to a subclass of
5601 gimple_statement_with_ops_base, dropping initial "opbase" field.
5602 Add tag value to GTY marking. Update marking of op field to
5603 reflect how num_ops field is accessed via inheritance.
5604 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5605 gimple_statement_with_ops_base, dropping initial "opbase" field.
5606 Add tag value to GTY marking.
5607 (gimple_statement_with_memory_ops): Convert to a subclass of
5608 public gimple_statement_with_memory_ops_base, dropping initial
5609 "membase" field. Add tag value to GTY marking. Update marking
5610 of op field to reflect how num_ops field is accessed via inheritance.
5611 (gimple_statement_call): Analogous changes that also update the
5612 marking of the "u" union.
5613 (gimple_statement_omp): Convert to a subclass of
5614 gimple_statement_base, dropping initial "gsbase" field, adding
5615 tag value to GTY marking.
5616 (gimple_statement_bind): Likewise.
5617 (gimple_statement_catch): Likewise.
5618 (gimple_statement_eh_filter): Likewise.
5619 (gimple_statement_eh_else): Likewise.
5620 (gimple_statement_eh_mnt): Likewise.
5621 (gimple_statement_phi): Likewise.
5622 (gimple_statement_eh_ctrl): Likewise.
5623 (gimple_statement_try): Likewise.
5624 (gimple_statement_wce): Likewise.
5625 (gimple_statement_asm): Convert to a subclass of
5626 gimple_statement_with_memory_ops_base, dropping initial
5627 "membase" field, adding tag value to GTY marking, and updating
5628 marking of op field.
5629 (gimple_statement_omp_critical): Convert to a subclass of
5630 gimple_statement_omp, dropping initial "omp" field, adding tag
5631 value to GTY marking.
5632 (gimple_statement_omp_for): Likewise.
5633 (gimple_statement_omp_parallel): Likewise.
5634 (gimple_statement_omp_task): Convert to a subclass of
5635 gimple_statement_omp_parallel, dropping initial "par" field,
5636 adding tag value to GTY marking.
5637 (gimple_statement_omp_sections): Convert to a subclass of
5638 gimple_statement_omp, dropping initial "omp" field, adding
5639 tag value to GTY marking.
5640 (gimple_statement_omp_continue): Convert to a subclass of
5641 gimple_statement_base, dropping initial "gsbase" field, adding
5642 tag value to GTY marking.
5643 (gimple_statement_omp_single): Convert to a subclass of
5644 gimple_statement_omp, dropping initial "omp" field, adding
5645 tag value to GTY marking.
5646 (gimple_statement_omp_atomic_load): Convert to a subclass of
5647 gimple_statement_base, dropping initial "gsbase" field, adding
5648 tag value to GTY marking.
5649 (gimple_statement_omp_atomic_store): Convert to a subclass of
5650 gimple_statement_base, dropping initial "gsbase" field, adding
5651 tag value to GTY marking.
5652 (gimple_statement_transaction): Convert to a subclass of
5653 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5654 field, adding tag value to GTY marking.
5655 (union gimple_statement_d): Remove.
5656 * system.h (CONST_CAST_GIMPLE): Update to use
5657 "struct gimple_statement_base *" rather than
5658 "union gimple_statement_d *".
5659 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5660 gimple_statement_d to gimple_statement_base.
5662 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5663 (gimple_set_use_ops): Port from union to usage of as_a.
5664 (gimple_set_vuse): Likewise.
5665 (gimple_set_vdef): Likewise.
5666 (gimple_call_internal_fn): Port from union to a static_cast,
5667 given that the type has already been asserted.
5668 (gimple_omp_body_ptr): Port from unchecked union usage to
5670 (gimple_omp_set_body): Likewise.
5672 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5673 gimple types to a true class hierarchy.
5674 (update_call_edge_frequencies): Likewise.
5675 (gsi_insert_seq_nodes_before): Likewise.
5676 (gsi_insert_seq_nodes_after): Likewise.
5677 (gsi_split_seq_after): Likewise.
5678 (gsi_set_stmt): Likewise.
5679 (gsi_split_seq_before): Likewise.
5680 (gsi_remove): Likewise.
5681 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5682 (gsi_next): Likewise.
5683 (gsi_prev): Likewise.
5684 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5685 * gimple-ssa.h (gimple_vuse_op): Likewise.
5686 (gimple_vdef_op): Likewise.
5687 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5688 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5689 * gimple.c (gimple_set_code): Likewise.
5690 (gimple_alloc_stat): Likewise.
5691 (gimple_set_subcode): Likewise.
5692 (gimple_build_call_internal_1): Likewise.
5693 (gimple_check_failed): Likewise.
5694 (gimple_call_flags): Likewise.
5695 (gimple_set_bb): Likewise.
5696 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5697 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5698 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5699 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5700 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5701 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5702 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5703 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5704 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5705 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5706 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5707 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5708 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5709 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5710 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5711 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5712 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5713 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5714 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5715 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5716 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5717 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5718 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5719 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5720 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5721 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5723 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5725 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5727 (is_a_helper <const gimple_statement_omp_atomic_store>
5728 (const_gimple)): Likewise.
5729 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5731 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5733 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5735 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5737 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5739 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5741 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5743 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5744 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5746 (gimple_seq_last): Update for conversion of gimple types to a true
5748 (gimple_seq_set_last): Likewise.
5749 (gimple_code): Likewise.
5750 (gimple_bb): Likewise.
5751 (gimple_block): Likewise.
5752 (gimple_set_block): Likewise.
5753 (gimple_location): Likewise.
5754 (gimple_location_ptr): Likewise.
5755 (gimple_set_location): Likewise.
5756 (gimple_no_warning_p): Likewise.
5757 (gimple_set_no_warning): Likewise.
5758 (gimple_set_visited): Likewise.
5759 (gimple_visited_p): Likewise.
5760 (gimple_set_plf): Likewise.
5761 (gimple_plf): Likewise.
5762 (gimple_set_uid): Likewise.
5763 (gimple_uid): Likewise.
5764 (gimple_init_singleton): Likewise.
5765 (gimple_modified_p): Likewise.
5766 (gimple_set_modified): Likewise.
5767 (gimple_expr_code): Likewise.
5768 (gimple_has_volatile_ops): Likewise.
5769 (gimple_set_has_volatile_ops): Likewise.
5770 (gimple_omp_subcode): Likewise.
5771 (gimple_omp_set_subcode): Likewise.
5772 (gimple_omp_return_set_nowait): Likewise.
5773 (gimple_omp_section_set_last): Likewise.
5774 (gimple_omp_parallel_set_combined_p): Likewise.
5775 (gimple_omp_atomic_set_need_value): Likewise.
5776 (gimple_omp_atomic_set_seq_cst): Likewise.
5777 (gimple_num_ops): Likewise.
5778 (gimple_set_num_ops): Likewise.
5779 (gimple_assign_nontemporal_move_p): Likewise.
5780 (gimple_assign_set_nontemporal_move): Likewise.
5781 (gimple_assign_rhs_code): Likewise.
5782 (gimple_assign_set_rhs_code): Likewise.
5783 (gimple_call_internal_p): Likewise.
5784 (gimple_call_with_bounds_p): Likewise.
5785 (gimple_call_set_with_bounds): Likewise.
5786 (gimple_call_set_tail): Likewise.
5787 (gimple_call_tail_p): Likewise.
5788 (gimple_call_set_return_slot_opt): Likewise.
5789 (gimple_call_return_slot_opt_p): Likewise.
5790 (gimple_call_set_from_thunk): Likewise.
5791 (gimple_call_from_thunk_p): Likewise.
5792 (gimple_call_set_va_arg_pack): Likewise.
5793 (gimple_call_va_arg_pack_p): Likewise.
5794 (gimple_call_set_nothrow): Likewise.
5795 (gimple_call_set_alloca_for_var): Likewise.
5796 (gimple_call_alloca_for_var_p): Likewise.
5797 (gimple_call_copy_flags): Likewise.
5798 (gimple_cond_code): Likewise.
5799 (gimple_cond_set_code): Likewise.
5800 (gimple_cond_make_false): Likewise.
5801 (gimple_cond_make_true): Likewise.
5802 (gimple_asm_volatile_p): Likewise.
5803 (gimple_asm_set_volatile): Likewise.
5804 (gimple_asm_set_input): Likewise.
5805 (gimple_asm_input_p): Likewise.
5806 (gimple_try_kind): Likewise.
5807 (gimple_try_set_kind): Likewise.
5808 (gimple_try_catch_is_cleanup): Likewise.
5809 (gimple_try_set_catch_is_cleanup): Likewise.
5810 (gimple_wce_cleanup_eh_only): Likewise.
5811 (gimple_wce_set_cleanup_eh_only): Likewise.
5812 (gimple_debug_bind_p): Likewise.
5813 (gimple_debug_source_bind_p): Likewise.
5814 (gimple_omp_for_set_kind): Likewise.
5815 (gimple_omp_for_set_combined_p): Likewise.
5816 (gimple_omp_for_set_combined_into_p): Likewise.
5817 (gimple_omp_target_set_kind): Likewise.
5818 (gimple_transaction_subcode): Likewise.
5819 (gimple_transaction_set_subcode): Likewise.
5820 (gimple_predict_predictor): Likewise.
5821 (gimple_predict_set_predictor): Likewise.
5822 (gimple_predict_outcome): Likewise.
5823 (gimple_predict_set_outcome): Likewise.
5824 (gimple_transaction_set_label): Likewise.
5825 (gimple_transaction_set_body): Likewise.
5826 (gimple_transaction_label_ptr): Likewise.
5827 (gimple_transaction_label): Likewise.
5828 (gimple_transaction_body_ptr): Likewise.
5829 (gimple_omp_continue_set_control_use): Likewise.
5830 (gimple_omp_continue_control_use_ptr): Likewise.
5831 (gimple_omp_continue_control_use): Likewise.
5832 (gimple_omp_continue_set_control_def): Likewise.
5833 (gimple_omp_continue_control_def_ptr): Likewise.
5834 (gimple_omp_continue_control_def): Likewise.
5835 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5836 (gimple_omp_atomic_load_rhs): Likewise.
5837 (gimple_omp_atomic_load_set_rhs): Likewise.
5838 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5839 (gimple_omp_atomic_load_lhs): Likewise.
5840 (gimple_omp_atomic_load_set_lhs): Likewise.
5841 (gimple_omp_atomic_store_val_ptr): Likewise.
5842 (gimple_omp_atomic_store_val): Likewise.
5843 (gimple_omp_atomic_store_set_val): Likewise.
5844 (gimple_omp_for_cond): Likewise.
5845 (gimple_omp_for_set_cond): Likewise.
5846 (gimple_omp_sections_set_control): Likewise.
5847 (gimple_omp_sections_control_ptr): Likewise.
5848 (gimple_omp_sections_control): Likewise.
5849 (gimple_omp_sections_set_clauses): Likewise.
5850 (gimple_omp_sections_clauses_ptr): Likewise.
5851 (gimple_omp_sections_clauses): Likewise.
5852 (gimple_omp_teams_set_clauses): Likewise.
5853 (gimple_omp_teams_clauses_ptr): Likewise.
5854 (gimple_omp_teams_clauses): Likewise.
5855 (gimple_omp_target_set_data_arg): Likewise.
5856 (gimple_omp_target_data_arg_ptr): Likewise.
5857 (gimple_omp_target_data_arg): Likewise.
5858 (gimple_omp_target_set_child_fn): Likewise.
5859 (gimple_omp_target_child_fn_ptr): Likewise.
5860 (gimple_omp_target_child_fn): Likewise.
5861 (gimple_omp_target_set_clauses): Likewise.
5862 (gimple_omp_target_clauses_ptr): Likewise.
5863 (gimple_omp_target_clauses): Likewise.
5864 (gimple_omp_single_set_clauses): Likewise.
5865 (gimple_omp_single_clauses_ptr): Likewise.
5866 (gimple_omp_single_clauses): Likewise.
5867 (gimple_omp_task_set_arg_align): Likewise.
5868 (gimple_omp_task_arg_align_ptr): Likewise.
5869 (gimple_omp_task_arg_align): Likewise.
5870 (gimple_omp_task_set_arg_size): Likewise.
5871 (gimple_omp_task_arg_size_ptr): Likewise.
5872 (gimple_omp_task_arg_size): Likewise.
5873 (gimple_omp_task_set_copy_fn): Likewise.
5874 (gimple_omp_task_copy_fn_ptr): Likewise.
5875 (gimple_omp_task_copy_fn): Likewise.
5876 (gimple_omp_task_set_data_arg): Likewise.
5877 (gimple_omp_task_data_arg_ptr): Likewise.
5878 (gimple_omp_task_data_arg): Likewise.
5879 (gimple_omp_task_set_child_fn): Likewise.
5880 (gimple_omp_task_child_fn_ptr): Likewise.
5881 (gimple_omp_task_child_fn): Likewise.
5882 (gimple_omp_task_set_clauses): Likewise.
5883 (gimple_omp_task_clauses_ptr): Likewise.
5884 (gimple_omp_task_clauses): Likewise.
5885 (gimple_omp_parallel_set_data_arg): Likewise.
5886 (gimple_omp_parallel_data_arg_ptr): Likewise.
5887 (gimple_omp_parallel_data_arg): Likewise.
5888 (gimple_omp_parallel_set_child_fn): Likewise.
5889 (gimple_omp_parallel_child_fn_ptr): Likewise.
5890 (gimple_omp_parallel_child_fn): Likewise.
5891 (gimple_omp_parallel_set_clauses): Likewise.
5892 (gimple_omp_parallel_clauses_ptr): Likewise.
5893 (gimple_omp_parallel_clauses): Likewise.
5894 (gimple_omp_for_set_pre_body): Likewise.
5895 (gimple_omp_for_pre_body_ptr): Likewise.
5896 (gimple_omp_for_set_incr): Likewise.
5897 (gimple_omp_for_incr_ptr): Likewise.
5898 (gimple_omp_for_incr): Likewise.
5899 (gimple_omp_for_set_final): Likewise.
5900 (gimple_omp_for_final_ptr): Likewise.
5901 (gimple_omp_for_final): Likewise.
5902 (gimple_omp_for_set_initial): Likewise.
5903 (gimple_omp_for_initial_ptr): Likewise.
5904 (gimple_omp_for_initial): Likewise.
5905 (gimple_omp_for_set_index): Likewise.
5906 (gimple_omp_for_index_ptr): Likewise.
5907 (gimple_omp_for_index): Likewise.
5908 (gimple_omp_for_collapse): Likewise.
5909 (gimple_omp_for_set_clauses): Likewise.
5910 (gimple_omp_for_clauses_ptr): Likewise.
5911 (gimple_omp_for_clauses): Likewise.
5912 (gimple_omp_critical_set_name): Likewise.
5913 (gimple_omp_critical_name_ptr): Likewise.
5914 (gimple_omp_critical_name): Likewise.
5915 (gimple_eh_dispatch_set_region): Likewise.
5916 (gimple_eh_dispatch_region): Likewise.
5917 (gimple_resx_set_region): Likewise.
5918 (gimple_resx_region): Likewise.
5919 (gimple_phi_set_arg): Likewise.
5920 (gimple_phi_arg): Likewise.
5921 (gimple_phi_set_result): Likewise.
5922 (gimple_phi_result_ptr): Likewise.
5923 (gimple_phi_result): Likewise.
5924 (gimple_phi_num_args): Likewise.
5925 (gimple_phi_capacity): Likewise.
5926 (gimple_wce_set_cleanup): Likewise.
5927 (gimple_wce_cleanup_ptr): Likewise.
5928 (gimple_try_set_cleanup): Likewise.
5929 (gimple_try_set_eval): Likewise.
5930 (gimple_try_cleanup_ptr): Likewise.
5931 (gimple_try_eval_ptr): Likewise.
5932 (gimple_eh_else_set_e_body): Likewise.
5933 (gimple_eh_else_set_n_body): Likewise.
5934 (gimple_eh_else_e_body_ptr): Likewise.
5935 (gimple_eh_else_n_body_ptr): Likewise.
5936 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5937 (gimple_eh_must_not_throw_fndecl): Likewise.
5938 (gimple_eh_filter_set_failure): Likewise.
5939 (gimple_eh_filter_set_types): Likewise.
5940 (gimple_eh_filter_failure_ptr): Likewise.
5941 (gimple_eh_filter_types_ptr): Likewise.
5942 (gimple_eh_filter_types): Likewise.
5943 (gimple_catch_set_handler): Likewise.
5944 (gimple_catch_set_types): Likewise.
5945 (gimple_catch_handler_ptr): Likewise.
5946 (gimple_catch_types_ptr): Likewise.
5947 (gimple_catch_types): Likewise.
5948 (gimple_asm_string): Likewise.
5949 (gimple_asm_set_label_op): Likewise.
5950 (gimple_asm_label_op): Likewise.
5951 (gimple_asm_set_clobber_op): Likewise.
5952 (gimple_asm_clobber_op): Likewise.
5953 (gimple_asm_set_output_op): Likewise.
5954 (gimple_asm_output_op_ptr): Likewise.
5955 (gimple_asm_output_op): Likewise.
5956 (gimple_asm_set_input_op): Likewise.
5957 (gimple_asm_input_op_ptr): Likewise.
5958 (gimple_asm_input_op): Likewise.
5959 (gimple_asm_nlabels): Likewise.
5960 (gimple_asm_nclobbers): Likewise.
5961 (gimple_asm_noutputs): Likewise.
5962 (gimple_asm_ninputs): Likewise.
5963 (gimple_bind_set_block): Likewise.
5964 (gimple_bind_block): Likewise.
5965 (gimple_bind_add_seq): Likewise.
5966 (gimple_bind_add_stmt): Likewise.
5967 (gimple_bind_set_body): Likewise.
5968 (gimple_bind_body_ptr): Likewise.
5969 (gimple_bind_append_vars): Likewise.
5970 (gimple_bind_set_vars): Likewise.
5971 (gimple_bind_vars): Likewise.
5972 (gimple_call_clobber_set): Likewise.
5973 (gimple_call_use_set): Likewise.
5974 (gimple_call_set_internal_fn): Likewise.
5975 (gimple_call_set_fntype): Likewise.
5976 (gimple_call_fntype): Likewise.
5977 (gimple_omp_return_lhs_ptr): Likewise.
5978 (gimple_omp_return_lhs): Likewise.
5979 (gimple_omp_return_set_lhs): Likewise.
5980 (gimple_omp_taskreg_set_data_arg): Likewise.
5981 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5982 (gimple_omp_taskreg_data_arg): Likewise.
5983 (gimple_omp_taskreg_set_child_fn): Likewise.
5984 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5985 (gimple_omp_taskreg_child_fn): Likewise.
5986 (gimple_omp_taskreg_set_clauses): Likewise.
5987 (gimple_omp_taskreg_clauses_ptr): Likewise.
5988 (gimple_omp_taskreg_clauses): Likewise.
5989 (gimple_vuse): Likewise.
5990 (gimple_vdef): Likewise.
5991 (gimple_vuse_ptr): Likewise.
5992 (gimple_vdef_ptr): Likewise.
5993 * tree-inline.c (copy_debug_stmt): Likewise.
5994 * tree-phinodes.c (make_phi_node): Likewise.
5996 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5997 (is_a_helper <gimple_statement_with_ops>::test): New.
5998 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5999 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6001 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6002 access to use of as_a.
6003 * gimple.c (gimple_build_asm_1): Likewise.
6004 (gimple_build_try): Likewise. Also, return a specific subclass
6005 rather than just gimple.
6006 (gimple_build_resx): Port from union access to use of as_a.
6007 (gimple_build_eh_dispatch): Likewise.
6008 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6009 now that gengtype no longer provides a typed allocator function.
6010 (gimple_copy): Likewise.
6011 * gimple.h (gimple_build_try): Return a specific subclass rather
6013 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6014 with subclass access by making use of new return type of
6016 * tree-phinodes.c: (allocate_phi_node): Return a
6017 "gimple_statement_phi *" rather than just a gimple.
6018 (resize_phi_node): Likewise.
6019 (make_phi_node): Replace union access with subclass access by
6020 making use of new return type of allocate_phi_node.
6021 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6022 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6024 (remove_phi_args): Update for change to remove_phi_arg_num.
6026 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6027 code field to reflect inheritance, rather than embedding of
6028 the base gimple type.
6030 2013-11-19 Richard Biener <rguenther@suse.de>
6032 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6033 and destructor and make fel_next a member function.
6034 (fel_next): Transform into ...
6035 (loop_iterator::next): ... this.
6036 (fel_init): Transform into ...
6037 (loop_iterator::loop_iterator): ... this.
6038 (loop_iterator::~loop_iterator): New.
6039 (FOR_EACH_LOOP): Remove loop-iterator argument.
6040 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6041 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6042 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6043 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6044 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6045 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6046 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6047 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6048 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6049 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6050 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6051 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6052 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6053 FOR_EACH_LOOP_BREAK with break.
6055 2013-11-19 Richard Biener <rguenther@suse.de>
6057 PR tree-optimization/59164
6058 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6060 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6061 whether we can create an epilogue loop to reflect thecases where
6064 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6066 * graphite-sese-to-poly.c: Include expr.h.
6068 2013-11-19 Richard Biener <rguenther@suse.de>
6071 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6072 loads into stmts that may clobber it.
6074 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6076 * cgraphunit.c (symtab_terminator): New variable.
6077 (queued_nodes): Renamed from first. Use symtab_terminator as
6079 (analyze_functions): Adjust accordingly.
6080 (cgraph_process_new_functions): Return void.
6081 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6083 2013-11-19 Marek Polacek <polacek@redhat.com>
6085 * opts.c (common_handle_option): Add -fsanitize=null option.
6086 Turn off -fdelete-null-pointer-checks option when doing the
6087 NULL pointer checking.
6088 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6089 * tree-pass.h (make_pass_ubsan): Declare.
6090 (make_pass_sanopt): Declare.
6091 * timevar.def (TV_TREE_UBSAN): New timevar.
6092 * passes.def: Add pass_sanopt and pass_ubsan.
6093 * ubsan.h (ubsan_null_ckind): New enum.
6094 (ubsan_mismatch_data): New struct.
6095 (ubsan_expand_null_ifn): Declare.
6096 (ubsan_create_data): Adjust declaration.
6097 (ubsan_type_descriptor): Likewise.
6098 * asan.c: Include "ubsan.h".
6099 (pass_data_sanopt): New pass.
6100 (execute_sanopt): New function.
6101 (gate_sanopt): Likewise.
6102 (make_pass_sanopt): Likewise.
6103 (class pass_sanopt): New class.
6104 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6105 gimple-iterator.h and cfgloop.h.
6106 (PROB_VERY_UNLIKELY): Define.
6107 (tree_type_map_hash): New function.
6108 (ubsan_type_descriptor): Add new parameter.
6109 Improve type name generation.
6110 (ubsan_create_data): Add new parameter. Add pointer data into
6112 (ubsan_expand_null_ifn): New function.
6113 (instrument_member_call): Likewise.
6114 (instrument_mem_ref): Likewise.
6115 (instrument_null): Likewise.
6116 (ubsan_pass): Likewise.
6117 (gate_ubsan): Likewise.
6118 (make_pass_ubsan): Likewise.
6119 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6120 (class pass_ubsan): New class.
6121 (pass_data_ubsan): New pass.
6122 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6123 * internal-fn.c (expand_UBSAN_NULL): New function.
6124 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6125 even when !flag_toplevel_reorder.
6126 * internal-fn.def (UBSAN_NULL): New.
6128 2013-11-19 Jan Hubicka <jh@suse.cz>
6130 * cgraph.c (cgraph_create_indirect_edge): Use
6131 get_polymorphic_call_info.
6132 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6133 maybe_in_construction and maybe_derived_type.
6134 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6135 (ipa_dummy_polymorphic_call_context): New global var.
6136 (possible_polymorphic_call_targets): Add context paramter.
6137 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6138 (possible_polymorphic_call_target_p): Likewise.
6139 (get_polymorphic_call_info): New function.
6140 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6141 (add_type_duplicate): Remove forgotten debug output.
6142 (method_class_type): Add sanity check.
6143 (maybe_record_node): Add FINALP parameter.
6144 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6145 by info by get_binfo_at_offset.
6146 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6147 parameters; pass them to record-binfo.
6148 (polymorphic_call_target_d): Add context and FINAL.
6149 (polymorphic_call_target_hasher::hash): Hash context.
6150 (polymorphic_call_target_hasher::equal): Compare context.
6151 (free_polymorphic_call_targets_hash):
6152 (get_class_context): New function.
6153 (contains_type_p): New function.
6154 (get_polymorphic_call_info): New function.
6155 (walk_bases): New function.
6156 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6157 (dump_possible_polymorphic_call_targets): Dump context.
6158 (possible_polymorphic_call_target_p): Add context.
6159 (update_type_inheritance_graph): Update comment.s
6160 (ipa_set_jf_known_type): Assert that compoentn type is known.
6161 (ipa_note_param_call): Do not tamper with offsets.
6162 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6164 (update_indirect_edges_after_inlining): Likewise.
6165 (ipa_write_indirect_edge_info): Stream new fields.
6166 (ipa_read_indirect_edge_info): Stream in new fields.
6168 2013-11-19 Jan Hubicka <jh@suse.cz>
6170 * tree-pretty-print.c (dump_generic_node): Print class type of
6173 2013-11-19 Joey Ye <joey.ye@arm.com>
6175 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6176 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6178 * config/arm/arm.c (arm_option_override): By default disable
6179 -marm-pic-data-is-text-relative.
6180 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6181 (arm_assemble_integer): Likewise.
6182 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6183 New macro to initialize -marm-pic-data-is-text-relative.
6185 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6187 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6188 (address_cost_data): New field.
6189 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6190 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6192 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6194 * config/aarch64/aarch64.md: Remove v8type from all insns.
6196 2013-11-19 Richard Biener <rguenther@suse.de>
6198 PR tree-optimization/57517
6199 * tree-predcom.c (combinable_refs_p): Verify the combination
6200 is always executed when the refs are.
6202 2013-11-19 Jeff Law <law@redhat.com>
6204 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6205 (copy_phi_arg_into_existing_phi): New function.
6206 (any_remaining_duplicated_blocks): Likewise.
6207 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6208 blocks on a jump threading path.
6210 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6211 thread through a joiner which has the latch edge.
6213 2013-11-19 Jan Hubicka <jh@suse.cz>
6215 * md.texi (setmem): Document new parameter.
6216 * optabs.c (maybe_gen_insn): Support 9 operands.
6217 * builtins.c (determine_block_size): Add probable_max_size;
6218 support anti-ranges.
6219 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6221 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6222 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6224 * expr.h (emit_block_move_hints, clear_storage_hints,
6225 set_storage_via_setmem): Update prototype.
6226 * i386.md (setmem, movmem patterns): Add 9th operand.
6227 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6228 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6229 argument; pass it to decide_alg.
6231 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6233 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6234 (n_basic_blocks_for_fn): ...this.
6236 (n_basic_blocks): Eliminate macro as work towards making uses of
6239 * cfgloop.c (init_loops_structure): Update for renaming of
6240 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6241 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6242 * ipa-utils.c (ipa_merge_profiles): Likewise.
6243 * lto-streamer-in.c (make_new_block): Likewise.
6244 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6245 (dump_function_to_file): Likewise.
6247 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6248 macro with "n_basic_blocks_for_fn (cfun)".
6249 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6250 (duplicate_computed_gotos): Likewise.
6251 (reorder_basic_blocks): Likewise.
6252 * bt-load.c (augment_live_range): Likewise.
6253 * cfg.c (expunge_block): Likewise.
6254 (compact_blocks): Likewise.
6255 * cfganal.c (single_pred_before_succ_order): Likewise.
6256 (compute_idf): Likewise.
6257 (flow_dfs_compute_reverse_init): Likewise.
6258 (pre_and_rev_post_order_compute): Likewise.
6259 (pre_and_rev_post_order_compute_fn): Likewise.
6260 (inverted_post_order_compute): Likewise.
6261 (post_order_compute): Likewise.
6262 (print_edge_list): Likewise.
6263 (find_unreachable_blocks): Likewise.
6264 (mark_dfs_back_edges): Likewise.
6265 * cfgcleanup.c (try_optimize_cfg): Likewise.
6266 (try_forward_edges): Likewise.
6267 * cfghooks.c (dump_flow_info): Likewise.
6268 * cfgloop.c (verify_loop_structure): Likewise.
6269 (get_loop_body): Likewise.
6270 (flow_loops_find): Likewise.
6271 * cfgloopmanip.c (add_loop): Likewise.
6272 (remove_path): Likewise.
6273 (find_path): Likewise.
6274 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6275 (rtl_verify_bb_layout): Likewise.
6276 (entry_of_function): Likewise.
6277 (rtl_create_basic_block): Likewise.
6278 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6279 * cprop.c (one_cprop_pass): Likewise.
6280 (is_too_expensive): Likewise.
6281 * df-core.c (df_compute_cfg_image): Likewise.
6282 (df_compact_blocks): Likewise.
6283 (df_worklist_dataflow_doublequeue): Likewise.
6284 * dominance.c (calculate_dominance_info): Likewise.
6285 (calc_dfs_tree): Likewise.
6286 (calc_dfs_tree_nonrec): Likewise.
6287 (init_dom_info): Likewise.
6288 * domwalk.c (cmp_bb_postorder): Likewise.
6289 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6290 (generate_setjmp_warnings): Likewise.
6291 * fwprop.c (build_single_def_use_links): Likewise.
6292 * gcse.c (is_too_expensive): Likewise.
6293 (one_code_hoisting_pass): Likewise.
6294 (one_pre_gcse_pass): Likewise.
6295 * graphite.c (graphite_initialize): Likewise.
6296 * haifa-sched.c (haifa_sched_init): Likewise.
6297 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6298 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6299 * ira-build.c (ira_build): Likewise.
6300 * lcm.c (compute_nearerout): Likewise.
6301 (compute_available): Likewise.
6302 (compute_laterin): Likewise.
6303 (compute_antinout_edge): Likewise.
6304 * lra-lives.c (lra_create_live_ranges): Likewise.
6305 * lra.c (has_nonexceptional_receiver): Likewise.
6306 * mcf.c (create_fixup_graph): Likewise.
6307 * profile.c (branch_prob): Likewise.
6308 * reg-stack.c (convert_regs_2): Likewise.
6309 * regrename.c (regrename_analyze): Likewise.
6310 * reload1.c (has_nonexceptional_receiver): Likewise.
6311 * reorg.c (dbr_schedule): Likewise.
6312 * sched-deps.c (sched_deps_init): Likewise.
6313 * sched-ebb.c (schedule_ebbs): Likewise.
6314 * sched-rgn.c (extend_regions): Likewise.
6315 (schedule_insns): Likewise.
6316 (sched_rgn_init): Likewise.
6317 (extend_rgns): Likewise.
6318 (haifa_find_rgns): Likewise.
6319 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6320 (sel_recompute_toporder): Likewise.
6321 * sel-sched.c (run_selective_scheduling): Likewise.
6322 * store-motion.c (one_store_motion_pass): Likewise.
6323 (remove_reachable_equiv_notes): Likewise.
6324 * tracer.c (tracer): Likewise.
6325 (tail_duplicate): Likewise.
6326 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6327 (dump_cfg_stats): Likewise.
6328 (gimple_dump_cfg): Likewise.
6329 (create_bb): Likewise.
6330 (build_gimple_cfg): Likewise.
6331 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6332 * tree-inline.c (optimize_inline_calls): Likewise.
6333 (fold_marked_statements): Likewise.
6334 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6335 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6336 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6337 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6338 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6339 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6340 * tree-ssa-pre.c (do_pre): Likewise.
6341 (init_pre): Likewise.
6342 (compute_avail): Likewise.
6343 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6344 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6345 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6346 (init_worklist): Likewise.
6347 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6348 * var-tracking.c (variable_tracking_main_1): Likewise.
6349 (vt_find_locations): Likewise.
6350 (vt_stack_adjustments): Likewise.
6351 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6352 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6354 2013-11-18 Jan Hubicka <jh@suse.cz>
6356 * profile.c (compute_branch_probabilities): Do not sanity check
6359 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6361 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6363 * fold-const.c (fold_single_bit_test_into_sign_test)
6364 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6366 2013-11-18 Teresa Johnson <tejohnson@google.com>
6368 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6369 cfglayout after bb reordering.
6370 * passes.def: Move compgotos before bb reordering since it goes into
6373 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6375 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6376 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6378 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6379 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6380 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6381 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6382 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6383 Remove all_lto_gen_passes.
6384 * passes.c (pass_manager::dump_passes): Remove its use.
6385 (pass_manager::register_pass): Likewise.
6386 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6387 (pass_manager::pass_manager): Don't initialize or use it.
6388 (write_lto): New static function.
6389 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6390 instead of using all_lto_gen_passes.
6391 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6392 pass_ipa_lto_finish_out): Delete.
6393 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6394 make_pass_ipa_lto_finish_out): Don't declare.
6396 2013-11-18 Jeff Law <law@redhat.com>
6398 * tree-ssa-threadupdate.c (redirection_data): Record two
6399 duplicated blocks instead of just one.
6400 (local_info): Explain why we don't create a template for the
6401 second duplicated block in a thread path.
6402 (create_block_for_threading): Accept argument indicating array
6403 index into redirection_data to store its result.
6404 (lookup_redirection_data): Initialize both duplicate blocks.
6405 (ssa_create_duplicates): If a jump threading path needs multiple
6406 blocks duplicated, then duplicate them.
6407 (ssa_fix_duplicate_block_edges): Corresponding changes.
6408 (ssa_fixup_template_block, thread_single_edge): Likewise.
6410 2013-11-18 Marek Polacek <polacek@redhat.com>
6412 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6414 2013-11-18 Andrew Pinski <apinski@cavium.com>
6415 Steve Ellcey <sellcey@mips.com>
6418 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6419 type restriction from equality_operator on conditonal move.
6420 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6421 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6423 2013-11-18 Jeff Law <law@redhat.com>
6425 * tree-ssa-threadupdate.c: Fix file block comment.
6426 Fix minor indention issue.
6428 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6430 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6431 ix86_address_subreg_operand. Move subreg checks to
6432 ix86_validate_address_register. Move address override check to
6433 ix86_legitimate_address_p.
6434 (ix86_validate_address_register): New function.
6435 (ix86_legitimate_address_p): Call ix86_validate_address_register
6436 to validate base and index registers. Add address override check
6437 from ix86_decompose_address.
6438 (ix86_decompose_address): Remove.
6440 2013-11-18 Richard Biener <rguenther@suse.de>
6442 PR tree-optimization/59125
6443 PR tree-optimization/54570
6444 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6445 is not complete do not treat component-references with offset zero
6446 but different fields as equal.
6447 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6448 (compute_object_sizes): Apply TLC. Propagate the constant
6449 results into all uses and fold their stmts.
6450 * passes.def (pass_all_optimizations): Move pass_object_sizes
6451 after the first pass_forwprop and before pass_fre.
6453 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6455 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6456 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6457 (tree_ctz): Remove cast to unsigned type.
6458 * builtins.c (fold_builtin_memory_op): Likewise.
6459 * dwarf2out.c (descr_info_loc): Likewise.
6460 * godump.c (go_output_typedef): Likewise.
6461 * omp-low.c (expand_omp_simd): Likewise.
6462 * stor-layout.c (excess_unit_span): Likewise.
6463 * tree-object-size.c (addr_object_size): Likewise.
6464 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6465 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6466 (simplify_rotate): Likewise.
6467 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6468 (handle_pointer_plus): Likewise.
6469 * tree-switch-conversion.c (check_range): Likewise.
6470 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6471 * tsan.c (instrument_builtin_call): Likewise.
6472 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6473 * trans-mem.c (tm_log_add): Likewise.
6474 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6475 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6476 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6477 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6479 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6481 * tree.h (host_integerp, tree_low_cst): Delete.
6482 * tree.c (host_integerp, tree_low_cst): Delete.
6484 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6486 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6488 * fold-const.c (fold_binary_loc): Likewise.
6489 * expr.c (store_constructor): Use tree_to_uhwi rather than
6491 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6492 * stmt.c (emit_case_dispatch_table): Likewise.
6493 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6495 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6497 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6498 config/aarch64/aarch64.c, config/alpha/predicates.md,
6499 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6500 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6501 config/mep/mep-pragma.c, config/mips/mips.c,
6502 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6503 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6504 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6505 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6506 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6507 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6508 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6509 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6510 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6511 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6513 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6515 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6516 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6517 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6518 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6519 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6520 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6521 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6522 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6523 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6524 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6525 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6527 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6529 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6530 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6532 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6534 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6537 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6539 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6540 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6541 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6542 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6543 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6544 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6545 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6546 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6547 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6548 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6549 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6550 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6551 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6552 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6553 tree_fits_uhwi_p throughout.
6555 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6557 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6558 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6559 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6560 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6561 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6562 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6563 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6564 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6565 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6566 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6567 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6568 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6569 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6572 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6574 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6575 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6577 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6579 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6580 flag if it kills its address, not its post-increment.
6582 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6584 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6585 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6586 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6587 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6588 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6589 (gimple_call_with_bounds_p): New.
6590 (gimple_call_set_with_bounds): New.
6591 (gimple_call_num_nobnd_args): Remove.
6592 (gimple_call_nobnd_arg): Remove.
6593 * tree.h (CALL_WITH_BOUNDS_P): New.
6594 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6596 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6598 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6599 (symtab_node_name): Rename to symtab_node::name.
6600 (cgraph_node_asm_name): Remove.
6601 (varpool_node_asm_name): Remove.
6602 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6603 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6604 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6605 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6606 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6608 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6610 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6611 * config/arm/arm.c (arm_cortex_a53_tune): New.
6612 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6614 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6616 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6617 (case ${target}): Add bdver4.
6618 * config/i386/bdver3.md: Add bdver4.
6619 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6620 -march=native recognize bdver4 processors.
6621 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6622 bdver4 def_and_undef
6623 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6624 (m_BDVER4): New definition.
6625 (m_AMD_MULTIPLE): Includes m_BDVER4.
6626 (processor_target_table): Add bdver4 entry.
6627 (static const char *const cpu_names): Add bdver4 entry.
6628 (software_prefetching_beneficial_p): Add bdver3.
6629 (ix86_option_override_internal): Add bdver4 instruction sets.
6630 (ix86_issue_rate): Add bdver4.
6631 (ix86_adjust_cost): Add bdver4.
6632 (ia32_multipass_dfa_lookahead): Add bdver4.
6633 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6634 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6635 (has_dispatch): Add bdver4.
6636 * config/i386/i386.h (TARGET_BDVER4): New definition.
6637 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6638 (enum processor_type): Add PROCESSOR_BDVER4.
6639 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6640 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6641 * doc/extend.texi: Add details about bdver4.
6642 * doc/invoke.texi: Add details about bdver4. Add
6643 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6645 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6647 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6648 sdmode_stack_slot also in little-endian mode.
6650 2013-11-17 Jan Hubicka <jh@suse.cz>
6652 * doc/md.texi (setmem, movstr): Update documentation.
6653 * builtins.c (determine_block_size): New function.
6654 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6655 (expand_builtin_memset_args): Use it and pass it to
6656 set_storage_via_setmem.
6657 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6658 parameters; update call to expander.
6659 (emit_block_move_hints): Add min_size/max_size parameters.
6660 (clear_storage_hints): Likewise.
6661 (set_storage_via_setmem): Likewise.
6662 (clear_storage): Update.
6663 * expr.h (emit_block_move_hints, clear_storage_hints,
6664 set_storage_via_setmem): Update prototypes.
6665 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6666 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6667 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6668 * i386.md (movmem, setmem): Pass parameters.
6670 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6673 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6674 reject non-integer subregs.
6675 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6676 Move check for invalid x32 constant addresses ...
6677 (ix86_legitimate_address_p): ... here.
6679 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6681 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6682 parameter and use it in REG_FRAME_RELATED_EXPR note.
6683 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6685 (rs6000_emit_prologue): Likewise, but for little endian VSX
6686 stores, pass the source register of the store instead.
6688 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6690 * gimple.h: Reorder prototypes to match .c declaration order, and
6691 remove protyotypes for functions not in gimple.c.
6692 (LABEL): Move to tree-into-ssa.c.
6693 * gimple.c: Remove unused prototypes.
6694 (get_base_address): Move to tree.c.
6695 * tree.c (get_base_address): Relocate from gimple.c.
6696 * builtins.h (validate_gimple_arglist): Add prototype.
6697 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6698 * cfgexpand.h: New File.
6699 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6700 * tree.h (build_addr): Move to tree-nested.h.
6701 * tree-nested.h: New File.
6702 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6704 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6705 * ipa-inline-analysis.c: Include cfgexpand.h.
6706 * cgraphunit.c: Include tree-nested.h.
6707 * omp-low.c: Likewise.
6708 * tree-parloops.c: Likewise.
6709 * gimple-low.h: Likewise.
6710 * tree-profile.h: Likewise.
6711 * expr.c: Include cfgexpand.h.
6712 * tree-affine.c: Likewise.
6713 * tree-ssa.c: Likewise.
6714 * tree-ssa-loop-im.c: Include trans-mem.h.
6715 * tree-ssa-tail-merge.c: Likewise.
6716 * value-prof.c: Include builtins.h and tree-nested.h.
6717 * tree-into-ssa.c (LABEL): Define here.
6719 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6721 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6722 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6723 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6724 (make_pass_arc_predicate_delay_insns): New function.
6725 (arc_init): Register pass_arc_predicate_delay_insns if
6726 flag_delayed_branch is active.
6728 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6730 * config/arc/constraints.md (Rcq): Simplify register number test.
6732 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6734 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6736 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6738 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6741 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6743 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6744 * gimple-pretty-print.c (dump_omp_for): Add case for
6745 GF_OMP_FOR_KIND_CILKSIMD.
6746 * gimple.h (enum gf_mask): Restructure entries to add
6747 GF_OMP_FOR_KIND_CILKSIMD.
6748 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6749 (gimplify_omp_for): Handle CILK_SIMD.
6750 (gimplify_expr): Add ccase for CILK_SIMD.
6751 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6752 (build_outer_var_ref): Same.
6753 (check_omp_nesting_restrictions): Same.
6754 (lower_rec_input_clauses): Same.
6755 (lower_lastprivate_clauses): Same.
6756 (expand_omp_for): Same.
6757 (execute_expand_omp): Check flag_enable_cilkplus.
6758 (execute_lower_omp): Same.
6759 (diagnose_sb_0): Handle CILK_SIMD.
6760 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6761 (setjmp_or_longjmp_p): New.
6762 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6763 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6764 * tree.def: Add tree code for CILK_SIMD.
6766 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6768 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6770 (altivec_vperm_<mode>): Revert earlier little endian change.
6771 (*altivec_vperm_<mode>_internal): Remove.
6772 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6773 (*altivec_vperm_<mode>_uns_internal): Remove.
6774 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6776 2013-11-15 Jeff Law <law@redhat.com>
6778 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6779 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6780 * gimple-ssa-isolate-paths.c
6781 (find_implicit_erroneous_behaviour): Corresponding changes.
6782 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6783 (find_explicit_erroneous_behaviour): Likewise.
6785 2013-11-15 Jeff Law <law@redhat.com>
6787 * ifcvt.c (find_cond_trap): Properly handle case where
6790 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6792 * configure: Regenerate.
6794 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6796 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6797 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6798 where it is incorrect or missing.
6800 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6802 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6804 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6805 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6807 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6808 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6809 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6811 2013-11-15 Richard Biener <rguenther@suse.de>
6813 PR tree-optimization/50262
6814 * tree-ssa-alias.h (struct pt_solution): Split
6815 vars_contains_global into vars_contains_nonlocal,
6816 vars_contains_escaped and vars_contains_escaped_heap.
6817 * tree-ssa-structalias.c (label_visit): Expand comment.
6818 (handle_lhs_call): Adjust comment.
6819 (set_uids_in_ptset): Set the new flags appropriately.
6820 (pt_solution_set): Adjust.
6821 (pt_solution_set_var): Likewise.
6822 (pt_solution_ior_into): Likewise.
6823 (pt_solution_includes_global): Likewise.
6824 (pt_solutions_intersect_1): Optimize escaped handling.
6825 (compute_points_to_sets): Remove heap variable globalization.
6826 (ipa_escaped_pt): Adjust initializer.
6827 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6828 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6829 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6831 2013-11-15 Richard Biener <rguenther@suse.de>
6833 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6834 to distribute all stores.
6836 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6838 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6840 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6842 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6843 * configure.ac: Determine target_header_dir earlier.
6844 (--with-glibc-version): New configure option.
6845 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6846 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6847 * configure: Regenerate.
6848 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6849 native toolchains for default.
6850 (--with-glibc-version): Document.
6852 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6854 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6856 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6858 * lto-streamer-in.c (input function): Call cgraph_create_node if
6859 cgraph_get_node failed.
6861 2013-11-14 Olivier Hainque <hainque@adacore.com>
6863 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6864 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6865 small. Factorize size threshold computation from the existing one.
6866 (expand_used_vars): Refine comment.
6868 2013-11-14 Cong Hou <congh@google.com>
6870 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6871 address field as it can be obtained from dr. Rename the struct.
6872 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6873 steps of data references during sort.
6874 (vect_prune_runtime_alias_test_list): Adjust with the change to
6875 struct dr_with_seg_len.
6876 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6877 Adjust with the change to struct dr_with_seg_len.
6879 2013-11-14 Jeff Law <law@redhat.com>
6882 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6883 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6884 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6885 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6886 edges, then ignore it. If the statement exhibiting erroneous
6887 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6888 then we can not optimize.
6889 (find_explicit_erroneous_behaviour): Likewise.
6891 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6893 * gimplify-me.h: New file. Add prototypes.
6894 * gimplify.h: Don't include gimple.h.
6895 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6896 Relocate from gimple.h.
6897 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6898 is_gimple_sizepos): Move to gimplify.h.
6899 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6900 (enum gsi_iterator_update): Move to gimple-iterator.h.
6901 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6902 * gimplify-me.c: New File.
6903 (force_gimple_operand_1, force_gimple_operand,
6904 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6905 gimple_regimplify_operands): Relocate from gimplify.c.
6906 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6907 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6908 gimple_regimplify_operands): Move to gimplify-me.c.
6909 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6911 * Makefile.in (OBJS): Add gimplify-me.o
6912 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6914 * cfgloopmanip.c: Likewise.
6915 * cgraphunit.c: Likewise.
6916 * cilk-common.c: Likewise.
6917 * fold-const.c: Likewise.
6918 * function.c: Likewise.
6919 * gimple-expr.c: Likewise.
6920 * gimple-fold.c: Likewise.
6921 * gimple-ssa-strength-reduction.c: Likewise.
6922 * gimple.c: Likewise.
6923 * graphite-clast-to-gimple.c: Likewise.
6924 * graphite-sese-to-poly.c: Likewise.
6925 * ipa-prop.c: Likewise.
6926 * ipa-split.c: Likewise.
6928 * langhooks.c: Likewise.
6929 * omp-low.c: Likewise.
6931 * stor-layout.c: Likewise.
6932 * targhooks.c: Likewise.
6933 * trans-mem.c: Likewise.
6934 * tree-affine.c: Likewise.
6935 * tree-cfg.c: Likewise.
6936 * tree-cfgcleanup.c: Likewise.
6937 * tree-complex.c: Likewise.
6938 * tree-if-conv.c: Likewise.
6939 * tree-inline.c: Likewise.
6940 * tree-loop-distribution.c: Likewise.
6941 * tree-nested.c: Likewise.
6942 * tree-parloops.c: Likewise.
6943 * tree-predcom.c: Likewise.
6944 * tree-profile.c: Likewise.
6945 * tree-scalar-evolution.c: Likewise.
6946 * tree-sra.c: Likewise.
6947 * tree-ssa-address.c: Likewise.
6948 * tree-ssa-ccp.c: Likewise.
6949 * tree-ssa-dce.c: Likewise.
6950 * tree-ssa-forwprop.c: Likewise.
6951 * tree-ssa-ifcombine.c: Likewise.
6952 * tree-ssa-loop-im.c: Likewise.
6953 * tree-ssa-loop-ivopts.c: Likewise.
6954 * tree-ssa-loop-manip.c: Likewise.
6955 * tree-ssa-loop-niter.c: Likewise.
6956 * tree-ssa-loop-prefetch.c: Likewise.
6957 * tree-ssa-loop-unswitch.c: Likewise.
6958 * tree-ssa-math-opts.c: Likewise.
6959 * tree-ssa-phiopt.c: Likewise.
6960 * tree-ssa-phiprop.c: Likewise.
6961 * tree-ssa-pre.c: Likewise.
6962 * tree-ssa-propagate.c: Likewise.
6963 * tree-ssa-reassoc.c: Likewise.
6964 * tree-ssa-sccvn.c: Likewise.
6965 * tree-ssa-strlen.c: Likewise.
6966 * tree-ssa.c: Likewise.
6967 * tree-switch-conversion.c: Likewise.
6968 * tree-tailcall.c: Likewise.
6969 * tree-vect-data-refs.c: Likewise.
6970 * tree-vect-generic.c: Likewise.
6971 * tree-vect-loop-manip.c: Likewise.
6972 * tree-vect-loop.c: Likewise.
6973 * tree-vect-patterns.c: Likewise.
6974 * tree-vect-stmts.c: Likewise.
6977 * value-prof.c: Likewise.
6978 * config/aarch64/aarch64.c: Likewise.
6979 * config/alpha/alpha.c: Likewise.
6980 * config/darwin.c: Likewise.
6981 * config/i386/i386.c: Likewise.
6982 * config/ia64/ia64.c: Likewise.
6983 * config/mep/mep.c: Likewise.
6984 * config/mips/mips.c: Likewise.
6985 * config/rs6000/rs6000.c: Likewise.
6986 * config/s390/s390.c: Likewise.
6987 * config/sh/sh.c: Likewise.
6988 * config/sparc/sparc.c: Likewise.
6989 * config/spu/spu.c: Likewise.
6990 * config/stormy16/stormy16.c: Likewise.
6991 * config/tilegx/tilegx.c: Likewise.
6992 * config/tilepro/tilepro.c: Likewise.
6993 * config/xtensa/xtensa.c: Likewise.
6995 2013-11-14 Diego Novillo <dnovillo@google.com>
6997 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6999 2013-11-14 Diego Novillo <dnovillo@google.com>
7001 * tree.h: Include fold-const.h.
7002 (aggregate_value_p): Moved to function.h.
7003 (alloca_call_p): Moved to calls.h.
7004 (allocate_struct_function): Moved to function.h.
7005 (apply_tm_attr): Moved to attribs.h.
7006 (array_at_struct_end_p): Moved to expr.h.
7007 (array_ref_element_size): Moved to tree-dfa.h.
7008 (array_ref_low_bound): Moved to tree-dfa.h.
7009 (array_ref_up_bound): Moved to tree.h.
7010 (assemble_alias): Moved to cgraph.h.
7011 (bit_from_pos): Moved to stor-layout.h.
7012 (build_addr): Moved to tree-nested.h.
7013 (build_duplicate_type): Moved to tree-inline.h.
7014 (build_fold_addr_expr): Moved to fold-const.h.
7015 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7016 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7017 (build_fold_indirect_ref): Moved to fold-const.h.
7018 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7019 (build_personality_function): Moved to tree.h.
7020 (build_range_check): Moved to fold-const.h.
7021 (build_simple_mem_ref): Moved to fold-const.h.
7022 (build_simple_mem_ref_loc): Moved to fold-const.h.
7023 (build_tm_abort_call): Moved to trans-mem.h.
7024 (byte_from_pos): Moved to stor-layout.h.
7025 (call_expr_flags): Moved to calls.h.
7026 (can_move_by_pieces): Moved to expr.h.
7027 (categorize_ctor_elements): Moved to expr.h.
7028 (change_decl_assembler_name): Moved to gcc-symtab.h.
7029 (combine_comparisons): Moved to fold-const.h.
7030 (complete_ctor_at_level_p): Moved to tree.h.
7031 (component_ref_field_offset): Moved to tree-dfa.h.
7032 (compute_builtin_object_size): Moved to tree-object-size.h.
7033 (compute_record_mode): Moved to stor-layout.h.
7034 (constant_boolean_node): Moved to fold-const.h.
7035 (constructor_static_from_elts_p): Moved to varasm.h.
7036 (cxx11_attribute_p): Moved to attribs.h.
7037 (debug_body): Moved to print-tree.h.
7038 (debug_find_tree): Moved to tree-inline.h.
7039 (debug_fold_checksum): Moved to fold-const.h.
7040 (debug_head): Moved to print-tree.h.
7041 (debug_head): Moved to print-tree.h.
7042 (debug_raw): Moved to print-tree.h.
7043 (debug_tree): Moved to print-tree.h.
7044 (debug_vec_tree): Moved to print-tree.h.
7045 (debug_verbose): Moved to print-tree.h.
7046 (debug_verbose): Moved to print-tree.h.
7047 (decl_attributes): Moved to attribs.h.
7048 (decl_binds_to_current_def_p): Moved to varasm.h.
7049 (decl_default_tls_model): Moved to varasm.h.
7050 (decl_replaceable_p): Moved to varasm.h.
7051 (div_if_zero_remainder): Moved to fold-const.h.
7052 (double_int mem_ref_offset): Moved to fold-const.h.
7053 (dump_addr): Moved to print-tree.h.
7054 (element_precision): Moved to machmode.h.
7055 (expand_dummy_function_end): Moved to function.h.
7056 (expand_function_end): Moved to function.h.
7057 (expand_function_start): Moved to function.h.
7058 (expand_label): Moved to stmt.h.
7059 (expr_first): Moved to tree-iterator.h.
7060 (expr_last): Moved to tree-iterator.h.
7061 (finalize_size_functions): Moved to stor-layout.h.
7062 (finish_builtin_struct): Moved to stor-layout.h.
7063 (finish_record_layout): Moved to stor-layout.h.
7064 (fixup_signed_type): Moved to stor-layout.h.
7065 (fixup_unsigned_type): Moved to stor-layout.h.
7066 (flags_from_decl_or_type): Moved to calls.h.
7067 (fold): Moved to fold-const.h.
7068 (fold_abs_const): Moved to fold-const.h.
7069 (fold_binary): Moved to fold-const.h.
7070 (fold_binary_loc): Moved to fold-const.h.
7071 (fold_binary_to_constant): Moved to fold-const.h.
7072 (fold_build1): Moved to fold-const.h.
7073 (fold_build1_initializer_loc): Moved to fold-const.h.
7074 (fold_build1_loc): Moved to fold-const.h.
7075 (fold_build1_stat_loc): Moved to fold-const.h.
7076 (fold_build2): Moved to fold-const.h.
7077 (fold_build2_initializer_loc): Moved to fold-const.h.
7078 (fold_build2_loc): Moved to fold-const.h.
7079 (fold_build2_stat_loc): Moved to fold-const.h.
7080 (fold_build3): Moved to fold-const.h.
7081 (fold_build3_loc): Moved to fold-const.h.
7082 (fold_build3_stat_loc): Moved to fold-const.h.
7083 (fold_build_call_array): Moved to fold-const.h.
7084 (fold_build_call_array_initializer): Moved to fold-const.h.
7085 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7086 (fold_build_call_array_loc): Moved to fold-const.h.
7087 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7088 (fold_convert): Moved to fold-const.h.
7089 (fold_convert_loc): Moved to fold-const.h.
7090 (fold_convertible_p): Moved to fold-const.h.
7091 (fold_defer_overflow_warnings): Moved to fold-const.h.
7092 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7093 (fold_fma): Moved to fold-const.h.
7094 (fold_ignored_result): Moved to fold-const.h.
7095 (fold_indirect_ref): Moved to fold-const.h.
7096 (fold_indirect_ref_1): Moved to fold-const.h.
7097 (fold_indirect_ref_loc): Moved to fold-const.h.
7098 (fold_read_from_constant_string): Moved to fold-const.h.
7099 (fold_real_zero_addition_p): Moved to fold-const.h.
7100 (fold_single_bit_test): Moved to fold-const.h.
7101 (fold_strip_sign_ops): Moved to fold-const.h.
7102 (fold_ternary): Moved to fold-const.h.
7103 (fold_ternary_loc): Moved to fold-const.h.
7104 (fold_unary): Moved to tree-data-ref.h.
7105 (fold_unary_ignore_overflow): Moved to fold-const.h.
7106 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7107 (fold_unary_loc): Moved to fold-const.h.
7108 (fold_unary_to_constant): Moved to fold-const.h.
7109 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7110 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7111 (folding_initializer): Moved to fold-const.h.
7112 (free_temp_slots): Moved to function.h.
7113 (generate_setjmp_warnings): Moved to function.h.
7114 (get_attribute_name): Moved to attribs.h.
7115 (get_identifier): Moved to stringpool.h.
7116 (get_identifier_with_length): Moved to stringpool.h.
7117 (get_inner_reference): Moved to tree.h.
7118 (gimple_alloca_call_p): Moved to calls.h.
7119 (gimplify_parameters): Moved to function.h.
7120 (highest_pow2_factor): Moved to expr.h.
7121 (indent_to): Moved to print-tree.h.
7122 (init_attributes): Moved to attribs.h.
7123 (init_dummy_function_start): Moved to function.h.
7124 (init_function_start): Moved to function.h.
7125 (init_inline_once): Moved to tree-inline.h.
7126 (init_object_sizes): Moved to tree-object-size.h.
7127 (init_temp_slots): Moved to function.h.
7128 (init_tree_optimization_optabs): Moved to optabs.h.
7129 (initialize_sizetypes): Moved to stor-layout.h.
7130 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7131 (initializer_constant_valid_p): Moved to varasm.h.
7132 (int_const_binop): Moved to fold-const.h.
7133 (internal_reference_types): Moved to stor-layout.h.
7134 (invert_tree_comparison): Moved to fold-const.h.
7135 (invert_truthvalue): Moved to fold-const.h.
7136 (invert_truthvalue_loc): Moved to fold-const.h.
7137 (is_tm_ending_fndecl): Moved to trans-mem.h.
7138 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7139 (is_tm_pure): Moved to trans-mem.h.
7140 (is_tm_safe): Moved to trans-mem.h.
7141 (layout_decl): Moved to stor-layout.h.
7142 (layout_type): Moved to stor-layout.h.
7143 (lookup_attribute_spec): Moved to attribs.h.
7144 (make_accum_type): Moved to stor-layout.h.
7145 (make_decl_one_only): Moved to varasm.h.
7146 (make_decl_rtl): Moved to tree.h.
7147 (make_decl_rtl_for_debug): Moved to varasm.h.
7148 (make_fract_type): Moved to stor-layout.h.
7149 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7150 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7151 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7152 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7153 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7154 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7155 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7156 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7157 (make_range): Moved to fold-const.h.
7158 (make_range_step): Moved to fold-const.h.
7159 (make_sat_signed_accum_type): Moved to stor-layout.h.
7160 (make_sat_signed_fract_type): Moved to stor-layout.h.
7161 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7162 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7163 (make_signed_accum_type): Moved to stor-layout.h.
7164 (make_signed_fract_type): Moved to stor-layout.h.
7165 (make_signed_type): Moved to stor-layout.h.
7166 (make_unsigned_accum_type): Moved to stor-layout.h.
7167 (make_unsigned_fract_type): Moved to stor-layout.h.
7168 (make_unsigned_type): Moved to stor-layout.h.
7169 (mark_decl_referenced): Moved to varasm.h.
7170 (mark_referenced): Moved to varasm.h.
7171 (may_negate_without_overflow_p): Moved to fold-const.h.
7172 (maybe_get_identifier): Moved to stringpool.h.
7173 (merge_ranges): Moved to fold-const.h.
7174 (merge_weak): Moved to varasm.h.
7175 (mode_for_size_tree): Moved to stor-layout.h.
7176 (multiple_of_p): Moved to fold-const.h.
7177 (must_pass_in_stack_var_size): Moved to calls.h.
7178 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7179 (native_encode_expr): Moved to fold-const.h.
7180 (native_interpret_expr): Moved to fold-const.h.
7181 (non_lvalue): Moved to fold-const.h.
7182 (non_lvalue_loc): Moved to fold-const.h.
7183 (normalize_offset): Moved to stor-layout.h.
7184 (normalize_rli): Moved to stor-layout.h.
7185 (notice_global_symbol): Moved to varasm.h.
7186 (omit_one_operand): Moved to fold-const.h.
7187 (omit_one_operand_loc): Moved to fold-const.h.
7188 (omit_two_operands): Moved to fold-const.h.
7189 (omit_two_operands_loc): Moved to fold-const.h.
7190 (operand_equal_p): Moved to tree-data-ref.h.
7191 (parse_input_constraint): Moved to stmt.h.
7192 (parse_output_constraint): Moved to stmt.h.
7193 (place_field): Moved to stor-layout.h.
7194 (pop_function_context): Moved to function.h.
7195 (pop_temp_slots): Moved to function.h.
7196 (pos_from_bit): Moved to stor-layout.h.
7197 (preserve_temp_slots): Moved to function.h.
7198 (print_node): Moved to print-tree.h.
7199 (print_node_brief): Moved to print-tree.h.
7200 (print_rtl): Moved to rtl.h.
7201 (process_pending_assemble_externals): Moved to varasm.h.
7202 (ptr_difference_const): Moved to fold-const.h.
7203 (push_function_context): Moved to function.h.
7204 (push_struct_function): Moved to function.h.
7205 (push_temp_slots): Moved to function.h.
7206 (record_tm_replacement): Moved to trans-mem.h.
7207 (relayout_decl): Moved to stor-layout.h.
7208 (resolve_asm_operand_names): Moved to stmt.h.
7209 (resolve_unique_section): Moved to varasm.h.
7210 (rli_size_so_far): Moved to stor-layout.h.
7211 (rli_size_unit_so_far): Moved to stor-layout.h.
7212 (round_down): Moved to fold-const.h.
7213 (round_down_loc): Moved to fold-const.h.
7214 (round_up): Moved to fold-const.h.
7215 (round_up_loc): Moved to fold-const.h.
7216 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7217 (set_decl_rtl): Moved to tree.h.
7218 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7219 (set_user_assembler_name): Moved to varasm.h.
7220 (setjmp_call_p): Moved to calls.h.
7221 (size_binop): Moved to fold-const.h.
7222 (size_binop_loc): Moved to fold-const.h.
7223 (size_diffop): Moved to fold-const.h.
7224 (size_diffop_loc): Moved to fold-const.h.
7225 (size_int_kind): Moved to fold-const.h.
7226 (stack_protect_epilogue): Moved to function.h.
7227 (start_record_layout): Moved to stor-layout.h.
7228 (supports_one_only): Moved to varasm.h.
7229 (swap_tree_comparison): Moved to fold-const.h.
7230 (tm_malloc_replacement): Moved to trans-mem.h.
7231 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7232 (tree build_invariant_address): Moved to fold-const.h.
7233 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7234 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7235 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7236 (tree_expr_nonnegative_p): Moved to fold-const.h.
7237 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7238 (tree_output_constant_def): Moved to varasm.h.
7239 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7240 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7241 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7242 (tree_swap_operands_p): Moved to fold-const.h.
7243 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7244 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7245 (update_alignment_for_field): Moved to stor-layout.h.
7246 (use_register_for_decl): Moved to function.h.
7247 (variable_size): Moved to rtl.h.
7248 (vector_type_mode): Moved to stor-layout.h.
7249 * cgraph.h: Corresponding changes.
7250 * emit-rtl.h: Corresponding changes.
7251 * expr.h: Corresponding changes.
7252 * function.h: Corresponding changes.
7253 * optabs.h: Corresponding changes.
7254 * trans-mem.h: Corresponding changes.
7255 Protect against multiple inclusion.
7256 * tree-inline.h: Corresponding changes.
7257 * tree-iterator.h: Corresponding changes.
7258 * tree-dfa.h: Include expr.h.
7259 * tree-ssanames.h: Include stringpool.h.
7260 * attribs.h: New file.
7261 * calls.h: New file.
7262 * fold-const.h: New file.
7263 * gcc-symtab.h: New file.
7264 * print-rtl.h: New file.
7265 * print-tree.h: New file.
7267 * stor-layout.h: New file.
7268 * strinpool.h: New file.
7269 * tree-nested.h: New file
7270 * tree-object-size.h: New file.
7271 * varasm.h: New file.
7273 2013-11-14 Diego Novillo <dnovillo@google.com>
7275 * alias.c: Include varasm.h.
7277 * asan.c: Include calls.h.
7278 Include stor-layout.h.
7280 * attribs.c: Include stringpool.h.
7282 Include stor-layout.h.
7283 * builtins.c: Include stringpool.h.
7284 Include stor-layout.h.
7287 Include tree-object-size.h.
7288 * calls.c: Include stor-layout.h.
7290 Include stringpool.h.
7292 * cfgexpand.c: Include stringpool.h.
7294 Include stor-layout.h.
7296 Include print-tree.h.
7297 * cgraph.c: Include varasm.h.
7299 Include print-tree.h.
7300 * cgraphclones.c: Include stringpool.h.
7303 Move inclusion of rtl.h earlier in the file.
7304 * cgraphunit.c: Include varasm.h.
7305 Include stor-layout.h.
7306 Include stringpool.h.
7307 * cilk-common.c: Include stringpool.h.
7308 Include stor-layout.h.
7309 * combine.c: Include stor-layout.h.
7310 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7311 Include stringpool.h.
7313 * config/aarch64/aarch64.c: Include stringpool.h.
7314 Include stor-layout.h.
7317 * config/alpha/alpha.c: Include stor-layout.h.
7320 * config/arc/arc.c: Include varasm.h.
7321 Include stor-layout.h.
7322 Include stringpool.h.
7324 * config/arm/arm.c: Include stringpool.h.
7325 Include stor-layout.h.
7328 * config/avr/avr-c.c: Include stor-layout.h.
7329 * config/avr/avr-log.c: Include print-tree.h.
7330 * config/avr/avr.c: Include print-tree.h.
7332 Include stor-layout.h.
7333 Include stringpool.h.
7334 * config/bfin/bfin.c: Include varasm.h.
7336 * config/c6x/c6x.c: Include stor-layout.h.
7339 Include stringpool.h.
7340 * config/cr16/cr16.c: Include stor-layout.h.
7342 * config/cris/cris.c: Include varasm.h.
7343 Include stor-layout.h.
7346 * config/darwin.c: Include stringpool.h.
7348 Include stor-layout.h.
7349 * config/epiphany/epiphany.c: Include stor-layout.h.
7352 Include stringpool.h.
7353 * config/fr30/fr30.c: Include stor-layout.h.
7355 * config/frv/frv.c: Include varasm.h.
7356 Include stor-layout.h.
7357 Include stringpool.h.
7358 * config/h8300/h8300.c: Include stor-layout.h.
7361 Include stringpool.h.
7362 * config/i386/i386.c: Include stringpool.h.
7365 Include stor-layout.h.
7367 * config/i386/winnt-cxx.c: Include stringpool.h.
7369 * config/i386/winnt.c: Include stringpool.h.
7371 * config/ia64/ia64-c.c: Include stringpool.h.
7372 * config/ia64/ia64.c: Include stringpool.h.
7373 Include stor-layout.h.
7376 * config/iq2000/iq2000.c: Include stor-layout.h.
7379 * config/lm32/lm32.c: Include calls.h.
7380 * config/m32c/m32c.c: Include stor-layout.h.
7383 * config/m32r/m32r.c: Include stor-layout.h.
7385 Include stringpool.h.
7387 * config/m68k/m68k.c: Include calls.h.
7388 Include stor-layout.h.
7390 * config/mcore/mcore.c: Include stor-layout.h.
7392 Include stringpool.h.
7394 * config/mep/mep.c: Include varasm.h.
7396 Include stringpool.h.
7397 Include stor-layout.h.
7398 * config/microblaze/microblaze.c: Include varasm.h.
7399 Include stor-layout.h.
7401 * config/mips/mips.c: Include varasm.h.
7402 Include stringpool.h.
7403 Include stor-layout.h.
7405 * config/mmix/mmix.c: Include varasm.h.
7406 Include stor-layout.h.
7408 * config/mn10300/mn10300.c: Include stor-layout.h.
7411 * config/moxie/moxie.c: Include stor-layout.h.
7414 * config/msp430/msp430.c: Include stor-layout.h.
7416 * config/nds32/nds32.c: Include stor-layout.h.
7419 * config/pa/pa.c: Include stor-layout.h.
7420 Include stringpool.h.
7423 * config/pdp11/pdp11.c: Include stor-layout.h.
7426 * config/picochip/picochip.c: Include calls.h.
7427 Include stor-layout.h.
7428 Include stringpool.h.
7430 * config/rl78/rl78.c: Include varasm.h.
7431 Include stor-layout.h.
7433 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7434 Include stringpool.h.
7435 * config/rs6000/rs6000.c: Include stringpool.h.
7436 Include stor-layout.h.
7438 Include print-tree.h.
7440 * config/rx/rx.c: Include varasm.h.
7441 Include stor-layout.h.
7443 * config/s390/s390.c: Include print-tree.h.
7444 Include stringpool.h.
7445 Include stor-layout.h.
7448 * config/score/score.c: Include stringpool.h.
7451 Include stor-layout.h.
7452 * config/sh/sh-c.c: Include stringpool.h.
7453 Include attribs.h.h.
7454 * config/sh/sh.c: Include stringpool.h.
7455 Include stor-layout.h.
7458 * config/sol2-c.c: Include stringpool.h.
7460 * config/sol2-cxx.c: Include stringpool.h.
7461 * config/sol2.c: Include stringpool.h.
7463 * config/sparc/sparc.c: Include stringpool.h.
7464 Include stor-layout.h.
7467 * config/spu/spu-c.c: Include stringpool.h.
7468 * config/spu/spu.c: Include stringpool.h.
7469 Include stor-layout.h.
7472 * config/stormy16/stormy16.c: Include stringpool.h.
7473 Include stor-layout.h.
7476 * config/tilegx/tilegx.c: Include stringpool.h.
7477 Include stor-layout.h.
7480 * config/tilepro/tilepro.c: Include stringpool.h.
7481 Include stor-layout.h.
7484 * config/v850/v850-c.c: Include stringpool.h.
7486 * config/v850/v850.c: Include stringpool.h.
7487 Include stor-layout.h.
7490 * config/vax/vax.c: Include calls.h.
7492 * config/vms/vms.c: Include stringpool.h.
7493 * config/vxworks.c: Include stringpool.h.
7494 * config/xtensa/xtensa.c: Include stringpool.h.
7495 Include stor-layout.h.
7498 * convert.c: Include stor-layout.h.
7499 * coverage.c: Include stringpool.h.
7500 Include stor-layout.h.
7501 * dbxout.c: Include varasm.h.
7502 Include stor-layout.h.
7503 * dojump.c: Include stor-layout.h.
7504 * dse.c: Include stor-layout.h.
7505 * dwarf2asm.c: Include stringpool.h.
7507 * dwarf2cfi.c: Include stor-layout.h.
7508 * dwarf2out.c: Include rtl.h.
7509 Include stringpool.h.
7510 Include stor-layout.h.
7514 Move inclusion of rtl.h earlier in the file.
7515 * emit-rtl.c: Include varasm.h.
7516 * except.c: Include stringpool.h.
7517 Include stor-layout.h.
7518 * explow.c: Include stor-layout.h.
7519 * expmed.c: Include stor-layout.h.
7520 * expr.c: Include stringpool.h.
7521 Include stor-layout.h.
7524 * final.c: Include varasm.h.
7525 * fold-const.c: Include stor-layout.h.
7527 Include tree-iterator.h.
7528 * function.c: Include stor-layout.h.
7530 Include stringpool.h.
7531 * genattrtab.c (write_header): Emit includes for varasm.h,
7532 stor-layout.h and calls.h.
7533 * genautomata.c (main): Likewise.
7534 * genemit.c: Likewise.
7535 * genopinit.c: Likewise.
7536 * genoutput.c (output_prologue): Likewise.
7537 * genpeep.c: Likewise.
7538 * genpreds.c (write_insn_preds_c): Likewise.
7539 * gengtype.c (open_base_files): Add stringpool.h.
7540 * gimple-expr.c: Include stringpool.h.
7541 Include stor-layout.h.
7542 * gimple-fold.c: Include stringpool.h.
7545 Include stor-layout.h.
7546 * gimple-low.c: Include tree-nested.h.
7548 * gimple-pretty-print.c: Include stringpool.h.
7549 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7551 * gimple-walk.c: Include stmt.h.
7552 * gimple.c: Include calls.h.
7554 Include stor-layout.h.
7555 * gimplify.c: Include stringpool.h.
7558 Include stor-layout.h.
7560 Include print-tree.h.
7562 * gimplify-me.c: Include stmt.h
7563 Include stor-layout.h
7564 * internal-fn.c: Include stor-layout.h.
7565 * ipa-devirt.c: Include print-tree.h.
7567 * ipa-inline-analysis.c: Include stor-layout.h.
7568 Include stringpool.h.
7569 Include print-tree.h.
7570 * ipa-inline.c: Include trans-mem.h.
7572 * ipa-prop.c: Include expr.h.
7573 Include stor-layout.h.
7574 Include print-tree.h.
7575 * ipa-pure-const.c: Include print-tree.h.
7577 * ipa-reference.c: Include calls.h.
7578 * ipa-split.c: Include stringpool.h.
7581 * ipa.c: Include calls.h.
7582 Include stringpool.h.
7583 * langhooks.c: Include stringpool.h.
7585 * lto-cgraph.c: Include stringpool.h.
7586 * lto-streamer-in.c: Include stringpool.h.
7587 * lto-streamer-out.c: Include stor-layout.h.
7588 Include stringpool.h.
7589 * omp-low.c: Include stringpool.h.
7590 Include stor-layout.h.
7592 * optabs.c: Include stor-layout.h.
7593 Include stringpool.h.
7595 * passes.c: Include varasm.h.
7596 * predict.c: Include calls.h.
7597 * print-rtl.c: Include print-tree.h.
7598 * print-tree.c: Include varasm.h.
7599 Include print-rtl.h.
7600 Include stor-layout.h.
7601 * realmpfr.c: Include stor-layout.h.
7602 * reg-stack.c: Include varasm.h.
7603 * sdbout.c: Include varasm.h.
7604 Include stor-layout.h.
7605 * simplify-rtx.c: Include varasm.h.
7606 * stmt.c: Include varasm.h.
7607 Include stor-layout.h.
7608 * stor-layout.c: Include stor-layout.h.
7609 Include stringpool.h.
7611 Include print-tree.h.
7612 * symtab.c: Include rtl.h.
7613 Include print-tree.h.
7617 * targhooks.c: Include stor-layout.h.
7619 * toplev.c: Include varasm.h.
7620 Include tree-inline.h.
7621 * trans-mem.c: Include calls.h.
7625 * tree-affine.c: Include expr.h.
7626 * tree-browser.c: Include print-tree.h.
7627 * tree-call-cdce.c: Include stor-layout.h.
7628 * tree-cfg.c: Include trans-mem.h.
7629 Include stor-layout.h.
7630 Include print-tree.h.
7631 * tree-complex.c: Include stor-layout.h.
7632 * tree-data-ref.c: Include expr.h.
7633 * tree-dfa.c: Include stor-layout.h.
7634 * tree-eh.c: Include expr.h.
7636 * tree-emutls.c: Include stor-layout.h.
7638 * tree-if-conv.c: Include stor-layout.h.
7639 * tree-inline.c: Include stor-layout.h.
7641 * tree-loop-distribution.c: Include stor-layout.h.
7642 * tree-nested.c: Include stringpool.h.
7643 Include stor-layout.h.
7644 * tree-object-size.c: Include tree-object-size.h.
7645 * tree-outof-ssa.c: Include stor-layout.h.
7646 * tree-parloops.c: Include stor-layout.h.
7647 Include tree-nested.h.
7648 * tree-pretty-print.c: Include stor-layout.h.
7650 * tree-profile.c: Include varasm.h.
7651 Include tree-nested.h.
7652 * tree-scalar-evolution.c: Include expr.h.
7653 * tree-sra.c: Include stor-layout.h.
7654 * tree-ssa-address.c: Include stor-layout.h.
7655 * tree-ssa-ccp.c: Include stor-layout.h.
7656 * tree-ssa-dce.c: Include calls.h.
7657 * tree-ssa-dom.c: Include stor-layout.h.
7658 * tree-ssa-forwprop.c: Include stor-layout.h.
7659 * tree-ssa-ifcombine.c: Include stor-layout.h.
7660 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7661 * tree-ssa-loop-niter.c: Include calls.h.
7663 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7664 * tree-ssa-math-opts.c: Include stor-layout.h.
7665 * tree-ssa-operands.c: Include stmt.h.
7666 Include print-tree.h.
7667 * tree-ssa-phiopt.c: Include stor-layout.h.
7668 * tree-ssa-reassoc.c: Include stor-layout.h.
7669 * tree-ssa-sccvn.c: Include stor-layout.h.
7670 * tree-ssa-sink.c: Include stor-layout.h.
7671 * tree-ssa-strlen.c: Include stor-layout.h.
7672 * tree-ssa-structalias.c: Include stor-layout.h.
7674 * tree-ssa-tail-merge.c: Include stor-layout.h.
7675 Include trans-mem.h.
7676 * tree-ssa-uncprop.c: Include stor-layout.h.
7677 * tree-ssa.c: Include stor-layout.h.
7678 * tree-ssanames.c: Include stor-layout.h.
7679 * tree-streamer-in.c: Include stringpool.h.
7680 * tree-streamer-out.c: Include stor-layout.h.
7681 * tree-switch-conversion.c: Include varasm.h.
7682 Include stor-layout.h.
7683 * tree-tailcall.c: Include stor-layout.h.
7684 * tree-vect-data-refs.c: Include stor-layout.h.
7685 * tree-vect-generic.c: Include stor-layout.h.
7686 * tree-vect-loop.c: Include stor-layout.h.
7687 * tree-vect-patterns.c: Include stor-layout.h.
7688 * tree-vect-slp.c: Include stor-layout.h.
7689 * tree-vect-stmts.c: Include stor-layout.h.
7690 * tree-vectorizer.c: Include stor-layout.h.
7691 * tree-vrp.c: Include stor-layout.h.
7693 * tree.c: Include stor-layout.h.
7697 * tsan.c: Include expr.h.
7698 * ubsan.c: Include stor-layout.h.
7699 Include stringpool.h.
7700 * value-prof.c: Include tree-nested.h.
7702 * var-tracking.c: Include varasm.h.
7703 Include stor-layout.h.
7704 * varasm.c: Include stor-layout.h.
7705 Include stringpool.h.
7706 Include gcc-symtab.h.
7708 * varpool.c: Include varasm.h.
7709 * vmsdbgout.c: Include varasm.h.
7710 * xcoffout.c: Include varasm.h.
7712 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7714 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7717 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7719 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7721 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7722 Alan Modra <amodra@gmail.com>
7724 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7725 (RS6000_SAVE_TOC): Remove.
7726 (RS6000_TOC_SAVE_SLOT): New macro.
7727 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7728 (rs6000_parm_start): Use it.
7729 (rs6000_function_arg_advance_1): Likewise.
7730 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7731 (rs6000_emit_epilogue): Likewise.
7732 (rs6000_call_aix): Likewise.
7733 (rs6000_output_function_prologue): Do not save/restore r11
7734 around calling _mcount for ABI_ELFv2.
7736 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7737 Alan Modra <amodra@gmail.com>
7739 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7741 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7742 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7743 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7744 (rs6000_function_parms_need_stack): Likewise.
7745 (rs6000_reg_parm_stack_space): Likewise.
7746 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7747 returning a register argument.
7749 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7750 Michael Gschwind <mkg@us.ibm.com>
7752 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7753 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7754 (FUNCTION_VALUE_REGNO_P): Use them.
7755 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7756 (rs6000_return_in_msb): New function.
7757 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7758 Handle aggregates of up to 16 bytes for ELFv2.
7759 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7761 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7762 Michael Gschwind <mkg@us.ibm.com>
7764 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7765 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7766 (rs6000_discover_homogeneous_aggregate): Likewise.
7767 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7768 (rs6000_function_arg_advance_1): Likewise.
7769 (rs6000_function_arg): Likewise.
7770 (rs6000_arg_partial_bytes): Likewise.
7771 (rs6000_psave_function_arg): Handle BLKmode arguments.
7773 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7774 Michael Gschwind <mkg@us.ibm.com>
7776 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7777 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7778 (rs6000_discover_homogeneous_aggregate): Likewise.
7779 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7780 (rs6000_function_arg_advance_1): Likewise.
7781 (rs6000_function_arg): Likewise.
7782 (rs6000_arg_partial_bytes): Likewise.
7783 (rs6000_psave_function_arg): Handle BLKmode arguments.
7785 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7787 * config/rs6000/rs6000.c (machine_function): New member
7789 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7790 (rs6000_output_mi_thunk): Set r2_setup_needed.
7791 (rs6000_output_function_prologue): Output global entry point
7792 prologue and local entry point marker if needed for ABI_ELFv2.
7793 Output -mprofile-kernel code here.
7794 (output_function_profiler): Do not output -mprofile-kernel
7795 code here; moved to rs6000_output_function_prologue.
7796 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7798 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7799 (rs6000_output_function_entry): Likewise.
7800 (rs6000_assemble_integer): Likewise.
7801 (rs6000_elf_encode_section_info): Likewise.
7802 (rs6000_elf_declare_function_name): Do not create dot symbols
7803 or .opd section for ABI_ELFv2.
7805 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7806 (rs6000_trampoline_init): Likewise.
7807 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7809 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7810 for function descriptors in ABI_ELFv2.
7812 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7813 on ABI_AIX only, not ABI_ELFv2.
7814 ("*call_value_indirect_aix<mode>"): Likewise.
7815 ("*call_indirect_elfv2<mode>"): New pattern.
7816 ("*call_value_indirect_elfv2<mode>"): Likewise.
7818 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7819 check for function descriptors in ABI_ELFv2.
7820 ("current_file_function_operand"): Likewise.
7822 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7824 (FUNC_NAME): Define ELFv2 variant.
7825 (JUMP_TARGET): Likewise.
7826 (FUNC_START): Likewise.
7827 (HIDDEN_FUNC): Likewise.
7828 (FUNC_END): Likeiwse.
7830 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7832 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7833 and --with-abi=elfv2.
7834 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7835 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7836 (mabi=elfv2): Likewise.
7837 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7838 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7840 (ELFv2_ABI_CHECK): New macro.
7841 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7842 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7843 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7844 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7845 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7847 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7848 (debug_stack_info): Likewise.
7849 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7850 (rs6000_legitimize_tls_address): Likewise.
7851 (rs6000_conditional_register_usage): Likewise.
7852 (rs6000_emit_move): Likewise.
7853 (init_cumulative_args): Likewise.
7854 (rs6000_function_arg_advance_1): Likewise.
7855 (rs6000_function_arg): Likewise.
7856 (rs6000_arg_partial_bytes): Likewise.
7857 (rs6000_output_function_entry): Likewise.
7858 (rs6000_assemble_integer): Likewise.
7859 (rs6000_savres_strategy): Likewise.
7860 (rs6000_stack_info): Likewise.
7861 (rs6000_function_ok_for_sibcall): Likewise.
7862 (rs6000_emit_load_toc_table): Likewise.
7863 (rs6000_savres_routine_name): Likewise.
7864 (ptr_regno_for_savres): Likewise.
7865 (rs6000_emit_prologue): Likewise.
7866 (rs6000_emit_epilogue): Likewise.
7867 (rs6000_output_function_epilogue): Likewise.
7868 (output_profile_hook): Likewise.
7869 (output_function_profiler): Likewise.
7870 (rs6000_trampoline_size): Likewise.
7871 (rs6000_trampoline_init): Likewise.
7872 (rs6000_elf_output_toc_section_asm_op): Likewise.
7873 (rs6000_elf_encode_section_info): Likewise.
7874 (rs6000_elf_reloc_rw_mask): Likewise.
7875 (rs6000_elf_declare_function_name): Likewise.
7876 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7877 except that rs6000_compat_align_parm is always assumed false.
7878 (rs6000_gimplify_va_arg): Likewise.
7879 (rs6000_call_aix): Update comment.
7880 (rs6000_sibcall_aix): Likewise.
7881 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7882 Treat ABI_ELFv2 the same as ABI_AIX.
7883 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7884 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7885 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7886 ("load_toc_aix_si"): Likewise.
7887 ("load_toc_aix_di"): Likewise.
7889 ("call_value"): Likewise.
7890 ("*call_local_aix<mode>"): Likewise.
7891 ("*call_value_local_aix<mode>"): Likewise.
7892 ("*call_nonlocal_aix<mode>"): Likewise.
7893 ("*call_value_nonlocal_aix<mode>"): Likewise.
7894 ("*call_indirect_aix<mode>"): Likewise.
7895 ("*call_value_indirect_aix<mode>"): Likewise.
7896 ("sibcall"): Likewise.
7897 ("sibcall_value"): Likewise.
7898 ("*sibcall_aix<mode>"): Likewise.
7899 ("*sibcall_value_aix<mode>"): Likewise.
7900 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7901 ("current_file_function_operand"): Likewise.
7903 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7905 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7906 by making use of the fact that for vector / floating point arguments
7907 passed both in VRs/FPRs and in the fixed parameter area, the partial
7908 bytes mechanism is in fact not used.
7910 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7912 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7913 (rs6000_finish_function_arg): Likewise.
7914 (rs6000_function_arg): Use rs6000_psave_function_arg and
7915 rs6000_finish_function_arg to handle both vector and floating
7916 point arguments that are also passed in GPRs / the stack.
7918 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7920 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7921 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7922 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7923 (rs6000_function_arg_advance_1):Likewise.
7924 (rs6000_darwin64_record_arg_recurse): Likewise.
7925 (rs6000_function_arg): Likewise.
7926 (rs6000_arg_partial_bytes): Likewise.
7928 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7930 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7931 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7932 (rs6000_savres_strategy): Likewise.
7933 (rs6000_return_addr): Likewise.
7934 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7935 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7936 (rs6000_emit_prologue): Likewise.
7937 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7938 (rs6000_elf_declare_function_name): Remove duplicated test.
7939 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7940 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7941 ("load_toc_v4_PIC_1_normal"): Likewise.
7942 ("load_toc_v4_PIC_1_476"): Likewise.
7943 ("load_toc_v4_PIC_1b"): Likewise.
7944 ("load_toc_v4_PIC_1b_normal"): Likewise.
7945 ("load_toc_v4_PIC_1b_476"): Likewise.
7946 ("load_toc_v4_PIC_2"): Likewise.
7947 ("load_toc_v4_PIC_3b"): Likewise.
7948 ("load_toc_v4_PIC_3c"): Likewise.
7949 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7950 (RS6000_SAVE_AREA): Likewise.
7951 (FP_ARG_MAX_REG): Likewise.
7952 (RETURN_ADDRESS_OFFSET): Likewise.
7953 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7955 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7956 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7958 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7960 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7961 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7962 Create call insn directly instead of via various gen_... routines.
7963 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7964 (rs6000_sibcall_aix): New function.
7965 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7966 (TOC_SAVE_OFFSET_64BIT): Likewise.
7967 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7968 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7969 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7970 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7971 ("call" expander): Call rs6000_call_aix.
7972 ("call_value" expander): Likewise.
7973 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7974 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7975 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7976 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7977 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7978 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7979 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7980 ("*call_nonlocal_aix<mode>"): ... this pattern.
7981 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7982 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7983 ("*call_local_aix<mode>"): New insn pattern.
7984 ("*call_value_local_aix<mode>"): Likewise.
7985 ("sibcall" expander): Call rs6000_sibcall_aix.
7986 ("sibcall_value" expander): Likewise. Move earlier in file.
7987 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7988 ("*sibcall_aix<mode>"): ... this pattern.
7989 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7990 ("*sibcall_value_aix<mode>"): ... this pattern.
7991 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7992 (rs6000_call_aix): Add prototype.
7993 (rs6000_sibcall_aix): Likewise.
7995 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7998 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7999 isn't confused by the artificial decl.
8001 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8003 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8004 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8005 Instead, add USEs of all modified call-saved CR fields to the
8006 insn storing the result to the stack slot, and provide an
8007 appropriate REG_FRAME_RELATED_EXPR for that insn.
8008 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8009 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8011 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8012 Alan Modra <amodra@gmail.com>
8014 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8015 of re-evaluating REG_PARM_STACK_SPACE target macro.
8016 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8017 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8018 (assign_parm_find_entry_rtl): Update call.
8019 * calls.c (initialize_argument_information): Update call.
8020 (emit_library_call_value_1): Likewise.
8021 * expr.h (locate_and_pad_parm): Update prototype.
8023 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8025 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8028 2013-11-14 DJ Delorie <dj@redhat.com>
8030 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8033 2013-11-14 Jeff Law <law@redhat.com>
8035 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8036 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8038 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8040 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8043 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8045 * config/aarch64/aarch64-cores.def (example-1): Remove.
8046 (example-2): Likewise.
8047 * config/aarch64/aarch64-tune.md: Regenerate.
8048 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8049 (generic_sched): Remove "large", "small".
8050 * config/aarch64/large.md: Delete.
8051 * config/aarch64/small.md: Delete.
8053 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8055 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8056 * config/aarch64/aarch64-tune.md: Regenerate.
8057 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8058 (generic_sched): "no" if we are tuning for cortexa15.
8059 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8062 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8064 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8065 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8066 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8067 (all_cores): Use cortexa53 when tuning for "generic".
8068 (aarch64_override_options): Fix comment.
8069 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8070 * config/aarch64/aarch64-generic.md: Delete.
8072 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8074 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8076 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8078 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8079 (generic_rtx_cost_table): Remove.
8080 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8081 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8083 (cpu_rtx_cost_table): Remove.
8085 2013-11-14 Julian Brown <julian@codesourcery.com>
8086 Joey Ye <joey.ye@arm.com>
8088 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8089 (arm_v7m_tune): New.
8090 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8091 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8092 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8093 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8095 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8098 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8101 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8102 Uros Bizjak <ubizjak@gmail.com>
8105 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8106 operands[2] satisfies_constraint_Z that might have bit 31 set.
8108 2013-11-13 Jeff Law <law@redhat.com>
8110 PR tree-optimization/59102
8111 * gimple-ssa-isolate-paths.c
8112 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8113 gimple assignment before looking at gimple_assign_lhs.
8115 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8117 * ira.c: Add comment about threads at the top of file.
8119 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8121 * ira-color.c (coalesce_allocnos): Don't allocate and free
8124 2013-11-14 Tom de Vries <tom@codesourcery.com>
8126 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8127 equality for GIMPLE_ASSIGN.
8129 2013-11-14 Tom de Vries <tom@codesourcery.com>
8131 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8133 (gimple_equal_p): ... here.
8135 2013-11-14 Tom de Vries <tom@codesourcery.com>
8137 * trans-mem.c (is_tm_ending): New function.
8138 * gimple.h (is_tm_ending): Declare.
8139 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8141 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8143 2013-11-14 Tom de Vries <tom@codesourcery.com>
8145 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8147 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8149 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8150 (struct walk_stmt_info): Relocate here from gimple.h.
8151 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8152 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8153 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8154 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8155 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8156 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8157 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8158 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8159 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8160 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8161 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8162 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8163 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8164 (struct walk_stmt_info): Move to gimple-walk.h.
8165 (gimple_seq_set_location): Move to gimple.c
8166 * gimple-walk.c: New File.
8167 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8168 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8169 walk_stmt_load_store_ops): Relocate here from gimple.c.
8170 * gimple-iterator.c: Include gimple-iterator.h.
8171 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8172 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8173 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8175 (gimple_seq_set_location): Relocate from gimple.h.
8176 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8177 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8178 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8179 * Makefile.in (OBJS): Add gimple-walk.o
8180 * asan.c: Update Include list as required for gimple-iterator.h and
8182 * cfgexpand.c: Likewise.
8183 * cfgloop.c: Likewise.
8184 * cfgloopmanip.c: Likewise.
8185 * cgraph.c: Likewise.
8186 * cgraphbuild.c: Likewise.
8187 * cgraphunit.c: Likewise.
8188 * gimple-fold.c: Likewise.
8189 * gimple-low.c: Likewise.
8190 * gimple-pretty-print.c: Likewise.
8191 * gimple-ssa-isolate-paths.c: Likewise.
8192 * gimple-ssa-strength-reduction.c: Likewise.
8193 * gimple-streamer-in.c: Likewise.
8194 * gimple-streamer-out.c: Likewise.
8195 * gimplify.c: Likewise.
8196 * graphite-blocking.c: Likewise.
8197 * graphite-clast-to-gimple.c: Likewise.
8198 * graphite-dependences.c: Likewise.
8199 * graphite-interchange.c: Likewise.
8200 * graphite-optimize-isl.c: Likewise.
8201 * graphite-poly.c: Likewise.
8202 * graphite-scop-detection.c: Likewise.
8203 * graphite-sese-to-poly.c: Likewise.
8204 * graphite.c: Likewise.
8205 * ipa-inline-analysis.c: Likewise.
8206 * ipa-profile.c: Likewise.
8207 * ipa-prop.c: Likewise.
8208 * ipa-pure-const.c: Likewise.
8209 * ipa-split.c: Likewise.
8210 * lto-streamer-in.c: Likewise.
8211 * lto-streamer-out.c: Likewise.
8212 * omp-low.c: Likewise.
8213 * predict.c: Likewise.
8214 * profile.c: Likewise.
8216 * tracer.c: Likewise.
8217 * trans-mem.c: Likewise.
8218 * tree-call-cdce.c: Likewise.
8219 * tree-cfg.c: Likewise.
8220 * tree-cfgcleanup.c: Likewise.
8221 * tree-complex.c: Likewise.
8222 * tree-data-ref.c: Likewise.
8223 * tree-dfa.c: Likewise.
8224 * tree-eh.c: Likewise.
8225 * tree-emutls.c: Likewise.
8226 * tree-if-conv.c: Likewise.
8227 * tree-inline.c: Likewise.
8228 * tree-into-ssa.c: Likewise.
8229 * tree-loop-distribution.c: Likewise.
8230 * tree-nested.c: Likewise.
8231 * tree-nrv.c: Likewise.
8232 * tree-object-size.c: Likewise.
8233 * tree-outof-ssa.c: Likewise.
8234 * tree-parloops.c: Likewise.
8235 * tree-predcom.c: Likewise.
8236 * tree-profile.c: Likewise.
8237 * tree-scalar-evolution.c: Likewise.
8238 * tree-sra.c: Likewise.
8239 * tree-ssa-ccp.c: Likewise.
8240 * tree-ssa-coalesce.c: Likewise.
8241 * tree-ssa-copy.c: Likewise.
8242 * tree-ssa-copyrename.c: Likewise.
8243 * tree-ssa-dce.c: Likewise.
8244 * tree-ssa-dom.c: Likewise.
8245 * tree-ssa-dse.c: Likewise.
8246 * tree-ssa-forwprop.c: Likewise.
8247 * tree-ssa-ifcombine.c: Likewise.
8248 * tree-ssa-live.c: Likewise.
8249 * tree-ssa-loop-ch.c: Likewise.
8250 * tree-ssa-loop-im.c: Likewise.
8251 * tree-ssa-loop-ivcanon.c: Likewise.
8252 * tree-ssa-loop-ivopts.c: Likewise.
8253 * tree-ssa-loop-manip.c: Likewise.
8254 * tree-ssa-loop-niter.c: Likewise.
8255 * tree-ssa-loop-prefetch.c: Likewise.
8256 * tree-ssa-loop.c: Likewise.
8257 * tree-ssa-math-opts.c: Likewise.
8258 * tree-ssa-phiopt.c: Likewise.
8259 * tree-ssa-phiprop.c: Likewise.
8260 * tree-ssa-pre.c: Likewise.
8261 * tree-ssa-propagate.c: Likewise.
8262 * tree-ssa-reassoc.c: Likewise.
8263 * tree-ssa-sink.c: Likewise.
8264 * tree-ssa-strlen.c: Likewise.
8265 * tree-ssa-structalias.c: Likewise.
8266 * tree-ssa-tail-merge.c: Likewise.
8267 * tree-ssa-ter.c: Likewise.
8268 * tree-ssa-threadedge.c: Likewise.
8269 * tree-ssa-threadupdate.c: Likewise.
8270 * tree-ssa-uncprop.c: Likewise.
8271 * tree-ssa-uninit.c: Likewise.
8272 * tree-ssa.c: Likewise.
8273 * tree-stdarg.c: Likewise.
8274 * tree-switch-conversion.c: Likewise.
8275 * tree-tailcall.c: Likewise.
8276 * tree-vect-data-refs.c: Likewise.
8277 * tree-vect-generic.c: Likewise.
8278 * tree-vect-loop-manip.c: Likewise.
8279 * tree-vect-loop.c: Likewise.
8280 * tree-vect-patterns.c: Likewise.
8281 * tree-vect-slp.c: Likewise.
8282 * tree-vect-stmts.c: Likewise.
8283 * tree-vectorizer.c: Likewise.
8284 * tree-vrp.c: Likewise.
8287 * value-prof.c: Likewise.
8288 * vtable-verify.c: Likewise.
8290 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8292 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8295 2013-11-13 Jeff Law <law@redhat.com>
8297 * PR middle-end/59119
8298 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8299 function, extracted from gimple_ssa_isolate_erroneous_paths.
8300 (find_explicit_erroneous_behaviour): Similarly.
8301 (insert_trap_and_remove_trailing_statements): Remove statements
8304 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8306 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8307 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8308 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8309 looking at INSN_CODE.
8310 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8311 active_insn_p object, respect basic block boundaries.
8312 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8313 follows immediately after the jump table data label.
8314 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8315 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8316 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8318 2013-11-13 Teresa Johnson <tejohnson@google.com>
8321 * predict.c (drop_profile): Error is currently too strict.
8322 (handle_missing_profiles): Pass call_count to drop_profile.
8324 2013-11-13 Teresa Johnson <tejohnson@google.com>
8327 * ipa-inline.c (edge_badness): Fix overflow.
8329 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8331 PR rtl-optimization/59036
8332 * ira-color.c (struct allocno_color_data): Add new members
8333 first_thread_allocno, next_thread_allocno, thread_freq.
8334 (sorted_copies): New static var.
8335 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8336 (allocno_thread_conflict_p, merge_threads)
8337 (form_threads_from_copies, form_threads_from_bucket)
8338 (form_threads_from_colorable_allocno, init_allocno_threads): New
8340 (bucket_allocno_compare_func): Add comparison by thread frequency
8342 (add_allocno_to_ordered_bucket): Rename to
8343 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8344 (push_only_colorable): Call form_threads_from_bucket.
8345 (color_pass): Call init_allocno_threads. Use
8346 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8347 for nuillify allocno color data.
8348 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8349 (coalesce_allocnos): Use static sorted copies.
8351 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8353 * passes.c (execute_todo): Don't call do_per_function if
8355 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8356 execute_function_dump if dump_file is NULL.
8358 2013-11-13 Martin Jambor <mjambor@suse.cz>
8360 * cgraph.c (cgraph_get_create_node): Do what
8361 cgraph_get_create_real_symbol_node used to do.
8362 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8363 call cgraph_get_create_node.
8364 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8365 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8366 cgraph_get_create_node. Assert we get a node.
8368 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8370 * config/aarch64/aarch64-simd.md (vec_extract): New.
8372 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8374 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8377 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8379 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8380 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8381 or if optimization is enabled.
8382 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8383 require that all the names based on a PARM_DECL or a RESULT_DECL that
8384 isn't ignored for debug info be coalesced.
8386 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8388 * config/c6x/c6x.c: Include "gimple-expr.h".
8390 2013-11-13 Richard Biener <rguenther@suse.de>
8392 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8393 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8394 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8395 dealing with type mismatches inside component reference chains.
8397 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8399 PR tree-optimization/59077
8400 * ipa-pure-const.c (better_state): Update *state.
8402 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8404 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8405 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8406 Update offset calculations.
8408 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8411 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8412 for fields. Do not add the attribute if the size is negative.
8414 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8416 * config/arm/arm.c: Include aarch-cost-tables.h.
8417 (generic_extra_costs): Move from here...
8418 * config/arm/aarch-cost-tables.h: ... To here. New file.
8420 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8422 Sergey Lega <sergey.s.lega@intel.com>
8423 Anna Tikhonova <anna.tikhonova@intel.com>
8424 Ilya Tocar <ilya.tocar@intel.com>
8425 Andrey Turetskiy <andrey.turetskiy@intel.com>
8426 Ilya Verbin <ilya.verbin@intel.com>
8427 Kirill Yukhin <kirill.yukhin@intel.com>
8428 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8430 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8431 * config/i386/predicate.md (const_0_to_4_operand): New.
8432 (const_0_to_5_operand): Ditto.
8433 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8434 (UNSPEC_COMPRESS_STORE): Ditto.
8435 (UNSPEC_EXPAND): Ditto.
8436 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8437 (define_mode_attr ssescalarsize): Ditto.
8438 (avx512f_load<mode>_mask): Ditto.
8439 (avx512f_store<mode>_mask): Ditto.
8440 (avx512f_storedqu<mode>_mask): Ditto.
8441 (avx512f_vmcmp<mode>3_mask): Ditto.
8442 (avx512f_fmadd_<mode>_mask): Ditto.
8443 (avx512f_fmadd_<mode>_mask3): Ditto.
8444 (avx512f_fmsub_<mode>_mask): Ditto.
8445 (avx512f_fmsub_<mode>_mask3): Ditto.
8446 (avx512f_fnmadd_<mode>_mask): Ditto.
8447 (avx512f_fnmadd_<mode>_mask3): Ditto.
8448 (avx512f_fnmsub_<mode>_mask): Ditto.
8449 (avx512f_fnmsub_<mode>_mask3): Ditto.
8450 (avx512f_fmaddsub_<mode>_mask): Ditto.
8451 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8452 (avx512f_fmsubadd_<mode>_mask): Ditto.
8453 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8454 (vec_unpacku_float_lo_v16si): Ditto.
8455 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8456 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8457 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8458 (vec_extract_lo_<mode>_maskm): Ditto.
8459 (vec_extract_hi_<mode>_maskm): Ditto.
8460 (avx512f_vternlog<mode>_mask): Ditto.
8461 (avx512f_shufps512_mask): Ditto.
8462 (avx512f_fixupimm<mode>_mask): Ditto.
8463 (avx512f_shufpd512_mask): Ditto.
8464 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8465 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8466 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8467 (ashr<mode>3<mask_name>): Ditto.
8468 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8469 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8470 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8471 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8472 (avx512f_pshufdv3_mask): Ditto.
8473 (avx512f_perm<mode>_mask): Ditto.
8474 (avx512f_vpermi2var<mode>3_mask): Ditto.
8475 (avx512f_vpermt2var<mode>3_mask): Ditto.
8476 (avx512f_compress<mode>_mask): Ditto.
8477 (avx512f_compressstore<mode>_mask): Ditto.
8478 (avx512f_expand<mode>_mask): Ditto.
8479 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8481 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8482 (<plusminus_insn><mode>3<mask_name>): Ditto.
8483 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8484 (mul<mode>3<mask_name>): Ditto.
8485 (*mul<mode>3<mask_name>): Ditto.
8486 (<sse>_div<mode>3<mask_name>): Ditto.
8487 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8488 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8489 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8490 (<code><mode>3<mask_name>/smaxmin): Ditto.
8491 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8492 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8493 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8494 (ufloatv16siv16sf2<mask_name>): Ditto.
8495 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8496 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8497 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8498 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8499 (ufloatv8siv8df<mask_name>): Ditto.
8500 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8501 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8502 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8503 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8504 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8505 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8506 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8507 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8508 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8509 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8510 (vec_extract_lo_<mode><mask_name>): Ditto.
8511 (vec_extract_hi_<mode><mask_name>): Ditto.
8512 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8513 (avx512f_movddup512<mask_name>): Ditto.
8514 (avx512f_unpcklpd512<mask_name>): Ditto.
8515 (*avx512f_unpcklpd512<mask_name>): Ditto.
8516 (*avx512f_vmscalef<mode>): Ditto.
8517 (avx512f_scalef<mode><mask_name>): Ditto.
8518 (avx512f_getexp<mode><mask_name>): Ditto.
8519 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8520 (avx512f_rndscale<mode><mask_name>): Ditto.
8521 (avx512f_shufps512_1<mask_name>): Ditto.
8522 (avx512f_shufpd512_1<mask_name>): Ditto.
8523 (<plusminus_insn><mode>3<mask_name>): Ditto.
8524 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8525 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8526 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8527 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8528 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8529 (mul<mode>3<mask_name>): Ditto.
8530 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8531 (<shift_insn><mode>3<mask_name>): Ditto.
8532 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8533 (avx512f_<rotate><mode><mask_name>): Ditto.
8534 (<code><mode>3<mask_name>/maxmin): Ditto.
8535 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8536 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8537 (*andnot<mode>3<mask_name>): Ditto.
8538 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8539 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8540 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8541 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8542 (vec_set_lo_<mode><mask_name>): Ditto.
8543 (vec_set_hi_<mode><mask_name>): Ditto.
8544 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8545 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8546 (avx512f_pshufd_1<mask_name>): Ditto.
8547 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8548 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8549 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8550 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8551 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8552 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8553 (avx512er_exp2<mode><mask_name>): Ditto.
8554 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8555 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8556 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8557 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8558 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8559 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8560 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8561 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8562 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8563 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8564 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8565 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8566 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8567 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8568 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8569 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8570 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8571 (avx512f_getmant<mode><mask_name>): Ditto.
8572 (clz<mode>2<mask_name>): Ditto.
8573 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8574 (*srcp14<mode>): Remove visibility.
8575 (*rsqrt14<mode>): Ditto.
8576 (*fma_fmsub_<mode>): Ditto.
8577 (*fma_fnmadd_<mode>): Ditto.
8578 (*avx512f_rndscale<mode>): Ditto.
8579 * config/i386/subst.md: New file.
8581 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8583 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8584 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8585 (atomic_load_explicit, atomic_exchange_explicit)
8586 (atomic_compare_exchange_strong_explicit)
8587 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8588 declare variable initialized with PTR argument.
8590 2013-11-12 Jeff Law <law@redhat.com>
8592 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8593 backedge_seen_p. Set, use and pass it to children appropriately.
8594 (thread_through_normal_block): Similarly.
8595 (thread_across_edge): Similarly.
8597 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8598 memory references as volatile.
8599 (insert_trap_and_remove_trailing_statements): Fix comment.
8601 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8604 * ira-costs.c (record_operand_costs): Check operands number for
8607 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8610 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8611 constraints that would allow DImode into the traditional Altivec
8612 registers, but cause undesirable code generation when loading 0 as
8614 (movdi_internal64): Likewise.
8615 (cmp<mode>_fpr): Do not use %x for CR register output.
8616 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8617 -mallow-upper-sf debug switches are used.
8619 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8621 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8622 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8623 Relocate prototypes from gimple.h.
8624 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8625 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8627 * gimple.h: Move some prototypes to gimplify.h.
8628 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8630 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8631 Relocate from gimpify.c.
8632 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8633 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8634 is_gimple_reg_rhs) Relocate from gimplify.c.
8635 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8636 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8637 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8638 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8639 is_gimple_reg_rhs): Move to gimple-expr.c.
8640 (should_carry_location_p): Move to gimple.c.
8641 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8643 (annotate_one_with_location, annotate_all_with_location_after,
8644 annotate_all_with_location): Move to gimple.c.
8645 (compare_case_labels, sort_case_labels,
8646 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8647 (rhs_predicate_for): Make static.
8648 (gimplify_assign): Relocate from gimple.c.
8649 * gimple.c (gimplify_assign): Move to gimplify.c.
8650 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8651 annotate_one_with_location, annotate_all_with_location_after,
8652 annotate_all_with_location, compare_case_labels, sort_case_labels,
8653 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8654 * tree.h (unshare_expr, unshare_expr_without_location,
8655 mark_addressable): Move prototypes to gimplify.h.
8656 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8658 * asan.c: Include gimplify.h rather than gimple.h.
8659 * cfgloopmanip.c: Likewise.
8660 * cgraphunit.c: Likewise.
8661 * cilk-common.c: Likewise.
8662 * dwarf2out.c: Dont include gimple.h.
8663 * fold-const.c: Include gimplify.h rather than gimple.h.
8664 * function.c: Likewise.
8665 * gimple-fold.c: Likewise.
8666 * gimple-ssa-strength-reduction.c: Likewise.
8667 * graphite-clast-to-gimple.c: Likewise.
8668 * graphite-sese-to-poly.c: Likewise.
8669 * ipa-prop.c: Likewise.
8670 * ipa-split.c: Likewise.
8672 * langhooks.c: Dont include gimple.h.
8673 * loop-init.c: Include gimplify.h rather than gimple.h.
8674 * omp-low.c: Likewise.
8676 * stor-layout.c: Likewise.
8677 * targhooks.c: Likewise.
8678 * trans-mem.c: Likewise.
8679 * tree-affine.c: Likewise.
8680 * tree-cfg.c: Likewise.
8681 * tree-cfgcleanup.c: Likewise.
8682 * tree-complex.c: Likewise.
8683 * tree-if-conv.c: Likewise.
8684 * tree-inline.c: Likewise.
8685 * tree-iterator.c: Likewise.
8686 * tree-loop-distribution.c: Likewise.
8687 * tree-nested.c: Likewise.
8688 * tree-parloops.c: Likewise.
8689 * tree-predcom.c: Likewise.
8690 * tree-profile.c: Likewise.
8691 * tree-scalar-evolution.c: Likewise.
8692 * tree-sra.c: Likewise.
8693 * tree-ssa-address.c: Likewise.
8694 * tree-ssa-ccp.c: Likewise.
8695 * tree-ssa-dce.c: Likewise.
8696 * tree-ssa-forwprop.c: Likewise.
8697 * tree-ssa-ifcombine.c: Likewise.
8698 * tree-ssa-loop-im.c: Likewise.
8699 * tree-ssa-loop-ivopts.c: Likewise.
8700 * tree-ssa-loop-manip.c: Likewise.
8701 * tree-ssa-loop-niter.c: Likewise.
8702 * tree-ssa-loop-prefetch.c: Likewise.
8703 * tree-ssa-loop-unswitch.c: Likewise.
8704 * tree-ssa-math-opts.c: Likewise.
8705 * tree-ssa-phiopt.c: Likewise.
8706 * tree-ssa-phiprop.c: Likewise.
8707 * tree-ssa-pre.c: Likewise.
8708 * tree-ssa-propagate.c: Likewise.
8709 * tree-ssa-reassoc.c: Likewise.
8710 * tree-ssa-sccvn.c: Likewise.
8711 * tree-ssa-strlen.c: Likewise.
8712 * tree-ssa.c: Likewise.
8713 * tree-switch-conversio: Likewise.n.c
8714 * tree-tailcall.c: Likewise.
8715 * tree-vect-data-refs.c: Likewise.
8716 * tree-vect-generic.c: Likewise.
8717 * tree-vect-loop-manip.c: Likewise.
8718 * tree-vect-loop.c: Likewise.
8719 * tree-vect-patterns.c: Likewise.
8720 * tree-vect-stmts.c: Likewise.
8722 * value-prof.c: Likewise.
8723 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8724 * config/alpha/alpha.c: Likewise.
8725 * config/darwin.c: Likewise.
8726 * config/i386/i386.c: Likewise.
8727 * config/ia64/ia64.c: Likewise.
8728 * config/mep/mep.c: Likewise.
8729 * config/mips/mips.c: Likewise.
8730 * config/rs6000/rs6000.c: Likewise.
8731 * config/s390/s390.c: Likewise.
8732 * config/sh/sh.c: Likewise.
8733 * config/sparc/sparc.c: Likewise.
8734 * config/spu/spu.c: Likewise.
8735 * config/stormy16/stormy16.c: Likewise.
8736 * config/tilegx/tilegx.c: Likewise.
8737 * config/tilepro/tilepro.c: Likewise.
8738 * config/xtensa/xtensa.c: Likewise.
8740 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8742 * tree.c (grow_tree_vec_stat): New function ...
8743 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8744 and macro front-end.
8746 2013-11-12 Marek Polacek <polacek@redhat.com>
8748 * final.c (update_alignments): Initialize label to NULL_RTX.
8750 2013-11-12 Jeff Law <law@redhat.com>
8752 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8753 (insert_trap_and_remove_trailing_statements): New argument OP which
8754 is the NULL pointer. Emit the trap after the load/store through
8755 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8756 when trivial to do so.
8757 (isolate_path): Corresponding changes.
8758 (gimple_ssa_isolate_erroneous_path): Likewise.
8760 2013-11-12 Teresa Johnson <tejohnson@google.com>
8761 Jan Hubicka <jh@suse.cz>
8763 * predict.c (drop_profile): New function.
8764 (handle_missing_profiles): Ditto.
8765 (counts_to_freqs): Don't overwrite estimated frequencies
8766 when function has no profile counts.
8767 * predict.h (handle_missing_profiles): Declare.
8768 * tree-inline.c (freqs_to_counts): New function.
8769 (copy_cfg_body): Invoke freqs_to_counts as needed.
8770 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8772 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8775 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8777 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8779 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8782 * config/i386/i386.c (ix86_option_override_internal): Check
8783 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8784 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8785 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8786 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8788 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8789 Clear m_COREI7_AVX and update comments.
8790 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8792 2013-11-12 Martin Jambor <mjambor@suse.cz>
8794 PR rtl-optimization/10474
8795 * ira.c (interesting_dest_for_shprep): New function.
8796 (split_live_ranges_for_shrink_wrap): Likewise.
8797 (find_moveable_pseudos): Move calculation of dominance info,
8798 df_analysios and the final anlyses to...
8799 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8801 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8803 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8804 Handle type conversion.
8806 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8807 Jan Hubicka <jh@suse.cz>
8809 * cgraph.c (dump_cgraph_node): Profile dump added.
8810 * cgraph.h (struct cgraph_node): New time profile variable added.
8811 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8812 * gcov-io.h (gcov_type): New profiler type introduced.
8813 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8814 (input_node): Time profiler is read from LTO stream.
8815 * predict.c (maybe_hot_count_p): Hot prediction changed.
8816 * profile.c (instrument_values): New case for time profiler added.
8817 (compute_value_histograms): Read of time profile.
8818 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8819 * tree-profile.c (init_ic_make_global_vars): Time profiler
8821 (gimple_init_edge_profiler): TP function instrumentation.
8822 (gimple_gen_time_profiler): New.
8823 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8825 (dump_histogram_value): TP type added to dumps.
8826 (visit_hist): More sensitive check that takes TP into account.
8827 (gimple_find_values_to_profile): TP instrumentation.
8828 * value-prof.h (hist_type): New histogram type added.
8829 (struct histogram_value_t): Pointer to struct function added.
8830 * libgcc/Makefile.in: New GCOV merge function for TP added.
8831 * libgcov.c: function_counter variable introduced.
8832 (_gcov_merge_time_profile): New.
8833 (_gcov_time_profiler): New.
8835 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8836 Jeff Law <law@redhat.com>
8838 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8839 ao_ref_init_from_ptr_and_size for builtins.
8841 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8842 H.J. Lu <hongjiu.lu@intel.com>
8845 * config/i386/x86-tune.def
8846 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8847 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8848 * config/i386/i386.h
8849 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8850 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8851 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8852 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8853 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8854 misaligned_prologue_used. Check that
8855 desired_aling <= epilogue_size_needed.
8857 2013-11-11 Cong Hou <congh@google.com>
8859 PR tree-optimization/59050
8860 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8862 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8865 * expmed.c (emit_store_flag): Fail for const-const comparison.
8867 2013-11-11 Tristan Gingold <gingold@adacore.com>
8868 Eric Botcazou <ebotcazou@adacore.com>
8870 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8871 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8872 * tree.def (CONSTRUCTOR): Likewise.
8873 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8874 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8875 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8877 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8879 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8882 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8884 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8887 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8889 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8891 2013-11-08 Jeff Law <law@redhat.com>
8893 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8894 threading paths first, then perform PHI node checks if applicable.
8896 2013-11-10 Karlson2k <k2k@narod.ru>
8897 Kai Tietz <ktietz@redhat.com>
8900 * configure.ac: Adding for exported symbols check
8901 and for rdynamic-check executable-extension.
8902 * configure: Regenerated.
8904 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8906 * mode-switching.c (optimize_mode_switching): Mark block as
8907 nontransparent, if last_mode at block exit is different from no_mode.
8909 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8911 * function.c (NAME__MAIN): Move to...
8912 * cfgexpand.c (NAME__MAIN): ...here.
8914 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8916 * target.def (can_use_doloop_p): New hook.
8917 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8918 * doc/tm.texi: Regenerate.
8919 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8920 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8921 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8922 * targhooks.h (can_use_doloop_if_innermost): Declare.
8923 * targhooks.c (can_use_doloop_if_innermost): New function.
8924 * target.h: Include double-int.h.
8925 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8926 Remove iteration count, maximum iteration count, loop depth and
8927 enter-at-top inputs from doloop_begin and doloop_end.
8928 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8930 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8931 (TARGET_CAN_USE_DOLOOP_P): Define.
8932 * config/arm/thumb2.md (doloop_end): Update for new interface.
8933 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8934 * config/bfin/bfin.md (doloop_end): Update for new interface.
8935 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8936 (TARGET_CAN_USE_DOLOOP_P): Define.
8937 * config/c6x/c6x.md (doloop_end): Update for new interface.
8938 * config/ia64/ia64.md (doloop_end): Update for new interface.
8939 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8940 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8942 * config/mep/mep.c (mep_emit_doloop): Likewise.
8943 (TARGET_CAN_USE_DOLOOP_P): Define.
8944 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8945 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8946 * config/s390/s390.md (doloop_end): Update for new interface.
8947 * config/sh/sh.md (doloop_end): Likewise.
8948 * config/spu/spu.md (doloop_end): Likewise.
8949 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8950 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8951 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8952 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8953 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8954 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8956 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8958 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8961 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8964 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8965 Joseph Myers <joseph@codesourcery.com>
8967 * ginclude/stdatomic.h: New file.
8968 * Makefile.in (USER_H): Add stdatomic.h.
8970 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8972 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8975 2013-11-08 Jeff Law <law@redhat.com>
8977 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8978 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8979 (ssa_redirect_edges, thread_block_1): Use it.
8980 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8981 (thread_through_all_blocks, register_jump_thread): Likewise.
8982 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8984 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8986 * config/arm/aarch-common.c
8987 (search_term): New typedef.
8988 (shift_rtx_costs): New array.
8989 (arm_rtx_shift_left_p): New.
8990 (arm_find_sub_rtx_with_search_term): Likewise.
8991 (arm_find_sub_rtx_with_code): Likewise.
8992 (arm_early_load_addr_dep): Add sanity checking.
8993 (arm_no_early_alu_shift_dep): Likewise.
8994 (arm_no_early_alu_shift_value_dep): Likewise.
8995 (arm_no_early_mul_dep): Likewise.
8996 (arm_no_early_store_addr_dep): Likewise.
8998 2013-11-08 Richard Biener <rguenther@suse.de>
9000 PR tree-optimization/59047
9001 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9003 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9005 * common.opt (fcheck-pointer-bounds): Move to ...
9006 * c-family/c.opt: ... here.
9007 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9008 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9009 * langhooks.h (lang_hooks): Remove chkp_supported field.
9010 * toplev.c (process_options): Remove chkp_supported check.
9012 2013-11-08 Richard Biener <rguenther@suse.de>
9014 PR tree-optimization/59038
9015 PR tree-optimization/58955
9016 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9017 previous change. Handle known dependences correctly.
9019 2013-11-08 Tom de Vries <tom@codesourcery.com>
9021 * config/rs6000/t-xilinx: Remove duplicate contents.
9023 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9024 Joseph Myers <joseph@codesourcery.com>
9026 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9027 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9028 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9029 (struct tree_base): Add atomic_flag field.
9030 * tree.h (TYPE_ATOMIC): New accessor macro.
9031 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9032 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9033 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9034 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9035 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9036 (find_atomic_core_type): New function.
9037 (build_qualified_type): Adjust alignment for qualified types.
9038 (build_atomic_base): New function
9039 (build_common_tree_nodes): Build atomicQI_type_node,
9040 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9042 * print-tree.c (print_node): Print atomic qualifier.
9043 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9044 * target.def (atomic_assign_expand_fenv): New hook.
9045 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9046 * doc/tm.texi: Regenerate.
9047 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9048 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9049 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9050 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9052 * config/i386/i386.c (enum ix86_builtins): Add
9053 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9054 IX86_BUILTIN_FNCLEX.
9055 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9056 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9057 (ix86_expand_builtin): Handle the new built-in functions.
9058 (ix86_atomic_assign_expand_fenv): New function.
9059 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9060 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9061 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9062 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9064 2013-11-07 Steve Ellcey <sellcey@mips.com>
9066 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9067 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9068 (MULTILIB_DIRNAMES): Add fp64 directory.
9069 (MULTILIB_EXCEPTIONS): Add new exclusions.
9071 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9073 * gimplify.c (gimple_regimplify_operands): Do not set
9075 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9076 (rewrite_close_phi_out_of_ssa): Same.
9077 (rewrite_phi_out_of_ssa): Same.
9078 (rewrite_degenerate_phi): Same.
9079 (handle_scalar_deps_crossing_scop_limits): Same.
9080 * tree-if-conv.c (predicate_scalar_phi): Same.
9081 * tree-parloops.c (create_loads_for_reductions): Same.
9082 (create_final_loads_for_reduction): Same.
9083 (create_loads_and_stores_for_name): Same.
9084 (transform_to_exit_first_loop): Same.
9085 (create_parallel_loop): Same.
9086 * tree-ssa-loop-im.c
9087 (move_computations_dom_walker::before_dom_children): Same.
9088 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9089 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9090 * tree-ssa-propagate.c (substitute_and_fold): Same.
9091 * tree-vect-loop.c (vect_finalize_reduction): Same.
9092 * tree-vect-stmts.c (vectorizable_call): Same.
9094 2013-11-07 Mike Stump <mikestump@comcast.net>
9096 * config/pdp11/pdp11.c: Include dbxout.h.
9097 * config/picochip/picochip.c: Likewise.
9099 2013-11-07 Cong Hou <congh@google.com>
9101 PR tree-optimization/56764
9102 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9103 Combine alias checks if it is possible to amortize the runtime
9104 overhead. Return the number of alias checks after merging.
9105 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9106 Use the function vect_create_cond_for_alias_checks () to check
9107 the number of alias checks.
9109 2013-11-07 Jeff Law <law@redhat.com>
9111 * varpool.c (ctor_for_folding): Fix typo in comment.
9113 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9115 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9116 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9118 2013-11-07 Jeff Law <law@redhat.com>
9120 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9122 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9123 No longer check if we have __builtin_trap, assume it's available.
9125 2013-11-07 Diego Novillo <dnovillo@google.com>
9127 * attribs.c (lookup_scoped_attribute_spec): Make static.
9128 (get_attribute_namespace): Likewise.
9129 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9130 (validate_arglist): Move earlier in the file. Make static.
9131 (expand_stack_restore): Move from stmt.c
9132 (expand_stack_save): Move from stmt.c
9133 (rewrite_call_expr_array): Move earlier in the file.
9134 (rewrite_call_expr_valist): Likewise.
9135 * cfgexpand.c: Include hard-reg-set.h before tree.h
9138 (expand_asm_loc): Move from stmt.c.
9139 (n_occurrences): Move from stmt.c.
9140 (check_operand_nalternatives): Move from stmt.c.
9141 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9142 (expand_asm_operands): Move from stmt.c
9143 (expand_asm_stmt): Move from stmt.c
9144 (expand_computed_goto): Move from stmt.c
9145 (expand_goto): Move from stmt.c
9146 (expand_null_return_1): Move from stmt.c
9147 (expand_null_return): Move from stmt.c
9148 (expand_value_return): Move from stmt.c
9149 (expand_return): Move from stmt.c
9150 (expand_main_function): Move from function.c
9151 (stack_protect_prologue): Move from function.c
9152 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9153 (build_function_decl_skip_args): Move from tree.c.
9154 * explow.c (tree_expr_size): Move from tree.c.
9155 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9156 (fields_length): Move from tree.c.
9157 * fold-const.c (size_low_cst): Move from tree.c.
9158 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9159 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9160 (fold_build3_initializer_loc): Remove.
9161 (tree_invalid_nonnegative_warnv_p): Make static.
9162 * function.c (expand_main_function): Move to cfgexpand.c.
9163 (stack_protect_prologue): Move to cfgexpand.c.
9164 (set_insn_locations): Move earlier in the file.
9165 * gimple-fold.c: Include langhooks.h.
9166 (truth_type_for): Move from tree.c.
9167 * print-tree.c (print_vec_tree): Remove.
9168 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9169 (expand_goto): Move to cfgexpand.c.
9170 (n_occurrences): Move to cfgexpand.c.
9171 (expand_asm_loc): Move to cfgexpand.c
9172 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9173 (expand_asm_operands): Move to cfgexpand.c.
9174 (expand_asm_stmt): Move to cfgexpand.c.
9175 (check_operand_nalternatives): Move to cfgexpand.c
9176 (expand_null_return): Move to cfgexpand.c.
9177 (expand_value_return): Move to cfgexpand.c.
9178 (expand_null_return_1): Move to cfgexpand.c.
9179 (expand_return): Move to cfgexpand.c.
9180 (expand_stack_save): Move to builtins.c.
9181 (expand_stack_restore): Move to builtins.c
9182 * symtab.c: Include output.h.
9183 (decl_assembler_name_hash): Move from tree.c.
9184 (decl_assembler_name_equal): Move from tree.c.
9185 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9186 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9187 (range_in_array_bounds_p): Move from tree.c.
9188 * tree-object-size.c (fini_object_sizes): Make static.
9189 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9190 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9191 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9192 (tree_expr_size): Move to explow.c.
9193 (decl_assembler_name_hash): Move to symtab.c.
9194 (real_twop): Remove.
9195 (tree_expr_size): Move to explow.c.
9196 (stabilize_reference_1): Move earlier in the file. Make static.
9197 (omp_remove_redundant_declare_simd_attrs): Remove.
9198 (simple_cst_list_equal): Move earlier in the file. Make static.
9199 (size_low_cst): Move to fold-const.c.
9200 (build_type_no_quals): Remove.
9201 (build_function_type_skip_args): Move to cgraphclones.c.
9202 (build_function_decl_skip_args): Move to cgraphclones.c.
9203 (in_array_bounds_p): Move to tree-eh.c.
9204 (range_in_array_bounds_p): Move to tree-eh.c.
9205 (truth_type_for): Move to gimple-fold.c.
9206 (list_equal_p): Remove.
9207 * tree.h (decl_assembler_name_equal): Remove.
9208 (decl_assembler_name_hash): Remove.
9209 (truth_type_for): Remove.
9210 (build_type_no_quals): Remove.
9211 (build_function_decl_skip_args): Remove.
9212 (in_array_bounds_p): Remove.
9213 (range_in_array_bounds_p): Remove.
9214 (size_low_cst): Remove.
9215 (omp_remove_redundant_declare_simd_attrs): Remove.
9216 (tree_expr_size): Remove.
9217 (fields_length): Remove.
9218 (stabilize_reference_1): Remove.
9219 (expand_goto): Remove.
9220 (expand_stack_save): Remove.
9221 (expand_stack_restore): Remove.
9222 (expand_return): Remove.
9223 (fold_build3_initializer_loc): Remove.
9224 (tree_expr_nonzero_p): Remove.
9225 (tree_invalid_nonnegative_warnv_p): Remove.
9226 (tree_expr_nonzero_warnv_p): Remove.
9227 (fold_builtin_snprintf_chk): Remove.
9228 (validate_arglist): Remove.
9229 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9230 (simple_cst_list_equal): Remove.
9231 (real_twop): Remove.
9232 (expand_main_function): Remove.
9233 (stack_protect_prologue): Remove.
9234 (print_vec_tree): Remove.
9235 (lookup_scoped_attribute_spec): Remove.
9236 (get_attribute_namespace): Remove.
9237 (expand_computed_goto): Remove.
9238 (expand_asm_stmt): Remove.
9239 (list_equal_p): Remove.
9240 (ssa_name_nonnegative_p): Remove.
9241 (fini_object_sizes): Remove.
9242 (addr_expr_of_non_mem_decl_p): Remove.
9243 (is_tm_safe_or_pure): Move to trans-mem.c.
9244 (more_const_call_expr_args_p): Remove.
9245 (save_vtable_map_decl): Remove.
9247 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9249 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9250 linker plugins, too.
9252 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9253 link to libgomp and its dependencies.
9254 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9255 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9256 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9257 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9259 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9261 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9262 (determine_value_range): Add loop argument. Use get_range_info to
9264 (bound_difference): Adjust caller.
9266 2013-11-07 Richard Biener <rguenther@suse.de>
9267 Jakub Jelinek <jakub@redhat.com>
9269 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9270 latches from header PHI arguments from the latch edge.
9272 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9275 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9277 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9279 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9280 misaligned_prologue_used when it has been set.
9282 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9283 Jakub Jelinek <jakub@redhat.com>
9286 * asan.c (get_mem_refs_of_builtin_call): Allow
9287 integer literals as addresses in instrumented builtins.
9289 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9291 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9292 Explain why plus_constant is not used.
9294 2013-11-07 Richard Biener <rguenther@suse.de>
9296 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9297 (canonicalize_value): ... this. Also handle stripping of
9299 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9300 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9301 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9303 2013-11-07 Richard Biener <rguenther@suse.de>
9305 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9307 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9310 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9311 with stack_pointer_rtx.
9313 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9315 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9316 using operand_equal_p.
9318 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9320 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9321 * tree-affine.c (get_inner_reference_aff): Return base.
9322 * tree-affine.h (get_inner_reference_aff): Change prototype.
9324 2013-11-06 Tobias Burnus <burnus@net-b.de>
9326 * doc/invoke.texi (Wdate-time): Fix typo.
9328 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9330 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9331 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9332 fp_arith_reg_operand instead of arith_reg_operand.
9334 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9336 * config/sh/sh.md (adddi3): Remove empty constraints.
9337 Remove can_create_pseudo_p and arith_reg_operand check.
9338 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9339 Split before reload.
9341 2013-11-06 Jeff Law <law@redhat.com>
9342 Tom Tromey <tromey@redhat.com>
9344 * gdbinit.in: Disable strict type checking.
9346 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9348 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9349 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9350 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9351 (rest_of_handle_live_range_shrinkage): Ditto
9352 (class pass_live_range_shrinkage): Ditto.
9353 (pass_data_live_range_shrinkage): Ditto.
9354 (make_pass_live_range_shrinkage): Ditto.
9355 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9356 (finish_live_range_shrinkage): Ditto.
9357 * sched-deps.c (create_insn_reg_set): Make void return value.
9358 * passes.def: Add pass_live_range_shrinkage.
9359 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9360 * haifa-sched.c (live_range_shrinkage_p): New.
9361 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9363 (rank_for_schedule): Add code for pressure relief through live
9365 (schedule_insn): Print more debug info.
9366 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9367 through live range shrinkage.
9368 * doc/invoke.texi (-flive-range-shrinkage): New.
9369 * common.opt (flive-range-shrinkage): New.
9371 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9374 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9375 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9376 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9377 RTXes that return in AVX256 register.
9379 2013-11-06 Richard Biener <rguenther@suse.de>
9381 PR tree-optimization/58653
9382 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9383 (prepare_initializers_chain): Adjust.
9385 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9387 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9388 (gimple_in_transaction): Use bb_in_transaction.
9389 * basic-block.h (bb_in_transaction): Relocate here and rename.
9390 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9392 2013-11-06 Richard Biener <rguenther@suse.de>
9394 * tree.c (drop_tree_overflow): New function.
9395 * tree.h (drop_tree_overflow): Declare.
9396 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9397 * tree-vrp.c (range_int_cst_singleton_p): Use
9398 is_overflow_infinity instead of testing TREE_OVERFLOW.
9399 (extract_range_from_assert): Likewise.
9400 (zero_nonzero_bits_from_vr): Likewise.
9401 (extract_range_basic): Likewise.
9402 (register_new_assert_for): Use drop_tree_overflow.
9403 (vrp_visit_phi_node): Likewise.
9405 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9407 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9408 checking for leaf functions without dynamic stack allocation.
9409 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9410 (ia64_expand_prologue): Likewise.
9411 * config/mips/mips.c (mips_expand_prologue): Likewise.
9412 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9413 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9414 (sparc_flat_expand_prologue): Likewise.
9416 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9418 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9419 (__ST3_LANE_FUNC): Likewise.
9420 (__ST4_LANE_FUNC): Likewise.
9422 2013-11-06 Nick Clifton <nickc@redhat.com>
9424 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9425 name returned by msp430_mcu_name.
9426 (LIB_SPEC): If a -T option has not been specified then set a
9427 default, mcu-specific, linker script.
9428 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9429 * config/msp430/msp430.c (msp430x_names): Likewise.
9430 Alpha sort the names for ease of comparison.
9431 (msp430_mcu_name): New function: Returns a string suitable for
9432 use as a C preprocessor symbol based upon the name of the MCU
9434 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9436 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9438 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9439 unless it is the last part of a spec substring.
9440 * doc/invoke.texi (Spec Files): Document space insertion
9443 2013-11-06 Christian Bruel <christian.bruel@st.com>
9445 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9446 Factorize probabilities, Use adjust_address instead of
9447 adjust_automodify_address when possible. Enable for optimize.
9448 (sh_expand_strlen): New function.
9449 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9450 * config/sh/sh.md (strlensi): New pattern.
9451 (UNSPEC_BUILTIN_STRLEN): Define.
9453 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9456 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9457 (expand_assignment): If *bitpos is negative, set *offset
9458 and adjust *bitpos, so that it is not negative.
9460 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9462 * config/i386/bdver3.md : Added two additional decoder units
9463 to support issue rate of 4 and remodeled vector unit.
9464 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9465 architectures is set to 4.
9466 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9467 lookahead is set to 4 for BD architectures.
9469 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9471 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9472 Remove restriction against use of VSX instructions when generating
9473 code for little endian mode.
9475 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9477 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9478 for both big and little endian.
9479 (mulv8hi3): Swap input operands for merge high and merge low
9480 instructions for little endian.
9482 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9484 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9485 define_insn to define_expand that uses even patterns for big
9486 endian and odd patterns for little endian.
9487 (vec_widen_smult_even_v16qi): Likewise.
9488 (vec_widen_umult_even_v8hi): Likewise.
9489 (vec_widen_smult_even_v8hi): Likewise.
9490 (vec_widen_umult_odd_v16qi): Likewise.
9491 (vec_widen_smult_odd_v16qi): Likewise.
9492 (vec_widen_umult_odd_v8hi): Likewise.
9493 (vec_widen_smult_odd_v8hi): Likewise.
9494 (altivec_vmuleub): New define_insn.
9495 (altivec_vmuloub): Likewise.
9496 (altivec_vmulesb): Likewise.
9497 (altivec_vmulosb): Likewise.
9498 (altivec_vmuleuh): Likewise.
9499 (altivec_vmulouh): Likewise.
9500 (altivec_vmulesh): Likewise.
9501 (altivec_vmulosh): Likewise.
9503 2013-11-05 Mike Stump <mikestump@comcast.net>
9505 * Makefile.in (mostlyclean): Remove c-family objects.
9507 2013-11-05 Ian Lance Taylor <iant@google.com>
9509 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9510 If possible, add .cfi directives to record change to bx.
9511 * config/i386/i386.c (ix86_emit_cfi): New function.
9512 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9514 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9516 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9517 immediately after a label for a tablejump pattern.
9519 * config/arm/arm.c (is_jump_table): Remove.
9520 (create_fix_barrier): Use tablejump_p instead.
9521 (arm_reorg): Likewise.
9522 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9523 (thumb2_output_casesi): Likewise.
9524 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9525 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9526 casesi_shift_media, casesi_load_media): Likewise.
9527 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9528 * config/microblaze/microblaze.md: Likewise.
9530 2013-11-05 Tobias Burnus <burnus@net-b.de>
9532 * doc/invoke.texi (-Wdate-time): Document.
9534 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9536 * double-int.c (lshift_double, rshift_double): Remove
9537 SHIFT_COUNT_TRUNCATED handling.
9539 2013-11-05 Jeff Law <law@redhat.com>
9541 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9542 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9543 * gimple-ssa-isolate-paths.c: New file.
9544 * gimple.c (check_loadstore): New function.
9545 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9546 Verify OP is in the argument list and the argument corresponding
9547 to OP is a pointer type. Use operand_equal_p rather than
9548 pointer equality when testing if OP is on the nonnull list.
9549 Use check_loadstore rather than count_ptr_derefs. Handle
9550 GIMPLE_RETURN statements.
9551 * tree-vrp.c (infer_nonnull_range): Remove.
9552 * gimple.h (infer_nonnull_range): Declare.
9553 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9554 * passes.def: Add pass_isolate_erroneous_paths.
9555 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9556 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9557 * tree-ssa.c (struct count_ptr_d): Remove.
9558 (count_ptr_derefs, count_uses_and_derefs): Remove.
9559 * tree-ssa.h (count_uses_and_derefs): Remove.
9561 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9563 PR rtl-optimization/58997
9564 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9565 get_iv_value to be in iv->mode rather than iv->extend_mode.
9566 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9567 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9568 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9571 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9573 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9575 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9576 Move to gimple-expr.h.
9577 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9578 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9579 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9580 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9582 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9583 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9584 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9585 is_gimple_address, is_gimple_invariant_address,
9586 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9587 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9588 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9589 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9590 gimple_decl_printable_name, useless_type_conversion_p,
9591 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9593 * gimple-expr.c: New File.
9594 (useless_type_conversion_p, gimple_set_body, gimple_body,
9595 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9596 gimple_can_coalesce_p, extract_ops_from_tree_1,
9597 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9598 is_gimple_address, is_gimple_invariant_address,
9599 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9600 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9601 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9602 is_gimple_mem_ref_addr): Relocate here.
9603 * Makefile.in (OBJS): Add gimple-expr.o.
9605 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9607 * gengtype-parse.c (struct_field_seq): Support empty structs.
9609 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9611 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9613 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9615 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9617 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9619 (LONG_DOUBLE_TYPE_SIZE): New define.
9620 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9622 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9625 * doc/extend.texi [visibility ("visibility_type")]: Add example
9626 about visibility attribute on namespace declaration.
9628 2013-11-05 Richard Biener <rguenther@suse.de>
9631 * passes.def (all_passes): Start with pass_fixup_cfg again.
9633 2013-11-05 Richard Biener <rguenther@suse.de>
9635 PR tree-optimization/58955
9636 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9639 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9641 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9643 (vec_pack_ufix_trunc_v2df): Likewise.
9645 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9648 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9649 pattern, instead of word_mode.
9651 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9653 (set_storage_via_setmem): Likewise.
9655 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9657 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9658 gimple.h and the rest of the condition in eliminate_build.
9659 (eliminate_build): Call new routine.
9660 * gimple.h (phi_ssa_name_p): Delete.
9662 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9664 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9665 case of no prefix and reserving zero slots, because when that's the
9666 case we'll never get here.
9667 * vec.h (va_heap::reserve): Don't try and handle
9668 vec_prefix::calculate_allocation returning zero because that should
9671 2013-11-05 Richard Biener <rguenther@suse.de>
9674 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9675 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9676 process trailing array detection before diving into the
9677 view-converted object (and possibly apply some extra offset).
9679 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9681 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9683 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9685 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9687 PR tree-optimization/58958
9688 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9689 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9691 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9693 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9694 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9696 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9698 PR tree-optimization/58984
9699 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9700 set *SIZE_P if non-NULL on success.
9701 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9703 (ipcp_transform_function): Likewise. Punt if size of access
9704 is different from TYPE_SIZE on v->value's type.
9706 2013-11-05 Tobias Burnus <burnus@net-b.de>
9708 * doc/invoke.texi (-fopenmp-simd): Document new option.
9709 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9710 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9711 * tree.c (attribute_value_equal): Ditto.
9713 2013-11-04 Wei Mi <wmi@google.com>
9715 * sched-rgn.c (add_branch_dependences): Keep insns in
9716 a SCHED_GROUP at the end of BB to remain their location.
9718 2013-11-04 Wei Mi <wmi@google.com>
9720 * config/i386/i386.c (memory_address_length): Extract a part
9721 of code to rip_relative_addr_p.
9722 (rip_relative_addr_p): New Function.
9723 (ix86_macro_fusion_p): Ditto.
9724 (ix86_macro_fusion_pair_p): Ditto.
9725 * config/i386/i386.h: Add new tune features about macro-fusion.
9726 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9727 * doc/tm.texi: Generated.
9728 * doc/tm.texi.in: Ditto.
9729 * haifa-sched.c (try_group_insn): New Function.
9730 (group_insns_for_macro_fusion): Ditto.
9731 (sched_init): Call group_insns_for_macro_fusion.
9732 * target.def: Add two hooks: macro_fusion_p and
9733 macro_fusion_pair_p.
9735 2013-11-04 Kostya Serebryany <kcc@google.com>
9737 Update to match the changed asan API.
9738 * asan.c (asan_function_start): New function.
9739 (asan_emit_stack_protection): Update the string stored in the
9740 stack red zone to match new API. Store the PC of the current
9741 function in the red zone.
9742 (asan_global_struct): Update the __asan_global definition to match
9744 (asan_add_global): Ditto.
9745 * asan.h (asan_function_start): New prototype.
9746 * final.c (final_start_function): Call asan_function_start.
9747 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9750 2013-11-04 Wei Mi <wmi@google.com>
9752 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9753 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9754 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9755 (ix86_issue_rate): Ditto.
9756 (ix86_adjust_cost): Ditto.
9757 (ia32_multipass_dfa_lookahead): Ditto.
9758 (ix86_sched_init_global): Ditto.
9759 (get_builtin_code_for_version): Ditto.
9760 * config/i386/i386.h (enum target_cpu_default): Ditto.
9761 (enum processor_type): Ditto.
9762 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9764 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9766 PR rtl-optimization/58967
9767 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9768 !lra_in_progress for mode sizes bigger word.
9770 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9772 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9773 arguments to merge instruction for little endian.
9774 (vec_widen_umult_lo_v16qi): Likewise.
9775 (vec_widen_smult_hi_v16qi): Likewise.
9776 (vec_widen_smult_lo_v16qi): Likewise.
9777 (vec_widen_umult_hi_v8hi): Likewise.
9778 (vec_widen_umult_lo_v8hi): Likewise.
9779 (vec_widen_smult_hi_v8hi): Likewise.
9780 (vec_widen_smult_lo_v8hi): Likewise.
9782 2013-11-04 Ian Lance Taylor <iant@google.com>
9784 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9785 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9786 builtins that take pointers.
9787 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9788 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9789 (run_gcc): Pass -fnon-call-exceptions.
9791 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9793 * optabs.c (expand_vec_perm): Revert one incorrect line from
9796 PR tree-optimization/58978
9797 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9798 use_stmt by single_imm_use directly. Only call single_imm_use
9801 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9803 PR rtl-optimization/58968
9804 * lra-spills.c (return_regno_p): New function.
9805 (lra_final_code_change): Use it.
9807 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9809 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9810 * target.def (float_exceptions_rounding_supported_p): New hook.
9811 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9813 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9814 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9816 * doc/tm.texi: Regenerate.
9817 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9818 * config/rs6000/rs6000-linux.c: New file.
9819 * config/rs6000/rs6000-protos.h
9820 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9821 * config/rs6000/linux.h
9822 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9823 * config/rs6000/linux64.h
9824 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9825 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9826 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9828 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9830 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9831 Replace the define_insn_and_split with a define_insn and two
9832 define_splits, with the split after reload re-permuting the source
9833 register to its original value.
9834 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9835 (*vsx_le_perm_store_v8hi): Likewise.
9836 (*vsx_le_perm_store_v16qi): Likewise.
9838 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9840 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9843 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9845 PR tree-optimization/58946
9846 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9847 bbs with bbinfo[idx].op != NULL before all blocks with
9848 bbinfo[idx].op == NULL.
9850 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9852 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9853 (avr_dump_double_int_hex): Likewise.
9854 (avr_log_vadump): Remove %D and %X handling.
9855 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9856 (avr_map_op_t): Change map from double_int to unsigned int.
9857 (avr_map_op): Update accordingly.
9858 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9859 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9860 unsigned ints rather than double_ints.
9862 2013-11-03 Marek Polacek <polacek@redhat.com>
9864 Implement -fsanitize=vla-bound.
9865 * opts.c (common_handle_option): Handle vla-bound.
9866 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9867 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9868 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9870 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9872 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9875 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9877 * config/i386/constraints.md (Ts, Tv): New address constrains.
9878 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9879 constraint for address_no_seg_operand.
9880 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9881 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9882 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9883 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9884 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9885 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9886 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9887 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9888 constraint for vsib_address_operand.
9890 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9892 * gcse.c (pre_delete): Remove references to regmove from comments.
9893 * recog.c: (validate_replace_rtx_1): Likewise.
9894 * config/rl78/rl78.c: Likewise.
9895 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9896 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9897 * common/config/mmix/mmix-common.c: Likewise.
9899 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9901 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9902 * gimplify.c (gimplify_compound_lval): Likewise.
9903 * graphite-clast-to-gimple.c (gloog): Likewise.
9904 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9905 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9906 (limit_scop); Likewise.
9907 (build_scops): Likewise.
9908 (dot_scop): Likewise.
9909 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9910 (build_scop_drs): Likewise.
9911 (insert_stmts): Likewise.
9912 (insert_out_of_ssa_copy): Likewise.
9913 (remove_phi): Likewise.
9914 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9915 * hw-doloop.c (discover_loop): Likewise.
9916 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9917 * tree-dfa.c (dump_enumerated_decls): Likewise.
9918 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9919 * tree-inline.c (tree_function_versioning): Likewise.
9920 * tree-loop-distribution.c (build_rdg): Likewise.
9921 (rdg_flag_vertex_and_dependent): Likewise.
9922 (distribute_loop): Likewise.
9923 * tree-parloops.c (loop_parallel_p): Likewise.
9924 (eliminate_local_variables): Likewise.
9925 (separate_decls_in_region): Likewise.
9926 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9927 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9928 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9929 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9930 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9931 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9932 (vectorizable_condition): Likewise.
9934 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9936 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9937 * configure: Regenerate.
9938 * config/i386/i386.md (*movdi_internal): Change
9939 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9940 (*movdf_internal): Ditto.
9941 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9942 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9943 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9945 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9947 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9950 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9952 Automated part of renaming of symtab_node_base to symtab_node.
9954 Patch autogenerated by rename_symtab.py from
9955 https://github.com/davidmalcolm/gcc-refactoring-scripts
9956 revision 58bb219cc090b2f4516a9297d868c245495ee622
9957 with ChangeLog entry fixed up by hand.
9959 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9961 (cgraph_node_for_asm): Likewise.
9962 * cgraph.h (symtab_node_base): Likewise.
9963 (cgraph_node): Likewise.
9964 (varpool_node): Likewise.
9965 (is_a_helper <cgraph_node>::test): Likewise.
9966 (is_a_helper <varpool_node>::test): Likewise.
9967 (symtab_nodes): Likewise.
9968 (symtab_register_node): Likewise.
9969 (symtab_unregister_node): Likewise.
9970 (symtab_remove_node): Likewise.
9971 (symtab_get_node): Likewise.
9972 (symtab_node_for_asm): Likewise.
9973 (symtab_node_asm_name): Likewise.
9974 (symtab_node_name): Likewise.
9975 (symtab_insert_node_to_hashtable): Likewise.
9976 (symtab_add_to_same_comdat_group): Likewise.
9977 (symtab_dissolve_same_comdat_group_list): Likewise.
9978 (dump_symtab_node): Likewise.
9979 (debug_symtab_node): Likewise.
9980 (dump_symtab_base): Likewise.
9981 (verify_symtab_node): Likewise.
9982 (verify_symtab_base): Likewise.
9983 (symtab_used_from_object_file_p): Likewise.
9984 (symtab_alias_ultimate_target): Likewise.
9985 (symtab_resolve_alias): Likewise.
9986 (fixup_same_cpp_alias_visibility): Likewise.
9987 (symtab_for_node_and_aliases): Likewise.
9988 (symtab_nonoverwritable_alias): Likewise.
9989 (availability symtab_node_availability): Likewise.
9990 (symtab_semantically_equivalent_p): Likewise.
9991 (fixup_same_cpp_alias_visibility): Likewise.
9992 (symtab_prevail_in_asm_name_hash): Likewise.
9994 (varpool): Likewise.
9995 (varpool_first_variable): Likewise.
9996 (varpool_next_variable): Likewise.
9997 (varpool_first_static_initializer): Likewise.
9998 (varpool_next_static_initializer): Likewise.
9999 (varpool_first_defined_variable): Likewise.
10000 (varpool_next_defined_variable): Likewise.
10001 (cgraph_first_defined_function): Likewise.
10002 (cgraph_next_defined_function): Likewise.
10003 (cgraph_first_function): Likewise.
10004 (cgraph_next_function): Likewise.
10005 (cgraph_first_function_with_gimple_body): Likewise.
10006 (cgraph_next_function_with_gimple_body): Likewise.
10007 (symtab_alias_target): Likewise.
10008 (symtab_real_symbol_p): Likewise.
10009 (symtab_can_be_discarded): Likewise.
10010 * cgraphbuild.c (mark_address): Likewise.
10011 (mark_load): Likewise.
10012 (mark_store): Likewise.
10013 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10015 (enqueue_node): Likewise.
10016 (referred_to_p): Likewise.
10017 (cgraph_process_same_body_aliases): Likewise.
10018 (analyze_functions): Likewise.
10019 (handle_alias_pairs): Likewise.
10020 (output_weakrefs): Likewise.
10021 (compile): Likewise.
10022 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10023 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10024 * ipa-prop.c (remove_described_reference): Likewise.
10025 (try_decrement_rdesc_refcount): Likewise.
10026 (ipa_edge_duplication_hook): Likewise.
10027 * ipa-ref.c (ipa_record_reference): Likewise.
10028 (ipa_maybe_record_reference): Likewise.
10029 (ipa_clone_ref): Likewise.
10030 (ipa_clone_references): Likewise.
10031 (ipa_clone_referring): Likewise.
10032 (ipa_find_reference): Likewise.
10033 (ipa_remove_stmt_references): Likewise.
10034 (ipa_clear_stmts_in_references): Likewise.
10035 * ipa-ref.h (symtab_node_base): Likewise.
10036 (ipa_ref): Likewise.
10037 (ipa_record_reference): Likewise.
10038 (ipa_maybe_record_reference): Likewise.
10039 (ipa_clone_references): Likewise.
10040 (ipa_clone_referring): Likewise.
10041 (ipa_clone_ref): Likewise.
10042 (ipa_find_reference): Likewise.
10043 (ipa_remove_stmt_references): Likewise.
10044 (ipa_clear_stmts_in_references): Likewise.
10045 * ipa-reference.c (ipa_reference_write_optimization_summary):
10047 * ipa.c (enqueue_node): Likewise.
10048 (process_references): Likewise.
10049 (walk_polymorphic_call_targets): Likewise.
10050 (symtab_remove_unreachable_nodes): Likewise.
10051 (address_taken_from_non_vtable_p): Likewise.
10052 (comdat_can_be_unshared_p_1): Likewise.
10053 (comdat_can_be_unshared_p): Likewise.
10054 (can_replace_by_local_alias): Likewise.
10055 (function_and_variable_visibility): Likewise.
10056 * is-a.h: Likewise (within example in comment).
10057 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10058 (lto_symtab_encoder_encode): Likewise.
10059 (lto_symtab_encoder_delete_node): Likewise.
10060 (lto_symtab_encoder_in_partition_p): Likewise.
10061 (lto_set_symtab_encoder_in_partition): Likewise.
10062 (output_refs): Likewise.
10063 (compute_ltrans_boundary): Likewise.
10064 (output_symtab): Likewise.
10065 (input_node): Likewise.
10066 (input_ref): Likewise.
10067 (input_edge): Likewise.
10068 (input_cgraph_1): Likewise.
10069 (input_refs): Likewise.
10070 (output_cgraph_opt_summary): Likewise.
10071 (input_node_opt_summary): Likewise.
10072 (input_cgraph_opt_section): Likewise.
10073 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10075 * lto-streamer-out.c (lto_output): Likewise.
10076 (output_symbol_p): Likewise.
10077 (produce_symtab): Likewise.
10078 * lto-streamer.h (lto_encoder_entry): Likewise.
10079 (lto_free_function_in_decl_state_for_node): Likewise.
10080 (lto_symtab_encoder_encode): Likewise.
10081 (lto_symtab_encoder_delete_node): Likewise.
10082 (lto_symtab_encoder_in_partition_p): Likewise.
10083 (lto_set_symtab_encoder_in_partition): Likewise.
10084 (lto_symtab_encoder_lookup): Likewise.
10085 (lsei_node): Likewise.
10086 (lto_symtab_encoder_deref): Likewise.
10087 * symtab.c (symtab_hash): Likewise.
10088 (assembler_name_hash): Likewise.
10089 (symtab_nodes): Likewise.
10090 (hash_node): Likewise.
10091 (eq_node): Likewise.
10092 (hash_node_by_assembler_name): Likewise.
10093 (eq_assembler_name): Likewise.
10094 (insert_to_assembler_name_hash): Likewise.
10095 (unlink_from_assembler_name_hash): Likewise.
10096 (symtab_prevail_in_asm_name_hash): Likewise.
10097 (symtab_register_node): Likewise.
10098 (symtab_insert_node_to_hashtable): Likewise.
10099 (symtab_unregister_node): Likewise.
10100 (symtab_get_node): Likewise.
10101 (symtab_remove_node): Likewise.
10102 (symtab_initialize_asm_name_hash): Likewise.
10103 (symtab_node_for_asm): Likewise.
10104 (symtab_add_to_same_comdat_group): Likewise.
10105 (symtab_dissolve_same_comdat_group_list): Likewise.
10106 (symtab_node_asm_name): Likewise.
10107 (symtab_node_name): Likewise.
10108 (dump_symtab_base): Likewise.
10109 (dump_symtab_node): Likewise.
10110 (dump_symtab): Likewise.
10111 (debug_symtab_node): Likewise.
10112 (verify_symtab_base): Likewise.
10113 (verify_symtab_node): Likewise.
10114 (verify_symtab): Likewise.
10115 (symtab_used_from_object_file_p): Likewise.
10116 (symtab_node_availability): Likewise.
10117 (symtab_alias_ultimate_target): Likewise.
10118 (fixup_same_cpp_alias_visibility): Likewise.
10119 (symtab_resolve_alias): Likewise.
10120 (symtab_for_node_and_aliases): Likewise.
10121 (symtab_for_node_and_aliases): Likewise.
10122 (symtab_nonoverwritable_alias_1): Likewise.
10123 (symtab_nonoverwritable_alias): Likewise.
10124 (symtab_semantically_equivalent_p): Likewise.
10125 * value-prof.c (init_node_map): Likewise.
10126 * varasm.c (find_decl): Likewise.
10127 * varpool.c (varpool_node_for_asm): Likewise.
10128 (varpool_remove_unreferenced_decls): Likewise.
10130 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10132 Manual part of renaming of symtab_node_base to symtab_node.
10134 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10135 clashes with the preferred name for the base class.
10136 (const_symtab_node): Remove redundant typedef.
10138 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10140 * optabs.c (expand_vec_perm): Avoid vector mode punning
10141 SUBREGs in SET_DEST.
10142 * expmed.c (store_bit_field_1): Likewise.
10143 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10144 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10145 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10146 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10147 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10148 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10149 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10150 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10151 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10152 expand_vec_perm_vpshufb2_vpermq,
10153 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10154 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10155 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10156 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10159 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10161 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10162 Use gcc_unreachable for unhandled modes. Do not check results of
10163 expand_simple_binop. If not expanded to target, move the result.
10165 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10166 Shiva Chen <shiva0217@gmail.com>
10168 * config.gcc (nds32*-*-*): Add nds32 target.
10169 * config/nds32/nds32.c: New file.
10170 * config/nds32/nds32.h: New file.
10171 * config/nds32/nds32.md: New file.
10172 * config/nds32/constants.md: New file.
10173 * config/nds32/constraints.md: New file.
10174 * config/nds32/iterators.md: New file.
10175 * config/nds32/nds32-doubleword.md: New file.
10176 * config/nds32/nds32-intrinsic.md: New file.
10177 * config/nds32/nds32_intrinsic.h: New file.
10178 * config/nds32/nds32-modes.def: New file.
10179 * config/nds32/nds32-multiple.md: New file.
10180 * config/nds32/nds32.opt: New file.
10181 * config/nds32/nds32-opts.h: New file.
10182 * config/nds32/nds32-protos.h: New file.
10183 * config/nds32/nds32-peephole2.md: New file.
10184 * config/nds32/pipelines.md: New file.
10185 * config/nds32/predicates.md: New file.
10186 * config/nds32/t-mlibs: New file.
10187 * common/config/nds32: New directory and files.
10189 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10190 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10191 * doc/install.texi (Cross-Compiler-Specific Options): Document
10192 --with-nds32-lib for nds32 target.
10193 * doc/extend.texi (Function Attributes, Target Builtins): Document
10194 nds32 specific attributes.
10196 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10198 * lra-constraints (process_alt_operands): Use the result
10199 elimination register for operand when matching constraints.
10201 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10203 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10204 (remove_range_assertions): Call it.
10206 * tree.c (tree_ctz): New function.
10207 * tree.h (tree_ctz): New prototype.
10208 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10209 first argument from tree to const_tree.
10210 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10211 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10212 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10214 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10215 * tree-vect-loop.c (vect_analyze_loop_operations,
10216 vect_transform_loop): Don't force scalar loop for bound just because
10217 number of iterations is unknown, only do it if it is not known to be
10218 a multiple of vectorization_factor.
10219 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10221 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10222 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10223 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10224 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10225 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10226 a default def isn't partially constant.
10227 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10228 is known to be partially zero.
10229 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10230 to see if a default def isn't partially constant.
10231 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10232 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10234 (set_nonzero_bits, get_nonzero_bits): New functions.
10236 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10237 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10238 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10239 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10240 uses but in the condition and ASSERT_EXPR and the other successor of
10241 the predecessor bb is __builtin_unreachable (), set_range_info of the
10242 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10244 2013-10-31 Martin Jambor <mjambor@suse.cz>
10246 PR rtl-optimization/58934
10248 2013-10-30 Martin Jambor <mjambor@suse.cz>
10249 PR rtl-optimization/10474
10250 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10252 (interesting_dest_for_shprep): New function.
10253 (split_live_ranges_for_shrink_wrap): Likewise.
10254 (ira): Calculate dominance info and df analysis. Call
10255 split_live_ranges_for_shrink_wrap.
10257 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10258 Yury Gribov <y.gribov@samsung.com>
10261 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10262 shadow pointer to avoid clobbering the main one.
10264 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10266 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10268 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10271 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10272 it for calling update_costs_from_allocno.
10273 (assign_hard_reg): Call restore_costs_from_copies only for
10274 !retry_p. Pass new argument to update_costs_from_copies.
10275 (color_pass): Pass new argument to update_costs_from_copies.
10276 (ira_mark_allocation_change): Ditto.
10278 2013-10-30 Sharad Singhai <singhai@google.com>
10280 PR middle-end/58134
10281 * opts.c (common_handle_option): Remove deprecated option
10282 -ftree-vectorizer-verbose.
10283 * doc/invoke.texi (Debugging Options): Ditto.
10284 * opts-global.c (handle_common_deferred_options): Ditto.
10285 (dump_remap_tree_vectorizer_verbose): Delete.
10286 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10288 2013-10-30 DJ Delorie <dj@redhat.com>
10290 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10291 that take no arguments.
10293 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10296 * reload1.c (update_eliminables_and_spill): New function, broken
10298 (reload): Use it. Check for frame size change after frame size
10299 alignment, and call update_eliminables_and_spill first if continue-ing.
10301 2013-10-30 Cong Hou <congh@google.com>
10304 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10305 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10306 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10308 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10310 PR rtl-optimization/58369
10311 * reload1.c (compute_reload_subreg_offset): New function.
10312 (choose_reload_regs): Use it to pass endian-correct
10313 offset to subreg_regno_offset.
10315 2013-10-30 Tobias Burnus <burnus@net-b.de>
10318 * tree-cfg.c (replace_loop_annotate): Replace warning by
10321 2013-10-30 Jason Merrill <jason@redhat.com>
10323 * configure.ac (loose_warn): Add -Wno-format if
10324 --disable-build-format-warnings.
10326 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10328 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10329 onto multiple lines to make things easier for rename_symtab.py.
10331 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10332 (symtab_semantically_equivalent_p): Likewise.
10334 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10337 * lra.c (check_rtl): Remove address check before LRA work.
10339 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10341 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10342 POINTER_PLUS_EXPR in the defining statement.
10344 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10346 * regmove.c: Remove.
10347 * tree-pass.h (make_pass_regmove): Remove.
10348 * timevar.def (TV_REGMOVE): Remove.
10349 * passes.def (pass_regmove): Remove.
10350 * opts.c (default_options_table): Remove entry for regmove.
10351 * doc/passes.texi: Remove regmove pass description.
10352 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10354 (-fdump-rtl-regmove): Ditto.
10355 * common.opt (foptimize-register-move, fregmove): Ignore.
10356 * Makefile.in (OBJS): Remove regmove.o.
10357 * regmove.c: Remove.
10358 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10360 (struct ira_allocno) New member allocno_prefs.
10361 (ALLOCNO_PREFS): New macro.
10362 (ira_prefs, ira_prefs_num): New external vars.
10363 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10364 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10365 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10367 (ira_add_allocno_copy_to_list): Remove prototype.
10368 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10369 (ira_pref_iterator): New type.
10370 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10371 (FOR_EACH_PREF): New macro.
10372 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10373 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10375 (ira_setup_alts): New function.
10376 (decrease_live_ranges_number): New function.
10377 (ira): Call the above function.
10378 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10379 (ira_create_allocno): Initialize allocno prefs.
10380 (pref_pool, pref_vec): New static vars.
10381 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10383 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10384 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10385 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10386 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10387 (ira_add_allocno_copy_to_list): Make static. Rename to
10388 add_allocno_copy_to_list.
10389 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10390 swap_allocno_copy_ends_if_necessary.
10391 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10392 ira_remove_allocno_prefs.
10393 (ira_flattening): Ditto.
10394 (ira_build): Call initiate_prefs, print_prefs.
10395 (ira_destroy): Call finish_prefs.
10396 * ira-color.c (struct update_cost_record): New.
10397 (struct allocno_color_data): Add new member update_cost_records.
10398 (update_cost_record_pool): New static var.
10399 (init_update_cost_records, get_update_cost_record): New functions.
10400 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10401 (struct update_cost_queue_elem): Add member from.
10402 (initiate_cost_update): Call init_update_cost_records.
10403 (finish_cost_update): Call finish_update_cost_records.
10404 (queue_update_cost, get_next_update_cost): Add new param from.
10405 (Update_allocno_cost, update_costs_from_allocno): New functions.
10406 (update_costs_from_prefs): Ditto.
10407 (update_copy_costs): Rename to update_costs_from_copies.
10408 (restore_costs_from_copies): New function.
10409 (update_conflict_hard_regno_costs): Don't go back.
10410 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10412 (pop_allocnos): Add priniting more debug info.
10413 (color_allocnos): Remove prefs for conflicting hard regs.
10414 Call update_costs_from_prefs.
10415 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10416 (get_dup_num): Rename, modify, and move to ira.c
10417 (process_regs_for_copy): Add prefs.
10418 (add_insn_allocno_copies): Put src as first arg of
10419 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10420 * ira-costs.c (record_reg_classes): Modify and move code into
10421 record_operands_costs.
10422 (find_costs_and_classes): Create prefs for the hard reg of small
10424 (process_bb_node_for_hard_reg_moves): Add prefs.
10426 2013-10-30 Richard Biener <rguenther@suse.de>
10428 PR middle-end/57100
10429 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10430 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10432 (pre_and_rev_post_order_compute): ... which now wraps it.
10433 * graph.c (draw_cfg_nodes_no_loops): Use
10434 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10437 2013-10-30 Christian Bruel <christian.bruel@st.com>
10439 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10440 (sh_expand_cmpstr): Handle known align and schedule improvements.
10441 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10442 * config/sh/sh.md (cmpstrnsi): New pattern.
10444 2013-10-30 Martin Jambor <mjambor@suse.cz>
10446 PR rtl-optimization/10474
10447 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10449 (interesting_dest_for_shprep): New function.
10450 (split_live_ranges_for_shrink_wrap): Likewise.
10451 (ira): Calculate dominance info and df analysis. Call
10452 split_live_ranges_for_shrink_wrap.
10454 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10457 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10459 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10461 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10462 * tree.h (POINTER_BOUNDS_P): New.
10463 (BOUNDED_TYPE_P): New.
10465 (pointer_bounds_type_node): New.
10466 * tree.c (build_common_tree_nodes): Initialize
10467 pointer_bounds_type_node.
10468 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10469 (gimple_call_num_nobnd_args): New.
10470 (gimple_call_nobnd_arg): New.
10471 (gimple_return_retbnd): New.
10472 (gimple_return_set_retbnd): New
10473 * gimple.c (gimple_build_return): Increase number of ops
10474 for return statement.
10475 (gimple_call_get_nobnd_arg_index): New.
10476 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10478 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10480 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10481 with "chkp ctor" and "bnd_legacy" attributes.
10482 * gimplify.c (gimplify_init_constructor): Avoid infinite
10483 loop during gimplification of bounds initializer.
10485 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10487 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10488 (handle_bnd_legacy): New.
10489 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10490 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10493 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10495 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10496 (BT_FN_PTR_CONST_PTR): New.
10497 (BT_FN_CONST_PTR_CONST_PTR): New.
10498 (BT_FN_PTR_CONST_PTR_SIZE): New.
10499 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10500 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10501 (BT_FN_VOID_CONST_PTR_SIZE): New.
10502 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10503 * chkp-builtins.def: New.
10504 * builtins.def: include chkp-builtins.def.
10505 (DEF_CHKP_BUILTIN): New.
10506 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10507 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10508 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10509 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10510 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10511 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10512 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10513 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10514 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10515 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10516 * common.opt (fcheck-pointer-bounds): New.
10517 * toplev.c (process_options): Check Pointer Bounds Checker is
10519 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10521 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10523 * target.def (builtin_chkp_function): New.
10524 (chkp_bound_type): New.
10525 (chkp_bound_mode): New.
10526 (fn_abi_va_list_bounds_size): New.
10527 (load_bounds_for_arg): New.
10528 (store_bounds_for_arg): New.
10529 * targhooks.h (default_load_bounds_for_arg): New.
10530 (default_store_bounds_for_arg): New.
10531 (default_fn_abi_va_list_bounds_size): New.
10532 (default_chkp_bound_type): New.
10533 (default_chkp_bound_mode): New.
10534 (default_builtin_chkp_function): New.
10535 * targhooks.c (default_load_bounds_for_arg): New.
10536 (default_store_bounds_for_arg): New.
10537 (default_fn_abi_va_list_bounds_size): New.
10538 (default_chkp_bound_type): New.
10539 (default_chkp_bound_mode); New.
10540 (default_builtin_chkp_function): New.
10541 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10542 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10543 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10544 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10545 (TARGET_CHKP_BOUND_TYPE): New.
10546 (TARGET_CHKP_BOUND_MODE): New.
10547 * doc/tm.texi: Regenerated.
10548 * langhooks.h (lang_hooks): Add chkp_supported field.
10549 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10550 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10552 2013-10-29 Andrew Pinski <apinski@cavium.com>
10554 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10555 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10556 fails, combining the branches anyways.
10557 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10558 increases the number of combinings.
10559 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10561 2013-10-29 Mike Stump <mikestump@comcast.net>
10563 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10564 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10565 (make_vector_mode): Increase namebuf to 16.
10566 (emit_insn_modes_h): When processing BImode, don't
10567 also match partial int modes.
10568 (emit_class_narrowest_mode): Likewise.
10570 * config/bfin/bfin-modes.def: Add precision to PDI.
10571 * config/m32c/m32c-modes.def: Add precision to PSI.
10572 * config/msp430/msp430-modes.def: Add precision to PSI.
10573 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10574 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10576 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10579 * config/sh/sh.md (*addc): Rename existing variations to ...
10580 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10581 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10582 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10583 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10585 2013-10-29 Teresa Johnson <tejohnson@google.com>
10588 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10589 insanities when updating probabilities.
10591 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10593 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10594 prettyprinter for cgraph_node to reflect the conversion of the
10595 symtable types to a C++ class hierarchy: it now *is* a
10596 symtab_node_base, rather than having one (named "symbol").
10598 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10600 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10601 __cilkrts_pop_frame. If matched, then return true for built-in
10603 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10604 BUILT_IN_CILK_POP_FRAME case.
10605 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10606 (lhs_cilk_detect_spawn): Likewise.
10607 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10608 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10609 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10610 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10611 (LANG_HOOKS_CILKPLUS): Likewise.
10612 * tree.h (CILK_SPAWN_FN): Likewise.
10613 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10614 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10615 (OBJS): Added cilk-common.o.
10616 (BUILTINS_DEF): Added cilk-builtins.def.
10617 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10618 (lhd_cilk_detect_spawn): Likewise.
10619 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10620 (struct lang_hooks): Added new field called "cilkplus."
10621 * cilk-common.c: New file.
10622 * cilk.h: Likewise.
10623 * cilk-builtins.def: Likewise.
10624 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10625 "__cilk" macro and set it to 200.
10626 * function.h (struct function::cilk_frame_decl): New field.
10627 (struct function::is_cilk_function): Likewise.
10628 (struct function::calls_cilk_spawn): Likewise.
10629 * gimplify.c (gimplify_call_expr): Added a check if the function call
10630 being gimplified is a spawn detach point. If so, then add pop_frame
10631 and detach function calls.
10632 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10633 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10634 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10635 function. If so, added a _Cilk_sync and gimplified it.
10636 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10637 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10638 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10640 (can_inline_edge_p): Prevent inling of spawnee function.
10641 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10642 for functions that use Cilk keywords.
10643 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10644 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10645 CILK_SYNC_STMT cases.
10646 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10648 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10649 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10650 * passes.texi (Cilk Keywords): New section that describes the compiler
10651 code changes for handling Cilk Keywords.
10653 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10655 Patch autogenerated by refactor_symtab.py from
10656 https://github.com/davidmalcolm/gcc-refactoring-scripts
10657 revision 58bb219cc090b2f4516a9297d868c245495ee622
10659 * asan.c (asan_finish_file): Update for conversion of symtab types to
10660 a true class hierarchy.
10661 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10662 * cgraph.c (cgraph_get_body): Likewise.
10663 (cgraph_get_create_real_symbol_node): Likewise.
10664 (verify_cgraph_node): Likewise.
10665 (verify_edge_corresponds_to_fndecl): Likewise.
10666 (verify_edge_count_and_frequency): Likewise.
10667 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10668 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10669 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10670 (cgraph_node_cannot_return): Likewise.
10671 (cgraph_set_pure_flag_1): Likewise.
10672 (cgraph_set_const_flag_1): Likewise.
10673 (cgraph_set_nothrow_flag_1): Likewise.
10674 (cgraph_make_node_local_1): Likewise.
10675 (cgraph_for_node_and_aliases): Likewise.
10676 (cgraph_for_node_thunks_and_aliases): Likewise.
10677 (cgraph_node_can_be_local_p): Likewise.
10678 (cgraph_node_cannot_be_local_p_1): Likewise.
10679 (cgraph_function_body_availability): Likewise.
10680 (dump_cgraph_node): Likewise.
10681 (cgraph_rtl_info): Likewise.
10682 (cgraph_mark_address_taken_node): Likewise.
10683 (cgraph_remove_node): Likewise.
10684 (cgraph_release_function_body): Likewise.
10685 (cgraph_update_edges_for_call_stmt_node): Likewise.
10686 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10687 (cgraph_make_edge_direct): Likewise.
10688 (cgraph_resolve_speculation): Likewise.
10689 (cgraph_speculative_call_info): Likewise.
10690 (cgraph_turn_edge_to_speculative): Likewise.
10691 (cgraph_create_edge_1): Likewise.
10692 (cgraph_set_call_stmt): Likewise.
10693 (cgraph_node_for_asm): Likewise.
10694 (cgraph_add_thunk): Likewise.
10695 (cgraph_same_body_alias): Likewise.
10696 (cgraph_create_function_alias): Likewise.
10697 (cgraph_create_node): Likewise.
10698 (cgraph_create_empty_node): Likewise.
10699 (record_function_versions): Likewise.
10700 (used_from_object_file_p): Likewise.
10701 * cgraph.h (symtab_can_be_discarded): Likewise.
10702 (symtab_real_symbol_p): Likewise.
10703 (cgraph_mark_force_output_node): Likewise.
10704 (cgraph_edge_recursive_p): Likewise.
10705 (symtab_alias_target): Likewise.
10706 (varpool_all_refs_explicit_p): Likewise.
10707 (varpool_can_remove_if_no_refs): Likewise.
10708 (cgraph_only_called_directly_or_aliased_p): Likewise.
10709 (cgraph_next_function_with_gimple_body): Likewise.
10710 (cgraph_first_function_with_gimple_body): Likewise.
10711 (cgraph_function_with_gimple_body_p): Likewise.
10712 (cgraph_next_function): Likewise.
10713 (cgraph_first_function): Likewise.
10714 (cgraph_next_defined_function): Likewise.
10715 (cgraph_first_defined_function): Likewise.
10716 (varpool_next_defined_variable): Likewise.
10717 (varpool_first_defined_variable): Likewise.
10718 (varpool_next_static_initializer): Likewise.
10719 (varpool_first_static_initializer): Likewise.
10720 (varpool_next_variable): Likewise.
10721 (varpool_first_variable): Likewise.
10722 (varpool_node_name): Likewise.
10723 (varpool): Likewise.
10724 (cgraph): Likewise.
10725 (is_a_helper <varpool_node>::test): Likewise.
10726 (is_a_helper <cgraph_node>::test): Likewise.
10727 (varpool_variable_node): Likewise.
10728 (cgraph_function_or_thunk_node): Likewise.
10729 (varpool_alias_target): Likewise.
10730 (cgraph_alias_target): Likewise.
10731 (cgraph_node_name): Likewise.
10732 (varpool_node_asm_name): Likewise.
10733 (cgraph_node_asm_name): Likewise.
10734 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10735 (cgraph_rebuild_references): Likewise.
10736 (rebuild_cgraph_edges): Likewise.
10737 (record_eh_tables): Likewise.
10738 (build_cgraph_edges): Likewise.
10739 (mark_store): Likewise.
10740 (mark_load): Likewise.
10741 (mark_address): Likewise.
10742 (record_type_list): Likewise.
10743 (record_reference): Likewise.
10744 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10745 (cgraph_materialize_clone): Likewise.
10746 (cgraph_function_versioning): Likewise.
10747 (cgraph_copy_node_for_versioning): Likewise.
10748 (update_call_expr): Likewise.
10749 (cgraph_find_replacement_node): Likewise.
10750 (cgraph_create_virtual_clone): Likewise.
10751 (cgraph_clone_node): Likewise.
10752 * cgraphunit.c (compile): Likewise.
10753 (output_weakrefs): Likewise.
10754 (output_in_order): Likewise.
10755 (expand_function): Likewise.
10756 (assemble_thunks_and_aliases): Likewise.
10757 (expand_thunk): Likewise.
10758 (mark_functions_to_output): Likewise.
10759 (handle_alias_pairs): Likewise.
10760 (analyze_functions): Likewise.
10761 (walk_polymorphic_call_targets): Likewise.
10762 (varpool_finalize_decl): Likewise.
10763 (process_function_and_variable_attributes): Likewise.
10764 (cgraph_process_same_body_aliases): Likewise.
10765 (analyze_function): Likewise.
10766 (cgraph_add_new_function): Likewise.
10767 (cgraph_finalize_function): Likewise.
10768 (referred_to_p): Likewise.
10769 (cgraph_reset_node): Likewise.
10770 (cgraph_process_new_functions): Likewise.
10771 (enqueue_node): Likewise.
10772 (decide_is_symbol_needed): Likewise.
10773 * coverage.c (coverage_compute_profile_id): Likewise.
10774 * dbxout.c (dbxout_expand_expr): Likewise.
10775 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10776 (reference_to_unused): Likewise.
10777 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10778 * gimplify.c (unvisit_body): Likewise.
10779 (unshare_body): Likewise.
10780 * ipa-cp.c (ipcp_generate_summary): Likewise.
10781 (ipcp_decision_stage): Likewise.
10782 (identify_dead_nodes): Likewise.
10783 (decide_whether_version_node): Likewise.
10784 (decide_about_value): Likewise.
10785 (perhaps_add_new_callers): Likewise.
10786 (create_specialized_node): Likewise.
10787 (update_profiling_info): Likewise.
10788 (ipcp_propagate_stage): Likewise.
10789 (estimate_local_effects): Likewise.
10790 (good_cloning_opportunity_p): Likewise.
10791 (devirtualization_time_bonus): Likewise.
10792 (propagate_constants_accross_call): Likewise.
10793 (initialize_node_lattices): Likewise.
10794 (ipcp_cloning_candidate_p): Likewise.
10795 (determine_versionability): Likewise.
10796 (print_all_lattices): Likewise.
10797 (print_lattice): Likewise.
10798 (ipcp_discover_new_direct_edges): Likewise.
10799 * ipa-devirt.c (ipa_devirt): Likewise.
10800 (likely_target_p): Likewise.
10801 (update_type_inheritance_graph): Likewise.
10802 (possible_polymorphic_call_target_p): Likewise.
10803 (dump_possible_polymorphic_call_targets): Likewise.
10804 (devirt_variable_node_removal_hook): Likewise.
10805 (record_binfo): Likewise.
10806 (maybe_record_node): Likewise.
10807 (build_type_inheritance_graph): Likewise.
10808 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10809 (inline_generate_summary): Likewise.
10810 (inline_analyze_function): Likewise.
10811 (do_estimate_growth): Likewise.
10812 (simple_edge_hints): Likewise.
10813 (estimate_node_size_and_time): Likewise.
10814 (estimate_edge_devirt_benefit): Likewise.
10815 (compute_inline_parameters): Likewise.
10816 (estimate_function_body_sizes): Likewise.
10817 (compute_bb_predicates): Likewise.
10818 (initialize_inline_failed): Likewise.
10819 (dump_inline_summary): Likewise.
10820 (dump_inline_edge_summary): Likewise.
10821 * ipa-inline-transform.c (inline_transform): Likewise.
10822 (preserve_function_body_p): Likewise.
10823 (save_inline_function_body): Likewise.
10824 (inline_call): Likewise.
10825 (clone_inlined_nodes): Likewise.
10826 (can_remove_node_now_p): Likewise.
10827 (can_remove_node_now_p_1): Likewise.
10828 * ipa-inline.c (early_inliner): Likewise.
10829 (early_inline_small_functions): Likewise.
10830 (inline_always_inline_functions): Likewise.
10831 (ipa_inline): Likewise.
10832 (flatten_function): Likewise.
10833 (inline_small_functions): Likewise.
10834 (speculation_useful_p): Likewise.
10835 (recursive_inlining): Likewise.
10836 (update_caller_keys): Likewise.
10837 (reset_edge_caches): Likewise.
10838 (update_edge_key): Likewise.
10839 (edge_badness): Likewise.
10840 (relative_time_benefit): Likewise.
10841 (want_inline_self_recursive_call_p): Likewise.
10842 (want_inline_small_function_p): Likewise.
10843 (want_early_inline_function_p): Likewise.
10844 (num_calls): Likewise.
10845 (can_early_inline_edge_p): Likewise.
10846 (can_inline_edge_p): Likewise.
10847 (report_inline_failed_reason): Likewise.
10848 * ipa-profile.c (ipa_profile): Likewise.
10849 (ipa_propagate_frequency): Likewise.
10850 (ipa_propagate_frequency_1): Likewise.
10851 (ipa_profile_generate_summary): Likewise.
10852 * ipa-prop.c (ipcp_transform_function): Likewise.
10853 (read_replacements_section): Likewise.
10854 (ipa_prop_read_section): Likewise.
10855 (ipa_modify_call_arguments): Likewise.
10856 (ipa_print_node_params): Likewise.
10857 (propagate_controlled_uses): Likewise.
10858 (update_indirect_edges_after_inlining): Likewise.
10859 (remove_described_reference): Likewise.
10860 (ipa_make_edge_direct_to_target): Likewise.
10861 (ipa_analyze_node): Likewise.
10862 (ipa_analyze_params_uses): Likewise.
10863 (ipa_compute_jump_functions): Likewise.
10864 (ipa_get_callee_param_type): Likewise.
10865 (ipa_print_node_jump_functions): Likewise.
10866 (ipa_initialize_node_params): Likewise.
10867 (ipa_populate_param_decls): Likewise.
10868 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10869 (write_agg_replacement_chain): Likewise.
10870 (ipa_write_node_info): Likewise.
10871 (ipa_edge_duplication_hook): Likewise.
10872 (try_decrement_rdesc_refcount): Likewise.
10873 * ipa-pure-const.c (propagate_nothrow): Likewise.
10874 (propagate_pure_const): Likewise.
10875 (pure_const_read_summary): Likewise.
10876 (pure_const_write_summary): Likewise.
10877 (analyze_function): Likewise.
10878 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10879 (ipa_ref_referring_ref_list): Likewise.
10880 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10881 (ipa_remove_stmt_references): Likewise.
10882 (ipa_find_reference): Likewise.
10883 (ipa_dump_referring): Likewise.
10884 (ipa_dump_references): Likewise.
10885 (ipa_record_reference): Likewise.
10886 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10887 (ipa_reference_write_optimization_summary): Likewise.
10888 (write_node_summary_p): Likewise.
10889 (propagate): Likewise.
10890 (read_write_all_from_decl): Likewise.
10891 (generate_summary): Likewise.
10892 (analyze_function): Likewise.
10893 (propagate_bits): Likewise.
10894 (ipa_reference_get_not_written_global): Likewise.
10895 (ipa_reference_get_not_read_global): Likewise.
10896 * ipa-split.c (execute_split_functions): Likewise.
10897 (split_function): Likewise.
10898 * ipa-utils.c (ipa_merge_profiles): Likewise.
10899 (dump_cgraph_node_set): Likewise.
10900 (ipa_reverse_postorder): Likewise.
10901 (ipa_edge_within_scc): Likewise.
10902 (ipa_get_nodes_in_cycle): Likewise.
10903 (ipa_free_postorder_info): Likewise.
10904 (ipa_reduced_postorder): Likewise.
10905 (searchc): Likewise.
10906 (recursive_call_p): Likewise.
10907 * ipa.c (ipa_cdtor_merge): Likewise.
10908 (record_cdtor_fn): Likewise.
10909 (function_and_variable_visibility): Likewise.
10910 (varpool_externally_visible_p): Likewise.
10911 (cgraph_externally_visible_p): Likewise.
10912 (comdat_can_be_unshared_p): Likewise.
10913 (comdat_can_be_unshared_p_1): Likewise.
10914 (address_taken_from_non_vtable_p): Likewise.
10915 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10916 (symtab_remove_unreachable_nodes): Likewise.
10917 (walk_polymorphic_call_targets): Likewise.
10918 (process_references): Likewise.
10919 (enqueue_node): Likewise.
10920 (has_addr_references_p): Likewise.
10921 (cgraph_non_local_node_p_1): Likewise.
10922 * is-a.h (varpool_analyze_node): Likewise.
10923 * lto-cgraph.c (input_symtab): Likewise.
10924 (merge_profile_summaries): Likewise.
10925 (input_cgraph_1): Likewise.
10926 (input_edge): Likewise.
10927 (input_varpool_node): Likewise.
10928 (input_node): Likewise.
10929 (input_overwrite_node): Likewise.
10930 (compute_ltrans_boundary): Likewise.
10931 (output_refs): Likewise.
10932 (lto_output_varpool_node): Likewise.
10933 (lto_output_node): Likewise.
10934 (reachable_from_other_partition_p): Likewise.
10935 (referenced_from_other_partition_p): Likewise.
10936 (lto_output_edge): Likewise.
10937 (output_node_opt_summary): Likewise.
10938 (add_node_to): Likewise.
10939 (reachable_from_this_partition_p): Likewise.
10940 (lto_set_symtab_encoder_in_partition): Likewise.
10941 (lto_symtab_encoder_in_partition_p): Likewise.
10942 (lto_set_symtab_encoder_encode_initializer): Likewise.
10943 (lto_symtab_encoder_encode_initializer_p): Likewise.
10944 (lto_set_symtab_encoder_encode_body): Likewise.
10945 (lto_symtab_encoder_encode_body_p): Likewise.
10946 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10948 * lto-streamer-in.c (lto_read_body): Likewise.
10949 (fixup_call_stmt_edges): Likewise.
10950 (fixup_call_stmt_edges_1): Likewise.
10951 * lto-streamer-out.c (produce_symtab): Likewise.
10952 (output_symbol_p): Likewise.
10953 (write_symbol): Likewise.
10954 (lto_output): Likewise.
10955 (copy_function): Likewise.
10956 (output_function): Likewise.
10957 * passes.c (function_called_by_processed_nodes_p): Likewise.
10958 (ipa_write_optimization_summaries): Likewise.
10959 (ipa_write_summaries): Likewise.
10960 (do_per_function_toporder): Likewise.
10961 (do_per_function): Likewise.
10962 (dump_passes): Likewise.
10963 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10964 (symtab_nonoverwritable_alias): Likewise.
10965 (symtab_nonoverwritable_alias_1): Likewise.
10966 (symtab_for_node_and_aliases): Likewise.
10967 (symtab_resolve_alias): Likewise.
10968 (fixup_same_cpp_alias_visibility): Likewise.
10969 (symtab_alias_ultimate_target): Likewise.
10970 (symtab_used_from_object_file_p): Likewise.
10971 (verify_symtab_base): Likewise.
10972 (dump_symtab_base): Likewise.
10973 (symtab_node_name): Likewise.
10974 (symtab_node_asm_name): Likewise.
10975 (symtab_dissolve_same_comdat_group_list): Likewise.
10976 (symtab_add_to_same_comdat_group): Likewise.
10977 (symtab_unregister_node): Likewise.
10978 (symtab_insert_node_to_hashtable): Likewise.
10979 (symtab_register_node): Likewise.
10980 (unlink_from_assembler_name_hash): Likewise.
10981 (insert_to_assembler_name_hash): Likewise.
10982 (eq_assembler_name): Likewise.
10983 (hash_node_by_assembler_name): Likewise.
10984 (eq_node): Likewise.
10985 (hash_node): Likewise.
10986 * toplev.c (wrapup_global_declaration_2): Likewise.
10987 * trans-mem.c (ipa_tm_execute): Likewise.
10988 (ipa_tm_transform_clone): Likewise.
10989 (ipa_tm_transform_transaction): Likewise.
10990 (ipa_tm_transform_calls_redirect): Likewise.
10991 (ipa_tm_insert_gettmclone_call): Likewise.
10992 (ipa_tm_insert_irr_call): Likewise.
10993 (ipa_tm_create_version): Likewise.
10994 (ipa_tm_create_version_alias): Likewise.
10995 (ipa_tm_mark_forced_by_abi_node): Likewise.
10996 (ipa_tm_mark_force_output_node): Likewise.
10997 (ipa_tm_diagnose_tm_safe): Likewise.
10998 (ipa_tm_mayenterirr_function): Likewise.
10999 (ipa_tm_scan_irr_function): Likewise.
11000 (ipa_tm_note_irrevocable): Likewise.
11001 (ipa_tm_scan_calls_clone): Likewise.
11002 (get_cg_data): Likewise.
11003 * tree-eh.c (tree_could_trap_p): Likewise.
11004 * tree-emutls.c (ipa_lower_emutls): Likewise.
11005 (create_emultls_var): Likewise.
11006 (lower_emutls_function_body): Likewise.
11007 (gen_emutls_addr): Likewise.
11008 (emutls_decl): Likewise.
11009 (new_emutls_decl): Likewise.
11010 * tree-inline.c (tree_function_versioning): Likewise.
11011 (optimize_inline_calls): Likewise.
11012 (expand_call_inline): Likewise.
11013 (estimate_num_insns): Likewise.
11014 (copy_bb): Likewise.
11015 (delete_unreachable_blocks_update_callgraph): Likewise.
11016 * tree-nested.c (gimplify_all_functions): Likewise.
11017 (create_nesting_tree): Likewise.
11018 (check_for_nested_with_variably_modified): Likewise.
11019 * tree-pretty-print.c (dump_function_header): Likewise.
11020 * tree-profile.c (tree_profiling): Likewise.
11021 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11022 (modify_function): Likewise.
11023 (convert_callers): Likewise.
11024 (convert_callers_for_node): Likewise.
11025 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11026 (associate_varinfo_to_alias): Likewise.
11027 (create_variable_info_for): Likewise.
11028 (get_constraint_for_ssa_var): Likewise.
11029 * tree-vectorizer.c (increase_alignment): Likewise.
11030 * tree.c (find_decls_types_in_var): Likewise.
11031 (find_decls_types_in_node): Likewise.
11032 (free_lang_data_in_decl): Likewise.
11033 * value-prof.c (gimple_ic_transform): Likewise.
11034 (gimple_ic): Likewise.
11035 (check_ic_target): Likewise.
11036 (init_node_map): Likewise.
11037 * varasm.c (decl_binds_to_current_def_p): Likewise.
11038 (default_binds_local_p_1): Likewise.
11039 (dump_tm_clone_pairs): Likewise.
11040 (assemble_alias): Likewise.
11041 (find_decl): Likewise.
11042 (mark_decl_referenced): Likewise.
11043 * varpool.c (varpool_for_node_and_aliases): Likewise.
11044 (varpool_extra_name_alias): Likewise.
11045 (varpool_create_variable_alias): Likewise.
11046 (add_new_static_var): Likewise.
11047 (varpool_finalize_named_section_flags): Likewise.
11048 (varpool_remove_unreferenced_decls): Likewise.
11049 (enqueue_node): Likewise.
11050 (varpool_assemble_decl): Likewise.
11051 (assemble_aliases): Likewise.
11052 (varpool_analyze_node): Likewise.
11053 (cgraph_variable_initializer_availability): Likewise.
11054 (varpool_add_new_variable): Likewise.
11055 (ctor_for_folding): Likewise.
11056 (dump_varpool_node): Likewise.
11057 (varpool_remove_initializer): Likewise.
11058 (varpool_remove_node): Likewise.
11059 (varpool_node_for_decl): Likewise.
11060 (varpool_create_empty_node): Likewise.
11061 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11062 (ix86_get_function_versions_dispatcher): Likewise.
11064 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11066 * cgraph.h (symtab_node_base): Convert to a class;
11067 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11068 chain_next/prev from symtab_node_def.
11069 (cgraph_node): Inherit from symtab_node; add GTY option
11070 tag ("SYMTAB_FUNCTION").
11071 (varpool_node): Inherit from symtab_node; add GTY option
11072 tag ("SYMTAB_VARIABLE").
11073 (symtab_node_def): Remove.
11074 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11075 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11076 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11077 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11079 * ipa-ref.h (symtab_node_def): Drop.
11080 (symtab_node): Change underlying type from symtab_node_def to
11082 (const_symtab_node): Likwise.
11084 * is-a.h: Update examples in comment.
11086 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11087 (assembler_name_hash): Likewise.
11089 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11091 * doc/tree-ssa.texi (gimple_phi_result): Document.
11092 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11093 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11094 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11095 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11097 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11099 * expr.h: Revert change and include tree-core.h.
11100 * rtl.h: Revert change and don't include tree-core.h.
11102 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11104 * config/darwin.c: Include gimple.h.
11105 * config/i386/winnt.c: Likewise.
11107 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11109 PR tree-optimization/19831
11110 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11112 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11114 * tree-outof-ssa.h: Remove include files.
11115 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11116 * expr.c: Likewise.
11117 * tree-ssa-coalesce.c: Likewise.
11118 * cfgexpand.c: Likewise.
11119 * tree-ssa-ter.c: Likewise.
11120 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11121 * lto-streamer.h: Likewise.
11122 * cgraphbuild.c: Add gimple.h to include list.
11123 * data-streamer-in.c: Likewise.
11124 * ipa-cp.c: Likewise.
11125 * tree-streamer.c: Likewise.
11126 * lto-compress.c: Likewise.
11127 * ipa-reference.c: Likewise.
11128 * data-streamer-out.c: Likewise.
11129 * lto-cgraph.c: Likewise.
11130 * cgraphclones.c: Likewise.
11131 * ipa-utils.c: Likewise.
11132 * data-streamer.c: Likewise.
11133 * ipa-split.c: Likewise.
11134 * lto-section-in.c: Likewise.
11135 * tree-streamer-out.c: Likewise.
11136 * ipa-prop.c: Likewise.
11137 * tree-streamer-in.c: Likewise.
11138 * symtab.c: Likewise.
11139 * opts-global.c: Likewise.
11140 * lto-opts.c: Likewise.
11141 * lto-section-out.c: Likewise.
11142 * lto-streamer.c: Likewise.
11143 * rtl.h: Add tree-core.h to include list.
11144 * expr.h: Remove tree-core.h from include list.
11145 * gimple.h: Likewise.
11146 * ipa-utils.h: Likewise.
11147 * streamer-hooks.h: Likewise.
11148 * streamer-hooks.c: Include input.h.
11150 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11152 * config/arm/arm.c (cortexa7_extra_costs): New table.
11153 (arm_cortex_a7_tune): New.
11154 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11156 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11158 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11160 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11162 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11163 to use autogenerated markers for a class-hierarchy, every class
11164 must have a GTY marker.
11165 * gengtype.h (struct type): Add linked list of subclasses to
11166 the "s" member of the union.
11167 (add_subclass): New decl.
11168 * gengtype-state.c (read_state_struct_type): Set up subclass
11170 * gengtype.c (get_ultimate_base_class): New.
11171 (add_subclass): New.
11172 (new_structure): Set up subclass linked list.
11173 (set_gc_used_type): Propagate usage information to subclasses.
11174 (output_mangled_typename): Use get_ultimate_base_class.
11175 (walk_subclasses): Use the subclass linked list, avoiding an
11176 O(N^2) when writing out all types.
11177 (walk_type): Issue an error if the base class is missing a tag,
11178 rather than generating bogus C code. Add a gcc_unreachable
11179 default case, in case people omit tags from concrete subclasses,
11180 or get the values wrong.
11181 (write_func_for_structure): Issue an error for subclasses for
11182 which the base doesn't have a "desc", since otherwise the
11183 autogenerated routines for the base would silently fail to visit
11184 any subclass fields.
11185 (write_root): Use get_ultimate_base_class, tweaking constness of
11186 tp to match that function's signature.
11188 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11190 * doc/gty.texi (GTY Options): Add note about inheritance to
11191 description of desc and tag.
11192 (Inheritance and GTY): New.
11194 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11196 * gengtype-parse.c (opts_have): Drop "static" so that
11197 we can use this from gengtype.c.
11198 * gengtype.c (set_gc_used_type): Mark any base class as used;
11199 update field traversal to visit inherited fields.
11200 (output_mangled_typename): Convert references to classes within
11201 an inheritance hierarchy to reference the ultimate base class,
11202 since only it will have gt_ functions.
11203 (get_string_option): New.
11204 (walk_subclasses): New.
11205 (walk_type): Treat GTY structs that have a "desc" as being the
11206 root of an inheritance hierarchy. Generate a switch on it
11207 within the marking function which walks all subclasses, adding
11208 cases for them via walk_subclasses. For subclasses, visit all
11209 fields of the type (including inherited ones).
11210 (write_func_for_structure): Don't write fns for subclasses, only
11211 for the ultimate base class within an inheritance hierarchy.
11212 Subclasses-marking will be handled by the base class marking functions.
11213 (write_types): Likewise.
11214 (write_local_func_for_structure): Likewise.
11215 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11216 a "tag" option (and are thus concrete subclasses).
11217 (write_root): Use the marker function for the ultimate base class.
11218 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11219 (opts_have): Add declaration.
11221 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11223 * lra-spills.c (lra_final_code_change): Remove useless move insns
11224 originated from moves of pseudos.
11226 2013-10-28 Jeff Law <law@redhat.com>
11228 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11230 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11232 * df-scan.c (df_collection_rec): Adjust.
11233 (copy_defs): New constant.
11234 (copy_uses): Likewise.
11235 (copy_eq_uses): Likewise.
11236 (copy_mw): Likewise.
11237 (copy_all): Likewise.
11238 (df_insn_rescan): Adjust.
11239 (df_notes_rescan): Likewise.
11240 (df_swap_refs): Likewise.
11241 (df_sort_and_compress_refs): Likewise.
11242 (df_sort_and_compress_mws): Likewise.
11243 (df_install_refs): Likewise.
11244 (df_install_mws): Likewise.
11245 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11247 (df_bb_refs_record): Adjust.
11248 (df_record_entry_block_defs): Likewise.
11249 (df_record_exit_block_defs): Likewise.
11250 (df_refs_verify): Likewise.
11251 (df_mws_verify): Likewise.
11252 (df_insn_refs_verify): Likewise.
11253 (df_bb_verify): Likewise.
11254 * ipa-pure-const.c (finish_state): Remove.
11255 (propagate): Adjust.
11256 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11257 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11258 var-tracking.c: Adjust.
11259 * vec.c (stack_vecs): Remove.
11260 (register_stack_vec): Likewise.
11261 (stack_vec_register_index): Likewise.
11262 (unregister_stack_vec): Likewise.
11263 * vec.h (struct va_stack): Remove.
11264 (struct vec<T, A, vl_ptr>): Specialize as
11265 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11266 allocation strategy compatable with the vl_ptr layout.
11267 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11268 specialization anyway.
11269 (class stack_vec): New class.
11270 (vec_stack_alloc): Remove.
11271 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11273 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11275 Sergey Lega <sergey.s.lega@intel.com>
11276 Anna Tikhonova <anna.tikhonova@intel.com>
11277 Ilya Tocar <ilya.tocar@intel.com>
11278 Andrey Turetskiy <andrey.turetskiy@intel.com>
11279 Ilya Verbin <ilya.verbin@intel.com>
11280 Kirill Yukhin <kirill.yukhin@intel.com>
11281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11283 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11284 (*prefetch_avx512pf_<mode>): New.
11285 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11286 (avx512f_maskcmp<mode>3): Ditto.
11287 (vashrv16si3): Ditto.
11289 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11291 Sergey Lega <sergey.s.lega@intel.com>
11292 Anna Tikhonova <anna.tikhonova@intel.com>
11293 Ilya Tocar <ilya.tocar@intel.com>
11294 Andrey Turetskiy <andrey.turetskiy@intel.com>
11295 Ilya Verbin <ilya.verbin@intel.com>
11296 Kirill Yukhin <kirill.yukhin@intel.com>
11297 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11299 * config/i386/i386.md (any_truncate): New.
11300 (trunsuffix): Ditto.
11301 * config/i386/predicates.md (const_8_to_9_operand): New.
11302 (const_10_to_11_operand): Ditto.
11303 (const_12_to_13_operand): Ditto.
11304 (const_14_to_15_operand): Ditto.
11305 (const_16_to_19_operand): Ditto.
11306 (const_20_to_23_operand): Ditto.
11307 (const_24_to_27_operand): Ditto.
11308 (const_28_to_31_operand): Ditto.
11309 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11310 (cvtusi2<ssescalarmodesuffix>32): New.
11311 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11312 (ufloatv16siv16sf2): Ditto.
11313 (avx512f_fix_notruncv16sfv16si): Ditto.
11314 (avx512f_ufix_notruncv16sfv16si): Ditto.
11315 (avx512f_vcvtss2usi): Ditto.
11316 (avx512f_vcvtss2usiq): Ditto.
11317 (avx512f_vcvttss2usi): Ditto.
11318 (avx512f_vcvttss2usiq): Ditto.
11319 (avx512f_vcvtsd2usi): Ditto.
11320 (avx512f_vcvtsd2usiq): Ditto.
11321 (avx512f_vcvttsd2usi): Ditto.
11322 (avx512f_vcvttsd2usiq): Ditto.
11323 (ufloatv8siv8df): Ditto.
11324 (avx512f_cvtdq2pd512_2): Ditto.
11325 (avx512f_cvtpd2dq512): Ditto.
11326 (avx512f_ufix_notruncv8dfv8si): Ditto.
11327 (avx512f_cvtpd2ps512): Ditto.
11328 (vec_unpacks_lo_v16sf): Ditto.
11329 (vec_unpacks_hi_v16sf): Ditto.
11330 (vec_unpacks_float_hi_v16si): Ditto.
11331 (vec_unpacks_float_lo_v16si): Ditto.
11332 (avx512f_unpckhps512): Ditto.
11333 (avx512f_unpcklps512): Ditto.
11334 (avx512f_movshdup512): Ditto.
11335 (avx512f_movsldup512): Ditto.
11336 (vec_extract_lo_v32hi): Ditto.
11337 (vec_extract_hi_v32hi): Ditto.
11338 (vec_extract_lo_v64qi): Ditto.
11339 (vec_extract_hi_v64qi): Ditto.
11340 (avx512f_unpckhpd512): Ditto.
11341 (avx512f_movddup512): Ditto.
11342 (avx512f_unpcklpd512): Ditto.
11343 (*avx512f_unpcklpd512): Ditto.
11344 (avx512f_shufps512_1): Ditto.
11345 (avx512f_shufpd512_1): Ditto.
11346 (avx512f_interleave_highv8di): Ditto.
11347 (avx512f_interleave_lowv8di): Ditto.
11348 (PMOV_DST_MODE): Ditto.
11349 (pmov_src_mode): Ditto.
11350 (pmov_src_lower): Ditto.
11351 (pmov_suff): Ditto.
11352 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11353 (*avx512f_<code>v8div16qi2): Ditto.
11354 (*avx512f_<code>v8div16qi2_store): Ditto.
11355 (vec_widen_umult_even_v16si): Ditto.
11356 (*vec_widen_umult_even_v16si): Ditto.
11357 (vec_widen_smult_even_v16si): Ditto.
11358 (*vec_widen_smult_even_v16si): Ditto.
11359 (avx512f_interleave_highv16si): Ditto.
11360 (avx512f_interleave_lowv16si): Ditto.
11361 (avx512f_<code>v16qiv16si2): Ditto.
11362 (avx512f_<code>v16hiv16si2): Ditto.
11363 (avx512f_<code>v8qiv8di2): Ditto.
11364 (avx512f_<code>v8hiv8di2): Ditto.
11365 (avx512f_<code>v8siv8di2): Ditto.
11366 (avx512cd_maskb_vec_dupv8di): Ditto.
11367 (avx512cd_maskw_vec_dupv16si): Ditto.
11368 (avx512f_vcvtph2ps512): Ditto.
11369 (avx512f_vcvtps2ph512): Ditto.
11370 (VEC_EXTRACT_MODE): Extened with wider modes.
11371 (VEC_PERM_AVX2): Ditto.
11372 (VEC_PERM_CONST): Ditto.
11374 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11376 * config/arc/arc.c (arc_ccfsm_post_advance):
11377 Add comment about TYPE_RETURN.
11379 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11381 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11382 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11383 (strip_offset): Convert offset to unsigned number.
11385 2013-10-27 Tom de Vries <tom@codesourcery.com>
11387 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11388 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11390 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11392 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11393 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11394 (TARGET_BIG_ENDIAN): New macro.
11395 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11396 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11397 * config/sh/sh.c: Likewise.
11398 * config/sh/sh.h: Likewise.
11400 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11402 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11403 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11405 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11407 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11409 (cmpstr_t, cmpstrsi): Fix formatting.
11411 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11414 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11415 addressing, do not use general_operand for memory operands.
11417 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11420 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11421 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11423 2013-10-26 Jeff Law <law@redhat.com>
11425 * predict.c (PRED_MUDFLAP): Remove.
11426 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11428 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11429 (OBJS): Remove tree-nomudflap.o
11430 (GTFILES): Remove tree-mudflap.c
11431 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11432 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11433 (mfwrap_spec, mflib_spec): Likewise.
11434 (cpp_unique_options, cc1_options, static_specs): Likewise.
11435 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11436 * passes.def: Likewise.
11437 * toplev.c (compile_file, process_options): Likewise.
11438 * tree-inline.c (copy_tree_r): Likewise.
11439 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11440 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11441 (build_constant_desc, output_constant_def_contents): Likewise.
11442 (categorize_decl_for_section): Likewise.
11443 * tree-mudflap.c: Removed.
11444 * tree-mudflap.h: Removed.
11445 * tree-nomudflap.c: Removed.
11446 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11447 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11448 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11449 * config/sol2.h (MFLIB_SPEC): Likewise.
11450 * doc/install.texi: Remove mudflap references.
11451 * doc/passes.texi: Similarly.
11452 * doc/sourcebuild.texi: Similarly.
11453 * doc/invoke.texi: Remove mudlfap related options.
11455 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11457 PR rtl-optimization/58759
11458 * lra-constraints.c (lra_constraints): Remove wrong condition to
11459 remove insn setting up an equivalent pseudo.
11461 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11463 * config/rs6000/rs6000-protos.h
11464 (rs6000_secondary_memory_needed_mode): New prototype.
11465 * config/rs6000/rs6000.c: Include ira.h.
11466 (TARGET_LRA_P): Redefine.
11467 (rs6000_legitimate_offset_address_p): Call
11468 legitimate_constant_pool_address_p in strict mode for LRA.
11469 (rs6000_legitimate_address_p): Ditto.
11470 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11471 (rs6000_emit_move): Add LRA version of code to generate load/store
11473 (rs6000_secondary_memory_needed_mode): New.
11474 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11475 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11476 constants, memory, and FP registers.
11477 (rs6000_lra_p): New.
11478 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11479 * config/rs6000/rs6000.opt (mlra): New option.
11480 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11482 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11484 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11485 has_single_use () and not do the conversion if has_single_use ()
11486 returns false for the multiplication result.
11488 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11490 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11491 to "NODE", since this works on a "tree", not an
11493 (CONSTANT_CLASS_P): Likewise.
11494 (TYPE_P): Likewise.
11495 (DECL_P): Likewise.
11496 (INDIRECT_REF_P): Likewise.
11497 (REFERENCE_CLASS_P): Likewise.
11498 (COMPARISON_CLASS_P): Likewise.
11499 (UNARY_CLASS_P): Likewise.
11500 (BINARY_CLASS_P): Likewise.
11501 (STATEMENT_CLASS_P): Likewise.
11502 (VL_EXP_CLASS_P): Likewise.
11503 (EXPRESSION_CLASS_P): Likewise.
11504 (IS_TYPE_OR_DECL_P): Likewise.
11506 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11508 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11509 ADDR_EXPR in the defining statement.
11511 2013-10-25 Richard Biener <rguenther@suse.de>
11513 PR tree-optimization/58626
11514 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11515 anti_dd, output_dd and input_dd.
11516 (struct rdg_edge): Remove level and relation members.
11517 (RDGE_LEVEL, RDGE_RELATION): Remove.
11518 (dot_rdg_1): Adjust.
11519 (create_rdg_edge_for_ddr): Remove.
11520 (create_rdg_edges_for_scalar): Adjust.
11521 (create_edge_for_control_dependence): Likewise.
11522 (create_rdg_edges): Split into ...
11523 (create_rdg_flow_edges): ... this
11524 (create_rdg_cd_edges): ... and this.
11525 (free_rdg): Adjust.
11526 (build_rdg): Likewise, do not compute data dependences or
11527 add edges for them.
11528 (pg_add_dependence_edges): New function.
11530 (distribute_loop): First apply all non-dependence based
11531 partition mergings. Then compute dependences between partitions
11532 and merge and order partitions according to them.
11534 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11536 PR rtl-optimization/58831
11537 * alias.c (init_alias_analysis): At the beginning of each iteration,
11538 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11540 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11542 * recog.c (search_ofs): New static variable moved from...
11543 (peep2_find_free_register): ...here.
11544 (peephole2_optimize): Initialize it.
11546 2013-10-25 Tobias Burnus <burnus@net-b.de>
11548 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11550 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11552 * config/i386/i386.h (TARGET_MPX): New define.
11553 (TARGET_MPX_P): Ditto.
11555 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11557 * config/i386/constraints.md (B): New.
11560 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11561 * config/i386/i386-modes.def (BND32): New.
11563 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11564 * config/i386/i386.c (isa_opts): Add mmpx.
11565 (regclass_map): Add bound registers.
11566 (dbx_register_map): Likewise.
11567 (dbx64_register_map): Likewise.
11568 (svr4_dbx_register_map): Likewise.
11570 (ix86_option_override_internal): Support MPX ISA.
11571 (ix86_conditional_register_usage): Support bound registers.
11572 (print_reg): Likewise.
11573 (ix86_code_end): Add MPX bnd prefix.
11574 (output_set_got): Likewise.
11575 (ix86_output_call_insn): Likewise.
11576 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11577 (ix86_print_operand_punct_valid_p): Likewise.
11578 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11580 (ix86_class_likely_spilled_p): Add bound regs support.
11581 (ix86_hard_regno_mode_ok): Likewise.
11582 (x86_order_regs_for_local_alloc): Likewise.
11583 (ix86_bnd_prefixed_insn_p): New.
11584 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11585 (FIXED_REGISTERS): Add bound registers.
11586 (CALL_USED_REGISTERS): Likewise.
11587 (REG_ALLOC_ORDER): Likewise.
11588 (HARD_REGNO_NREGS): Likewise.
11590 (VALID_BND_REG_MODE): New.
11591 (FIRST_BND_REG): New.
11592 (LAST_BND_REG): New.
11593 (reg_class): Add BND_REGS.
11594 (REG_CLASS_NAMES): Likewise.
11595 (REG_CLASS_CONTENTS): Likewise.
11596 (BND_REGNO_P): New.
11597 (ANY_BND_REG_P): New.
11599 (HI_REGISTER_NAMES): Add bound registers.
11600 * config/i386/i386.md (UNSPEC_BNDMK): New.
11601 (UNSPEC_BNDMK_ADDR): New.
11602 (UNSPEC_BNDSTX): New.
11603 (UNSPEC_BNDLDX): New.
11604 (UNSPEC_BNDLDX_ADDR): New.
11605 (UNSPEC_BNDCL): New.
11606 (UNSPEC_BNDCU): New.
11607 (UNSPEC_BNDCN): New.
11608 (UNSPEC_MPX_FENCE): New.
11611 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11612 (length_immediate): Likewise.
11613 (prefix_0f): Likewise.
11614 (memory): Likewise.
11615 (prefix_rep): Check for bnd prefix.
11616 (length_nobnd): New.
11617 (length): Use length_nobnd if specified.
11622 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11623 (*jcc_2): Likewise.
11625 (simple_return_internal): Likewise.
11626 (simple_return_pop_internal): Likewise.
11627 (*indirect_jump): Add MPX bnd prefix.
11628 (*tablejump_1): Likewise.
11629 (simple_return_internal_long): Likewise.
11630 (simple_return_indirect_internal): Likewise.
11634 (*mov<mode>_internal_mpx): New.
11635 (<mode>_<bndcheck>): New.
11636 (*<mode>_<bndcheck>): New.
11638 (*<mode>_ldx): New.
11640 (*<mode>_stx): New.
11641 * config/i386/predicates.md (lea_address_operand): Rename to...
11642 (address_no_seg_operand): ... this.
11643 (address_mpx_no_base_operand): New.
11644 (address_mpx_no_index_operand): New.
11645 (bnd_mem_operator): New.
11646 * config/i386/i386.opt (mmpx): New.
11647 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11648 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11650 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11652 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11653 * tree.def (POINTER_BOUNDS_TYPE): New.
11654 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11655 (POINTER_BOUNDS_MODE): New.
11656 (make_pointer_bounds_mode): New.
11657 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11658 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11659 (layout_type): Support POINTER_BOUNDS_TYPE.
11660 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11661 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11662 (type_contains_placeholder_1): Likewise.
11663 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11664 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11665 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11667 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11669 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11670 mode of address computation when calling memory_address_addr_space.
11672 2013-08-24 Richard Henderson <rth@twiddle.net>
11675 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11676 instead of create_convert_operand_to.
11677 (maybe_emit_sync_lock_test_and_set): Likewise.
11678 (expand_atomic_compare_and_swap): Likewise.
11679 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11681 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11683 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11684 Change param_is to use the struct and not the pointer to the struct.
11686 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11688 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11689 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11690 Move to targhooks.c.
11691 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11692 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11693 Relocate from gimplify.c.
11694 * targhooks.h: Add 2 prototypes.
11695 * tree.h: Delete 2 prototypes.
11697 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11699 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11700 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11702 2013-10-24 Cong Hou <congh@google.com>
11704 * convert.c (convert_to_real): Guard those unsafe math function
11705 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11708 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11711 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11713 (cgraph_create_edge): Use the new argument.
11714 (cgraph_create_indirect_edge): Likewise.
11716 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11718 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11719 TYPE_UNCOND_BRANCH.
11720 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11721 changes statep->state.
11723 2013-10-24 Tobias Burnus <burnus@net-b.de>
11726 * tree-cfg.c (replace_loop_annotate): New function.
11727 (execute_build_cfg): Call it.
11728 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11729 * internal-fn.c (expand_ANNOTATE): New function.
11730 * internal-fn.def (ANNOTATE): Define as new internal function.
11731 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11732 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11733 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11734 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11735 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11737 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11738 Marcus Shawcroft <marcus.shawcroft@arm.com>
11740 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11741 Special case reload SP+C into none GENERAL_REGS.
11743 2013-10-24 Michael Matz <matz@suse.de>
11745 * gengtype.c (is_file_equal): Check that files will be same length.
11747 2013-10-25 Christian Bruel <christian.bruel@st.com>
11749 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11750 * config/sh/t-sh (sh-mem.o): New rule.
11751 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11752 (sh_expand_cmpstr): New function.
11753 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11754 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11755 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11756 (rotlhi3_8): Rename.
11758 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11760 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11761 * Makefile.in (CXXDEPMODE): Assign and change users.
11762 (CCDEPMODE): Delete.
11763 * configure: Regenerate.
11765 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11767 * gengtype-parse.c (require_without_advance): New.
11768 (type): For GTY-marked types that are not GTY((user)), parse any
11769 base classes, requiring them to be single-inheritance, and not
11770 be templates. For non-GTY-marked types and GTY((user)),
11771 continue to skip over any C++ inheritance specification.
11772 * gengtype-state.c (state_writer::write_state_struct_type):
11773 Write base class of type (if any).
11774 (read_state_struct_type): Read base class of type (if any).
11775 * gengtype.c (new_structure): Add a "base_class" parameter.
11776 (create_optional_field_): Update for new parameter to new_structure.
11777 (adjust_field_rtx_def): Likewise.
11778 (adjust_field_tree_exp): Likewise.
11779 * gengtype.h (struct type): Add "base_class" field to the s
11781 (new_structure): Add "base" parameter.
11783 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11786 * config/i386/i386.c (ix86_option_override_internal):
11787 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11788 (ix86_valid_target_attribute_tree):
11789 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11790 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11792 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11794 * tree-ssa-loop.h: Remove include files.
11795 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11796 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11797 * graphite-clast-to-gimple.c: Likewise.
11798 * graphite-scop-detection.c: Likewise.
11799 * graphite-sese-to-poly.c: Likewise.
11800 * ipa-inline-analysis.c: Likewise.
11801 * ipa-pure-const.c: Likewise.
11802 * loop-init.c: Likewise.
11803 * passes.c: Likewise.
11804 * predict.c: Likewise.
11805 * tree-cfg.c: Likewise.
11806 * tree-cfgcleanup.c: Likewise.
11807 * tree-chrec.c: Likewise.
11808 * tree-data-ref.c: Likewise.
11809 * tree-loop-distribution.c: Likewise.
11810 * tree-parloops.c: Likewise.
11811 * tree-predcom.c: Likewise.
11812 * tree-scalar-evolution.c: Likewise.
11813 * tree-ssa-address.c: Likewise.
11814 * tree-ssa.c: Likewise.
11815 * tree-ssa-dce.c: Likewise.
11816 * tree-ssa-loop.c: Likewise.
11817 * tree-ssa-loop-im.c: Likewise.
11818 * tree-ssa-loop-ivcanon.c: Likewise.
11819 * tree-ssa-loop-ivopts.c: Likewise.
11820 * tree-ssa-loop-manip.c: Likewise.
11821 * tree-ssa-loop-niter.c: Likewise.
11822 * tree-ssa-loop-prefetch.c: Likewise.
11823 * tree-ssa-loop-unswitch.c: Likewise.
11824 * tree-ssa-reassoc.c: Likewise.
11825 * tree-vect-data-refs.c: Likewise.
11826 * tree-vect-loop.c: Likewise.
11827 * tree-vect-loop-manip.c: Likewise.
11828 * tree-vectorizer.c: Likewise.
11829 * tree-vect-stmts.c: Likewise.
11830 * tree-vrp.c: Likewise.
11832 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11834 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11836 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11838 PR tree-optimization/58775
11839 PR tree-optimization/58791
11840 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11841 (insert_stmt_after): Rewritten, don't move the stmt, but really
11843 (get_stmt_uid_with_default): Remove.
11844 (build_and_add_sum): Use insert_stmt_after and
11845 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11846 (update_range_test): Set uid on stmts added by
11847 force_gimple_operand_gsi. Don't immediately modify statements
11848 in inter-bb optimization, just update oe->op values.
11849 (optimize_range_tests): Return bool whether any changed have been made.
11850 (update_ops): New function.
11851 (struct inter_bb_range_test_entry): New type.
11852 (maybe_optimize_range_tests): Perform statement changes here.
11853 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11854 ensure_ops_are_available): Remove.
11855 (find_insert_point): Rewritten.
11856 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11857 return LHS of the (new resp. old) stmt. Don't call
11858 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11859 instead of last, move new stmt at the right place.
11860 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11861 (negate_value): Likewise. Set uids.
11862 (break_up_subtract_bb): Initialize uids.
11863 (reassociate_bb): Adjust rewrite_expr_tree caller.
11864 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11866 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11869 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11870 TARGET_32BIT final condition.
11871 (mulsi3_internal2 and splitter): Same.
11873 2013-10-23 Jeff Law <law@redhat.com>
11875 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11876 through joiner blocks with abnormal outgoing edges.
11878 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11879 Add parameter JOINERS, to allow/disallow threading through joiner
11881 (thread_block): New. Call thread_block_1.
11882 (mark_threaded_blocks): Remove code to filter out certain cases
11883 of threading through joiner blocks.
11884 (thread_through_all_blocks): Document how we can have a dangling
11885 edge AUX field and clear it.
11887 2013-10-23 Ian Lance Taylor <iant@google.com>
11889 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11890 (C++ Dialect Options): Likewise.
11891 (Optimize Options): Likewise.
11893 2013-10-23 Tom de Vries <tom@codesourcery.com>
11895 PR tree-optimization/58805
11896 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11898 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11900 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11901 sequence based on get_range_info returned range.
11903 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11905 * tree-ssa.h: Remove all #include's
11906 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11907 * alias.c: Move required includes from tree-ssa.h.
11908 * asan.c: Likewise.
11909 * builtins.c: Likewise.
11910 * calls.c: Likewise.
11911 * cfgexpand.c: Likewise.
11912 * cfghooks.c: Likewise.
11913 * cfgloop.c: Likewise.
11914 * cfgloopmanip.c: Likewise.
11915 * cgraph.c: Likewise.
11916 * cgraphbuild.c: Likewise.
11917 * cgraphclones.c: Likewise.
11918 * cgraphunit.c: Likewise.
11920 * except.c: Likewise.
11921 * expr.c: Likewise.
11922 * final.c: Likewise.
11923 * fold-const.c: Likewise.
11924 * ggc-page.c: Likewise.
11925 * gimple-builder.c: Likewise.
11926 * gimple-fold.c: Likewise.
11927 * gimple-iterator.c: Likewise.
11928 * gimple-low.c: Likewise.
11929 * gimple-pretty-print.c: Likewise.
11930 * gimple-ssa-strength-reduction.c: Likewise.
11931 * gimple-streamer-in.c: Likewise.
11932 * gimple-streamer-out.c: Likewise.
11933 * gimplify.c: Likewise.
11934 * graphite-blocking.c: Likewise.
11935 * graphite-clast-to-gimple.c: Likewise.
11936 * graphite-dependences.c: Likewise.
11937 * graphite-interchange.c: Likewise.
11938 * graphite-optimize-isl.c: Likewise.
11939 * graphite-poly.c: Likewise.
11940 * graphite-scop-detection.c: Likewise.
11941 * graphite-sese-to-poly.c: Likewise.
11942 * graphite.c: Likewise.
11943 * ipa-cp.c: Likewise.
11944 * ipa-inline-analysis.c: Likewise.
11945 * ipa-inline-transform.c: Likewise.
11946 * ipa-inline.c: Likewise.
11947 * ipa-prop.c: Likewise.
11948 * ipa-pure-const.c: Likewise.
11949 * ipa-reference.c: Likewise.
11950 * ipa-split.c: Likewise.
11951 * ipa-utils.c: Likewise.
11952 * loop-init.c: Likewise.
11953 * lto-cgraph.c: Likewise.
11954 * lto-section-in.c: Likewise.
11955 * lto-section-out.c: Likewise.
11956 * lto-streamer-in.c: Likewise.
11957 * lto-streamer-out.c: Likewise.
11958 * lto-streamer.c: Likewise.
11959 * omp-low.c: Likewise.
11960 * passes.c: Likewise.
11961 * predict.c: Likewise.
11962 * print-tree.c: Likewise.
11963 * profile.c: Likewise.
11964 * sese.c: Likewise.
11965 * targhooks.c: Likewise.
11966 * tracer.c: Likewise.
11967 * trans-mem.c: Likewise.
11968 * tree-call-cdce.c: Likewise.
11969 * tree-cfg.c: Likewise.
11970 * tree-cfgcleanup.c: Likewise.
11971 * tree-chrec.c: Likewise.
11972 * tree-complex.c: Likewise.
11973 * tree-data-ref.c: Likewise.
11974 * tree-dfa.c: Likewise.
11975 * tree-eh.c: Likewise.
11976 * tree-emutls.c: Likewise.
11977 * tree-if-conv.c: Likewise.
11978 * tree-inline.c: Likewise.
11979 * tree-into-ssa.c: Likewise.
11980 * tree-loop-distribution.c: Likewise.
11981 * tree-mudflap.c: Likewise.
11982 * tree-nested.c: Likewise.
11983 * tree-nrv.c: Likewise.
11984 * tree-object-size.c: Likewise.
11985 * tree-outof-ssa.c: Likewise.
11986 * tree-parloops.c: Likewise.
11987 * tree-phinodes.c: Likewise.
11988 * tree-predcom.c: Likewise.
11989 * tree-pretty-print.c: Likewise.
11990 * tree-profile.c: Likewise.
11991 * tree-scalar-evolution.c: Likewise.
11992 * tree-sra.c: Likewise.
11993 * tree-ssa-address.c: Likewise.
11994 * tree-ssa-alias.c: Likewise.
11995 * tree-ssa-ccp.c: Likewise.
11996 * tree-ssa-coalesce.c: Likewise.
11997 * tree-ssa-copy.c: Likewise.
11998 * tree-ssa-copyrename.c: Likewise.
11999 * tree-ssa-dce.c: Likewise.
12000 * tree-ssa-dom.c: Likewise.
12001 * tree-ssa-dse.c: Likewise.
12002 * tree-ssa-forwprop.c: Likewise.
12003 * tree-ssa-ifcombine.c: Likewise.
12004 * tree-ssa-live.c: Likewise.
12005 * tree-ssa-loop-ch.c: Likewise.
12006 * tree-ssa-loop-im.c: Likewise.
12007 * tree-ssa-loop-ivcanon.c: Likewise.
12008 * tree-ssa-loop-ivopts.c: Likewise.
12009 * tree-ssa-loop-manip.c: Likewise.
12010 * tree-ssa-loop-niter.c: Likewise.
12011 * tree-ssa-loop-prefetch.c: Likewise.
12012 * tree-ssa-loop-unswitch.c: Likewise.
12013 * tree-ssa-loop.c: Likewise.
12014 * tree-ssa-math-opts.c: Likewise.
12015 * tree-ssa-operands.c: Likewise.
12016 * tree-ssa-phiopt.c: Likewise.
12017 * tree-ssa-phiprop.c: Likewise.
12018 * tree-ssa-pre.c: Likewise.
12019 * tree-ssa-propagate.c: Likewise.
12020 * tree-ssa-reassoc.c: Likewise.
12021 * tree-ssa-sccvn.c: Likewise.
12022 * tree-ssa-sink.c: Likewise.
12023 * tree-ssa-strlen.c: Likewise.
12024 * tree-ssa-structalias.c: Likewise.
12025 * tree-ssa-tail-merge.c: Likewise.
12026 * tree-ssa-ter.c: Likewise.
12027 * tree-ssa-threadedge.c: Likewise.
12028 * tree-ssa-threadupdate.c: Likewise.
12029 * tree-ssa-uncprop.c: Likewise.
12030 * tree-ssa-uninit.c: Likewise.
12031 * tree-ssa.c: Likewise.
12032 * tree-ssanames.c: Likewise.
12033 * tree-stdarg.c: Likewise.
12034 * tree-streamer-in.c: Likewise.
12035 * tree-switch-conversion.c: Likewise.
12036 * tree-tailcall.c: Likewise.
12037 * tree-vect-data-refs.c: Likewise.
12038 * tree-vect-generic.c: Likewise.
12039 * tree-vect-loop-manip.c: Likewise.
12040 * tree-vect-loop.c: Likewise.
12041 * tree-vect-patterns.c: Likewise.
12042 * tree-vect-slp.c: Likewise.
12043 * tree-vect-stmts.c: Likewise.
12044 * tree-vectorizer.c: Likewise.
12045 * tree-vrp.c: Likewise.
12046 * tree.c: Likewise.
12047 * tsan.c: Likewise.
12048 * value-prof.c: Likewise.
12049 * var-tracking.c: Likewise.
12050 * varpool.c: Likewise.
12051 * vtable-verify.c: Likewise.
12053 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12055 * config/tilegx/tilegx.c: Include "tree.h".
12057 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12059 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12060 the info, not after it.
12061 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12062 dump_ssaname_info call.
12063 (pp_gimple_stmt_1): Adjust caller.
12064 (dump_phi_nodes): Likewise. Don't print "# " here.
12066 2013-10-22 Jan Hubicka <jh@suse.cz>
12068 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12070 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12071 * i386.c (expand_small_movmem_or_setmem): New function.
12072 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12074 (alg_usable_p): Add support for value ranges; cleanup.
12075 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12077 2013-10-22 Sterling Augustine <saugustine@google.com>
12079 * doc/invoke.texi: Document -ggnu-pubnames.
12080 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12082 * dwarf2out.c: Include gdb/gdb-index.h.
12083 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12084 debug_generate_pub_sections.
12085 (is_java, output_pubtables, output_pubname): New functions.
12086 (include_pubname_in_output): Handle debug_generate_pub_sections at
12088 (size_of_pubnames): Use new local space_for_flags based on
12089 debug_generate_pub_sections.
12090 (output_pubnames): Unify pubnames and pubtypes output logic.
12091 Genericize comments. Call output_pubname.
12092 (dwarf2out_finish): Move logic to output_pubnames and call it.
12094 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12097 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12098 Remove CCCmode handling.
12099 <case LTU>: Return 'c' suffix for CCCmode.
12100 <case GEU>: Return 'nc' suffix for CCCmode.
12101 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12102 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12103 (*sub<mode>3_cc_overflow): Ditto.
12104 (*subsi3_zext_cc_overflow): Ditto.
12106 2013-10-22 Steve Ellcey <sellcey@mips.com>
12108 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12109 (AND (NOT OP1) (NOT OP2)).
12111 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12113 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12114 meaning of merge-high and merge-low masks for little endian; avoid
12115 use of vector-pack masks for little endian for mismatched modes.
12117 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12119 * config/tilepro/tilepro.c: Include "tree.h".
12121 2013-10-22 Andreas Schwab <schwab@suse.de>
12123 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12126 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12128 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12129 [Ed Smith-Rowland]): New entries.
12130 ([Stephen M. Webb]): Update.
12132 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12134 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12136 2013-10-21 Marek Polacek <polacek@redhat.com>
12138 PR middle-end/58809
12139 * fold-const.c (fold_range_test): Return 0 if the type is not
12142 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12144 * system.h: Move hwint.h include further down.
12145 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12146 gcc_checking_asserts.
12147 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12149 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12151 Fix volatile issues in optimize_bit_field_compare.
12152 * fold-const.c (optimize_bit_field_compare): Bail out if
12153 lvolatilep or rvolatilep.
12155 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12157 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12158 and get_inner_reference returning different pmode for non-volatile
12159 bit-field members dependent on flag_strict_volatile_bitfields.
12160 * stor-layout.c (layout_decl): Remove special handling of
12161 flag_strict_volatile_bitfields.
12162 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12163 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12165 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12167 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12170 2013-10-21 Jeff Law <law@redhat.com>
12172 * tree-ssa-threadedge.c (thread_through_normal_block): New
12173 argument VISITED. Remove VISISTED as a local variable. When we
12174 have a threadable jump, verify the destination of the jump has not
12176 (thread_across_edge): Allocate VISITED bitmap once at function
12177 scope and use it throughout. Make sure to set appropriate bits in
12178 VISITED for E (start of jump thread path).
12179 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12180 through a joiner if any edge on the path has a recorded jump thread.
12182 2013-10-21 Ian Lance Taylor <iant@google.com>
12184 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12185 don't imply that attributes can solve all problems.
12186 (Directory Options): Fix typo.
12188 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12190 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12191 extend and extend_add.
12193 2013-10-21 Richard Biener <rguenther@suse.de>
12195 PR tree-optimization/58794
12196 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12197 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12199 2013-10-21 Richard Biener <rguenther@suse.de>
12201 PR middle-end/58742
12202 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12203 to (T) X for sign-changing conversions (or no conversion).
12205 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12207 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12209 2013-10-20 Jan Hubicka <jh@suse.cz>
12211 * config/i386/i386-tune.def: Add comment; organize into categories
12213 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12215 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12216 argument. Update function comment.
12217 (expand_set_or_movmem_via_rep): New function combining
12218 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12219 (expand_movmem_via_rep_mov): Remove.
12220 expand_setmem_via_rep_stos): Remove.
12221 (expand_movmem_epilogue): Update calls correspondingly.
12222 (expand_setmem_epilogue_via_loop): Likewise.
12223 (emit_memset): New.
12224 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12225 (expand_set_or_movmem_prologue): New function combining
12226 expand_movmem_prologue and expand_setmem_prologue.
12227 (expand_movmem_prologue): Remove.
12228 (expand_setmem_prologue): Remove.
12229 (expand_set_or_movmem_constant_prologue): New function combining
12230 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12231 (expand_constant_movmem_prologue): Remove.
12232 (expand_constant_setmem_prologue): Remove.
12233 (promote_duplicated_reg): Allow vector-const0 value.
12234 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12235 and ix86_expand_setmem.
12236 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12237 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12239 2013-10-21 Diego Novillo <dnovillo@google.com>
12241 * asan.c: Include tree.h
12242 * bb-reorder.c: Likewise.
12243 * cfgcleanup.c: Likewise.
12244 * cfgloopmanip.c: Likewise.
12245 * data-streamer-in.c: Likewise.
12246 * data-streamer-out.c: Likewise.
12247 * data-streamer.c: Likewise.
12248 * dwarf2cfi.c: Likewise.
12249 * graphite-blocking.c: Likewise.
12250 * graphite-clast-to-gimple.c: Likewise.
12251 * graphite-dependences.c: Likewise.
12252 * graphite-interchange.c: Likewise.
12253 * graphite-optimize-isl.c: Likewise.
12254 * graphite-poly.c: Likewise.
12255 * graphite-scop-detection.c: Likewise.
12256 * graphite-sese-to-poly.c: Likewise.
12257 * graphite.c: Likewise.
12258 * ipa-devirt.c: Likewise.
12259 * ipa-profile.c: Likewise.
12262 * loop-init.c: Likewise.
12263 * loop-unroll.c: Likewise.
12264 * lower-subreg.c: Likewise.
12265 * lto/lto-object.c: Likewise.
12266 * recog.c: Likewise.
12267 * reginfo.c: Likewise.
12268 * tree-loop-distribution.c: Likewise.
12269 * tree-parloops.c: Likewise.
12270 * tree-ssa-strlen.c: Likewise.
12271 * tree-streamer.c: Likewise.
12272 * value-prof.c: Likewise.
12273 * target-globals.c: Likewise.
12274 * expr.h: Include tree-core.h instead of tree.h.
12275 * gimple.h: Likewise.
12276 * ipa-prop.h: Likewise.
12277 * ipa-utils.h: Likewise.
12278 * lto-streamer.h: Likewise.
12279 * streamer-hooks.h: Likewise.
12280 * ipa-reference.h: Include cgraph.h instead of tree.h.
12281 * cgraph.h: Include basic-block.h instead of tree.h.
12282 * tree-streamer.h: Do not include tree.h.
12283 * genattrtab.c (write_header): Generate inclusion of tree.h.
12284 * genautomata.c (main): Likewise.
12285 * genemit.c: Likewise.
12286 * genopinit.c: Likewise.
12287 * genoutput.c (output_prologue): Likewise.
12288 * genpeep.c: Likewise.
12290 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12292 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12294 (vec_unpacku_hi_v8hi): Likewise.
12295 (vec_unpacku_lo_v16qi): Likewise.
12296 (vec_unpacku_lo_v8hi): Likewise.
12298 2013-10-20 Jan Hubicka <jh@suse.cz>
12300 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12301 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12302 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12304 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12306 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12307 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12309 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12311 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12314 * system.h: Undef m_slot.
12316 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12318 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12319 all elements for both endian flavors.
12321 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12324 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12325 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12326 and SI_REG for 64bit SYSV ABI targets.
12328 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12330 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12331 to multi_reg_return. Clarify that we are skipping USEs of multiple
12332 return registers. Use bool type where appropriate.
12334 2013-10-18 Jan Hubicka <jh@suse.cz>
12336 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12337 for cold functions.
12338 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12339 (X86_TUNE_PUSH_MEMORY): Likewise.
12340 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12341 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12342 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12344 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12345 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12347 (ix86_option_override_internal): Update to use tune features instead
12350 2013-10-18 Cong Hou <congh@google.com>
12352 PR tree-optimization/58508
12353 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12354 statement that contains data refs with zero-step.
12356 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12358 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12359 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12360 * gimple-low.c (gimple_check_call_arg,
12361 gimple_check_call_matching_types): Move to cgraph.c.
12362 * gimple-low.h: Remove prototype.
12363 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12364 Relocate from gimple-low.c.
12365 * cgraph.h: Add prototype. Don't include basic-block.h.
12366 * gimplify.c: Add gimple-low to include list.
12367 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12368 * tree-eh.c: Add gimple-low to include list.
12369 * tree-nested.c: Likewise.
12370 * cfgexpand.c: Add tree-ssa-address.h to include list.
12371 * expr.c: Likewise.
12372 * gimple-fold.c: Likewise.
12373 * gimple-ssa-strength-reduction.c: Likewise.
12374 * trans-mem.c: Likewise.
12375 * tree-mudflap.c: Likewise.
12376 * tree-ssa-loop-ivopts.c: Likewise.
12377 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12378 (degenerate_phi_result): Move to tree-phinodes.c.
12379 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12380 * tree-ssa-threadedge.c: Likewise.
12381 * tree-vrp.c: Likewise.
12382 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12383 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12384 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12385 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12386 * tree-ssa-forwprop.c: Likewise.
12387 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12388 pass_data_cleanup_cfg_post_optimizing,
12389 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12390 * tree-optimize.c: Delete File.
12391 * graphite.c: Include tree-cfgcleanup.h.
12392 * passes.c: Likewise.
12393 * tree-cfg.c: Likewise.
12394 * tree-profile.c: Likewise.
12395 * tree-ssa-dse.c: Likewise.
12396 * tree-ssa-loop-ivcanon.c: Likewise.
12397 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12398 * tree-outof-ssa.c: Include sbitmap.h.
12399 * tree-ssa-live.c: Likewise.
12400 * tree-ssa-propagate.c: Likewise.
12401 * tree-ssa-structalias.c: Likewise.
12402 * tree-stdarg.c: Likewise.
12403 * Makefile.in (OBJS): Delete tree-optimize.o.
12404 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12405 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12406 * varasm.c: Include basic-block.h.
12407 * cfgloop.h: Include function.h instead of basic-block.h
12408 (bb_loop_depth): Move to cfgloop.c.
12409 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12411 2013-10-18 Teresa Johnson <tejohnson@google.com>
12413 * predict.c (probably_never_executed): Compare frequency-based
12414 count to number of training runs.
12415 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12417 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12419 * config/arm/arm.c (cortexa9_extra_costs): New table.
12420 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12422 2013-10-18 Jeff Law <law@redhat.com>
12424 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12426 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12427 (register_jump_thread): Add "registered_jump_thread" debug
12429 * dbgcnt.def (registered_jump_thread): New debug counter.
12431 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12433 * config/rs6000/rs6000.c: Include cgraph.h.
12435 2013-10-18 Teresa Johnson <tejohnson@google.com>
12437 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12438 weights during merging.
12440 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12442 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12443 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12444 * tree-ssa-operands.h: Remove prototype.
12445 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12446 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12447 * gimple.h: Add prototype.
12448 * gimple-ssa.h: Include tree-ssa-operands.h.
12449 * tree-dump.c: Add tree-cfg.h to include list.
12450 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12451 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12452 * config/i386/i386.c: Don't include tree-flow.h.
12453 * config/rs6000/rs6000.c: Likewise.
12455 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12457 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12459 2013-10-18 Richard Biener <rguenther@suse.de>
12461 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12462 or TYPE_UNSIGNED of integral types.
12463 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12464 NULL_TREE for zero-precision integral types.
12466 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12468 * config/aarch64/arm_neon.h
12469 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12471 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12474 * opth-gen.awk: Define target_flags_explicit.
12476 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12478 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12479 fields to the reg_addr array that describes the valid addressing
12480 mode for any register, general purpose registers, floating point
12481 registers, and Altivec registers.
12482 (FIRST_RELOAD_REG_CLASS): Likewise.
12483 (LAST_RELOAD_REG_CLASS): Likewise.
12484 (struct reload_reg_map_type): Likewise.
12485 (reload_reg_map_type): Likewise.
12486 (RELOAD_REG_VALID): Likewise.
12487 (RELOAD_REG_MULTIPLE): Likewise.
12488 (RELOAD_REG_INDEXED): Likewise.
12489 (RELOAD_REG_OFFSET): Likewise.
12490 (RELOAD_REG_PRE_INCDEC): Likewise.
12491 (RELOAD_REG_PRE_MODIFY): Likewise.
12492 (reg_addr): Likewise.
12493 (mode_supports_pre_incdec_p): New helper functions to say whether
12494 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12495 (mode_supports_pre_modify_p): Likewise.
12496 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12497 print the valid address mode bits for each mode.
12498 (rs6000_debug_print_mode): Likewise.
12499 (rs6000_debug_reg_global): Likewise.
12500 (rs6000_setup_reg_addr_masks): New function to set up the address
12501 mask bits for each type.
12502 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12503 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12504 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12505 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12506 PRE_MODIFY are supported.
12507 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12508 registers, instead of {src,dest}_av_p.
12509 (rs6000_print_options_internal): Tweak the debug output slightly.
12511 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12513 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12516 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12518 * tree-flow.h (struct omp_region): Move to omp-low.c.
12519 Remove omp_ prototypes and variables.
12520 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12521 (copy_var_decl): Relocate prototype from tree-flow.h.
12522 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12523 * tree.h: Move prototype to omp-low.h.
12524 * omp-low.h: New File. Relocate prototypes here.
12525 * omp-low.c (struct omp_region): Make local here.
12526 (root_omp_region): Make static.
12527 (copy_var_decl) Move to gimple.c.
12528 (new_omp_region): Make static.
12529 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12530 * tree-cfg.c: Include omp-low.h.
12531 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12532 * gimplify.c: Include omp-low.h.
12533 * tree-parloops.c: Likewise.
12535 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12537 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12538 operands are in memory, prefer to force non-matched operand 1 to
12541 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12544 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12545 restrict TImode addresses to single indirect registers if both
12546 -mquad-memory and -mvsx-timode are used.
12547 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12548 we should emit load/store quad. Remove using %y for quad memory
12551 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12552 constraints to allow load/store quad on machines where TImode is
12553 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12554 for TImode to load integer constants.
12556 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12558 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12560 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12562 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12563 handling of STACK_REG.
12565 2013-10-17 Richard Biener <rguenther@suse.de>
12567 PR tree-optimization/58143
12568 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12570 (rewrite_to_defined_overflow): Likewise.
12571 (move_computations_dom_walker::before_dom): Rewrite stmts
12572 with undefined signed overflow that are not always executed
12573 into unsigned arithmetic.
12575 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12578 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12579 explicit isa flag to be an options variable, instead of using
12580 global_options_set. Remove define from rs6000.h.
12581 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12583 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12584 Initialize rs6000_isa_flags_explicit.
12585 (rs6000_function_specific_save): Add gcc_options* parameter, so
12586 that the powerpc builds after the 2013-10-15 changes.
12587 (rs6000_function_specific_restore): Likewise.
12589 2013-10-16 DJ Delorie <dj@redhat.com>
12591 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12592 op is a REG before checking REGNO.
12593 (rl78_alloc_physical_registers): Verify pattern is a SET before
12596 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12598 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12600 (vec_unpacks_lo_v4sf): Likewise.
12601 (vec_unpacks_float_hi_v4si): Likewise.
12602 (vec_unpacks_float_lo_v4si): Likewise.
12603 (vec_unpacku_float_hi_v4si): Likewise.
12604 (vec_unpacku_float_lo_v4si): Likewise.
12606 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12608 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12609 (vsx_concat_v2sf): Likewise.
12611 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12613 * config/aarch64/aarch64.md
12614 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12616 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12618 PR tree-optimization/58697
12619 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12620 estimated_loop_iterations_int.
12621 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12622 (get_max_loop_iterations_int): New. HWINT version of
12623 get_max_loop_iterations.
12624 * cfgloop.h: Add prototypes.
12625 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12626 * loop-unroll.c (decide_peel_once_rolling): Call
12627 get_estimated_loop_iterations_int.
12628 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12629 * tree-ssa-loop-niter.h: Tweak prototypes.
12631 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12633 * gengtype-parse.c (struct_field_seq): Ignore access-control
12634 keywords ("public:" etc).
12636 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12638 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12639 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12641 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12643 * config/arm/arm.opt (mlra): New option.
12644 * config/arm/arm.c (arm_lra_p): New function.
12645 (TARGET_LRA_P): Define.
12647 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12649 * tree-core.h (tree_code_name): Remove.
12650 * tree.h (get_tree_code_name): New prototype.
12651 * tree.c (tree_code_name): Make static.
12652 (get_tree_code_name): New function.
12653 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12654 tree_class_check_failed, tree_range_check_failed,
12655 tree_not_class_check_failed, omp_clause_check_failed,
12656 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12657 wrapper get_tree_code_name instead of calling tree_code_name directly.
12658 * tree-vrp.c (dump_asserts_for): Likewise.
12659 * tree-dump.c (dequeue_and_dump): Likewise.
12660 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12661 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12662 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12663 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12664 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12665 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12666 dump_gimple_omp_for): Likewise.
12667 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12668 * tree-ssa-pre.c (print_pre_expr): Likewise.
12669 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12670 * print-tree.c (print_node_brief, print_node): Likewise.
12671 * gimple.c (gimple_check_failed): Likewise.
12672 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12673 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12674 * config/mep/mep.c (mep_validate_vliw): Likewise.
12675 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12676 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12678 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12680 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12683 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12685 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12686 (MULTILIB_MATCHES): Add multilib for -march=v8.
12688 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12691 * optc-save-gen.awk: Add extra parameter to the save and restore
12693 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12694 * tree.c (build_optimization_node): New parameter. Add extra parameter
12695 to call to cl_optimization_save.
12696 (build_target_option_node): New parameter. Add extra parameter
12697 to call to cl_target_option_save.
12698 * tree.h (build_optimization_node): New parameter.
12699 (build_target_option_node): New parameter.
12700 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12701 build_optimization_node and build_target_option_node.
12702 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12703 (handle_pragma_push_options): Ditto.
12704 * toplev.c (process_options): Ditto.
12705 * opts.c (init_options_struct): Check for opts_set non-null.
12706 * target.def (target_option.save): New parameter.
12707 (target_option.restore): New parameter.
12708 * tm.texi: Generate.
12709 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12710 (ix86_pragma_target_parse): Ditto.
12711 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12714 to build_optimization_node and build_target_option_node.
12715 (rs6000_valid_attribute_p): Ditto.
12716 (rs6000_pragma_target_parse): Ditto.
12717 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12719 * config/i386/i386.h:
12720 TARGET_64BIT_P: New Macro
12721 TARGET_MMX_P: New Macro.
12722 TARGET_3DNOW_P: New Macro.
12723 TARGET_3DNOW_A_P: New Macro.
12724 TARGET_SSE_P: New Macro.
12725 TARGET_SSE2_P: New Macro.
12726 TARGET_SSE3_P: New Macro.
12727 TARGET_SSSE3_P: New Macro.
12728 TARGET_SSE4_1_P: New Macro.
12729 TARGET_SSE4_2_P: New Macro.
12730 TARGET_AVX_P: New Macro.
12731 TARGET_AVX2_P: New Macro.
12732 TARGET_AVX512F_P: New Macro.
12733 TARGET_AVX512PF_P: New Macro.
12734 TARGET_AVX512ER_P: New Macro.
12735 TARGET_AVX512CD_P: New Macro.
12736 TARGET_FMA_P: New Macro.
12737 TARGET_SSE4A_P: New Macro.
12738 TARGET_FMA4_P: New Macro.
12739 TARGET_XOP_P: New Macro.
12740 TARGET_LWP_P: New Macro.
12741 TARGET_ABM_P: New Macro.
12742 TARGET_BMI_P: New Macro.
12743 TARGET_BMI2_P: New Macro.
12744 TARGET_LZCNT_P: New Macro.
12745 TARGET_TBM_P: New Macro.
12746 TARGET_POPCNT_P: New Macro.
12747 TARGET_SAHF_P: New Macro.
12748 TARGET_MOVBE_P: New Macro.
12749 TARGET_CRC32_P: New Macro.
12750 TARGET_AES_P: New Macro.
12751 TARGET_PCLMUL_P: New Macro.
12752 TARGET_CMPXCHG16B_P: New Macro.
12753 TARGET_FSGSBASE_P: New Macro.
12754 TARGET_RDRND_P: New Macro.
12755 TARGET_F16C_P: New Macro.
12756 TARGET_RTM_P: New Macro.
12757 TARGET_HLE_P: New Macro.
12758 TARGET_RDSEED_P: New Macro.
12759 TARGET_PRFCHW_P: New Macro.
12760 TARGET_ADX_P: New Macro.
12761 TARGET_FXSR_P: New Macro.
12762 TARGET_XSAVE_P: New Macro.
12763 TARGET_XSAVEOPT_P: New Macro.
12764 TARGET_LP64_P: New Macro.
12765 TARGET_X32_P: New Macro.
12766 TARGET_FPMATH_DEFAULT_P: New Macro.
12767 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12768 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12770 Change ix86_tune_string to access opts->x_ix86_tune_string.
12771 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12772 Change ix86_arch_string to access opts->x_ix86_arch_string.
12773 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12774 Change ix86_pmode to access opts->x_ix86_pmode.
12775 Change ix86_abi to access opts->x_ix86_abi.
12776 Change ix86_cmodel to access opts->x_ix86_cmodel.
12777 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12778 Change ix86_isa_flags_explicit to access
12779 opts->x_ix86_isa_flags_explicit.
12780 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12781 Change ix86_regparm to access opts->x_ix86_regparm.
12782 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12783 Change ix86_preferred_stack_boundary_arg to access
12784 opts->x_ix86_preferred_stack_boundary_arg.
12785 Change ix86_force_align_arg_pointer to access
12786 opts->x_ix86_force_align_arg_pointer.
12787 Change ix86_incoming_stack_boundar_arg to access
12788 opts->x_ix86_incoming_stack_boundar_arg.
12789 Change ix86_fpmath to access opts->x_ix86_fpmath.
12790 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12791 Change ix86_recip_name to access opts->x_ix86_recip_name.
12792 Change ix86_stack_protector_guard to access
12793 opts->x_ix86_stack_protector_guard.
12794 Change ix86_tune_memcpy_strategy to access
12795 opts->x_ix86_tune_memcpy_strategy.
12796 Change ix86_tune_memset_strategy to access
12797 opts->x_ix86_tune_memset_strategy.
12798 Change global_options to access opts.
12799 Change global_options_set to access opts_set.
12800 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12801 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12802 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12803 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12804 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12805 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12806 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12807 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12808 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12809 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12810 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12811 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12812 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12813 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12814 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12815 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12816 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12817 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12818 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12819 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12820 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12821 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12822 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12823 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12824 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12825 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12826 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12827 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12828 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12829 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12830 Change TARGET_AES to TARGET_AES_P (opts->...).
12831 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12832 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12833 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12834 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12835 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12836 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12837 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12838 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12839 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12840 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12841 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12842 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12843 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12844 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12845 Change TARGET_X32 to TARGET_X32_P (opts->...).
12846 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12847 Change TARGET_FLOAT_RETURNS_IN_80387 to
12848 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12849 (ix86_function_specific_save): New parameter. Use opts-> fields
12850 to replace global fields.
12851 (ix86_function_specific_restore): Ditto.
12852 (ix86_valid_target_attribute_inner_p): New parameters.
12853 Fix recursive call.
12854 Fix call to ix86_handle_option and set_option.
12855 (ix86_valid_target_attribute_tree): New parameters.
12856 Change global_options to access opts.
12857 Change global_options_set to access opts_set.
12858 Fix call to ix86_valid_target_attribute_inner_p.
12859 Change ix86_tune_string to access opts->x_ix86_tune_string.
12860 Change ix86_arch_string to access opts->x_ix86_arch_string.
12861 Change ix86_fpmath to access opts->x_ix86_fpmath
12862 Fix call to ix86_option_override_internal.
12863 Fix call to ix86_add_new_builtins.
12864 Fix calls to build_optimization_node and build_target_option_node.
12865 (ix86_valid_target_attribute_p): Remove access to global_options.
12866 Use new gcc_options structure func_options.
12867 Fix call to ix86_valid_target_attribute_tree.
12868 Fix call to build_optimization_node.
12869 (get_builtin_code_for_version): Fix call to
12870 ix86_valid_target_attribute_tree.
12872 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12874 * Makefile.in (PICFLAG): New.
12875 (enable_host_shared): New.
12876 (INTERNAL_CFLAGS): Use PICFLAG.
12877 (LIBIBERTY): Use pic build of libiberty.a if configured with
12878 --enable-host-shared.
12879 * configure.ac: Add --enable-host-shared, setting up new
12881 * configure: Regenerate.
12882 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12883 (--enable-host-shared): New option.
12885 2013-10-15 Richard Biener <rguenther@suse.de>
12887 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12888 for built-in functions.
12890 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12892 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12893 (optimize_range_tests_1): New function,
12894 extracted from optimize_range_tests.
12895 (optimize_range_tests_xor): Similarly.
12896 (optimize_range_tests_diff): New function.
12897 (optimize_range_tests): Use optimize_range_tests_1.
12899 2013-10-15 Cong Hou <congh@google.com>
12901 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12902 requirement of the reduction pattern so that one operand of the
12903 reduction operation can come from outside of the loop.
12905 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12907 * config/arm/neon-schedgen.ml: Remove.
12908 * config/arm/cortex-a9-neon.md: Remove comment regarding
12911 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12913 * config/arm/types: Remove old neon types.
12915 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12917 * config/arm/cortex-a7.md
12918 (cortex_a7_neon_type): New.
12919 (cortex_a7_neon_mul): Update for new types.
12920 (cortex_a7_neon_mla): Likewise.
12921 (cortex_a7_neon): Likewise.
12923 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12925 * config/arm/cortex-a15-neon.md
12926 (cortex_a15_neon_type): New,
12928 (cortex_a15_neon_int_1): Remove.
12929 (cortex_a15_neon_int_2): Likewise.
12930 (cortex_a15_neon_int_3): Likewise.
12931 (cortex_a15_neon_int_4): Likewise.
12932 (cortex_a15_neon_int_5): Likewise.
12933 (cortex_a15_neon_vqneg_vqabs): Likewise.
12934 (cortex_a15_neon_vmov): Likewise.
12935 (cortex_a15_neon_vaba): Likewise.
12936 (cortex_a15_neon_vaba_qqq): Likewise.
12937 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12938 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12939 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12941 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12942 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12943 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12944 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12945 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12946 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12947 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12948 (cortex_a15_neon_shift_1): Likewise.
12949 (cortex_a15_neon_shift_2): Likewise.
12950 (cortex_a15_neon_shift_3): Likewise.
12951 (cortex_a15_neon_vshl_ddd): Likewise.
12952 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12953 (cortex_a15_neon_vsra_vrsra): Likewise.
12954 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12955 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12956 (cortex_a15_neon_bp_3cycle): Likewise.
12957 (cortex_a15_neon_ldm_2): Likewise.
12958 (cortex_a15_neon_stm_2): Likewise.
12959 (cortex_a15_neon_mcr): Likewise.
12960 (cortex_a15_neon_mrc): Likewise.
12961 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12962 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12963 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12964 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12965 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12966 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12967 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12968 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12969 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12970 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12971 (cortex_a15_neon_bp_simple): Likewise.
12972 (cortex_a15_neon_bp_2cycle): Likewise.
12973 (cortex_a15_neon_bp_3cycle): Likewise.
12974 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12975 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12976 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12977 (cortex_a15_neon_vld2_4_regs): Likewise.
12978 (cortex_a15_neon_vld3_vld4): Likewise.
12979 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12980 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12981 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12982 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12983 (cortex_a15_neon_vst3_vst4): Rename to...
12984 (cortex_a15_neon_vst4): This, update for new attributes.
12985 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12986 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12987 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12988 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12989 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12990 (cortex_a15_neon_ldm_2): Likewise.
12991 (cortex_a15_neon_stm_2): Likewise.
12992 (cortex_a15_neon_mcr): Likewise.
12993 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12994 (cortex_a15_neon_mrc): Likewise.
12995 (cortex_a15_neon_mrrc): Likewise.
12997 (cortex_a15_neon_abd): New.
12998 (cortex_a15_neon_abd_q): Likewise.
12999 (cortex_a15_neon_aba): Likewise.
13000 (cortex_a15_neon_aba_q): Likewise.
13001 (cortex_a15_neon_acc): Likewise.
13002 (cortex_a15_neon_acc_q): Likewise.
13003 (cortex_a15_neon_arith_basic): Likewise.
13004 (cortex_a15_neon_arith_complex): Likewise.
13005 (cortex_a15_neon_multiply): Likewise.
13006 (cortex_a15_neon_multiply_q): Likewise.
13007 (cortex_a15_neon_mla): Likewise.
13008 (cortex_a15_neon_mla_q): Likewise.
13009 (cortex_a15_neon_sat_mla_long): Likewise.
13010 (cortex_a15_neon_shift_acc): Likewise.
13011 (cortex_a15_neon_shift_imm_basic): Likewise.
13012 (cortex_a15_neon_shift_imm_complex): Likewise.
13013 (cortex_a15_neon_shift_reg_basic): Likewise.
13014 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13015 (cortex_a15_neon_shift_reg_complex): Likewise.
13016 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13017 (cortex_a15_neon_fp_negabs): Likewise
13018 (cortex_a15_neon_fp_arith): Likewise
13019 (cortex_a15_neon_fp_arith_q): Likewise
13020 (cortex_a15_neon_fp_cvt_int): Likewise
13021 (cortex_a15_neon_fp_cvt_int_q): Likewise
13022 (cortex_a15_neon_fp_cvt_16): Likewise
13023 (cortex_a15_neon_fp_mul): Likewise
13024 (cortex_a15_neon_fp_mul_q): Likewise
13025 (cortex_a15_neon_fp_mla): Likewise
13026 (cortex_a15_neon_fp_mla_q): Likewise
13027 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13028 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13029 (cortex_a15_neon_bitops): Likewise.
13030 (cortex_a15_neon_bitops_q): Likewise.
13031 (cortex_a15_neon_from_gp): Likewise.
13032 (cortex_a15_neon_from_gp_q): Likewise.
13033 (cortex_a15_neon_tbl3_tbl4): Likewise.
13034 (cortex_a15_neon_zip_q): Likewise.
13035 (cortex_a15_neon_to_gp): Likewise.
13036 (cortex_a15_neon_load_a): Likewise.
13037 (cortex_a15_neon_load_b): Likewise.
13038 (cortex_a15_neon_load_c): Likewise.
13039 (cortex_a15_neon_load_d): Likewise.
13040 (cortex_a15_neon_load_e): Likewise.
13041 (cortex_a15_neon_load_f): Likewise.
13042 (cortex_a15_neon_store_a): Likewise.
13043 (cortex_a15_neon_store_b): Likewise.
13044 (cortex_a15_neon_store_c): Likewise.
13045 (cortex_a15_neon_store_d): Likewise.
13046 (cortex_a15_neon_store_e): Likewise.
13047 (cortex_a15_neon_store_f): Likewise.
13048 (cortex_a15_neon_store_g): Likewise.
13049 (cortex_a15_neon_store_h): Likewise.
13050 (cortex_a15_vfp_to_from_gp): Likewise.
13052 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13054 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13056 (cortex_a9_neon_vshl_ddd): Remove.
13057 (cortex_a9_neon_vst3_vst4): Likewise.
13058 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13060 (cortex_a9_neon_bit_ops_q): New.
13062 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13063 (cortex_a9_neon_int_2): Likewise.
13064 (cortex_a9_neon_int_3): Likewise.
13065 (cortex_a9_neon_int_4): Likewise.
13066 (cortex_a9_neon_int_5): Likewise.
13067 (cortex_a9_neon_vqneg_vqabs): Likewise.
13068 (cortex_a9_neon_vmov): Likewise.
13069 (cortex_a9_neon_vaba): Likewise.
13070 (cortex_a9_neon_vaba_qqq): Likewise.
13071 (cortex_a9_neon_shift_1): Likewise.
13072 (cortex_a9_neon_shift_2): Likewise.
13073 (cortex_a9_neon_shift_3): Likewise.
13074 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13075 (cortex_a9_neon_vsra_vrsra): Likewise.
13076 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13077 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13078 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13080 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13081 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13082 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13084 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13085 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13086 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13087 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13088 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13089 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13090 (cortex_a9_neon_fp_vsum): Likewise.
13091 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13092 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13093 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13094 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13095 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13096 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13097 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13098 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13099 (cortex_a9_neon_bp_simple): Likewise.
13100 (cortex_a9_neon_bp_2cycle): Likewise.
13101 (cortex_a9_neon_bp_3cycle): Likewise.
13102 (cortex_a9_neon_ldr): Likewise.
13103 (cortex_a9_neon_str): Likewise.
13104 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13105 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13106 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13107 (cortex_a9_neon_vld2_4_regs): Likewise.
13108 (cortex_a9_neon_vld3_vld4): Likewise.
13109 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13110 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13111 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13112 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13113 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13114 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13115 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13116 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13117 (cortex_a9_neon_mcr): Likewise.
13118 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13119 (cortex_a9_neon_mrc): Likewise.
13120 (cortex_a9_neon_mrrc): Likewise.
13122 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13124 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13126 (cortex_a8_neon_vshl_ddd): Remove.
13127 (cortex_a8_neon_vst3_vst4): Likewise.
13128 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13130 (cortex_a8_neon_bit_ops_q): New.
13132 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13133 (cortex_a8_neon_int_2): Likewise..
13134 (cortex_a8_neon_int_3): Likewise.
13135 (cortex_a8_neon_int_5): Likewise.
13136 (cortex_a8_neon_vqneg_vqabs): Likewise.
13137 (cortex_a8_neon_int_4): Likewise.
13138 (cortex_a8_neon_vaba): Likewise.
13139 (cortex_a8_neon_vaba_qqq): Likewise.
13140 (cortex_a8_neon_shift_1): Likewise.
13141 (cortex_a8_neon_shift_2): Likewise.
13142 (cortex_a8_neon_shift_3): Likewise.
13143 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13144 (cortex_a8_neon_vsra_vrsra): Likewise.
13145 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13146 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13147 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13149 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13150 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13151 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13153 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13154 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13155 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13156 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13157 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13158 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13159 (cortex_a8_neon_fp_vsum): Likewise.
13160 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13161 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13162 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13163 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13164 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13165 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13166 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13167 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13168 (cortex_a8_neon_bp_simple): Likewise.
13169 (cortex_a8_neon_bp_2cycle): Likewise.
13170 (cortex_a8_neon_bp_3cycle): Likewise.
13171 (cortex_a8_neon_ldr): Likewise.
13172 (cortex_a8_neon_str): Likewise.
13173 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13174 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13175 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13176 (cortex_a8_neon_vld2_4_regs): Likewise.
13177 (cortex_a8_neon_vld3_vld4): Likewise.
13178 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13179 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13180 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13181 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13182 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13183 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13184 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13185 (cortex_a8_neon_mcr): Likewise.
13186 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13187 (cortex_a8_neon_mrc): Likewise.
13188 (cortex_a8_neon_mrrc): Likewise.
13190 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13192 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13194 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13195 (aarch64_simd_dup<mode>): Add "type" attribute.
13196 (aarch64_dup_lane<mode>): Likewise.
13197 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13198 (*aarch64_simd_mov<mode>): Likewise.
13199 (aarch64_simd_mov_from_<mode>low): Likewise.
13200 (aarch64_simd_mov_from_<mode>high): Likewise.
13201 (orn<mode>3): Likewise.
13202 (bic<mode>3): Likewise.
13203 (add<mode>3): Likewise.
13204 (sub<mode>3): Likewise.
13205 (mul<mode>3): Likewise.
13206 (*aarch64_mul3_elt<mode>): Likewise.
13207 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13208 (*aarch64_mul3_elt_to_128df): Likewise.
13209 (*aarch64_mul3_elt_to_64v2df): Likewise.
13210 (neg<mode>2): Likewise.
13211 (abs<mode>2): Likewise.
13212 (abd<mode>_3): Likewise.
13213 (aba<mode>_3): Likewise.
13214 (fabd<mode>_3): Likewise.
13215 (*fabd_scalar<mode>3): Likewise.
13216 (and<mode>3): Likewise.
13217 (ior<mode>3): Likewise.
13218 (xor<mode>3): Likewise.
13219 (one_cmpl<mode>2): Likewise.
13220 (aarch64_simd_vec_set<mode>): Likewise.
13221 (aarch64_simd_lshr<mode>): Likewise.
13222 (aarch64_simd_ashr<mode>): Likewise.
13223 (aarch64_simd_imm_shl<mode>): Likewise.
13224 (aarch64_simd_reg_sshl<mode): Likewise.
13225 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13226 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13227 (aarch64_simd_vec_setv2di): Likewise.
13228 (aarch64_simd_vec_set<mode>): Likewise.
13229 (aarch64_mla<mode>): Likewise.
13230 (*aarch64_mla_elt<mode>): Likewise.
13231 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13232 (aarch64_mls<mode>): Likewise.
13233 (*aarch64_mls_elt<mode>): Likewise.
13234 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13235 (<su><maxmin><mode>3): Likewise.
13236 (move_lo_quad_<mode>): Likewise.
13237 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13238 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13239 (vec_pack_trunc_<mode>): Likewise.
13240 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13241 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13242 (*aarch64_<su>mlal_lo<mode>): Likewise.
13243 (*aarch64_<su>mlal_hi<mode>): Likewise.
13244 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13245 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13246 (*aarch64_<su>mlal<mode>): Likewise.
13247 (*aarch64_<su>mlsl<mode>): Likewise.
13248 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13249 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13250 (add<mode>3): Likewise.
13251 (sub<mode>3): Likewise.
13252 (mul<mode>3): Likewise.
13253 (div<mode>3): Likewise.
13254 (neg<mode>2): Likewise.
13255 (abs<mode>2): Likewise.
13256 (fma<mode>4): Likewise.
13257 (*aarch64_fma4_elt<mode>): Likewise.
13258 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13259 (*aarch64_fma4_elt_to_128df): Likewise.
13260 (*aarch64_fma4_elt_to_64v2df): Likewise.
13261 (fnma<mode>4): Likewise.
13262 (*aarch64_fnma4_elt<mode>): Likewise.
13263 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13264 (*aarch64_fnma4_elt_to_128df): Likewise.
13265 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13266 (<frint_pattern><mode>2): Likewise.
13267 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13268 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13269 (vec_unpacks_lo_v4sf): Likewise.
13270 (aarch64_float_extend_lo_v2df): Likewise.
13271 (vec_unpacks_hi_v4sf): Likewise.
13272 (aarch64_float_truncate_lo_v2sf): Likewise.
13273 (aarch64_float_truncate_hi_v4sf): Likewise.
13274 (aarch64_vmls<mode>): Likewise.
13275 (<su><maxmin><mode>3): Likewise.
13276 (<maxmin_uns><mode>3): Likewise.
13277 (reduc_<sur>plus_<mode>): Likewise.
13278 (reduc_<sur>plus_v2di): Likewise.
13279 (reduc_<sur>plus_v2si): Likewise.
13280 (reduc_<sur>plus_<mode>): Likewise.
13281 (aarch64_addpv4sf): Likewise.
13282 (clz<mode>2): Likewise.
13283 (reduc_<maxmin_uns>_<mode>): Likewise.
13284 (reduc_<maxmin_uns>_v2di): Likewise.
13285 (reduc_<maxmin_uns>_v2si): Likewise.
13286 (reduc_<maxmin_uns>_<mode>): Likewise.
13287 (reduc_<maxmin_uns>_v4sf): Likewise.
13288 (aarch64_simd_bsl<mode>_internal): Likewise.
13289 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13290 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13291 (aarch64_get_lane<mode>): Likewise.
13292 (*aarch64_combinez<mode>): Likewise.
13293 (aarch64_combine<mode>): Likewise.
13294 (aarch64_simd_combine<mode>): Likewise.
13295 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13296 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13297 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13298 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13299 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13300 (aarch64_<sur>h<addsub><mode>): Likewise.
13301 (aarch64_<sur><addsub>hn<mode>): Likewise.
13302 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13303 (aarch64_pmul<mode>): Likewise.
13304 (aarch64_<su_optab><optab><mode>): Likewise.
13305 (aarch64_<sur>qadd<mode>): Likewise.
13306 (aarch64_sqmovun<mode>): Likewise.
13307 (aarch64_<sur>qmovn<mode>): Likewise.
13308 (aarch64_s<optab><mode>): Likewise.
13309 (aarch64_sq<r>dmulh<mode>): Likewise.
13310 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13311 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13312 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13313 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13314 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13315 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13316 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13317 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13318 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13319 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13320 (aarch64_sqdmull<mode>): Likewise.
13321 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13322 (aarch64_sqdmull_n<mode>): Likewise.
13323 (aarch64_sqdmull2<mode>_internal): Likewise.
13324 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13325 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13326 (aarch64_<sur>shl<mode>): Likewise.
13327 (aarch64_<sur>q<r>shl<mode>
13328 (aarch64_<sur>shll_n<mode>): Likewise.
13329 (aarch64_<sur>shll2_n<mode>): Likewise.
13330 (aarch64_<sur>shr_n<mode>): Likewise.
13331 (aarch64_<sur>sra_n<mode>): Likewise.
13332 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13333 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13334 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13335 (aarch64_cm<optab><mode>): Likewise.
13336 (aarch64_cm<optab>di): Likewise.
13337 (aarch64_cm<optab><mode>): Likewise.
13338 (aarch64_cm<optab>di): Likewise.
13339 (aarch64_cmtst<mode>): Likewise.
13340 (aarch64_cmtstdi): Likewise.
13341 (aarch64_cm<optab><mode>): Likewise.
13342 (*aarch64_fac<optab><mode>): Likewise.
13343 (aarch64_addp<mode>): Likewise.
13344 (aarch64_addpdi): Likewise.
13345 (sqrt<mode>2): Likewise.
13346 (vec_load_lanesoi<mode>): Likewise.
13347 (vec_store_lanesoi<mode>): Likewise.
13348 (vec_load_lanesci<mode>): Likewise.
13349 (vec_store_lanesci<mode>): Likewise.
13350 (vec_load_lanesxi<mode>): Likewise.
13351 (vec_store_lanesxi<mode>): Likewise.
13352 (*aarch64_mov<mode>): Likewise.
13353 (aarch64_ld2<mode>_dreg): Likewise.
13354 (aarch64_ld2<mode>_dreg): Likewise.
13355 (aarch64_ld3<mode>_dreg): Likewise.
13356 (aarch64_ld3<mode>_dreg): Likewise.
13357 (aarch64_ld4<mode>_dreg): Likewise.
13358 (aarch64_ld4<mode>_dreg): Likewise.
13359 (aarch64_tbl1<mode>): Likewise.
13360 (aarch64_tbl2v16qi): Likewise.
13361 (aarch64_combinev16qi): Likewise.
13362 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13363 (aarch64_st2<mode>_dreg): Likewise.
13364 (aarch64_st2<mode>_dreg): Likewise.
13365 (aarch64_st3<mode>_dreg): Likewise.
13366 (aarch64_st3<mode>_dreg): Likewise.
13367 (aarch64_st4<mode>_dreg): Likewise.
13368 (aarch64_st4<mode>_dreg): Likewise.
13369 (*aarch64_simd_ld1r<mode>): Likewise.
13370 (aarch64_frecpe<mode>): Likewise.
13371 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13372 (aarch64_frecps<mode>): Likewise.
13374 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13376 * config/arm/iterators.md (V_elem_ch): New.
13378 (VQH_type): Likewise.
13379 * config/arm/arm.md (is_neon_type): New.
13380 (conds): Use is_neon_type.
13381 (anddi3_insn): Update type attribute.
13382 (xordi3_insn): Likewise.
13383 (one_cmpldi2): Likewise.
13384 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13385 * config/arm/neon.md (neon_mov): Update type attribute.
13386 (*movmisalign<mode>_neon_store): Likewise.
13387 (*movmisalign<mode>_neon_load): Likewise.
13388 (vec_set<mode>_internal): Likewise.
13389 (vec_set<mode>_internal): Likewise.
13390 (vec_setv2di_internal): Likewise.
13391 (vec_extract<mode>): Likewise.
13392 (vec_extract<mode>): Likewise.
13393 (vec_extractv2di): Likewise.
13394 (*add<mode>3_neon): Likewise.
13395 (adddi3_neon): Likewise.
13396 (*sub<mode>3_neon): Likewise.
13397 (subdi3_neon): Likewise.
13398 (fma<VCVTF:mode>4): Likewise.
13399 (fma<VCVTF:mode>4_intrinsic): Likewise.
13400 (*fmsub<VCVTF:mode>4): Likewise.
13401 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13402 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13403 (ior<mode>3): Likewise.
13404 (and<mode>3): Likewise.
13405 (orn<mode>3_neon): Likewise.
13406 (orndi3_neon): Likewise.
13407 (bic<mode>3_neon): Likewise.
13408 (bicdi3_neon): Likewise.
13409 (xor<mode>3): Likewise.
13410 (one_cmpl<mode>2): Likewise.
13411 (abs<mode>2): Likewise.
13412 (neg<mode>2): Likewise.
13413 (negdi2_neon): Likewise.
13414 (*umin<mode>3_neon): Likewise.
13415 (*umax<mode>3_neon): Likewise.
13416 (*smin<mode>3_neon): Likewise.
13417 (*smax<mode>3_neon): Likewise.
13418 (vashl<mode>3): Likewise.
13419 (vashr<mode>3_imm): Likewise.
13420 (vlshr<mode>3_imm): Likewise.
13421 (ashl<mode>3_signed): Likewise.
13422 (ashl<mode>3_unsigned): Likewise.
13423 (neon_load_count): Likewise.
13424 (ashldi3_neon_noclobber): Likewise.
13425 (ashldi3_neon): Likewise.
13426 (signed_shift_di3_neon): Likewise.
13427 (unsigned_shift_di3_neon): Likewise.
13428 (ashrdi3_neon_imm_noclobber): Likewise.
13429 (lshrdi3_neon_imm_noclobber): Likewise.
13430 (<shift>di3_neon): Likewise.
13431 (widen_ssum<mode>3): Likewise.
13432 (widen_usum<mode>3): Likewise.
13433 (quad_halves_<code>v4si): Likewise.
13434 (quad_halves_<code>v4sf): Likewise.
13435 (quad_halves_<code>v8hi): Likewise.
13436 (quad_halves_<code>v16qi): Likewise.
13437 (reduc_splus_v2di): Likewise.
13438 (neon_vpadd_internal<mode>): Likewise.
13439 (neon_vpsmin<mode>): Likewise.
13440 (neon_vpsmax<mode>): Likewise.
13441 (neon_vpumin<mode>): Likewise.
13442 (neon_vpumax<mode>): Likewise.
13443 (*ss_add<mode>_neon): Likewise.
13444 (*us_add<mode>_neon): Likewise.
13445 (*ss_sub<mode>_neon): Likewise.
13446 (*us_sub<mode>_neon): Likewise.
13447 (neon_vadd<mode>_unspec): Likewise.
13448 (neon_vaddl<mode>): Likewise.
13449 (neon_vaddw<mode>): Likewise.
13450 (neon_vhadd<mode>): Likewise.
13451 (neon_vqadd<mode>): Likewise.
13452 (neon_vaddhn<mode>): Likewise.
13453 (neon_vmul<mode>): Likewise.
13454 (neon_vfms<VCVTF:mode>): Likewise.
13455 (neon_vmlal<mode>): Likewise.
13456 (neon_vmls<mode>): Likewise.
13457 (neon_vmlsl<mode>): Likewise.
13458 (neon_vqdmulh<mode>): Likewise.
13459 (neon_vqdmlal<mode>): Likewise.
13460 (neon_vqdmlsl<mode>): Likewise.
13461 (neon_vmull<mode>): Likewise.
13462 (neon_vqdmull<mode>): Likewise.
13463 (neon_vsub<mode>_unspec): Likewise.
13464 (neon_vsubl<mode>): Likewise.
13465 (neon_vsubw<mode>): Likewise.
13466 (neon_vqsub<mode>): Likewise.
13467 (neon_vhsub<mode>): Likewise.
13468 (neon_vsubhn<mode>): Likewise.
13469 (neon_vceq<mode>): Likewise.
13470 (neon_vcge<mode>): Likewise.
13471 (neon_vcgeu<mode>): Likewise.
13472 (neon_vcgt<mode>): Likewise.
13473 (neon_vcgtu<mode>): Likewise.
13474 (neon_vcle<mode>): Likewise.
13475 (neon_vclt<mode>): Likewise.
13476 (neon_vcage<mode>): Likewise.
13477 (neon_vcagt<mode>): Likewise.
13478 (neon_vtst<mode>): Likewise.
13479 (neon_vabd<mode>): Likewise.
13480 (neon_vabdl<mode>): Likewise.
13481 (neon_vaba<mode>): Likewise.
13482 (neon_vabal<mode>): Likewise.
13483 (neon_vmax<mode>): Likewise.
13484 (neon_vmin<mode>): Likewise.
13485 (neon_vpaddl<mode>): Likewise.
13486 (neon_vpadal<mode>): Likewise.
13487 (neon_vpmax<mode>): Likewise.
13488 (neon_vpmin<mode>): Likewise.
13489 (neon_vrecps<mode>): Likewise.
13490 (neon_vrsqrts<mode>): Likewise.
13491 (neon_vqabs<mode>): Likewise.
13492 (neon_vqneg<mode>): Likewise.
13493 (neon_vcls<mode>): Likewise.
13494 (clz<mode>2): Likewise.
13495 (popcount<mode>2): Likewise.
13496 (neon_vrecpe<mode>): Likewise.
13497 (neon_vrsqrte<mode>): Likewise.
13498 (neon_vget_lane<mode>_sext_internal): Likewise.
13499 (neon_vget_lane<mode>_zext_internal): Likewise.
13500 (neon_vdup_n<mode>): Likewise.
13501 (neon_vdup_n<mode>): Likewise.
13502 (neon_vdup_nv2di): Likewise.
13503 (neon_vdup_lane<mode>_interal): Likewise.
13504 (*neon_vswp<mode>): Likewise.
13505 (neon_vcombine<mode>): Likewise.
13506 (float<mode><V_cvtto>2): Likewise.
13507 (floatuns<mode><V_cvtto>2): Likewise.
13508 (fix_trunc<mode><V_cvtto>2): Likewise.
13509 (fixuns_trunc<mode><V_cvtto>2
13510 (neon_vcvt<mode>): Likewise.
13511 (neon_vcvt<mode>): Likewise.
13512 (neon_vcvtv4sfv4hf): Likewise.
13513 (neon_vcvtv4hfv4sf): Likewise.
13514 (neon_vcvt_n<mode>): Likewise.
13515 (neon_vcvt_n<mode>): Likewise.
13516 (neon_vmovn<mode>): Likewise.
13517 (neon_vqmovn<mode>): Likewise.
13518 (neon_vqmovun<mode>): Likewise.
13519 (neon_vmovl<mode>): Likewise.
13520 (neon_vmul_lane<mode>): Likewise.
13521 (neon_vmul_lane<mode>): Likewise.
13522 (neon_vmull_lane<mode>): Likewise.
13523 (neon_vqdmull_lane<mode>): Likewise.
13524 (neon_vqdmulh_lane<mode>): Likewise.
13525 (neon_vqdmulh_lane<mode>): Likewise.
13526 (neon_vmla_lane<mode>): Likewise.
13527 (neon_vmla_lane<mode>): Likewise.
13528 (neon_vmlal_lane<mode>): Likewise.
13529 (neon_vqdmlal_lane<mode>): Likewise.
13530 (neon_vmls_lane<mode>): Likewise.
13531 (neon_vmls_lane<mode>): Likewise.
13532 (neon_vmlsl_lane<mode>): Likewise.
13533 (neon_vqdmlsl_lane<mode>): Likewise.
13534 (neon_vext<mode>): Likewise.
13535 (neon_vrev64<mode>): Likewise.
13536 (neon_vrev32<mode>): Likewise.
13537 (neon_vrev16<mode>): Likewise.
13538 (neon_vbsl<mode>_internal): Likewise.
13539 (neon_vshl<mode>): Likewise.
13540 (neon_vqshl<mode>): Likewise.
13541 (neon_vshr_n<mode>): Likewise.
13542 (neon_vshrn_n<mode>): Likewise.
13543 (neon_vqshrn_n<mode>): Likewise.
13544 (neon_vqshrun_n<mode>): Likewise.
13545 (neon_vshl_n<mode>): Likewise.
13546 (neon_vqshl_n<mode>): Likewise.
13547 (neon_vqshlu_n<mode>): Likewise.
13548 (neon_vshll_n<mode>): Likewise.
13549 (neon_vsra_n<mode>): Likewise.
13550 (neon_vsri_n<mode>): Likewise.
13551 (neon_vsli_n<mode>): Likewise.
13552 (neon_vtbl1v8qi): Likewise.
13553 (neon_vtbl2v8qi): Likewise.
13554 (neon_vtbl3v8qi): Likewise.
13555 (neon_vtbl4v8qi): Likewise.
13556 (neon_vtbl1v16qi): Likewise.
13557 (neon_vtbl2v16qi): Likewise.
13558 (neon_vcombinev16qi): Likewise.
13559 (neon_vtbx1v8qi): Likewise.
13560 (neon_vtbx2v8qi): Likewise.
13561 (neon_vtbx3v8qi): Likewise.
13562 (neon_vtbx4v8qi): Likewise.
13563 (*neon_vtrn<mode>_insn): Likewise.
13564 (*neon_vzip<mode>_insn): Likewise.
13565 (*neon_vuzp<mode>_insn): Likewise.
13566 (neon_vld1<mode>): Likewise.
13567 (neon_vld1_lane<mode>): Likewise.
13568 (neon_vld1_lane<mode>): Likewise.
13569 (neon_vld1_dup<mode>): Likewise.
13570 (neon_vld1_dup<mode>): Likewise.
13571 (neon_vld1_dupv2di): Likewise.
13572 (neon_vst1<mode>): Likewise.
13573 (neon_vst1_lane<mode>): Likewise.
13574 (neon_vst1_lane<mode>): Likewise.
13575 (neon_vld2<mode>): Likewise.
13576 (neon_vld2<mode>): Likewise.
13577 (neon_vld2_lane<mode>): Likewise.
13578 (neon_vld2_lane<mode>): Likewise.
13579 (neon_vld2_dup<mode>): Likewise.
13580 (neon_vst2<mode>): Likewise.
13581 (neon_vst2<mode>): Likewise.
13582 (neon_vst2_lane<mode>): Likewise.
13583 (neon_vst2_lane<mode>): Likewise.
13584 (neon_vld3<mode>): Likewise.
13585 (neon_vld3qa<mode>): Likewise.
13586 (neon_vld3qb<mode>): Likewise.
13587 (neon_vld3_lane<mode>): Likewise.
13588 (neon_vld3_lane<mode>): Likewise.
13589 (neon_vld3_dup<mode>): Likewise.
13590 (neon_vst3<mode>): Likewise.
13591 (neon_vst3qa<mode>): Likewise.
13592 (neon_vst3qb<mode>): Likewise.
13593 (neon_vst3_lane<mode>): Likewise.
13594 (neon_vst3_lane<mode>): Likewise.
13595 (neon_vld4<mode>): Likewise.
13596 (neon_vld4qa<mode>): Likewise.
13597 (neon_vld4qb<mode>): Likewise.
13598 (neon_vld4_lane<mode>): Likewise.
13599 (neon_vld4_lane<mode>): Likewise.
13600 (neon_vld4_dup<mode>): Likewise.
13601 (neon_vst4<mode>): Likewise.
13602 (neon_vst4qa<mode>): Likewise.
13603 (neon_vst4qb<mode>): Likewise.
13604 (neon_vst4_lane<mode>): Likewise.
13605 (neon_vst4_lane<mode>): Likewise.
13606 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13607 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13608 (neon_vec_<US>mult_lo_<mode>): Likewise.
13609 (neon_vec_<US>mult_hi_<mode>): Likewise.
13610 (neon_vec_<US>shiftl_<mode>): Likewise.
13611 (neon_unpack<US>_<mode>): Likewise.
13612 (neon_vec_<US>mult_<mode>): Likewise.
13613 (vec_pack_trunc_<mode>): Likewise.
13614 (neon_vec_pack_trunc_<mode>): Likewise.
13615 (neon_vabd<mode>_2): Likewise.
13616 (neon_vabd<mode>_3): Likewise.
13618 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13620 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13621 (load_pair): Update type attribute.
13622 (store_pair): Update type attribute.
13623 * config/aarch64/iterators.md (q): New.
13625 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13627 * config/arm/types.md: Add new types for Neon insns.
13629 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13631 Sergey Lega <sergey.s.lega@intel.com>
13632 Anna Tikhonova <anna.tikhonova@intel.com>
13633 Ilya Tocar <ilya.tocar@intel.com>
13634 Andrey Turetskiy <andrey.turetskiy@intel.com>
13635 Ilya Verbin <ilya.verbin@intel.com>
13636 Kirill Yukhin <kirill.yukhin@intel.com>
13637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13639 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13640 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13641 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13642 (rcp14<mode>): New.
13643 (srcp14<mode>): Ditto.
13644 (rsqrt14<mode>): Ditto.
13645 (rsqrt14<mode>): Ditto.
13646 (avx512f_vmscalef<mode>): Ditto.
13647 (avx512f_scalef<mode>): Ditto.
13648 (avx512f_getexp<mode>): Ditto.
13649 (avx512f_sgetexp<mode>): Ditto.
13650 (avx512f_fixupimm<mode>): Ditto.
13651 (avx512f_sfixupimm<mode>): Ditto.
13652 (avx512f_rndscale<mode>): Ditto.
13653 (*avx512er_exp2<mode>): Ditto.
13654 (*avx512er_rcp28<mode>): Ditto.
13655 (avx512er_rsqrt28<mode>): Ditto.
13656 (avx512f_getmant<mode>): Ditto.
13657 (avx512f_getmant<mode>): Ditto.
13658 (avx512f_rndscale<mode>): Fix formatting.
13660 2013-10-15 Martin Jambor <mjambor@suse.cz>
13662 * ipa-utils.h (ipa_edge_within_scc): Declare.
13663 * ipa-cp.c (edge_within_scc): Moved...
13664 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13666 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13667 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13668 Sergey Lega <sergey.s.lega@intel.com>
13669 Anna Tikhonova <anna.tikhonova@intel.com>
13670 Ilya Tocar <ilya.tocar@intel.com>
13671 Andrey Turetskiy <andrey.turetskiy@intel.com>
13672 Ilya Verbin <ilya.verbin@intel.com>
13673 Kirill Yukhin <kirill.yukhin@intel.com>
13674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13676 * config/i386/predicates.md (const_8_to_15_operand): New.
13677 (const_16_to_31_operand): Ditto.
13678 * config/i386/sse.md (V8FI): New.
13680 (reduc_splus_v8df): Ditto.
13681 (reduc_splus_v16sf): Ditto.
13682 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13683 (vec_extract_hi_<mode>): Ditto.
13684 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13685 (vec_set_lo_<mode>): Ditto.
13686 (vec_set_hi_<mode>): Ditto.
13687 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13688 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13689 (avx512f_pshufd_1): Ditto.
13690 (avx512f_broadcast<mode>): Ditto.
13691 (avx512f_broadcast<mode>): Ditto.
13692 (define_split): Split vec_extract_lo into move.
13693 (ssequartermode): Ditto.
13694 (ssedoublemode): Extened with wider modes.
13695 (vec_extract_lo_<mode>): Ditto.
13697 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13698 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13699 Sergey Lega <sergey.s.lega@intel.com>
13700 Anna Tikhonova <anna.tikhonova@intel.com>
13701 Ilya Tocar <ilya.tocar@intel.com>
13702 Andrey Turetskiy <andrey.turetskiy@intel.com>
13703 Ilya Verbin <ilya.verbin@intel.com>
13704 Kirill Yukhin <kirill.yukhin@intel.com>
13705 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13707 * config/i386/predicates.md (register_or_constm1_operand): New.
13708 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13709 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13710 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13711 UNSPEC_SCATTER_PREFETCH
13713 (avx512f_ucmp<mode>3): Ditto.
13714 (avx512f_vternlog<mode>): Ditto.
13715 (avx512f_align<mode>): Ditto.
13716 (<shift_insn><mode>3): Ditto.
13717 (avx512f_<rotate>v<mode>): Ditto.
13718 (avx512f_<rotate><mode>): Ditto.
13719 (avx512f_eq<mode>3): Ditto.
13720 (avx512f_eq<mode>3_1): Ditto.
13721 (avx512f_gt<mode>3): Ditto.
13722 (avx512f_testm<mode>3): Ditto.
13723 (avx512f_testnm<mode>3): Ditto.
13724 (avx512pf_gatherpf<mode>): Ditto.
13725 (*avx512pf_gatherpf<mode>_mask): Ditto.
13726 (*avx512pf_gatherpf<mode>): Ditto.
13727 (avx512pf_scatterpf<mode>): Ditto.
13728 (*avx512pf_scatterpf<mode>_mask): Ditto.
13729 (*avx512pf_scatterpf<mode>): Ditto.
13730 (avx512f_vec_dup_gpr<mode>): Ditto.
13731 (clz<mode>2): Ditto.
13732 (conflict<mode>): Ditto.
13733 (REDUC_SMINMAX_MODE): Extened with wider modes.
13734 (reduc_<code>_<mode>): Ditto.
13735 (vlshr<mode>3): Ditto.
13736 (vashl<mode>3): Ditto.
13738 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13740 Sergey Lega <sergey.s.lega@intel.com>
13741 Anna Tikhonova <anna.tikhonova@intel.com>
13742 Ilya Tocar <ilya.tocar@intel.com>
13743 Andrey Turetskiy <andrey.turetskiy@intel.com>
13744 Ilya Verbin <ilya.verbin@intel.com>
13745 Kirill Yukhin <kirill.yukhin@intel.com>
13746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13748 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13751 (avx512fmaskmode): Ditto.
13752 (bcstscalarsuff): Ditto.
13753 (avx512f_blendm<mode>): Ditto.
13754 (cmp_imm_predicate): Ditto.
13755 (avx512f_cmp<mode>3): Ditto.
13756 (avx512f_vec_dup<mode>): Ditto.
13757 (avx512f_vec_dup_mem<mode>): Ditto.
13758 (avx512f_vpermi2var<mode>3): Ditto.
13759 (avx512f_vpermt2var<mode>3): Ditto.
13760 (vec_init<mode>): Ditto.
13761 (avx512f_gathersi<mode>): Ditto.
13762 (*avx512f_gathersi<mode>): Ditto.
13763 (*avx512f_gathersi<mode>_2): Ditto.
13764 (avx512f_gatherdi<mode>): Ditto.
13765 (*avx512f_gatherdi<mode>): Ditto.
13766 (*avx512f_gatherdi<mode>_2): Ditto.
13767 (avx512f_scattersi<mode>): Ditto.
13768 (*avx512f_scattersi<mode>): Ditto.
13769 (avx512f_scatterdi<mode>): Ditto.
13770 (*avx512f_scatterdi<mode>): Ditto.
13771 (sseintprefix): Extened with wider modes.
13772 (VEC_GATHER_IDXSI): Ditto.
13773 (VEC_GATHER_IDXDI): Ditto.
13774 (VEC_GATHER_SRCDI): Ditto.
13776 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13777 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13779 * config/arm/t-aprofile: New file.
13780 * config.gcc: Handle --with-multilib-list option.
13782 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13784 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13787 2013-10-15 Richard Biener <rguenther@suse.de>
13789 * tree-loop-distribution.c (build_empty_rdg): Inline into
13791 (rdg_flag_vertex): Inline into single user.
13792 (rdg_flag_vertex_and_dependent): Likewise.
13793 (build_rdg_partition_for_vertex): Remove processed bitmap.
13794 (rdg_build_partitions): Simplify.
13796 2013-10-15 Richard Biener <rguenther@suse.de>
13798 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13799 Restructure forwarding through conversions and copies to
13800 avoid performing copy-propagation the wrong way. Adjust
13801 recursion invocations.
13802 (forward_propagate_addr_expr): Add argument stating if we
13803 are recursing from a single-use.
13804 (ssa_forward_propagate_and_combine): Adjust.
13806 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13808 * dumpfile.h (gcc::dump_manager): New class, to hold state
13809 relating to dumpfile management.
13810 (get_dump_file_name): Remove in favor of method of dump_manager.
13811 (dump_initialized_p): Likewise.
13812 (dump_start): Likewise.
13813 (dump_finish): Likewise.
13814 (dump_switch_p): Likewise.
13815 (dump_register): Likewise.
13816 (get_dump_file_info): Likewise.
13817 * context.c (gcc::context::context): Construct the dump_manager
13819 * context.h (gcc::context::get_dumps): New.
13820 (gcc::context::m_dumps): New.
13821 * coverage.c (coverage_init): Port to dump_manager API.
13822 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13823 (extra_dump_files_in_use): Likewise.
13824 (extra_dump_files_alloced): Likewise.
13825 (gcc::dump_manager::dump_manager): New.
13826 (dump_register): Convert to...
13827 (gcc::dump_manager::dump_register): ...method, replacing
13828 function-static next_dump with m_next_dump field.
13829 (get_dump_file_info): Convert to...
13830 (gcc::dump_manager::get_dump_file_info): ...method.
13831 (get_dump_file_name): Convert to...
13832 (gcc::dump_manager::get_dump_file_name): ...method.
13833 (dump_start): Convert to...
13834 (gcc::dump_manager::dump_start): ...method.
13835 (dump_finish): Convert to...
13836 (gcc::dump_manager::dump_finish): ...method.
13837 (dump_begin): Replace body with...
13838 (gcc::dump_manager::dump_begin): ...new method.
13839 (dump_phase_enabled_p): Convert to...
13840 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13841 (dump_phase_enabled_p): Convert to...
13842 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13843 (dump_initialized_p): Convert to...
13844 (gcc::dump_manager::dump_initialized_p): ...method.
13845 (dump_flag_name): Replace body with...
13846 (gcc::dump_manager::dump_flag_name): ...new method.
13847 (dump_enable_all): Convert to...
13848 (gcc::dump_manager::dump_enable_all): ...new method.
13849 (opt_info_enable_passes): Convert to...
13850 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13851 (dump_switch_p_1): Convert to...
13852 (gcc::dump_manager::dump_switch_p_1): ...new method.
13853 (dump_switch_p): Convert to...
13854 (gcc::dump_manager::dump_switch_p): ...new method.
13855 (opt_info_switch_p): Port to dump_manager API.
13856 (enable_rtl_dump_file): Likewise.
13857 * opts-global.c (handle_common_deferred_options): Port to new
13859 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13860 (pass_manager::register_one_dump_file): Likewise.
13861 (pass_manager::register_pass): Likewise.
13862 (pass_init_dump_file): Likewise.
13863 (pass_fini_dump_file): Likewise.
13864 * statistics.c (statistics_early_init): Likewise.
13866 2013-10-14 Richard Biener <rguenther@suse.de>
13868 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13869 iterative_hash_canonical_type, gimple_canonical_type_hash,
13870 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13871 gimple_register_canonical_type, print_gimple_types_stats,
13872 free_gimple_type_tables): Move to lto/lto.c
13873 (gt-gimple.h): Do not include.
13874 * gimple.h (gimple_register_canonical_type,
13875 print_gimple_types_stats, free_gimple_type_tables): Remove.
13876 * Makefile.in (GTFILES): Remove gimple.c.
13878 2013-10-14 Travis Snoozy <quandary@remstate.com>
13881 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13882 scanning for msp430x targets.
13884 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13887 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13888 (registers_ok_for_ldd_peep): Move around.
13889 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13890 * config/sparc/sparc.md (widening peepholes): Use it.
13892 2013-10-14 Richard Biener <rguenther@suse.de>
13894 PR middle-end/58712
13895 PR middle-end/55358
13896 * gimple.c (iterative_hash_canonical_type): Make sure to
13897 record the hash into the correct hashtable slot.
13899 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13901 PR rtl-optimization/58662
13902 * combine.c (try_combine): Take into account death nodes on I2 when
13903 splitting a PARALLEL of two independent SETs. Fix dump message.
13905 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13908 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13909 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13911 * config/sh/t-sh (sh_treg_combine.o): New entry.
13912 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13913 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13914 (register_sh_passes): New function. Register sh_treg_combine pass.
13915 (sh_option_override): Invoke it.
13916 (sh_canonicalize_comparison): Handle op0_preserve_value.
13917 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13918 opportunities. Canonicalize branch condition.
13919 (nott): Allow only if pseudos can be created for non-SH2A.
13921 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13924 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13925 (ix86_expand_movmem): Replace copy_addr_to_reg with
13926 ix86_copy_addr_to_reg.
13927 (ix86_expand_setmem): Likewise.
13929 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13931 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13932 provided by ix86_fp_compare_mode instead of CCFPUmode.
13934 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13936 * config/aarch64/arm_neon.h
13937 (vtbx<1,3>_<psu>8): Fix register constriants.
13939 2013-10-11 Jeff Law <law@redhat.com>
13941 PR tree-optimization/58640
13942 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13943 threading paths that cross over two loop entry points.
13945 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13947 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13948 handle vector float as well.
13949 (*vsx_le_perm_load_v4si): Likewise.
13950 (*vsx_le_perm_store_v2di): Likewise.
13951 (*vsx_le_perm_store_v4si): Likewise.
13953 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13955 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13956 directly to circumvent subtract from splat{31} workaround.
13957 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13959 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13960 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13961 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13962 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13963 separate big and little endian logic.
13964 (*altivec_vperm_<mode>_internal): New define_insn.
13965 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13966 separate big and little endian logic.
13967 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13968 (vec_permv16qi): Add little endian logic.
13970 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13972 * doc/extend.texi (returns_nonnull): Remove arguments.
13974 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13975 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13976 Sergey Lega <sergey.s.lega@intel.com>
13977 Anna Tikhonova <anna.tikhonova@intel.com>
13978 Ilya Tocar <ilya.tocar@intel.com>
13979 Andrey Turetskiy <andrey.turetskiy@intel.com>
13980 Ilya Verbin <ilya.verbin@intel.com>
13981 Kirill Yukhin <kirill.yukhin@intel.com>
13982 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13984 * config/i386/sse.md (VI48F_256_512): New.
13985 (avx2_permvar<mode>): Change to ...
13986 (<avx2_avx512f>_permvar<mode>): This.
13988 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13990 Sergey Lega <sergey.s.lega@intel.com>
13991 Anna Tikhonova <anna.tikhonova@intel.com>
13992 Ilya Tocar <ilya.tocar@intel.com>
13993 Andrey Turetskiy <andrey.turetskiy@intel.com>
13994 Ilya Verbin <ilya.verbin@intel.com>
13995 Kirill Yukhin <kirill.yukhin@intel.com>
13996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13998 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13999 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14000 * config/i386/sse.md (VI4_AVX): New.
14001 (sf2simodelower): Ditto.
14002 (sse2_cvtps2dq): Change to ...
14003 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14005 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14007 Sergey Lega <sergey.s.lega@intel.com>
14008 Anna Tikhonova <anna.tikhonova@intel.com>
14009 Ilya Tocar <ilya.tocar@intel.com>
14010 Andrey Turetskiy <andrey.turetskiy@intel.com>
14011 Ilya Verbin <ilya.verbin@intel.com>
14012 Kirill Yukhin <kirill.yukhin@intel.com>
14013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14015 * config/i386/sse.md (V_512): New.
14017 (vcond<V_512:mode><VF_512:mode>): Ditto.
14018 (vcond<V_512:mode><VI_512:mode>): Ditto.
14019 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14021 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14022 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14023 Sergey Lega <sergey.s.lega@intel.com>
14024 Anna Tikhonova <anna.tikhonova@intel.com>
14025 Ilya Tocar <ilya.tocar@intel.com>
14026 Andrey Turetskiy <andrey.turetskiy@intel.com>
14027 Ilya Verbin <ilya.verbin@intel.com>
14028 Kirill Yukhin <kirill.yukhin@intel.com>
14029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14031 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14032 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14034 (fma<mode>4): Removed condition.
14035 (fms<mode>4): Ditto.
14036 (fnma<mode>4): Ditto.
14037 (fnms<mode>4): Ditto.
14038 (fma4i_fmadd_<mode>): Ditto.
14039 (*fma_fmadd_<mode>): Ditto.
14040 (*fma_fmsub_<mode>): Ditto.
14041 (*fma_fnmadd_<mode>): Ditto.
14042 (*fma_fnmsub_<mode>): Ditto.
14043 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14044 (*fma_fmaddsub_<mode>): Ditto.
14045 (*fma_fmsubadd_<mode>): Ditto.
14046 (*fmai_fmadd_<mode>): Ditto.
14047 (*fmai_fmsub_<mode>): Ditto.
14048 (*fmai_fnmadd_<mode>): Ditto.
14049 (*fmai_fnmsub_<mode>): Ditto.
14051 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14053 Sergey Lega <sergey.s.lega@intel.com>
14054 Anna Tikhonova <anna.tikhonova@intel.com>
14055 Ilya Tocar <ilya.tocar@intel.com>
14056 Andrey Turetskiy <andrey.turetskiy@intel.com>
14057 Ilya Verbin <ilya.verbin@intel.com>
14058 Kirill Yukhin <kirill.yukhin@intel.com>
14059 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14061 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14062 (VI124_256): Changed to ...
14063 (VI124_256_48_512): This.
14064 (ssepackmode): Extended with wider modes.
14065 (<code><mode>3): Changed iterator.
14066 (*avx2_<code><mode>3): Ditto.
14067 (vec_pack_trunc_<mode>): Ditto.
14069 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14070 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14071 Sergey Lega <sergey.s.lega@intel.com>
14072 Anna Tikhonova <anna.tikhonova@intel.com>
14073 Ilya Tocar <ilya.tocar@intel.com>
14074 Andrey Turetskiy <andrey.turetskiy@intel.com>
14075 Ilya Verbin <ilya.verbin@intel.com>
14076 Kirill Yukhin <kirill.yukhin@intel.com>
14077 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14079 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14080 (VI8F_256_512): Ditto.
14081 (abs<mode>2): Changed iterator.
14082 (avx2_perm<mode>): Changed to ...
14083 (<avx2_avx512f>_perm<mode>): This.
14084 (avx2_perm<mode>_1): Changed to ...
14085 (<avx2_avx512f>_perm<mode>_1): This.
14087 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14088 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14089 Sergey Lega <sergey.s.lega@intel.com>
14090 Anna Tikhonova <anna.tikhonova@intel.com>
14091 Ilya Tocar <ilya.tocar@intel.com>
14092 Andrey Turetskiy <andrey.turetskiy@intel.com>
14093 Ilya Verbin <ilya.verbin@intel.com>
14094 Kirill Yukhin <kirill.yukhin@intel.com>
14095 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14097 * config/i386/sse.md (VI48_AVX512F): New.
14098 (VI48_AVX2): Changed to ...
14099 (VI48_AVX2_48_AVX512F): This.
14100 (avx2_ashrv<mode>): Changed to ...
14101 (<avx2_avx512f>_ashrv<mode>): This.
14102 (avx2_<shift_insn>v<mode>): Changed to ...
14103 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14105 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14107 Sergey Lega <sergey.s.lega@intel.com>
14108 Anna Tikhonova <anna.tikhonova@intel.com>
14109 Ilya Tocar <ilya.tocar@intel.com>
14110 Andrey Turetskiy <andrey.turetskiy@intel.com>
14111 Ilya Verbin <ilya.verbin@intel.com>
14112 Kirill Yukhin <kirill.yukhin@intel.com>
14113 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14115 * config/i386/sse.md (VI4_AVX512F): New.
14116 (VI8_AVX2_AVX512F): Ditto.
14117 (mul<mode>3): Extended with wider modes.
14118 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14119 (mul<mode>3): Ditto.
14120 (vec_widen_<s>mult_odd_<mode>): Ditto.
14122 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14124 Sergey Lega <sergey.s.lega@intel.com>
14125 Anna Tikhonova <anna.tikhonova@intel.com>
14126 Ilya Tocar <ilya.tocar@intel.com>
14127 Andrey Turetskiy <andrey.turetskiy@intel.com>
14128 Ilya Verbin <ilya.verbin@intel.com>
14129 Kirill Yukhin <kirill.yukhin@intel.com>
14130 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14132 * config/i386/sse.md (VI2_AVX512F): New.
14133 (VI124_AVX512F): Ditto.
14134 (sseunpackmode): Extended with wider modes.
14135 (sseunpackfltmode): Ditto.
14136 (vec_unpacks_float_hi_<mode>): Ditto.
14137 (vec_unpacks_float_lo_<mode>): Ditto.
14138 (vec_unpacku_float_hi_<mode>): Ditto.
14139 (vec_unpacku_float_lo_<mode>): Ditto.
14140 (vec_unpacks_lo_<mode>): Ditto.
14141 (vec_unpacks_hi_<mode>): Ditto.
14142 (vec_unpacku_lo_<mode>): Ditto.
14143 (vec_unpacku_hi_<mode>): Ditto.
14145 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14147 Sergey Lega <sergey.s.lega@intel.com>
14148 Anna Tikhonova <anna.tikhonova@intel.com>
14149 Ilya Tocar <ilya.tocar@intel.com>
14150 Andrey Turetskiy <andrey.turetskiy@intel.com>
14151 Ilya Verbin <ilya.verbin@intel.com>
14152 Kirill Yukhin <kirill.yukhin@intel.com>
14153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14155 * config/i386/i386.md (multdiv): New.
14156 (multdiv_mnemonic): Ditto.
14157 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14158 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14159 (<sse>_vmdiv<mode>3): Removed.
14161 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14163 Sergey Lega <sergey.s.lega@intel.com>
14164 Anna Tikhonova <anna.tikhonova@intel.com>
14165 Ilya Tocar <ilya.tocar@intel.com>
14166 Andrey Turetskiy <andrey.turetskiy@intel.com>
14167 Ilya Verbin <ilya.verbin@intel.com>
14168 Kirill Yukhin <kirill.yukhin@intel.com>
14169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14171 * config/i386/sse.md (V): Extended with wider modes.
14173 (ssehalfvecmode): Ditto.
14175 (ssepackfltmode): Ditto.
14176 (avx_vec_concat<mode>): Ditto.
14177 (V_256_512): New iterator.
14178 (VF2_512_256): Ditto.
14179 (si2dfmode): New attribute.
14180 (si2dfmodelower): Ditto.
14181 (sf2dfmode): Ditto.
14182 (concat_tg_mode): Ditto.
14183 (floatv4siv4df2): Changed to ...
14184 (float<si2dfmodelower><mode>2): This.
14185 (avx_cvtps2pd256): Changed to ...
14186 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14187 (vec_pack_trunc_v4df): Changed to ...
14188 (vec_pack_trunc_<mode>): This.
14189 (avx_vpermil<mode>): Changed to ...
14190 (<sse2_avx_avx512f>_vpermil<mode>): This.
14191 (<fixsuffix>fix_truncv8dfv8si2): New.
14192 (vec_pack_sfix_trunc_v8df): Ditto.
14193 (avx512f_rndscale<mode>): Ditto.
14194 (avx512f_roundpd512): Ditto.
14195 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14197 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14199 Sergey Lega <sergey.s.lega@intel.com>
14200 Anna Tikhonova <anna.tikhonova@intel.com>
14201 Ilya Tocar <ilya.tocar@intel.com>
14202 Andrey Turetskiy <andrey.turetskiy@intel.com>
14203 Ilya Verbin <ilya.verbin@intel.com>
14204 Kirill Yukhin <kirill.yukhin@intel.com>
14205 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14207 * config/i386/i386.md (any_fix): New iterator.
14208 (fixsuffix): New attribute.
14209 * config/i386/sse.md (VF1): Extened with wider modes.
14213 (sseintvecmodelower): Ditto.
14214 (ssescalarmode): Ditto.
14215 (ssescalarnum): Ditto.
14216 (VF1_128_256): New.
14217 (ssexmmmode): Ditto.
14218 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14219 (<sse>_rcp<mode>2): Change iterator.
14220 (rsqrt<mode>2): Ditto.
14221 (<sse>_rsqrt<mode>2): Ditto.
14222 (avx2_vec_dup<mode>): Ditto.
14223 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14224 (round<mode>2_sfix): Ditto.
14225 (avx2_pbroadcast<mode>): Ditto.
14226 (*andnot<mode>3): Handle XI mode.
14227 (*<code><mode>3): Ditto.
14228 (AVXTOSSEMODE): Removed.
14229 (avx_vpermil<mode>): Changed to ...
14230 (<sse2_avx_avx512f>_vpermil<mode>): This.
14232 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14234 Sergey Lega <sergey.s.lega@intel.com>
14235 Anna Tikhonova <anna.tikhonova@intel.com>
14236 Ilya Tocar <ilya.tocar@intel.com>
14237 Andrey Turetskiy <andrey.turetskiy@intel.com>
14238 Ilya Verbin <ilya.verbin@intel.com>
14239 Kirill Yukhin <kirill.yukhin@intel.com>
14240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14242 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14243 (<sse>_comi): Ditto.
14244 (<sse>_ucomi): Ditto.
14245 (sse_cvtss2siq_2): Ditto.
14246 (sse2_cvtsd2si): Ditto.
14247 (sse2_cvtsd2siq): Ditto.
14248 (sse2_cvttsd2si): Ditto.
14249 (sse2_cvttsd2siq): Ditto.
14250 (<shift_insn><mode>3): Ditto.
14251 (sse2_cvtsi2sdq): Update constraint and prefix.
14252 (sse_cvtsi2ss): Update prefix.
14253 (sse_cvtsi2ssq): Ditto.
14255 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14257 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14258 ignore internal calls.
14260 2013-10-11 Richard Biener <rguenther@suse.de>
14262 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14263 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14264 TREE_OVERFLOW is set.
14266 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14268 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14270 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14271 * gimple.h: Likewise.
14273 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14275 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14278 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14280 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14281 * configure: Regenerate.
14283 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14285 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14286 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14287 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14288 similarly pp_right_paren.
14289 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14290 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14291 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14292 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14294 (omp_declare_simd_clauses_equal,
14295 omp_remove_redundant_declare_simd_attrs): New functions.
14296 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14297 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14298 * tree.h (OMP_LOOP_CHECK): Define.
14299 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14300 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14301 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14302 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14303 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14304 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14305 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14306 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14307 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14308 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14309 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14310 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14311 (omp_remove_redundant_declare_simd_attrs): New prototype.
14312 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14313 GIMPLE_OMP_TEAMS): New codes.
14314 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14315 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14317 (target_nesting_level): New variable.
14318 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14319 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14320 for collapse > 1 static schedule unless ordered.
14321 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14322 (determine_parallel_type): Adjust get_ws_args_for caller.
14323 (install_var_field): Handle mask & 4 for double indirection.
14324 (scan_sharing_clauses): Ignore shared clause on teams construct.
14325 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14326 (create_omp_child_function): If inside target or declare target
14327 constructs, set "omp declare target" attribute on the child function.
14328 (find_combined_for): New function.
14329 (scan_omp_parallel): Handle combined loops.
14330 (scan_omp_target, scan_omp_teams): New functions.
14331 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14332 restrictions and set ctx->cancellable for cancellable constructs.
14333 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14334 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14335 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14336 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14337 (omp_clause_aligned_alignment): New function.
14338 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14339 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14340 on teams constructs. Handle user defined reductions and new
14341 OpenMP 4.0 clauses.
14342 (lower_reduction_clauses): Don't set placeholder to address of ref
14343 if it has already the right type.
14344 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14345 (expand_parallel_call): Use the new non-_start suffixed builtins,
14346 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14347 and GOMP_parallel_end after the call.
14348 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14349 (expand_omp_for_init_counts): Handle combined loops.
14350 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14352 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14353 end of cancellable loops.
14354 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14355 Likewise. Handle collapse > 1 loops.
14356 (expand_omp_simd): Handle combined loops.
14357 (expand_omp_for): Add inner_stmt argument, adjust callers of
14358 expand_omp_for* functions, use expand_omp_for_static*chunk even
14359 for collapse > 1 unless ordered.
14360 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14361 of cancellable sections.
14362 (expand_omp_single): Remove need_barrier variable, just rely on
14363 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14364 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14365 (expand_omp_atomic_load, expand_omp_atomic_store,
14366 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14367 (expand_omp_target): New function.
14368 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14369 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14370 (build_omp_regions_1): Immediately close region for
14371 GF_OMP_TARGET_KIND_UPDATE.
14372 (maybe_add_implicit_barrier_cancel): New function.
14373 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14375 (lower_omp_single): Likewise. Add clobber after the barrier.
14376 (lower_omp_taskgroup): New function.
14377 (lower_omp_for): Handle combined loops. Adjust
14378 lower_rec_input_clauses caller. Handle cancellation.
14379 (lower_depend_clauses): New function.
14380 (lower_omp_taskreg): Lower depend clauses. Adjust
14381 lower_rec_input_clauses caller. Add clobber after the call. Handle
14383 (lower_omp_target, lower_omp_teams): New functions.
14384 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14385 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14386 and GOMP_cancellation_point calls.
14387 (lower_omp): Fold stmts inside of target region.
14388 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14389 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14390 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14391 (BT_FN_VOID_OMPFN_PTR_UINT,
14392 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14393 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14394 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14395 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14396 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14397 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14398 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14399 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14400 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14401 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14402 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14403 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14404 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14405 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14406 BUILT_IN_GOMP_PARALLEL_END.
14407 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14408 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14409 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14410 GF_OMP_FOR_KIND_DISTRIBUTE.
14411 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14412 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14413 (dump_gimple_omp_return): Print lhs if it has any.
14414 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14415 gimple_omp_atomic_seq_cst_p.
14416 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14417 and GIMPLE_OMP_TEAMS.
14418 * langhooks.c (lhd_omp_mappable_type): New function.
14419 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14420 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14422 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14423 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14424 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14425 (struct gimplify_omp_ctx): Add combined_loop field.
14426 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14427 on stmts inside of target region.
14428 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14429 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14430 ORT_TARGET and ORT_TARGET_DATA.
14431 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14433 (omp_notice_threadprivate_variable): Complain about threadprivate
14434 variables in target region.
14435 (omp_notice_variable): Complain about vars with non-mappable type
14436 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14437 (omp_check_private): Ignore ORT_TARGET* regions.
14438 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14439 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14440 (find_combined_omp_for): New function.
14441 (gimplify_omp_for): Handle gimplification of combined loops.
14442 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14444 (gimplify_omp_target_update): New function.
14445 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14446 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14447 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14448 (gimplify_body): If fndecl has "omp declare target" attribute, add
14449 implicit ORT_TARGET context around it.
14450 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14451 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14452 * tree-nested.c (convert_nonlocal_reference_stmt,
14453 convert_local_reference_stmt, convert_gimple_call): Handle
14454 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14455 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14456 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14457 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14458 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14459 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14460 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14461 BUILT_IN_GOMP_LOOP_END_CANCEL,
14462 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14463 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14464 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14465 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14466 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14467 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14468 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14469 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14470 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14471 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14472 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14473 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14474 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14475 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14476 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14477 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14478 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14479 gimple_build_omp_teams): New functions.
14480 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14481 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14482 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14483 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14484 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14485 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14486 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14487 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14488 GF_OMP_ATOMIC_SEQ_CST): New.
14489 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14490 gimple_build_omp_teams): New prototypes.
14491 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14492 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14493 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14494 GIMPLE_OMP_SINGLE as end of range.
14495 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14496 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14497 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14498 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14499 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14500 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14501 gimple_omp_target_kind, gimple_omp_target_set_kind,
14502 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14503 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14504 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14505 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14506 gimple_omp_teams_set_clauses): New inlines.
14507 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14508 and GIMPLE_OMP_TASKGROUP.
14509 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14510 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14511 enum omp_clause_proc_bind_kind): New.
14512 (union omp_clause_subcode): Add depend_kind, map_kind and
14513 proc_bind_kind fields.
14514 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14515 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14516 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14517 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14518 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14520 2013-10-10 Teresa Johnson <tejohnson@google.com>
14522 * predict.c (tree_estimate_probability): Add new parameter
14523 for estimate_bb_frequencies.
14524 (estimate_bb_frequencies): Add new parameter to force estimation.
14525 (rebuild_frequencies): When max frequency in function is small,
14526 recompute counts from frequencies.
14527 * predict.h (estimate_bb_frequencies): New parameter.
14529 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14531 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14532 optimizations are disabled.
14534 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14536 * coverage.c (coverage_finish): Fix leak of da_file_name.
14538 2013-10-10 Jan Hubicka <jh@suse.cz>
14540 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14541 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14542 Bobcat and generic.
14544 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14546 PR middle-end/58670
14547 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14548 if any labels are in FALLTHRU_BB, use a special label emitted
14549 immediately after the asm goto insn rather than label_rtx
14551 (expand_asm_stmt): Adjust caller.
14552 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14553 edge if the last insn in predecessor is a jump with single successor,
14554 but it isn't simplejump_p.
14556 2013-10-10 Richard Biener <rguenther@suse.de>
14558 PR tree-optimization/58656
14559 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14561 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14563 * gimplify.c: Include expr.h and tm_p.h for targets with special
14564 va-arg padding requirements.
14566 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14568 * tree-flow.h: Move some prototypes to gimple.h.
14569 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14570 * gimple.h: Relocate some prototypes from tree-flow.h
14571 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14572 Move to gimplify.c.
14573 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14574 (build_va_arg_indirect_ref): Relocate and make static.
14575 (std_gimplify_va_arg_expr): Relocate here.
14576 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14577 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14579 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14581 * doc/md.texi: Document the mnemonic attribute.
14583 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14586 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14587 (set_attr_alternative x ...) when searching for user defined
14588 mnemonic attribute.
14590 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14592 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14594 2013-10-09 Easwaran Raman <eraman@google.com>
14596 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14597 * cfgexpand.c (defer_stack_allocation): ...use here
14598 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14600 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14602 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14603 (operand_equal_for_value_replacement): New function, extracted from
14604 value_replacement and enhanced to catch more cases.
14605 (value_replacement): Use operand_equal_for_value_replacement.
14607 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14609 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14610 get_max_loop_iterations.
14612 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14614 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14615 Place comment above function.
14617 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14619 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14620 are not related to tree-cfg.c.
14621 * tree-ssa-address.h: New file. Relocate prototypes.
14622 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14623 (addr_for_mem_ref): New. Combine call to get_address_description and
14624 return addr_for_mem_ref.
14625 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14626 * tree-ssa-live.h: Adjust prototypes.
14627 * passes.c: Include tree-ssa-live.h.
14628 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14629 * graphite.c (graphite_transform_loops): Make static.
14630 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14631 make_pass_graphite, pass_data_graphite_transforms,
14632 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14633 * ipa-pure-const.c (warn_function_noreturn): Make static.
14634 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14635 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14636 Relocate from tree-cfg.c
14637 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14639 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14640 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14641 Move to ipa-pure-const.c.
14642 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14643 Relocate from tree-optimize.c.
14644 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14645 make_pass_fixup_cfg): Move to tree-cfg.c.
14646 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14647 Relocate some prototypes.
14648 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14649 * tree-dump.c (dump_function_to_file): Remove prototype.
14650 Add tree-flow.h to the include file.
14651 * tree-dump.h: Remove prototype.
14652 * tree-parloops.h: New File. Add prototypes.
14653 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14654 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14655 from tree-ssa-loop.c.
14656 * tree-predcom.c (run_tree_predictive_commoning,
14657 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14658 Relocate here from tree-ssa-loop.c.
14659 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14660 ssa_name_values.release ().
14661 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14662 (ssa_name_values): Relocate from tree-flow.h.
14663 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14664 * tree-ssa-loop.c (run_tree_predictive_commoning,
14665 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14666 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14667 make_pass_graphite, pass_data_graphite_transforms,
14668 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14669 tree_parallelize_loops, pass_data_parallelize_loops,
14670 make_pass_parallelize_loops): Move to other files.
14671 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14673 * tree.h: Remove prototypes from tree-address.c.
14675 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14677 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14678 (struct int_tree_map): Move to tree-hasher.h
14679 (SCALE, LABEL, PERCENT): Move to gimple.h
14680 * tree-flow-inline.h: Delete. Move functions to other files.
14681 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14682 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14683 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14684 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14685 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14686 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14687 * tree-hasher.h: Don't include tree-flow.h.
14688 (struct int_tree_map): Relocate from tree-flow.h.
14689 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14690 tree-flow-inline.h and make static.
14691 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14692 tree-flow-inline.h.
14693 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14694 tree-flow-inline.h and make static.
14695 * tree.h (is_global_var, may_be_aliased): Relocate from
14696 tree-flow-inline.h.
14697 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14698 * value-prof.c: No longer include tree-flow-inline.h.
14699 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14701 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14703 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14704 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14705 (enum move_pos): Move to tree-ssa-loop-im.h
14706 * cfgloop.h: Move some prototypes.
14707 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14708 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14709 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14710 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14711 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14712 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14713 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14714 (enum move_pos): Relocate here.
14715 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14717 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14718 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14719 make_pass_lim): Relocate here from tree-ssa-loop.c.
14720 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14722 (loop_edge_to_cancel, unloop_loops): Make static.
14723 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14724 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14725 (tree_complete_unroll, gate_tree_complete_unroll,
14726 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14727 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14728 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14729 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14730 (stmt_invariant_in_loop_p): Remove unused function.
14731 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14732 * tree-ssa-loop-manip.h: New file. Add prototypes.
14733 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14734 (gcov_type_to_double_int): Move to cfgloop.h.
14735 (double_int_cmp, bound_index,
14736 estimate_numbers_of_iterations_loop): Make static.
14737 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14738 (max_loop_iterations): Factor out get_max_loop_iterations.
14739 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14741 * tree-ssa-loop-niter.h: New file. Add prototypes.
14742 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14743 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14744 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14745 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14746 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14747 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14748 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14749 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14750 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14751 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14752 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14753 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14754 pass_data_complete_unroll, make_pass_complete_unroll,
14755 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14756 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14757 tree-ssa-loop-ivcanon.c.
14758 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14759 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14760 tree-ssa-loop-prefetch.c.
14761 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14762 tree-ssa-loop-im.c.
14763 (get_lsm_tmp_name): Relocate and add suffix parameter.
14764 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14765 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14766 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14767 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14768 (get_estimated_loop_iterations): Factor out accessor from
14769 estimated_loop_iterations in tree-ssa-loop-niter.c.
14770 (get_max_loop_iterations): Factor out accessor from
14771 _max_loop_iterations in tree-ssa-niter.c.
14772 * loop-unroll.c (decide_unroll_constant_iterations,
14773 decide_unroll_runtime_iterations, decide_peel_simple,
14774 decide_unroll_stupid): Use new get_* accessors.
14776 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14778 PR tree-optimization/20318
14779 * doc/extend.texi (returns_nonnull): New function attribute.
14780 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14782 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14783 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14785 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14787 PR middle-end/58570
14788 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14789 false if both components are bitfields.
14791 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14793 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14794 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14795 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14796 * config/aarch64/aarch64.h
14797 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14798 * config/aarch64/aarch64-simd-builtins.def
14799 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14801 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14803 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14805 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14807 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14809 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14811 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14812 (vneg_f64): New intrinsic.
14813 (vneg_s8): Asm replaced with C.
14814 (vneg_s16): Likewise.
14815 (vneg_s32): Likewise.
14816 (vneg_s64): New intrinsic.
14817 (vnegq_f32): Asm replaced with C.
14818 (vnegq_f64): Likewise.
14819 (vnegq_s8): Likewise.
14820 (vnegq_s16): Likewise.
14821 (vnegq_s32): Likewise.
14822 (vnegq_s64): Likewise.
14824 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14826 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14828 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14830 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14831 packed stack special handling.
14832 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14833 back to fixed stack slots for FPRs saved due to stdarg.
14835 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14837 * config/s390/s390.c (s390_frame_info): Restructure function.
14839 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14841 * config/s390/s390.c (struct s390_frame_layout): New field
14843 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14844 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14845 regs_ever_clobbered to char*.
14846 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14847 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14848 (s390_register_info): Enable FPR save slots. Move/Copy some
14849 functionality into ...
14850 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14851 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14853 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14854 not imply a stack frame.
14855 (s390_init_frame_layout): Remove variable clobbered_regs.
14856 (s390_update_register_info): Remove function.
14857 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14858 cannot be used for register renaming.
14859 (s390_hard_regno_scratch_ok): New function.
14860 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14861 (s390_initial_elimination_offset): Change offset calculation of
14862 the return address pointer.
14863 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14864 (restore_gprs): Set frame related flag.
14865 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14866 (s390_emit_prologue): Call s390_register_info instead of
14867 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14868 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14869 (s390_optimize_prologue): Call s390_optimize_register_info.
14870 Try to remove also FPR slot save/restore INSNs. Remove frame
14871 related flags from restore INSNs.
14873 2013-10-08 DJ Delorie <dj@redhat.com>
14875 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14878 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14879 avoid conflict with the MI use of %c.
14880 * config/rl78/rl78-real.md: change %c to %C throughout.
14881 * config/rl78/rl78-virt.md: Likewise.
14883 2013-10-08 Jan Hubicka <jh@suse.cz>
14885 * config/i386/i386.c (ix86_option_override_internal): Switch
14886 to SSE math for -ffast-math when target ISA supports SSE2.
14888 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14890 * tree-flow.h: Remove some prototypes.
14891 * tree.h: Remove some protypes, add a couple.
14892 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14893 using_eh_for_cleanups_p): Add interface routines for front ends.
14894 * tree-eh.h: New file. Add protoptyes.
14895 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14896 (add_stmt_to_eh_lp_fn): Make static.
14897 (lower_try_finally): Use new using_eh_for_cleanups_p.
14898 * emit-rtl.c: Include tree-eh.h.
14899 * gimple.h: Include tree-eh.h.
14901 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14903 PR tree-optimization/58480
14904 * tree-vrp.c (infer_nonnull_range): New function.
14905 (infer_value_range): Call infer_nonnull_range.
14907 2013-10-08 Dehao Chen <dehao@google.com>
14909 PR tree-optimization/58619
14910 * tree-inline.c (copy_phis_for_bb): Combine location data
14913 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14916 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14917 RTX_FRAME_RELATED_P on INSN.
14919 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14921 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14922 (altivec_expand_vec_perm_const): Call it.
14924 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14926 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14927 sequences for LE VSX loads and stores at expand time.
14928 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14930 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14931 (rs6000_gen_le_vsx_permute): New.
14932 (rs6000_gen_le_vsx_load): New.
14933 (rs6000_gen_le_vsx_store): New.
14934 (rs6000_gen_le_vsx_move): New.
14935 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14936 (*vsx_le_perm_load_v4si): New.
14937 (*vsx_le_perm_load_v8hi): New.
14938 (*vsx_le_perm_load_v16qi): New.
14939 (*vsx_le_perm_store_v2di): New.
14940 (*vsx_le_perm_store_v4si): New.
14941 (*vsx_le_perm_store_v8hi): New.
14942 (*vsx_le_perm_store_v16qi): New.
14943 (*vsx_xxpermdi2_le_<mode>): New.
14944 (*vsx_xxpermdi4_le_<mode>): New.
14945 (*vsx_xxpermdi8_le_V8HI): New.
14946 (*vsx_xxpermdi16_le_V16QI): New.
14947 (*vsx_lxvd2x2_le_<mode>): New.
14948 (*vsx_lxvd2x4_le_<mode>): New.
14949 (*vsx_lxvd2x8_le_V8HI): New.
14950 (*vsx_lxvd2x16_le_V16QI): New.
14951 (*vsx_stxvd2x2_le_<mode>): New.
14952 (*vsx_stxvd2x4_le_<mode>): New.
14953 (*vsx_stxvd2x8_le_V8HI): New.
14954 (*vsx_stxvd2x16_le_V16QI): New.
14956 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14958 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14960 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14962 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14963 loop to work also for 31bit ABI.
14964 Save the stack pointer for frame_size > 0.
14966 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14968 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14969 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14970 constraint letters from expanders.
14971 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14972 retry count to general_operand.
14973 ("tabort"): Give operand 0 a mode.
14974 ("tabort_1"): Add mode and constraint letter for operand 0.
14975 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14977 2013-10-04 Jeff Law <law@redhat.com>
14979 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14981 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14983 (thread_across_edge): Here. Call it.
14985 2013-10-04 Cary Coutant <ccoutant@google.com>
14987 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14988 discarding a location list expression (or a piece of one).
14990 2013-10-03 Jan Hubicka <jh@suse.cz>
14992 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14993 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14994 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14996 2013-10-03 Jan Hubicka <jh@suse.cz>
14998 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14999 accumulate-outgoing-args when producing unwind info.
15001 2013-10-03 Wei Mi <wmi@google.com>
15003 * lra-constraints.c (insert_move_for_subreg): New function
15004 extracted from simplify_operand_subreg.
15005 (simplify_operand_subreg): Add reload for paradoxical subreg.
15007 2013-10-03 Rong Xu <xur@google.com>
15009 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15010 the candidate of builtin_expect such that we should fix the
15011 size/time estimation.
15012 (estimate_function_body_sizes): Do the acutally size/time fix-up
15013 for builtin_expect.
15015 2013-10-03 Rong Xu <xur@google.com>
15017 * predict.c (tree_predict_by_opcode): Get the probability
15018 for builtin_expect from param builtin_expect_probability.
15019 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15020 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15021 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15023 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15026 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15027 * calls.c (alloca_call_p): Use get_callee_fndecl.
15028 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15029 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15031 (vrp_visit_stmt): Remove duplicated code.
15033 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15035 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15036 ceildf2, btruncdf2, instead of vsx_* name.
15038 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15039 iterators to only do V2DF and V4SF here. Move the DF code to
15040 rs6000.md where it is combined with SF mode. Replace <VSv> with
15041 just 'v' since only vector operations are handled with these insns
15042 after moving the DF support to rs6000.md.
15043 (vsx_sub<mode>3): Likewise.
15044 (vsx_mul<mode>3): Likewise.
15045 (vsx_div<mode>3): Likewise.
15046 (vsx_fre<mode>2): Likewise.
15047 (vsx_neg<mode>2): Likewise.
15048 (vsx_abs<mode>2): Likewise.
15049 (vsx_nabs<mode>2): Likewise.
15050 (vsx_smax<mode>3): Likewise.
15051 (vsx_smin<mode>3): Likewise.
15052 (vsx_sqrt<mode>2): Likewise.
15053 (vsx_rsqrte<mode>2): Likewise.
15054 (vsx_fms<mode>4): Likewise.
15055 (vsx_nfma<mode>4): Likewise.
15056 (vsx_copysign<mode>3): Likewise.
15057 (vsx_btrunc<mode>2): Likewise.
15058 (vsx_floor<mode>2): Likewise.
15059 (vsx_ceil<mode>2): Likewise.
15060 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15061 (vsx_sminsf3): Likewise.
15062 (vsx_fmadf4): Likewise.
15063 (vsx_fmsdf4): Likewise.
15064 (vsx_nfmadf4): Likewise.
15065 (vsx_nfmsdf4): Likewise.
15066 (vsx_cmpdf_internal1): Likewise.
15068 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15069 simpler to select whether a target has SPE or traditional floating
15070 point support in iterators.
15071 (TARGET_DF_SPE): Likewise.
15072 (TARGET_SF_FPR): Likewise.
15073 (TARGET_DF_FPR): Likewise.
15074 (TARGET_SF_INSN): Macros to say whether floating point support
15075 exists for a given operation for expanders.
15076 (TARGET_DF_INSN): Likewise.
15078 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15079 combining of SF/DF mode operations, using both traditional and VSX
15087 (abs<mode>2): Combine SF/DF modes using traditional floating point
15088 instructions. Add support for using the upper DF registers with
15089 VSX support, and SF registers with power8-vector support. Update
15090 expanders for operations supported by both the SPE and traditional
15091 floating point units.
15092 (abs<mode>2_fpr): Likewise.
15093 (nabs<mode>2): Likewise.
15094 (nabs<mode>2_fpr): Likewise.
15095 (neg<mode>2): Likewise.
15096 (neg<mode>2_fpr): Likewise.
15097 (add<mode>3): Likewise.
15098 (add<mode>3_fpr): Likewise.
15099 (sub<mode>3): Likewise.
15100 (sub<mode>3_fpr): Likewise.
15101 (mul<mode>3): Likewise.
15102 (mul<mode>3_fpr): Likewise.
15103 (div<mode>3): Likewise.
15104 (div<mode>3_fpr): Likewise.
15105 (sqrt<mode>3): Likewise.
15106 (sqrt<mode>3_fpr): Likewise.
15107 (fre<Fs>): Likewise.
15108 (rsqrt<mode>2): Likewise.
15109 (cmp<mode>_fpr): Likewise.
15110 (smax<mode>3): Likewise.
15111 (smin<mode>3): Likewise.
15112 (smax<mode>3_vsx): Likewise.
15113 (smin<mode>3_vsx): Likewise.
15114 (negsf2): Delete SF operations that are merged with DF.
15115 (abssf2): Likewise.
15116 (addsf3): Likewise.
15117 (subsf3): Likewise.
15118 (mulsf3): Likewise.
15119 (divsf3): Likewise.
15121 (fmasf4_fpr): Likewise.
15122 (fmssf4_fpr): Likewise.
15123 (nfmasf4_fpr): Likewise.
15124 (nfmssf4_fpr): Likewise.
15125 (sqrtsf2): Likewise.
15126 (rsqrtsf_internal1): Likewise.
15127 (smaxsf3): Likewise.
15128 (sminsf3): Likewise.
15129 (cmpsf_internal1): Likewise.
15130 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15131 (negdf2): Delete DF operations that are merged with SF.
15132 (absdf2): Likewise.
15133 (nabsdf2): Likewise.
15134 (adddf3): Likewise.
15135 (subdf3): Likewise.
15136 (muldf3): Likewise.
15137 (divdf3): Likewise.
15139 (rsqrtdf_internal1): Likewise.
15140 (fmadf4_fpr): Likewise.
15141 (fmsdf4_fpr): Likewise.
15142 (nfmadf4_fpr): Likewise.
15143 (nfmsdf4_fpr): Likewise.
15144 (sqrtdf2): Likewise.
15145 (smaxdf3): Likewise.
15146 (smindf3): Likewise.
15147 (cmpdf_internal1): Likewise.
15148 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15149 (btrunc<mode>2): Delete separate expander, and combine with the
15150 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15151 (btrunc<mode>2_fpr): Likewise.
15152 (ceil<mode>2): Likewise.
15153 (ceil<mode>2_fpr): Likewise.
15154 (floor<mode>2): Likewise.
15155 (floor<mode>2_fpr): Likewise.
15156 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15157 Add support for using the upper registers with VSX and
15158 power8-vector. Move insns to be closer to the define_expands. On
15159 VSX systems, prefer the traditional form of FMA over the VSX
15160 version, since the traditional form allows the target not to
15161 overlap with the inputs.
15162 (fms<mode>4_fpr): Likewise.
15163 (nfma<mode>4_fpr): Likewise.
15164 (nfms<mode>4_fpr): Likewise.
15166 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15167 Richard Earnshaw <richard.earnshaw@arm.com>
15169 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15170 (struct mult_cost_table): Likewise.
15171 (struct mem_cost_table): Likewise.
15172 (struct fp_cost_table): Likewise.
15173 (struct vector_cost_table): Likewise.
15174 (cpu_cost_table): Likewise.
15175 * config/arm/arm.opt (mold-rts-costs): New option.
15176 (mnew-generic-costs): Likewise.
15177 * config/arm/arm.c (generic_extra_costs): New table.
15178 (cortexa15_extra_costs): Likewise.
15179 (arm_slowmul_tune): Use NULL as new costs.
15180 (arm_fastmul_tune): Likewise.
15181 (arm_strongarm_tune): Likewise.
15182 (arm_xscale_tune): Likewise.
15183 (arm_9e_tune): Likewise.
15184 (arm_v6t2_tune): Likewise.
15185 (arm_cortex_a5_tune): Likewise.
15186 (arm_cortex_a9_tune): Likewise.
15187 (arm_v6m_tune): Likewise.
15188 (arm_fa726te_tune): Likewise.
15189 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15190 (arm_cortex_tune): Use generict_extra_costs.
15191 (shifter_op_p): New function.
15192 (arm_unspec_cost): Likewise.
15193 (LIBCALL_COST): Define.
15194 (arm_new_rtx_costs): New function.
15195 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15196 table is available. Use old costs otherwise unless mnew-generic-costs
15198 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15199 (cpu_cost_table): Declare.
15201 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15204 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15205 (*subs_mul_imm_<mode>)
15206 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15207 (*sub_<shift>_<mode>)
15208 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15209 Remove k constraint.
15211 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15213 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15215 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15217 2013-10-02 Teresa Johnson <tejohnson@google.com>
15219 * predict.c (probably_never_executed): New function.
15220 (probably_never_executed_bb_p): Invoke probably_never_executed.
15221 (probably_never_executed_edge_p): Ditto.
15222 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15223 Treat profile insanities conservatively.
15225 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15227 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15229 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15231 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15232 use it. Use smaller increase for scratch. Don't increase reject
15233 for early clobber scratch.
15234 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15235 setting eliminated regs except setting fp from hfp.
15236 (lra_eliminate): Check lra_insn_recog_data on NULL.
15238 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15241 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15242 setting -mvsx-timode by default until the underlying problem is fixed.
15243 (RS6000_CPU, power7 defaults): Likewise.
15245 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15247 * config/x-linux (host-linux.o): Remove header dependencies.
15248 Use $(COMPILE) and $(POSTCOMPILE).
15249 * config/t-linux-android (linux-android.o): Ditto.
15251 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15253 * Makefile.in (expmed.o-warn): Remove.
15255 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15257 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15258 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15260 2013-10-02 Teresa Johnson <tejohnson@google.com>
15262 * dojump.c (do_jump_1): Divide probability between
15263 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15265 2013-10-02 Tom Tromey <tromey@redhat.com>
15267 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15269 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15271 * tree-flow.h: Remove some prototypes.
15272 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15273 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15274 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15275 mark_virtual_phi_result_for_renaming): Relocate here.
15276 * tree-into-ssa.h: Add prototypes.
15277 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15278 single_pred_before_succ_order.
15279 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15280 (nonfreeing_call_p) Move to gimple.c.
15281 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15283 * basic-block.h (single_pred_before_succ_order): Add prototype.
15284 * gimple.c (nonfreeing_call_p): Relocate here.
15285 * gimple.h: Add prototype.
15286 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15287 * tree-ssa-dom.h: New file. Relocate prototypes here.
15288 * tree-ssa.h: Include tree-ssa-dom.h.
15290 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15292 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15293 Use $(COMPILE) and $(POSTCOMPILE).
15295 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15297 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15299 * tree-flow.h: Remove some prototypes.
15300 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15301 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15302 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15303 propagate_tree_value*): Move from here to...
15304 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15305 propagate_tree_value*): Relocate here.
15306 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15307 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15308 * gimple-fold.c: Remove gimple-fold.h from include list.
15309 * tree-vrp.c: Remove gimple-fold.h from include list.
15310 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15311 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15312 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15313 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15314 * sese.c: Add tree-ssa-propagate.h to include list.
15316 2013-10-02 Richard Biener <rguenther@suse.de>
15318 * tree-loop-distribution.c: Include tree-vectorizer.h for
15319 find_loop_location.
15320 (enum partition_kind): Remove PKIND_REDUCTION.
15321 (struct partition_s): Remove has_writes member, add reduction_p member.
15322 (partition_alloc): Adjust.
15323 (partition_builtin_p): Likewise.
15324 (partition_has_writes): Remove.
15325 (partition_reduction_p): New function.
15326 (partition_merge_into): Likewise.
15327 (generate_code_for_partition): Commonize builtin partition
15329 (rdg_cannot_recompute_vertex_p): Remove.
15330 (already_processed_vertex_p): Likewise.
15331 (rdg_flag_vertex): Do not set has_writes.
15332 (classify_partition): Adjust.
15333 (rdg_build_partitions): Do not set has_writes, treat all
15334 partitions as useful.
15335 (distribute_loop): Record number of library calls generated. Adjust.
15336 (tree_loop_distribution): Report number of loops and library
15337 calls generated as opt-info.
15339 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15341 * tree-flow.h: Include new .h files. Move prototypes.
15342 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15343 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15344 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15345 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15346 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15347 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15348 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15349 * tree.h (get_ref_base_and_extent): Move prototype out.
15350 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15352 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15353 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15354 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15355 * tree-scalar-evolution.c: Include tree.h.
15356 * sese.c: Include tree.h.
15357 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15358 * dwarf2out.c: Include tree-dfa.h.
15359 * tree-chrec.c: Include tree.h.
15360 * tree-data-ref.c: Include tree.h.
15362 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15364 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15367 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15369 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15370 Use $(COMPILE) and $(POSTCOMPILE).
15371 (sol2-cxx.o): Likewise.
15372 (sol2-stubs.o): Likewise.
15373 (sol2.o): Likewise.
15374 * config/x-solaris (host-solaris.o): Likewise.
15376 * config/sparc/t-sparc (sparc.o): Remove.
15377 (sparc-c.o): Remove header dependencies.
15378 Use $(COMPILE) and $(POSTCOMPILE).
15379 * config/sparc/x-sparc: Likewise.
15381 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15383 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15384 * config/arc/arc700.md: Likewise.
15385 * config/arc/arc-modes.def: Likewise.
15386 * config/arc/arc-simd.h: Likewise.
15387 * config/arc/t-arc-uClibc: Likewise.
15388 * config/arc/t-arc-newlib: Likewise.
15390 2013-10-02 Renlin Li <renlin.li@arm.com>
15392 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15394 (aarch64_expand_epilogue): Likewise.
15396 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15397 Yufeng Zhang <yufeng.zhang@arm.com>
15399 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15401 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15402 'base_in' represent a conversion and legal_cast_p_1 holds; set
15403 'base_in' with the returned value from get_unwidened.
15405 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15407 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15408 plus_constant is not used.
15410 2013-10-01 Wei Mi <wmi@google.com>
15412 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15413 * config/i386/i386.md: Add define_peephole2 to
15414 break partial reg stall for cvtss2sd/cvtsd2ss.
15416 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15418 * config/arc/arc.c (pass_arc_ifcvt::clone):
15419 Update for ctxt_ -> m_ctxt change.
15421 2013-10-01 Jeff Law <law@redhat.com>
15423 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15424 outgoing_edge and intermediate_edge fields. Instead store the path.
15425 (redirection_data::hash): Hash on the last edge's destination index.
15426 (redirection_data::equal): Check the entire thread path.
15427 (lookup_redirectio_data): Corresponding changes.
15428 (create_edge_and_update_destination_phis): Likewise.
15429 (thread_single_edge): Likewise.
15431 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15432 Diego Novillo <dnovillo@google.com>
15434 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15435 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15436 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15437 versions of these patterns.
15439 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15440 (__builtin_arc_aligned): Likewise.
15442 * config/arc/arc.md: Expand adc_0 comment stating the intended
15443 purpose and why it isn't ready.
15444 Replace commented out call_value_via_label_mixed with a
15445 plain comment about bl_s.
15447 * config/arc/arc.c (stdio.h): Don't include directly.
15448 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15449 Remove if (1) condition.
15450 (arc_encode_section_info): Fix comment.
15452 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15454 * config/arc/arc.c (arc_conditional_register_usage):
15455 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15456 Also set reg_alloc_order for DMA config regs.
15458 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15459 Jeremy Bennett <jeremy.bennett@embecosm.com>
15461 * doc/install.texi (--with-cpu): Mention ARC.
15462 (arc-*-elf32): New paragraph.
15463 (arc-linux-uclibc): Likewise.
15464 * doc/md.texi (Machine Constraints): Add ARC part.
15465 * doc/invoke.texi: (menu): Add ARC Options.
15466 (Machine Dependent Options) <ARC Options>: Add synopsis.
15467 (node ARC Options): Add.
15468 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15469 (ARC Built-in Functions): New section defining
15470 generic ARC built-in functions.
15471 (ARC SIMD Built-in Functions): New section defining SIMD specific
15472 built-in functions.
15473 (Declaring Attributes of Functions): Extended
15474 description of short_call and long_call attributes for ARC and
15475 added index entries.
15477 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15478 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15479 Joern Rennecke <joern.rennecke@embecosm.com>
15480 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15481 Brendan Kehoe <brendan@zen.org>
15482 Michael Eager <eager@eagercon.com>
15483 Simon Cook <simon.cook@embecosm.com>
15484 Jeremy Bennett <jeremy.bennett@embecosm.com>
15486 * config/arc, common/config/arc: New directories.
15488 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15489 Brendan Kehoe <brendan@zen.org>
15490 Simon Cook <simon.cook@embecosm.com>
15492 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15494 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15496 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15497 * tree-ssa-coalesce.h: New. Move prototype to here.
15498 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15499 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15500 (gimple_can_coalesce_p): Move to...
15501 * gimple.c (gimple_can_coalesce_p): Here.
15503 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15505 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15506 (dump_decl_set): Move to gimple.c.
15507 * gimple.h: Don't include tree-ssa-operands.h.
15508 (dump_decl_set): Add prototype.
15509 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15510 Move to gimple-ssa.h.
15511 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15512 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15513 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15514 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15515 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15517 (dump_decl_set): Relocate here.
15518 * gimple-ssa.h: New file.
15519 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15520 Relocate from gimple.h.
15521 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15522 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15523 swap_tree_operands and remove non-ssa path.
15524 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15525 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15527 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15528 vect_is_simple_reduction_1): Use swap_ssa_operands.
15529 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15530 (enum need_phi_state): Move to tree-into-ssa.c.
15531 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15532 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15533 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15534 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15535 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15536 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15537 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15538 num_imm_uses): Move to ssa-iterators.h.
15539 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15540 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15542 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15543 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15544 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15545 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15546 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15547 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15548 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15549 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15550 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15551 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15552 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15553 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15554 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15555 (set_phi_nodes): Move to tree-phinodes.h.
15556 * tree-ssa-operands.h (enum ssa_op_iter_type,
15557 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15558 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15559 (dump_decl_set): Remove prototype.
15560 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15561 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15562 (set_phi_nodes): Relocate from tree-flow-inline.h.
15563 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15565 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15566 include list. Temporarily add gimple.h to include list.
15567 * ssa-iterators.h: New file.
15568 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15569 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15570 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15571 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15572 Relocate from tree-ssa-operands.h.
15573 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15574 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15575 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15576 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15577 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15578 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15579 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15580 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15581 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15582 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15583 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15584 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15585 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15586 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15587 Relocate from tree-flow-inline.h.
15588 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15590 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15593 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15594 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15595 Insert '\t' to output template.
15596 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15597 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15598 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15599 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15601 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15603 * doc/install.texi (Host/target specific installation notes for GCC):
15604 Put @anchor before @heading.
15605 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15606 Use @email for email addresses.
15608 2013-10-01 Jeff Law <law@redhat.com>
15610 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15611 a vec. Only delete the path if we create one without successfully
15612 registering a jump thread.
15613 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15615 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15616 (paths): New vector of jump threading paths.
15617 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15618 (THREAD_PATH): New accessor macro for the entire thread path.
15619 (lookup_redirection_data): Get intermediate and final outgoing edge
15620 from the thread path.
15621 (create_edge_and_update_destination_phis): Copy the threading path.
15622 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15623 jump threading path.
15624 (ssa_redirect_edges): Get edges and block types from the jump threading
15625 path. Free the path vector.
15626 (thread_block): Get edges from the jump threading path. Look at the
15627 entire path to see if we thread to a loop exit. If we cancel a jump
15628 thread request, then free the path vector.
15629 (thread_single_edge): Get edges and block types from the jump threading
15630 path. Free the path vector.
15631 (thread_through_loop_header): Get edges and block types from the jump
15632 threading path. Free the path vector.
15633 (mark_threaded_blocks): Iterate over the vector of paths and store
15634 the path on the appropriate edge. Get edges and block types from the
15635 jump threading path.
15636 (mark_threaded_blocks): Get edges and block types from the jump
15637 threading path. Free the path vector.
15638 (thread_through_all_blocks): Use the vector of paths rather than
15639 a vector of 3-edge sets.
15640 (register_jump_thread): Accept pointer to a path vector rather
15641 than the path vector itself. Store the path vector for later use.
15644 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15645 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15648 * config/s390/s390.c (s390_split_branches): Modify check for table
15650 (s390_chunkify_start): Rearrange table jump insn check in order to
15651 deal with compare and branch insns correctly.
15653 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15657 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15658 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15659 define_insn_and_split.
15660 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15661 (shiftsi3_compare): New pattern.
15662 (rrx): New pattern.
15663 * config/arm/unspecs.md (UNSPEC_RRX): New.
15665 2013-10-01 Alan Modra <amodra@gmail.com>
15667 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15668 casing inout operands.
15670 2013-10-01 Richard Biener <rguenther@suse.de>
15672 PR tree-optimization/58553
15673 * tree-loop-distribution.c (struct partition_s): Add niter member.
15674 (classify_partition): Populate niter member for the partition
15675 and properly identify whether the relevant store happens before
15676 or after the loop exit.
15677 (generate_memset_builtin): Use niter member from the partition.
15678 (generate_memcpy_builtin): Likewise.
15680 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15682 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15683 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15685 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15687 * basic-block.h (edge_list): Prefix member names with "m_".
15688 * context.h (context): Likewise.
15689 * domwalk.h (dom_walker): Likewise.
15690 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15691 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15692 * hash-table.h (hash_table): Likewise.
15693 * machmode.h (bit_field_mode_iterator): Likewise.
15694 * pass_manager.h (pass_list): Likewise.
15695 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15696 * tree-pass.h (pass_data): Likewise.
15697 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15698 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15699 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15700 * asan.c (pass_data_asan): Update accordingly.
15701 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15702 (control_dependences::control_dependences): Likewise.
15703 (control_dependences::~control_dependences): Likewise.
15704 (control_dependences::~control_dependences): Likewise.
15705 (control_dependences::get_edges_dependent_on): Likewise.
15706 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15707 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15708 * context.c (gcc::context::context): Likewise.
15709 * cprop.c (pass_rtl_cprop::clone): Likewise.
15710 * domwalk.c (dom_walker::walk): Likewise.
15711 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15712 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15713 * mode-switching.c (pass_mode_switching::clone): Likewise.
15714 * passes.c (opt_pass::opt_pass): Likewise.
15715 (pass_manager::pass_manager): Likewise.
15716 * predict.c (pass_strip_predict_hints::clone): Likewise.
15717 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15718 (pass_split_all_insns::clone): Likewise.
15719 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15721 (bit_field_mode_iterator::next_mode): Likewise.
15722 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15723 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15724 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15725 * tree-complex.c (pass_lower_complex::clone): Likewise.
15726 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15727 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15728 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15729 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15730 (pass_fold_builtins::clone): Likewise.
15731 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15732 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15733 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15734 (pass_cd_dce::clone): Likewise.
15735 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15736 (pass_phi_only_cprop::clone): Likewise.
15737 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15738 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15739 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15740 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15741 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15742 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15743 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15744 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15745 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15746 * tree-vrp.c (pass_vrp::clone): Likewise.
15747 * tsan.c (pass_tsan::clone): Likewise.
15749 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15751 PR middle-end/58564
15752 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15753 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15755 PR middle-end/58564
15756 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15757 optimization, punt if sign_bit_p looked through any zero extension.
15759 2013-09-30 Teresa Johnson <tejohnson@google.com>
15761 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15762 Update redirected out edge count in joiner case.
15763 (ssa_redirect_edges): Common the joiner and non-joiner cases
15764 so that joiner case gets profile updates.
15766 2013-09-30 Richard Biener <rguenther@suse.de>
15768 PR tree-optimization/58554
15769 * tree-loop-distribution.c (classify_partition): Require
15770 unconditionally executed stores for memcpy and memset recognition.
15771 (tree_loop_distribution): Calculate dominance info.
15773 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15775 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15776 (NO_PROFILE_COUNTERS): Likewise.
15777 (PROFILE_HOOK): Likewise.
15778 (FUNCTION_PROFILER): Likewise.
15779 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15781 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15783 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15784 calls and defines in TARGET_MACHO conditional.
15785 (load_macho_picbase_di): Likewise.
15786 (reload_macho_picbase): Likewise.
15787 (reload_macho_picbase_si): Likewise.
15788 (reload_macho_picbase_di): Likewise.
15789 (nonlocal_goto_receiver): Likewise.
15791 2013-09-30 Nick Clifton <nickc@redhat.com>
15793 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15794 that use the MSP430X ISA.
15795 (msp430_option_override): Scan -mmcu command line option for any
15796 MCU name that supports the MSP430X ISA.
15797 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15798 -mmcu options which enable the MSP430X ISA.
15800 2013-09-30 Richard Biener <rguenther@suse.de>
15802 PR middle-end/58532
15803 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15804 before looking for setjmp-like calls.
15806 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15809 * config/darwin-protos.h (machopic_get_function_picbase): New.
15810 * config/darwin.c (machopic_get_function_picbase): New.
15811 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15812 label for a new func. (load_macho_picbase_di): Likewise.
15813 (reload_macho_picbase): New expand.
15814 (reload_macho_picbase_si): New insn.
15815 (reload_macho_picbase_di): New insn.
15816 (nonlocal_goto_receiver): New define and split.
15817 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15818 (unspecv enum): Add UNSPECV_NLGR.
15820 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15822 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15823 that altivec registers are correctly sized on Darwin.
15825 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15827 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15828 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15829 * config/x-darwin (host-darwin.o): Likewise.
15830 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15831 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15832 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15834 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15836 * doc/invoke.texi: Fix usage of @tie{} command.
15838 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15840 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15842 2013-09-28 Jan Hubicka <jh@suse.cz>
15844 * config/i386/x86-tune.def: Add documentation for each of the options;
15847 2013-09-28 Jan Hubicka <jh@suse.cz>
15849 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15851 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15852 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15853 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15854 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15855 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15857 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15859 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15860 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15861 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15862 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15863 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15864 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15865 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15866 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15867 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15868 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15869 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15870 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15871 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15872 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15873 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15874 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15875 gimple.h, godump.c, graphite-clast-to-gimple.c,
15876 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15877 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15878 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15879 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15880 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15881 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15882 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15883 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15884 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15885 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15886 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15887 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15888 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15889 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15890 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15891 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15892 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15893 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15894 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15895 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15896 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15897 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15898 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15899 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15900 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15901 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15902 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15903 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15904 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15905 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15906 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15907 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15908 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15909 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15910 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15911 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15912 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15913 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15914 whitespace before "(".
15916 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15918 * expr.h (extract_bit_field): Remove packedp parameter.
15919 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15920 from forward declaration.
15921 (store_split_bit_field): Remove packedp arg from calls to
15922 extract_fixed_bit_field.
15923 (extract_bit_field_1): Remove packedp parameter and packedp
15924 argument from recursive calls and calls to extract_fixed_bit_field.
15925 (extract_bit_field): Remove packedp parameter and corresponding
15926 arg to extract_bit_field_1.
15927 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15929 (extract_split_bit_field): Remove packedp arg from call to
15930 extract_fixed_bit_field.
15931 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15932 (copy_blkmode_from_reg): Likewise.
15933 (copy_blkmode_to_reg): Likewise.
15934 (read_complex_part): Likewise.
15935 (store_field): Likewise.
15936 (expand_expr_real_1): Likewise.
15937 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15938 to extract_bit_field.
15939 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15940 call to extract_bit_field.
15941 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15942 call to extract_bit_field.
15943 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15944 and special packedp behavior from -fstrict-volatile-bitfields
15947 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15949 * lra-eliminations.c (init_elim_table): Guard value_p.
15951 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15953 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15954 DFmode, DImode, and SFmode in the upper VSX registers based on the
15955 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15956 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15957 of the VSX register handling.
15959 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15960 (f32_sv): Likewise.
15961 (zero_extendsidi2_lfiwzx): Add support for loading into the
15962 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15963 only do VSX memory options on Altivec registers.
15964 (extendsidi2_lfiwax): Likewise.
15965 (extendsfdf2_fpr): Likewise.
15966 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15967 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15968 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15969 (movdi_internal64): Likewise.
15971 2013-09-27 Xinliang David Li <davidxl@google.com>
15973 * opts.c (finish_options): Adjust parameters
15974 according to vect cost model.
15975 (common_handle_option): Set dynamic vect cost
15977 targhooks.c (default_add_stmt_cost): Compute stmt cost
15979 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15980 Use helper function.
15981 * tree-vectorizer.h (unlimited_cost_model): New function.
15982 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15983 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15985 (vect_enhance_data_refs_alignment): Ditto.
15986 * flag-types.h: New enum.
15987 * common/config/i386/i386-common.c (ix86_option_init_struct):
15988 No need to initialize vect_cost_model flag.
15989 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15992 2013-09-27 Diego Novillo <dnovillo@google.com>
15994 * gimple.h (enum ssa_mode): Remove.
15996 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15998 * cfgloop.h (number_of_loops): Fix typo in check for null.
16000 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16002 PR middle-end/58551
16003 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16004 are children of outermost saved_cfun's loop, and set it up to
16005 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16006 if loop != loop0 and SESE region contains bbs that belong to loop0.
16008 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16010 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16011 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16012 (set_address_segment, set_address_base, set_address_index)
16013 (set_address_disp): Accept the argument unconditionally.
16014 (baseness): Remove must_be_base_p and must_be_index_p checks.
16015 (decompose_normal_address): Classify as much as possible in the
16018 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16020 * cse.c (count_reg_usage): Handle INT_LIST.
16021 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16022 * reginfo.c (reg_scan_mark_refs): Likewise.
16023 * reload1.c (eliminate_regs_1): Likewise.
16025 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16027 PR middle-end/58547
16028 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16031 2013-09-27 Richard Biener <rguenther@suse.de>
16033 PR tree-optimization/58459
16034 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16035 restriction not propagating into loops.
16037 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16039 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16040 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16041 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16043 2013-09-26 Richard Biener <rguenther@suse.de>
16045 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16047 2013-09-26 Richard Biener <rguenther@suse.de>
16049 * alias.h (component_uses_parent_alias_set): Rename to ...
16050 (component_uses_parent_alias_set_from): ... this.
16051 * alias.c (component_uses_parent_alias_set): Rename to ...
16052 (component_uses_parent_alias_set_from): ... this and return
16053 the desired parent.
16054 (reference_alias_ptr_type_1): Use the result from
16055 component_uses_parent_alias_set_from instead of stripping
16056 components one at a time.
16057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16059 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16061 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16062 Move prototypes to...
16063 * tree-ssa-ter.h: New File. Move prototypes here.
16064 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16065 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16066 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16067 from is_replaceable_p.
16068 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16069 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16070 (process_replaceable): Use ter_is_replaceable_p.
16071 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16072 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16073 newly refactored ssa_is_replaceable_p.
16074 * cfgexpand.c: Include tree-outof-ssa.h.
16075 * ssaexpand.h: Delete.
16077 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16079 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16080 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16082 (create_gimple_tmp): Delete.
16083 (get_expr_type, build_assign, build_type_cast): Move to...
16084 * gimple-builder.c: New File.
16085 (get_expr_type): Relocate from gimple.c.
16086 (build_assign, build_type_cast): Change to only create ssanames.
16087 * gimple.h: Move prototypes to...
16088 * gimple-builder.h: New File. Here.
16089 * tree-ssa.h: And here.
16090 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16091 count_uses_and_derefs): Relocate from gimple.c.
16092 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16093 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16094 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16095 gimple_replace_ssa_lhs.
16096 * asan.c: Include gimple-builder.h.
16097 * Makefile.in: Add gimple-builder.o.
16099 2013-09-26 Richard Biener <rguenther@suse.de>
16101 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16102 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16103 (loe_visit_block): Use gcc_checking_assert.
16104 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16105 gimple_assign_ssa_name_copy_p.
16106 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16109 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16111 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16112 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16114 2013-09-26 Richard Biener <rguenther@suse.de>
16116 PR tree-optimization/58539
16117 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16118 the fact that debug statements are not taking part in loop-closed
16121 2013-09-26 Nick Clifton <nickc@redhat.com>
16123 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16124 time warning message.
16125 (msp430_print_operand_raw): Delete unused letter parameter.
16126 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16127 (msp430_print_operand_address): New function.
16128 (msp430_print_operand): Move address printing code from here to
16130 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16132 (zero_extendpsisi2): Likewise.
16133 (extendpsisi2): New pattern.
16134 (andneghi3): New pattern.
16136 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16138 * config/aarch64/aarch64.opt (mlra): New option.
16139 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16140 (TARGET_LRA_P): Define.
16142 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16144 * expr.c (expand_assignment): Remove obsolete comment.
16146 2013-09-25 Jeff Law <law@redhat.com>
16148 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16149 tree-ssa-threadupdate.h.
16150 (register_jump_thread): Similarly.
16151 * tree-ssa-threadupdate.h: New header file.
16152 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16153 * tree-vrp.c: Likewise.
16154 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16155 (thread_around_empty_blocks): Change type of path vector argument to
16156 an edge,type pair from just an edge. Initialize both elements when
16157 appending to a jump threading path. Tweak references to elements
16159 (thread_across_edge): Similarly. Release memory for the elements
16161 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16162 (dump_jump_thread_path): New function broken out from
16163 register_jump_thread.
16164 (register_jump_thread): Use dump_jump_thread_path. Change type of
16165 path vector entries. Search the path for NULL edges and dump
16166 the path if one is found. Tweak the conversion of path to 3-edge
16167 form to use the block copy type information embedded in the path.
16169 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16171 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16173 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16174 Vladimir Makarov <vmakarov@redhat.com>
16176 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16177 from the least significant bit.
16178 (strip_address_mutations): Add bitfield operations handling.
16179 (must_be_index_p): Add shifting and rotate operations handling.
16180 (set_address_base): Use must_be_base_p predicate.
16181 (set_address_index): Use must_be_index_p predicate.
16183 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16185 Sergey Lega <sergey.s.lega@intel.com>
16186 Anna Tikhonova <anna.tikhonova@intel.com>
16187 Ilya Tocar <ilya.tocar@intel.com>
16188 Andrey Turetskiy <andrey.turetskiy@intel.com>
16189 Ilya Verbin <ilya.verbin@intel.com>
16190 Kirill Yukhin <kirill.yukhin@intel.com>
16191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16193 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16195 (ix86_expand_vector_move_misalign): Support new unaligned load and
16196 stores and use new names.
16197 (CODE_FOR_sse2_storedqu): Rename to ...
16198 (CODE_FOR_sse2_storedquv16qi): ... this.
16199 (CODE_FOR_sse2_loaddqu): Rename to ...
16200 (CODE_FOR_sse2_loaddquv16qi): ... this.
16201 (CODE_FOR_avx_loaddqu256): Rename to ...
16202 (CODE_FOR_avx_loaddquv32qi): ... this.
16203 (CODE_FOR_avx_storedqu256): Rename to ...
16204 (CODE_FOR_avx_storedquv32qi): ... this.
16205 * config/i386/i386.md (fpint_logic): New.
16206 * config/i386/sse.md (VMOVE): Extend for AVX512.
16210 (VI_UNALIGNED_LOADSTORE): Ditto.
16211 (sse2_avx_avx512f): Ditto.
16212 (sse2_avx2): Extend for AVX512.
16213 (sse4_1_avx2): Ditto.
16214 (avx2_avx512f): New.
16215 (sse): Extend for AVX512.
16218 (avxsizesuffix): Ditto.
16219 (sseintvecmode): Ditto.
16220 (ssePSmode): Ditto.
16221 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16222 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16223 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16224 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16225 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16226 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16227 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16228 (STORENT_MODE): Extend for AVX512.
16229 (*absneg<mode>2): Replace constraint "x" with "v".
16230 (*mul<mode>3): Ditto.
16231 (*ieee_smin<mode>3): Ditto.
16232 (*ieee_smax<mode>3): Ditto.
16233 (avx_cmp<mode>3): Replace VF with VF_128_256.
16234 (*<sse>_maskcmp<mode>3_comm): Ditto.
16235 (<sse>_maskcmp<mode>3): Ditto.
16236 (<sse>_andnot<mode>3): Extend for AVX512.
16237 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16238 (<code><mode>3, fpint_logic): New.
16239 (*<code><mode>3): Extend for AVX512.
16240 (avx512flogicsuff): New.
16241 (avx512f_<logic><mode>): Ditto.
16242 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16244 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16245 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16246 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16247 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16248 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16249 (xop_vpermil2<mode>3): Ditto.
16250 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16251 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16252 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16253 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16255 2013-09-25 Tom Tromey <tromey@redhat.com>
16257 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16258 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16259 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16260 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16261 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16262 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16263 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16264 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16265 (GRAPHITE_HTAB_H): Remove.
16267 2013-09-25 Tom Tromey <tromey@redhat.com>
16269 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16271 2013-09-25 Tom Tromey <tromey@redhat.com>
16273 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16275 2013-09-25 Tom Tromey <tromey@redhat.com>
16277 * config/i386/t-i386 (i386.o): Remove.
16278 (i386-c.o): Use COMPILE and POSTCOMPILE.
16280 2013-09-25 Tom Tromey <tromey@redhat.com>
16282 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16284 2013-09-25 Tom Tromey <tromey@redhat.com>
16286 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16287 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16288 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16289 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16290 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16291 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16292 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16293 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16294 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16295 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16296 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16297 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16298 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16299 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16300 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16301 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16302 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16303 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16304 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16305 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16306 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16307 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16308 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16309 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16310 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16311 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16312 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16313 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16314 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16315 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16316 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16317 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16318 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16319 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16320 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16321 (graphite-clast-to-gimple.o, graphite-dependences.o)
16322 (graphite-interchange.o, graphite-poly.o)
16323 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16324 (graphite-optimize-isl.o, tree-vect-loop.o)
16325 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16326 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16327 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16328 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16329 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16330 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16331 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16332 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16333 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16334 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16335 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16336 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16337 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16338 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16339 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16340 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16341 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16342 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16343 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16344 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16345 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16346 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16347 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16348 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16349 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16350 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16351 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16352 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16353 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16354 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16355 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16356 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16357 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16358 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16359 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16360 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16361 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16362 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16363 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16364 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16365 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16366 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16367 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16368 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16369 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16370 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16371 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16372 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16373 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16374 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16375 (gcov-dump.o): Remove.
16376 (default-c.o): Use COMPILE and POSTCOMPILE.
16377 (CFLAGS-gcc.o): New variable.
16378 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16380 2013-09-25 Tom Tromey <tromey@redhat.com>
16382 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16383 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16384 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16385 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16386 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16387 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16388 (c-family/array-notation-common.o, c-family/stub-objc.o)
16389 (c-family/c-ubsan.o): Remove.
16391 2013-09-25 Tom Tromey <tromey@redhat.com>
16393 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16395 2013-09-25 Tom Tromey <tromey@redhat.com>
16397 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16398 to add -DENABLE_SHARED_LIBGCC.
16399 (gcc.o): Don't use subshell.
16401 2013-09-25 Tom Tromey <tromey@redhat.com>
16403 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16404 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16405 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16406 * configure, config.in: Rebuild.
16408 2013-09-25 Tom Tromey <tromey@redhat.com>
16410 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16411 (COMPILE, POSTCOMPILE): New variables.
16412 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16413 (DEPFILES): New variable.
16414 Include ".Po" files.
16415 * configure.ac: Add checks for dependency checking.
16416 * configure, aclocal.m4: Regenerate.
16418 2013-09-25 Tom Tromey <tromey@redhat.com>
16420 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16421 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16423 2013-09-25 Tom Tromey <tromey@redhat.com>
16425 * Makefile.in (generated_files): Add options.h,
16426 target-hooks-def.h, insn-opinit.h,
16427 common/common-target-hooks-def.h, pass-instances.def,
16428 c-family/c-target-hooks-def.h.
16430 2013-09-25 Jeff Law <law@redhat.com>
16432 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16433 than foo[foo.length () - 1] to access last member in a vec.
16434 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16436 2013-09-25 Richard Biener <rguenther@suse.de>
16438 PR middle-end/58521
16439 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16441 2013-09-25 Jan Hubicka <jh@suse.cz>
16443 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16446 2013-09-25 Marek Polacek <polacek@redhat.com>
16449 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16450 when determining the type name.
16452 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16454 * config/sh/sh.md: Fix formatting.
16456 2013-09-24 Xinliang David Li <davidxl@google.com>
16458 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16459 max peel iterations parameter.
16460 * param.def: New parameter.
16461 * doc/invoke.texi: Document New parameter.
16463 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16465 * gimple-pretty-print.c: Various whitespace tweaks.
16466 * tree-core.h: Likewise.
16467 * tree-pretty-print.c: Likewise.
16468 * tree-ssa-alias.c: Likewise.
16469 * tree-ssa-copy.c: Likewise.
16470 * tree-ssanames.c: Likewise.
16471 * tree-ssanames.h: Likewise.
16472 * tree-vrp.c: Likewise.
16474 2013-09-24 Alan Modra <amodra@gmail.com>
16476 PR middle-end/57134
16477 PR middle-end/57586
16478 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16479 for output operands that disallow regs. Don't use EXPAND_WRITE on
16482 2013-09-24 Richard Biener <rguenther@suse.de>
16484 PR middle-end/58513
16485 * tree.c (reference_alias_ptr_type): Move ...
16486 * alias.c (reference_alias_ptr_type): ... here and implement
16487 in terms of the new reference_alias_ptr_type_1.
16488 (ref_all_alias_ptr_type_p): New helper.
16489 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16490 use ref_all_alias_ptr_type_p.
16491 (get_deref_alias_set): Add flag_strict_aliasing check here.
16492 (reference_alias_ptr_type_1): New function, split out from ...
16493 (get_alias_set): ... here.
16494 (alias_ptr_types_compatible_p): New function.
16495 * alias.h (reference_alias_ptr_type): Declare.
16496 (alias_ptr_types_compatible_p): Likewise.
16497 * tree.h (reference_alias_ptr_type): Remove.
16498 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16499 to compare MEM_REF alias types.
16501 2013-09-24 Richard Biener <rguenther@suse.de>
16503 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16505 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16507 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16508 reload helper function arrays into a single array reg_addr.
16509 (reload_fpr_gpr): Likewise.
16510 (reload_gpr_vsx): Likewise.
16511 (reload_vsx_gpr): Likewise.
16512 (struct rs6000_reg_addr): Likewise.
16513 (reg_addr): Likewise.
16514 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16515 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16516 (rs6000_init_hard_regno_mode_ok): Likewise.
16517 (rs6000_secondary_reload_direct_move): Likewise.
16518 (rs6000_secondary_reload): Likewise.
16520 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16521 constraints: wu, ww, and wy. Repurpose wv constraint added during
16522 power8 changes. Put wg constraint in alphabetical order.
16524 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16525 for future work to add ISA 2.07 VSX single precision support.
16526 (-mvsx-scalar-double): Change default from -1 to 1, update
16527 documentation comment.
16528 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16529 (-mupper-regs-df): New debug switch to control whether DF values
16530 can go in the traditional Altivec registers.
16531 (-mupper-regs-sf): New debug switch to control whether SF values
16532 can go in the traditional Altivec registers.
16534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16535 and wy constraints.
16536 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16537 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16538 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16539 (rs6000_debug_legitimate_address_p): Print if we are running
16540 before, during, or after reload.
16541 (rs6000_secondary_reload): Add a comment.
16542 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16544 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16545 constraints. Update documentation string.
16546 (wd constraint): Likewise.
16547 (wf constraint): Likewise.
16548 (wg constraint): Likewise.
16549 (wn constraint): Likewise.
16550 (ws constraint): Likewise.
16551 (wt constraint): Likewise.
16552 (wx constraint): Likewise.
16553 (wz constraint): Likewise.
16554 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16556 (ww constraint): Likewise.
16557 (wy constraint): Likewise.
16558 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16559 in the previous submissions.
16560 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16562 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16564 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16565 (REG_BR_PROB): Say that the probability is stored in an int_list.
16566 * reg-notes.def: Update commentary to mention INT_LIST.
16567 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16568 (INT_LIST): New rtx.
16569 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16570 * rtlanal.c (int_reg_note_p): New function.
16571 (alloc_reg_note): Assert that the note does not have an int argument.
16572 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16573 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16574 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16575 rather than an INSN_LIST. Handle INT_LIST.
16576 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16577 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16578 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16579 Manipulate them as ints rather than rtxes.
16580 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16581 * regmove.c (copy_src_to_dest): Likewise.
16582 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16584 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16585 into the cases that need it.
16586 * config/arm/arm.c (arm_unwind_emit): Likewise.
16588 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16589 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16590 * loop-doloop.c (add_test, doloop_modify): Likewise.
16591 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16592 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16593 * predict.c (combine_predictions_for_insn): Likewise.
16594 * print-rtl.c (print_rtx): Handle INT_LIST.
16595 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16596 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16597 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16598 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16599 (ix86_split_fp_branch, predict_jump): Likewise.
16600 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16601 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16602 * config/spu/spu.c (ea_load_store_inline): Likewise.
16604 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16605 value of a REG_BR_PROB note.
16606 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16607 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16608 * emit-rtl.c (try_split): Likewise.
16609 * predict.c (br_prob_note_reliable_p): Likewise.
16610 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16611 * reorg.c (mostly_true_jump): Likewise.
16612 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16613 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16614 * config/i386/i386.c (ix86_print_operand): Likewise.
16615 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16616 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16617 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16618 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16619 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16620 * config/sparc/sparc.c (output_cbranch): Likewise.
16621 * config/spu/spu.c (get_branch_target): Likewise.
16622 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16623 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16625 2013-09-23 Jan Hubicka <jh@suse.cz>
16627 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16629 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16630 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16632 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16633 (gimple_fold_call): Dump inconsistent devirtualizations; add
16634 sanity check for type based devirtualizations.
16635 * ipa-prop.c: Include ipa-utils.h
16636 (ipa_intraprocedural_devirtualization): Add sanity check.
16637 (try_make_edge_direct_virtual_call): Likewise.
16639 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16641 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16642 assignment statements.
16644 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16646 * gimple-pretty-print.c (dump_ssaname_info): New function.
16647 (dump_gimple_phi): Call it.
16648 (pp_gimple_stmt_1): Likewise.
16649 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16650 (range_info_def): Declare.
16651 * tree-pretty-print.c (pp_double_int): New function.
16652 (dump_generic_node): Call it.
16653 * tree-pretty-print.h (pp_double_int): Declare.
16654 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16655 * tree-ssanames.h (range_info_def): New structure.
16656 (value_range_type): Move definition here.
16657 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16659 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16661 (set_range_info): New function.
16662 (get_range_info): Likewise.
16663 (duplicate_ssa_name_range_info): Likewise.
16664 (duplicate_ssa_name_fn): Check pointer type and call
16665 duplicate_ssa_name_range_info.
16666 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16667 * tree-vrp.c (value_range_type): Remove definition, now in
16669 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16670 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16671 (SSA_NAME_RANGE_INFO): New macro.
16673 2013-09-23 Richard Biener <rguenther@suse.de>
16675 PR tree-optimization/58464
16676 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16677 (phi_trans_add): Change to add conditionally on being not present.
16678 (phi_translate_1): Remove recursion detection here.
16679 (phi_translate): Pre-seed the cache with NULL to catch
16680 recursion here in a more generic way.
16681 (bitmap_find_leader): Adjust comment.
16682 (get_representative_for): Dump value-numbers.
16683 (create_expression_by_pieces): Likewise.
16684 (insert_into_preds_of_block): Likewise.
16686 2013-09-23 Christian Bruel <christian.bruel@st.com>
16689 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16690 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16692 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16695 2013-09-20 Renlin Li <renlin.li@arm.com>
16697 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16699 (aarch64_expand_epilogue): Likewise.
16700 (aarch64_legitimize_reload_address): Likewise.
16702 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16704 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16705 NULL_TREE before pushing them onto the vector. Likewise for labels.
16707 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16709 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16710 comparison operators when -fno-trapping-math is in effect.
16711 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16712 comparison operators in TFmode and assert that unsupported operators
16714 (ia64_print_operand): Likewise.
16716 2013-09-21 Jan Hubicka <jh@suse.cz>
16718 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16719 (sse_typeless_stores): Enable for core
16720 (sse_load0_by_pxor): Likewise.
16721 (four_jump_limit): Disable for core.
16722 (pad_returns): Likewise.
16723 (avoid_vector_decode): Likewise.
16724 (fuse_cmp_and_branch): Enable for cores.
16725 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16727 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16729 PR middle-end/56791
16730 * config/pa/pa.c (pa_option_override): Disable auto increment and
16731 decrement instructions until reload is completed.
16733 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16734 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16735 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16737 2013-09-20 DJ Delorie <dj@redhat.com>
16738 Nick Clifton <nickc@redhat.com>
16740 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16741 (need_to_save): Save bank 0 on interrupts.
16742 (characterize_address): Strip far address wrappers.
16743 (rl78_as_legitimate_address): Likewise.
16744 (transcode_memory_rtx): Likewise.
16745 (rl78_peep_movhi_p): Disable this peephole after devirt.
16746 (rl78_propogate_register_origins): Forget all origins when a
16748 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16749 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16751 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16752 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16753 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16755 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16757 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16759 * config/pa/pa.md: In "scc" insn patterns, change output template to
16760 handle const0_rtx in reg_or_0_operand operands.
16762 2013-09-20 Martin Husemann <martin@NetBSD.org>
16765 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16766 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16768 2013-09-20 Richard Biener <rguenther@suse.de>
16770 PR middle-end/58484
16771 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16772 remembering SSA name version and block index.
16773 (new_scev_info_str): Adjust.
16774 (hash_scev_info): Likewise. Also hash the block index.
16775 (eq_scev_info): Adjust.
16776 (find_var_scev_info): Likewise.
16777 (struct instantiate_cache_entry): Remove.
16778 (struct instantiate_cache_type): Use a htab to map name, block
16780 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16781 (get_instantiated_value_entry): Likewise.
16782 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16783 (instantiate_scev_name): Adjust.
16785 2013-09-20 Jeff Law <law@redhat.com>
16787 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16789 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16791 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16792 Call aarch64_simd_expand_args to update op[argc].
16794 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16796 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16799 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16801 * gengtype.c (file_rules): Added rule for *.cc files.
16802 (get_output_file_with_visibility): Give fatal message when no
16805 2013-09-20 Renlin Li <renlin.li@arm.com>
16807 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16808 (aarch64_expand_epilogue): Likewise.
16809 (aarch64_legitimize_reload_address): Likewise.
16811 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16813 PR middle-end/57748
16814 * expr.c (expand_assignment): Remove misalignp code path.
16816 2013-09-20 Marek Polacek <polacek@redhat.com>
16819 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16820 TYPE_PRECISION. Add asserts.
16822 2013-09-20 Richard Biener <rguenther@suse.de>
16824 PR tree-optimization/58453
16825 * tree-loop-distribution.c (distribute_loop): Apply the cost
16826 model for -ftree-loop-distribute-patterns, too.
16828 2013-09-20 Richard Biener <rguenther@suse.de>
16830 PR middle-end/58473
16831 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16832 make type comparison less strict.
16834 2013-09-20 Alan Modra <amodra@gmail.com>
16836 * configure: Regenerate.
16837 * aclocal.m4: Regenerate.
16839 2013-09-20 Marek Polacek <polacek@redhat.com>
16842 * doc/extend.texi: Document that attribute used is meant to be used
16843 on variables with static storage duration.
16845 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16847 PR tree-optimization/58472
16848 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16849 simd_lane_access set inv_p = false.
16850 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16851 the simduid magic VAR_DECL.
16853 2013-09-19 Jan Hubicka <jh@suse.cz>
16855 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16857 2013-09-17 Jeff Law <law@redhat.com>
16859 * tree-ssa-dom.c (record_temporary_equivalences): New function
16860 split out of dom_opt_dom_walker::after_dom_children.
16861 (dom_opt_dom_walker::thread_across_edge): Move common code
16862 in here from dom_opt_dom_walker::after_dom_children.
16863 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16865 2013-09-19 Jan Hubicka <jh@suse.cz>
16867 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16868 (TARGET_GENERIC): Use PROCESOR_GENERIC
16869 (enum processor_type): Unify generic32 and 64.
16870 * i386.md (cpu): Likewise.
16871 * x86-tune.def (use_leave): Enable for generic32.
16872 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16873 * athlon.md: Change generic64 to generic in all occurences.
16874 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16875 (ix86_target_macros_internal): Likewise.
16876 * driver-i386.c (host_detect_local_cpu): Likewise.
16877 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16879 (generic_memcpy, generic_memset, generic_cost): This one.
16880 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16881 (m_GENERIC32, m_GENERIC64): Remove.
16882 (m_GENERIC): Turn into one flag.
16883 (processor_target): Unify generic tunnings.
16884 (ix86_option_override_internal): Replace generic32/64 by generic.
16885 (ix86_issue_rate): Likewise.
16886 (ix86_adjust_cost): Likewise.
16888 2013-09-19 Jan Hubicka <jh@suse.cz>
16890 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16891 of speculative flag.
16893 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16895 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16896 GOMP_sections_start, even if !exit_reachable.
16898 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16900 * lra-constraints.c (need_for_all_save_p): Use macro
16901 HARD_REGNO_CALL_PART_CLOBBERED.
16902 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16903 set up pseudo conflict hard regs.
16905 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16908 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16911 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16913 PR rtl-optimization/58438
16914 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16915 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16916 from previous subpasses.
16918 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16920 * arm.c (arm_get_frame_offsets): Validate architecture supports
16921 LDRD/STRD before accepting the tuning preference.
16922 (arm_expand_prologue): Likewise.
16923 (arm_expand_epilogue): Likewise.
16925 2013-09-18 Richard Biener <rguenther@suse.de>
16927 PR tree-optimization/58417
16928 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16929 have chrecs with symbols defined in the loop as operands.
16930 (chrec_fold_multiply): Likewise.
16931 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16932 parameters before folding binary operations.
16933 (struct instantiate_cache_entry_hasher): Remove.
16934 (struct instantiate_cache_type): Use a pointer-map.
16935 (instantiate_cache_type::instantiate_cache_type): New function.
16936 (instantiate_cache_type::get): Likewise.
16937 (instantiate_cache_type::set): Likewise.
16938 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16939 (get_instantiated_value_entry): Likewise.
16940 (global_cache): New global.
16941 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16942 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16943 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16944 (instantiate_scev_name): Adjust.
16945 (instantiate_scev): Construct global instead of local cache.
16946 (resolve_mixers): Likewise.
16948 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16949 Paolo Carlini <paolo.carlini@oracle.com>
16952 * doc/implement-cxx.texi: Fix references to the C++ standards.
16954 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16956 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16957 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16958 simd_lane_access drs, update also DR_ALIGNED_TO.
16960 2013-09-18 Marek Polacek <polacek@redhat.com>
16963 * doc/extend.texi: Document no_sanitize_undefined attribute.
16964 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16965 no_sanitize_undefined attribute.
16967 2013-09-18 Nick Clifton <nickc@redhat.com>
16969 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16970 (ASM_DECLARE_FUNCTION_NAME): Define.
16972 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16974 * compare-elim.c (find_comparison_dom_walker): New class
16975 (find_comparisons_in_bb): Rename to
16976 find_comparison_dom_walker::before_dom_children
16977 (find_comparisons): Adjust
16978 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16980 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16981 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16982 (init_walk_dominator_tree): Remove declaration.
16983 (fini_walk_dominator_tree): Remove declaration.
16984 * fwprop.c (single_def_use_dom_walker): New class
16985 (single_def_use_enter_block): Convert to
16986 single_def_use_dom_walker::before_dom_children.
16987 (single_def_use_leave_block): Convert to
16988 single_def_use_dom_walker::after_dom_children.
16989 (build_single_def_use_links): Adjust.
16990 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16992 (find_candidates_in_block): Convert to
16993 find_candidates_dom_walker::before_dom_children.
16994 (execute_strength_reduction): Adjust.
16995 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16996 (sese_dom_walker): New class.
16997 (sese_dom_walker::sese_dom_walker): New constructor.
16998 (sese_dom_walker::~sese_dom_walker): New destructor.
16999 (build_sese_conditions_before): Convert to
17000 sese_dom_walker::before_dom_children.
17001 (build_sese_conditions_after): Convert to
17002 sese_dom_walker::after_dom_children.
17003 (build_poly_scop): Adjust
17004 * tree-into-ssa.c (rewrite_dom_walker): New class
17005 (rewrite_enter_block): Convert to
17006 rewrite_dom_walker::before_dom_children.
17007 (rewrite_leave_block): Convert to
17008 rewrite_dom_walker::after_dom_children.
17009 (rewrite_update_dom_walker): New class.
17010 (rewrite_update_enter_block): Convert to
17011 rewrite_update_dom_walker::before_dom_children.
17012 (rewrite_update_leave_block): Convert to
17013 rewrite_update_dom_walker::after_dom_children.
17014 (rewrite_blocks, rewrite_into_ssa): Adjust.
17015 (mark_def_dom_walker): New class.
17016 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17017 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17018 (mark_def_sites_blocks): Convert to
17019 mark_def_dom_walker::before_dom_children.
17020 (mark_def_site_blocks): Remove.
17021 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17022 (tree_ssa_dominator_optimize): Adjust.
17023 (dom_thread_across_edge): Convert to method
17024 dom_opt_dom_walker::thread_across_edge.
17025 (dom_opt_enter_block): Convert to member function
17026 dom_opt_dom_walker::before_dom_children.
17027 (dom_opt_leave_block): Convert to member function
17028 dom_opt_dom_walker::after_dom_children.
17029 * tree-ssa-dse.c (dse_dom_walker): New class.
17030 (dse_enter_block): Convert to member function
17031 dse_dom_walker::before_dom_children.
17032 (tree_ssa_dse): Adjust.
17033 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17034 (determine_invariantness_stmt): Convert to method
17035 invariantness_dom_walker::before_dom_children.
17036 (determine_invariantness): Remove
17037 (move_computations_dom_walker): New class.
17038 (move_computations_stmt): Convert to method
17039 move_computations_dom_walker::before_dom_children.
17040 (move_computations, tree_ssa_lim): Adjust.
17041 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17042 (nt_init_block): Convert to method
17043 notrappping_dom_walker::before_dom_children.
17044 (nt_fini_block): Convert to method
17045 method nontrapping_dom_walker::after_dom_children.
17046 (get_non_trapping): Adjust.
17047 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17048 (eliminate_bb): Convert to method
17049 eliminate_dom_walker::before_dom_children.
17050 (eliminate_leave_block): Convert to method
17051 eliminate_dom_walker::after_dom_children.
17052 (eliminate): Adjust.
17053 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17054 (strlen_enter_block): Convert to method
17055 strlen_dom_walker::before_dom_children.
17056 (strlen_leave_block): Convert to method
17057 method strlen_dom_walker::after_dom_children.
17058 (tree_ssa_strlen): Adjust.
17059 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17060 (tree_ssa_uncprop): Adjust.
17061 (uncprop_leave_block): Convert to method
17062 uncprop_dom_walker::after_dom_children.
17063 (uncprop_leave_block): Convert to method
17064 uncprop_dom_walker::before_dom_children.
17066 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17068 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17069 branch in same basic block. Check both src and dest of the move insn.
17071 2013-09-17 Nick Clifton <nickc@redhat.com>
17073 * config/rl78/rl78-real.md (bf): New pattern.
17075 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17076 (rl78_print_operand): Do not put a # before a %B.
17077 * config/rl78/rl78.opt: Tweak doc strings.
17079 2013-09-17 DJ Delorie <dj@redhat.com>
17081 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17082 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17083 (rl78_option_override): Likewise, if -mallregs.
17084 (is_virtual_register): Likewise.
17085 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17086 (REGNO_OK_FOR_BASE_P): Likewise.
17087 * config/rl78/rl78.opt (-mallregs): New.
17089 2013-09-17 Nick Clifton <nickc@redhat.com>
17091 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17092 For interrupt functions: save all call clobbered registers if the
17093 interrupt handler is not a leaf function.
17094 (rl78_expand_prologue): Always recompute the frame information.
17095 For interrupt functions: only select bank 0 if one of the bank 0
17096 registers is going to be psuhed.
17098 2013-09-17 DJ Delorie <dj@redhat.com>
17100 * config/rl78/constraints.md: For each W* constraint, rename to C*
17101 and create a W* constraint that checks for an optional ES: prefix
17103 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17104 (es_addr): New. Used to wrap far addresses.
17105 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17106 (rl78_es_base): New.
17107 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17108 wrapped far addresses.
17109 (rl78_print_operand_1): Unwrap far addresses before processing.
17110 (rl78_lo16): Wrap far addresses in unspecs.
17111 (rl78_es_addr): New.
17112 (rl78_es_base): New.
17113 (insn_ok_now): Check for not-yet-wrapped far addresses.
17114 (transcode_memory_rtx): Properly re-wrap far addresses.
17116 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17118 * config/sparc/t-rtems: Add leon3 multilibs.
17120 2013-09-17 Cong Hou <congh@google.com>
17122 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17123 when checking the dot production pattern. The type of rhs operand
17124 of multiply is now checked correctly.
17126 2013-09-17 Jeff Law <law@redhat.com>
17128 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17129 edge implied equivalences into successor phis.
17130 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17131 here from tree-ssa-threadedge.c.
17132 (mark_threaded_blocks): When threading through a joiner, if both
17133 successors of the joiner's clone reach the same block, verify the
17134 PHI arguments are equal. If not, cancel the jump threading request.
17135 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17136 tree-ssa-threadupdate.c
17137 (thread_across_edge): Don't check PHI argument equality when
17138 threading through joiner block here.
17140 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17142 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17143 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17144 (warn_uninit, warn_uninitialized_vars,
17145 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17146 Move to tree-ssa-uninit.c.
17147 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17148 (has_undefined_value_p): New. Pass dependant parts of
17149 ssa_undefined_value_p.
17150 (uninit_undefined_value_p): Use has_undefined_value_p.
17151 (warn_uninit, warn_uninitialized_vars,
17152 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17153 Move from tree-ssa.c.
17154 * tree-ssa.h: Adjust prototypes.
17156 2013-09-17 Jan Hubicka <jh@suse.cz>
17158 PR middle-end/58332
17159 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17160 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17161 FUNCTION_NOT_OPTIMIZED.
17162 * ipa-inline-analysis.c (compute_inline_parameters): Function
17163 not optimized is not inlinable unless it is alwaysinline.
17164 (inline_analyze_function): Force calls in not optimized
17165 function not inlinable.
17167 2013-09-17 Jan Hubicka <jh@suse.cz>
17169 PR middle-end/58329
17170 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17172 * ipa.c (function_and_variable_visibility): Likewise.
17173 * ipa-profile.c (ipa_profile): Likewise.
17175 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17178 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17179 attribute, and don't inline the resolver in this case.
17181 2013-09-17 Teresa Johnson <tejohnson@google.com>
17183 * coverage.c (get_coverage_counts): Add missing newline.
17185 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17187 PR tree-optimization/58088
17188 * fold-const.c (mask_with_trailing_zeros): New function.
17189 (fold_binary_loc): Make sure we don't recurse infinitely
17190 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17191 Use mask_with_trailing_zeros where appropriate.
17193 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17195 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17196 of 'prev' var to get better distance estimation.
17198 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17200 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17201 * tree-inline.c (is_parameter_of): New predicate.
17202 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17203 a parameter has been remapped.
17204 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17205 (optimize_inline_calls): Initialize transform_parameter.
17206 (copy_gimple_seq_and_replace_locals): Likewise.
17207 (tree_function_versioning): Likewise.
17208 (maybe_inline_call_in_expr): Likewise.
17210 2013-09-17 Nick Clifton <nickc@redhat.com>
17212 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17213 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17214 interrupt handlers.
17215 (is_attr_func): New function.
17216 (msp430_is_interrupt_func): New function.
17217 (is_naked_func): New function.
17218 (is_reentrant_func): New function.
17219 (is_critical_func): New function.
17220 (msp430_start_function): Add annotations for function attributes.
17221 (msp430_attr): New function.
17222 (msp430_attribute_table): New.
17223 (msp430_function_section): New function.
17224 (TARGET_ASM_FUNCTION_SECTION): Define.
17225 (msp430_builtin): New enum.
17226 (msp430_init_builtins): New function.
17227 (msp430_builtin_devl): New function.
17228 (msp430_expand_builtin): New function.
17229 (TARGET_INIT_BUILTINS): Define.
17230 (TARGET_EXPAND_BUILTINS): Define.
17231 (TARGET_BUILTIN_DECL): Define.
17232 (msp430_expand_prologue): Add support for naked, interrupt,
17233 critical and reentrant functions.
17234 (msp430_expand_epilogue): Likewise.
17235 (msp430_print_operand): Handle 'O' character.
17236 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17238 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17239 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17240 (pushm): Use a 'n' rather than an 'i' constraint.
17241 (msp_return): Add generation of the interrupt return instruction.
17242 (disable_interrupts): New pattern.
17243 (enable_interrupts): New pattern.
17244 (push_intr_state): New pattern.
17245 (pop_intr_state): New pattern.
17246 (bic_SR): New pattern.
17247 (bis_SR): New pattern.
17248 * doc/extend.texi: Document MSP430 function attributes and builtin
17251 2013-09-17 Richard Biener <rguenther@suse.de>
17253 PR tree-optimization/58432
17254 * tree-loop-distribution.c (tree_loop_distribution): Also
17255 scan PHIs for outside loop uses and seed a partition from them.
17257 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17259 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17260 (restructure_reference): Call backtrace_base_for_ref.
17262 2013-09-17 Alan Modra <amodra@gmail.com>
17265 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17268 2013-09-16 DJ Delorie <dj@redhat.com>
17270 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17271 vregs location for RL78/G10.
17272 (rl78_expand_prologue): Avoid SEL on G10.
17273 (rl78_expand_epilogue): Likewise.
17274 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17275 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17276 __RL78_G10__ when appropriate.
17277 (ASM_SPEC): Pass -mg10 along to the assembler.
17278 * config/rl78/rl78.md (sel_rb): Disable for G10.
17279 * config/rl78/rl78.opt: Add -mg10 option.
17280 * config/rl78/t-rl78: Add -mg10 multilib.
17282 2013-09-16 Xinliang David Li <davidxl@google.com>
17284 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17285 * omp-low.c (omp_max_vf): Ditto.
17286 (expand_omp_simd): Ditto.
17287 * tree-vectorizer.c (vectorize_loops): Ditto.
17288 (gate_vect_slp): Ditto.
17289 (gate_increase_alignment): Ditto.
17290 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17291 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17292 (gate_tree_vectorize): Name change.
17293 (tree_vectorize): Ditto.
17294 (pass_vectorize::gate): Call new function.
17295 (pass_vectorize::execute): Ditto.
17296 * opts.c: O3 default setting change.
17297 (finish_options): Check new flag.
17298 * doc/invoke.texi: Document new flags.
17299 * common.opt: New flags.
17301 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17303 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17304 (Condition Code): Don't reference it.
17305 * doc/tm.texi: Regenerate.
17307 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17309 PR middle-end/58418
17310 * lra-constraints.c (undo_optional_reloads): Consider all optional
17311 reload even if it did not get a hard reg.
17313 2013-09-16 Teresa Johnson <tejohnson@google.com>
17315 * dumpfile.c (dump_loc): Remove newline emission.
17316 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17317 emission to dump_printf_loc calls where missing.
17318 (vect_mark_for_runtime_alias_test): Ditto.
17319 (vect_analyze_data_ref_dependence): Ditto.
17320 (vect_analyze_data_ref_dependences): Ditto.
17321 (vect_slp_analyze_data_ref_dependence): Ditto.
17322 (vect_slp_analyze_data_ref_dependences): Ditto.
17323 (vect_compute_data_ref_alignment): Ditto.
17324 (vect_update_misalignment_for_peel): Ditto.
17325 (vect_verify_datarefs_alignment): Ditto.
17326 (vector_alignment_reachable_p): Ditto.
17327 (vect_get_data_access_cost): Ditto.
17328 (vect_enhance_data_refs_alignment): Ditto.
17329 (vect_find_same_alignment_drs): Ditto.
17330 (vect_analyze_data_refs_alignment): Ditto.
17331 (vect_analyze_group_access): Ditto.
17332 (vect_analyze_data_ref_access): Ditto.
17333 (vect_analyze_data_ref_accesses): Ditto.
17334 (vect_prune_runtime_alias_test_list): Ditto.
17335 (vect_analyze_data_refs): Ditto.
17336 (vect_create_addr_base_for_vector_ref): Ditto.
17337 (vect_create_data_ref_ptr): Ditto.
17338 (vect_grouped_store_supported): Ditto.
17339 (vect_grouped_load_supported): Ditto.
17340 * value-prof.c (check_counter): Ditto.
17341 (check_ic_target): Ditto.
17342 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17343 (vect_recog_widen_mult_pattern): Ditto.
17344 (vect_recog_widen_sum_pattern): Ditto.
17345 (vect_recog_over_widening_pattern): Ditto.
17346 (vect_recog_widen_shift_pattern): Ditto.
17347 (vect_recog_rotate_pattern): Ditto.
17348 (vect_recog_vector_vector_shift_pattern): Ditto.
17349 (vect_recog_divmod_pattern): Ditto.
17350 (vect_recog_mixed_size_cond_pattern): Ditto.
17351 (vect_recog_bool_pattern): Ditto.
17352 (vect_pattern_recog_1): Ditto.
17353 (vect_pattern_recog): Ditto.
17354 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17355 (vect_is_simple_iv_evolution): Ditto.
17356 (vect_analyze_scalar_cycles_1): Ditto.
17357 (vect_get_loop_niters): Ditto.
17358 (vect_analyze_loop_1): Ditto.
17359 (vect_analyze_loop_form): Ditto.
17360 (vect_analyze_loop_operations): Ditto.
17361 (vect_analyze_loop_2): Ditto.
17362 (vect_analyze_loop): Ditto.
17363 (report_vect_op): Ditto.
17364 (vect_is_slp_reduction): Ditto.
17365 (vect_is_simple_reduction_1): Ditto.
17366 (vect_get_known_peeling_cost): Ditto.
17367 (vect_estimate_min_profitable_iters): Ditto.
17368 (vect_model_reduction_cost): Ditto.
17369 (vect_model_induction_cost): Ditto.
17370 (get_initial_def_for_induction): Ditto.
17371 (vect_create_epilog_for_reduction): Ditto.
17372 (vectorizable_reduction): Ditto.
17373 (vectorizable_induction): Ditto.
17374 (vectorizable_live_operation): Ditto.
17375 (vect_loop_kill_debug_uses): Ditto.
17376 (vect_transform_loop): Ditto.
17377 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17378 (vect_stmt_relevant_p): Ditto.
17379 (process_use): Ditto.
17380 (vect_mark_stmts_to_be_vectorized): Ditto.
17381 (vect_model_simple_cost): Ditto.
17382 (vect_model_promotion_demotion_cost): Ditto.
17383 (vect_model_store_cost): Ditto.
17384 (vect_get_store_cost): Ditto.
17385 (vect_model_load_cost): Ditto.
17386 (vect_get_load_cost): Ditto.
17387 (vect_init_vector_1): Ditto.
17388 (vect_get_vec_def_for_operand): Ditto.
17389 (vect_finish_stmt_generation): Ditto.
17390 (vectorizable_call): Ditto.
17391 (vectorizable_conversion): Ditto.
17392 (vectorizable_assignment): Ditto.
17393 (vectorizable_shift): Ditto.
17394 (vectorizable_operation): Ditto.
17395 (vectorizable_store): Ditto.
17396 (vectorizable_load): Ditto.
17397 (vectorizable_condition): Ditto.
17398 (vect_analyze_stmt): Ditto.
17399 (vect_transform_stmt): Ditto.
17400 (vect_is_simple_use): Ditto.
17401 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17402 (vect_can_advance_ivs_p): Ditto.
17403 (vect_update_ivs_after_vectorizer): Ditto.
17404 (vect_do_peeling_for_loop_bound): Ditto.
17405 (vect_gen_niters_for_prolog_loop): Ditto.
17406 (vect_update_inits_of_drs): Ditto.
17407 (vect_create_cond_for_alias_checks): Ditto.
17408 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17409 (vect_build_slp_tree_1): Ditto.
17410 (vect_supported_load_permutation_p): Ditto.
17411 (vect_analyze_slp_instance): Ditto.
17412 (vect_analyze_slp): Ditto.
17413 (vect_make_slp_decision): Ditto.
17414 (vect_detect_hybrid_slp): Ditto.
17415 (vect_bb_vectorization_profitable_p): Ditto.
17416 (vect_slp_analyze_bb_1): Ditto.
17417 (vect_update_slp_costs_according_to_vf): Ditto.
17418 (vect_get_mask_element): Ditto.
17419 (vect_transform_slp_perm_load): Ditto.
17420 (vect_schedule_slp_instance): Ditto.
17421 (vect_schedule_slp): Ditto.
17422 (vect_slp_transform_bb): Ditto.
17423 * profile.c (read_profile_edge_counts): Ditto.
17424 (compute_branch_probabilities): Ditto.
17425 * coverage.c (get_coverage_counts): Ditto.
17427 2013-09-16 Diego Novillo <dnovillo@google.com>
17429 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17431 2013-09-16 Jan Hubicka <jh@suse.cz>
17433 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17434 abstract functions; for static functions check the presence of body.
17436 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17438 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17439 * config/aarch64/aarch64-simd.md
17440 (aarch64_mla_elt<mode>): New.
17441 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17442 (aarch64_mls_elt<mode>): Likewise.
17443 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17444 (aarch64_fma4_elt<mode>): Likewise.
17445 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17446 (aarch64_fma4_elt_to_128v2df): Likewise.
17447 (aarch64_fma4_elt_to_64df): Likewise.
17448 (fnma<mode>4): Likewise.
17449 (aarch64_fnma4_elt<mode>): Likewise.
17450 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17451 (aarch64_fnma4_elt_to_128v2df): Likewise.
17452 (aarch64_fnma4_elt_to_64df): Likewise.
17453 * config/aarch64/iterators.md (VDQSF): New.
17454 * config/aarch64/arm_neon.h
17455 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17456 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17458 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17460 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17461 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17462 (aarch64_mul3_elt_to_128df): Likewise.
17463 (aarch64_mul3_elt_to_64v2df): Likewise.
17464 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17466 (VMUL_CHANGE_NLANES) Likewise.
17469 * config/aarch64/arm_neon.h
17470 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17472 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17474 * config/aarch64/arm_neon.h
17475 (vcvtx_high_f32_f64): Fix parameters.
17477 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17478 Uros Bizjak <ubizjak@gmail.com>
17480 * config/alpha.c: Include tree-ssanames.h.
17482 2013-09-16 Richard Biener <rguenther@suse.de>
17484 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17485 (dot_rdg_1): Handle control_dd.
17486 (create_edge_for_control_dependence): New function.
17487 (create_rdg_edges): Add control dependences if asked for.
17488 (build_rdg): Likewise.
17489 (generate_loops_for_partition): If there are not necessary
17490 control stmts remove all their dependencies.
17491 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17492 (distribute_loop): Pass on control dependences.
17493 (tree_loop_distribution): Compute control dependences and remove
17494 restriction on number of loop nodes.
17496 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17498 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17499 for internal calls.
17501 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17503 * cse.c (try_const_anchors): Punt on CC modes.
17505 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17507 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17509 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17512 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17513 calls to word_mode.
17515 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17518 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17520 (darwin_objc1_section): Likewise.
17521 (darwin_file_end): Emit Image Info section when required.
17523 2013-09-14 Jan Hubicka <jh@suse.cz>
17525 * tree-into-ssa.c (gate_into_ssa): New.
17526 (pass_data_build_ssa): Use it.
17527 * cgraph.h (expand_thunk): Update prototype.
17528 * cgraphunit.c (analyze_function): Expand thunks early.
17529 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17530 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17531 set lowered flag; do not add new function.
17532 (assemble_thunks_and_aliases): Update.
17533 * tree-ssa.c (gate_init_datastructures): New gate.
17534 (pass_data_init_datastructures): Use it.
17536 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17539 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17540 xmm register set described in the psABI.
17542 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17544 * dwarf2out.c (should_emit_struct_debug): Add check
17545 for type_decl variable is not NULL.
17547 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17549 * config.gcc: Use new winnt-c.c target hooks
17550 * config/t-winnt: New file
17551 * config/winnt-c.c: New file
17552 * doc/tm.texi.in: Document new hook
17553 * doc/tm.texi: Regenerated
17555 2013-09-13 Jan Hubicka <jh@suse.cz>
17557 PR middle-end/58094
17558 * ipa-inline.c (check_callers): New function.
17559 (check_caller_edge): Remove.
17560 (want_inline_function_to_all_callers_p): Also permit alises that are
17562 (inline_to_all_callers): Terminate the walk when devirtualization
17563 introduce new calls.
17565 2013-09-13 Jan Hubicka <jh@suse.cz>
17567 * ipa-inline-analysis.c (struct growth_data): Add node.
17568 (do_estimate_growth_1): Fix detection of recursion.
17570 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17572 PR tree-optimization/58392
17573 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17574 to avoid shadowing of outer loop variable. If
17575 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17576 replace_by_duplicate_decl simduid of loops that have it set and
17577 set dest_cfun->has_simduid_loops and/or
17578 dest_cfun->has_force_vect_loops.
17579 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17580 instead of maybe_lookup_decl.
17581 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17582 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17583 call. Copy over force_vect and copy and remap simduid. Set
17584 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17585 (copy_cfg_body): Remove blocks_to_copy argument. Use
17586 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17587 caller. Don't set cfun->has_simduid_loops and/or
17588 cfun->has_force_vect_loops here.
17589 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17591 (expand_call_inline, tree_function_versioning): Adjust copy_body
17594 2013-09-13 Martin Jambor <mjambor@suse.cz>
17597 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17598 the assert if the edge was a speculative one.
17600 2013-09-13 Richard Biener <rguenther@suse.de>
17602 * tree-data-ref.h (known_dependences_p): Move here ...
17603 * tree-loop-distribution.c (known_dependences_p): ... from here.
17604 (dump_rdg_component, debug_rdg_component): Remove.
17605 (dump_rdg): Adjust.
17606 (generate_loops_for_partition): Use gimple_uid instead of
17607 relying on matching stmt visit order.
17608 (rdg_build_partitions): Take starting stmt vector.
17609 (ldist_gen): Merge into ...
17610 (distribute_loop): ... this function. Do not compute starting
17612 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17614 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17616 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17617 Set type attribute correctly. Set predicable_short_it attribute.
17618 (cmpsi_shiftsi): Remove %? from output template.
17620 2013-09-13 Richard Biener <rguenther@suse.de>
17622 * tree-loop-distribution.c (struct rdg_component,
17623 rdg_defs_used_in_other_loops_p, free_rdg_components,
17624 rdg_build_components): Remove.
17625 (stmts_from_loop): Do not record virtual PHIs.
17626 (generate_loops_for_partition): Skip virtual PHIs.
17627 (build_rdg_partition_for_component): Rename to ...
17628 (build_rdg_partition_for_vertex): ... this and adjust.
17629 (rdg_build_partitions): Take a vector of starting vertices
17630 instead of components. Remove unnecessary leftover handling.
17631 (ldist_gen): Do not build components or record other stores.
17632 (distribute_loop): Do not distribute loops containing stmts
17635 2013-09-13 Christian Bruel <christian.bruel@st.com>
17638 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17640 2013-09-13 Kai Tietz <ktietz@redhat.com>
17642 * config.gcc: Separate cases for mingw and cygwin targets,
17643 and add 64-bit cygwin target case.
17645 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17646 dll-export inline-functions.
17647 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17649 2013-09-13 Jeff Law <law@redhat.com>
17651 PR middle-end/58387
17653 2013-09-06 Jeff Law <law@redhat.com>
17655 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17656 edge implied equivalences into successor phis.
17658 2013-09-12 DJ Delorie <dj@redhat.com>
17660 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17663 2013-09-12 Brooks Moses <bmoses@google.com>
17666 * Makefile.in: Do not install driver binaries in $(target)/bin.
17668 2013-09-12 DJ Delorie <dj@redhat.com>
17670 * config/rl78/rl78.opt (mrelax): New.
17671 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17672 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17674 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17676 (rl78_expand_epilogue): Likewise.
17678 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17680 PR middle-end/58335
17681 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17682 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17683 pointer elimination with using remove_reg_equal_offset_note.
17685 2013-09-12 DJ Delorie <dj@redhat.com>
17687 * config/msp430/: New port.
17688 * config.gcc (msp430): Added.
17689 * doc/invoke.texi: Document MSP430 options.
17690 * doc/install.texi: Document msp430-elf
17691 * doc/md.texi: Document msp430-elf
17692 * doc/contrib.texi: Document msp430-elf
17694 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17697 2013-09-12 Martin Jambor <mjambor@suse.cz>
17700 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17701 reference descriptor is NULL.
17702 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17705 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17707 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17708 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17709 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17710 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17711 make_temp_ssa_name): move to tree-ssanames.h
17712 * tree-ssa-alias.h: Move prototype.
17713 * tree-ssa.h: Include tree-ssanames.h.
17714 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17715 * tree-ssanames.h: New. Move items from tree-flow*.h
17716 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17718 2013-09-12 Richard Biener <rguenther@suse.de>
17720 PR tree-optimization/58404
17721 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17722 propagate non-invariant addresses into dereferences wrapped
17723 in component references.
17725 2013-09-12 Richard Biener <rguenther@suse.de>
17727 PR tree-optimization/58402
17728 * passes.def: Move pass_late_warn_uninitialized later.
17730 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17732 * tree-ssa.h: New. Move content from tree-flow.h and
17733 tree-flow-inline.h.
17734 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17735 Move prototypes belonging to tree-ssa.c.
17736 * tree-flow-inline.h (redirect_edge_var_map_def,
17737 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17739 * gimple.h: Adjust prototypes.
17740 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17742 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17743 * tree.h: Move prototype to tree-ssa.h.
17744 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17745 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17746 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17747 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17748 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17749 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17750 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17751 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17752 graphite-blocking.c, graphite-clast-to-gimple.c,
17753 graphite-dependences.c, graphite-interchange.c,
17754 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17755 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17756 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17757 ipa-reference.c, ipa-split.c, ipa-utils.c,
17758 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17759 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17760 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17761 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17762 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17763 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17764 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17765 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17766 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17767 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17768 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17769 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17770 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17771 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17772 value-prof.c, var-tracking.c,
17773 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17775 2013-09-12 Richard Biener <rguenther@suse.de>
17777 PR tree-optimization/58396
17778 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17779 (build_rdg): Take a loop-nest parameter, fix memleaks.
17780 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17782 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17784 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17787 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17789 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17790 The FMA instruction names should have a 'v' prefix.
17792 2013-09-12 Richard Biener <rguenther@suse.de>
17794 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17795 (dot_rdg): Use popen instead of system in optional code.
17796 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17797 (already_processed_vertex_p): Adjust.
17798 (has_anti_or_output_dependence, predecessor_has_mem_write,
17799 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17800 rdg_flag_uses): Remove.
17801 (rdg_flag_vertex): Simplify.
17802 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17804 (build_rdg_partition_for_component): Process the first vertex
17805 of a component only.
17806 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17808 2013-09-12 Alan Modra <amodra@gmail.com>
17810 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17812 2013-09-11 DJ Delorie <dj@redhat.com>
17813 Nick Clifton <nickc@redhat.com>
17815 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17816 (rl78_stack_based_mem): New.
17817 * config/rl78/constraints.md (Iv08): New.
17826 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17828 (movsi): Change from expand to insn-and-split.
17829 (ashrsi3): Clobber AX.
17833 * config/rl78/rl78.md (CC_REG): Fix.
17834 (addsi3): Allow memory and immediate operands.
17835 (addsi3_internal): Split into...
17836 (addsi3_internal_virt): ...new, and ...
17837 (addsi3_internal_real): ...new.
17839 (subsi3_internal_virt): New.
17840 (subsi3_internal_real): New.
17841 (mulsi3): Add memory operand.
17842 (mulsi3_rl78): Likewise.
17843 (mulsi3_g13): Likewise.
17844 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17845 (cbranchqi4_real): Add more constraint options.
17846 (cbranchhi4_real): Expand pattern.
17847 (cbranchhi4_real_signed): New.
17848 (cbranchhi4_real_inverted): New.
17849 (cbranchsi4_real_lt): New.
17850 (cbranchsi4_real_ge): New.
17851 (cbranchsi4_real_signed): New.
17852 (cbranchsi4_real): New.
17854 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17856 (lshrsi3_virt): Likewise.
17857 (ashlsi3_virt): Likewise.
17858 (cbranchqi4_virt_signed): New.
17859 (cbranchhi4_virt_signed): New.
17860 (cbranchsi4_virt): New.
17861 * config/rl78/rl78.c: Whitespace fixes throughout.
17862 (move_elim_pass): New.
17863 (pass_data_rl78_move_elim): New.
17864 (pass_rl78_move_elim): New.
17865 (make_pass_rl78_move_elim): New.
17866 (rl78_devirt_info): Run devirt earlier.
17867 (rl78_move_elim_info): New.
17868 (rl78_asm_file_start): Register it.
17869 (rl78_split_movsi): New.
17870 (rl78_as_legitimate_address): Allow virtual base registers when
17872 (rl78_addr_space_convert): Remove spurious debug stuff.
17873 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17874 (rl78_print_operand): More cases for not printing '#'.
17875 (rl78_expand_compare): Remove most of the logic.
17876 (content_memory): New.
17877 (clear_content_memory): New.
17878 (get_content_index): New.
17879 (get_content_name): New.
17880 (display_content_memory): New.
17881 (update_content): New.
17882 (record_content): New.
17883 (already_contains): New.
17884 (insn_ok_now): Re-recog insns with virtual registers.
17885 (add_postponed_content_update): New.
17886 (process_postponed_content_update): New.
17887 (gen_and_emit_move): New.
17888 (transcode_memory_rtx): Record new location content.
17889 Use gen_and_emit_move.
17890 (force_into_acc): New.
17891 (move_to_acc): Use gen_and_emit_move.
17892 (move_from_acc): Likewise.
17893 (move_acc_to_reg): Likewise.
17894 (move_to_x): Likewise.
17895 (move_to_hl): Likewise.
17896 (move_to_de): Likewise.
17897 (rl78_alloc_physical_registers_op1): Record location content.
17898 (has_constraint): New.
17899 (rl78_alloc_physical_registers_op2): Record location content.
17900 Optimize use of HL.
17901 (rl78_alloc_physical_registers_ro1): Likewise.
17902 (rl78_alloc_physical_registers_cmp): Likewise.
17903 (rl78_alloc_physical_registers_umul): Likewise.
17904 (rl78_alloc_address_registers_macax): New.
17905 (rl78_alloc_physical_registers): Initialize and set location
17906 content memory as needed.
17907 (rl78_reorg): Make sure split2 is called.
17908 (rl78_rtx_costs): New.
17910 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17912 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17913 for (not (neg ...)) and (neg (not ...)) cases.
17915 2013-09-11 Richard Biener <rguenther@suse.de>
17917 PR middle-end/58377
17918 * passes.def: Split critical edges before late uninit warning passes.
17919 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17921 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17923 PR tree-optimization/58385
17924 * fold-const.c (build_range_check): If both low and high are NULL,
17925 use omit_one_operand_loc to preserve exp side-effects.
17927 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17929 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17931 2013-09-11 Richard Biener <rguenther@suse.de>
17933 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17934 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17935 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17936 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17937 stmts_from_loop, known_dependences_p, build_empty_rdg,
17938 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17939 * tree-loop-distribution.c: ... here.
17940 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17941 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17942 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17943 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17944 * tree-loop-distribution.c: ... here.
17945 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17946 (struct partition_s): Add loops member.
17947 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17948 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17949 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17951 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17952 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17953 Sergey Lega <sergey.s.lega@intel.com>
17954 Anna Tikhonova <anna.tikhonova@intel.com>
17955 Ilya Tocar <ilya.tocar@intel.com>
17956 Andrey Turetskiy <andrey.turetskiy@intel.com>
17957 Ilya Verbin <ilya.verbin@intel.com>
17958 Kirill Yukhin <kirill.yukhin@intel.com>
17959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17961 * config/i386/constraints.md (k): New.
17963 * config/i386/i386.c (const regclass_map): Add new mask registers.
17964 (dbx_register_map): Ditto.
17965 (dbx64_register_map): Ditto.
17966 (svr4_dbx_register_map): Ditto.
17967 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17969 (ix86_preferred_reload_class): Disable constants for mask registers.
17970 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17971 (ix86_hard_regno_mode_ok): Support new mask registers.
17972 (x86_order_regs_for_local_alloc): Ditto.
17973 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17974 (FIXED_REGISTERS): Add new mask registers.
17975 (CALL_USED_REGISTERS): Ditto.
17976 (REG_ALLOC_ORDER): Ditto.
17977 (VALID_MASK_REG_MODE): New.
17978 (FIRST_MASK_REG): Ditto.
17979 (LAST_MASK_REG): Ditto.
17980 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17981 (MAYBE_MASK_CLASS_P): New.
17982 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17983 (REG_CLASS_CONTENTS): Ditto.
17984 (MASK_REGNO_P): New.
17985 (ANY_MASK_REG_P): Ditto.
17986 (HI_REGISTER_NAMES): Add new mask registers.
17987 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17988 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17990 (attribute "type"): Add mskmov, msklog.
17991 (attribute "length_immediate"): Support them.
17992 (attribute "memory"): Ditto.
17993 (attribute "prefix_0f"): Ditto.
17994 (*movhi_internal): Support new mask registers.
17995 (*movqi_internal): Ditto.
17996 (define_split): Split out clobber pattern is a logic
17997 insn on mask registers.
17998 (*k<logic><mode>): New.
17999 (*andhi_1): Extend to support mask regs.
18000 (*andqi_1): Extend to support mask regs.
18001 (kandn<mode>): New.
18002 (define_split): Split and-not to and and not if operands
18004 (*<code><mode>_1): Separate HI mode to new pattern...
18005 (*<code>hi_1): This.
18006 (*<code>qi_1): Extend to support mask regs.
18007 (kxnor<mode>): New.
18008 (kortestzhi): Ditto.
18009 (kortestchi): Ditto.
18011 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18012 (*one_cmplhi2_1): ...Here, now with mask registers support.
18013 (*one_cmplqi2_1): Support new mask registers.
18014 (HI/QImode arithmetics splitter): Don't split if mask registers
18016 (HI/QImode not splitter): Ditto.
18017 * config/i386/predicated.md (mask_reg_operand): New.
18018 (general_reg_operand): Ditto.
18020 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18022 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18023 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18025 2013-09-10 Jeff Law <law@redhat.com>
18027 PR tree-optimization/58380
18028 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18029 of threading through a buried loop header.
18031 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18032 return value for single successor case.
18034 2013-09-10 Jan Hubicka <jh@suse.cz>
18036 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18038 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18041 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18042 support conditional execution.
18043 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18045 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18047 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18049 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18050 Check destination too to check move insn.
18051 (undo_optional_reloads): Add check that the original peudo did not
18052 changed its allocation and the optional reload was inherited on last
18053 inheritance pass. Break loop after deciding to keep optional reload.
18054 (lra_undo_inheritance): Add check that inherited pseudo still in
18057 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18059 * config/aarch64/aarch64.md (generic_sched): New.
18060 * config/aarch64/aarch64-generic.md (load): Make conditional
18061 on generic_sched attribute.
18062 (nonload): Likewise.
18064 2013-09-10 Jan Hubicka <jh@suse.cz>
18066 * lto-cgraph.c: Include ipa-utils.h.
18067 (compute_ltrans_boundary): Also add possible targets into the boundary.
18069 2013-09-10 Jan Hubicka <jh@suse.cz>
18071 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18072 VAR_DECL of vtable rather than full expression.
18074 2013-09-10 Jan Hubicka <jh@suse.cz>
18075 Paolo Carlini <paolo.carlini@oracle.com>
18077 * cgraphunit.c (analyze_functions): Save input_location, set it
18078 to UNKNOWN_LOCATION and restore it at the end.
18080 2013-09-10 Martin Jambor <mjambor@suse.cz>
18082 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18083 represented by a thunk.
18085 2013-09-10 Jeff Law <law@redhat.com>
18087 PR tree-optimization/58343
18088 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18089 jump threading requests through loop headers buried in the middle
18090 of a jump threading path.
18092 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18093 in return value/type.
18095 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18097 PR rtl-optimization/58365
18098 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18099 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18102 2013-09-10 Richard Biener <rguenther@suse.de>
18104 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18105 * tree-data-ref.c (create_rdg_vertices): Collect all data
18106 references, signal failure to the caller, use data-ref API.
18107 (build_rdg): Compute data references only once. Maintain lifetime
18108 of data references and data dependences from within RDG.
18109 (free_rdg): Free dependence relations.
18110 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18111 inventing extra dependences.
18112 (distribute_loop): Update for RDG API changes.
18114 2013-09-10 Kai Tietz <ktietz@redhat.com>
18116 * doc/invoke.texi (fms-extensions): Document changed
18117 behavior for ms-abi targets.
18118 * config/i386/i386.c (ix86_option_override_internal):
18119 Set default value of option -fms-extension for ms-abi targets.
18121 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18123 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18125 2013-09-10 Alan Modra <amodra@gmail.com>
18128 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18130 2013-09-10 Alan Modra <amodra@gmail.com>
18132 * config/rs6000/predicates.md (add_cint_operand): New.
18133 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18134 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18135 using add_cint_operand.
18136 (largetoc_high_plus_aix): Likewise.
18138 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18140 PR tree-optimization/58364
18141 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18142 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18143 the current range can't be an unconditional true or false.
18145 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18147 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18149 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18151 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18153 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18156 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18158 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18160 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18161 NO_REGS for immediate that can't be moved directly into FP_REGS.
18163 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18165 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18166 comparison with negated operand.
18167 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18170 2013-09-09 Richard Biener <rguenther@suse.de>
18172 PR middle-end/58326
18173 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18174 of a subloop record all its block as affecting loop-closed SSA form.
18176 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18178 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18179 of an rtx/bitpos pair.
18180 (store_fixed_bit_field): Update accordingly.
18182 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18184 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18186 * builtins.c (expand_errno_check): Likewise.
18187 * dwarf2cfi.c (init_return_column_size): Likewise.
18188 * except.c (sjlj_mark_call_sites): Likewise.
18189 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18190 * lra-constraints.c (emit_inc): Likewise.
18191 * ree.c (combine_set_extension): Likewise.
18192 * regmove.c (fixup_match_2): Likewise.
18193 * reload1.c (inc_for_reload): Likewise.
18195 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18197 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18198 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18199 Use gen_int_mode with the mode of the associated simplify_* call.
18200 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18201 * expmed.c (expand_shift_1): Likewise.
18202 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18203 * loop-iv.c (iv_number_of_iterations): Likewise.
18204 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18205 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18207 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18209 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18210 of the associated expand_* call.
18211 (asan_emit_stack_protection): Likewise.
18212 * builtins.c (round_trampoline_addr): Likewise.
18213 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18214 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18215 (emit_store_flag): Likewise.
18216 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18217 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18219 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18220 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18221 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18222 * modulo-sched.c (generate_prolog_epilog): Likewise.
18223 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18224 (expand_ctz, expand_ffs, expand_unop): Likewise.
18226 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18228 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18229 of the associated gen_rtx_* call.
18230 * caller-save.c (init_caller_save): Likewise.
18231 * combine.c (find_split_point, make_extraction): Likewise.
18232 (make_compound_operation): Likewise.
18233 * dwarf2out.c (mem_loc_descriptor): Likewise.
18234 * explow.c (plus_constant, probe_stack_range): Likewise.
18235 * expmed.c (expand_mult_const): Likewise.
18236 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18237 * reload1.c (init_reload): Likewise.
18238 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18239 * var-tracking.c (adjust_mems): Likewise.
18240 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18241 rather than gen_rtx_fmt_ee.
18243 2013-09-09 Jan Hubicka <jh@suse.cz>
18245 PR middle-end/58294
18246 * value-prof.c (gimple_ic): Copy also abnormal edges.
18248 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18250 * asan.c (asan_shadow_cst): Use gen_int_mode.
18252 2013-09-08 Jan Hubicka <jh@suse.cz>
18254 * ipa-profile.c: Add toplevel comment.
18255 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18256 (contains_hot_call_p): New function.
18257 (ipa_propagate_frequency): Set frequencies based on counts when
18259 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18260 profile; do not tamper with profile after inlining if it is read.
18262 2013-09-08 Jan Hubicka <jh@suse.cz>
18264 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18267 2013-09-08 Jan Hubicka <jh@suse.cz>
18269 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18270 summary generation.
18272 2013-09-08 Jeff Law <law@redhat.com>
18275 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18278 2013-09-08 Andi Kleen <ak@linux.intel.com>
18280 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18282 2013-09-08 Jan Hubicka <jh@suse.cz>
18284 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18286 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18288 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18289 for non-debug insns.
18290 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18291 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18292 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18295 2013-09-08 Jan Hubicka <jh@suse.cz>
18297 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18298 targets and devirtualize to BUILT_IN_UNREACHABLE.
18299 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18300 * ipa.c (walk_polymorphic_call_targets): New function.
18301 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18302 functions; use the new timevar.
18303 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18304 was removed from the program.
18305 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18306 not consider it in the walk when its vtable is dead.
18307 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18309 (devirt_variable_node_removal_hook): New function.
18310 (possible_polymorphic_call_targets): Also register
18311 devirt_variable_node_removal_hook.
18312 (ipa_devirt): Do not do non-speculative devirtualization.
18313 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18315 2013-09-08 Jan Hubicka <jh@suse.cz>
18317 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18318 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18319 varpool_remove_variable_insertion_hook): Declare.
18320 * varpool.c (varpool_node_hook_list): New structure.
18321 (first_varpool_node_removal_hook,
18322 first_varpool_variable_insertion_hook): New variables.
18323 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18324 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18325 varpool_remove_variable_insertion_hook,
18326 varpool_call_variable_insertion_hooks): New functions.
18327 (varpool_remove_node): Use it.
18329 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18332 * diagnostic.c (diagnostic_build_prefix): When s.file is
18333 "<built-in>" don't output line and column numbers.
18335 2013-09-06 Jan Hubicka <jh@suse.cz>
18337 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18338 * lto-streamer-out.c: Stream thunks, too.
18339 * lto-streamer-in.c (input_function): Pop cfun here
18340 (lto_read_body): Instead of here.
18342 2013-09-06 Caroline Tice <cmtice@google.com>
18344 * doc/install.texi: Add documentation for the --enable-vtable-verify
18345 and the --disable-libvtv configure options.
18347 2013-09-06 Jeff Law <law@redhat.com>
18349 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18350 edge implied equivalences into successor phis.
18352 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18354 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18356 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18358 * resource.c (mark_target_live_regs): Compute resources taking
18359 into account if a call is predicated or not.
18361 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18363 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18364 the compiler in the function names.
18366 2013-09-06 Jan Hubicka <jh@suse.cz>
18368 PR middle-end/58094
18369 * ipa-inline.c (has_caller_p): New function.
18370 (want_inline_function_to_all_callers_p): Use it.
18371 (sum_callers, inline_to_all_callers): Break out from ...
18372 (ipa_inline): ... here.
18374 2013-09-06 Jan Hubicka <jh@suse.cz>
18376 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18377 only when AVX is enabled.
18379 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18381 * config/aarch64/aarch64.md
18382 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18383 is fpsimd_<load/store>2.
18384 (load_pair<mode>): Likewise.
18385 (store_pair<mode>): Likewise.
18387 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18389 * config/arm/types.md (type): Add "mrs" type.
18390 * config/aarch64/aarch64.md
18391 (aarch64_load_tp_hard): Make type "mrs".
18392 * config/arm/arm.md
18393 (load_tp_hard): Make type "mrs".
18394 * config/arm/cortex-a15.md: Update with new attributes.
18395 * config/arm/cortex-a5.md: Update with new attributes.
18396 * config/arm/cortex-a53.md: Update with new attributes.
18397 * config/arm/cortex-a7.md: Update with new attributes.
18398 * config/arm/cortex-a8.md: Update with new attributes.
18399 * config/arm/cortex-a9.md: Update with new attributes.
18400 * config/arm/cortex-m4.md: Update with new attributes.
18401 * config/arm/cortex-r4.md: Update with new attributes.
18402 * config/arm/fa526.md: Update with new attributes.
18403 * config/arm/fa606te.md: Update with new attributes.
18404 * config/arm/fa626te.md: Update with new attributes.
18405 * config/arm/fa726te.md: Update with new attributes.
18407 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18409 * config/aarch64/aarch64.md
18410 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18411 (*movtf_aarch64): Likewise.
18412 * config/arm/arm.md
18413 (thumb1_movdi_insn): Use "multiple" for type where more than one
18414 instruction is used for a move.
18415 (*arm32_movhf): Likewise.
18416 (*thumb_movdf_insn): Likewise.
18418 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18420 * config/arm/types.md (type): Rename fcpys to fmov.
18421 * config/arm/vfp.md
18422 (*arm_movsi_vfp): Rename type fcpys as fmov.
18423 (*thumb2_movsi_vfp): Likewise
18424 (*movhf_vfp_neon): Likewise
18425 (*movhf_vfp): Likewise
18426 (*movsf_vfp): Likewise
18427 (*thumb2_movsf_vfp): Likewise
18428 (*movsfcc_vfp): Likewise
18429 (*thumb2_movsfcc_vfp): Likewise
18430 * config/aarch64/aarch64-simd.md
18431 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18432 * config/aarch64/aarch64.md
18433 (*movsi_aarch64): Replace type mov_reg with fmovs.
18434 (*movdi_aarch64): Likewise
18435 (*movsf_aarch64): Likewise
18436 (*movdf_aarch64): Likewise
18438 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18439 * config/arm/iwmmxt.md
18440 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18441 * config/arm/arm1020e.md: Update with new attributes.
18442 * config/arm/cortex-a15-neon.md: Update with new attributes.
18443 * config/arm/cortex-a5.md: Update with new attributes.
18444 * config/arm/cortex-a53.md: Update with new attributes.
18445 * config/arm/cortex-a7.md: Update with new attributes.
18446 * config/arm/cortex-a8-neon.md: Update with new attributes.
18447 * config/arm/cortex-a9.md: Update with new attributes.
18448 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18449 * config/arm/cortex-r4f.md: Update with new attributes.
18450 * config/arm/marvell-pj4.md: Update with new attributes.
18451 * config/arm/vfp11.md: Update with new attributes.
18453 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18455 * config/aarch64/aarch64.md
18456 (*madd<mode>): Fix type attribute.
18457 (*maddsi_uxtw): Likewise.
18458 (*msub<mode>): Likewise.
18459 (*msubsi_uxtw): Likewise.
18460 (<su_optab>maddsidi4): Likewise.
18461 (<su_optab>msubsidi4): Likewise.
18463 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18465 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18466 * config/arm/arm.md (core_cycles): Remove fdiv.
18467 * config/arm/vfp.md:
18468 (*sqrtsf2_vfp): Update for attribute changes.
18469 (*sqrtdf2_vfp): Likewise.
18470 * config/aarch64/aarch64.md:
18471 (sqrt<mode>2): Update for attribute changes.
18472 * config/arm/arm1020e.md: Update with new attributes.
18473 * config/arm/cortex-a15-neon.md: Update with new attributes.
18474 * config/arm/cortex-a5.md: Update with new attributes.
18475 * config/arm/cortex-a53.md: Update with new attributes.
18476 * config/arm/cortex-a7.md: Update with new attributes.
18477 * config/arm/cortex-a8-neon.md: Update with new attributes.
18478 * config/arm/cortex-a9.md: Update with new attributes.
18479 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18480 * config/arm/cortex-r4f.md: Update with new attributes.
18481 * config/arm/marvell-pj4.md: Update with new attributes.
18482 * config/arm/vfp11.md: Update with new attributes.
18484 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18486 * config/arm/types.md
18487 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18488 * config/aarch64/aarch64.md
18489 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18491 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18492 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18493 (float<GPI:mode><GPF:mode>2): Likewise.
18494 * config/arm/vfp.md
18495 (*truncsisf2_vfp): Update with new attributes.
18496 (*truncsidf2_vfp): Likewise.
18497 (fixuns_truncsfsi2): Likewise.
18498 (fixuns_truncdfsi2): Likewise.
18499 (*floatsisf2_vfp): Likewise.
18500 (*floatsidf2_vfp): Likewise.
18501 (floatunssisf2): Likewise.
18502 (floatunssidf2): Likewise.
18503 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18504 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18505 * config/arm/arm1020e.md: Update with new attributes.
18506 * config/arm/cortex-a15-neon.md: Update with new attributes.
18507 * config/arm/cortex-a5.md: Update with new attributes.
18508 * config/arm/cortex-a53.md: Update with new attributes.
18509 * config/arm/cortex-a7.md: Update with new attributes.
18510 * config/arm/cortex-a8-neon.md: Update with new attributes.
18511 * config/arm/cortex-a9.md: Update with new attributes.
18512 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18513 * config/arm/cortex-r4f.md: Update with new attributes.
18514 * config/arm/marvell-pj4.md: Update with new attributes.
18515 * config/arm/vfp11.md: Update with new attributes.
18517 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18519 * config/aarch64/arm_neon.h
18520 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18521 (vqtbx<1,2,3,4><q>_s8): Likewise.
18523 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18525 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18526 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18527 (add<mode>3): Add type attribute.
18528 (add<mode>3): Likewise.
18529 (usadd<mode>3): Likewise.
18530 (ssadd<mode>3): Likewise.
18531 (sub<mode>3): Likewise.
18532 (sub<mode>3): Likewise.
18533 (ussub<mode>3): Likewise.
18534 (sssub<mode>3): Likewise.
18535 (ssmulsa3): Likewise.
18536 (usmulusa3): Likewise.
18537 (arm_usatsihi): Likewise.
18538 * config/arm/vfp.md
18539 (*movdi_vfp): Add types for all instructions.
18540 (*movdi_vfp_cortexa8): Likewise.
18541 (*movhf_vfp_neon): Likewise.
18542 (*movhf_vfp): Likewise.
18543 (*movdf_vfp): Likewise.
18544 (*thumb2_movdf_vfp): Likewise.
18545 (*thumb2_movdfcc_vfp): Likewise.
18546 * config/arm/arm.md: Add type attribute to all insn patterns.
18547 (*thumb1_adddi3): Add type attribute.
18548 (*arm_adddi3): Likewise.
18549 (*adddi_sesidi_di): Likewise.
18550 (*adddi_zesidi_di): Likewise.
18551 (*thumb1_addsi3): Likewise.
18552 (addsi3_compare0): Likewise.
18553 (*addsi3_compare0_scratch): Likewise.
18554 (*compare_negsi_si): Likewise.
18555 (cmpsi2_addneg): Likewise.
18556 (*addsi3_carryin_<optab>): Likewise.
18557 (*addsi3_carryin_alt2_<optab>): Likewise.
18558 (*addsi3_carryin_clobercc_<optab>): Likewise.
18559 (*subsi3_carryin): Likewise.
18560 (*subsi3_carryin_const): Likewise.
18561 (*subsi3_carryin_compare): Likewise.
18562 (*subsi3_carryin_compare_const): Likewise.
18563 (*arm_subdi3): Likewise.
18564 (*thumb_subdi3): Likewise.
18565 (*subdi_di_zesidi): Likewise.
18566 (*subdi_di_sesidi): Likewise.
18567 (*subdi_zesidi_di): Likewise.
18568 (*subdi_sesidi_di): Likewise.
18569 (*subdi_zesidi_ze): Likewise.
18570 (thumb1_subsi3_insn): Likewise.
18571 (*arm_subsi3_insn): Likewise.
18572 (*anddi3_insn): Likewise.
18573 (*anddi_zesidi_di): Likewise.
18574 (*anddi_sesdi_di): Likewise.
18575 (*ne_zeroextracts): Likewise.
18576 (*ne_zeroextracts): Likewise.
18577 (*ite_ne_zeroextr): Likewise.
18578 (*ite_ne_zeroextr): Likewise.
18579 (*anddi_notdi_di): Likewise.
18580 (*anddi_notzesidi): Likewise.
18581 (*anddi_notsesidi): Likewise.
18582 (andsi_notsi_si): Likewise.
18583 (thumb1_bicsi3): Likewise.
18584 (*iordi3_insn): Likewise.
18585 (*iordi_zesidi_di): Likewise.
18586 (*iordi_sesidi_di): Likewise.
18587 (*thumb1_iorsi3_insn): Likewise.
18588 (*xordi3_insn): Likewise.
18589 (*xordi_zesidi_di): Likewise.
18590 (*xordi_sesidi_di): Likewise.
18591 (*arm_xorsi3): Likewise.
18592 (*andsi_iorsi3_no): Likewise.
18593 (*smax_0): Likewise.
18594 (*smax_m1): Likewise.
18595 (*arm_smax_insn): Likewise.
18596 (*smin_0): Likewise.
18597 (*arm_smin_insn): Likewise.
18598 (*arm_umaxsi3): Likewise.
18599 (*arm_uminsi3): Likewise.
18600 (*minmax_arithsi): Likewise.
18601 (*minmax_arithsi_): Likewise.
18602 (*satsi_<SAT:code>): Likewise.
18603 (arm_ashldi3_1bit): Likewise.
18604 (arm_ashrdi3_1bit): Likewise.
18605 (arm_lshrdi3_1bit): Likewise.
18606 (*arm_negdi2): Likewise.
18607 (*thumb1_negdi2): Likewise.
18608 (*arm_negsi2): Likewise.
18609 (*thumb1_negsi2): Likewise.
18610 (*negdi_extendsid): Likewise.
18611 (*negdi_zero_extend): Likewise.
18612 (*arm_abssi2): Likewise.
18613 (*thumb1_abssi2): Likewise.
18614 (*arm_neg_abssi2): Likewise.
18615 (*thumb1_neg_abss): Likewise.
18616 (one_cmpldi2): Likewise.
18617 (extend<mode>di2): Likewise.
18618 (*compareqi_eq0): Likewise.
18619 (*arm_extendhisi2addsi): Likewise.
18620 (*arm_movdi): Likewise.
18621 (*thumb1_movdi_insn): Likewise.
18622 (*arm_movt): Likewise.
18623 (*thumb1_movsi_insn): Likewise.
18624 (pic_add_dot_plus_four): Likewise.
18625 (pic_add_dot_plus_eight): Likewise.
18626 (tls_load_dot_plus_eight): Likewise.
18627 (*thumb1_movhi_insn): Likewise.
18628 (*thumb1_movsf_insn): Likewise.
18629 (*movdf_soft_insn): Likewise.
18630 (*thumb_movdf_insn): Likewise.
18631 (cbranchsi4_insn): Likewise.
18632 (cbranchsi4_scratch): Likewise.
18633 (*negated_cbranchsi4): Likewise.
18634 (*tbit_cbranch): Likewise.
18635 (*tlobits_cbranch): Likewise.
18636 (*tstsi3_cbranch): Likewise.
18637 (*cbranchne_decr1): Likewise.
18638 (*addsi3_cbranch): Likewise.
18639 (*addsi3_cbranch_scratch): Likewise.
18640 (*arm_cmpdi_insn): Likewise.
18641 (*arm_cmpdi_unsig): Likewise.
18642 (*arm_cmpdi_zero): Likewise.
18643 (*thumb_cmpdi_zero): Likewise.
18644 (*deleted_compare): Likewise.
18645 (*mov_scc): Likewise.
18646 (*mov_negscc): Likewise.
18647 (*mov_notscc): Likewise.
18648 (*cstoresi_eq0_thumb1_insn): Likewise.
18649 (cstoresi_nltu_thumb1): Likewise.
18650 (cstoresi_ltu_thu): Likewise.
18651 (thumb1_addsi3_addgeu): Likewise.
18652 (*arm_jump): Likewise.
18653 (*thumb_jump): Likewise.
18654 (*check_arch2): Likewise.
18655 (arm_casesi_internal): Likewise.
18656 (thumb1_casesi_dispatch): Likewise.
18657 (*arm_indirect_jump): Likewise.
18658 (*thumb1_indirect_jump): Likewise.
18660 (*and_scc): Likewise.
18661 (*ior_scc): Likewise.
18662 (*compare_scc): Likewise.
18663 (*cond_move): Likewise.
18664 (*cond_arith): Likewise.
18665 (*cond_sub): Likewise.
18666 (*cmp_ite0): Likewise.
18667 (*cmp_ite1): Likewise.
18668 (*cmp_and): Likewise.
18669 (*cmp_ior): Likewise.
18670 (*ior_scc_scc): Likewise.
18671 (*ior_scc_scc_cmp): Likewise.
18672 (*and_scc_scc): Likewise.
18673 (*and_scc_scc_cmp): Likewise.
18674 (*and_scc_scc_nod): Likewise.
18675 (*negscc): Likewise.
18676 (movcond_addsi): Likewise.
18677 (movcond): Likewise.
18678 (*ifcompare_plus_move): Likewise.
18679 (*if_plus_move): Likewise.
18680 (*ifcompare_move_plus): Likewise.
18681 (*if_move_plus): Likewise.
18682 (*ifcompare_arith_arith): Likewise.
18683 (*if_arith_arith): Likewise.
18684 (*ifcompare_arith_move): Likewise.
18685 (*if_arith_move): Likewise.
18686 (*ifcompare_move_arith): Likewise.
18687 (*if_move_arith): Likewise.
18688 (*ifcompare_move_not): Likewise.
18689 (*if_move_not): Likewise.
18690 (*ifcompare_not_move): Likewise.
18691 (*if_not_move): Likewise.
18692 (*ifcompare_shift_move): Likewise.
18693 (*if_shift_move): Likewise.
18694 (*ifcompare_move_shift): Likewise.
18695 (*if_move_shift): Likewise.
18696 (*ifcompare_shift_shift): Likewise.
18697 (*ifcompare_not_arith): Likewise.
18698 (*ifcompare_arith_not): Likewise.
18699 (*if_arith_not): Likewise.
18700 (*ifcompare_neg_move): Likewise.
18701 (*if_neg_move): Likewise.
18702 (*ifcompare_move_neg): Likewise.
18703 (*if_move_neg): Likewise.
18704 (prologue_thumb1_interwork): Likewise.
18705 (*cond_move_not): Likewise.
18706 (*sign_extract_onebit): Likewise.
18707 (*not_signextract_onebit): Likewise.
18708 (stack_tie): Likewise.
18709 (align_4): Likewise.
18710 (align_8): Likewise.
18711 (consttable_end): Likewise.
18712 (consttable_1): Likewise.
18713 (consttable_2): Likewise.
18714 (consttable_4): Likewise.
18715 (consttable_8): Likewise.
18716 (consttable_16): Likewise.
18717 (*thumb1_tablejump): Likewise.
18718 (prefetch): Likewise.
18719 (force_register_use): Likewise.
18720 (thumb_eh_return): Likewise.
18721 (load_tp_hard): Likewise.
18722 (load_tp_soft): Likewise.
18723 (tlscall): Likewise.
18724 (*arm_movtas_ze): Likewise.
18725 (*arm_rev): Likewise.
18726 (*arm_revsh): Likewise.
18727 (*arm_rev16): Likewise.
18728 * config/arm/thumb2.md
18729 (*thumb2_smaxsi3): Likewise.
18730 (*thumb2_sminsi3): Likewise.
18731 (*thumb32_umaxsi3): Likewise.
18732 (*thumb2_uminsi3): Likewise.
18733 (*thumb2_negdi2): Likewise.
18734 (*thumb2_abssi2): Likewise.
18735 (*thumb2_neg_abss): Likewise.
18736 (*thumb2_movsi_insn): Likewise.
18737 (tls_load_dot_plus_four): Likewise.
18738 (*thumb2_movhi_insn): Likewise.
18739 (*thumb2_mov_scc): Likewise.
18740 (*thumb2_mov_negs): Likewise.
18741 (*thumb2_mov_negs): Likewise.
18742 (*thumb2_mov_nots): Likewise.
18743 (*thumb2_mov_nots): Likewise.
18744 (*thumb2_movsicc_): Likewise.
18745 (*thumb2_movsfcc_soft_insn): Likewise.
18746 (*thumb2_indirect_jump): Likewise.
18747 (*thumb2_and_scc): Likewise.
18748 (*thumb2_ior_scc): Likewise.
18749 (*thumb2_ior_scc_strict_it): Likewise.
18750 (*thumb2_cond_move): Likewise.
18751 (*thumb2_cond_arith): Likewise.
18752 (*thumb2_cond_ari): Likewise.
18753 (*thumb2_cond_sub): Likewise.
18754 (*thumb2_negscc): Likewise.
18755 (*thumb2_movcond): Likewise.
18756 (thumb2_casesi_internal): Likewise.
18757 (thumb2_casesi_internal_pic): Likewise.
18758 (*thumb2_alusi3_short): Likewise.
18759 (*thumb2_mov<mode>_shortim): Likewise.
18760 (*thumb2_addsi_short): Likewise.
18761 (*thumb2_subsi_short): Likewise.
18762 (thumb2_addsi3_compare0): Likewise.
18763 (*thumb2_cbz): Likewise.
18764 (*thumb2_cbnz): Likewise.
18765 (*thumb2_one_cmplsi2_short): Likewise.
18766 (*thumb2_negsi2_short): Likewise.
18767 (*orsi_notsi_si): Likewise.
18768 * config/arm/arm1020e.md: Update with new attributes.
18769 * config/arm/arm1026ejs.md: Update with new attributes.
18770 * config/arm/arm1136jfs.md: Update with new attributes.
18771 * config/arm/arm926ejs.md: Update with new attributes.
18772 * config/arm/cortex-a15.md: Update with new attributes.
18773 * config/arm/cortex-a5.md: Update with new attributes.
18774 * config/arm/cortex-a53.md: Update with new attributes.
18775 * config/arm/cortex-a7.md: Update with new attributes.
18776 * config/arm/cortex-a8.md: Update with new attributes.
18777 * config/arm/cortex-a9.md: Update with new attributes.
18778 * config/arm/cortex-m4.md: Update with new attributes.
18779 * config/arm/cortex-r4.md: Update with new attributes.
18780 * config/arm/fa526.md: Update with new attributes.
18781 * config/arm/fa606te.md: Update with new attributes.
18782 * config/arm/fa626te.md: Update with new attributes.
18783 * config/arm/fa726te.md: Update with new attributes.
18785 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18787 * config/aarch64/aarch64-simd.md
18788 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18789 <vwx> iterator to ensure correct register choice.
18790 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18791 (aarch64_sqdmull_n<mode>): Likewise.
18792 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18793 * config/aarch64/arm_neon.h
18794 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18795 (vml<as><q>_n_<su>16): Likewise.
18796 (vml<as>l_high_lane<q>_<su>16): Likewise.
18797 (vml<as>l_high_n_<su>16): Likewise.
18798 (vml<as>l_lane<q>_<su>16): Likewise.
18799 (vml<as>l_n_<su>16): Likewise.
18800 (vmul<q>_lane<q>_<su>16): Likewise.
18801 (vmul<q>_n_<su>16): Likewise.
18802 (vmull_lane<q>_<su>16): Likewise.
18803 (vmull_n_<su>16): Likewise.
18804 (vmull_high_lane<q>_<su>16): Likewise.
18805 (vmull_high_n_<su>16): Likewise.
18806 (vqrdmulh<q>_n_s16): Likewise.
18808 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18810 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18811 have the correct lane parameter.
18813 2013-09-06 Richard Biener <rguenther@suse.de>
18815 * cfganal.c (control_dependences::~control_dependences):
18816 Properly free all of the vector.
18818 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18821 * config/i386/i386.c (ix86_conditional_register_usage):
18822 Proper initialize extended SSE registers.
18824 2013-09-06 Jan Hubicka <jh@suse.cz>
18826 PR tree-optimization/58311
18827 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18829 2013-09-06 Jan Hubicka <jh@suse.cz>
18831 * Makefile.in (tree-sra.o): Update dependencies.
18832 * tree-sra.c: Include ipa-utils.h
18833 (scan_function): Use recursive_call_p.
18834 (has_caller_p): New function.
18835 (cgraph_for_node_and_aliases): Count also callers of aliases.
18837 2013-09-06 Jan Hubicka <jh@suse.cz>
18839 PR middle-end/58094
18840 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18841 * tree-tailcall.c: Include ipa-utils.h.
18842 (find_tail_calls): Use it.
18843 * ipa-pure-const.c (check_call): Likewise.
18844 * ipa-utils.c (recursive_call_p): New function.
18845 * ipa-utils.h (recursive_call_p): Dclare.
18846 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18847 (symtab_semantically_equivalent_p): New function.
18848 * Makefile.in (tree-tailcall.o): Update dependencies.
18850 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18852 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18853 non-inlinable part.
18855 2013-09-06 Richard Biener <rguenther@suse.de>
18857 * lto-streamer.h (lto_global_var_decls): Remove.
18858 * Makefile.in (OBJS): Remove lto-symtab.o.
18859 (lto-symtab.o): Remove.
18860 (GTFILES): Remove lto-symtab.c
18861 * lto-symtab.c: Move to lto/
18863 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18865 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18866 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18867 (UNSPEC_FPINT_RINT): New constant definitions.
18868 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18869 definition with 2 attributes.
18870 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18871 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18874 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18876 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18877 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18878 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18879 attribute to "z196_alone".
18880 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18883 2013-09-06 Richard Biener <rguenther@suse.de>
18885 * basic-block.h (class control_dependences): New.
18886 * tree-ssa-dce.c (control_dependence_map): Remove.
18888 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18889 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18890 find_pdom, find_control_dependence, find_all_control_dependences):
18892 (mark_control_dependent_edges_necessary,
18893 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18894 tree_dce_done, perform_tree_ssa_dce): Adjust.
18895 * cfganal.c (set_control_dependence_map_bit,
18896 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18897 find_all_control_dependences): Move from tree-ssa-dce.c and
18898 implement as methods of control_dependences class.
18899 (control_dependences::control_dependences): New.
18900 (control_dependences::~control_dependences): Likewise.
18901 (control_dependences::get_edges_dependent_on): Likewise.
18902 (control_dependences::get_edge): Likewise.
18904 2013-09-04 Jan Hubicka <jh@suse.cz>
18906 * tree.c (types_same_for_odr): Drop overactive check.
18907 * ipa-devirt.c (hash_type_name): Likewise.
18909 2013-09-04 Jan Hubicka <jh@suse.cz>
18911 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18912 (analyze_functions): ... here.
18914 2013-09-04 Jan Hubicka <jh@suse.cz>
18916 PR middle-end/58201
18917 * cgraphunit.c (analyze_functions): Clear AUX fields
18918 after processing; initialize assembler name has.
18920 2013-09-05 Jeff Law <law@redhat.com>
18922 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18923 from thread_around_empty_block. Record threading path into PATH.
18924 Recurse if threading through the initial block is successful.
18925 (thread_across_edge): Corresponding changes to slightly simplify.
18927 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18929 * config/aarch64/aarch64.md
18930 (type): Remove frecpe, frecps, frecpx.
18931 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18932 fix to be a TARGET_SIMD instruction.
18933 (aarch64_frecps): Remove.
18934 * config/aarch64/aarch64-simd.md
18935 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18936 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18938 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18939 Sofiane Naci <sofiane.naci@arm.com>
18941 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18942 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18943 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18944 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18945 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18946 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18947 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18948 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18949 into "clz, "rbit". Rename "shift" to "shift_imm".
18950 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18951 changes. Update for attribute changes all occurrences of arlo_* and
18953 * config/arm/arm-fixed.md: Update for attribute changes
18954 all occurrences of arlo_* types.
18955 * config/arm/thumb2.md: Update for attribute changes all occurrences
18957 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18958 (cortexa7_older_only): Likewise.
18959 (cortexa7_younger): Likewise.
18960 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18961 (1020alu_shift_op): Likewise.
18962 (1020alu_shift_reg_op): Likewise.
18963 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18964 (alu_shift_op): Likewise.
18965 (alu_shift_reg_op): Likewise.
18966 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18967 (11_alu_shift_op): Likewise.
18968 (11_alu_shift_reg_op): Likewise.
18969 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18970 (9_alu_shift_reg_op): Likewise.
18971 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18973 (cortex_a15_alu_shift): Likewise.
18974 (cortex_a15_alu_shift_reg): Likewise.
18975 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18977 (cortex_a5_alu_shift): Likewise.
18978 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18980 (cortex_a53_alu_shift): Likewise.
18981 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18983 (cortex_a7_alu_reg): Likewise.
18984 (cortex_a7_alu_shift): Likewise.
18985 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18987 (cortex_a8_alu_shift): Likewise.
18988 (cortex_a8_alu_shift_reg): Likewise.
18989 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18990 (cortex_a9_dp_shift): Likewise.
18991 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18993 * config/arm/cortex-r4.md
18994 (cortex_r4_alu): Update for attribute changes.
18995 (cortex_r4_mov): Likewise.
18996 (cortex_r4_alu_shift_reg): Likewise.
18997 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18998 (526_alu_shift_op): Likewise.
18999 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19000 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19001 (626te_alu_shift_op): Likewise.
19002 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19003 (726te_alu_shift_op): Likewise.
19004 (726te_alu_shift_reg_op): Likewise.
19005 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19006 (mp626_alu_shift_op): Likewise.
19007 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19008 (pj4_alu_conds): Likewise.
19009 (pj4_shift): Likewise.
19010 (pj4_shift_conds): Likewise.
19011 (pj4_alu_shift): Likewise.
19012 (pj4_alu_shift_conds): Likewise.
19013 * config/aarch64/aarch64.md: Update for attribute change
19014 all occurrences of arlo_* and shift* types.
19016 2013-09-05 Mike Stump <mikestump@comcast.net>
19018 * tree.h: Move documentation for tree_function_decl to tree-core.h
19019 with the declaration.
19021 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19024 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19025 looking for widest mode.
19027 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19029 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19031 2013-09-05 Richard Biener <rguenther@suse.de>
19033 PR tree-optimization/58137
19034 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19035 Do not create vectors of pointers.
19036 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19037 types for the components of the vector initializer.
19038 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19039 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19041 2013-09-05 Martin Jambor <mjambor@suse.cz>
19043 * ipa-prop.c (remove_described_reference): Accept missing references,
19044 return false if that hppens, otherwise return true.
19045 (cgraph_node_for_jfunc): New function.
19046 (try_decrement_rdesc_refcount): Likewise.
19047 (try_make_edge_direct_simple_call): Use them.
19048 (ipa_edge_removal_hook): Remove references from rdescs.
19049 (ipa_edge_duplication_hook): Clone rdescs and their references
19050 when the new edge has the same caller as the old one.
19051 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19052 reference before removing any edges.
19054 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19056 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19058 * thumb2.md (thumb2_storewb_parisi): New pattern.
19060 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19062 * config/aarch64/aarch64-option-extensions.def: Add
19063 AARCH64_OPT_EXTENSION of 'crc'.
19064 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19065 (AARCH64_ISA_CRC): Ditto.
19066 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19067 description of the CRC extension.
19069 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19071 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19072 * config/rs6000/linux.h: Ditto.
19073 * alpha/linux.h: Ditto.
19074 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19075 no_c99_libc_has_function.
19076 * config/c6x/uclinux-elf.h: Ditto.
19077 * config/lm32/uclinux-elf.h: Ditto.
19078 * config/m68k/uclinux.h: Ditto.
19079 * config/moxie/uclinux.h: Ditto.
19080 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19081 (crisv32-*-linux*, cris-*-linux*): Ditto.
19082 * config/bfin/bfin.c: Include "tm_p.h".
19084 2013-09-05 Richard Biener <rguenther@suse.de>
19086 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19087 check for a definition without a basic-block.
19089 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19090 Sofiane Naci <sofiane.naci@arm.com>
19092 * config/aarch64/aarch64.md
19093 (*movti_aarch64): Rename r_2_f and f_2_r.
19094 (*movsf_aarch64): Likewise.
19095 (*movdf_aarch64): Likewise.
19096 (*movtf_aarch64): Likewise.
19097 (aarch64_movdi_<mode>low): Likewise.
19098 (aarch64_movdi_<mode>high): Likewise.
19099 (aarch64_mov<mode>high_di): Likewise.
19100 (aarch64_mov<mode>low_di): Likewise.
19101 (aarch64_movtilow_tilow): Likewise.
19102 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19103 values to config/arm/types.md
19104 (attribute "conds"): Update for attribute change.
19105 (anddi3_insn): Likewise.
19106 (iordi3_insn): Likewise.
19107 (xordi3_insn): Likewise.
19108 (one_cmpldi2): Likewise.
19109 * config/arm/types.md (type): Add Neon types.
19110 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19111 use "type" attribute.
19112 (movmisalign<mode>_neon_store): Likewise.
19113 (movmisalign<mode>_neon_load): Likewise.
19114 (vec_set<mode>_internal): Likewise.
19115 (vec_setv2di_internal): Likewise.
19116 (vec_extract<mode>): Likewise.
19117 (vec_extractv2di): Likewise.
19118 (add<mode>3_neon): Likewise.
19119 (adddi3_neon): Likewise.
19120 (sub<mode>3_neon): Likewise.
19121 (subdi3_neon): Likewise.
19122 (mul<mode>3_neon): Likewise.
19123 (mul<mode>3add<mode>_neon): Likewise.
19124 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19125 (fma<VCVTF:mode>4)): Likewise.
19126 (fma<VCVTF:mode>4_intrinsic): Likewise.
19127 (fmsub<VCVTF:mode>4)): Likewise.
19128 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19129 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19130 (ior<mode>3): Likewise.
19131 (and<mode>3): Likewise.
19132 (anddi3_neon): Likewise.
19133 (orn<mode>3_neon): Likewise.
19134 (orndi3_neon): Likewise.
19135 (bic<mode>3_neon): Likewise.
19136 (bicdi3_neon): Likewise.
19137 (xor<mode>3): Likewise.
19138 (one_cmpl<mode>2): Likewise.
19139 (abs<mode>2): Likewise.
19140 (neg<mode>2): Likewise.
19141 (umin<mode>3_neon): Likewise.
19142 (umax<mode>3_neon): Likewise.
19143 (smin<mode>3_neon): Likewise.
19144 (smax<mode>3_neon): Likewise.
19145 (vashl<mode>3): Likewise.
19146 (vashr<mode>3_imm): Likewise.
19147 (vlshr<mode>3_imm): Likewise.
19148 (ashl<mode>3_signed): Likewise.
19149 (ashl<mode>3_unsigned): Likewise.
19150 (neon_load_count): Likewise.
19151 (ashldi3_neon_noclobber): Likewise.
19152 (signed_shift_di3_neon): Likewise.
19153 (unsigned_shift_di3_neon): Likewise.
19154 (ashrdi3_neon_imm_noclobber): Likewise.
19155 (lshrdi3_neon_imm_noclobber): Likewise.
19156 (widen_ssum<mode>3): Likewise.
19157 (widen_usum<mode>3): Likewise.
19158 (quad_halves_<code>v4si): Likewise.
19159 (quad_halves_<code>v4sf): Likewise.
19160 (quad_halves_<code>v8hi): Likewise.
19161 (quad_halves_<code>v16qi): Likewise.
19162 (reduc_splus_v2di): Likewise.
19163 (neon_vpadd_internal<mode>): Likewise.
19164 (neon_vpsmin<mode>): Likewise.
19165 (neon_vpsmax<mode>): Likewise.
19166 (neon_vpumin<mode>): Likewise.
19167 (neon_vpumax<mode>): Likewise.
19168 (ss_add<mode>_neon): Likewise.
19169 (us_add<mode>_neon): Likewise.
19170 (ss_sub<mode>_neon): Likewise.
19171 (us_sub<mode>_neon): Likewise.
19172 (neon_vadd<mode>_unspec): Likewise.
19173 (neon_vaddl<mode>): Likewise.
19174 (neon_vaddw<mode>): Likewise.
19175 (neon_vhadd<mode>): Likewise.
19176 (neon_vqadd<mode>): Likewise.
19177 (neon_vaddhn<mode>): Likewise.
19178 (neon_vmul<mode>): Likewise.
19179 (neon_vmla<mode>): Likewise.
19180 (neon_vmlal<mode>): Likewise.
19181 (neon_vmls<mode>): Likewise.
19182 (neon_vmlsl<mode>): Likewise.
19183 (neon_vqdmulh<mode>): Likewise.
19184 (neon_vqdmlal<mode>): Likewise.
19185 (neon_vqdmlsl<mode>): Likewise.
19186 (neon_vmull<mode>): Likewise.
19187 (neon_vqdmull<mode>): Likewise.
19188 (neon_vsub<mode>_unspec): Likewise.
19189 (neon_vsubl<mode>): Likewise.
19190 (neon_vsubw<mode>): Likewise.
19191 (neon_vqsub<mode>): Likewise.
19192 (neon_vhsub<mode>): Likewise.
19193 (neon_vsubhn<mode>): Likewise.
19194 (neon_vceq<mode>): Likewise.
19195 (neon_vcge<mode>): Likewise.
19196 (neon_vcgeu<mode>): Likewise.
19197 (neon_vcgt<mode>): Likewise.
19198 (neon_vcgtu<mode>): Likewise.
19199 (neon_vcle<mode>): Likewise.
19200 (neon_vclt<mode>): Likewise.
19201 (neon_vcage<mode>): Likewise.
19202 (neon_vcagt<mode>): Likewise.
19203 (neon_vtst<mode>): Likewise.
19204 (neon_vabd<mode>): Likewise.
19205 (neon_vabdl<mode>): Likewise.
19206 (neon_vaba<mode>): Likewise.
19207 (neon_vabal<mode>): Likewise.
19208 (neon_vmax<mode>): Likewise.
19209 (neon_vmin<mode>): Likewise.
19210 (neon_vpaddl<mode>): Likewise.
19211 (neon_vpadal<mode>): Likewise.
19212 (neon_vpmax<mode>): Likewise.
19213 (neon_vpmin<mode>): Likewise.
19214 (neon_vrecps<mode>): Likewise.
19215 (neon_vrsqrts<mode>): Likewise.
19216 (neon_vqabs<mode>): Likewise.
19217 (neon_vqneg<mode>): Likewise.
19218 (neon_vcls<mode>): Likewise.
19219 (clz<mode>2): Likewise.
19220 (popcount<mode>2): Likewise.
19221 (neon_vrecpe): Likewise.
19222 (neon_vrsqrte): Likewise.
19223 (neon_vget_lane<mode>_sext_internal): Likewise.
19224 (neon_vget_lane<mode>_zext_internal): Likewise.
19225 (neon_vdup_n<mode>): Likewise.
19226 (neon_vdup_nv2di): Likewise.
19227 (neon_vdpu_lane<mode>_internal): Likewise.
19228 (neon_vswp<mode>): Likewise.
19229 (float<mode><V_cvtto>2): Likewise.
19230 (floatuns<mode><V_cvtto>2): Likewise.
19231 (fix_trunc<mode><V_cvtto>)2): Likewise
19232 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19233 (neon_vcvt<mode>): Likewise.
19234 (neon_vcvtv4sfv4hf): Likewise.
19235 (neon_vcvtv4hfv4sf): Likewise.
19236 (neon_vcvt_n<mode>): Likewise.
19237 (neon_vmovn<mode>): Likewise.
19238 (neon_vqmovn<mode>): Likewise.
19239 (neon_vqmovun<mode>): Likewise.
19240 (neon_vmovl<mode>): Likewise.
19241 (neon_vmul_lane<mode>): Likewise.
19242 (neon_vmull_lane<mode>): Likewise.
19243 (neon_vqdmull_lane<mode>): Likewise.
19244 (neon_vqdmulh_lane<mode>): Likewise.
19245 (neon_vmla_lane<mode>): Likewise.
19246 (neon_vmlal_lane<mode>): Likewise.
19247 (neon_vqdmlal_lane<mode>): Likewise.
19248 (neon_vmls_lane<mode>): Likewise.
19249 (neon_vmlsl_lane<mode>): Likewise.
19250 (neon_vqdmlsl_lane<mode>): Likewise.
19251 (neon_vext<mode>): Likewise.
19252 (neon_vrev64<mode>): Likewise.
19253 (neon_vrev32<mode>): Likewise.
19254 (neon_vrev16<mode>): Likewise.
19255 (neon_vbsl<mode>_internal): Likewise.
19256 (neon_vshl<mode>): Likewise.
19257 (neon_vqshl<mode>): Likewise.
19258 (neon_vshr_n<mode>): Likewise.
19259 (neon_vshrn_n<mode>): Likewise.
19260 (neon_vqshrn_n<mode>): Likewise.
19261 (neon_vqshrun_n<mode>): Likewise.
19262 (neon_vshl_n<mode>): Likewise.
19263 (neon_vqshl_n<mode>): Likewise.
19264 (neon_vqshlu_n<mode>): Likewise.
19265 (neon_vshll_n<mode>): Likewise.
19266 (neon_vsra_n<mode>): Likewise.
19267 (neon_vsri_n<mode>): Likewise.
19268 (neon_vsli_n<mode>): Likewise.
19269 (neon_vtbl1v8qi): Likewise.
19270 (neon_vtbl2v8qi): Likewise.
19271 (neon_vtbl3v8qi): Likewise.
19272 (neon_vtbl4v8qi): Likewise.
19273 (neon_vtbx1v8qi): Likewise.
19274 (neon_vtbx2v8qi): Likewise.
19275 (neon_vtbx3v8qi): Likewise.
19276 (neon_vtbx4v8qi): Likewise.
19277 (neon_vtrn<mode>_internal): Likewise.
19278 (neon_vzip<mode>_internal): Likewise.
19279 (neon_vuzp<mode>_internal): Likewise.
19280 (neon_vld1<mode>): Likewise.
19281 (neon_vld1_lane<mode>): Likewise.
19282 (neon_vld1_dup<mode>): Likewise.
19283 (neon_vld1_dupv2di): Likewise.
19284 (neon_vst1<mode>): Likewise.
19285 (neon_vst1_lane<mode>): Likewise.
19286 (neon_vld2<mode>): Likewise.
19287 (neon_vld2_lane<mode>): Likewise.
19288 (neon_vld2_dup<mode>): Likewise.
19289 (neon_vst2<mode>): Likewise.
19290 (neon_vst2_lane<mode>): Likewise.
19291 (neon_vld3<mode>): Likewise.
19292 (neon_vld3qa<mode>): Likewise.
19293 (neon_vld3qb<mode>): Likewise.
19294 (neon_vld3_lane<mode>): Likewise.
19295 (neon_vld3_dup<mode>): Likewise.
19296 (neon_vst3<mode>): Likewise.
19297 (neon_vst3qa<mode>): Likewise.
19298 (neon_vst3qb<mode>): Likewise.
19299 (neon_vst3_lane<mode>): Likewise.
19300 (neon_vld4<mode>): Likewise.
19301 (neon_vld4qa<mode>): Likewise.
19302 (neon_vld4qb<mode>): Likewise.
19303 (neon_vld4_lane<mode>): Likewise.
19304 (neon_vld4_dup<mode>): Likewise.
19305 (neon_vst4<mode>): Likewise.
19306 (neon_vst4qa<mode>): Likewise.
19307 (neon_vst4qb<mode>): Likewise.
19308 (neon_vst4_lane<mode>): Likewise.
19309 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19310 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19311 (neon_vec_<US>mult_lo_<mode>): Likewise.
19312 (neon_vec_<US>mult_hi_<mode>): Likewise.
19313 (neon_vec_<US>shiftl_<mode>): Likewise.
19314 (neon_unpack<US>_<mode>): Likewise.
19315 (neon_vec_<US>mult_<mode>): Likewise.
19316 (vec_pack_trunc_<mode>): Likewise.
19317 (neon_vec_pack_trunk_<mode>): Likewise.
19318 (neon_vabd<mode>_2): Likewise.
19319 (neon_vabd<mode>_3): Likewise.
19320 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19321 (thumb2_movsi_vfp): Likewise.
19322 (movdi_vfp): Likewise.
19323 (movdi_vfp_cortexa8): Likewise.
19324 (movhf_vfp_neon): Likewise.
19325 (movhf_vfp): Likewiwse.
19326 (movsf_vfp): Likewiwse.
19327 (thumb2_movsf_vfp): Likewiwse.
19328 (movdf_vfp): Likewise.
19329 (thumb2_movdf_vfp): Likewise.
19330 (movsfcc_vfp): Likewise.
19331 (thumb2_movsfcc_vfp): Likewise.
19332 (movdfcc_vfp): Likewise.
19333 (thumb2_movdfcc_vfp): Likewise.
19334 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19335 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19336 (v10_v2c): Likewise.
19337 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19339 (cortex_a15_neon_int_2): Likewise.
19340 (cortex_a15_neon_int_3): Likewise.
19341 (cortex_a15_neon_int_4): Likewise.
19342 (cortex_a15_neon_int_5): Likewise.
19343 (cortex_a15_neon_vqneg_vqabs): Likewise.
19344 (cortex_a15_neon_vmov): Likewise.
19345 (cortex_a15_neon_vaba): Likewise.
19346 (cortex_a15_neon_vaba_qqq): Likewise.
19347 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19348 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19349 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19350 scalar_64_32_long_scalar): Likewise.
19351 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19352 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19353 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19354 lotype_qdd_64_32_long): Likewise.
19355 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19356 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19357 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19358 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19359 (cortex_a15_neon_shift_1): Likewise.
19360 (cortex_a15_neon_shift_2): Likewise.
19361 (cortex_a15_neon_shift_3): Likewise.
19362 (cortex_a15_neon_vshl_ddd): Likewise.
19363 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19364 (cortex_a15_neon_vsra_vrsra): Likewise.
19365 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19366 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19367 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19368 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19369 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19370 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19371 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19372 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19373 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19374 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19375 (cortex_a15_neon_bp_simple): Likewise.
19376 (cortex_a15_neon_bp_2cycle): Likewise.
19377 (cortex_a15_neon_bp_3cycle): Likewise.
19378 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19379 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19380 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19381 (cortex_a15_neon_vld2_4_regs): Likewise.
19382 (cortex_a15_neon_vld3_vld4): Likewise.
19383 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19384 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19385 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19386 (cortex_a15_neon_vst3_vst4): Likewise.
19387 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19388 (cortex_a15_neon_vld3_vld4_lane" 10
19389 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19390 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19391 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19392 (cortex_a15_neon_ldm_2): Likewise.0
19393 (cortex_a15_neon_stm_2): Likewise.
19394 (cortex_a15_neon_mcr): Likewise.
19395 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19396 (cortex_a15_neon_mrc): Likewise.
19397 (cortex_a15_neon_mrrc): Likewise.
19398 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19400 (cortex_a15_alu_shift): Likewise.
19401 (cortex_a15_alu_shift_reg): Likewise.
19402 (cortex_a15_mult32): Likewise.
19403 (cortex_a15_mult64): Likewise.
19404 (cortex_a15_block): Likewise.
19405 (cortex_a15_branch): Likewise.
19406 (cortex_a15_load1): Likewise.
19407 (cortex_a15_load3): Likewise.
19408 (cortex_a15_store1): Likewise.
19409 (cortex_a15_store3): Likewise.
19410 (cortex_a15_call): Likewise.
19411 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19412 (cortex_a5_f2r): Likewise.
19413 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19415 (cortex_a53_f2r): Likewise.
19416 * config/arm/cortex-a7.md
19417 (cortex_a7_branch): Update for attribute change.
19418 (cortex_a7_call): Likewise.
19419 (cortex_a7_alu_imm): Likewise.
19420 (cortex_a7_alu_reg): Likewise.
19421 (cortex_a7_alu_shift): Likewise.
19422 (cortex_a7_mul): Likewise.
19423 (cortex_a7_load1): Likewise.
19424 (cortex_a7_store1): Likewise.
19425 (cortex_a7_load2): Likewise.
19426 (cortex_a7_store2): Likewise.
19427 (cortex_a7_load3): Likewise.
19428 (cortex_a7_store3): Likewise.
19429 (cortex_a7_load4): Likewise.
19430 (cortex_a7_store4): Likewise.
19431 (cortex_a7_fpalu): Likewise.
19432 (cortex_a7_fconst): Likewise.
19433 (cortex_a7_fpmuls): Likewise.
19434 (cortex_a7_neon_mul): Likewise.
19435 (cortex_a7_fpmacs): Likewise.
19436 (cortex_a7_neon_mla: Likewise.
19437 (cortex_a7_fpmuld: Likewise.
19438 (cortex_a7_fpmacd: Likewise.
19439 (cortex_a7_fpfmad: Likewise.
19440 (cortex_a7_fdivs: Likewise.
19441 (cortex_a7_fdivd: Likewise.
19442 (cortex_a7_r2f: Likewise.
19443 (cortex_a7_f2r: Likewise.
19444 (cortex_a7_f_flags: Likewise.
19445 (cortex_a7_f_loads: Likewise.
19446 (cortex_a7_f_loadd: Likewise.
19447 (cortex_a7_f_stores: Likewise.
19448 (cortex_a7_f_stored: Likewise.
19449 (cortex_a7_neon): Likewise.
19450 * config/arm/cortex-a8-neon.md
19451 (cortex_a8_neon_mrc): Update for attribute change.
19452 (cortex_a8_neon_mrrc): Likewise.
19453 (cortex_a8_neon_int_1): Likewise.
19454 (cortex_a8_neon_int_2): Likewise.
19455 (cortex_a8_neon_int_3): Likewise.
19456 (cortex_a8_neon_int_4): Likewise.
19457 (cortex_a8_neon_int_5): Likewise.
19458 (cortex_a8_neon_vqneg_vqabs): Likewise.
19459 (cortex_a8_neon_vmov): Likewise.
19460 (cortex_a8_neon_vaba): Likewise.
19461 (cortex_a8_neon_vaba_qqq): Likewise.
19462 (cortex_a8_neon_vsma): Likewise.
19463 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19464 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19465 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19466 long_scalar): Likewise.
19467 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19468 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19469 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19470 long_scalar_qdd_64_32_long): Likewise.
19471 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19472 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19473 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19474 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19475 (cortex_a8_neon_shift_1): Likewise.
19476 (cortex_a8_neon_shift_2): Likewise.
19477 (cortex_a8_neon_shift_3): Likewise.
19478 (cortex_a8_neon_vshl_ddd): Likewise.
19479 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19480 (cortex_a8_neon_vsra_vrsra): Likewise.
19481 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19482 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19483 (cortex_a8_neon_fp_vsum): Likewise.
19484 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19485 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19486 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19487 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19488 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19489 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19490 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19491 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19492 (cortex_a8_neon_bp_simple): Likewise.
19493 (cortex_a8_neon_bp_2cycle): Likewise.
19494 (cortex_a8_neon_bp_3cycle): Likewise.
19495 (cortex_a8_neon_ldr): Likewise.
19496 (cortex_a8_neon_str): Likewise.
19497 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19498 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19499 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19500 (cortex_a8_neon_vld2_4_regs): Likewise.
19501 (cortex_a8_neon_vld3_vld4): Likewise.
19502 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19503 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19504 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19505 (cortex_a8_neon_vst3_vst4): Likewise.
19506 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19507 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19508 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19509 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19510 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19511 (cortex_a8_neon_mcr): Likewise.
19512 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19513 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19514 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19516 (ca9_neon_mrrc): Likewise.
19517 (cortex_a9_neon_int_1): Likewise.
19518 (cortex_a9_neon_int_2): Likewise.
19519 (cortex_a9_neon_int_3): Likewise.
19520 (cortex_a9_neon_int_4): Likewise.
19521 (cortex_a9_neon_int_5): Likewise.
19522 (cortex_a9_neon_vqneg_vqabs): Likewise.
19523 (cortex_a9_neon_vmov): Likewise.
19524 (cortex_a9_neon_vaba): Likewise.
19525 (cortex_a9_neon_vaba_qqq): Likewise.
19526 (cortex_a9_neon_vsma): Likewise.
19527 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19528 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19529 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19530 long_scalar): Likewise.
19531 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19532 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19533 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19534 long_scalar_qdd_64_32_long): Likewise.
19535 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19536 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19537 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19538 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19539 (cortex_a9_neon_shift_1): Likewise.
19540 (cortex_a9_neon_shift_2): Likewise.
19541 (cortex_a9_neon_shift_3): Likewise.
19542 (cortex_a9_neon_vshl_ddd): Likewise.
19543 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19544 (cortex_a9_neon_vsra_vrsra): Likewise.
19545 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19546 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19547 (cortex_a9_neon_fp_vsum): Likewise.
19548 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19549 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19550 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19551 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19552 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19553 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19554 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19555 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19556 (cortex_a9_neon_bp_simple): Likewise.
19557 (cortex_a9_neon_bp_2cycle): Likewise.
19558 (cortex_a9_neon_bp_3cycle): Likewise.
19559 (cortex_a9_neon_ldr): Likewise.
19560 (cortex_a9_neon_str): Likewise.
19561 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19562 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19563 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19564 (cortex_a9_neon_vld2_4_regs): Likewise.
19565 (cortex_a9_neon_vld3_vld4): Likewise.
19566 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19567 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19568 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19569 (cortex_a9_neon_vst3_vst4): Likewise.
19570 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19571 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19572 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19573 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19574 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19575 (cortex_a9_neon_mcr): Likewise.
19576 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19577 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19578 (cortex_a9_fps): Likewise.
19579 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19581 (cortex_m4_fmuls): Likewise.
19582 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19584 (cortex_r4_mrc): Likewise.
19585 * config/arm/iterators.md: Update comment referring to neon_type.
19586 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19587 (iwmmxt_movsi_insn): Likewise.
19588 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19590 (pj4_core_to_vfp): Likewise.
19591 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19593 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19594 (vfp_fstore): Likewise.
19595 * doc/md.texi: Change references to neon_type to refer to type.
19597 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19599 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19601 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19603 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19604 lglobl if not weak.
19606 2013-09-04 Easwaran Raman <eraman@google.com>
19608 PR middle-end/57370
19609 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19610 (build_and_add_sum): Use it.
19611 (appears_later_in_bb): Simplify code.
19613 2013-09-04 Teresa Johnson <tejohnson@google.com>
19615 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19617 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19619 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19621 2013-09-04 Jan Hubicka <jh@suse.cz>
19623 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19624 * ipa-devirt.c: Include diganostic.h
19625 (odr_type_d): Add types and types_set.
19626 (hash_type_name): Work for types with vtables during LTO.
19627 (odr_hasher::remove): Fix comment; destroy types_set.
19628 (add_type_duplicate): New function,
19629 (get_odr_type): Use it.
19630 (dump_type_inheritance_graph): Dump type duplicates.
19631 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19633 * tree.c (types_same_for_odr): Give exact answers on types with
19636 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19638 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19639 explaining their differences.
19641 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19643 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19645 2013-09-03 Jeff Law <law@redhat.com>
19647 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19648 when not threading through a joiner block. Pass joiner/no joiner
19649 state to register_jump_thread.
19650 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19651 state from argument rather than implying on path length.
19652 Dump the entire jump thread path into debugging dump.
19653 * tree-flow.h (register_jump_thread): Update prototype.
19655 2013-08-29 Xinliang David Li <davidxl@google.com>
19657 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19658 Remove a trivial gcc_assert.
19660 2013-08-29 Xinliang David Li <davidxl@google.com>
19662 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19663 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19664 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19665 Delay base decl alignment adjustment.
19666 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19667 * tree-vectorizer.h: New data structure.
19668 (set_dr_misalignment): New function.
19669 (dr_misalignment): Ditto.
19670 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19671 (vectorizable_load): Ditto.
19672 (ensure_base_align): New function.
19673 (vectorize_loops): Add dbg_cnt support.
19674 (execute_vect_slp): Ditto.
19675 * dbgcnt.def: New debug counter.
19676 * Makefile: New dependency.
19678 2013-09-03 Meador Inge <meadori@codesourcery.com>
19682 2013-08-30 Meador Inge <meadori@codesourcery.com>
19684 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19686 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19688 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19689 function descriptor.
19691 2013-09-03 Richard Biener <rguenther@suse.de>
19693 * tree-affine.c (add_elt_to_tree): Fix association issue,
19694 avoid useless converts and make sure to always return a
19695 properly typed result.
19697 2013-09-03 Richard Biener <rguenther@suse.de>
19699 PR middle-end/57656
19700 * fold-const.c (negate_expr_p): Fix division case.
19701 (negate_expr): Likewise.
19703 2013-09-03 Richard Biener <rguenther@suse.de>
19706 * tree-streamer-out.c: Include tm.h.
19707 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19709 2013-09-03 Jan Hubicka <jh@suse.cz>
19711 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19713 2013-09-03 Alan Modra <amodra@gmail.com>
19715 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19716 multilibs to big-endian target and vice versa.
19717 * config/rs6000/t-linux64: Use := assignment on all vars.
19718 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19719 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19720 * config/rs6000/t-linux64le: New file.
19721 * config/rs6000/t-linux64bele: New file.
19722 * config/rs6000/t-linux64lebe: New file.
19724 2013-09-02 Jan Hubicka <jh@suse.cz>
19726 * ipa-inline-transform.c (inline_transform): Do not
19727 optimize_inline_calls when not optimizing.
19729 2013-09-02 Jan Hubicka <jh@suse.cz>
19731 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19732 duplicated nodes for assembler names.
19733 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19734 hard registers from assembler name hash.
19736 2013-09-02 Jan Hubicka <jh@suse.cz>
19738 * ipa-split.c (execute_split_functions): Split externally visible
19739 functions called once.
19741 2013-09-02 Martin Jambor <mjambor@suse.cz>
19744 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19745 linked list. When finding the correct duplicate, also consider also
19746 the caller in additon to its inlined_to node.
19748 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19750 * config/aarch64/aarch64-simd-builtins.def
19751 (dup_lane_scalar): Remove.
19752 * config/aarch64/aarch64-simd.md
19753 (aarch64_simd_dup): Add 'w->w' alternative.
19754 (aarch64_dup_lane<mode>): Allow for VALL.
19755 (aarch64_dup_lane_scalar<mode>): Remove.
19756 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19757 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19758 (aarch64_get_lane_unsigned<mode>): Likewise.
19759 (aarch64_get_lane<mode>): Likewise.
19760 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19761 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19762 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19763 (VCON): Change container of V2SF.
19764 (vswap_width_name): Likewise.
19765 * config/aarch64/arm_neon.h
19766 (__aarch64_vdup_lane_any): New.
19767 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19768 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19769 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19771 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19773 PR middle-end/56382
19774 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19775 the source or the destination is a single hard register.
19777 2013-09-02 Richard Biener <rguenther@suse.de>
19779 PR middle-end/57511
19780 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19783 2013-09-02 Richard Biener <rguenther@suse.de>
19785 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19786 arithmetic to sizetype.
19788 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19790 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19791 Find auto-increment use both before and after candidate.
19793 2013-09-02 Marek Polacek <polacek@redhat.com>
19795 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19797 2013-09-01 Jan Hubicka <jh@suse.cz>
19799 * Makefile.in: Add ipa-profile.o
19800 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19801 * cgraph.c (struct cgraph_propagate_frequency_data,
19802 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19803 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19804 * cgraph.h (cgraph_propagate_frequency): Remove.
19805 * ipa-inline-analysis.c: Include ipa-utils.h;
19806 drop duplicated cfgloop.h.
19807 (inline_update_callee_summaries): Update.
19808 * ipa-profile.c: New file.
19809 * ipa-utils.h (ipa_propagate_frequency): Declare.
19810 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19811 data-streamer.h, value-prof.h.
19812 (symtab_remove_unreachable_nodes): Update profile.
19813 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19814 account_time_size, cmp_counts, dump_histogram,
19815 ipa_profile_generate_summary, ipa_profile_write_summary,
19816 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19817 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19818 Move to ipa-profile.c.
19820 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19822 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19824 2013-09-01 Jan Hubicka <jh@suse.cz>
19826 * common.opt (fdevirtualize-speculatively): New function.
19827 * invoke.texi (fdevirtualize-speculatively): Document.
19828 * ipa-devirt.c: Include ipa-inline.h
19829 (likely_target_p): New function.
19830 (ipa_devirt): New function.
19831 (gate_ipa_devirt): New function.
19832 (pass_data_ipa_devirt): New static var.
19833 (pass_ipa_devirt): Likewise.
19834 (make_pass_ipa_devirt): New function.
19835 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19836 (common_handle_option): Disable devirtualization when
19837 value range profiling is available.
19838 * passes.def (pass_ipa_devirt): Add.
19839 * timever.def (TV_IPA_DEVIRT): New timevar.
19840 * tree-pass.h (make_pass_ipa_devirt):
19842 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19844 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19845 include sanitize(undefined).
19847 2013-08-31 Diego Novillo <dnovillo@google.com>
19849 * Makefile.in (TREE_CORE_H): Define.
19851 (GTFILES): Add tree-core.h.
19852 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19854 * tree-core.h: New file.
19855 Move all data structures, enum, typedefs, global
19856 declarations and constants from ...
19857 * tree.h: ... here.
19859 2013-08-31 Jan Hubicka <jh@suse.cz>
19861 * bulitins.c (expand_builtin): Do not early exit for gcov
19862 instrumented functions.
19864 2013-08-31 Marek Polacek <polacek@redhat.com>
19866 * ubsan.c: Include tm_p.h.
19868 2013-08-31 Jan Hubicka <jh@suse.cz>
19870 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19873 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19874 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19875 * tree-cfg.c (verify_gimple_label): ... here.
19876 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19877 (ipa_merge_profiles): New function.
19878 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19879 (lto_input_function_body): Likewise.
19880 * ipa-utils.h (ipa_merge_profiles): Declare.
19881 * lto-streamer.h (lto_input_function_body): Update prototype.
19882 (emit_label_in_global_context_p): Remove.
19883 * lto-symtab.c: Include ipa-utils.h
19884 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19886 2013-08-31 Jan Hubicka <jh@suse.cz>
19888 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19890 2013-08-31 Jan Hubicka <jh@suse.cz>
19892 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19894 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19896 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19897 "cmp" RTX before signed_comparison_operator check to account
19898 for "code" changes.
19900 2013-08-30 Jan Hubicka <jh@suse.cz>
19902 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19903 (detect_type_change_1): Rename to ...
19904 (detect_type_change): ... this one; early return on non-polymorphic
19906 (detect_type_change_ssa): Add comp_type parameter; update
19907 use of detect_type_change.
19908 (compute_complex_assign_jump_func): Add param_type parameter;
19909 update use of detect_type_change_ssa.
19910 (compute_complex_ancestor_jump_func): Likewise.
19911 (ipa_get_callee_param_type): New function.
19912 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19913 update calls to the jump function computation functions.
19915 2013-08-30 Teresa Johnson <tejohnson@google.com>
19916 Steven Bosscher <steven@gcc.gnu.org>
19918 * cfgrtl.c (fixup_new_cold_bb): New routine.
19919 (commit_edge_insertions): Invoke fixup_partitions.
19920 (find_partition_fixes): New routine.
19921 (fixup_partitions): Ditto.
19922 (verify_hot_cold_block_grouping): Update comments.
19923 (rtl_verify_edges): Invoke find_partition_fixes.
19924 (rtl_verify_bb_pointers): Update comments.
19925 (rtl_verify_bb_layout): Ditto.
19926 * basic-block.h (probably_never_executed_edge_p): Declare.
19927 (fixup_partitions): Ditto.
19928 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19929 * bb-reorder.c (sanitize_hot_paths): New function.
19930 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19931 sanitize_hot_paths.
19932 * predict.c (probably_never_executed_edge_p): New routine.
19933 * cfg.c (check_bb_profile): Add partition insanity warnings.
19935 2013-08-30 Meador Inge <meadori@codesourcery.com>
19937 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19939 2013-08-30 Marek Polacek <polacek@redhat.com>
19941 * Makefile.in (ubsan.o): Add.
19942 (c-family/c-ubsan.o): Add.
19943 (builtins.o): Add ubsan.h dependency.
19944 * ubsan.h: New file.
19945 * ubsan.c: New file.
19946 * common.opt: Add -fsanitize=undefined option.
19947 (flag_sanitize): Add variable.
19948 (fsanitize=): Add option. Add Driver.
19949 (fsanitize=thread): Remove option.
19950 (fsanitize=address): Likewise.
19951 (static-libubsan): New option.
19952 * doc/invoke.texi: Document the new flag and -static-libubsan.
19953 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19954 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19955 * builtin-attrs.def (ATTR_COLD): Define.
19956 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19957 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19958 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19959 * flag-types.h (sanitize_code): New enum.
19960 * opts.c (common_handle_option): Parse command line arguments
19961 of -fsanitize=. Add -fsanitize=unreachable option.
19962 * varasm.c (get_variable_section): Adjust.
19963 (assemble_noswitch_variable): Likewise.
19964 (assemble_variable): Likewise.
19965 (output_constant_def_contents): Likewise.
19966 (categorize_decl_for_section): Likewise.
19967 (place_block_symbol): Likewise.
19968 (output_object_block): Likewise.
19969 * builtins.def: Likewise.
19970 * toplev.c (compile_file): Likewise.
19971 (process_options): Likewise.
19972 * cppbuiltin.c: Likewise.
19973 * tsan.c (tsan_pass): Likewise.
19974 (tsan_gate): Likewise.
19975 (tsan_gate_O0): Likewise.
19976 * cfgexpand.c (partition_stack_vars): Likewise.
19977 (expand_stack_vars): Likewise.
19978 (defer_stack_allocation): Likewise.
19979 (expand_used_vars): Likewise.
19980 * cfgcleanup.c (old_insns_match_p): Likewise.
19981 * asan.c (asan_finish_file): Likewise.
19982 (asan_instrument): Likewise.
19983 (gate_asan): Likewise.
19984 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19985 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19986 (asan_global_struct): Use pointer_sized_int_node instead
19987 calling build_nonstandard_integer_type.
19988 (initialize_sanitizer_builtins): Likewise.
19989 (asan_finish_file): Likewise.
19990 * gcc.c: Document %{%:function(args):X}.
19991 (static_spec_functions): Add sanitize.
19992 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19993 store funcval != NULL there.
19994 (do_spec_1): Adjust handle_spec_function caller.
19995 (handle_braces): Allow %:function(args) as condition.
19996 (sanitize_spec_function): New function.
19997 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19998 (LIBUBSAN_SPEC): Likewise.
19999 (LIBUBSAN_EARLY_SPEC): Likewise.
20000 (SANITIZER_SPEC): Handle libubsan.
20001 (SANITIZER_EARLY_SPEC): Likewise.
20002 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20003 instead of fsanitize=address.
20004 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20005 instead of fsanitize=address*.
20006 * builtins.c: Include ubsan.h.
20007 (fold_builtin_0): Instrument __builtin_unreachable.
20008 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20009 instead of flag_asan.
20010 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20011 (pointer_sized_int_node): Define.
20012 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20014 2013-08-30 Mike Stump <mikestump@comcast.net>
20016 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20019 2013-08-29 Jan Hubicka <jh@suse.cz>
20021 * cgraph.c (cgraph_function_body_availability): Handle weakref
20023 * passes.def: Remove pass_fixup_cfg.
20024 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20025 track when we need to remove functions.
20026 (gate_ipa_inline): Execute inlining always; add comment why.
20027 (pass_data_ipa_inline): Remove TODO_remove_functions.
20028 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20029 do not produce summaries.
20030 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20031 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20032 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20033 constant pool and vtable.
20035 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20037 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20038 New arm_neon.h's internal macros to specify 64-bit constants.
20039 Avoid using stdint.h's macros.
20041 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20043 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20044 before applying REG_P.
20046 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20048 PR tree-optimization/58277
20049 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20050 after seeing too many stmts with vdef in between dombb and current
20051 bb, invalidate everything.
20053 2013-08-30 Richard Biener <rguenther@suse.de>
20055 * fold-const.c (fold_single_bit_test): Fix overflow test.
20057 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20059 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20060 and which can live in a register, always retrieve the value on entry.
20061 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20062 passed by invisible reference specially.
20063 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20064 (vt_add_function_parameter): Correctly deal with a parameter passed by
20065 invisible reference.
20067 2013-08-30 Jan Hubicka <jh@suse.cz>
20069 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20071 2013-08-30 Richard Biener <rguenther@suse.de>
20073 PR tree-optimization/58228
20074 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20075 allow invariant loads in nested loop vectorization.
20077 2013-08-30 Richard Biener <rguenther@suse.de>
20079 PR tree-optimization/58223
20080 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20081 (has_anti_or_output_dependence): ... this and adjust to also
20082 look for output dependences.
20083 (mark_nodes_having_upstream_mem_writes): Adjust.
20084 (rdg_flag_uses): Likewise.
20086 2013-08-30 Richard Biener <rguenther@suse.de>
20088 PR tree-optimization/58010
20089 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20090 assert that we have a loop-closed PHI.
20092 2013-08-29 Jan Hubicka <jh@suse.cz>
20094 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20095 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20096 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20097 (lto_free_function_in_decl_state_for_node): New function.
20099 2013-08-29 Xinliang David Li <davidxl@google.com>
20101 * loop-unroll.c (report_unroll_peel): Minor message change.
20102 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20103 Emit alignment peeling message with default -fopt-info.
20104 (vect_loop_versioning): Emit loop version info message.
20105 * tree-vectorizer.c (vectorize_loops): Minor message change.
20106 (execute_vect_slp): Ditto.
20108 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20110 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20111 of the clone from the DECL_NAME of the original function.
20113 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20115 * passes.c (register_pass): Add overload.
20116 * tree-pass.h (register_pass): Forward declare it. Add comment.
20118 2013-08-29 Jan Hubicka <jh@suse.cz>
20120 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20121 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20122 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20123 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20124 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20125 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20126 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20127 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20129 2013-08-29 Teresa Johnson <tejohnson@google.com>
20131 * dumpfile.c (dump_loc): Output column number.
20132 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20133 * doc/invoke.texi: Document optall -fopt-info flag.
20134 * profile.c (read_profile_edge_counts): Use new dump framework.
20135 (compute_branch_probabilities): Ditto.
20136 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20137 when pass not in any opt group.
20138 * pass_manager.h (pass_manager::get_pass_profile): New method.
20139 * value-prof.c (check_counter): Use new dump framework.
20140 (check_ic_target): Ditto.
20141 * coverage.c (get_coverage_counts): Ditto.
20142 (coverage_init): Setup new dump framework.
20144 2013-08-29 Richard Biener <rguenther@suse.de>
20146 PR tree-optimization/58246
20147 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20148 handle the dominance check inside a basic-block.
20150 2013-08-29 Richard Biener <rguenther@suse.de>
20152 PR middle-end/57287
20153 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20154 of default defs that appear in abnormal PHI nodes.
20156 2013-08-29 Richard Biener <rguenther@suse.de>
20158 PR tree-optimization/57685
20159 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20160 single-use operands to avoid exponential complexity.
20162 2013-08-28 Dehao Chen <dehao@google.com>
20164 * ipa-inline.c (edge_badness): Fix integer underflow.
20166 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20168 * gtm-builtins.def (_ITM_free): Declare leaf.
20170 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20173 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20174 (*tls_local_dynamic_base_64_largepic): Likewise.
20175 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20176 Remove predicate from call operand.
20177 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20178 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20180 2013-08-28 Jeff Law <law@redhat.com>
20182 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20183 checks for the number of predecessors and successors allowed.
20184 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20185 which require copying a joiner block if there is a request which
20186 is a subpath that requires no joiner block copying.
20188 2013-08-28 Jan Hubicka <jh@suse.cz>
20190 * lto-streamer-out.c (DFS_write_tree_body): Drop
20191 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20192 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20193 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20194 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20195 Do not read DECL_ERROR_ISSUED.
20196 (unpack_ts_decl_with_vis_value_fields): Do not read
20198 (lto_input_ts_binfo_tree_pointers): Do not read
20199 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20200 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20201 write DECL_ERROR_ISSUED..
20202 (pack_ts_decl_with_vis_value_fields): Do not write
20204 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20205 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20206 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20207 * tree.h (tree_decl_common): Update comment.
20208 (DECL_ERROR_ISSUED): Remove.
20210 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20212 PR middle-end/58257
20213 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20215 2013-08-28 Jan Hubicka <jh@suse.cz>
20217 * builtins.def (free): Declare leaf.
20219 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20221 * gdbhooks.py: New.
20222 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20223 * configure: Regenerate.
20225 2013-08-27 Martin Jambor <mjambor@suse.cz>
20227 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20228 (ipa_ancestor_jf_data): Likewise.
20229 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20230 (ipa_get_jf_pass_through_type_preserved): New function.
20231 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20232 (ipa_get_jf_ancestor_type_preserved): New function.
20233 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20234 (ipa_get_jf_ancestor_result): Likewise.
20235 (propagate_vals_accross_pass_through): Use
20236 ipa_get_jf_pass_through_result to do all the value mappings.
20237 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20238 type_preserved flag.
20239 (ipa_set_jf_cst_copy): New function.
20240 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20241 (ipa_set_jf_arith_pass_through): Likewise.
20242 (ipa_set_ancestor_jf): Likewise.
20243 (compute_complex_assign_jump_func): Set type_preserved instead of
20245 (ipa_compute_jump_functions_for_edge): Likewise.
20246 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20247 (update_jump_functions_after_inlining): Update type_preserved.
20248 Explicitely create jump functions when combining one with pass_through.
20249 (ipa_write_jump_function): Stream the type_preserved flags.
20250 (ipa_read_jump_function): Likewise.
20252 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20253 Aldy Hernandez <aldyh@redhat.com>
20255 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20256 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20257 * function.h (struct function): Add has_force_vect_loops and
20259 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20260 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20262 * gimple.def: Update CLAUSES comments.
20263 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20264 (gimple_build_omp_for): Add argument to prototype.
20265 (gimple_omp_for_kind): New.
20266 (gimple_omp_for_set_kind): New.
20267 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20268 GOVD_DATA_SHARE_CLASS.
20269 (enum omp_region_type): Add ORT_SIMD.
20270 (gimple_add_tmp_var): Handle ORT_SIMD.
20271 (gimplify_var_or_parm_decl): Same.
20272 (is_gimple_stmt): Same.
20273 (omp_firstprivatize_variable): Same.
20274 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20275 (omp_notice_variable): Handle ORT_SIMD.
20276 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20277 (omp_check_private): Handle ORT_SIMD.
20278 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20279 OMP_CLAUSE_SAFELEN.
20280 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20281 Handle OMP_CLAUSE_LASTPRIVATE.
20282 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20283 OMP_CLAUSE_SAFELEN.
20284 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20285 (gimplify_expr): Handle OMP_SIMD.
20286 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20287 (expand_GOMP_SIMD_VF): New.
20288 (expand_GOMP_SIMD_LAST_LANE): New.
20289 * internal-fn.def (GOMP_SIMD_LANE): New.
20290 (GOMP_SIMD_VF): New.
20291 (GOMP_SIMD_LAST_LANE): New.
20292 * omp-low.c: Include target.h.
20293 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20294 OMP_CLAUSE_SAFELEN.
20295 (check_omp_nesting_restrictions): Same.
20297 (lower_rec_simd_input_clauses): New.
20298 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20300 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20301 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20302 (expand_omp_build_assign): New.
20303 (expand_omp_for_init_counts): New.
20304 (expand_omp_for_init_vars): New.
20305 (extract_omp_for_update_vars): New.
20306 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20307 and rewrite accordingly.
20308 (expand_omp_simd): New.
20309 (expand_omp_for): Use expand_omp_simd.
20310 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20311 (lower_omp_for): Do not lower the body.
20312 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20313 in their own loops.
20314 * tree-flow.h (find_omp_clause): Remove prototype.
20315 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20316 forcing vectorization of the loop, or if flag_tree_vectorize.
20317 (gate_tree_if_conversion): Similarly.
20318 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20319 gimple_build_omp_for.
20320 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20321 * tree-parloops (create_parallel_loop): Pass kind argument to
20322 gimple_build_omp_for.
20323 * tree-pretty-print.c (dump_omp_clause): Add cases for
20324 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20325 OMP_CLAUSE__SIMDUID_.
20326 (dump_generic_node): Handle OMP_SIMD.
20327 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20328 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20329 unroll OMP_SIMD loops here.
20330 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20331 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20333 (vect_analyze_data_refs): Handle simd loops.
20334 * tree-vect-loop.c (vectorizable_live_operation): Handle
20336 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20337 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20338 (vectorizable_load): Same.
20339 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20340 (struct simduid_to_vf): New.
20341 (simduid_to_vf::hash): New.
20342 (simduid_to-vf::equal): New.
20343 (struct simd_array_to_simduid): New.
20344 (simd_array_to_simduid::hash): New.
20345 (simd_array_to_simduid::equal): New.
20346 (adjust_simduid_builtins): New.
20347 (struct note_simd_array_uses_struct): New.
20348 (note_simd_array_uses_cb): New.
20349 (note_simd_array_uses): New.
20350 (vectorize_loops): Handle simd hints and adjust simd builtins
20352 * tree-vectorizer.h (struct _stmt_vec_info): Add
20353 simd_lane_access_p field.
20354 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20355 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20356 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20357 (omp_clause_code_name): Same.
20358 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20359 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20360 * tree.def (OMP_SIMD): New entry.
20361 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20362 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20363 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20364 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20365 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20366 (OMP_CLAUSE_LINEAR_STEP): New.
20367 (OMP_CLAUSE_SAFELEN_EXPR): New.
20368 (OMP_CLAUSE__SIMDUID__DECL): New.
20369 (find_omp_clause): New prototype.
20371 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20373 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20374 Haswell processor detection.
20376 2013-08-27 Christian Widmer <shadow@umbrox.de>
20379 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20380 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20381 AVX2 capable processors.
20383 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20385 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20386 of vget_low_* with implementations in terms of other intrinsics.
20388 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20390 PR middle-end/57219
20391 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20392 values to -1, 0 and 1.
20394 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20396 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20397 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20398 (<optab><mode>3_insn): Remove.
20399 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20400 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20401 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20402 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20403 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20404 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20405 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20406 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20407 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20408 (ror<mode>3_insn): Likewise.
20409 * config/aarch64/predicates.md (aarch64_simd_register): New.
20411 2013-08-27 Richard Biener <rguenther@suse.de>
20413 PR tree-optimization/57521
20414 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20415 one edge is non-critical.
20416 (find_phi_replacement_condition): Make sure to use a non-critical
20417 edge. Cleanup and remove old bug workarounds.
20418 (bb_postdominates_preds): Remove.
20419 (if_convertible_loop_p_1): Do not compute post-dominators.
20420 (combine_blocks): Do not free post-dominators.
20421 (main_tree_if_conversion): Likewise.
20422 (pass_data_if_conversion): Add TODO_verify_ssa.
20424 2013-08-27 DJ Delorie <dj@redhat.com>
20426 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20428 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20430 * function.c (assign_parm_find_data_types): Set passed_mode and
20431 nominal_mode to the TYPE_MODE of nominal_type for the built
20432 pointer type in case of the struct-pass-by-reference.
20434 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20436 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20437 (UINT16_TYPE): Change default to "unsigned int".
20439 * config/avr/avr.opt (mfract-convert-truncate): New option.
20440 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20441 is set, round negative fractional integers according to n1169
20442 when converting to integer types.
20444 2013-08-26 Jan Hubicka <jh@suse.cz>
20446 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20447 methods can not be called indirectly when their address is not taken.
20449 2013-08-26 Jan Hubicka <jh@suse.cz>
20451 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20454 2013-08-26 Jan Hubicka <jh@suse.cz>
20456 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20459 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20461 * reload.c (find_valid_class): Allow classes that do not include
20462 FIRST_PSEUDO_REGISTER - 1.
20464 2013-08-26 Jan Hubicka <jh@suse.cz>
20466 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20467 fix edge count/frequency when speculation failed; fix type check
20468 for the direct call.
20470 2013-08-26 Jan Hubicka <jh@suse.cz>
20472 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20474 2013-08-26 Jan Hubicka <jh@suse.cz>
20476 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20477 to be changed by edge redirection.
20479 2013-08-26 Jan Hubicka <jh@suse.cz>
20481 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20482 formating; add sanity check.
20483 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20484 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20485 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20486 (resolve_noninline_speculation): Update callee keys, too.
20488 2013-08-26 Jan Hubicka <jh@suse.cz>
20490 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20491 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20493 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20495 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20498 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20500 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20501 (x86_64_elf_select_section): Ditto.
20502 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20504 (ix86_pass_by_reference): Ditto.
20505 (output_set_got): Ditto.
20506 (ix86_unary_operator_ok): Ditto.
20507 (ix86_expand_builtin): Ditto.
20509 2013-08-23 Jan Hubicka <jh@suse.cz>
20511 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20513 2013-08-23 Jan Hubicka <jh@suse.cz>
20515 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20516 (tree_decl_with_vis): Add FINAL field.
20518 2013-08-23 Jeff Law <law@redhat.com>
20520 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20521 the debugging dump when the expression is fully redundant.
20523 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20525 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20526 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20527 * pretty-print.c (pp_formatted_text_data): Likewise.
20528 (pp_write_text_to_stream): Likewise.
20529 (pp_write_text_as_dot_label_to_stream): Likewise.
20530 (pp_append_r): Likewise.
20531 (pp_format): Likewise.
20532 (pp_flush): Likewise.
20533 (pp_clear_output_area): Likewise.
20534 (pp_append_text): Likewise.
20535 (pp_formatted_text): Likewise.
20536 (pp_remaining_character_count_for_line): Likewise.
20537 (pp_newline): Likewise.
20538 (pp_character): Likewise.
20539 (output_buffer::~output_buffer): Define.
20540 (pretty_printer::~pretty_printer): Destruct output buffer.
20541 * pretty-print.h (output_buffer::~output_buffer): Declare.
20542 (pretty_printer::~pretty_printer): Declare virtual.
20544 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20547 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20548 HOST_WIDE_INT_M1U): New macros.
20549 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20550 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20551 unsigned -1 for lshift.
20552 * cse.c (cse_insn): Likewise.
20553 * double-int.c (rshift_double, lshift_double): Likewise.
20554 * builtins.c (fold_builtin_bitop): Likewise.
20555 * combine.c (force_to_mode): Likewise.
20556 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20557 * simplify-rtx.c (simplify_const_unary_operation,
20558 simplify_const_binary_operation): Likewise.
20559 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20560 check_va_list_escapes): Likewise.
20561 * rtlanal.c (nonzero_bits1): Likewise.
20562 * expmed.c (expand_smod_pow2): Likewise.
20563 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20565 2013-08-23 Jan Hubicka <jh@suse.cz>
20567 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20568 as having address taken.
20570 2013-08-23 Jan Hubicka <jh@suse.cz>
20572 * ipa-utils.h (method_class_type): Declare.
20573 * ipa-devirt.c (method_class_type): Export.
20575 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20576 do not walk base classes of anonymous types.
20578 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20580 PR rtl-optimization/58220
20581 PR regression/58221
20582 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20583 handle SEQUENCE insns properly.
20585 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20587 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20589 (pp_newline_and_indent): Likewise.
20590 (pp_separate_with): Likewise.
20591 * pretty-print.c (pp_newline_and_flush): Define.
20592 (pp_newline_and_indent): Likewise.
20593 (pp_separate_with): Likewise.
20595 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20598 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20599 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20601 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20603 * config/i386/predicates.md (ext_sse_reg_operand): New.
20604 * config/i386/i386.md (*movti_internal): Use
20605 predicate to determine if EVEX is needed.
20606 (*movsi_internal): Ditto.
20607 (*movdf_internal): Ditto.
20608 (*movsf_internal): Ditto.
20609 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20611 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20613 PR tree-optimization/58209
20614 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20615 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20616 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20617 emit POINTER_PLUS_EXPR.
20618 (create_tailcall_accumulator): For pointer result type accumulate in
20621 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20623 * configure.ac: Add backslashes missing from the last change.
20624 * configure: Regenerate.
20626 2013-08-22 Jan Hubicka <jh@susue.cz>
20628 * ipa.c (function_and_variable_visibility): First remember function
20629 was global and then make it local.
20631 2013-08-22 Julian Brown <julian@codesourcery.com>
20633 * configure.ac: Add aarch64 to list of arches which use "nop" in
20635 * configure: Regenerate.
20637 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20639 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20640 gnu_libc_has_function.
20641 * config/s390/tpf.h: Likewise.
20643 2013-08-22 Jan Hubicka <jh@susue.cz>
20645 * timevar.c (validate_phases): Add cast.
20647 2013-08-22 Jan Hubicka <jh@susue.cz>
20649 * timevar.c (validate_phases): Use size_t for memory.
20650 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20652 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20654 * pretty-print.h (output_buffer::output_buffer): Declare.
20655 (pretty_printer::pretty_printer): Likewise.
20656 (pp_construct): Remove.
20657 * pretty-print.c (output_buffer::output_buffer): Define.
20658 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20659 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20660 (print_gimple_expr): Likewise.
20661 (print_gimple_seq): Likewise.
20662 (gimple_dump_bb): Likewise.
20663 * sched-vis.c (dump_value_slim): Likewise.
20664 (dump_insn_slim): Likewise.
20665 (dump_rtl_slim): Likewise.
20666 (str_pattern_slim): Likewise.
20667 * tree-mudflap.c (mf_varname_tree): Likewise.
20668 * graph.c (print_graph_cfg): Likewise.
20669 (start_graph_dump): Likewise.
20670 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20672 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20673 pretty printer initialization.
20674 * coretypes.h (diagnostic_context): Remove superflous type alias
20676 (pretty_printer): Likewise. Declare directly as a class.
20677 (pretty_print_info): Remove declaration as class.
20678 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20679 and pp_clear_output_area.
20680 (asan_add_global): Likewise.
20682 2013-08-22 Jan Hubicka <jh@suse.cz>
20684 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20685 * ipa-utils.h (update_type_inheritance_graph): Declare.
20686 (possible_polymorphic_call_target_p): Declare.
20687 (possible_polymorphic_call_target_p): New.
20688 * ipa-devirt.c: Update toplevel comments.
20689 (cached_polymorphic_call_targets): Move up.
20690 (odr_type_d): Move ID down.
20691 (polymorphic_type_binfo_p): Update comment.
20692 (odr_hasher::remove): Likewise;
20693 (get_odr_type): Set anonymous_namespace.
20694 (dump_odr_type): Dump it.
20695 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20696 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20697 (record_binfo): Add comment.
20698 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20700 (devirt_node_removal_hook): Do not iCE when cache is freed.
20701 (possible_polymorphic_call_target_p): New predicate.
20702 (update_type_inheritance_graph): New function.
20704 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20706 Sergey Lega <sergey.s.lega@intel.com>
20707 Anna Tikhonova <anna.tikhonova@intel.com>
20708 Ilya Tocar <ilya.tocar@intel.com>
20709 Andrey Turetskiy <andrey.turetskiy@intel.com>
20710 Ilya Verbin <ilya.verbin@intel.com>
20711 Kirill Yukhin <kirill.yukhin@intel.com>
20712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20714 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20715 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20716 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20717 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20718 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20719 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20720 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20721 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20722 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20723 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20724 OPT_mavx512pf, OPT_mavx512er cases.
20725 * config/i386/constraints.md (v): New constraint.
20726 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20727 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20728 (bit_AVX512CD): New.
20729 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20730 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20731 * config/i386/i386-c.c (ix86_target_macros_internal):
20732 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20734 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20735 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20736 * config/i386/i386.c (regclass_map, dbx_register_map)
20737 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20738 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20739 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20740 -mavx512pf options.
20741 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20742 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20743 -mavx512pf options. Fix formatting.
20744 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20745 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20746 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20747 -mavx512cd, -mavx512pf options.
20748 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20749 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20750 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20752 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20753 (ix86_set_reg_reg_cost): Ditto.
20754 (x86_order_regs_for_local_alloc): Ditto.
20755 (MAX_VECT_LEN): Extend to 64-byte.
20756 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20757 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20758 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20759 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20760 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20761 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20762 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20763 (SSE_REG_MODE_P): Support new modes.
20764 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20765 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20766 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20767 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20768 (REG_CLASS_CONTENTS): Add new registers.
20769 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20770 (EXT_REX_SSE_REGNO_P): New.
20771 (HI_REGISTER_NAMES): Add new registers.
20772 * config/i386/i386.md: Define constants for new registers.
20773 (mode): Add new 512-bit modes.
20774 (prefix): Support evex prefix.
20775 (isa): Support avx512f, noavx512f, fma_avx512f.
20776 (ssemodesuffix): Add new 512-bit modes.
20778 (*movxi_internal_avx512f): Ditto.
20779 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20781 (*movsi_internal): Likewise.
20782 (*movdf_internal): Likewise.
20783 (*movsf_internal): Likewise.
20784 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20785 (<code><mode>3): Likewise.
20786 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20788 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20789 with the new constraint "v".
20790 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20792 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20793 with the new constraint "v".
20794 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20795 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20796 (*<plusminus_insn><mode>3): Likewise.
20797 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20798 (*mul<mode>3): Likewise.
20799 (<sse>_vmmul<mode>3): Likewise.
20800 (<sse>_div<mode>3): Likewise.
20801 (<sse>_vmdiv<mode>3): Likewise.
20802 (<sse>_sqrt<mode>2): Likewise.
20803 (<sse>_vmsqrt<mode>2): Likewise.
20804 (*<code><mode>3_finite): Likewise.
20805 (*<code><mode>3) <smaxmin>: Likewise.
20806 (<sse>_vm<code><mode>3): Likewise.
20807 (*<code><mode>3) <any_logic>: Likewise.
20808 (*fma_fmadd_<mode>): Likewise.
20809 (*fma_fmsub_<mode>): Likewise.
20810 (*fma_fnmadd_<mode>): Likewise.
20811 (*fma_fnmsub_<mode>): Likewise.
20812 (*fma_fmaddsub_<mode>): Likewise.
20813 (*fma_fmsubadd_<mode>): Likewise.
20814 (*fmai_fmadd_<mode>): Likewise.
20815 (*fmai_fmsub_<mode>): Likewise.
20816 (*fmai_fnmadd_<mode>): Likewise.
20817 (*fmai_fnmsub_<mode>): Likewise.
20818 (sse_cvtsi2ss): Likewise.
20819 (sse_cvtsi2ssq): Likewise.
20820 (sse_cvtss2si): Likewise.
20821 (sse_cvtss2si_2): Likewise.
20822 (sse_cvtss2siq): Likewise.
20823 (sse_cvtss2siq_2): Likewise.
20824 (sse_cvttss2si): Likewise.
20825 (sse_cvtss2siq_2): Likewise.
20826 (float<sseintvecmodelower><mode>2): Likewise.
20827 (sse2_cvtsd2si_2): Likewise.
20828 (sse2_cvtsd2siq_2): Likewise.
20829 (*<plusminus_insn><mode>3): Likewise.
20830 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20831 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20832 (ashr<mode>3): Likewise.
20833 (<shift_insn><mode>3): Likewise.
20834 (avx2_<code><mode>3): Likewise.
20835 (*avx2_<code><mode>3): Likewise.
20836 (*andnot<mode>3): Likewise.
20837 (*<code><mode>3) <any_logic>: Likewise.
20838 (abs<mode>2): Likewise.
20839 (avx2_permvar<mode>): Likewise.
20840 (avx2_perm<mode>_1): Likewise.
20841 (*avx_vpermilp<mode>): Likewise.
20842 (avx_vpermilvar<mode>3): Likewise.
20843 (avx2_ashrv<mode>): Likewise.
20844 (avx2_<shift_insn>v<mode>): Likewise.
20845 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20847 * doc/rtl.texi: Document XImode.
20849 2013-08-21 Jeff Law <law@redhat.com>
20851 * tree-flow.h (register_jump_thread): Pass vector of edges
20852 instead of each important edge.
20853 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20854 thread path into a vector and pass that to register_jump_thread.
20855 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20856 passed in edge vector to the current 3-edge form.
20859 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20861 * dce.c (fini_dce): Call df_analyze again just in case
20862 delete_unmarked_insns removed anything.
20864 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20866 * reload.h (struct reg_equivs): Rename to ..
20867 (struct reg_equivs_s): .. this.
20869 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20871 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20873 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20875 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20877 2013-08-21 Jeff Law <law@redhat.com>
20879 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20880 simplify assignments too. If the RHS collapses to a singleton
20881 range, then return the value for the range.
20883 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20885 * config/i386/sse.md (V16): Rename to...
20887 (mov<mode>): Update iterator name.
20888 (*mov<mode>_internal): Ditto.
20889 (push<mode>1): Ditto.
20890 (movmisalign<mode>): Ditto.
20892 2013-08-20 Jan Hubicka <jh@suse.cz>
20895 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20896 entry for direct edges.
20897 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20899 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20901 Revert my last two changes, r201865 and r201864:
20904 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20906 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20907 instances can own GC refs.
20909 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20910 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20911 (gcc::context::gt_pch_nx): Likewise.
20912 (gcc::context::gt_pch_nx): Likewise.
20913 * ggc.h (gt_ggc_mx <T>): New.
20914 (gt_pch_nx_with_op <T>): New.
20915 (gt_pch_nx <T>): New.
20916 * passes.c (opt_pass::gt_ggc_mx): New.
20917 (opt_pass::gt_pch_nx): New.
20918 (opt_pass::gt_pch_nx_with_op): New.
20919 (pass_manager::gt_ggc_mx): New.
20920 (pass_manager::gt_pch_nx): New.
20921 (pass_manager::gt_pch_nx_with_op): New.
20922 (pass_manager::operator new): Use
20923 ggc_internal_cleared_alloc_stat rather than xcalloc.
20924 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20925 (pass_manager::gt_ggc_mx): New.
20926 (pass_manager::gt_pch_nx): New.
20927 (pass_manager::gt_pch_nx_with_op): New.
20928 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20929 (opt_pass::operator new): New.
20930 (opt_pass::gt_ggc_mx): New.
20931 (opt_pass::gt_pch_nx): New.
20932 (opt_pass::gt_pch_nx_with_op): New.
20935 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20937 * Makefile.in (GTFILES): Add context.h.
20938 * context.c (gcc::context::operator new): New.
20939 (gcc::context::gt_ggc_mx): New.
20940 (gcc::context::gt_pch_nx): New.
20941 (gcc::context::gt_pch_nx): New.
20942 * context.h (gcc::context): Add GTY((user)) marking.
20943 (gcc::context::operator new): New.
20944 (gcc::context::gt_ggc_mx): New.
20945 (gcc::context::gt_pch_nx): New.
20946 (gcc::context::gt_pch_nx): New.
20947 (g): Add GTY marking.
20948 (gt_ggc_mx (gcc::context *)): New.
20949 (gt_pch_nx (gcc::context *)): New.
20950 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20951 void *cookie)): New.
20952 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20954 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20956 * dce.c (fini_dce): Call df_analyze again just in case
20957 delete_unmarked_insns removed anything.
20959 2013-08-20 Teresa Johnson <tejohnson@google.com>
20961 PR rtl-optimizations/57451
20962 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20963 from crossing split section boundaries.
20965 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20967 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20968 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20969 with MULTLIB_DEFAULTS.
20971 2013-08-20 Nick Clifton <nickc@redhat.com>
20973 * target.def (narrow_volatile_bitfield): Note that the default
20974 value is false, not !TARGET_STRICT_ALIGN.
20975 * doc/tm.texi: Regenerate.
20977 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20979 Fix LIB_SPEC for systems without libpthread.
20981 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20982 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20984 * config/i386/linux-common.h: Likewise.
20985 * config/mips/linux-common.h: Likewise.
20987 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20989 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20992 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20994 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20995 instances can own GC refs.
20997 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20998 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20999 (gcc::context::gt_pch_nx): Likewise.
21000 (gcc::context::gt_pch_nx): Likewise.
21001 * ggc.h (gt_ggc_mx <T>): New.
21002 (gt_pch_nx_with_op <T>): New.
21003 (gt_pch_nx <T>): New.
21004 * passes.c (opt_pass::gt_ggc_mx): New.
21005 (opt_pass::gt_pch_nx): New.
21006 (opt_pass::gt_pch_nx_with_op): New.
21007 (pass_manager::gt_ggc_mx): New.
21008 (pass_manager::gt_pch_nx): New.
21009 (pass_manager::gt_pch_nx_with_op): New.
21010 (pass_manager::operator new): Use
21011 ggc_internal_cleared_alloc_stat rather than xcalloc.
21012 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21013 (pass_manager::gt_ggc_mx): New.
21014 (pass_manager::gt_pch_nx): New.
21015 (pass_manager::gt_pch_nx_with_op): New.
21016 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21017 (opt_pass::operator new): New.
21018 (opt_pass::gt_ggc_mx): New.
21019 (opt_pass::gt_pch_nx): New.
21020 (opt_pass::gt_pch_nx_with_op): New.
21022 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21024 * Makefile.in (GTFILES): Add context.h.
21025 * context.c (gcc::context::operator new): New.
21026 (gcc::context::gt_ggc_mx): New.
21027 (gcc::context::gt_pch_nx): New.
21028 (gcc::context::gt_pch_nx): New.
21029 * context.h (gcc::context): Add GTY((user)) marking.
21030 (gcc::context::operator new): New.
21031 (gcc::context::gt_ggc_mx): New.
21032 (gcc::context::gt_pch_nx): New.
21033 (gcc::context::gt_pch_nx): New.
21034 (g): Add GTY marking.
21035 (gt_ggc_mx (gcc::context *)): New.
21036 (gt_pch_nx (gcc::context *)): New.
21037 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21038 void *cookie)): New.
21039 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21041 2013-08-20 Alan Modra <amodra@gmail.com>
21044 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21045 (rs6000_emit_epilogue): Likewise.
21047 2013-08-19 Dehao Chen <dehao@google.com>
21049 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21051 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21052 Jakub Jelinek <jakub@redhat.com>
21054 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21055 (BUILT_IN_FABSD64): Likewise.
21056 (BUILT_IN_FABSD128): Likewise.
21057 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21058 (fold_builtin_1): Likewise.
21059 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21060 destination and source operands.
21061 (*abstd2_fpr): Likewise.
21062 (*nabstd2_fpr): Likewise.
21064 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21066 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21069 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21071 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21074 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21076 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21077 * builtins.c (default_libc_has_function): New.
21078 (gnu_libc_has_function): Ditto.
21079 (no_c99_libc_has_function): Ditto.
21080 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21081 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21082 (fold_builtin_sincos): Likewise.
21083 (fold_builtin_cexp): Likewise.
21084 * builtins.def (DEF_C94_BUILTIN): Likewise.
21085 (DEF_C99_BUILTIN): Likewise.
21086 (DEF_C99_C90RES_BUILTIN): Likewise.
21087 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21088 definitions to using this define.
21089 * config/darwin-protos.h (darwin_libc_has_function): New.
21090 * config/darwin.c (darwin_libc_has_function): Ditto.
21091 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21092 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21093 * config/darwin.h: Ditto.
21094 * config/elfos.h: Ditto.
21095 * config/freebsd.h: Ditto.
21096 * config/i386/cygming.h: Ditto.
21097 * config/i386/djgpp.h: Ditto.
21098 * config/i386/i386-interix.h: Ditto.
21099 * config/microblaze/microblaze.h: Ditto.
21100 * config/mmix/mmix.h: Ditto.
21101 * config/gnu-user.h: Ditto.
21102 * config/ia64/hpux.h: Ditto.
21103 * config/pa/pa-hpux.h: Ditto.
21104 * config/pdp11/pdp11.h: Ditto.
21105 * config/picochip/picochip.h: Ditto.
21106 * config/linux.h: Ditto.
21107 * config/netbsd.h: Ditto.
21108 * config/openbsd.h: Ditto.
21109 * config/rs6000/aix43.h: Ditto.
21110 * config/rs6000/aix51.h: Ditto.
21111 * config/rs6000/aix52.h: Ditto.
21112 * config/rs6000/aix53.h: Ditto.
21113 * config/rs6000/aix61.h: Ditto.
21114 * config/rs6000/darwin.h: Ditto.
21115 * config/rs6000/linux.h: Ditto.
21116 * config/rs6000/linux64.h: Ditto.
21117 * config/s390/tpf.h: Ditto.
21118 * config/sol2-10.h: Ditto.
21119 * config/sol2.h: Ditto.
21120 * config/vms/vms.h: Ditto.
21121 * config/vxworks.h: Ditto.
21122 * config/linux-android.c (linux_android_libc_has_function):
21123 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21124 * config/linux-protos.h (linux_android_libc_has_function):
21126 * config/i386/i386.c (ix86_libc_has_function): New.
21127 * config/i386/i386-protos.h
21128 (ix86_libc_has_function): New declaration.
21129 * config/i386/i386.md
21130 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21131 ("isinf<mode>2): Likewise.
21132 * convert.c (convert_to_integer): Using new target hook
21133 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21134 TARGET_C99_FUNCTIONS.
21135 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21136 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21137 * coretypes.h (function_class): New enum for different
21138 classes of functions.
21139 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21140 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21141 (TARGET_HAS_SINCOS): Likewise.
21142 (TARGET_LIBC_HAS_FUNCTION): New.
21143 * doc/tm.texi: Regenerated.
21144 * targhooks.h (default_libc_has_function): New declaration.
21145 (no_c99_libc_has_function): Ditto.
21146 (gnu_libc_has_function): Ditto.
21147 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21148 and TARGET_HAS_SINCOS.
21150 2013-08-18 Jan Hubicka <jh@suse.cz>
21152 * Makeifle-in (ipa-devirt.o): New.
21153 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21154 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21155 (analyze_functions): Look into possible targets of polymorphic call.
21156 * dumpfile.c (dump_files): Add type-inheritance dump.
21157 * dumpfile.h (TDI_inheritance): New.
21158 * ipa-devirt.c: New file.
21159 * ipa-utils.h (odr_type_d): Forward declare.
21160 (odr_type): New type.
21161 (build_type_inheritance_graph): Declare.
21162 (possible_polymorphic_call_targets): Declare and introduce inline
21163 variant when only edge is pased.
21164 (dump_possible_polymorphic_call_targets): Likewise.
21165 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21166 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21167 (types_same_for_odr): ... here.
21168 * tree.h (type_in_anonymous_namespace_p): Declare.
21170 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21172 PR tree-optimization/58006
21173 * tree-parloops.c (take_address_of): Don't ICE if get_name
21175 (eliminate_local_variables_stmt): Remove clobber stmts.
21177 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21179 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21180 error message is issued for an alias to undefined symbol.
21182 2013-08-18 Jan Hubicka <jh@suse.cz>
21184 * cgraph.c (cgraph_create_indirect_edge): Discover
21185 polymorphic calls and record basic info into indirect_info.
21186 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21187 devirtualization, ignore objc function calls.
21188 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21189 call with no parm index info.
21190 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21191 * tree.c (virtual_method_call_p): New function.
21192 * tree.h (virtual_method_call_p): Declare.
21194 2013-08-16 Jan Hubicka <jh@suse.cz>
21196 PR middle-end/58179
21197 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21199 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21201 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21204 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21206 * gengtype.c (type_for_name): Add special-case support for
21207 locating types within the "gcc::" namespace.
21208 (open_base_files): Emit a "using namespace gcc" directive.
21210 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21213 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21214 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21216 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21217 array instead of each individual operand as a separate argument.
21218 (emit_fusion_gpr_load): Likewise.
21219 (expand_fusion_gpr_load): Add new function declaration.
21221 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21222 signature to have the operands passed as an array, instead of as
21223 separate arguments. Allow ZERO_EXTEND to be in the memory
21224 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21225 depend on the register live/dead flags when peepholes are run.
21226 (expand_fusion_gpr_load): New function to be called from the
21227 peephole2 pass, to change the register that addis sets to be the
21229 (emit_fusion_gpr_load): Change the calling signature to have the
21230 operands passed as an array, instead of as separate arguments.
21231 Allow ZERO_EXTEND to be in the memory address, and also
21232 SIGN_EXTEND if -mpower8-fusion-sign.
21234 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21235 unspec enumeration.
21236 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21237 adjust the register addis loads up in the peephole2 pass. Do not
21238 depend on the register live/dead state when the peephole pass is done.
21240 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21242 * gengtype.c (create_user_defined_type): Ensure that the kind
21243 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21244 declaration is seen before the GTY((user)) marking.
21246 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21249 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21251 2013-08-16 Jan Hubicka <jh@suse.cz>
21253 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21254 arugment expected_type.
21255 (gimple_fold_call): Use it.
21256 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21257 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21258 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21259 (try_make_edge_direct_virtual_call): Likewise.
21260 * tree.c (obj_type_ref_class): New.
21261 * tree.h (obj_type_ref_class): Use it.
21263 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21265 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21266 (rtl_slim_pp): Likewise.
21267 (init_rtl_slim_pretty_print): Likewise.
21268 (dump_value_slim): Don't call it. Use local pretty printer.
21269 (dump_insn_slim): Likewise.
21270 (dump_rtl_slim): Likewise.
21271 (str_pattern_slim): Likewise.
21272 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21275 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21277 PR tree-optimization/58164
21278 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21279 walk gimple_goto_dest of GIMPLE_GOTO.
21281 PR tree-optimization/58165
21282 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21283 bi_call must be the last stmt in a bb, don't split_block, instead
21284 use fallthru edge from it and give up if there is none.
21285 Release conds vector when returning early.
21287 2013-08-14 Xinliang David Li <davidxl@google.com>
21289 * config/i386/i386.c (ix86_option_override_internal):
21290 Remove unused variable and field.
21292 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21295 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21296 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21297 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21298 and Linux, correct BLKmode alignment when 128-bit alignment is
21299 required and compatibility flag is not set.
21300 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21301 for zero-size arguments when compatibility flag is not set.
21303 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21305 PR tree-optimization/58145
21306 * tree-sra.c (build_ref_for_offset): If prev_base has
21307 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21309 2013-08-14 Xinliang David Li <davidxl@google.com>
21311 * config/i386/i386.c (ix86_option_override_internal):
21312 Fix uninitialized variable error.
21314 2013-08-14 Xinliang David Li <davidxl@google.com>
21316 * config/i386/i386.opt: Define two new options.
21317 * config/i386/x86-tune.def: Add arch selector field in macros.
21318 * config/i386/i386.h: Adjust macro definition.
21319 * config/i386/i386.c (ix86_option_override_internal):
21321 (parse_mtune_ctrl_str): New function.
21322 (set_ix86_tune_features): New function.
21323 (ix86_function_specific_restore): Call the new helper function.
21325 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21327 PR rtl-optimization/57662
21328 * sel-sched.c (code_motion_process_successors): When the current insn
21329 is removed after the recursive traversal, break from the loop.
21330 Add comments and debug printouts.
21332 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21333 Alexandre Oliva <aoliva@redhat.com>
21336 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21337 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21338 there also UNSPEC_PLTOFF.
21340 2013-08-14 Marek Polacek <polacek@redhat.com>
21342 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21343 NUM_CONDITIONS bit positions.
21345 2013-08-13 Cary Coutant <ccoutant@google.com>
21347 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21348 (attr_checksum): Hash vector contents instead of pointer.
21349 (attr_checksum_ordered): Likewise.
21351 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21353 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21354 when Pmode != word_mode. Add length_address attribute.
21355 (sse3_monitor_<mode>): Merge from sse3_monitor and
21356 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21357 Pmode != word_mode. Update insn length attribute.
21358 * config/i386/i386.c (ix86_option_override_internal): Update
21359 ix86_gen_monitor selection for merged sse3_monitor insn.
21361 2013-08-13 Julian Brown <julian@codesourcery.com>
21363 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21364 perform invalid legitimization on greater-than-word-size modes for
21365 TARGET_E500_DOUBLE.
21367 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21369 * ira.c (setup_class_translate_array): Use aclass instead of cl
21370 for classes not fully covered by allocno classes.
21372 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21374 PR tree-optimization/57661
21375 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21376 * tree-inline.c (tree_function_versioning): Initialize it.
21377 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21378 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21379 that is not being copied.
21382 * asan.c (instrument_strlen_call): Fix typo in comment.
21383 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21385 2013-08-13 Steve Ellcey <sellcey@mips.com>
21387 * config/mips/mips.md (prefetch): Use lw instead of ld on
21388 loongson in 32bit mode.
21390 2013-08-13 Nick Clifton <nickc@redhat.com>
21392 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21394 2013-08-13 Jan Hubicka <jh@suse.cz>
21396 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21397 introduced edge; fix typo in sanity check.
21398 (cgraph_resolve_speculation): Export; improve diagnostic.
21399 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21400 speculation at type mismatch.
21401 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21402 (cgraph_resolve_speculation): Declare.
21403 (symtab_can_be_discarded): New function.
21404 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21405 * ipa-inline-transform.c (speculation_removed): New global var.
21406 (clone_inlined_nodes): See if speculation can be removed.
21407 (inline_call): If speculations was removed, we growths may not match.
21408 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21409 (speculation_useful_p): New function.
21410 (resolve_noninline_speculation): New function.
21411 (inline_small_functions): Resolve useless speculations.
21412 * ipa-inline.h (speculation_useful_p): Declare
21413 * ipa.c (can_replace_by_local_alias): Simplify.
21414 (ipa_profile): Produce speculative calls in non-lto, too;
21415 add simple cost model; produce local aliases.
21417 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21419 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21422 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21424 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21426 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21428 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21429 iterator instead of X87MODEF.
21431 2013-08-12 Perez Read <netfirewall@gmail.com>
21434 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21435 operand 0 for intel asm alternative.
21436 (*movabs<mode>_2): Ditto for operand 1.
21438 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21440 * config/aarch64/arm_none.h
21441 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21443 2013-08-12 Nick Clifton <nickc@redhat.com>
21445 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21447 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21449 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21450 expand for QI/HImode operand to produce more effictive code for
21451 unsigned char(short) --> float(double) conversion.
21453 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21455 * doc/invoke.texi: Mention that -ftls-model does not force the final
21458 2013-08-12 Marek Polacek <polacek@redhat.com>
21459 Marc Glisse <marc.glisse@inria.fr>
21461 PR tree-optimization/57980
21462 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21463 when creating -1 constant.
21465 2013-08-10 Jan Hubicka <jh@suse.cz>
21467 Workaround binutils PR14342.
21468 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21469 (gimple_init_edge_profiler): Likewise.
21470 (gimple_gen_ic_func_profiler): Likewise.
21472 2013-08-09 Jan Hubicka <jh@suse.cz>
21474 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21476 2013-08-09 Xinliang David Li <davidxl@google.com>
21478 * config/i386/stringop.def: New file.
21479 * config/i386/stringop.opt: New file.
21480 * config/i386/i386-opts.h: Include stringopt.def.
21481 * config/i386/i386.opt: Include stringopt.opt.
21482 * config/i386/i386.c (ix86_option_override_internal):
21483 Override default size based stringop inline strategies with options.
21484 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21487 2013-08-09 Jan Hubicka <jh@suse.cz>
21489 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21491 2013-08-09 Jan Hubicka <jh@suse.cz>
21493 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21495 (dump_cgraph_node): Dump profile-id.
21496 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21497 and common_target_probability.
21498 * lto-cgraph.c (lto_output_edge): Stream common targets.
21499 (lto_output_node): Stream profile ids.
21500 (input_node): Stream profile ids.
21501 (input_edge): Stream common targets.
21502 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21503 * ipa.c: Include value-prof.h
21504 (ipa_profile_generate_summary): Turn indirect call statement histograms
21505 into common targets.
21506 (ipa_profile): Turn common targets into speculative edges.
21508 2013-08-09 Jan Hubicka <jh@suse.cz>
21510 * cgraph.h (cgraph_node): Add profile_id.
21511 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21512 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21513 (del_node_map): Update.
21514 (find_func_by_funcdef_no): Replace by ...
21515 (find_func_by_profile_id): ... this one.
21516 (gimple_ic_transform): Do not remove useful histograms when
21517 speculation is not done; dump info when indirect call removal
21519 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21520 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21521 (__gcov_indirect_call_profiler_v2): .. this one.
21522 * profile.h (init_node_map): Update.
21523 * coverage.c (coverage_compute_profile_id): New function.
21524 * coverage.h (coverage_compute_profile_id): Declare.
21525 * tree-profile.c (init_ic_make_global_vars): Make
21526 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21527 (gimple_init_edge_profiler): Update prototype of
21528 __gcov_indirect_call_profiler.
21529 (gimple_gen_ic_func_profiler): Simplify.
21530 (tree_profiling): Use init_node_map
21532 2013-08-09 Jan Hubicka <jh@suse.cz>
21534 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21535 non-speculative refs.
21536 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21537 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21538 (cgraph_set_call_stmt): Likewise.
21539 (cgraph_create_edge_1): Fix release checking compilatoin;
21540 clear lto_stmt_uid.
21541 (cgraph_free_edge): Free indirect info.
21542 (cgraph_turn_edge_to_speculative): New function.
21543 (cgraph_speculative_call_info): New function.
21544 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21545 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21546 (dump_cgraph_node): Dump speculation.
21547 (verify_edge_count_and_frequency): Accept speculative edges.
21548 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21549 (verify_cgraph_node): Handle speculation.
21550 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21551 (cgraph_set_call_stmt): Update prototype.
21552 (cgraph_make_edge_direct): Update prototype.
21553 (cgraph_speculative_call_info): Declare.
21554 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21555 to change; update call of ipa_find_references.
21556 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21557 lto_stmt_uid and speculative flags.
21558 (ipa_dump_references): Dump speculation.
21559 (ipa_clone_references): Clone speculative flag.
21560 (ipa_clone_referring): Likewise.
21561 (ipa_clone_ref): New function.
21562 (ipa_find_reference): Look into lto_stmt_uids
21563 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21564 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21565 (ipa_find_reference): Update declaration.
21566 (ipa_clone_ref): Declare.
21567 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21568 stream speculative flag.
21569 (lto_output_ref): Stream statements uids and speculation.
21570 (input_ref): Likewise.
21571 (input_edge): Stream speuclation.
21572 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21573 (cgraph_set_call_stmt_including_clones): Handle speculation.
21574 * ipa-inline.c (heap_edge_removal_hook): New function.
21575 (inline_small_functions): Register it.
21576 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21577 also initialize refs.
21578 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21580 (try_make_edge_direct_simple_call): Likewise.
21581 (try_make_edge_direct_simple_call): Likewise.
21582 (update_indirect_edges_after_inlining): Likewise.
21583 (remove_described_reference): Look proper lto_stmt_uid.
21584 (propagate_controlled_uses): Likewise.
21585 (propagate_controlled_uses): Liekwise.
21586 * tree-inline.c (copy_bb): Copy speculative edges.
21587 (redirect_all_calls): New function.
21588 (copy_cfg_body): Do redirection after loop info is updated.
21589 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21591 2013-08-09 Jan Hubicka <jh@suse.cz>
21593 * lto-streamer-out.c (output_function): Renumber PHIs.
21594 * lto-streamer-in.c (input_function): Likewise.
21596 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21598 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21599 (get_lane_unsigned): Likewise.
21600 (dup_lane_scalar): Likewise.
21601 (get_lane): enable for VALL.
21602 * config/aarch64/aarch64-simd.md
21603 (aarch64_dup_lane_scalar<mode>): Remove.
21604 (aarch64_get_lane_signed<mode>): Likewise.
21605 (aarch64_get_lane_unsigned<mode>): Likewise.
21606 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21607 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21608 (aarch64_get_lane<mode>): Enable for all vector modes.
21609 (aarch64_get_lanedi): Remove misleading constraints.
21610 * config/aarch64/arm_neon.h
21611 (__aarch64_vget_lane_any): Define.
21612 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21613 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21614 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21615 * config/aarch64/iterators.md (VDQQH): New.
21616 (VDQQHS): Likewise.
21617 (vwcore): Likewise.
21619 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21621 * configure.ac: Add GAS check for LEON instructions on SPARC.
21622 * configure: Regenerate.
21623 * config.in: Likewise.
21624 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21626 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21627 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21629 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21630 (AS_LEON_FLAG): New macro.
21631 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21632 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21633 Deal with LEON and LEON3 for the memory model.
21634 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21635 (atomic_compare_and_swap<mode>_1): Likewise.
21636 (*atomic_compare_and_swap<mode>_1): Likewise.
21638 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21640 * config/arm/neon.md (vcond): Fix floating-point vector
21641 comparisons against 0.
21643 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21645 * lra-constraints.c (emit_spill_move): Remove assert.
21646 (process_alt_operands): Add more debugging
21647 output. Increase reject for spilling into memory. Decrease
21648 reject for reloading scratch.
21649 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21651 2013-08-08 Steve Ellcey <sellcey@mips.com>
21653 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21654 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21655 micromips incompatible. Add nan2008.
21656 (MULTILIB_DIRNAMES): Add nan2008.
21657 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21658 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21659 and micromips incompatible. Add nan2008.
21660 (MULTILIB_DIRNAMES): Add nan2008.
21661 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21663 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21665 PR rtl-optimization/58079
21666 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21667 simplify_comparison has widened a comparison with an integer.
21669 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21671 * config/arm/neon.md (movmisalign<mode>): Disable when we
21672 don't allow unaligned accesses.
21673 (*movmisalign<mode>_neon_store): Likewise.
21674 (*movmisalign<mode>_neon_load): Likewise.
21675 (*movmisalign<mode>_neon_store): Likewise.
21676 (*movmisalign<mode>_neon_load): Likewise.
21678 2013-08-08 Jan Hubicka <jh@suse.cz>
21680 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21681 (make_pass_rebuild_cgraph_edges): Also clear references.
21682 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21683 * ipa-inline-transform.c (inline_transform): Remove all references
21685 * cgraphunit.c (expand_function): Remove all references after
21687 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21688 (ipa_find_reference): Rewrite to iterator.
21689 (remove_stmt_references): Likewise.
21690 (ipa_clear_stmts_in_references): New function.
21691 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21692 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21694 * ipa-split.c (split_function): Remove references in split function.
21696 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21699 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21700 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21702 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21705 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21706 suggested mode for the assignment isn't compatible with the
21707 registers required.
21709 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21712 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21714 2013-08-07 Xinliang David Li <davidxl@google.com>
21716 * config/i386/i386.opt: New option -mtune-ctrl=.
21717 * config/i386/x86-tune.def: New file.
21718 * config/i386/i386.h: include x86-tune.def.
21719 * config/i386/i386.c (ix86_option_override_internal):
21720 Parsing -mtune-ctrl= option and set tune features.
21722 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21725 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21726 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21729 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21731 * rtl.h (update_alignments): Declare.
21732 * final.c (grow_label_align): New function extracted from...
21733 (shorten_branches): ...here. Call it.
21734 (update_alignments): New function.
21735 * reorg.c (sibling_labels): New variable.
21736 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21737 the new label along with it onto the sibling_labels vector.
21738 (fill_simple_delay_slots): Adjust call to get_label_before.
21739 (fill_slots_from_thread): Likewise.
21740 (relax_delay_slots): Likewise.
21741 (make_return_insns): Likewise.
21742 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21744 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21746 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21747 document its semantics.
21748 (diagnostic_report_diagnostic): Adjust accordingly.
21750 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21752 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21753 (sparc_option_override): ...and port to new C++ pass API.
21754 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21756 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21758 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21760 2013-08-06 Caroline Tice <cmtice@google.com>
21762 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21763 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21764 * tree-pass.h: Add pass_vtable_verify.
21765 * varasm.c (assemble_variable): Add code to properly set the comdat
21766 section and name for the .vtable_map_vars section.
21767 (assemble_vtyv_preinit_initializer): New function.
21768 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21770 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21771 * vtable-verify.c: New file.
21772 * vtable-verify.h: New file.
21773 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21774 initialiation levels.
21775 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21776 * passes.def: Insert pass_vtable_verify.
21777 * aclocal.m4: Reorder includes.
21778 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21779 -fvtv-counts options.
21780 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21781 as appropriate, if -fvtable-verify=... is used.
21782 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21783 -fvtable-verify=... is used.
21784 * Makefile.in (OBJS): Add vtable-verify.o to list.
21785 (vtable-verify.o): Add new build rule.
21786 (GTFILES): Add vtable-verify.c to list.
21787 * common.opt (fvtable-verify=): New flag.
21788 (vtv_priority): Values for fvtable-verify= flag.
21789 (fvtv-counts): New flag.
21790 (fvtv-debug): New flag.
21791 * tree.h (save_vtable_map_decl): New extern function decl.
21793 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21795 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21796 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21797 (pass_data_rl78_devirt): ...new pass_data instance and...
21798 (make_pass_rl78_devirt): ...new function.
21799 (rl78_asm_file_start): Port pass registration to new C++ API.
21801 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21803 * coretypes.h (rtl_opt_pass): Add.
21804 (gcc::context): Add.
21805 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21806 (epiphany_init): Port to new C++ pass API.
21807 (epiphany_optimize_mode_switching): Likewise.
21808 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21809 (pass_manager::get_pass_mode_switching): New.
21810 (pass_manager::get_pass_peephole2): New.
21811 * mode-switching.c (pass_mode_switching): Add clone method.
21812 * recog.c (pass_peephole2): Add clone method.
21813 (pass_split_all_insns): Add clone method.
21815 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21817 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21818 (mips_option_override): ...here, porting to new C++ API for passes.
21820 2013-08-06 Jan Hubicka <jh@suse.cz>
21822 * cgraph.c (cgraph_get_body): New function based on lto.c
21824 * cgraph.h (cgraph_get_body): Declare.
21825 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21827 * cgraphunit.c (expand_function): Get body prior expanding.
21828 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21829 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21831 * passes.c (do_per_function_toporder): Get body.
21832 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21833 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21835 2013-08-06 Martin Jambor <mjambor@suse.cz>
21838 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21839 is not re-finalized. Rename second parameter to no_collect.
21841 2013-08-06 Martin Jambor <mjambor@suse.cz>
21843 PR middle-end/58041
21844 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21845 MEM_REF has proper alignment information.
21847 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21850 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21852 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21853 rtx (*) (rtx, ...) with insn_gen_fn.
21854 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21855 insn_gen_fn::stored_funcptr. Add initializer braces.
21857 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21859 Rewrite how instances of passes are cloned to remove assumptions
21860 about their sizes (thus allowing pass subclasses to have
21861 additional data fields, albeit non-GC-managed ones at this point).
21863 * passes.c (make_pass_instance): Now that passes have clone
21864 methods, rewrite this function to eliminate XNEW and memcpy
21865 calls that used hardcoded sizes. Since this function no longer
21866 creates pass instances, rename it to...
21867 (add_pass_instance): ...this. Document the old way that passes were
21868 numbered and flagged, and rework this function to continue using it.
21869 (next_pass_1): Add an initial_pass argument for use by
21871 (position_pass): When adding multiple instances of a pass, use
21872 the pass's clone method, rather than relying on the XNEW/memcpy
21873 within the former make_pass_instance (now add_pass_instance).
21874 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21875 the initial instance of the current pass within the pass manager.
21877 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21879 This is the automated part of the conversion of passes from C
21880 structs to C++ classes.
21882 Patch autogenerated by refactor_passes.py from
21883 https://github.com/davidmalcolm/gcc-refactoring-scripts
21884 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21886 * asan.c (pass_asan): Convert from a global struct to a subclass of
21887 gimple_opt_pass along with...
21888 (pass_data_asan): ...new pass_data instance and...
21889 (make_pass_asan): ...new function.
21890 (pass_asan_O0): Convert from a global struct to a subclass of
21891 gimple_opt_pass along with...
21892 (pass_data_asan_O0): ...new pass_data instance and...
21893 (make_pass_asan_O0): ...new function.
21894 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21895 subclass of rtl_opt_pass along with...
21896 (pass_data_inc_dec): ...new pass_data instance and...
21897 (make_pass_inc_dec): ...new function.
21898 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21899 a subclass of rtl_opt_pass along with...
21900 (pass_data_reorder_blocks): ...new pass_data instance and...
21901 (make_pass_reorder_blocks): ...new function.
21902 (pass_duplicate_computed_gotos): Convert from a global struct to a
21903 subclass of rtl_opt_pass along with...
21904 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21905 (make_pass_duplicate_computed_gotos): ...new function.
21906 (pass_partition_blocks): Convert from a global struct to a subclass of
21907 rtl_opt_pass along with...
21908 (pass_data_partition_blocks): ...new pass_data instance and...
21909 (make_pass_partition_blocks): ...new function.
21910 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21911 struct to a subclass of rtl_opt_pass along with...
21912 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21914 (make_pass_branch_target_load_optimize1): ...new function.
21915 (pass_branch_target_load_optimize2): Convert from a global struct to a
21916 subclass of rtl_opt_pass along with...
21917 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21919 (make_pass_branch_target_load_optimize2): ...new function.
21920 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21921 of rtl_opt_pass along with...
21922 (pass_data_jump): ...new pass_data instance and...
21923 (make_pass_jump): ...new function.
21924 (pass_jump2): Convert from a global struct to a subclass of
21925 rtl_opt_pass along with...
21926 (pass_data_jump2): ...new pass_data instance and...
21927 (make_pass_jump2): ...new function.
21928 * cfgexpand.c (pass_expand): Convert from a global struct to a
21929 subclass of rtl_opt_pass along with...
21930 (pass_data_expand): ...new pass_data instance and...
21931 (make_pass_expand): ...new function.
21932 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21933 of rtl_opt_pass along with...
21934 (pass_data_free_cfg): ...new pass_data instance and...
21935 (make_pass_free_cfg): ...new function.
21936 (pass_into_cfg_layout_mode): Convert from a global struct to a
21937 subclass of rtl_opt_pass along with...
21938 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21939 (make_pass_into_cfg_layout_mode): ...new function.
21940 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21941 subclass of rtl_opt_pass along with...
21942 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21943 (make_pass_outof_cfg_layout_mode): ...new function.
21944 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21945 struct to a subclass of gimple_opt_pass along with...
21946 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21947 (make_pass_build_cgraph_edges): ...new function.
21948 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21949 subclass of gimple_opt_pass along with...
21950 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21951 (make_pass_rebuild_cgraph_edges): ...new function.
21952 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21953 subclass of gimple_opt_pass along with...
21954 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21956 (make_pass_remove_cgraph_callee_edges): ...new function.
21957 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21958 struct to a subclass of rtl_opt_pass along with...
21959 (pass_data_stack_adjustments): ...new pass_data instance and...
21960 (make_pass_stack_adjustments): ...new function.
21961 * combine.c (pass_combine): Convert from a global struct to a subclass
21962 of rtl_opt_pass along with...
21963 (pass_data_combine): ...new pass_data instance and...
21964 (make_pass_combine): ...new function.
21965 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21966 global struct to a subclass of rtl_opt_pass along with...
21967 (pass_data_compare_elim_after_reload): ...new pass_data instance
21969 (make_pass_compare_elim_after_reload): ...new function.
21970 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21971 of rtl_opt_pass along with...
21972 (pass_data_rtl_cprop): ...new pass_data instance and...
21973 (make_pass_rtl_cprop): ...new function.
21974 * cse.c (pass_cse): Convert from a global struct to a subclass of
21975 rtl_opt_pass along with...
21976 (pass_data_cse): ...new pass_data instance and...
21977 (make_pass_cse): ...new function.
21978 (pass_cse2): Convert from a global struct to a subclass of
21979 rtl_opt_pass along with...
21980 (pass_data_cse2): ...new pass_data instance and...
21981 (make_pass_cse2): ...new function.
21982 (pass_cse_after_global_opts): Convert from a global struct to a
21983 subclass of rtl_opt_pass along with...
21984 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21985 (make_pass_cse_after_global_opts): ...new function.
21986 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21987 of rtl_opt_pass along with...
21988 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21989 (make_pass_ud_rtl_dce): ...new function.
21990 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21991 rtl_opt_pass along with...
21992 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21993 (make_pass_fast_rtl_dce): ...new function.
21994 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21995 a subclass of rtl_opt_pass along with...
21996 (pass_data_df_initialize_opt): ...new pass_data instance and...
21997 (make_pass_df_initialize_opt): ...new function.
21998 (pass_df_initialize_no_opt): Convert from a global struct to a
21999 subclass of rtl_opt_pass along with...
22000 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22001 (make_pass_df_initialize_no_opt): ...new function.
22002 (pass_df_finish): Convert from a global struct to a subclass of
22003 rtl_opt_pass along with...
22004 (pass_data_df_finish): ...new pass_data instance and...
22005 (make_pass_df_finish): ...new function.
22006 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22007 rtl_opt_pass along with...
22008 (pass_data_rtl_dse1): ...new pass_data instance and...
22009 (make_pass_rtl_dse1): ...new function.
22010 (pass_rtl_dse2): Convert from a global struct to a subclass of
22011 rtl_opt_pass along with...
22012 (pass_data_rtl_dse2): ...new pass_data instance and...
22013 (make_pass_rtl_dse2): ...new function.
22014 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22015 subclass of rtl_opt_pass along with...
22016 (pass_data_dwarf2_frame): ...new pass_data instance and...
22017 (make_pass_dwarf2_frame): ...new function.
22018 * except.c (pass_set_nothrow_function_flags): Convert from a global
22019 struct to a subclass of rtl_opt_pass along with...
22020 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22022 (make_pass_set_nothrow_function_flags): ...new function.
22023 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22024 subclass of rtl_opt_pass along with...
22025 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22027 (make_pass_convert_to_eh_region_ranges): ...new function.
22028 * final.c (pass_compute_alignments): Convert from a global struct to a
22029 subclass of rtl_opt_pass along with...
22030 (pass_data_compute_alignments): ...new pass_data instance and...
22031 (make_pass_compute_alignments): ...new function.
22032 (pass_final): Convert from a global struct to a subclass of
22033 rtl_opt_pass along with...
22034 (pass_data_final): ...new pass_data instance and...
22035 (make_pass_final): ...new function.
22036 (pass_shorten_branches): Convert from a global struct to a subclass of
22037 rtl_opt_pass along with...
22038 (pass_data_shorten_branches): ...new pass_data instance and...
22039 (make_pass_shorten_branches): ...new function.
22040 (pass_clean_state): Convert from a global struct to a subclass of
22041 rtl_opt_pass along with...
22042 (pass_data_clean_state): ...new pass_data instance and...
22043 (make_pass_clean_state): ...new function.
22044 * function.c (pass_instantiate_virtual_regs): Convert from a global
22045 struct to a subclass of rtl_opt_pass along with...
22046 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22047 (make_pass_instantiate_virtual_regs): ...new function.
22048 (pass_leaf_regs): Convert from a global struct to a subclass of
22049 rtl_opt_pass along with...
22050 (pass_data_leaf_regs): ...new pass_data instance and...
22051 (make_pass_leaf_regs): ...new function.
22052 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22053 subclass of rtl_opt_pass along with...
22054 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22056 (make_pass_thread_prologue_and_epilogue): ...new function.
22057 (pass_match_asm_constraints): Convert from a global struct to a
22058 subclass of rtl_opt_pass along with...
22059 (pass_data_match_asm_constraints): ...new pass_data instance and...
22060 (make_pass_match_asm_constraints): ...new function.
22061 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22062 subclass of rtl_opt_pass along with...
22063 (pass_data_rtl_fwprop): ...new pass_data instance and...
22064 (make_pass_rtl_fwprop): ...new function.
22065 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22066 rtl_opt_pass along with...
22067 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22068 (make_pass_rtl_fwprop_addr): ...new function.
22069 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22070 rtl_opt_pass along with...
22071 (pass_data_rtl_pre): ...new pass_data instance and...
22072 (make_pass_rtl_pre): ...new function.
22073 (pass_rtl_hoist): Convert from a global struct to a subclass of
22074 rtl_opt_pass along with...
22075 (pass_data_rtl_hoist): ...new pass_data instance and...
22076 (make_pass_rtl_hoist): ...new function.
22077 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22078 subclass of gimple_opt_pass along with...
22079 (pass_data_lower_cf): ...new pass_data instance and...
22080 (make_pass_lower_cf): ...new function.
22081 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22082 from a global struct to a subclass of gimple_opt_pass along with...
22083 (pass_data_strength_reduction): ...new pass_data instance and...
22084 (make_pass_strength_reduction): ...new function.
22085 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22086 of rtl_opt_pass along with...
22087 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22088 (make_pass_rtl_ifcvt): ...new function.
22089 (pass_if_after_combine): Convert from a global struct to a subclass of
22090 rtl_opt_pass along with...
22091 (pass_data_if_after_combine): ...new pass_data instance and...
22092 (make_pass_if_after_combine): ...new function.
22093 (pass_if_after_reload): Convert from a global struct to a subclass of
22094 rtl_opt_pass along with...
22095 (pass_data_if_after_reload): ...new pass_data instance and...
22096 (make_pass_if_after_reload): ...new function.
22097 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22098 a subclass of rtl_opt_pass along with...
22099 (pass_data_initialize_regs): ...new pass_data instance and...
22100 (make_pass_initialize_regs): ...new function.
22101 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22102 of ipa_opt_pass_d along with...
22103 (pass_data_ipa_cp): ...new pass_data instance and...
22104 (make_pass_ipa_cp): ...new function.
22105 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22106 global struct to a subclass of gimple_opt_pass along with...
22107 (pass_data_inline_parameters): ...new pass_data instance and...
22108 (make_pass_inline_parameters): ...new function.
22109 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22110 subclass of gimple_opt_pass along with...
22111 (pass_data_early_inline): ...new pass_data instance and...
22112 (make_pass_early_inline): ...new function.
22113 (pass_ipa_inline): Convert from a global struct to a subclass of
22114 ipa_opt_pass_d along with...
22115 (pass_data_ipa_inline): ...new pass_data instance and...
22116 (make_pass_ipa_inline): ...new function.
22117 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22118 struct to a subclass of gimple_opt_pass along with...
22119 (pass_data_local_pure_const): ...new pass_data instance and...
22120 (make_pass_local_pure_const): ...new function.
22121 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22122 ipa_opt_pass_d along with...
22123 (pass_data_ipa_pure_const): ...new pass_data instance and...
22124 (make_pass_ipa_pure_const): ...new function.
22125 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22126 to a subclass of ipa_opt_pass_d along with...
22127 (pass_data_ipa_reference): ...new pass_data instance and...
22128 (make_pass_ipa_reference): ...new function.
22129 * ipa-split.c (pass_split_functions): Convert from a global struct to
22130 a subclass of gimple_opt_pass along with...
22131 (pass_data_split_functions): ...new pass_data instance and...
22132 (make_pass_split_functions): ...new function.
22133 (pass_feedback_split_functions): Convert from a global struct to a
22134 subclass of gimple_opt_pass along with...
22135 (pass_data_feedback_split_functions): ...new pass_data instance and...
22136 (make_pass_feedback_split_functions): ...new function.
22137 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22138 global struct to a subclass of simple_ipa_opt_pass along with...
22139 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22141 (make_pass_ipa_function_and_variable_visibility): ...new function.
22142 (pass_ipa_free_inline_summary): Convert from a global struct to a
22143 subclass of simple_ipa_opt_pass along with...
22144 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22145 (make_pass_ipa_free_inline_summary): ...new function.
22146 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22147 subclass of ipa_opt_pass_d along with...
22148 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22150 (make_pass_ipa_whole_program_visibility): ...new function.
22151 (pass_ipa_profile): Convert from a global struct to a subclass of
22152 ipa_opt_pass_d along with...
22153 (pass_data_ipa_profile): ...new pass_data instance and...
22154 (make_pass_ipa_profile): ...new function.
22155 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22156 ipa_opt_pass_d along with...
22157 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22158 (make_pass_ipa_cdtor_merge): ...new function.
22159 * ira.c (pass_ira): Convert from a global struct to a subclass of
22160 rtl_opt_pass along with...
22161 (pass_data_ira): ...new pass_data instance and...
22162 (make_pass_ira): ...new function.
22163 (pass_reload): Convert from a global struct to a subclass of
22164 rtl_opt_pass along with...
22165 (pass_data_reload): ...new pass_data instance and...
22166 (make_pass_reload): ...new function.
22167 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22168 subclass of rtl_opt_pass along with...
22169 (pass_data_cleanup_barriers): ...new pass_data instance and...
22170 (make_pass_cleanup_barriers): ...new function.
22171 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22172 of rtl_opt_pass along with...
22173 (pass_data_loop2): ...new pass_data instance and...
22174 (make_pass_loop2): ...new function.
22175 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22176 rtl_opt_pass along with...
22177 (pass_data_rtl_loop_init): ...new pass_data instance and...
22178 (make_pass_rtl_loop_init): ...new function.
22179 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22180 rtl_opt_pass along with...
22181 (pass_data_rtl_loop_done): ...new pass_data instance and...
22182 (make_pass_rtl_loop_done): ...new function.
22183 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22184 subclass of rtl_opt_pass along with...
22185 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22186 (make_pass_rtl_move_loop_invariants): ...new function.
22187 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22188 rtl_opt_pass along with...
22189 (pass_data_rtl_unswitch): ...new pass_data instance and...
22190 (make_pass_rtl_unswitch): ...new function.
22191 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22192 subclass of rtl_opt_pass along with...
22193 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22195 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22196 (pass_rtl_doloop): Convert from a global struct to a subclass of
22197 rtl_opt_pass along with...
22198 (pass_data_rtl_doloop): ...new pass_data instance and...
22199 (make_pass_rtl_doloop): ...new function.
22200 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22201 a subclass of rtl_opt_pass along with...
22202 (pass_data_lower_subreg): ...new pass_data instance and...
22203 (make_pass_lower_subreg): ...new function.
22204 (pass_lower_subreg2): Convert from a global struct to a subclass of
22205 rtl_opt_pass along with...
22206 (pass_data_lower_subreg2): ...new pass_data instance and...
22207 (make_pass_lower_subreg2): ...new function.
22208 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22209 struct to a subclass of ipa_opt_pass_d along with...
22210 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22211 (make_pass_ipa_lto_gimple_out): ...new function.
22212 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22213 of ipa_opt_pass_d along with...
22214 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22215 (make_pass_ipa_lto_finish_out): ...new function.
22216 * mode-switching.c (pass_mode_switching): Convert from a global struct
22217 to a subclass of rtl_opt_pass along with...
22218 (pass_data_mode_switching): ...new pass_data instance and...
22219 (make_pass_mode_switching): ...new function.
22220 * modulo-sched.c (pass_sms): Convert from a global struct to a
22221 subclass of rtl_opt_pass along with...
22222 (pass_data_sms): ...new pass_data instance and...
22223 (make_pass_sms): ...new function.
22224 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22225 subclass of gimple_opt_pass along with...
22226 (pass_data_expand_omp): ...new pass_data instance and...
22227 (make_pass_expand_omp): ...new function.
22228 (pass_lower_omp): Convert from a global struct to a subclass of
22229 gimple_opt_pass along with...
22230 (pass_data_lower_omp): ...new pass_data instance and...
22231 (make_pass_lower_omp): ...new function.
22232 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22233 of gimple_opt_pass along with...
22234 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22235 (make_pass_diagnose_omp_blocks): ...new function.
22236 * passes.c (pass_early_local_passes): Convert from a global struct to
22237 a subclass of simple_ipa_opt_pass along with...
22238 (pass_data_early_local_passes): ...new pass_data instance and...
22239 (make_pass_early_local_passes): ...new function.
22240 (pass_all_early_optimizations): Convert from a global struct to a
22241 subclass of gimple_opt_pass along with...
22242 (pass_data_all_early_optimizations): ...new pass_data instance and...
22243 (make_pass_all_early_optimizations): ...new function.
22244 (pass_all_optimizations): Convert from a global struct to a subclass
22245 of gimple_opt_pass along with...
22246 (pass_data_all_optimizations): ...new pass_data instance and...
22247 (make_pass_all_optimizations): ...new function.
22248 (pass_all_optimizations_g): Convert from a global struct to a subclass
22249 of gimple_opt_pass along with...
22250 (pass_data_all_optimizations_g): ...new pass_data instance and...
22251 (make_pass_all_optimizations_g): ...new function.
22252 (pass_rest_of_compilation): Convert from a global struct to a subclass
22253 of rtl_opt_pass along with...
22254 (pass_data_rest_of_compilation): ...new pass_data instance and...
22255 (make_pass_rest_of_compilation): ...new function.
22256 (pass_postreload): Convert from a global struct to a subclass of
22257 rtl_opt_pass along with...
22258 (pass_data_postreload): ...new pass_data instance and...
22259 (make_pass_postreload): ...new function.
22260 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22261 subclass of rtl_opt_pass along with...
22262 (pass_data_gcse2): ...new pass_data instance and...
22263 (make_pass_gcse2): ...new function.
22264 * postreload.c (pass_postreload_cse): Convert from a global struct to
22265 a subclass of rtl_opt_pass along with...
22266 (pass_data_postreload_cse): ...new pass_data instance and...
22267 (make_pass_postreload_cse): ...new function.
22268 * predict.c (pass_profile): Convert from a global struct to a subclass
22269 of gimple_opt_pass along with...
22270 (pass_data_profile): ...new pass_data instance and...
22271 (make_pass_profile): ...new function.
22272 (pass_strip_predict_hints): Convert from a global struct to a subclass
22273 of gimple_opt_pass along with...
22274 (pass_data_strip_predict_hints): ...new pass_data instance and...
22275 (make_pass_strip_predict_hints): ...new function.
22276 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22277 of rtl_opt_pass along with...
22278 (pass_data_peephole2): ...new pass_data instance and...
22279 (make_pass_peephole2): ...new function.
22280 (pass_split_all_insns): Convert from a global struct to a subclass of
22281 rtl_opt_pass along with...
22282 (pass_data_split_all_insns): ...new pass_data instance and...
22283 (make_pass_split_all_insns): ...new function.
22284 (pass_split_after_reload): Convert from a global struct to a subclass
22285 of rtl_opt_pass along with...
22286 (pass_data_split_after_reload): ...new pass_data instance and...
22287 (make_pass_split_after_reload): ...new function.
22288 (pass_split_before_regstack): Convert from a global struct to a
22289 subclass of rtl_opt_pass along with...
22290 (pass_data_split_before_regstack): ...new pass_data instance and...
22291 (make_pass_split_before_regstack): ...new function.
22292 (pass_split_before_sched2): Convert from a global struct to a subclass
22293 of rtl_opt_pass along with...
22294 (pass_data_split_before_sched2): ...new pass_data instance and...
22295 (make_pass_split_before_sched2): ...new function.
22296 (pass_split_for_shorten_branches): Convert from a global struct to a
22297 subclass of rtl_opt_pass along with...
22298 (pass_data_split_for_shorten_branches): ...new pass_data instance
22300 (make_pass_split_for_shorten_branches): ...new function.
22301 * ree.c (pass_ree): Convert from a global struct to a subclass of
22302 rtl_opt_pass along with...
22303 (pass_data_ree): ...new pass_data instance and...
22304 (make_pass_ree): ...new function.
22305 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22306 subclass of rtl_opt_pass along with...
22307 (pass_data_stack_regs): ...new pass_data instance and...
22308 (make_pass_stack_regs): ...new function.
22309 (pass_stack_regs_run): Convert from a global struct to a subclass of
22310 rtl_opt_pass along with...
22311 (pass_data_stack_regs_run): ...new pass_data instance and...
22312 (make_pass_stack_regs_run): ...new function.
22313 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22314 subclass of rtl_opt_pass along with...
22315 (pass_data_cprop_hardreg): ...new pass_data instance and...
22316 (make_pass_cprop_hardreg): ...new function.
22317 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22318 subclass of rtl_opt_pass along with...
22319 (pass_data_reginfo_init): ...new pass_data instance and...
22320 (make_pass_reginfo_init): ...new function.
22321 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22322 of rtl_opt_pass along with...
22323 (pass_data_regmove): ...new pass_data instance and...
22324 (make_pass_regmove): ...new function.
22325 * regrename.c (pass_regrename): Convert from a global struct to a
22326 subclass of rtl_opt_pass along with...
22327 (pass_data_regrename): ...new pass_data instance and...
22328 (make_pass_regrename): ...new function.
22329 * reorg.c (pass_delay_slots): Convert from a global struct to a
22330 subclass of rtl_opt_pass along with...
22331 (pass_data_delay_slots): ...new pass_data instance and...
22332 (make_pass_delay_slots): ...new function.
22333 (pass_machine_reorg): Convert from a global struct to a subclass of
22334 rtl_opt_pass along with...
22335 (pass_data_machine_reorg): ...new pass_data instance and...
22336 (make_pass_machine_reorg): ...new function.
22337 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22338 of rtl_opt_pass along with...
22339 (pass_data_sched): ...new pass_data instance and...
22340 (make_pass_sched): ...new function.
22341 (pass_sched2): Convert from a global struct to a subclass of
22342 rtl_opt_pass along with...
22343 (pass_data_sched2): ...new pass_data instance and...
22344 (make_pass_sched2): ...new function.
22345 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22346 to a subclass of rtl_opt_pass along with...
22347 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22348 (make_pass_stack_ptr_mod): ...new function.
22349 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22350 to a subclass of rtl_opt_pass along with...
22351 (pass_data_rtl_store_motion): ...new pass_data instance and...
22352 (make_pass_rtl_store_motion): ...new function.
22353 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22354 of gimple_opt_pass along with...
22355 (pass_data_tracer): ...new pass_data instance and...
22356 (make_pass_tracer): ...new function.
22357 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22358 to a subclass of gimple_opt_pass along with...
22359 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22360 (make_pass_diagnose_tm_blocks): ...new function.
22361 (pass_lower_tm): Convert from a global struct to a subclass of
22362 gimple_opt_pass along with...
22363 (pass_data_lower_tm): ...new pass_data instance and...
22364 (make_pass_lower_tm): ...new function.
22365 (pass_tm_init): Convert from a global struct to a subclass of
22366 gimple_opt_pass along with...
22367 (pass_data_tm_init): ...new pass_data instance and...
22368 (make_pass_tm_init): ...new function.
22369 (pass_tm_mark): Convert from a global struct to a subclass of
22370 gimple_opt_pass along with...
22371 (pass_data_tm_mark): ...new pass_data instance and...
22372 (make_pass_tm_mark): ...new function.
22373 (pass_tm_edges): Convert from a global struct to a subclass of
22374 gimple_opt_pass along with...
22375 (pass_data_tm_edges): ...new pass_data instance and...
22376 (make_pass_tm_edges): ...new function.
22377 (pass_tm_memopt): Convert from a global struct to a subclass of
22378 gimple_opt_pass along with...
22379 (pass_data_tm_memopt): ...new pass_data instance and...
22380 (make_pass_tm_memopt): ...new function.
22381 (pass_ipa_tm): Convert from a global struct to a subclass of
22382 simple_ipa_opt_pass along with...
22383 (pass_data_ipa_tm): ...new pass_data instance and...
22384 (make_pass_ipa_tm): ...new function.
22385 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22386 subclass of gimple_opt_pass along with...
22387 (pass_data_call_cdce): ...new pass_data instance and...
22388 (make_pass_call_cdce): ...new function.
22389 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22390 subclass of gimple_opt_pass along with...
22391 (pass_data_build_cfg): ...new pass_data instance and...
22392 (make_pass_build_cfg): ...new function.
22393 (pass_split_crit_edges): Convert from a global struct to a subclass of
22394 gimple_opt_pass along with...
22395 (pass_data_split_crit_edges): ...new pass_data instance and...
22396 (make_pass_split_crit_edges): ...new function.
22397 (pass_warn_function_return): Convert from a global struct to a
22398 subclass of gimple_opt_pass along with...
22399 (pass_data_warn_function_return): ...new pass_data instance and...
22400 (make_pass_warn_function_return): ...new function.
22401 (pass_warn_function_noreturn): Convert from a global struct to a
22402 subclass of gimple_opt_pass along with...
22403 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22404 (make_pass_warn_function_noreturn): ...new function.
22405 (pass_warn_unused_result): Convert from a global struct to a subclass
22406 of gimple_opt_pass along with...
22407 (pass_data_warn_unused_result): ...new pass_data instance and...
22408 (make_pass_warn_unused_result): ...new function.
22409 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22410 a subclass of gimple_opt_pass along with...
22411 (pass_data_merge_phi): ...new pass_data instance and...
22412 (make_pass_merge_phi): ...new function.
22413 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22414 a subclass of gimple_opt_pass along with...
22415 (pass_data_lower_complex): ...new pass_data instance and...
22416 (make_pass_lower_complex): ...new function.
22417 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22418 gimple_opt_pass along with...
22419 (pass_data_lower_complex_O0): ...new pass_data instance and...
22420 (make_pass_lower_complex_O0): ...new function.
22421 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22422 subclass of gimple_opt_pass along with...
22423 (pass_data_lower_eh): ...new pass_data instance and...
22424 (make_pass_lower_eh): ...new function.
22425 (pass_refactor_eh): Convert from a global struct to a subclass of
22426 gimple_opt_pass along with...
22427 (pass_data_refactor_eh): ...new pass_data instance and...
22428 (make_pass_refactor_eh): ...new function.
22429 (pass_lower_resx): Convert from a global struct to a subclass of
22430 gimple_opt_pass along with...
22431 (pass_data_lower_resx): ...new pass_data instance and...
22432 (make_pass_lower_resx): ...new function.
22433 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22434 of gimple_opt_pass along with...
22435 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22436 (make_pass_lower_eh_dispatch): ...new function.
22437 (pass_cleanup_eh): Convert from a global struct to a subclass of
22438 gimple_opt_pass along with...
22439 (pass_data_cleanup_eh): ...new pass_data instance and...
22440 (make_pass_cleanup_eh): ...new function.
22441 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22442 to a subclass of simple_ipa_opt_pass along with...
22443 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22444 (make_pass_ipa_lower_emutls): ...new function.
22445 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22446 a subclass of gimple_opt_pass along with...
22447 (pass_data_if_conversion): ...new pass_data instance and...
22448 (make_pass_if_conversion): ...new function.
22449 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22450 subclass of gimple_opt_pass along with...
22451 (pass_data_build_ssa): ...new pass_data instance and...
22452 (make_pass_build_ssa): ...new function.
22453 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22454 global struct to a subclass of gimple_opt_pass along with...
22455 (pass_data_loop_distribution): ...new pass_data instance and...
22456 (make_pass_loop_distribution): ...new function.
22457 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22458 subclass of gimple_opt_pass along with...
22459 (pass_data_mudflap_1): ...new pass_data instance and...
22460 (make_pass_mudflap_1): ...new function.
22461 (pass_mudflap_2): Convert from a global struct to a subclass of
22462 gimple_opt_pass along with...
22463 (pass_data_mudflap_2): ...new pass_data instance and...
22464 (make_pass_mudflap_2): ...new function.
22465 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22466 subclass of gimple_opt_pass along with...
22467 (pass_data_mudflap_1): ...new pass_data instance and...
22468 (make_pass_mudflap_1): ...new function.
22469 (pass_mudflap_2): Convert from a global struct to a subclass of
22470 gimple_opt_pass along with...
22471 (pass_data_mudflap_2): ...new pass_data instance and...
22472 (make_pass_mudflap_2): ...new function.
22473 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22474 gimple_opt_pass along with...
22475 (pass_data_nrv): ...new pass_data instance and...
22476 (make_pass_nrv): ...new function.
22477 (pass_return_slot): Convert from a global struct to a subclass of
22478 gimple_opt_pass along with...
22479 (pass_data_return_slot): ...new pass_data instance and...
22480 (make_pass_return_slot): ...new function.
22481 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22482 to a subclass of gimple_opt_pass along with...
22483 (pass_data_object_sizes): ...new pass_data instance and...
22484 (make_pass_object_sizes): ...new function.
22485 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22486 global struct to a subclass of gimple_opt_pass along with...
22487 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22489 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22490 (pass_fixup_cfg): Convert from a global struct to a subclass of
22491 gimple_opt_pass along with...
22492 (pass_data_fixup_cfg): ...new pass_data instance and...
22493 (make_pass_fixup_cfg): ...new function.
22494 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22495 (make_pass_mudflap_1): ...new function.
22496 (pass_mudflap_2): Replace declaration with that of...
22497 (make_pass_mudflap_2): ...new function.
22498 (pass_asan): Replace declaration with that of...
22499 (make_pass_asan): ...new function.
22500 (pass_asan_O0): Replace declaration with that of...
22501 (make_pass_asan_O0): ...new function.
22502 (pass_tsan): Replace declaration with that of...
22503 (make_pass_tsan): ...new function.
22504 (pass_tsan_O0): Replace declaration with that of...
22505 (make_pass_tsan_O0): ...new function.
22506 (pass_lower_cf): Replace declaration with that of...
22507 (make_pass_lower_cf): ...new function.
22508 (pass_refactor_eh): Replace declaration with that of...
22509 (make_pass_refactor_eh): ...new function.
22510 (pass_lower_eh): Replace declaration with that of...
22511 (make_pass_lower_eh): ...new function.
22512 (pass_lower_eh_dispatch): Replace declaration with that of...
22513 (make_pass_lower_eh_dispatch): ...new function.
22514 (pass_lower_resx): Replace declaration with that of...
22515 (make_pass_lower_resx): ...new function.
22516 (pass_build_cfg): Replace declaration with that of...
22517 (make_pass_build_cfg): ...new function.
22518 (pass_early_tree_profile): Replace declaration with that of...
22519 (make_pass_early_tree_profile): ...new function.
22520 (pass_cleanup_eh): Replace declaration with that of...
22521 (make_pass_cleanup_eh): ...new function.
22522 (pass_sra): Replace declaration with that of...
22523 (make_pass_sra): ...new function.
22524 (pass_sra_early): Replace declaration with that of...
22525 (make_pass_sra_early): ...new function.
22526 (pass_early_ipa_sra): Replace declaration with that of...
22527 (make_pass_early_ipa_sra): ...new function.
22528 (pass_tail_recursion): Replace declaration with that of...
22529 (make_pass_tail_recursion): ...new function.
22530 (pass_tail_calls): Replace declaration with that of...
22531 (make_pass_tail_calls): ...new function.
22532 (pass_tree_loop): Replace declaration with that of...
22533 (make_pass_tree_loop): ...new function.
22534 (pass_tree_loop_init): Replace declaration with that of...
22535 (make_pass_tree_loop_init): ...new function.
22536 (pass_lim): Replace declaration with that of...
22537 (make_pass_lim): ...new function.
22538 (pass_tree_unswitch): Replace declaration with that of...
22539 (make_pass_tree_unswitch): ...new function.
22540 (pass_predcom): Replace declaration with that of...
22541 (make_pass_predcom): ...new function.
22542 (pass_iv_canon): Replace declaration with that of...
22543 (make_pass_iv_canon): ...new function.
22544 (pass_scev_cprop): Replace declaration with that of...
22545 (make_pass_scev_cprop): ...new function.
22546 (pass_empty_loop): Replace declaration with that of...
22547 (make_pass_empty_loop): ...new function.
22548 (pass_record_bounds): Replace declaration with that of...
22549 (make_pass_record_bounds): ...new function.
22550 (pass_graphite): Replace declaration with that of...
22551 (make_pass_graphite): ...new function.
22552 (pass_graphite_transforms): Replace declaration with that of...
22553 (make_pass_graphite_transforms): ...new function.
22554 (pass_if_conversion): Replace declaration with that of...
22555 (make_pass_if_conversion): ...new function.
22556 (pass_loop_distribution): Replace declaration with that of...
22557 (make_pass_loop_distribution): ...new function.
22558 (pass_vectorize): Replace declaration with that of...
22559 (make_pass_vectorize): ...new function.
22560 (pass_slp_vectorize): Replace declaration with that of...
22561 (make_pass_slp_vectorize): ...new function.
22562 (pass_complete_unroll): Replace declaration with that of...
22563 (make_pass_complete_unroll): ...new function.
22564 (pass_complete_unrolli): Replace declaration with that of...
22565 (make_pass_complete_unrolli): ...new function.
22566 (pass_parallelize_loops): Replace declaration with that of...
22567 (make_pass_parallelize_loops): ...new function.
22568 (pass_loop_prefetch): Replace declaration with that of...
22569 (make_pass_loop_prefetch): ...new function.
22570 (pass_iv_optimize): Replace declaration with that of...
22571 (make_pass_iv_optimize): ...new function.
22572 (pass_tree_loop_done): Replace declaration with that of...
22573 (make_pass_tree_loop_done): ...new function.
22574 (pass_ch): Replace declaration with that of...
22575 (make_pass_ch): ...new function.
22576 (pass_ccp): Replace declaration with that of...
22577 (make_pass_ccp): ...new function.
22578 (pass_phi_only_cprop): Replace declaration with that of...
22579 (make_pass_phi_only_cprop): ...new function.
22580 (pass_build_ssa): Replace declaration with that of...
22581 (make_pass_build_ssa): ...new function.
22582 (pass_build_alias): Replace declaration with that of...
22583 (make_pass_build_alias): ...new function.
22584 (pass_build_ealias): Replace declaration with that of...
22585 (make_pass_build_ealias): ...new function.
22586 (pass_dominator): Replace declaration with that of...
22587 (make_pass_dominator): ...new function.
22588 (pass_dce): Replace declaration with that of...
22589 (make_pass_dce): ...new function.
22590 (pass_dce_loop): Replace declaration with that of...
22591 (make_pass_dce_loop): ...new function.
22592 (pass_cd_dce): Replace declaration with that of...
22593 (make_pass_cd_dce): ...new function.
22594 (pass_call_cdce): Replace declaration with that of...
22595 (make_pass_call_cdce): ...new function.
22596 (pass_merge_phi): Replace declaration with that of...
22597 (make_pass_merge_phi): ...new function.
22598 (pass_split_crit_edges): Replace declaration with that of...
22599 (make_pass_split_crit_edges): ...new function.
22600 (pass_pre): Replace declaration with that of...
22601 (make_pass_pre): ...new function.
22602 (pass_profile): Replace declaration with that of...
22603 (make_pass_profile): ...new function.
22604 (pass_strip_predict_hints): Replace declaration with that of...
22605 (make_pass_strip_predict_hints): ...new function.
22606 (pass_lower_complex_O0): Replace declaration with that of...
22607 (make_pass_lower_complex_O0): ...new function.
22608 (pass_lower_complex): Replace declaration with that of...
22609 (make_pass_lower_complex): ...new function.
22610 (pass_lower_vector): Replace declaration with that of...
22611 (make_pass_lower_vector): ...new function.
22612 (pass_lower_vector_ssa): Replace declaration with that of...
22613 (make_pass_lower_vector_ssa): ...new function.
22614 (pass_lower_omp): Replace declaration with that of...
22615 (make_pass_lower_omp): ...new function.
22616 (pass_diagnose_omp_blocks): Replace declaration with that of...
22617 (make_pass_diagnose_omp_blocks): ...new function.
22618 (pass_expand_omp): Replace declaration with that of...
22619 (make_pass_expand_omp): ...new function.
22620 (pass_expand_omp_ssa): Replace declaration with that of...
22621 (make_pass_expand_omp_ssa): ...new function.
22622 (pass_object_sizes): Replace declaration with that of...
22623 (make_pass_object_sizes): ...new function.
22624 (pass_strlen): Replace declaration with that of...
22625 (make_pass_strlen): ...new function.
22626 (pass_fold_builtins): Replace declaration with that of...
22627 (make_pass_fold_builtins): ...new function.
22628 (pass_stdarg): Replace declaration with that of...
22629 (make_pass_stdarg): ...new function.
22630 (pass_early_warn_uninitialized): Replace declaration with that of...
22631 (make_pass_early_warn_uninitialized): ...new function.
22632 (pass_late_warn_uninitialized): Replace declaration with that of...
22633 (make_pass_late_warn_uninitialized): ...new function.
22634 (pass_cse_reciprocals): Replace declaration with that of...
22635 (make_pass_cse_reciprocals): ...new function.
22636 (pass_cse_sincos): Replace declaration with that of...
22637 (make_pass_cse_sincos): ...new function.
22638 (pass_optimize_bswap): Replace declaration with that of...
22639 (make_pass_optimize_bswap): ...new function.
22640 (pass_optimize_widening_mul): Replace declaration with that of...
22641 (make_pass_optimize_widening_mul): ...new function.
22642 (pass_warn_function_return): Replace declaration with that of...
22643 (make_pass_warn_function_return): ...new function.
22644 (pass_warn_function_noreturn): Replace declaration with that of...
22645 (make_pass_warn_function_noreturn): ...new function.
22646 (pass_cselim): Replace declaration with that of...
22647 (make_pass_cselim): ...new function.
22648 (pass_phiopt): Replace declaration with that of...
22649 (make_pass_phiopt): ...new function.
22650 (pass_forwprop): Replace declaration with that of...
22651 (make_pass_forwprop): ...new function.
22652 (pass_phiprop): Replace declaration with that of...
22653 (make_pass_phiprop): ...new function.
22654 (pass_tree_ifcombine): Replace declaration with that of...
22655 (make_pass_tree_ifcombine): ...new function.
22656 (pass_dse): Replace declaration with that of...
22657 (make_pass_dse): ...new function.
22658 (pass_nrv): Replace declaration with that of...
22659 (make_pass_nrv): ...new function.
22660 (pass_rename_ssa_copies): Replace declaration with that of...
22661 (make_pass_rename_ssa_copies): ...new function.
22662 (pass_sink_code): Replace declaration with that of...
22663 (make_pass_sink_code): ...new function.
22664 (pass_fre): Replace declaration with that of...
22665 (make_pass_fre): ...new function.
22666 (pass_check_data_deps): Replace declaration with that of...
22667 (make_pass_check_data_deps): ...new function.
22668 (pass_copy_prop): Replace declaration with that of...
22669 (make_pass_copy_prop): ...new function.
22670 (pass_vrp): Replace declaration with that of...
22671 (make_pass_vrp): ...new function.
22672 (pass_uncprop): Replace declaration with that of...
22673 (make_pass_uncprop): ...new function.
22674 (pass_return_slot): Replace declaration with that of...
22675 (make_pass_return_slot): ...new function.
22676 (pass_reassoc): Replace declaration with that of...
22677 (make_pass_reassoc): ...new function.
22678 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22679 (make_pass_rebuild_cgraph_edges): ...new function.
22680 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22681 (make_pass_remove_cgraph_callee_edges): ...new function.
22682 (pass_build_cgraph_edges): Replace declaration with that of...
22683 (make_pass_build_cgraph_edges): ...new function.
22684 (pass_local_pure_const): Replace declaration with that of...
22685 (make_pass_local_pure_const): ...new function.
22686 (pass_tracer): Replace declaration with that of...
22687 (make_pass_tracer): ...new function.
22688 (pass_warn_unused_result): Replace declaration with that of...
22689 (make_pass_warn_unused_result): ...new function.
22690 (pass_diagnose_tm_blocks): Replace declaration with that of...
22691 (make_pass_diagnose_tm_blocks): ...new function.
22692 (pass_lower_tm): Replace declaration with that of...
22693 (make_pass_lower_tm): ...new function.
22694 (pass_tm_init): Replace declaration with that of...
22695 (make_pass_tm_init): ...new function.
22696 (pass_tm_mark): Replace declaration with that of...
22697 (make_pass_tm_mark): ...new function.
22698 (pass_tm_memopt): Replace declaration with that of...
22699 (make_pass_tm_memopt): ...new function.
22700 (pass_tm_edges): Replace declaration with that of...
22701 (make_pass_tm_edges): ...new function.
22702 (pass_split_functions): Replace declaration with that of...
22703 (make_pass_split_functions): ...new function.
22704 (pass_feedback_split_functions): Replace declaration with that of...
22705 (make_pass_feedback_split_functions): ...new function.
22706 (pass_strength_reduction): Replace declaration with that of...
22707 (make_pass_strength_reduction): ...new function.
22708 (pass_ipa_lower_emutls): Replace declaration with that of...
22709 (make_pass_ipa_lower_emutls): ...new function.
22710 (pass_ipa_function_and_variable_visibility): Replace declaration with
22712 (make_pass_ipa_function_and_variable_visibility): ...new function.
22713 (pass_ipa_tree_profile): Replace declaration with that of...
22714 (make_pass_ipa_tree_profile): ...new function.
22715 (pass_early_local_passes): Replace declaration with that of...
22716 (make_pass_early_local_passes): ...new function.
22717 (pass_ipa_whole_program_visibility): Replace declaration with that
22719 (make_pass_ipa_whole_program_visibility): ...new function.
22720 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22721 (make_pass_ipa_lto_gimple_out): ...new function.
22722 (pass_ipa_increase_alignment): Replace declaration with that of...
22723 (make_pass_ipa_increase_alignment): ...new function.
22724 (pass_ipa_inline): Replace declaration with that of...
22725 (make_pass_ipa_inline): ...new function.
22726 (pass_ipa_free_lang_data): Replace declaration with that of...
22727 (make_pass_ipa_free_lang_data): ...new function.
22728 (pass_ipa_free_inline_summary): Replace declaration with that of...
22729 (make_pass_ipa_free_inline_summary): ...new function.
22730 (pass_ipa_cp): Replace declaration with that of...
22731 (make_pass_ipa_cp): ...new function.
22732 (pass_ipa_reference): Replace declaration with that of...
22733 (make_pass_ipa_reference): ...new function.
22734 (pass_ipa_pure_const): Replace declaration with that of...
22735 (make_pass_ipa_pure_const): ...new function.
22736 (pass_ipa_pta): Replace declaration with that of...
22737 (make_pass_ipa_pta): ...new function.
22738 (pass_ipa_lto_finish_out): Replace declaration with that of...
22739 (make_pass_ipa_lto_finish_out): ...new function.
22740 (pass_ipa_tm): Replace declaration with that of...
22741 (make_pass_ipa_tm): ...new function.
22742 (pass_ipa_profile): Replace declaration with that of...
22743 (make_pass_ipa_profile): ...new function.
22744 (pass_ipa_cdtor_merge): Replace declaration with that of...
22745 (make_pass_ipa_cdtor_merge): ...new function.
22746 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22748 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22749 (pass_init_datastructures): Replace declaration with that of...
22750 (make_pass_init_datastructures): ...new function.
22751 (pass_fixup_cfg): Replace declaration with that of...
22752 (make_pass_fixup_cfg): ...new function.
22753 (pass_expand): Replace declaration with that of...
22754 (make_pass_expand): ...new function.
22755 (pass_instantiate_virtual_regs): Replace declaration with that of...
22756 (make_pass_instantiate_virtual_regs): ...new function.
22757 (pass_rtl_fwprop): Replace declaration with that of...
22758 (make_pass_rtl_fwprop): ...new function.
22759 (pass_rtl_fwprop_addr): Replace declaration with that of...
22760 (make_pass_rtl_fwprop_addr): ...new function.
22761 (pass_jump): Replace declaration with that of...
22762 (make_pass_jump): ...new function.
22763 (pass_jump2): Replace declaration with that of...
22764 (make_pass_jump2): ...new function.
22765 (pass_lower_subreg): Replace declaration with that of...
22766 (make_pass_lower_subreg): ...new function.
22767 (pass_cse): Replace declaration with that of...
22768 (make_pass_cse): ...new function.
22769 (pass_fast_rtl_dce): Replace declaration with that of...
22770 (make_pass_fast_rtl_dce): ...new function.
22771 (pass_ud_rtl_dce): Replace declaration with that of...
22772 (make_pass_ud_rtl_dce): ...new function.
22773 (pass_rtl_dce): Replace declaration with that of...
22774 (make_pass_rtl_dce): ...new function.
22775 (pass_rtl_dse1): Replace declaration with that of...
22776 (make_pass_rtl_dse1): ...new function.
22777 (pass_rtl_dse2): Replace declaration with that of...
22778 (make_pass_rtl_dse2): ...new function.
22779 (pass_rtl_dse3): Replace declaration with that of...
22780 (make_pass_rtl_dse3): ...new function.
22781 (pass_rtl_cprop): Replace declaration with that of...
22782 (make_pass_rtl_cprop): ...new function.
22783 (pass_rtl_pre): Replace declaration with that of...
22784 (make_pass_rtl_pre): ...new function.
22785 (pass_rtl_hoist): Replace declaration with that of...
22786 (make_pass_rtl_hoist): ...new function.
22787 (pass_rtl_store_motion): Replace declaration with that of...
22788 (make_pass_rtl_store_motion): ...new function.
22789 (pass_cse_after_global_opts): Replace declaration with that of...
22790 (make_pass_cse_after_global_opts): ...new function.
22791 (pass_rtl_ifcvt): Replace declaration with that of...
22792 (make_pass_rtl_ifcvt): ...new function.
22793 (pass_into_cfg_layout_mode): Replace declaration with that of...
22794 (make_pass_into_cfg_layout_mode): ...new function.
22795 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22796 (make_pass_outof_cfg_layout_mode): ...new function.
22797 (pass_loop2): Replace declaration with that of...
22798 (make_pass_loop2): ...new function.
22799 (pass_rtl_loop_init): Replace declaration with that of...
22800 (make_pass_rtl_loop_init): ...new function.
22801 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22802 (make_pass_rtl_move_loop_invariants): ...new function.
22803 (pass_rtl_unswitch): Replace declaration with that of...
22804 (make_pass_rtl_unswitch): ...new function.
22805 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22806 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22807 (pass_rtl_doloop): Replace declaration with that of...
22808 (make_pass_rtl_doloop): ...new function.
22809 (pass_rtl_loop_done): Replace declaration with that of...
22810 (make_pass_rtl_loop_done): ...new function.
22811 (pass_web): Replace declaration with that of...
22812 (make_pass_web): ...new function.
22813 (pass_cse2): Replace declaration with that of...
22814 (make_pass_cse2): ...new function.
22815 (pass_df_initialize_opt): Replace declaration with that of...
22816 (make_pass_df_initialize_opt): ...new function.
22817 (pass_df_initialize_no_opt): Replace declaration with that of...
22818 (make_pass_df_initialize_no_opt): ...new function.
22819 (pass_reginfo_init): Replace declaration with that of...
22820 (make_pass_reginfo_init): ...new function.
22821 (pass_inc_dec): Replace declaration with that of...
22822 (make_pass_inc_dec): ...new function.
22823 (pass_stack_ptr_mod): Replace declaration with that of...
22824 (make_pass_stack_ptr_mod): ...new function.
22825 (pass_initialize_regs): Replace declaration with that of...
22826 (make_pass_initialize_regs): ...new function.
22827 (pass_combine): Replace declaration with that of...
22828 (make_pass_combine): ...new function.
22829 (pass_if_after_combine): Replace declaration with that of...
22830 (make_pass_if_after_combine): ...new function.
22831 (pass_ree): Replace declaration with that of...
22832 (make_pass_ree): ...new function.
22833 (pass_partition_blocks): Replace declaration with that of...
22834 (make_pass_partition_blocks): ...new function.
22835 (pass_match_asm_constraints): Replace declaration with that of...
22836 (make_pass_match_asm_constraints): ...new function.
22837 (pass_regmove): Replace declaration with that of...
22838 (make_pass_regmove): ...new function.
22839 (pass_split_all_insns): Replace declaration with that of...
22840 (make_pass_split_all_insns): ...new function.
22841 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22842 (make_pass_fast_rtl_byte_dce): ...new function.
22843 (pass_lower_subreg2): Replace declaration with that of...
22844 (make_pass_lower_subreg2): ...new function.
22845 (pass_mode_switching): Replace declaration with that of...
22846 (make_pass_mode_switching): ...new function.
22847 (pass_sms): Replace declaration with that of...
22848 (make_pass_sms): ...new function.
22849 (pass_sched): Replace declaration with that of...
22850 (make_pass_sched): ...new function.
22851 (pass_ira): Replace declaration with that of...
22852 (make_pass_ira): ...new function.
22853 (pass_reload): Replace declaration with that of...
22854 (make_pass_reload): ...new function.
22855 (pass_clean_state): Replace declaration with that of...
22856 (make_pass_clean_state): ...new function.
22857 (pass_branch_prob): Replace declaration with that of...
22858 (make_pass_branch_prob): ...new function.
22859 (pass_value_profile_transformations): Replace declaration with that
22861 (make_pass_value_profile_transformations): ...new function.
22862 (pass_postreload_cse): Replace declaration with that of...
22863 (make_pass_postreload_cse): ...new function.
22864 (pass_gcse2): Replace declaration with that of...
22865 (make_pass_gcse2): ...new function.
22866 (pass_split_after_reload): Replace declaration with that of...
22867 (make_pass_split_after_reload): ...new function.
22868 (pass_branch_target_load_optimize1): Replace declaration with that
22870 (make_pass_branch_target_load_optimize1): ...new function.
22871 (pass_thread_prologue_and_epilogue): Replace declaration with that
22873 (make_pass_thread_prologue_and_epilogue): ...new function.
22874 (pass_stack_adjustments): Replace declaration with that of...
22875 (make_pass_stack_adjustments): ...new function.
22876 (pass_peephole2): Replace declaration with that of...
22877 (make_pass_peephole2): ...new function.
22878 (pass_if_after_reload): Replace declaration with that of...
22879 (make_pass_if_after_reload): ...new function.
22880 (pass_regrename): Replace declaration with that of...
22881 (make_pass_regrename): ...new function.
22882 (pass_cprop_hardreg): Replace declaration with that of...
22883 (make_pass_cprop_hardreg): ...new function.
22884 (pass_reorder_blocks): Replace declaration with that of...
22885 (make_pass_reorder_blocks): ...new function.
22886 (pass_branch_target_load_optimize2): Replace declaration with that
22888 (make_pass_branch_target_load_optimize2): ...new function.
22889 (pass_leaf_regs): Replace declaration with that of...
22890 (make_pass_leaf_regs): ...new function.
22891 (pass_split_before_sched2): Replace declaration with that of...
22892 (make_pass_split_before_sched2): ...new function.
22893 (pass_compare_elim_after_reload): Replace declaration with that of...
22894 (make_pass_compare_elim_after_reload): ...new function.
22895 (pass_sched2): Replace declaration with that of...
22896 (make_pass_sched2): ...new function.
22897 (pass_stack_regs): Replace declaration with that of...
22898 (make_pass_stack_regs): ...new function.
22899 (pass_stack_regs_run): Replace declaration with that of...
22900 (make_pass_stack_regs_run): ...new function.
22901 (pass_df_finish): Replace declaration with that of...
22902 (make_pass_df_finish): ...new function.
22903 (pass_compute_alignments): Replace declaration with that of...
22904 (make_pass_compute_alignments): ...new function.
22905 (pass_duplicate_computed_gotos): Replace declaration with that of...
22906 (make_pass_duplicate_computed_gotos): ...new function.
22907 (pass_variable_tracking): Replace declaration with that of...
22908 (make_pass_variable_tracking): ...new function.
22909 (pass_free_cfg): Replace declaration with that of...
22910 (make_pass_free_cfg): ...new function.
22911 (pass_machine_reorg): Replace declaration with that of...
22912 (make_pass_machine_reorg): ...new function.
22913 (pass_cleanup_barriers): Replace declaration with that of...
22914 (make_pass_cleanup_barriers): ...new function.
22915 (pass_delay_slots): Replace declaration with that of...
22916 (make_pass_delay_slots): ...new function.
22917 (pass_split_for_shorten_branches): Replace declaration with that of...
22918 (make_pass_split_for_shorten_branches): ...new function.
22919 (pass_split_before_regstack): Replace declaration with that of...
22920 (make_pass_split_before_regstack): ...new function.
22921 (pass_convert_to_eh_region_ranges): Replace declaration with that
22923 (make_pass_convert_to_eh_region_ranges): ...new function.
22924 (pass_shorten_branches): Replace declaration with that of...
22925 (make_pass_shorten_branches): ...new function.
22926 (pass_set_nothrow_function_flags): Replace declaration with that of...
22927 (make_pass_set_nothrow_function_flags): ...new function.
22928 (pass_dwarf2_frame): Replace declaration with that of...
22929 (make_pass_dwarf2_frame): ...new function.
22930 (pass_final): Replace declaration with that of...
22931 (make_pass_final): ...new function.
22932 (pass_rtl_seqabstr): Replace declaration with that of...
22933 (make_pass_rtl_seqabstr): ...new function.
22934 (pass_release_ssa_names): Replace declaration with that of...
22935 (make_pass_release_ssa_names): ...new function.
22936 (pass_early_inline): Replace declaration with that of...
22937 (make_pass_early_inline): ...new function.
22938 (pass_inline_parameters): Replace declaration with that of...
22939 (make_pass_inline_parameters): ...new function.
22940 (pass_update_address_taken): Replace declaration with that of...
22941 (make_pass_update_address_taken): ...new function.
22942 (pass_convert_switch): Replace declaration with that of...
22943 (make_pass_convert_switch): ...new function.
22944 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22945 to a subclass of simple_ipa_opt_pass along with...
22946 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22947 (make_pass_ipa_tree_profile): ...new function.
22948 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22949 subclass of gimple_opt_pass along with...
22950 (pass_data_sra_early): ...new pass_data instance and...
22951 (make_pass_sra_early): ...new function.
22952 (pass_sra): Convert from a global struct to a subclass of
22953 gimple_opt_pass along with...
22954 (pass_data_sra): ...new pass_data instance and...
22955 (make_pass_sra): ...new function.
22956 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22957 gimple_opt_pass along with...
22958 (pass_data_early_ipa_sra): ...new pass_data instance and...
22959 (make_pass_early_ipa_sra): ...new function.
22960 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22961 subclass of gimple_opt_pass along with...
22962 (pass_data_ccp): ...new pass_data instance and...
22963 (make_pass_ccp): ...new function.
22964 (pass_fold_builtins): Convert from a global struct to a subclass of
22965 gimple_opt_pass along with...
22966 (pass_data_fold_builtins): ...new pass_data instance and...
22967 (make_pass_fold_builtins): ...new function.
22968 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22969 subclass of gimple_opt_pass along with...
22970 (pass_data_copy_prop): ...new pass_data instance and...
22971 (make_pass_copy_prop): ...new function.
22972 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22973 global struct to a subclass of gimple_opt_pass along with...
22974 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22975 (make_pass_rename_ssa_copies): ...new function.
22976 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22977 subclass of gimple_opt_pass along with...
22978 (pass_data_dce): ...new pass_data instance and...
22979 (make_pass_dce): ...new function.
22980 (pass_dce_loop): Convert from a global struct to a subclass of
22981 gimple_opt_pass along with...
22982 (pass_data_dce_loop): ...new pass_data instance and...
22983 (make_pass_dce_loop): ...new function.
22984 (pass_cd_dce): Convert from a global struct to a subclass of
22985 gimple_opt_pass along with...
22986 (pass_data_cd_dce): ...new pass_data instance and...
22987 (make_pass_cd_dce): ...new function.
22988 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22989 subclass of gimple_opt_pass along with...
22990 (pass_data_dominator): ...new pass_data instance and...
22991 (make_pass_dominator): ...new function.
22992 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22993 gimple_opt_pass along with...
22994 (pass_data_phi_only_cprop): ...new pass_data instance and...
22995 (make_pass_phi_only_cprop): ...new function.
22996 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22997 subclass of gimple_opt_pass along with...
22998 (pass_data_dse): ...new pass_data instance and...
22999 (make_pass_dse): ...new function.
23000 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23001 a subclass of gimple_opt_pass along with...
23002 (pass_data_forwprop): ...new pass_data instance and...
23003 (make_pass_forwprop): ...new function.
23004 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23005 struct to a subclass of gimple_opt_pass along with...
23006 (pass_data_tree_ifcombine): ...new pass_data instance and...
23007 (make_pass_tree_ifcombine): ...new function.
23008 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23009 subclass of gimple_opt_pass along with...
23010 (pass_data_ch): ...new pass_data instance and...
23011 (make_pass_ch): ...new function.
23012 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23013 subclass of gimple_opt_pass along with...
23014 (pass_data_tree_loop): ...new pass_data instance and...
23015 (make_pass_tree_loop): ...new function.
23016 (pass_tree_loop_init): Convert from a global struct to a subclass of
23017 gimple_opt_pass along with...
23018 (pass_data_tree_loop_init): ...new pass_data instance and...
23019 (make_pass_tree_loop_init): ...new function.
23020 (pass_lim): Convert from a global struct to a subclass of
23021 gimple_opt_pass along with...
23022 (pass_data_lim): ...new pass_data instance and...
23023 (make_pass_lim): ...new function.
23024 (pass_tree_unswitch): Convert from a global struct to a subclass of
23025 gimple_opt_pass along with...
23026 (pass_data_tree_unswitch): ...new pass_data instance and...
23027 (make_pass_tree_unswitch): ...new function.
23028 (pass_predcom): Convert from a global struct to a subclass of
23029 gimple_opt_pass along with...
23030 (pass_data_predcom): ...new pass_data instance and...
23031 (make_pass_predcom): ...new function.
23032 (pass_vectorize): Convert from a global struct to a subclass of
23033 gimple_opt_pass along with...
23034 (pass_data_vectorize): ...new pass_data instance and...
23035 (make_pass_vectorize): ...new function.
23036 (pass_graphite): Convert from a global struct to a subclass of
23037 gimple_opt_pass along with...
23038 (pass_data_graphite): ...new pass_data instance and...
23039 (make_pass_graphite): ...new function.
23040 (pass_graphite_transforms): Convert from a global struct to a subclass
23041 of gimple_opt_pass along with...
23042 (pass_data_graphite_transforms): ...new pass_data instance and...
23043 (make_pass_graphite_transforms): ...new function.
23044 (pass_check_data_deps): Convert from a global struct to a subclass of
23045 gimple_opt_pass along with...
23046 (pass_data_check_data_deps): ...new pass_data instance and...
23047 (make_pass_check_data_deps): ...new function.
23048 (pass_iv_canon): Convert from a global struct to a subclass of
23049 gimple_opt_pass along with...
23050 (pass_data_iv_canon): ...new pass_data instance and...
23051 (make_pass_iv_canon): ...new function.
23052 (pass_scev_cprop): Convert from a global struct to a subclass of
23053 gimple_opt_pass along with...
23054 (pass_data_scev_cprop): ...new pass_data instance and...
23055 (make_pass_scev_cprop): ...new function.
23056 (pass_record_bounds): Convert from a global struct to a subclass of
23057 gimple_opt_pass along with...
23058 (pass_data_record_bounds): ...new pass_data instance and...
23059 (make_pass_record_bounds): ...new function.
23060 (pass_complete_unroll): Convert from a global struct to a subclass of
23061 gimple_opt_pass along with...
23062 (pass_data_complete_unroll): ...new pass_data instance and...
23063 (make_pass_complete_unroll): ...new function.
23064 (pass_complete_unrolli): Convert from a global struct to a subclass of
23065 gimple_opt_pass along with...
23066 (pass_data_complete_unrolli): ...new pass_data instance and...
23067 (make_pass_complete_unrolli): ...new function.
23068 (pass_parallelize_loops): Convert from a global struct to a subclass
23069 of gimple_opt_pass along with...
23070 (pass_data_parallelize_loops): ...new pass_data instance and...
23071 (make_pass_parallelize_loops): ...new function.
23072 (pass_loop_prefetch): Convert from a global struct to a subclass of
23073 gimple_opt_pass along with...
23074 (pass_data_loop_prefetch): ...new pass_data instance and...
23075 (make_pass_loop_prefetch): ...new function.
23076 (pass_iv_optimize): Convert from a global struct to a subclass of
23077 gimple_opt_pass along with...
23078 (pass_data_iv_optimize): ...new pass_data instance and...
23079 (make_pass_iv_optimize): ...new function.
23080 (pass_tree_loop_done): Convert from a global struct to a subclass of
23081 gimple_opt_pass along with...
23082 (pass_data_tree_loop_done): ...new pass_data instance and...
23083 (make_pass_tree_loop_done): ...new function.
23084 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23085 struct to a subclass of gimple_opt_pass along with...
23086 (pass_data_cse_reciprocals): ...new pass_data instance and...
23087 (make_pass_cse_reciprocals): ...new function.
23088 (pass_cse_sincos): Convert from a global struct to a subclass of
23089 gimple_opt_pass along with...
23090 (pass_data_cse_sincos): ...new pass_data instance and...
23091 (make_pass_cse_sincos): ...new function.
23092 (pass_optimize_bswap): Convert from a global struct to a subclass of
23093 gimple_opt_pass along with...
23094 (pass_data_optimize_bswap): ...new pass_data instance and...
23095 (make_pass_optimize_bswap): ...new function.
23096 (pass_optimize_widening_mul): Convert from a global struct to a
23097 subclass of gimple_opt_pass along with...
23098 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23099 (make_pass_optimize_widening_mul): ...new function.
23100 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23101 subclass of gimple_opt_pass along with...
23102 (pass_data_phiopt): ...new pass_data instance and...
23103 (make_pass_phiopt): ...new function.
23104 (pass_cselim): Convert from a global struct to a subclass of
23105 gimple_opt_pass along with...
23106 (pass_data_cselim): ...new pass_data instance and...
23107 (make_pass_cselim): ...new function.
23108 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23109 subclass of gimple_opt_pass along with...
23110 (pass_data_phiprop): ...new pass_data instance and...
23111 (make_pass_phiprop): ...new function.
23112 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23113 subclass of gimple_opt_pass along with...
23114 (pass_data_pre): ...new pass_data instance and...
23115 (make_pass_pre): ...new function.
23116 (pass_fre): Convert from a global struct to a subclass of
23117 gimple_opt_pass along with...
23118 (pass_data_fre): ...new pass_data instance and...
23119 (make_pass_fre): ...new function.
23120 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23121 subclass of gimple_opt_pass along with...
23122 (pass_data_reassoc): ...new pass_data instance and...
23123 (make_pass_reassoc): ...new function.
23124 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23125 subclass of gimple_opt_pass along with...
23126 (pass_data_sink_code): ...new pass_data instance and...
23127 (make_pass_sink_code): ...new function.
23128 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23129 subclass of gimple_opt_pass along with...
23130 (pass_data_strlen): ...new pass_data instance and...
23131 (make_pass_strlen): ...new function.
23132 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23133 struct to a subclass of gimple_opt_pass along with...
23134 (pass_data_build_alias): ...new pass_data instance and...
23135 (make_pass_build_alias): ...new function.
23136 (pass_build_ealias): Convert from a global struct to a subclass of
23137 gimple_opt_pass along with...
23138 (pass_data_build_ealias): ...new pass_data instance and...
23139 (make_pass_build_ealias): ...new function.
23140 (pass_ipa_pta): Convert from a global struct to a subclass of
23141 simple_ipa_opt_pass along with...
23142 (pass_data_ipa_pta): ...new pass_data instance and...
23143 (make_pass_ipa_pta): ...new function.
23144 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23145 subclass of gimple_opt_pass along with...
23146 (pass_data_uncprop): ...new pass_data instance and...
23147 (make_pass_uncprop): ...new function.
23148 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23149 global struct to a subclass of gimple_opt_pass along with...
23150 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23151 (make_pass_late_warn_uninitialized): ...new function.
23152 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23153 to a subclass of gimple_opt_pass along with...
23154 (pass_data_init_datastructures): ...new pass_data instance and...
23155 (make_pass_init_datastructures): ...new function.
23156 (pass_early_warn_uninitialized): Convert from a global struct to a
23157 subclass of gimple_opt_pass along with...
23158 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23159 (make_pass_early_warn_uninitialized): ...new function.
23160 (pass_update_address_taken): Convert from a global struct to a
23161 subclass of gimple_opt_pass along with...
23162 (pass_data_update_address_taken): ...new pass_data instance and...
23163 (make_pass_update_address_taken): ...new function.
23164 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23165 struct to a subclass of gimple_opt_pass along with...
23166 (pass_data_release_ssa_names): ...new pass_data instance and...
23167 (make_pass_release_ssa_names): ...new function.
23168 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23169 subclass of gimple_opt_pass along with...
23170 (pass_data_stdarg): ...new pass_data instance and...
23171 (make_pass_stdarg): ...new function.
23172 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23173 global struct to a subclass of gimple_opt_pass along with...
23174 (pass_data_convert_switch): ...new pass_data instance and...
23175 (make_pass_convert_switch): ...new function.
23176 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23177 to a subclass of gimple_opt_pass along with...
23178 (pass_data_tail_recursion): ...new pass_data instance and...
23179 (make_pass_tail_recursion): ...new function.
23180 (pass_tail_calls): Convert from a global struct to a subclass of
23181 gimple_opt_pass along with...
23182 (pass_data_tail_calls): ...new pass_data instance and...
23183 (make_pass_tail_calls): ...new function.
23184 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23185 struct to a subclass of gimple_opt_pass along with...
23186 (pass_data_lower_vector): ...new pass_data instance and...
23187 (make_pass_lower_vector): ...new function.
23188 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23189 gimple_opt_pass along with...
23190 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23191 (make_pass_lower_vector_ssa): ...new function.
23192 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23193 to a subclass of gimple_opt_pass along with...
23194 (pass_data_slp_vectorize): ...new pass_data instance and...
23195 (make_pass_slp_vectorize): ...new function.
23196 (pass_ipa_increase_alignment): Convert from a global struct to a
23197 subclass of simple_ipa_opt_pass along with...
23198 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23199 (make_pass_ipa_increase_alignment): ...new function.
23200 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23201 gimple_opt_pass along with...
23202 (pass_data_vrp): ...new pass_data instance and...
23203 (make_pass_vrp): ...new function.
23204 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23205 subclass of simple_ipa_opt_pass along with...
23206 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23207 (make_pass_ipa_free_lang_data): ...new function.
23208 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23209 gimple_opt_pass along with...
23210 (pass_data_tsan): ...new pass_data instance and...
23211 (make_pass_tsan): ...new function.
23212 (pass_tsan_O0): Convert from a global struct to a subclass of
23213 gimple_opt_pass along with...
23214 (pass_data_tsan_O0): ...new pass_data instance and...
23215 (make_pass_tsan_O0): ...new function.
23216 * var-tracking.c (pass_variable_tracking): Convert from a global
23217 struct to a subclass of rtl_opt_pass along with...
23218 (pass_data_variable_tracking): ...new pass_data instance and...
23219 (make_pass_variable_tracking): ...new function.
23220 * web.c (pass_web): Convert from a global struct to a subclass of
23221 rtl_opt_pass along with...
23222 (pass_data_web): ...new pass_data instance and...
23223 (make_pass_web): ...new function.
23224 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23225 declaration with that of...
23226 (make_pass_mode_switch_use): ...new function.
23227 (pass_resolve_sw_modes): Replace declaration with that of...
23228 (make_pass_resolve_sw_modes): ...new function.
23229 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23230 from a global struct to a subclass of rtl_opt_pass along with...
23231 (pass_data_mode_switch_use): ...new pass_data instance and...
23232 (make_pass_mode_switch_use): ...new function.
23233 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23234 from a global struct to a subclass of rtl_opt_pass along with...
23235 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23236 (make_pass_resolve_sw_modes): ...new function.
23237 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23238 struct to a subclass of rtl_opt_pass along with...
23239 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23240 (make_pass_insert_vzeroupper): ...new function.
23241 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23242 global struct to a subclass of rtl_opt_pass along with...
23243 (pass_data_work_around_errata): ...new pass_data instance and...
23244 (make_pass_work_around_errata): ...new function.
23245 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23246 struct to a subclass of rtl_opt_pass along with...
23247 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23248 (make_pass_mips_machine_reorg2): ...new function.
23250 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23252 * passes.c (pass_manager::operator new): New.
23254 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23256 Handwritten part of conversion of passes to C++ classes.
23258 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23259 (toplev.o): Add dep on PASS_MANAGER_H.
23260 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23261 of early local pases to reflect this moving from a global to a
23262 member of gcc::pass_manager.
23263 (cgraph_add_new_function): Likewise.
23264 * lto-cgraph.c (lto_output_node): Update for conversion of
23265 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23266 * passes.c (opt_pass::clone): New.
23267 (opt_pass::gate): New.
23268 (opt_pass::execute): New.
23269 (opt_pass::opt_pass): New.
23270 (pass_manager::execute_early_local_passes): New.
23271 (pass_manager::execute_pass_mode_switching): new.
23272 (finish_optimization_passes): Convert to...
23273 (pass_manager::finish_optimization_passes): ...this.
23274 (finish_optimization_passes): Update for conversion of passes to
23276 (register_dump_files_1): Use has_gate since we cannot portably
23277 check a vtable entry against NULL.
23278 (dump_one_pass): Likewise.
23279 (ipa_write_summaries_2): Likewise.
23280 (ipa_write_optimization_summaries_1): Likewise.
23281 (ipa_read_summaries_1): Likewise.
23282 (ipa_read_optimization_summaries_1): Likewise.
23283 (execute_ipa_stmt_fixups): Likewise.
23284 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23285 pass-creation functions rather than wiring up globals, and
23286 storing the results in fields of pass_manager generated using
23287 pass-instances.def.
23288 (pass_manager::dump_profile_report): Update for conversion of
23289 passes to C++ classes.
23290 (pass_manager::execute_ipa_summary_passes): Likewise.
23291 (execute_one_ipa_transform_pass): Likewise.
23292 (execute_one_pass): Use has_gate and has_execute since we cannot
23293 portably check a vtable entry against NULL.
23294 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23295 (pass_manager): Use pass-instances.def to add fields for the
23296 various pass instances.
23297 * toplev.c (finalize): Update for move of
23298 finish_optimization_passes to a method of gcc::pass_manager.
23299 * toplev.h (finish_optimization_passes): Move to method of class
23301 * tree-pass.h (struct pass_data): New.
23302 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23303 (opt_pass::gate): Convert to virtual function.
23304 (opt_pass::~opt_pass): New.
23305 (opt_pass::clone): New.
23306 (opt_pass::execute): Convert to virtual function.
23307 (opt_pass::opt_pass): New.
23308 (opt_pass::ctxt_): new.
23309 (gimple_opt_pass): Convert to subclass of opt_pass.
23310 (gimple_opt_pass::gimple_opt_pass): New.
23311 (rtl_opt_pass): Convert to subclass of opt_pass.
23312 (rtl_opt_pass::rtl_opt_pass): New.
23313 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23314 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23315 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23316 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23317 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23318 invocation of pass_mode_switching to reflect this moving from a
23319 global to a member of gcc::pass_manager.
23320 (ix86_option_override): Rework how pass_insert_vzeroupper is
23321 added to the pass_manager to reflect autogenerated changes.
23322 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23324 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23326 PR rtl-optimization/57708
23327 * recog.c (peep2_find_free_register): Validate all regs in a
23330 2013-08-05 Jan Hubicka <jh@suse.cz>
23333 * cgraph.c (verify_cgraph_node): Accept local flags from other
23335 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23336 (function_and_variable_visibility): Likewise.
23337 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23339 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23341 * graph.c (init_graph_slim_pretty_print): Remove.
23342 (print_graph_cfg): Do not call it. Use local pretty printer.
23343 (start_graph_dump): Likewise.
23345 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23347 * gimple-pretty-print.c (buffer): Remove.
23348 (initialized): Likewise.
23349 (maybe_init_pretty_print): Likewise.
23350 (print_gimple_stmt): Do not call it. Use non-static local
23351 pretty_printer variable.
23352 (print_gimple_expr): Likewise.
23353 (print_gimple_seq): Likewise.
23354 (gimple_dump_bb): Likewise.
23356 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23358 * asan.c (asan_pp): Remove.
23359 (asan_pp_initialized): Likewise.
23360 (asan_pp_initialize): Likewise.
23361 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23362 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23363 (asan_add_global): Likewise.
23365 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23367 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23368 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23369 * pretty-print.c (pp_formatted_text_data): Likewise.
23370 (pp_indent): Rename from pp_base_indent.
23371 (pp_format): Rename from pp_base_format.
23372 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23373 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23374 (pp_flush): Rename from pp_base_flush.
23375 (pp_set_line_maximum_length): Rename from
23376 pp_base_set_line_maximum_length.
23377 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23378 (pp_set_prefix): Rename from pp_base_set_prefix.
23379 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23380 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23381 (pp_append_text): Rename from pp_base_append_text.
23382 (pp_formatted_text): Rename from pp_base_formatted_text.
23383 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23384 (pp_remaining_character_count_for_line): Rename from
23385 pp_base_remaining_character_count_for_line.
23386 (pp_newline): Rename from pp_base_newline.
23387 (pp_character): Rename from pp_base_character.
23388 (pp_string): Rename from pp_base_string.
23389 (pp_maybe_space): Rename from pp_base_maybe_space.
23390 * asan.c (asan_pp_string): Adjust.
23391 (asan_emit_stack_protection): Likewise.
23392 (asan_add_global): Likewise.
23393 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23394 * tree-mudflap.c (mf_varname_tree): Likewise.
23395 * tree-pretty-print.c (pp_tree_identifier): Rename from
23396 pp_base_tree_identifier.
23397 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23398 Declare as function.
23400 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23402 * pretty-print.h (pp_bar_bar): New.
23403 (pp_ampersand_ampersand): Likewise.
23404 (pp_less_equal): Likewise.
23405 (pp_greater_equal): Likewise.
23406 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23407 printer functions instead of pp_string or operators and punctuators.
23408 (dump_gimple_call): Likewise.
23409 (dump_gimple_omp_for): Likewise.
23410 (dump_gimple_transaction): Likewise.
23411 (dump_gimple_phi): Likewise.
23412 (pp_gimple_stmt_1): Likewise.
23413 * sched-vis.c (print_insn): Likewise.
23414 * tree-mudflap.c (mf_varname_tree): Likewise.
23415 * tree-pretty-print.c (dump_block_node): Likewise.
23416 (dump_generic_node): Likewise.
23418 2013-08-02 Jan Hubicka <jh@suse.cz>
23420 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23422 * lto-streamer-out.c (tree_is_indexable): Results decls and
23423 parm decls are not indexable.
23424 (DFS_write_tree_body): Do not follow args and results.
23425 (hash_tree): Likewise.
23426 (output_functions): Rearrange so struct function is needed
23427 only when real body is output; be able to also ouptut abstract
23428 functions; output DECL_ARGUMENTS and DECL_RESULT.
23429 (lto_output): When not in WPA, ale store abstract functions.
23430 (write_symbol): Do not care about RESULT_DECL.
23431 (output_symbol_p): Handle correctly sbtract decls.
23432 * lto-streamer-in.c (input_function): Rearrange so struct
23433 function can be NULL at entry; allow streaming of
23434 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23435 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23436 sanity check during LTO.
23437 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23438 RESULT_DECl and DECL_ARGUMENTS.
23439 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23442 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23444 * pretty-print.h (pp_underscore): New.
23446 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23447 printer functions instead of pp_character.
23448 (dump_binary_rhs): Likewise.
23449 (dump_ternary_rhs): Likewise.
23450 (dump_gimple_call_args): Likewise.
23451 (pp_points_to_solution): Likewise.
23452 (dump_gimple_call): Likewise.
23453 (dump_gimple_switch): Likewise.
23454 (dump_gimple_cond): Likewise.
23455 (dump_gimple_bind): Likewise.
23456 (dump_gimple_try): Likewise.
23457 (dump_gimple_omp_for): Likewise.
23458 (dump_gimple_omp_continue): Likewise.
23459 (dump_gimple_omp_single): Likewise.
23460 (dump_gimple_omp_sections): Likewise.
23461 (dump_gimple_omp_block): Likewise.
23462 (dump_gimple_omp_critical): Likewise.
23463 (dump_gimple_transaction): Likewise.
23464 (dump_gimple_asm): Likewise.
23465 (dump_gimple_phi): Likewise.
23466 (dump_gimple_omp_parallel): Likewise.
23467 (dump_gimple_omp_task): Likewise.
23468 (dump_gimple_omp_atomic_load): Likewise.
23469 (dump_gimple_omp_atomic_store): Likewise.
23470 (dump_gimple_mem_ops): Likewise.
23471 (pp_gimple_stmt_1): Likewise.
23472 (pp_cfg_jump): Likewise.
23473 (dump_implicit_edges): Likewise.
23474 (gimple_dump_bb_for_graph): Likewise.
23475 * graph.c (draw_cfg_node): Likewise.
23476 * langhooks.c (lhd_print_error_function): Likewise.
23477 * sched-vis.c (print_exp): Likewise.
23478 (print_value): Likewise.
23479 (print_pattern): Likewise.
23480 (print_insn): Likewise.
23481 (rtl_dump_bb_for_graph): Likewise.
23482 * tree-pretty-print.c (dump_function_declaration): Likewise.
23483 (dump_array_domain): Likewise.
23484 (dump_omp_clause): Likewise.
23485 (dump_location): Likewise.
23486 (dump_generic_node): Likewise.
23487 (print_struct_decl): Likewise.
23488 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23490 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23492 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23493 candidate table when replacing a candidate statement.
23494 (replace_rhs_if_not_dup): Likewise.
23495 (replace_one_candidate): Likewise.
23497 2013-08-02 Jan Hubicka <jh@suse.cz>
23498 Martin Liska <marxin.liska@gmail.com>
23500 * cgraphunit.c (add_new_function): Fix logic when adding from
23502 (assemble_thunk): Rename to ...
23503 (expand_thunk); .. this one; export; get it working with
23504 general functions; make produced gimple valid.
23505 * cgraph.h (expand_thunk): Declare.
23507 2013-08-02 Jan Hubicka <jh@suse.cz>
23509 * ipa-cp.c (gather_context_independent_values): Use
23510 ipa_get_param_move_cost.
23511 (get_replacement_map): Remove PARAM; move parameter folding
23513 (create_specialized_node): Update.
23514 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23515 assert that we have gimple body; update move_cost.
23516 (count_formal_params): Assert that we have gimple body.
23517 (ipa_dump_param): New function.
23518 (ipa_alloc_node_params): Break out from ...
23519 (ipa_initialize_node_params): ... here.
23520 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23521 (ipa_write_node_info): Stream move costs.
23522 (ipa_read_node_info): Read move costs.
23523 (ipa_update_after_lto_read): Do not recompute node params.
23524 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23525 (ipa_get_param): Check we are not in WPA.
23526 (ipa_get_param_move_cost): New.
23527 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23528 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23529 parm numbers to be present.
23531 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23533 PR rtl-optimization/58048
23534 * lra-constraints.c (process_alt_operands): Don't check asm
23535 operand on register.
23537 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23539 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23540 the implied StoreLoad barrier for atomic operations if before.
23542 2013-08-02 Jan Hubicka <jh@suse.cz>
23543 Martin Liska <marxin.liska@gmail.com>
23545 * cgraph.c (cgraph_function_body_availability): Do not check
23547 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23548 symtab_node_availability): Declare.
23549 * ipa.c (can_replace_by_local_alias): New.
23550 (function_and_variable_visibility): Use it.
23551 * symtab.c (symtab_for_node_and_aliases,
23552 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23554 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23556 PR rtl-optimization/57963
23557 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23558 (lra_constraints): Use them.
23560 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23562 * config/arm/types.md (define_attr "type"): Add "load_acq"
23564 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23566 (cortex_a53_store1): Likewise.
23568 2013-08-01 Jan Hubicka <jh@suse.cz>
23570 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23571 partitions are not needed.
23573 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23575 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23576 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23577 MAYBE_NON_Q_CLASS_P where appropriate.
23579 2013-08-01 Jan Hubicka <jh@suse.cz>
23581 * cgraph.h (release_function_body): Declare.
23582 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23583 of unused delcarations.
23585 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23587 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23588 RTL form when subtracting a constant.
23590 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23592 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23593 Generate canonical plus rtx with negated immediate instead of minus
23595 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23597 2013-08-01 Jan Hubicka <jh@suse.cz>
23599 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23600 (cgraph_release_function_body): Likewise.
23601 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23602 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23603 to used_as_abstract_origin.
23604 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23605 symbols used as abstract origins.
23606 * cgraphunit.c (analyze_functions): Update.
23607 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23608 used_as_abstract_origin.
23609 * tree-inline.c (tree_function_versioning): Update
23610 used_as_abstract_origin; be ready for DECL_RESULT and
23611 DECL_ARGUMENTS to be NULL.
23613 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23614 for abstract functions.
23615 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23618 2013-08-01 Jan Hubicka <jh@suse.cz>
23620 * profile.c (compute_value_histograms): Fix thinko.
23622 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23624 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23625 aarch-common-protos.h to extra_headers.
23626 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23627 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23628 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23630 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23632 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23633 Include "../arm/types.md". Define "type" attribute for all patterns.
23634 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23637 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23639 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23640 to support power8 load fusion.
23641 (fusion_gpr_mem_load): Likewise.
23643 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23645 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23646 declarations for power8 load fusion.
23647 (emit_fusion_gpr_load): Likewise.
23649 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23650 tuning for power8, turn on fusion mode by default. Turn on sign
23651 extending fusion mode if normal fusion mode is on, and we are at
23653 (fusion_gpr_load_p): New function, return true if we can fuse an
23654 addis instruction with a dependent load to a GPR.
23655 (emit_fusion_gpr_load): Emit the instructions for power8 load
23658 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23659 (VSX load fusion peepholes): New peepholes to fuse together an
23660 addi instruction with a VSX load instruction.
23662 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23663 peepholes to fuse an addis instruction with a load to a GPR base
23664 register. If we are supporting sign extending fusions, convert
23665 sign extending loads to zero extending loads and add an explicit
23668 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23670 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23671 aarch-common-protos.h to extra_headers.
23672 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23673 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23674 (arm_early_store_addr_dep): Likewise.
23675 (arm_no_early_alu_shift_dep): Likewise.
23676 (arm_no_early_alu_shift_value_dep): Likewise.
23677 (arm_no_early_mul_dep): Likewise.
23678 (arm_no_early_store_addr_dep): Likewise.
23679 (arm_mac_accumulator_is_mul_result): Likewise.
23680 (arm_mac_accumulator_is_result): Likewise.
23681 * config/arm/aarch-common.c: ... here. New file.
23682 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23684 (arm_early_store_addr_dep): Likewise.
23685 (arm_no_early_alu_shift_dep): Likewise.
23686 (arm_no_early_alu_shift_value_dep): Likewise.
23687 (arm_no_early_mul_dep): Likewise.
23688 (arm_no_early_store_addr_dep): Likewise.
23689 (arm_mac_accumulator_is_mul_result): Likewise.
23690 (arm_mac_accumulator_is_result): Likewise.
23691 * config/arm/aarch-common-protos.h: ... here. New file.
23692 * config/arm/t-arm (aarch-common.o): Define.
23694 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23696 * config/arm/arm.md: Include new file "types.md".
23697 (define_attr "type"): Move from here to ...
23698 (define_attr "mul32"): Likewise.
23699 (define_attr "mul64"): Likewise.
23700 * config/arm/types.md: ... here. New file.
23702 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23704 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23705 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23707 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23709 * gen-pass-instances.awk: Fix offset of substr().
23711 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23713 * Makefile.in (pass-instances.def): New.
23714 (passes.o): Replace dependency on passes.def with one on
23717 * gen-pass-instances.awk: New.
23719 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23720 rather than passes.def, updating local definition of NEXT_PASS
23721 macro to add an extra NUM parameter (currently unused).
23723 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23725 * Makefile.in (PASS_MANAGER_H): New.
23726 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23727 (passes.o): Likewise.
23728 (statistics.o): Likewise.
23729 (cgraphunit.o): Likewise.
23730 (context.o): Depend on PASS_MANAGER_H.
23732 * pass_manager.h: New.
23734 * cgraphunit.c (cgraph_add_new_function): Update for moves
23735 of globals to fields of pass_manager.
23736 (analyze_function): Likewise.
23737 (expand_function): Likewise.
23738 (ipa_passes): Likewise.
23739 (compile): Likewise.
23741 * context.c (context::context): New.
23742 * context.h (context::context): New.
23743 (context::get_passes): New.
23744 (context::passes_): New.
23746 * lto-cgraph.c (input_node): Update for moves of globals to
23747 fields of pass_manager.
23749 * passes.c (all_passes): Remove, in favor of a field of the
23750 same name within the new class pass_manager.
23751 (all_small_ipa_passes): Likewise.
23752 (all_lowering_passes): Likewise.
23753 (all_regular_ipa_passes): Likewise.
23754 (all_late_ipa_passes): Likewise.
23755 (all_lto_gen_passes): Likewise.
23756 (passes_by_id): Likewise.
23757 (passes_by_id_size): Likewise.
23758 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23759 the new class pass_manager.
23760 (set_pass_for_id): Convert to...
23761 (pass_manager::set_pass_for_id): ...method.
23762 (get_pass_for_id): Convert to...
23763 (pass_manager::get_pass_for_id): ...method.
23764 (register_one_dump_file): Move body of implementation into...
23765 (pass_manager::register_one_dump_file): ...here.
23766 (register_dump_files_1): Convert to...
23767 (pass_manager::register_dump_files_1): ...method.
23768 (register_dump_files): Convert to...
23769 (pass_manager::register_dump_files): ...method.
23770 (create_pass_tab): Update for moves of globals to fields of
23772 (dump_passes): Move body of implementation into...
23773 (pass_manager::dump_passes): ...here.
23774 (register_pass): Move body of implementation into...
23775 (pass_manager::register_pass): ...here.
23776 (init_optimization_passes): Convert into...
23777 (pass_manager::pass_manager): ...constructor for new
23778 pass_manager class, and initialize the pass_lists array.
23779 (check_profile_consistency): Update for moves of globals to
23780 fields of pass_manager.
23781 (dump_profile_report): Move body of implementation into...
23782 (pass_manager::dump_profile_report): ...here.
23783 (ipa_write_summaries_1): Update for moves of pass lists from
23784 being globals to fields of pass_manager.
23785 (ipa_write_optimization_summaries): Likewise.
23786 (ipa_read_summaries): Likewise.
23787 (ipa_read_optimization_summaries): Likewise.
23788 (execute_all_ipa_stmt_fixups): Likewise.
23790 * statistics.c (statistics_fini): Update for moves of globals to
23791 fields of pass_manager.
23793 * toplev.c (general_init): Replace call to
23794 init_optimization_passes with construction of the pass_manager
23797 * tree-pass.h (all_passes): Remove, in favor of a field of the
23798 same name within the new class pass_manager.
23799 (all_small_ipa_passes): Likewise.
23800 (all_lowering_passes): Likewise.
23801 (all_regular_ipa_passes): Likewise.
23802 (all_lto_gen_passes): Likewise.
23803 (all_late_ipa_passes): Likewise.
23804 (passes_by_id): Likewise.
23805 (passes_by_id_size): Likewise.
23806 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23807 the new class pass_manager.
23808 (get_pass_for_id): Remove.
23810 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23812 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23815 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23817 * arm.md (mulhi3): New expand pattern.
23819 2013-07-30 Jan Hubicka <jh@suse.cz>
23820 Martin Liska <marxin.liska@gmail.com>
23822 * profile.c (compute_value_histograms): Do not ICE when
23823 there is mismatch only on some counters.
23825 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23827 PR rtl-optimization/57637
23828 * function.c (move_insn_for_shrink_wrap): Also check the
23829 GEN set of the LIVE problem for the liveness analysis
23830 if it exists, otherwise give up.
23832 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23834 PR tree-optimization/57993
23835 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23836 replaced statement in the candidate table.
23837 (phi_add_costs): Return infinite cost when the hidden basis does
23838 not dominate all phis on which the candidate is dependent.
23839 (replace_one_candidate): Record replaced statement in the
23842 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23844 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23845 (ashlv2si3): New expander.
23846 (*ashlv2si3_i): New define_insn_and_split.
23847 * predicates.md (float_operation): Allow patterns with three
23848 basic sub-patterns.
23850 PR rtl-optimization/58021
23851 * mode-switching.c (create_pre_exit): Always split off preceding
23852 insns if we are not at the basic block head.
23854 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23856 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23857 (UCLIBC_DYNAMIC_LINKER): New macro.
23858 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23860 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23861 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23863 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23864 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23865 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23866 for SF and DF modes. Use ieee_quad_format for TF mode.
23867 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23868 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23869 (mips_option_override): Handle `-mnan=legacy'.
23870 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23871 `-mabs=2008' and `-mnan=2008'.
23872 (OPTION_DEFAULT_SPECS): Add "nan" default.
23873 (ASM_SPEC): Handle `-mnan='.
23874 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23875 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23876 comment accordingly.
23877 (neg<mode>2): Likewise.
23878 * config/mips/mips.opt (mabs, mnan): New options.
23879 * doc/install.texi (Configuration): Document `--with-nan=' option.
23880 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23882 (MIPS Options): Document them.
23883 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23884 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23885 * configure: Regenerate.
23886 * config.in: Regenerate.
23888 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23890 * config/i386/i386.md (float post-reload splitters): Do not check
23891 for subregs of SSE registers.
23893 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23894 H.J. Lu <hongjiu.lu@intel.com>
23898 * config/i386/i386.md (post-reload splitter
23899 to avoid partial SSE reg dependency stalls): New pattern.
23901 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23903 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23905 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23907 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23908 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23910 2013-07-26 Cary Coutant <ccoutant@google.com>
23912 * dwarf2out.c (die_checksum_ordered): Don't include template
23913 instantiations in signature.
23914 (is_template_parameter): New function.
23915 (is_template_instantiation): New function.
23916 (generate_skeleton_bottom_up): Don't include template instantiations
23918 (generate_skeleton): Likewise.
23919 (break_out_comdat_types): Move recursive call to break out nested
23921 (prune_unused_types_mark_generic_parms_dies): Call
23922 is_template_parameter.
23924 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23926 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23927 uses vector registers.
23928 * config/aarch64/iterators.md: Add attributes rtn and vas.
23930 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23931 Richard Earnshaw <richard.earnshaw@arm.com>
23933 * combine.c (simplify_comparison): Re-canonicalize operands
23935 * config/arm/arm.md (movcond_addsi): New splitter.
23937 2013-07-25 Sterling Augustine <saugustine@google.com>
23939 * dwarf2out.c (size_of_pubnames): Move code to...
23940 (include_pubname_in_output): ...here. New.
23941 (want_pubnames): Rearrange.
23942 (output_pubnames): Call include_pubname_in_output. Move assertion.
23944 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23946 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23948 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23951 * doc/extend.texi: Remove obsolete builtins. Fix
23952 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23954 2013-07-25 Jan Hubicka <jh@suse.cz>
23956 * cgraph.c (release_function_body): Break out from ...
23957 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23958 and DECL_ARGUMENTS.
23959 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23960 old_tree in the map.
23961 (create_specialized_node): Update.
23962 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23964 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23965 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23966 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23967 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23970 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23972 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23973 addsi3_carryin_alt2_<optab>): Correct output template.
23975 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23977 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23978 Adjust for arm_restrict_it.
23979 Remove trailing whitespace.
23981 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23983 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23984 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23986 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23988 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23990 PR rtl-optimization/57960
23991 * lra-constraints.c (process_alt_operands): Use the right mode
23992 when checking strict_low.
23994 2013-07-25 Jan Hubicka <jh@suse.cz>
23996 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23997 * cgraph.c (cgraph_remove_node): Do not release function body
23998 when in cgraph streaming.
23999 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24000 in other partitions are not considered reachable; fix handling of
24003 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24005 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24007 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24012 * config/arm/arm.md ("*sibcall_insn): Replace use of
24013 Ss with US. Adjust output for v5 and v4t.
24014 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24016 * config/arm/constraints.md ("Ss"): Rename to US.
24018 2013-07-25 Terry Guo <terry.guo@arm.com>
24020 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24021 shift_add/shift_sub0/shift_sub1 RTXs.
24023 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24024 Anton Blanchard <anton@au1.ibm.com>
24026 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24027 (altivec_vpks<VI_char>ss): Likewise.
24028 (altivec_vpks<VI_char>us): Likewise.
24029 (altivec_vpku<VI_char>us): Likewise.
24030 (altivec_vpku<VI_char>um): Likewise.
24032 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24034 Introduce context class.
24036 * Makefile.in (CONTEXT_H): New.
24037 (OBJS): Add context.o.
24038 (toplev.o): Add CONTEXT_H to dependencies.
24041 * toplev.c (general_init): Create the singleton gcc::context instance.
24047 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24049 PR rtl-optimization/57968
24050 * mode-switching.c (create_pre_exit): Allow instructions that
24051 don't set a return register to need a non-exit mode.
24053 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24054 Anton Blanchard <anton@au1.ibm.com>
24056 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24057 operands to vperm for little endian.
24058 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24059 of lvsl to create the control mask for a vperm for little endian.
24061 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24062 Anton Blanchard <anton@au1.ibm.com>
24064 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24065 two operands for little-endian.
24067 2013-07-23 Steve Ellcey <sellcey@mips.com>
24069 * config/mips/mips.c (mips_case_values_threshold): New.
24070 (TARGET_CASE_VALUES_THRESHOLD): Define.
24072 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24073 Anton Blanchard <anton@au1.ibm.com>
24075 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24076 selection of field for vector splat in little endian mode.
24078 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24080 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24081 expanders to rs6000.md.
24082 (ior<mode>3): Likewise.
24083 (and<mode>3): Likewise.
24084 (one_cmpl<mode>2): Likewise.
24085 (nor<mode>3): Likewise.
24086 (andc<mode>3): Likewise.
24087 (eqv<mode>3): Likewise.
24088 (nand<mode>3): Likewise.
24089 (orc<mode>3): Likewise.
24091 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24094 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24095 to split multi-word logical operations.
24096 (rs6000_split_logical_di): Likewise.
24097 (rs6000_split_logical): Likewise.
24099 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24100 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24101 and allow TImode operations in 32-bit.
24102 (vsx_and<mode>3_64bit): Likewise.
24103 (vsx_ior<mode>3_32bit): Likewise.
24104 (vsx_ior<mode>3_64bit): Likewise.
24105 (vsx_xor<mode>3_32bit): Likewise.
24106 (vsx_xor<mode>3_64bit): Likewise.
24107 (vsx_one_cmpl<mode>2_32bit): Likewise.
24108 (vsx_one_cmpl<mode>2_64bit): Likewise.
24109 (vsx_nor<mode>3_32bit): Likewise.
24110 (vsx_nor<mode>3_64bit): Likewise.
24111 (vsx_andc<mode>3_32bit): Likewise.
24112 (vsx_andc<mode>3_64bit): Likewise.
24113 (vsx_eqv<mode>3_32bit): Likewise.
24114 (vsx_eqv<mode>3_64bit): Likewise.
24115 (vsx_nand<mode>3_32bit): Likewise.
24116 (vsx_nand<mode>3_64bit): Likewise.
24117 (vsx_orc<mode>3_32bit): Likewise.
24118 (vsx_orc<mode>3_64bit): Likewise.
24120 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24121 logical types in GPRs.
24123 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24124 logical insns to rs6000.md, and allow TImode operations in
24126 (altivec_ior<mode>3): Likewise.
24127 (altivec_xor<mode>3): Likewise.
24128 (altivec_one_cmpl<mode>2): Likewise.
24129 (altivec_nor<mode>3): Likewise.
24130 (altivec_andc<mode>3): Likewise.
24132 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24133 attributes for moving the 128-bit logical operations into
24135 (BOOL_REGS_OUTPUT): Likewise.
24136 (BOOL_REGS_OP1): Likewise.
24137 (BOOL_REGS_OP2): Likewise.
24138 (BOOL_REGS_UNARY): Likewise.
24139 (BOOL_REGS_AND_CR0): Likewise.
24140 (one_cmpl<mode>2): Add support for DI logical operations on
24141 32-bit, splitting the operations to 32-bit.
24142 (anddi3): Likewise.
24143 (iordi3): Likewise.
24144 (xordi3): Likewise.
24145 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24146 changes to combine the 32/64-bit code, allow logical operations on
24147 TI mode in 32-bit, and to use similar match_operator patterns like
24148 scalar mode uses. Combine the Altivec and VSX code for logical
24149 operations, and move it here.
24150 (ior<mode>3, 128-bit types): Likewise.
24151 (xor<mode>3, 128-bit types): Likewise.
24152 (one_cmpl<mode>3, 128-bit types): Likewise.
24153 (nor<mode>3, 128-bit types): Likewise.
24154 (andc<mode>3, 128-bit types): Likewise.
24155 (eqv<mode>3, 128-bit types): Likewise.
24156 (nand<mode>3, 128-bit types): Likewise.
24157 (orc<mode>3, 128-bit types): Likewise.
24158 (and<mode>3_internal): Likewise.
24159 (bool<mode>3_internal): Likewise.
24160 (boolc<mode>3_internal1): Likewise.
24161 (boolc<mode>3_internal2): Likewise.
24162 (boolcc<mode>3_internal1): Likewise.
24163 (boolcc<mode>3_internal2): Likewise.
24164 (eqv<mode>3_internal1): Likewise.
24165 (eqv<mode>3_internal2): Likewise.
24166 (one_cmpl1<mode>3_internal): Likewise.
24168 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24170 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24171 Rename flag_stack_usage to flag_stack_usage_info.
24173 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24175 * config/microblaze/sync.md: New file.
24176 * config/microblaze/microblaze.md: Include sync.md
24177 * config/microblaze/microblaze.c: Add print_operand 'y'.
24178 * config/microblaze/constraints.md: Add memory_contraint
24179 'Q' which is a single register.
24181 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24183 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24185 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24187 * reload.c (find_reloads): Exit loop once we find this operand
24188 cannot be reloaded somehow for this alternative.
24190 * reload.c (find_reloads): Exit loop once we find a hard register.
24192 * rtlanal.c (computed_jump_p): Exit loop once we find label
24195 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24197 * cfgloopmanip.c (remove_path): Exit loop after setting
24200 * gensupport.c (subst_dup): Avoid loop if code is not
24201 MATCH_DUP nor MATCH_OP_DUP.
24203 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24205 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24207 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24209 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24210 true for SP_REGNUM if mode == ptr_mode.
24211 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24212 with value R0_REGNUM + 31.
24214 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24216 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24217 pad pointer-typed argument downward.
24219 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24221 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24222 and __ILP32__ when the ILP32 model is in use.
24224 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24226 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24227 (aarch64_load_symref_appropriately): In the case of
24228 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24229 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24230 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24231 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24232 if 'mode' doesn't equal to 'ptr_mode'.
24233 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24234 'vcall_offset'; change to call aarch64_emit_move differently depending
24235 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24236 to calculate the upper bound of 'vcall_offset'.
24237 (aarch64_cannot_force_const_mem): Change to also return true if
24239 (aarch64_legitimize_reload_address): In the case of large
24240 displacements, add new local variable 'xmode' and an assertion
24241 based on it; change to use 'xmode' to generate the new rtx and
24243 (aarch64_asm_trampoline_template): Change to generate the template
24244 differently depending on TARGET_ILP32 or not; change to use
24245 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24246 (aarch64_trampoline_size): Removed.
24247 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24248 and replace immediate literals with it. Change to use 'ptr_mode'
24249 instead of 'DImode' and call convert_memory_address if the mode
24250 of 'fnaddr' doesn't equal to 'ptr_mode'.
24251 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24253 (aarch64_elf_asm_destructor): Likewise.
24254 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24255 on TARGET_ILP32 instead of aarch64_trampoline_size.
24256 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24257 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24258 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24259 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24260 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24261 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24262 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24263 depending on the value of 'mode'.
24264 (add_losym_<mode>): New.
24265 (ldr_got_small_<mode>): New, based on ldr_got_small.
24266 (ldr_got_small): Remove.
24267 (ldr_got_small_sidi): New.
24268 * config/aarch64/iterators.md (P): New.
24269 (PTR): Change to 'ptr_mode' in the condition.
24271 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24273 * config.gcc (aarch64*-*-*): Support --with-abi.
24274 (aarch64*-*-elf): Support --with-multilib-list.
24275 (aarch64*-*-linux*): Likewise.
24276 (supported_defaults): Add abi to aarch64*-*-*.
24277 * configure.ac: Mention AArch64 for --with-multilib-list.
24278 * configure: Re-generated.
24279 * config/aarch64/biarchilp32.h: New file.
24280 * config/aarch64/biarchlp64.h: New file.
24281 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24283 (MULTILIB_DEFAULTS): Ditto.
24284 (DRIVER_SELF_SPECS): Ditto.
24285 (ASM_SPEC): Update to also substitute -mabi.
24286 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24287 file whose name depends on -mabi= and -mbig-endian.
24288 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24290 (POINTER_SIZE): New define.
24291 (POINTERS_EXTEND_UNSIGNED): Ditto.
24292 (enum aarch64_abi_type): New enumeration tag.
24293 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24294 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24295 (TARGET_ILP32): New define.
24296 * config/aarch64/aarch64.opt (mabi): New.
24297 (aarch64_abi): New.
24298 (ilp32, lp64): New values for -mabi.
24299 * config/aarch64/t-aarch64 (comma): New define.
24300 (MULTILIB_OPTIONS): Ditto.
24301 (MULTILIB_DIRNAMES): Ditto.
24302 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24303 * doc/invoke.texi: Document -mabi for AArch64.
24305 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24307 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24309 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24310 Anton Blanchard <anton@au1.ibm.com>
24312 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24313 endianness when selecting field to splat.
24315 2013-07-22 Eric Christopher <echristo@gmail.com>
24317 * dwarf2out.c (die_odr_checksum): New function to use
24318 CHECKSUM_ macros and ULEB128 for DIE tag.
24319 (generate_type_signature): Use.
24321 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24323 * config.gcc (sparc*-*-*): Accept leon3 processor.
24324 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24325 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24326 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24327 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24328 (mfix-ut699): Adjust comment.
24329 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24330 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24331 (CPP_CPU_SPEC): Likewise.
24332 (ASM_CPU_SPEC): Likewise.
24333 * config/sparc/sparc.c (leon3_cost): New constant.
24334 (sparc_option_override): Add leon3 support.
24335 (mem_ref): New function.
24336 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24337 (sparc_do_work_around_errata): Look into the instruction in the delay
24338 slot and adjust accordingly. Add fix for the data cache nullify issues
24339 of the UT699. Change insertion position for the NOP.
24340 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24341 (leon3_load): New reservation.
24342 (leon_store): Bump latency to 2.
24343 (grfpu): New automaton.
24344 (grfpu_alu): New unit.
24345 (grfpu_ds): Likewise.
24346 (leon_fp_alu): Adjust.
24347 (leon_fp_mult): Delete.
24348 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24349 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24350 * config/sparc/sparc.md (cpu): Add leon3.
24351 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24352 (swapsi): Likewise.
24353 (atomic_test_and_set): Likewise.
24354 (ldstub): Likewise.
24356 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24358 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24359 default for R5900 targets.
24360 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24361 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24362 * config/mips/mips.c (mips_option_override): Report an error for
24363 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24364 for -march=r5900 -mhard-float.
24366 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24368 * df-problems.c (can_move_insns_across): Exit loop once we
24369 find a non-fixed, non-global register.
24371 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24374 * omega.c (omega_eliminate_red): Break after setting red_found.
24375 (omega_problem_has_red_equations): Similarly after setting found.
24376 (omega_query_variable): Similarly after setting coupled.
24378 2013-07-22 Marek Polacek <polacek@redhat.com>
24380 * gimplify.c: Don't include gimple.h twice.
24382 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24384 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24385 instead of TARGET_THUMB1.
24386 (Pz): New constraint.
24387 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24389 (compare_negsi_si): Likewise.
24390 (compare_addsi2_op0): Likewise.
24391 (compare_addsi2_op1): Likewise.
24392 (addsi3_carryin_<optab>): Likewise.
24393 (addsi3_carryin_alt2_<optab>): Likewise.
24394 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24395 for arm_restrict_it.
24396 (subsi3_carryin): Likewise.
24397 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24398 (minmax_arithsi): Disable for arm_restrict_it.
24399 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24400 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24401 (satsi_<SAT:code>_shift): Likewise.
24402 (arm_shiftsi3): Add alternative for 16-bit encoding.
24403 (arm32_movhf): Disable for arm_restrict_it.
24404 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24405 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24407 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24409 * config/arm/arm.md (attribute "insn"): Delete.
24410 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24411 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24412 (not_shiftsi): Update for attribute change.
24413 (not_shiftsi_compare0): Likewise.
24414 (not_shiftsi_compare0_scratch): Likewise.
24415 (arm_one_cmplsi2): Likewise.
24416 (thumb1_one_cmplsi2): Likewise.
24417 (notsi_compare0): Likewise.
24418 (notsi_compare0_scratch): Likewise.
24419 (thumb1_movdi_insn): Likewise.
24420 (arm_movsi_insn): Likewise.
24421 (movhi_insn_arch4): Likewise.
24422 (movhi_bytes): Likewise.
24423 (arm_movqi_insn): Likewise.
24424 (thumb1_movqi_insn): Likewise.
24425 (arm32_movhf): Likewise.
24426 (thumb1_movhf): Likewise.
24427 (arm_movsf_soft_insn): Likewise.
24428 (thumb1_movsf_insn): Likewise.
24429 (thumb_movdf_insn): Likewise.
24430 (movsicc_insn): Likewise.
24431 (movsfcc_soft_insn): Likewise.
24432 (and_scc): Likewise.
24433 (cond_move): Likewise.
24434 (if_move_not): Likewise.
24435 (if_not_move): Likewise.
24436 (if_shift_move): Likewise.
24437 (if_move_shift): Likewise.
24438 (if_shift_shift): Likewise.
24439 (if_not_arith): Likewise.
24440 (if_arith_not): Likewise.
24441 (cond_move_not): Likewise.
24442 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24443 (neon_mov<mode>): Likewise.
24444 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24445 (thumb2_movsi_vfp): Likewise.
24446 (movsf_vfp): Likewise.
24447 (thumb2_movsf_vfp): Likewise.
24448 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24450 (cortexa7_older_only): Likewise.
24451 (cortexa7_younger): Likewise.
24452 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24453 (1020alu_shift_op): Likewise.
24454 (1020alu_shift_reg_op): Likewise.
24455 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24456 (alu_shift_op): Likewise.
24457 (alu_shift_reg_op): Likewise.
24458 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24459 (11_alu_shift_op): Likewise.
24460 (11_alu_shift_reg_op): Likewise.
24461 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24462 (9_alu_shift_reg_op): Likewise.
24463 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24465 (cortex_a15_alu_shift): Likewise.
24466 (cortex_a15_alu_shift_reg): Likewise.
24467 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24468 (cortex_a5_alu_shift): Likewise.
24469 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24471 (cortex_a53_alu_shift): Likewise.
24472 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24474 (cortex_a7_alu_reg): Likewise.
24475 (cortex_a7_alu_shift): Likewise.
24476 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24477 (cortex_a8_alu_shift): Likewise.
24478 (cortex_a8_alu_shift_reg): Likewise.
24479 (cortex_a8_mov): Likewise.
24480 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24481 (cortex_a9_dp_shift): Likewise.
24482 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24483 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24484 (cortex_r4_mov): Likewise.
24485 (cortex_r4_alu_shift): Likewise.
24486 (cortex_r4_alu_shift_reg): Likewise.
24487 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24488 (526_alu_shift_op): Likewise.
24489 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24490 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24491 (626te_alu_shift_op): Likewise.
24492 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24493 (726te_alu_op): Likewise.
24494 (726te_alu_shift_op): Likewise.
24495 (726te_alu_shift_reg_op): Likewise.
24496 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24497 (mp626_alu_shift_op): Likewise.
24498 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24499 (pj4_alu_e1_conds): Likewise.
24500 (pj4_alu): Likewise.
24501 (pj4_alu_conds): Likewise.
24502 (pj4_shift): Likewise.
24503 (pj4_shift_conds): Likewise.
24504 (pj4_alu_shift): Likewise.
24505 (pj4_alu_shift_conds): Likewise.
24507 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24509 * config/arm/predicates.md (shiftable_operator_strict_it):
24511 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24512 Disable cond_exec version for arm_restrict_it.
24513 (thumb2_smaxsi3): Convert to generate cond_exec.
24514 (thumb2_sminsi3): Likewise.
24515 (thumb32_umaxsi3): Likewise.
24516 (thumb2_uminsi3): Likewise.
24517 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24518 (thumb2_neg_abssi2): Likewise.
24519 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24520 (thumb2_movsicc_insn): Adjust alternatives.
24521 (thumb2_mov_negscc): Disable for arm_restrict_it.
24522 (thumb2_mov_negscc_strict_it): New pattern.
24523 (thumb2_mov_notscc_strict_it): New pattern.
24524 (thumb2_mov_notscc): Disable for arm_restrict_it.
24525 (thumb2_ior_scc): Likewise.
24526 (thumb2_ior_scc_strict_it): New pattern.
24527 (thumb2_cond_move): Adjust for arm_restrict_it.
24528 (thumb2_cond_arith): Disable for arm_restrict_it.
24529 (thumb2_cond_arith_strict_it): New pattern.
24530 (thumb2_cond_sub): Adjust for arm_restrict_it.
24531 (thumb2_movcond): Likewise.
24532 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24533 (thumb2_zero_extendhisi2_v6): Likewise.
24534 (thumb2_zero_extendqisi2_v6): Likewise.
24535 (orsi_notsi_si): Likewise.
24536 (orsi_not_shiftsi_si): Likewise.
24538 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24540 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24541 instruction sequence is 1 byte shorter.
24543 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24545 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24546 it is not needed after split.
24548 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24551 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24552 second label for nonlocal goto receivers. Don't output pic base labels
24553 unless we're producing PIC; mark that action unreachable().
24554 (ix86_save_reg): If the function contains a nonlocal label, save the
24556 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24557 * config/darwin.c (emitted_pic_label_num): New GTY.
24558 (update_pic_label_number_if_needed): New.
24559 (machopic_output_function_base_name): Adjust for nonlocal receiver
24561 (machopic_should_output_picbase_label): New.
24562 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24563 (nonlocal_goto_receiver): New insn and split.
24565 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24567 * config/aarch64/aarch64-builtins.c
24568 (aarch64_fold_builtin): Fold abs in all modes.
24569 * config/aarch64/aarch64-simd-builtins.def
24570 (abs): Enable for all modes.
24571 * config/aarch64/arm_neon.h
24572 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24573 (vabs_f64): Add missing intrinsic.
24575 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24577 * config/aarch64/arm_neon.h (vabs_s64): New function
24579 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24582 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24583 * config/avr/avr.md (adjust_len): Add `round'.
24584 * config/avr/avr-protos.h (avr_out_round): New prototype.
24585 (avr_out_plus): Add `out_label' argument.
24586 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24587 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24588 Handle the case where `insn' is just a pattern.
24589 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24590 (avr_out_round): New function.
24591 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24593 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24595 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24596 Add check for flag_stack_usage to handle -fstack-usage support
24598 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24600 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24601 interaction for new Power8 flags and VSX.
24603 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24605 PR middle-end/57698
24606 * tree-inline.c (expand_call_inline): Emit errors during
24607 early_inlining only if optimization is not turned on.
24609 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24613 * passes.c (init_optimization_passes): Move the construction of
24614 the pass hierarchy into a new passes.def file.
24616 * Makefile.in (passes.o): Add dependency on passes.def.
24618 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24620 * passes.c (init_optimization_passes): Introduce macros for
24621 constructing the tree of passes (INSERT_PASSES_AFTER,
24622 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24623 TERMINATE_PASS_LIST).
24625 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24626 Wei Mi <wmi@google.com>
24628 PR rtl-optimization/57878
24629 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24631 (reload_pseudo_compare_func): Check nregs first for reload
24634 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24636 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24638 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24640 * read-rtl.c (validate_const_int): Once an invalid character is
24641 seen, quit the loop.
24643 * gengtype.c (write_roots): Similarly once we find the "deletable"
24644 or "if_marked" option.
24646 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24648 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24649 "xtab" and "sat". Move value "clz" from here to ...
24650 (attriubte "type"): ... here.
24651 (satsi_<SAT:code>): Delete "insn" attribute.
24652 (satsi_<SAT:code>_shift): Likewise.
24653 (arm_zero_extendqisi2addsi): Likewise.
24654 (arm_extendqisi2addsi): Likewise.
24655 (clzsi2): Update for attribute changes.
24656 (rbitsi2): Likewise.
24657 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24659 (arm_usatsihi): Likewise.
24660 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24662 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24664 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24665 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24666 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24667 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24668 in alphabetical order.
24669 (attribute "core_cycles"): Update for attribute changes.
24670 (arm_addsi3): Likewise.
24671 (addsi3_compare0): Likewise.
24672 (addsi3_compare0_scratch): Likewise.
24673 (addsi3_compare_op1): Likewise.
24674 (addsi3_compare_op2): Likewise.
24675 (compare_addsi2_op0): Likewise.
24676 (compare_addsi2_op1): Likewise.
24677 (addsi3_carryin_shift_<optab>): Likewise.
24678 (subsi3_carryin_shift): Likewise.
24679 (rsbsi3_carryin_shift): Likewise.
24680 (arm_subsi3_insn): Likewise.
24681 (subsi3_compare0): Likewise.
24682 (subsi3_compare): Likewise.
24683 (arm_andsi3_insn): Likewise.
24684 (thumb1_andsi3_insn): Likewise.
24685 (andsi3_compare0): Likewise.
24686 (andsi3_compare0_scratch): Likewise.
24687 (zeroextractsi_compare0_scratch
24688 (andsi_not_shiftsi_si): Likewise.
24689 (iorsi3_insn): Likewise.
24690 (iorsi3_compare0): Likewise.
24691 (iorsi3_compare0_scratch): Likewise.
24692 (arm_xorsi3): Likewise.
24693 (thumb1_xorsi3_insn): Likewise.
24694 (xorsi3_compare0): Likewise.
24695 (xorsi3_compare0_scratch): Likewise.
24696 (satsi_<SAT:code>_shift): Likewise.
24698 (arm_shiftsi3): Likewise.
24699 (shiftsi3_compare0): Likewise.
24700 (not_shiftsi): Likewise.
24701 (not_shiftsi_compare0): Likewise.
24702 (not_shiftsi_compare0_scratch): Likewise.
24703 (arm_one_cmplsi2): Likewise.
24704 (thumb_one_complsi2): Likewise.
24705 (notsi_compare0): Likewise.
24706 (notsi_compare0_scratch): Likewise.
24707 (thumb1_zero_extendhisi2): Likewise.
24708 (arm_zero_extendhisi2): Likewise.
24709 (arm_zero_extendhisi2_v6): Likewise.
24710 (arm_zero_extendhisi2addsi): Likewise.
24711 (thumb1_zero_extendqisi2): Likewise.
24712 (thumb1_zero_extendqisi2_v6): Likewise.
24713 (arm_zero_extendqisi2): Likewise.
24714 (arm_zero_extendqisi2_v6): Likewise.
24715 (arm_zero_extendqisi2addsi): Likewise.
24716 (thumb1_extendhisi2): Likewise.
24717 (arm_extendhisi2): Likewise.
24718 (arm_extendhisi2_v6): Likewise.
24719 (arm_extendqisi): Likewise.
24720 (arm_extendqisi_v6): Likewise.
24721 (arm_extendqisi2addsi): Likewise.
24722 (thumb1_extendqisi2): Likewise.
24723 (thumb1_movdi_insn): Likewise.
24724 (arm_movsi_insn): Likewise.
24725 (movsi_compare0): Likewise.
24726 (movhi_insn_arch4): Likewise.
24727 (movhi_bytes): Likewise.
24728 (arm_movqi_insn): Likewise.
24729 (thumb1_movqi_insn): Likewise.
24730 (arm32_movhf): Likewise.
24731 (thumb1_movhf): Likewise.
24732 (arm_movsf_soft_insn): Likewise.
24733 (thumb1_movsf_insn): Likewise.
24734 (movdf_soft_insn): Likewise.
24735 (thumb_movdf_insn): Likewise.
24736 (arm_cmpsi_insn): Likewise.
24737 (cmpsi_shiftsi): Likewise.
24738 (cmpsi_shiftsi_swp): Likewise.
24739 (arm_cmpsi_negshiftsi_si): Likewise.
24740 (movsicc_insn): Likewise.
24741 (movsfcc_soft_insn): Likewise.
24742 (arith_shiftsi): Likewise.
24743 (arith_shiftsi_compare0
24744 (arith_shiftsi_compare0_scratch
24745 (sub_shiftsi): Likewise.
24746 (sub_shiftsi_compare0
24747 (sub_shiftsi_compare0_scratch
24748 (and_scc): Likewise.
24749 (cond_move): Likewise.
24750 (if_plus_move): Likewise.
24751 (if_move_plus): Likewise.
24752 (if_move_not): Likewise.
24753 (if_not_move): Likewise.
24754 (if_shift_move): Likewise.
24755 (if_move_shift): Likewise.
24756 (if_shift_shift): Likewise.
24757 (if_not_arith): Likewise.
24758 (if_arith_not): Likewise.
24759 (cond_move_not): Likewise.
24760 (thumb1_ashlsi3): Set type attribute.
24761 (thumb1_ashrsi3): Likewise.
24762 (thumb1_lshrsi3): Likewise.
24763 (thumb1_rotrsi3): Likewise.
24764 (shiftsi3_compare0_scratch): Likewise.
24765 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24766 (neon_mov<mode>): Likewise.
24767 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24769 (thumb2_movsi_insn): Likewise.
24770 (thumb2_cmpsi_neg_shiftsi): Likewise.
24771 (thumb2_extendqisi_v6): Likewise.
24772 (thumb2_zero_extendhisi2_v6): Likewise.
24773 (thumb2_zero_extendqisi2_v6): Likewise.
24774 (thumb2_shiftsi3_short): Likewise.
24775 (thumb2_addsi3_compare0_scratch): Likewise.
24776 (orsi_not_shiftsi_si): Likewise.
24777 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24778 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24780 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24781 (1020alu_shift_op): Likewise.
24782 (1020alu_shift_reg_op): Likewise.
24783 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24784 (alu_shift_op): Likewise.
24785 (alu_shift_reg_op): Likewise.
24786 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24787 (11_alu_shift_op): Likewise.
24788 (11_alu_shift_reg_op): Likewise.
24789 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24790 (9_alu_shift_reg_op): Likewise.
24791 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24793 (cortex_a15_alu_shift): Likewise.
24794 (cortex_a15_alu_shift_reg): Likewise.
24795 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24797 (cortex_a5_alu_shift): Likewise.
24798 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24800 (cortex_a53_alu_shift): Likewise.
24801 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24803 (cortex_a7_alu_reg): Likewise.
24804 (cortex_a7_alu_shift): Likewise.
24805 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24807 (cortex_a8_alu_shift): Likewise.
24808 (cortex_a8_alu_shift_reg): Likewise.
24809 (cortex_a8_mov): Likewise.
24810 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24811 (cortex_a9_dp_shift): Likewise.
24812 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24814 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24816 (cortex_r4_mov): Likewise.
24817 (cortex_r4_alu_shift): Likewise.
24818 (cortex_r4_alu_shift_reg): Likewise.
24819 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24820 (526_alu_shift_op): Likewise.
24821 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24822 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24823 (626te_alu_shift_op): Likewise.
24824 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24825 (726te_alu_op): Likewise.
24826 (726te_alu_shift_op): Likewise.
24827 (726te_alu_shift_reg_op): Likewise.
24828 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24829 (mp626_alu_shift_op): Likewise.
24830 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24831 (pj4_alu_e1_conds): Likewise.
24832 (pj4_alu): Likewise.
24833 (pj4_alu_conds): Likewise.
24834 (pj4_shift): Likewise.
24835 (pj4_shift_conds): Likewise.
24836 (pj4_alu_shift): Likewise.
24837 (pj4_alu_shift_conds): Likewise.
24838 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24840 (cortexa7_older_only): Likewise.
24841 (cortexa7_younger): Likewise.
24843 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24845 * ipa-pure-const.c (generate_summary): Rename to...
24846 (pure_const_generate_summary): ... this.
24848 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24850 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24852 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24855 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24858 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24860 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24861 enabled without -march=zEC12.
24862 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24865 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24867 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24868 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24869 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24870 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24871 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24872 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24873 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24875 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24876 and ISA_HAS_NMADD3_NMSUB3.
24877 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24878 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24879 (nmsub4<mode>, nmsub3<mode>): Likewise.
24880 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24882 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24884 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24885 TARGET_MIPS5400 checking.
24887 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24888 Peter Bergner <bergner@vnet.ibm.com>
24890 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24891 registers in the comment.
24892 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24893 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24894 rather than FIRST_PSEUDO_REGISTERS.
24896 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24898 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24899 enable extra ISA flags with TARGET_HTM.
24901 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24903 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24906 2013-07-15 Cong Hou <congh@google.com>
24908 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24909 in compare function for sorting.
24911 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24913 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24914 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24915 * config/rs6000/rs6000.opt: Add -mhtm option.
24916 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24917 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24918 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24919 __HTM__ if the HTM instructions are available.
24920 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24921 htm_spr_reg_operand): New define_predicates.
24922 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24923 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24925 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24926 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24927 HTM builtin functions.
24928 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24929 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24930 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24931 (rs6000_builtin_mask_calculate): Likewise.
24932 (rs6000_option_override_internal): Likewise.
24933 (bdesc_htm): Add new HTM builtin support.
24934 (htm_spr_num): New function.
24935 (htm_spr_regno): Likewise.
24936 (rs6000_htm_spr_icode): Likewise.
24937 (htm_expand_builtin): Likewise.
24938 (htm_init_builtins): Likewise.
24939 (rs6000_expand_builtin): Add support for HTM builtin functions.
24940 (rs6000_init_builtins): Likewise.
24941 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24943 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24944 (TARGET_HTM, MASK_HTM): Define macros.
24945 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24946 (FIXED_REGISTERS): Likewise.
24947 (CALL_USED_REGISTERS): Likewise.
24948 (CALL_REALLY_USED_REGISTERS): Likewise.
24949 (REG_ALLOC_ORDER): Likewise.
24950 (enum reg_class): Likewise.
24951 (REG_CLASS_NAMES): Likewise.
24952 (REG_CLASS_CONTENTS): Likewise.
24953 (REGISTER_NAMES): Likewise.
24954 (ADDITIONAL_REGISTER_NAMES): Likewise.
24955 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24956 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24957 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24958 * config/rs6000/htm.md: New file.
24959 * config/rs6000/htmintrin.h: New file.
24960 * config/rs6000/htmxlintrin.h: New file.
24962 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24964 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24965 Define SYMBOL_TINY_GOT, update comment.
24966 * config/aarch64/aarch64.c
24967 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24968 (aarch64_expand_mov_immediate): Likewise.
24969 (aarch64_print_operand): Likewise.
24970 (aarch64_classify_symbol): Likewise.
24971 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24972 (ldr_got_tiny): Define.
24974 2013-07-13 Tobias Grosser <tobias@grosser.es>
24976 PR tree-optimization/54094
24977 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24978 scheduling dimension for the parallelism check from the polyhedral
24979 information in the AST.
24980 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24983 2013-07-13 Jason Merrill <jason@redhat.com>
24985 * print-tree.c (debug_vec_tree): Use debug_raw.
24986 (debug_raw (vec<tree, va_gc> &)): New.
24987 (debug_raw (vec<tree, va_gc> *)): New.
24988 * tree.h: Declare them.
24990 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24992 * ifcvt.c (ifcvt_after_combine): New static variable.
24993 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24995 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24996 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24997 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24999 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25001 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25003 2013-07-12 Michael Matz <matz@suse.de>
25005 PR middle-end/55771
25006 * convert.c (convert_to_real): Reject non-float inner types.
25008 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25010 * config/aarch64/aarch64-protos.h
25011 (aarch64_simd_immediate_valid_for_move): Remove.
25012 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25013 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25015 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25017 2013-07-11 Steve Ellcey <sellcey@mips.com>
25019 * config/mips/mips.c (mips_conditional_register_usage): Do not
25020 use t[0-7] registers in MIPS16 mode when optimizing for size.
25022 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25024 * config/i386/i386.c (dispatch_function_versions): Fix array
25025 indexing of function_version_info to match actual_versions.
25027 2013-07-11 Teresa Johnson <tejohnson@google.com>
25029 * vec.h (struct va_gc): Move release out-of-line.
25030 (va_gc::release): Call ggc_free on released vec.
25032 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25034 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25035 Require GOT register as additional operand in UNSPEC.
25036 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25037 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25038 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25039 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25040 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25041 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25042 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25044 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25047 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25048 name seen by assembler/linker rather if available.
25050 2013-07-11 Andreas Schwab <schwab@suse.de>
25052 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25054 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25056 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25058 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25060 * doc/tm.texi.in: Move hook documentation to ....
25061 * target.def: ... here.
25063 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25064 text on @hook line.
25065 * doc/tm.texi: Regenerate.
25067 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25070 * doc/invoke.texi: Document -Wconditionally-supported.
25072 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25075 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25078 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25081 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25082 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25083 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25084 Remove duplicate devices.
25085 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25086 * config/avr/t-multilib: Regenerate.
25087 * config/avr/avr-tables.opt: Regenerate.
25088 * doc/avr-mmcu.texi: Regenerate.
25090 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25093 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25095 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25097 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25098 the cost of MULT when optimizing for size.
25100 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25102 * config/cr16/cr16-protos.h: Don't include target.h.
25104 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25106 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25107 adjust register size for TDmode and TFmode for VSX registers.
25109 2013-07-08 Kai Tietz <ktietz@redhat.com>
25112 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25113 hook_bool_const_tree_true.
25115 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25117 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25118 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25119 * config/s390/s390.md: Define FPR*_REGNUM constants.
25120 Fix FPR2_REGNUM constant (18 -> 17).
25121 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25122 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25123 ("trunc<BFP:mode><DFP_ALL:mode>2")
25124 ("trunc<DFP_ALL:mode><BFP:mode>2")
25125 ("*extend<BFP:mode><DFP_ALL:mode>2")
25126 ("*extend<DFP_ALL:mode><BFP:mode>2")
25127 ("extend<BFP:mode><DFP_ALL:mode>2")
25128 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25131 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25133 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25135 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25137 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25138 and cfun_fpr_bit_p to cfun_fpr_save_p.
25139 (s390_frame_area, s390_register_info, s390_frame_info)
25140 (s390_emit_prologue, s390_emit_epilogue)
25141 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25143 * config/s390/s390.h: Define *_REGNUM macros for floating point
25146 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25148 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25150 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25152 PR rtl-optimization/57786
25153 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25154 and break out of the loop when it is set to false.
25156 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25159 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25160 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25161 (const_int 63)) 0)).
25162 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25163 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25164 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25166 PR rtl-optimization/57829
25167 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25168 mask bits outside of mode are just sign-extension from mode to HWI.
25170 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25172 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25173 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25174 adjust_address instead of change_address to keep info about alignment.
25175 (emit_strmov): Remove.
25176 (emit_memmov): New function.
25177 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25178 (expand_movmem_epilogue): Likewise and return updated rtx for
25180 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25181 destination and source.
25182 (decide_alignment): Refactor, handle vector_loop.
25183 (ix86_expand_movmem): Likewise.
25184 (ix86_expand_setmem): Likewise.
25185 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25187 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25189 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25190 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25192 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25194 * config/i386/sse.md (sse_movlhps): Change alternative 3
25195 of operand 2 to "m".
25197 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25200 * config/i386/sse.md (iptr): New mode attribute.
25201 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25202 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25203 (<sse>_vmmul<mode>3): Ditto.
25204 (<sse>_vmdiv<mode>3): Ditto.
25205 (sse_vmrcpv4sf2): Ditto.
25206 (<sse>_vmsqrt<mode>2): Ditto.
25207 (sse_vmrsqrtv4sf2): Ditto.
25208 (<sse>_vm<code><mode>3): Ditto.
25209 (avx_vmcmp<mode>3): Ditto.
25210 (<sse>_vmmaskcmp<mode>3): Ditto.
25211 (<sse>_comi): Ditto.
25212 (<sse>_ucomi): Ditto.
25213 (*xop_vmfrcz_<mode>): Ditto.
25214 (*fmai_fmadd_<mode>): Ditto.
25215 (*fmai_fmsub_<mode>): Ditto.
25216 (*fmai_fnmadd_<mode>): Ditto.
25217 (*fmai_fnmsub_<mode>): Ditto.
25218 (*fma4i_vmfmadd_<mode>): Ditto.
25219 (*fma4i_vmfmsub_<mode>): Ditto.
25220 (*fma4i_vmfnmadd_<mode>): Ditto.
25221 (*fma4i_vmfnmsub_<mode>): Ditto.
25222 (*xop_vmfrcz_<mode>): Ditto.
25223 (sse_cvtps2pi): Ditto.
25224 (sse_cvttps2pi): Ditto.
25225 (sse_cvtss2si): Ditto.
25226 (sse_cvtss2si_2): Ditto.
25227 (sse_cvtss2siq_2): Ditto.
25228 (sse_cvttss2si): Ditto.
25229 (sse_cvttss2siq): Ditto.
25230 (sse_cvtsd2si): Ditto.
25231 (sse_cvtsd2si_2): Ditto.
25232 (sse_cvtsd2siq_2): Ditto.
25233 (sse_cvttsd2si): Ditto.
25234 (sse_cvttsd2siq): Ditto.
25235 (sse_cvtsd2ss): Ditto.
25236 (sse_cvtss2sd): Ditto.
25237 (avx2_pbroadcast<mode>): Ditto.
25238 (avx2_pbroadcast<mode>_1): Ditto.
25239 (*avx_vperm_broadcast_v4sf): Ditto.
25241 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25242 (sse_movlhps): Ditto.
25243 (sse_storehps): Ditto.
25244 (sse_loadhps): Ditto.
25245 (sse_storelps): Ditto.
25246 (sse_loadlps): Ditto.
25247 (*vec_concatv4sf): Ditto.
25248 (*vec_interleave_highv2df): Ditto.
25249 (*vec_interleave_lowv2df): Ditto.
25250 (*vec_extractv2df_1_sse): Ditto.
25251 (*vec_extractv2df_0_sse): Ditto.
25252 (sse2_storelpd): Ditto.
25253 (sse2_loadlpd): Ditto.
25254 (sse2_movsd): Ditto.
25255 (*vec_concatv4si): Ditto.
25256 (vec_concatv2di): Ditto.
25258 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25259 for Intel asm dialect.
25260 (mmx_punpcklwd): Ditto.
25261 (mmx_punpckldq): Ditto.
25263 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25264 for intel assembler dialect.
25266 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25269 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25270 for BUILT_IN_C{LZ,LRSB}*.
25271 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25272 * tree-vrp.c (extract_range_basic): Handle
25273 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25274 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25275 fall thru to code calling set_value*.
25276 * builtins.c (expand_builtin): Remove *IMAX cases.
25277 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25278 if width is bigger than 2*HWI.
25280 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25282 PR rtl-optimization/55342
25283 * lra-int.h (lra_subreg_reload_pseudos): New.
25284 * lra.c: Add undoing optional reloads to the block diagram.
25285 (lra_subreg_reload_pseudos): New.
25286 (lra_optional_reload_pseudos): Change comments.
25287 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25288 lra_optional_reload_pseudos after undo transformations.
25289 * lra-assigns.c (pseudo_prefix_title): New.
25290 (lra_setup_reg_renumber): Use it.
25291 (spill_for): Ditto. Check subreg reload pseudos too.
25292 (assign_by_spills): Consider subreg reload pseudos too.
25293 * lra-constraints.c (simplify_operand_subreg): Use
25294 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25295 (curr_insn_transform): Recognize and do optional reloads.
25296 (undo_optional_reloads): New.
25297 (lra_undo_inheritance): Call undo_optional_reloads.
25299 2013-07-05 Thomas Quinot <quinot@adacore.com>
25301 * tree-complex.c (expand_complex_operations_1): Fix typo.
25303 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25305 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25306 (tune_params): New member 'const vec_costs'.
25307 * config/aarch64/aarch64.c (generic_vector_cost): New.
25308 (generic_tunings): New member 'generic_vector_cost'.
25309 (aarch64_builtin_vectorization_cost): New.
25310 (aarch64_add_stmt_cost): New.
25311 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25312 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25314 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25317 * config/i386/predicates.md (vsib_address_operand): Disallow
25318 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25320 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25322 PR middle-end/55030
25323 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25324 expand_builtin_setjmp_receiver.
25325 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25326 with NULL for the label parameter.
25327 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25328 the frame-pointer. Adjust comments.
25329 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25330 only if LABEL is non-NULL.
25332 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25334 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25335 (ARM_ABI_AAPCS64): Ditto.
25337 (ARM_DEFAULT_ABI): Ditto.
25339 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25341 * config/aarch64/aarch64-builtins.c
25342 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25343 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25345 * config/aarch64/aarch64-simd.md
25346 (aarch64_ld1<VALL:mode>): New.
25347 (aarch64_st1<VALL:mode>): Likewise.
25348 * config/aarch64/arm_neon.h
25349 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25351 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25353 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25355 (ix86_option_override_internal):Turn on all -mavx target flags by
25356 default as they are dependent on AVX anyway.
25358 2013-07-02 Cary Coutant <ccoutant@google.com>
25360 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25361 deterministic hash.
25362 (loc_checksum_ordered): Likewise.
25363 (hash_loc_operands): Remove inline keyword.
25365 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25367 PR tree-optimization/57741
25368 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25369 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25370 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25371 Allow REAL_CST step_exprs if flag_associative_math.
25372 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25374 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25376 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25378 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25380 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25382 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25384 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25386 (iorsi3_insn): Likewise.
25387 (arm_xorsi3): Likewise.
25389 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25391 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25393 (attribute "type"): ... here, and prefix with "wmmx_".
25394 (attribute "core_cycles"): Update for attribute changes.
25395 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25396 (tbcstv4hi): Likewise.
25397 (tbcstv2si): Likewise.
25398 (iwmmxt_iordi3): Likewise.
25399 (iwmmxt_xordi3): Likewise.
25400 (iwmmxt_anddi3): Likewise.
25401 (iwmmxt_nanddi3): Likewise.
25402 (iwmmxt_arm_movdi): Likewise.
25403 (iwmmxt_movsi_insn): Likewise.
25404 (mov<mode>_internal): Likewise.
25405 (and<mode>3_iwmmxt): Likewise.
25406 (ior<mode>3_iwmmxt): Likewise.
25407 (xor<mode>3_iwmmxt): Likewise.
25408 (add<mode>3_iwmmxt): Likewise.
25409 (ssaddv8qi3): Likewise.
25410 (ssaddv4hi3): Likewise.
25411 (ssaddv2si3): Likewise.
25412 (usaddv8qi3): Likewise.
25413 (usaddv4hi3): Likewise.
25414 (usaddv2si3): Likewise.
25415 (sub<mode>3_iwmmxt): Likewise.
25416 (sssubv8qi3): Likewise.
25417 (sssubv4hi3): Likewise.
25418 (sssubv2si3): Likewise.
25419 (ussubv8qi3): Likewise.
25420 (ussubv4hi3): Likewise.
25421 (ussubv2si3): Likewise.
25422 (mulv4hi3_iwmmxt): Likewise.
25423 (smulv4hi3_highpart): Likewise.
25424 (umulv4hi3_highpart): Likewise.
25425 (iwmmxt_wmacs): Likewise.
25426 (iwmmxt_wmacsz): Likewise.
25427 (iwmmxt_wmacu): Likewise.
25428 (iwmmxt_wmacuz): Likewise.
25429 (iwmmxt_clrdi): Likewise.
25430 (iwmmxt_clrv8qi): Likewise.
25431 (iwmmxt_clr4hi): Likewise.
25432 (iwmmxt_clr2si): Likewise.
25433 (iwmmxt_uavgrndv8qi3): Likewise.
25434 (iwmmxt_uavgrndv4hi3): Likewise.
25435 (iwmmxt_uavgv8qi3): Likewise.
25436 (iwmmxt_uavgv4hi3): Likewise.
25437 (iwmmxt_tinsrb): Likewise.
25438 (iwmmxt_tinsrh): Likewise.
25439 (iwmmxt_tinsrw): Likewise.
25440 (iwmmxt_textrmub): Likewise.
25441 (iwmmxt_textrmsb): Likewise.
25442 (iwmmxt_textrmuh): Likewise.
25443 (iwmmxt_textrmsh): Likewise.
25444 (iwmmxt_textrmw): Likewise.
25445 (iwmxxt_wshufh): Likewise.
25446 (eqv8qi3): Likewise.
25447 (eqv4hi3): Likewise.
25448 (eqv2si3): Likewise.
25449 (gtuv8qi3): Likewise.
25450 (gtuv4hi3): Likewise.
25451 (gtuv2si3): Likewise.
25452 (gtv8qi3): Likewise.
25453 (gtv4hi3): Likewise.
25454 (gtv2si3): Likewise.
25455 (smax<mode>3_iwmmxt): Likewise.
25456 (umax<mode>3_iwmmxt): Likewise.
25457 (smin<mode>3_iwmmxt): Likewise.
25458 (umin<mode>3_iwmmxt): Likewise.
25459 (iwmmxt_wpackhss): Likewise.
25460 (iwmmxt_wpackwss): Likewise.
25461 (iwmmxt_wpackdss): Likewise.
25462 (iwmmxt_wpackhus): Likewise.
25463 (iwmmxt_wpackwus): Likewise.
25464 (iwmmxt_wpackdus): Likewise.
25465 (iwmmxt_wunpckihb): Likewise.
25466 (iwmmxt_wunpckihh): Likewise.
25467 (iwmmxt_wunpckihw): Likewise.
25468 (iwmmxt_wunpckilb): Likewise.
25469 (iwmmxt_wunpckilh): Likewise.
25470 (iwmmxt_wunpckilw): Likewise.
25471 (iwmmxt_wunpckehub): Likewise.
25472 (iwmmxt_wunpckehuh): Likewise.
25473 (iwmmxt_wunpckehuw): Likewise.
25474 (iwmmxt_wunpckehsb): Likewise.
25475 (iwmmxt_wunpckehsh): Likewise.
25476 (iwmmxt_wunpckehsw): Likewise.
25477 (iwmmxt_wunpckelub): Likewise.
25478 (iwmmxt_wunpckeluh): Likewise.
25479 (iwmmxt_wunpckeluw): Likewise.
25480 (iwmmxt_wunpckelsb): Likewise.
25481 (iwmmxt_wunpckelsh): Likewise.
25482 (iwmmxt_wunpckelsw): Likewise.
25483 (ror<mode>3): Likewise.
25484 (ashr<mode>3_iwmmxt): Likewise.
25485 (lshr<mode>3_iwmmxt): Likewise.
25486 (ashl<mode>3_iwmmxt): Likewise.
25487 (ror<mode>3_di): Likewise.
25488 (ashr<mode>3_di): Likewise.
25489 (lshr<mode>3_di): Likewise.
25490 (ashl<mode>3_di): Likewise.
25491 (iwmmxt_wmadds): Likewise.
25492 (iwmmxt_wmaddu): Likewise.
25493 (iwmmxt_tmia): Likewise.
25494 (iwmmxt_tmiaph): Likewise.
25495 (iwmmxt_tmiabb): Likewise.
25496 (iwmmxt_tmiatb): Likewise.
25497 (iwmmxt_tmiabt): Likewise.
25498 (iwmmxt_tmiatt): Likewise.
25499 (iwmmxt_tmovmskb): Likewise.
25500 (iwmmxt_tmovmskh): Likewise.
25501 (iwmmxt_tmovmskw): Likewise.
25502 (iwmmxt_waccb): Likewise.
25503 (iwmmxt_wacch): Likewise.
25504 (iwmmxt_waccw): Likewise.
25505 (iwmmxt_waligni): Likewise.
25506 (iwmmxt_walignr): Likewise.
25507 (iwmmxt_walignr0): Likewise.
25508 (iwmmxt_walignr1): Likewise.
25509 (iwmmxt_walignr2): Likewise.
25510 (iwmmxt_walignr3): Likewise.
25511 (iwmmxt_wsadb): Likewise.
25512 (iwmmxt_wsadh): Likewise.
25513 (iwmmxt_wsadbz): Likewise.
25514 (iwmmxt_wsadhz): Likewise.
25515 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25516 (iwmmxt_wabsdiffb): Likewise.
25517 (iwmmxt_wabsdiffh): Likewise.
25518 (iwmmxt_wabsdiffw): Likewise.
25519 (iwmmxt_waddsubhx): Likewise
25520 (iwmmxt_wsubaddhx): Likewise.
25521 (addc<mode>3): Likewise.
25522 (iwmmxt_avg4): Likewise.
25523 (iwmmxt_avg4r): Likewise.
25524 (iwmmxt_wmaddsx): Likewise.
25525 (iwmmxt_wmaddux): Likewise.
25526 (iwmmxt_wmaddsn): Likewise.
25527 (iwmmxt_wmaddun): Likewise.
25528 (iwmmxt_wmulwsm): Likewise.
25529 (iwmmxt_wmulwum): Likewise.
25530 (iwmmxt_wmulsmr): Likewise.
25531 (iwmmxt_wmulumr): Likewise.
25532 (iwmmxt_wmulwsmr): Likewise.
25533 (iwmmxt_wmulwumr): Likewise.
25534 (iwmmxt_wmulwl): Likewise.
25535 (iwmmxt_wqmulm): Likewise.
25536 (iwmmxt_wqmulwm): Likewise.
25537 (iwmmxt_wqmulmr): Likewise.
25538 (iwmmxt_wqmulwmr): Likewise.
25539 (iwmmxt_waddbhusm): Likewise.
25540 (iwmmxt_waddbhusl): Likewise.
25541 (iwmmxt_wqmiabb): Likewise.
25542 (iwmmxt_wqmiabt): Likewise.
25543 (iwmmxt_wqmiatb): Likewise.
25544 (iwmmxt_wqmiatt): Likewise.
25545 (iwmmxt_wqmiabbn): Likewise.
25546 (iwmmxt_wqmiabtn): Likewise.
25547 (iwmmxt_wqmiatbn): Likewise.
25548 (iwmmxt_wqmiattn): Likewise.
25549 (iwmmxt_wmiabb): Likewise.
25550 (iwmmxt_wmiabt): Likewise.
25551 (iwmmxt_wmiatb): Likewise.
25552 (iwmmxt_wmiatt): Likewise.
25553 (iwmmxt_wmiabbn): Likewise.
25554 (iwmmxt_wmiabtn): Likewise.
25555 (iwmmxt_wmiatbn): Likewise.
25556 (iwmmxt_wmiattn): Likewise.
25557 (iwmmxt_wmiawbb): Likewise.
25558 (iwmmxt_wmiawbt): Likewise.
25559 (iwmmxt_wmiawtb): Likewise.
25560 (iwmmxt_wmiawtt): Likewise.
25561 (iwmmxt_wmiawbbn): Likewise.
25562 (iwmmxt_wmiawbtn): Likewise.
25563 (iwmmxt_wmiawtbn): Likewise.
25564 (iwmmxt_wmiawttn): Likewise.
25565 (iwmmxt_wmerge): Likewise.
25566 (iwmmxt_tandc<mode>3): Likewise.
25567 (iwmmxt_torc<mode>3): Likewise.
25568 (iwmmxt_torvsc<mode>3): Likewise.
25569 (iwmmxt_textrc<mode>3): Likewise.
25570 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25571 (wmmxt_pack): Likewise.
25572 (wmmxt_mult_c1): Likewise.
25573 (wmmxt_mult_c2): Likewise.
25574 (wmmxt_alu_c1): Likewise.
25575 (wmmxt_alu_c2): Likewise.
25576 (wmmxt_alu_c3): Likewise.
25577 (wmmxt_transfer_c1): Likewise.
25578 (wmmxt_transfer_c2): Likewise.
25579 (wmmxt_transfer_c3): Likewise.
25580 (marvell_f_iwmmxt_wstr): Likewise.
25581 (marvell_f_iwmmxt_wldr): Likewise.
25583 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25585 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25587 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25590 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25591 * lra-constraints.c (need_for_split_p): Check call used hard regs
25592 living through calls.
25594 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25595 call used regs for call insn.
25597 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25600 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25601 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25603 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25605 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25607 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25609 * lra-constraints.c (need_for_split_p): Check call used hard regs
25610 living through calls.
25612 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25615 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25616 to tie with any other modes. Eliminate Altivec vector mode tests,
25617 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25618 code, to return 0 if testing MODE2 for a condition, if we've
25619 already tested MODE1 for the same condition.
25621 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25623 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25626 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25628 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25629 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25631 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25633 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25635 (aarch64_symbolic_constant_p): Remove.
25636 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25637 static. Fix line length and white space.
25638 (aarch64_symbolic_constant_p): Remove.
25639 * config/aarch64/predicates.md (aarch64_valid_symref):
25640 Use aarch64_classify_symbol_expression.
25642 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25644 * config/arm/constraints.md (Ts): New constraint.
25645 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25647 (compare_scc): Use "Ts" constraint for operand 0.
25648 (ior_scc_scc): Likewise.
25649 (and_scc_scc): Likewise.
25650 (and_scc_scc_nodom): Likewise.
25651 (ior_scc_scc_cmp): Likewise for operand 7.
25652 (and_scc_scc_cmp): Likewise.
25653 * config/arm/thumb2.md (thumb2_movsi_insn):
25654 Add alternatives for 16-bit encodings.
25655 (thumb2_movhi_insn): Likewise.
25656 (thumb2_movsicc_insn): Likewise.
25657 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25658 (thumb2_negscc): Use "Ts" constraint.
25659 Move mvn instruction outside cond_exec block.
25660 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25661 for 16-bit encodings.
25663 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25665 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25667 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25668 (mulsi3subsi): Likewise.
25669 (mulsidi3adddi): Likewise.
25670 (mulsidi3_v6): Likewise.
25671 (umulsidi3_v6): Likewise.
25672 (umulsidi3adddi_v6): Likewise.
25673 (smulsi3_highpart_v6): Likewise.
25674 (umulsi3_highpart_v6): Likewise.
25675 (mulhisi3tb): Likewise.
25676 (mulhisi3bt): Likewise.
25677 (mulhisi3tt): Likewise.
25678 (maddhisi4): Likewise.
25679 (maddhisi4tb): Likewise.
25680 (maddhisi4tt): Likewise.
25681 (maddhidi4): Likewise.
25682 (maddhidi4tb): Likewise.
25683 (maddhidi4tt): Likewise.
25684 (zeroextractsi_compare0_scratch): Likewise.
25685 (insv_zero): Likewise.
25686 (insv_t2): Likewise.
25687 (anddi_notzesidi_di): Likewise.
25688 (anddi_notsesidi_di): Likewise.
25689 (andsi_notsi_si): Likewise.
25690 (iordi_zesidi_di): Likewise.
25691 (xordi_zesidi_di): Likewise.
25692 (andsi_iorsi3_notsi): Likewise.
25693 (smax_0): Likewise.
25694 (smax_m1): Likewise.
25695 (smin_0): Likewise.
25696 (not_shiftsi): Likewise.
25697 (unaligned_loadsi): Likewise.
25698 (unaligned_loadhis): Likewise.
25699 (unaligned_loadhiu): Likewise.
25700 (unaligned_storesi): Likewise.
25701 (unaligned_storehi): Likewise.
25702 (extv_reg): Likewise.
25703 (extzv_t2): Likewise.
25704 (divsi3): Likewise.
25705 (udivsi3): Likewise.
25706 (arm_zero_extendhisi2addsi): Likewise.
25707 (arm_zero_extendqisi2addsi): Likewise.
25708 (compareqi_eq0): Likewise.
25709 (arm_extendhisi2_v6): Likewise.
25710 (arm_extendqisi2addsi): Likewise.
25711 (arm_movt): Likewise.
25712 (thumb2_ldrd): Likewise.
25713 (thumb2_ldrd_base): Likewise.
25714 (thumb2_ldrd_base_neg): Likewise.
25715 (thumb2_strd): Likewise.
25716 (thumb2_strd_base): Likewise.
25717 (thumb2_strd_base_neg): Likewise.
25718 (arm_negsi2): Add alternative for 16-bit encoding.
25719 (arm_one_cmplsi2): Likewise.
25721 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25723 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25724 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25725 (movdfcc): Likewise.
25726 * config/arm/vfp.md (*thumb2_movsf_vfp):
25727 Disable predication for arm_restrict_it.
25728 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25729 (*thumb2_movdfcc_vfp): Likewise.
25730 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25731 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25732 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25733 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25734 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25735 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25736 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25737 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25738 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25739 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25740 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25741 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25742 Disable predication for arm_restrict_it.
25744 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25746 * config/i386/bmiintrin.h (_bextr_u32): New.
25747 (_bextr_u64): Ditto.
25749 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25751 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25752 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25753 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25754 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25755 * config/mips/n32-elf.h: ...this new file.
25757 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25760 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25761 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25763 2013-06-27 Catherine Moore <clm@codesourcery.com>
25765 * config/mips/mips-tables.opt: Regenerate.
25766 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25767 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25768 * doc/invoke.texi: Add -m14kc.
25770 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25773 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25774 constraints of operand 1 and 2.
25777 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25778 to match RTL canonicalization. Swap predicates and
25779 constraints of operand 1 and 2.
25781 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25783 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25784 Process OP_INOUT regs for splitting too.
25786 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25788 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25789 decl before the loop, initialize to NULL.
25790 (vectorizable_load): Initialize ptr_incr to NULL.
25792 2013-06-27 Martin Jambor <mjambor@suse.cz>
25795 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25796 * ipa-ref.c (ipa_maybe_record_reference): New function.
25797 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25798 * ipa-cp.c (create_specialized_node): Record potential references from
25800 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25802 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25804 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25805 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25806 'mode' to force_reg.
25807 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25808 (aarch64_expand_mov_immediate): Likewise.
25810 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25812 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25813 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25815 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25817 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25818 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25819 (struct machine_function): Add tbegin_p.
25820 (s390_canonicalize_comparison): Fold CC mode compares to
25821 conditional jump if possible.
25822 (s390_emit_jump): Return the emitted jump.
25823 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25824 Handle CCRAWmode compares.
25825 (s390_option_override): Default to -mhtm if available.
25826 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25827 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25828 FPRs instead of df_regs_ever_live_p.
25829 (s390_optimize_nonescaping_tx): New function.
25830 (s390_init_frame_layout): Extend clobbered_regs array to cover
25832 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25833 (s390_expand_tbegin): New function.
25834 (enum s390_builtin): New enum definition.
25835 (code_for_builtin): New array definition.
25836 (s390_init_builtins): New function.
25837 (s390_expand_builtin): New function.
25838 (TARGET_INIT_BUILTINS): Define.
25839 (TARGET_EXPAND_BUILTIN): Define.
25840 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25841 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25842 (s390_alc_comparison): Likewise.
25843 * config/s390/s390-modes.def: Add CCRAWmode.
25844 * config/s390/s390.h (processor_flags): Add PF_TX.
25845 (TARGET_CPU_HTM): Define macro.
25846 (TARGET_HTM): Define macro.
25847 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25848 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25849 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25850 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25851 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25852 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25853 ("*cc_to_int"): Move up.
25854 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25855 constants other than 0.
25856 ("*ccraw_to_int"): New insn and splitter definition.
25857 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25858 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25859 ("tx_assist"): New expander.
25860 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25861 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25862 * config/s390/s390.opt: Add -mhtm option.
25863 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25864 * config/s390/htmxlintrin.h: New file.
25865 * config/s390/htmintrin.h: New file.
25866 * config/s390/s390intrin.h: New file.
25867 * doc/extend.texi: Document htm builtins.
25868 * config.gcc: Add the new header files to extra_headers.
25870 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25872 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25873 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25875 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25876 Pat Haugen <pthaugen@us.ibm.com>
25877 Peter Bergner <bergner@vnet.ibm.com>
25879 * config/rs6000/power8.md: New.
25880 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25881 setting for power8 entry.
25882 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25883 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25884 test for Power4/Power5 only.
25885 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25887 (force_new_group): Adjust comment.
25888 * config/rs6000/rs6000.md: Include power8.md.
25890 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25892 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25893 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25895 (tune_params): Update comment.
25896 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25897 (arm_max_conditional_execute): New function.
25898 (thumb2_final_prescan_insn): Use max_insn_skipped and
25899 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25901 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25903 PR tree-optimization/57705
25904 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25905 SSA_NAME step, provided that it is not defined inside the loop.
25906 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25907 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25909 2013-06-25 Martin Jambor <mjambor@suse.cz>
25911 PR middle-end/57670
25912 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25913 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25915 (ipa_note_param_call): Initialize member_ptr flag.
25916 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25917 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25918 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25919 (ipa_read_indirect_edge_info): Likewise.
25921 2013-06-25 Richard Biener <rguenther@suse.de>
25923 PR middle-end/56977
25924 * passes.c (init_optimization_passes): Move pass_fold_builtins
25925 and pass_dce earlier with -Og.
25927 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25929 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25930 <BIT_FIELD_REF>: Remove trailing TAB.
25931 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25934 2013-06-24 Martin Jambor <mjambor@suse.cz>
25936 PR tree-optimization/57358
25937 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25938 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25939 (ipa_analyze_params_uses): Generate pessimistic info when true.
25941 2013-06-24 Martin Jambor <mjambor@suse.cz>
25943 PR tree-optimization/57539
25944 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25945 global.inlined_to of the new node to it. All callers changed.
25946 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25947 inlining_into, pass it to cgraph_clone_node.
25948 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25949 ipa_free_edge_args_substructures.
25950 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25951 rdesc linked list. Do not assert rdesc edges have inlined caller.
25952 Assert we have found an rdesc in the rdesc list.
25954 2013-06-24 Richard Biener <rguenther@suse.de>
25956 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25957 (pointer_set_lookup): Declare.
25958 (class pointer_map): New template class implementing a
25959 generic pointer to T map.
25960 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25961 pointer_map<T>::contains, pointer_map<T>::insert,
25962 pointer_map<T>::traverse): New functions.
25963 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25964 (pointer_set_lookup): New function.
25965 (pointer_set_contains): Use pointer_set_lookup.
25966 (pointer_set_insert): Likewise.
25967 (insert_aux): Remove.
25968 (struct pointer_map_t): Embed a pointer_set_t.
25969 (pointer_map_create): Adjust.
25970 (pointer_map_destroy): Likewise.
25971 (pointer_map_contains): Likewise.
25972 (pointer_map_insert): Likewise.
25973 (pointer_map_traverse): Likewise.
25974 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25975 pointer_map<unsigned> instead of a pointer_map_t.
25976 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25977 (streamer_tree_cache_lookup): Likewise.
25978 (streamer_tree_cache_create): Likewise.
25979 (streamer_tree_cache_delete): Likewise.
25980 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25981 pointer_map<unsigned> instead of a pointer_map_t.
25982 (lto_init_tree_ref_encoder): Adjust.
25983 (lto_destroy_tree_ref_encoder): Likewise.
25984 * lto-section-out.c (lto_output_decl_index): Likewise.
25985 (lto_record_function_out_decl_state): Likewise.
25986 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25988 2013-06-24 Richard Biener <rguenther@suse.de>
25990 PR tree-optimization/57488
25991 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25993 2013-06-24 Alan Modra <amodra@gmail.com>
25995 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25996 (gen_easy_altivec_constant): Likewise.
25997 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25998 easy_vector_constant_msb): Likewise.
26000 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26003 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26004 add missing return true.
26006 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26009 * config/sh/predicates.md (general_extend_operand): Invoke
26010 general_movsrc_operand for memory operands.
26011 (general_movsrc_operand): Allow reg+reg addressing, do not use
26012 general_operand for memory operands.
26014 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26016 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26017 when current target options does not apply.
26018 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26019 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26020 * config/i386/bmiintrin.h: Pass appropriate target
26021 attributes to header.
26022 * config/i386/mmintrin.h: Ditto.
26023 * config/i386/nmmintrin.h: Ditto.
26024 * config/i386/avx2intrin.h: Ditto.
26025 * config/i386/fxsrintrin.h: Ditto.
26026 * config/i386/tbmintrin.h: Ditto.
26027 * config/i386/xsaveintrin.h: Ditto.
26028 * config/i386/f16cintrin.h: Ditto.
26029 * config/i386/xtestintrin.h: Ditto.
26030 * config/i386/xsaveoptintrin.h: Ditto.
26031 * config/i386/bmi2intrin.h: Ditto.
26032 * config/i386/lzcntintrin.h: Ditto.
26033 * config/i386/smmintrin.h: Ditto.
26034 * config/i386/wmmintrin.h: Ditto.
26035 * config/i386/x86intrin.h: Remove all header include guards.
26036 * config/i386/prfchwintrin.h: Ditto.
26037 * config/i386/pmmintrin.h: Ditto.
26038 * config/i386/tmmintrin.h: Ditto.
26039 * config/i386/xmmintrin.h: Ditto.
26040 * config/i386/popcntintrin.h: Ditto.
26041 * config/i386/rdseedintrin.h: Ditto.
26042 * config/i386/ammintrin.h: Ditto.
26043 * config/i386/emmintrin.h: Ditto.
26044 * config/i386/immintrin.h: Remove all header include guards.
26045 * config/i386/fma4intrin.h: Ditto.
26046 * config/i386/lwpintrin.h: Ditto.
26047 * config/i386/xopintrin.h: Ditto.
26048 * config/i386/ia32intrin.h: Ditto.
26049 * config/i386/avxintrin.h: Ditto.
26050 * config/i386/rtmintrin.h: Ditto.
26051 * config/i386/fmaintrin.h: Ditto.
26052 * config/i386/mm3dnow.h: Ditto.
26054 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26056 * common/config/i386/i386-common.c: Handle LZCNT.
26058 2013-06-22 Andi Kleen <ak@linux.intel.com>
26060 * doc/extend.texi: Use __atomic_store_n instead of
26061 __atomic_store in HLE example.
26063 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26065 * config/sh/sh.c: Remove <cstdlib> workaround.
26067 2013-06-21 Andi Kleen <ak@linux.intel.com>
26069 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26071 2013-06-21 Andi Kleen <ak@linux.intel.com>
26073 * doc/extend.texi: Document that __atomic_clear and
26074 __atomic_test_and_set should only be used with bool.
26076 2013-06-20 Jan Hubicka <jh@suse.cz>
26078 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26079 types_same_for_odr.
26080 * tree.c (decls_same_for_odr): New function.
26081 (same_for_edr): New function.
26082 (types_same_for_odr): New function.
26083 (get_binfo_at_offset): Use it.
26084 * tree.h (types_same_for_odr): Declare.
26086 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26087 Jason Merrill <jason@redhat.com>
26089 * system.h: Include <cstdlib> as well as <stdlib.h>.
26091 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26094 * config/i386/i386.c (construct_container): Report error if
26095 long double is used with disabled x87 float returns.
26097 2013-06-20 Jan Hubicka <jh@suse.cz>
26099 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26101 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26103 PR rtl-optimization/57425
26104 PR rtl-optimization/57569
26105 * alias.c (write_dependence_p): Remove parameters mem_mode and
26106 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26107 Changed all callers.
26108 (canon_anti_dependence): Get comments and semantics in sync.
26109 Add parameter mem_canonicalized. Changed all callers.
26110 * rtl.h (canon_anti_dependence): Update prototype.
26112 2013-06-20 Richard Biener <rguenther@suse.de>
26114 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26115 byte case, inline streamer_read_uchar and defer section
26118 2013-06-20 Richard Biener <rguenther@suse.de>
26120 PR tree-optimization/57584
26121 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26122 SSA names into the expanded expression that take part in
26123 abnormal coalescing.
26125 2013-06-19 Sharad Singhai <singhai@google.com>
26127 * gcov.c (print_usage): Handle new option.
26128 (process_args): Ditto.
26129 (get_gcov_intermediate_filename): New function.
26130 (output_intermediate_file): New function.
26131 (output_gcov_file): New function
26132 (generate_results): Handle new option.
26133 (release_function): Relase demangled name.
26134 (read_graph_file): Handle demangled name.
26135 (output_lines): Ditto.
26136 * doc/gcov.texi: Document gcov intermediate format.
26138 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26141 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26142 (lra_emit_add): Use the functions. Add comment about Y as an
26145 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26148 * collect2.c (collect_atexit): New.
26149 (collect_exit): Delete.
26150 (main): Register collect_atexit with atexit.
26151 (collect_wait): Change collect_exit to exit.
26153 * collect2.h (collect_exit): Delete.
26154 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26156 2013-06-19 Wei Mi <wmi@google.com>
26158 PR rtl-optimization/57518
26159 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26160 if regno is used in paradoxical subreg.
26161 (update_equiv_regs): Check pdx_subregs[regno] before
26162 set a reg to be equivalent with a mem.
26164 2013-06-19 Matthias Klose <doko@ubuntu.com>
26167 * file-find.h (find_a_file): Add a mode parameter.
26168 * file-find.c (find_a_file): Likewise.
26169 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26170 with X_OK for the executables.
26171 * collect2.c (main): Call find_a_file with X_OK.
26173 2013-06-19 Steve Ellcey <sellcey@mips.com>
26176 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26177 Use NEXT_INSN instead of next_real_insn.
26179 2013-06-19 Jan Hubicka <jh@suse.cz>
26181 * cgraph.h (const_value_known_p): Replace by ...
26182 (ctor_for_folding): .. this one.
26183 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26184 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26185 * expr.c (expand_expr_real_1): Likewise.
26186 (string_constant): Likewise.
26187 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26188 * ipa.c (process_references): Likewise.
26189 (symtab_remove_unreachable_nodes): Likewise.
26190 * ipa-inline-analysis.c (param_change_prob): Likewise.
26191 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26192 (get_base_constructor): Likwise.
26193 * varpool.c (varpool_remove_node): Likewise.
26194 (varpool_remove_initializer): LIkewise.
26195 (dump_varpool_node): LIkwise.
26196 (const_value_known_p): Rewrite to ...
26197 (ctor_for_folding): ... this one.
26199 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26202 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26203 PERSONALITY in $PATH derived prefixes.
26205 2013-06-19 Jeff Law <law@redhat.com>
26207 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26210 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26211 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26214 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26216 * config/arm/vfp.md: Move VFP instruction classification documentation
26218 * config/arm/arm.md: ... here. Update instruction classification
26221 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26223 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26224 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26225 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26227 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26230 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26231 with NEXT_INSN. Use tablejump_p to check for jump table data
26234 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26237 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26238 that now in C++ the value is correct per the C++ standards.
26240 2013-06-19 Richard Biener <rguenther@suse.de>
26242 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26243 for global context.
26245 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26248 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26251 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26252 with next_active_insn.
26254 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26256 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26257 functions are inlined during failures to flag an error.
26258 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26259 in early inline pass.
26261 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26263 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26266 2013-06-18 Julian Brown <julian@codesourcery.com>
26268 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26269 Permit virtual register pre-reload if !strict.
26270 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26272 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26274 * config/arm/neon.md (movmisalign<mode>): Use
26275 neon_perm_struct_or_reg_operand instead of
26276 neon_struct_or_register_operand.
26277 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26278 neon_permissive_struct_operand instead of neon_struct_operand.
26279 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26280 neon_vector_mem_operand.
26281 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26282 neon_vector_mem_operand.
26283 (neon_permissive_struct_operand): New.
26284 (neon_struct_or_register_operand): Rename to...
26285 (neon_perm_struct_or_reg_operand): This. Adjust call to
26286 neon_vector_mem_operand.
26288 2013-06-18 Richard Biener <rguenther@suse.de>
26290 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26291 * lto-streamer.h: Include pointer-set.h.
26292 (struct lto_decl_slot): Remove.
26293 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26294 Remove next_index entry.
26295 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26296 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26297 (lto_init_tree_ref_encoder): Adjust.
26298 (lto_destroy_tree_ref_encoder): Likewise.
26299 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26300 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26301 (lto_output_decl_index): Adjust.
26302 (lto_new_out_decl_state): Likewise.
26303 (lto_record_function_out_decl_state): Likewise.
26304 * lto-streamer-out.c (copy_function): Likewise.
26306 2013-06-18 Richard Biener <rguenther@suse.de>
26308 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26309 * cgraphunit.c: Include cfgloop.h.
26310 (init_lowered_empty_function): Initialize the loop tree.
26311 (assemble_thunk): Insert new BBs into loops.
26313 2013-06-18 Richard Biener <rguenther@suse.de>
26315 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26316 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26317 the map from cache entry to cache index optional.
26318 (streamer_tree_cache_replace_tree): Adjust accordingly.
26319 (streamer_tree_cache_append): Likewise.
26320 (streamer_tree_cache_delete): Likewise.
26321 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26322 streamer cache map from cache entry to cache index.
26323 * lto-streamer-out.c (create_output_block): Adjust.
26325 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26327 * config/arm/arm.md (attribute "insn"): Move multiplication and
26328 division attributes to...
26329 (attribute "type"): ... here. Remove mult.
26330 (attribute "mul32"): New attribute.
26331 (attribute "mul64"): Add umaal.
26332 (*arm_mulsi3): Update attributes.
26333 (*arm_mulsi3_v6): Likewise.
26334 (*thumb_mulsi3): Likewise.
26335 (*thumb_mulsi3_v6): Likewise.
26336 (*mulsi3_compare0): Likewise.
26337 (*mulsi3_compare0_v6): Likewise.
26338 (*mulsi_compare0_scratch): Likewise.
26339 (*mulsi_compare0_scratch_v6): Likewise.
26340 (*mulsi3addsi): Likewise.
26341 (*mulsi3addsi_v6): Likewise.
26342 (*mulsi3addsi_compare0): Likewise.
26343 (*mulsi3addsi_compare0_v6): Likewise.
26344 (*mulsi3addsi_compare0_scratch): Likewise.
26345 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26346 (*mulsi3subsi): Likewise.
26347 (*mulsidi3adddi): Likewise.
26348 (*mulsi3addsi_v6): Likewise.
26349 (*mulsidi3adddi_v6): Likewise.
26350 (*mulsidi3_nov6): Likewise.
26351 (*mulsidi3_v6): Likewise.
26352 (*umulsidi3_nov6): Likewise.
26353 (*umulsidi3_v6): Likewise.
26354 (*umulsidi3adddi): Likewise.
26355 (*umulsidi3adddi_v6): Likewise.
26356 (*smulsi3_highpart_nov6): Likewise.
26357 (*smulsi3_highpart_v6): Likewise.
26358 (*umulsi3_highpart_nov6): Likewise.
26359 (*umulsi3_highpart_v6): Likewise.
26360 (mulhisi3): Likewise.
26361 (*mulhisi3tb): Likewise.
26362 (*mulhisi3bt): Likewise.
26363 (*mulhisi3tt): Likewise.
26364 (maddhisi4): Likewise.
26365 (*maddhisi4tb): Likewise.
26366 (*maddhisi4tt): Likewise.
26367 (maddhidi4): Likewise.
26368 (*maddhidi4tb): Likewise.
26369 (*maddhidi4tt): Likewise.
26370 (divsi3): Likewise.
26371 (udivsi3): Likewise.
26372 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26373 (thumb2_mulsi_short_compare0): Likewise.
26374 (thumb2_mulsi_short_compare0_scratch): Likewise.
26375 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26376 (1020mult2): Likewise.
26377 (1020mult3): Likewise.
26378 (1020mult4): Likewise.
26379 (1020mult5): Likewise.
26380 (1020mult6): Likewise.
26381 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26383 (cortex_a15_mult64): Likewise.
26384 (cortex_a15_sdiv): Likewise.
26385 (cortex_a15_udiv): Likewise.
26386 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26392 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26393 (pj4_ir_div): Likewise.
26394 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26395 (11_mult2): Likewise.
26396 (11_mult3): Likewise.
26397 (11_mult4): Likewise.
26398 (11_mult5): Likewise.
26399 (11_mult6): Likewise.
26400 (11_mult7): Likewise.
26401 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26402 (cortex_a8_mla): Likewise.
26403 (cortex_a8_mull): Likewise.
26404 (cortex_a8_smulwy): Likewise.
26405 (cortex_a8_smlald): Likewise.
26406 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26407 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26408 (cortex_r4_mul_3): Likewise.
26409 (cortex_r4_mla_4): Likewise.
26410 (cortex_r4_mla_3): Likewise.
26411 (cortex_r4_smlald): Likewise.
26412 (cortex_r4_mull): Likewise.
26413 (cortex_r4_sdiv): Likewise.
26414 (cortex_r4_udiv): Likewise.
26415 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26416 (cortex_a7_idiv): Likewise.
26417 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26418 (9_mult2): Likewise.
26419 (9_mult3): Likewise.
26420 (9_mult4): Likewise.
26421 (9_mult5): Likewise.
26422 (9_mult6): Likewise.
26423 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26424 (cortex_a53_sdiv): Likewise.
26425 (cortex_a53_udiv): Likewise.
26426 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26427 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26428 (mp626_mult2): Likewise.
26429 (mp626_mult3): Likewise.
26430 (mp626_mult4): Likewise.
26431 * config/arm/fa526.md (526_mult1): Update attribute change.
26432 (526_mult2): Likewise.
26433 * config/arm/arm-generic.md (mult): Update attribute change.
26434 (mult_ldsched_strongarm): Likewise.
26435 (mult_ldsched): Likewise.
26436 (multi_cycle): Likewise.
26437 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26438 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26439 (606te_mult2): Likewise.
26440 (606te_mult3): Likewise.
26441 (606te_mult4): Likewise.
26442 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26443 (cortex_a9_mac16): Likewise.
26444 (cortex_a9_multiply): Likewise.
26445 (cortex_a9_mac): Likewise.
26446 (cortex_a9_multiply_long): Likewise.
26447 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26448 (626te_mult2): Likewise.
26449 (626te_mult3): Likewise.
26450 (626te_mult4): Likewise.
26452 2013-06-18 Richard Biener <rguenther@suse.de>
26455 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26457 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26460 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26461 with next_active_insn.
26463 2013-06-18 Alan Modra <amodra@gmail.com>
26465 * config/rs6000/rs6000.h (enum data_align): New.
26466 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26467 (DATA_ABI_ALIGNMENT): Define.
26468 (CONSTANT_ALIGNMENT): Correct comment.
26469 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26470 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26472 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26474 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26475 ATTRIBUTE_UNUSED marking.
26477 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26479 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26480 alternative and update.
26481 (aarch64_dup_lanedi): Delete.
26482 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26483 * config/aarch64/aarch64-simd-builtins.def: Update.
26485 2013-06-17 Richard Biener <rguenther@suse.de>
26487 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26488 (lto_input_scc): Declare.
26489 (lto_input_tree_1): Likewise.
26490 (struct lto_stats_d): Add num_tree_bodies_output and
26491 num_pickle_refs_output.
26492 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26493 (lto_read_tree_1): Split out from ...
26494 (lto_read_tree): ... this.
26495 (lto_input_scc): New function.
26496 (lto_input_tree_1): Split out from ...
26497 (lto_input_tree): ... this. Handle LTO_tree_scc.
26498 (lto_data_in_create): Create the streamer cache without hashes.
26499 * lto-streamer-out.c (create_output_block): Create the streamer
26500 cache with hashes when not doing WPA.
26501 (lto_write_tree_1): Split out from ...
26502 (lto_write_tree): ... this.
26503 (get_symbol_initial_value): New function.
26504 (lto_output_tree_1): Split out from ...
26505 (lto_output_tree): ... this. Write trees as series of SCCs
26506 using a DFS walk via DFS_write_tree.
26507 (struct sccs, struct scc_entry): New types.
26508 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26509 (DFS_write_tree_body): New function.
26510 (DFS_write_tree): Likewise.
26511 (hash_tree): Likewise.
26512 (scc_entry_compare): Likewise.
26513 (hash_scc): Likewise.
26514 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26515 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26516 TREE_CHAIN as regular reference.
26517 (streamer_read_integer_cst): Remove.
26518 (streamer_get_pickled_tree): Adjust.
26519 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26520 of DECL_EXTERNALs in BLOCK_VARS for now.
26521 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26523 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26524 Add hash value argument and record that if hashes are recorded
26526 (streamer_tree_cache_insert_1): Adjust.
26527 (streamer_tree_cache_insert): Likewise.
26528 (streamer_tree_cache_insert_at): Rename to ...
26529 (streamer_tree_cache_replace_tree): ... this and adjust.
26530 (streamer_tree_cache_append): Adjust.
26531 (record_common_node): Likewise.
26532 (streamer_tree_cache_create): Add argument whether to
26533 record hash values together with trees.
26534 (streamer_tree_cache_delete): Adjust.
26535 * tree-streamer.h (struct streamer_tree_cache_d): Add
26537 (streamer_read_integer_cst): Remove.
26538 (streamer_tree_cache_insert): Adjust.
26539 (streamer_tree_cache_append): Likewise.
26540 (streamer_tree_cache_insert_at): Rename to ...
26541 (streamer_tree_cache_replace_tree): ... this and adjust.
26542 (streamer_tree_cache_create): Add argument whether to record hashes.
26543 (streamer_tree_cache_get): Rename to ...
26544 (streamer_tree_cache_get_tree): ... this.
26545 (streamer_tree_cache_get_hash): New function.
26546 * tree.c (cache_integer_cst): New function.
26547 * tree.h (cache_integer_cst): Declare.
26548 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26549 * lto-symtab.c (lto_varpool_replace_node): Only release
26550 DECL_INITIAL of non-prevailing decls.
26551 * varpool.c (varpool_remove_initializer): Do not release
26552 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26554 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26556 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26557 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26558 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26559 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26560 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26561 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26562 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26563 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26564 instead of TARGET_64BIT.
26565 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26566 Require ISA_HAS_<D>DIV.
26568 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26570 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26571 (mips*-*-linux*): Move default with_llsc setting to where other
26573 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26575 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26576 Likewise. Remove default with_tune setting. Move default float
26577 setting to its own block. Handle with_llsc in the same block as above.
26579 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26581 PR rtl-optimization/57425
26582 PR rtl-optimization/57569
26583 * alias.c (write_dependence_p): Add new parameters mem_mode,
26584 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26585 Changed all callers.
26586 (canon_anti_dependence): New function.
26587 * cse.c (check_dependence): Use canon_anti_dependence.
26588 * cselib.c (cselib_invalidate_mem): Likewise.
26589 * rtl.h (canon_anti_dependence): Declare.
26591 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26593 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26594 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26595 ".set mips3" for 64-bit targets.
26597 2013-06-15 Dehao Chen <dehao@google.com>
26599 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26600 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26601 (gimple_check_call_args): Likewise.
26602 * value-prof.c (check_ic_target): Likewise.
26603 * ipa-inline.c (early_inliner): Likewise.
26604 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26605 * cgraph.c (cgraph_create_edge_1): Likewise.
26606 (cgraph_make_edge_direct): Likewise.
26608 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26611 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26612 rs6000_output_move_128bit to handle emitting quad memory
26613 operations. Set attribute length to 8 bytes.
26615 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26617 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26619 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26620 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26621 (aarch64_<su>mlsl<mode>): Likewise.
26623 2013-06-14 Mike Stump <mikestump@comcast.net>
26625 * Makefile.in (TARGET_H): Add insn-codes.h.
26627 2013-06-14 Alan Modra <amodra@gmail.com>
26629 PR middle-end/57134
26630 PR middle-end/57586
26631 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26632 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26633 bitfield expansion when EXPAND_MEMORY.
26634 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26636 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26638 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26639 test for clearing quad memory on 32-bit later.
26641 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26643 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26644 (fold_negate_expr): Likewise.
26645 (fold_real_zero_addition_p): Handle vectors.
26646 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26648 2013-06-14 Alan Modra <amodra@gmail.com>
26650 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26652 2013-06-13 Jan Hubicka <jh@suse.cz>
26654 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26655 Local comdats are not externally visible.
26656 * symtab.c (dump_symtab_base): Dump externally visible.
26657 (verify_symtab_base): Verify back links in the symtab hash.
26659 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26661 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26662 CONVERT_EXPR as equal nodes.
26664 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26666 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26668 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26670 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26671 Generalize to complex and vector.
26672 * tree.c (build_all_ones_cst): New function.
26673 * tree.h (build_all_ones_cst): Declare it.
26675 2013-06-13 Alan Modra <amodra@gmail.com>
26677 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26678 * config/rs6000/rs6000.md (signbittf2): New insn.
26679 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26680 (abstf2_internal, cmptf_internal2): Likewise.
26681 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26683 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26684 Pat Haugen <pthaugen@us.ibm.com>
26685 Peter Bergner <bergner@vnet.ibm.com>
26687 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26688 power8 byte, half-word, and quad-word atomic instructions.
26689 (emit_store_conditional): Likewise.
26690 (rs6000_expand_atomic_compare_and_swap): Likewise.
26691 (rs6000_expand_atomic_op): Likewise.
26693 * config/rs6000/sync.md (larx): Add new modes for power8.
26695 (AINT): New mode iterator to include TImode as well as normal
26696 integer modes on power8.
26697 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26698 that VSX registers are not considered. Use AINT mode iterator
26699 instead of INT1 to allow inclusion of quad word atomic operations
26701 (load_locked<mode>): Likewise.
26702 (store_conditional<mode>): Likewise.
26703 (atomic_compare_and_swap<mode>): Likewise.
26704 (atomic_exchange<mode>): Likewise.
26705 (atomic_nand<mode>): Likewise.
26706 (atomic_fetch_<fetchop_name><mode>): Likewise.
26707 (atomic_nand_fetch<mode>): Likewise.
26708 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26710 (ATOMIC): On power8, add QImode, HImode modes.
26711 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26712 modes that promote to SImode.
26713 (load_lockedti): Convert TImode arguments to PTImode, so that we
26714 get a guaranteed even/odd register pair.
26715 (load_lockedpti): Likewise.
26716 (store_conditionalti): Likewise.
26717 (store_conditionalpti): Likewise.
26719 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26720 atomic load/store instructions.
26723 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26725 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26727 (insn_count): New attribute, with most cases extracted from...
26728 (length): ...here. Redefine most cases in terms of insn_count.
26729 (single_insn): Delete.
26730 (can_delay): Use insn_count to check for single instructions.
26731 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26732 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26733 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26734 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26735 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26736 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26737 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26738 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26739 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26740 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26741 rather than "length".
26742 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26743 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26744 Use "insn_count" rather than "length".
26745 * config/mips/mips-dsp.md
26746 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26747 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26750 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26752 PR tree-optimization/57361
26753 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26755 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26757 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26759 (aarch64_simd_combine<mode>): New instruction expansion.
26760 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26761 function prototype.
26762 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26763 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26765 2013-06-12 Jan Hubicka <jh@suse.cz>
26767 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26768 decl has when in streaming stage.
26769 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26770 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26772 2013-06-12 Roland Stigge <stigge@antcom.de>
26775 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26777 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26779 PR tree-optimization/57537
26780 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26781 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26783 2013-06-12 Richard Biener <rguenther@suse.de>
26785 * data-streamer.h (streamer_write_char_stream): CSE
26786 obs->current_pointer.
26787 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26788 streamer_write_char_stream manually and optimize the resulting loop.
26789 (streamer_write_hwi_stream): Likewise.
26791 2013-06-12 Jan Hubicka <jh@suse.cz>
26793 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26794 * cgraph.h (varpool_create_empty_node): Declare.
26795 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26797 * symtab.c (symtab_unregister_node): Be lax about missin entries
26799 (symtab_get_node): Update comment.
26800 * varpool.c (varpool_create_empty_node): Break out from ...
26801 (varpool_node_for_decl): ... here.
26802 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26804 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26806 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26807 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26808 part. Use straight-line flow at the end.
26809 <COMPONENT_REF>: Remove superfluous else.
26810 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26812 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26815 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26816 target hook even for !TREE_PUBLIC decls. If no resolution info
26817 is available, return false for common and external decls.
26819 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26821 * config/rl78/constraints.md (U): New constraint.
26822 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26825 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26828 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26829 to allow returning address to AT_PLATFORM name.
26831 2013-06-11 Jan Hubicka <jh@suse.cz>
26833 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26834 * cgraph.h (symtab_node_base): Add weakref flag.
26835 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26836 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26837 (output_weakrefs): Use weakref flag.
26838 * fold-const.c (simple_operand_p): Handle WEAK.
26839 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26840 * ipa.c (varpool_externally_visible_p): Drop weakref.
26841 (function_and_variable_visibility): Update comment; fix weakref
26842 sanity checks; do not clear DECL_WEAK on them.
26843 * lto-cgraph.c (lto_output_node): update.
26844 (lto_output_varpool_node): Update.
26845 (input_overwrite_node): Update.
26846 (input_node): Update.
26847 (input_varpool_node): Update.
26848 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26849 (lto_symtab_merge_symbols): Add sanity check.
26850 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26851 * passes.c (rest_of_decl_compilation): Set static flag, too.
26852 * symtab.c (dump_symtab_base): Dump weakref.
26853 (verify_symtab_base): Sanity check weakrefs.
26854 (symtab_make_decl_local): Remove duplicated code.
26855 (symtab_alias_ultimate_target): Simplify.
26856 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26858 2013-06-11 Tom de Vries <tom@codesourcery.com>
26860 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26861 sequence_vect == NULL.
26863 2013-06-11 DJ Delorie <dj@redhat.com>
26865 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26866 (rl78_unwind_word_mode): New.
26868 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26870 * final.c (debug_prefix_maps): Make static.
26872 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26874 * function.c (initial_trampoline): Remove stray copy.
26876 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26878 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26880 2013-06-11 Martin Jambor <mjambor@suse.cz>
26882 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26883 within bounds at the beginning of the function.
26885 2013-06-11 Alan Modra <amodra@gmail.com>
26887 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26889 (get_named_section): Don't NULL !DECL_P decl.
26891 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26893 * doc/invoke.texi (core-avx2): Document.
26895 (atom): Updated with MOVBE.
26897 2013-06-11 Richard Biener <rguenther@suse.de>
26899 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26901 2013-06-11 Anton Blanchard <anton@samba.org>
26903 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26904 correct shift value in little-endian mode.
26906 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26909 * varasm.c (get_variable_align): Move #endif to the right place.
26911 2013-06-10 Cary Coutant <ccoutant@google.com>
26913 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26914 for hash so that hash table traversal order is deterministic.
26916 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26917 Pat Haugen <pthaugen@us.ibm.com>
26918 Peter Bergner <bergner@vnet.ibm.com>
26920 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26921 of vectors in GPRS if they are direct moves or quad word load or
26924 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26926 (direct_move_p): Likewise.
26927 (quad_load_store_p): Likewise.
26929 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26930 classes into bins based on the physical register type.
26931 (reg_class_to_reg_type): Likewise.
26932 (IS_STD_REG_TYPE): Likewise.
26933 (IS_FP_VECT_REG_TYPE): Likewise.
26934 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26935 use direct move instructions.
26936 (reload_gpr_vsx): Likewise.
26937 (reload_vsx_gpr): Likewise.
26938 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26939 information that is a simplification of register classes. Also
26940 precalculate direct move reload helpers.
26941 (direct_move_p): New function to return true if the operation can
26942 be done as a direct move instruciton.
26943 (quad_load_store_p): New function to return true if the operation
26944 is a quad memory operation.
26945 (rs6000_legitimize_address): If quad memory, only allow register
26946 indirect for TImode addresses.
26947 (rs6000_legitimate_address_p): Likewise.
26948 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26949 (rs6000_reload_register_type): Likewise.
26950 (register_to_reg_type): Return register type.
26951 (rs6000_secondary_reload_simple_move): New helper function for
26952 secondary reload and secondary memory needed to identify anything
26953 that is a simple move, and does not need reloading.
26954 (rs6000_secondary_reload_direct_move): New helper function for
26955 secondary reload to identify cases that can be done with several
26956 instructions via the direct move instructions.
26957 (rs6000_secondary_reload_move): New helper function for secondary
26958 reload to identify moves between register types that can be done.
26959 (rs6000_secondary_reload): Add support for quad memory operations
26960 and for direct move.
26961 (rs6000_secondary_memory_needed): Likewise.
26962 (rs6000_debug_secondary_memory_needed): Change argument names.
26963 (rs6000_output_move_128bit): New function to return the move to
26964 use for 128-bit moves, including knowing about the various
26965 limitations of quad memory operations.
26967 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26968 memory operations. call rs6000_output_move_128bit for the actual
26969 instruciton(s) to generate.
26970 (vsx_movti_64bit): Likewise.
26972 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26973 (UNSPEC_P8V_MTVSRWZ): Likewise.
26974 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26975 (UNSPEC_P8V_MTVSRD): Likewise.
26976 (UNSPEC_P8V_XXPERMDI): Likewise.
26977 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26978 (UNSPEC_FUSION_GPR): Likewise.
26979 (FMOVE128_GPR): New iterator for direct move.
26980 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26981 (f32_sv): Likewise.
26982 (f32_dm): Likewise.
26983 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26984 loads and direct move instructions.
26985 (zero_extendsidi2_lfiwzx): Likewise.
26986 (extendsidi2_lfiwax): Likewise.
26987 (extendsidi2_nocell): Likewise.
26988 (floatsi<mode>2_lfiwax): Likewise.
26989 (lfiwax): Likewise.
26990 (floatunssi<mode>2_lfiwzx): Likewise.
26991 (lfiwzx): Likewise.
26992 (fix_trunc<mode>_stfiwx): Likewise.
26993 (fixuns_trunc<mode>_stfiwx): Likewise.
26994 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26995 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26996 (parity<mode>2_cmpb): Set length/type attr.
26997 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26998 for 'mr.' to fast_compare.
26999 (bpermd_<mode>): Change type attr to popcnt.
27000 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27001 (p8_mtvsrwz_1): Likewise.
27002 (p8_mtvsrwz_2): Likewise.
27003 (reload_fpr_from_gpr<mode>): Likewise.
27004 (p8_mtvsrd_1): Likewise.
27005 (p8_mtvsrd_2): Likewise.
27006 (p8_xxpermdi_<mode>): Likewise.
27007 (reload_vsx_from_gpr<mode>): Likewise.
27008 (reload_vsx_from_gprsf): Likewise.
27009 (p8_mfvsrd_3_<mode>): LIkewise.
27010 (reload_gpr_from_vsx<mode>): Likewise.
27011 (reload_gpr_from_vsxsf): Likewise.
27012 (p8_mfvsrd_4_disf): Likewise.
27013 (multi-word GPR splits): Do not split direct moves or quad memory
27016 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27018 * tree-into-ssa.c (interesting_blocks): Make static.
27020 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27023 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27024 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27025 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27026 (get_variable_align): New function.
27027 (get_variable_section, emit_bss, emit_common,
27028 assemble_variable_contents, place_block_symbol): Use
27029 get_variable_align instead of DECL_ALIGN.
27030 (assemble_noswitch_variable): Add align argument, use it
27031 instead of DECL_ALIGN.
27032 (assemble_variable): Adjust caller. Use get_variable_align
27033 instead of DECL_ALIGN.
27034 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27036 (DATA_ABI_ALIGNMENT): Define.
27037 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27038 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27039 opt is false, only return the psABI mandated alignment increase.
27040 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27041 (DATA_ABI_ALIGNMENT): ... this.
27042 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27043 (DATA_ABI_ALIGNMENT): ... this.
27044 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27045 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27046 (DATA_ABI_ALIGNMENT): ... this.
27047 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27048 * doc/tm.texi: Regenerated.
27050 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27052 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27053 cmp_code to construct REG_EQUAL note.
27055 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27058 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27059 that operands[2] doesn't overlap with operands[0].
27061 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27062 Jan Hubicka <jh@suse.cz>
27064 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27065 hack to mark symbols as used.
27067 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27069 PR rtl-optimization/57559
27070 * lra-constraints.c (process_alt_operands): Don't discourage
27071 memory with known offset for offsetable memory constraint.
27072 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27074 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27076 * varasm.c (struct oc_local_state): Reorder fields.
27077 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27078 and adjust accordingly.
27079 (output_constructor): Reorder initialization code and adjust call to
27080 output_constructor_bitfield.
27082 2013-06-07 Jan Hubicka <jh@suse.cz>
27084 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27086 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27088 * tree-object-size.c (unknown): Make const.
27090 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27092 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27093 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27094 for last alternative in the cpu_facility attribute.
27096 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27099 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27100 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27101 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27102 * config/arm/constraints.md (Dg): New constraint.
27103 * config/arm/neon.md (xordi3_neon): Remove.
27104 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27105 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27107 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27109 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27110 Clean up alternatives.
27112 2013-06-07 Alan Modra <amodra@gmail.com>
27114 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27117 2013-06-07 Alan Modra <amodra@gmail.com>
27119 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27121 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27123 * config/arm/constraints.md (Df): New constraint.
27124 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27125 Correct length attribute for last two alternatives.
27127 2013-06-07 Alan Modra <amodra@gmail.com>
27129 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27130 override user -mfp-in-toc.
27131 (offsettable_ok_by_alignment): Consider just the current access
27132 rather than the whole object, unless BLKmode. Handle
27133 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27134 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27135 for -mcmodel=medium.
27136 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27137 override user -mfp-in-toc or -msum-in-toc. Default to
27138 -mno-fp-in-toc for -mcmodel=medium.
27140 2013-06-06 DJ Delorie <dj@redhat.com>
27142 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27143 TARGET_VALID_POINTER_MODE.
27145 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27146 Pat Haugen <pthaugen@us.ibm.com>
27147 Peter Bergner <bergner@vnet.ibm.com>
27149 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27150 Document new power8 builtins.
27152 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27153 condition code register, to allow 128-bit logical operations to be
27154 done in the VSX or GPR registers.
27155 (nor<mode>3): Use the canonical form for nor.
27156 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27157 vclz*, and vpopcnt* vector instructions.
27158 (nand<mode>3): Likewise.
27159 (orc<mode>3): Likewise.
27160 (clz<mode>2): LIkewise.
27161 (popcount<mode>2): Likewise.
27163 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27164 that only the GPRs are recognized.
27166 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27167 support for new power8 builtins.
27169 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27171 (xscvdpspn): Likewise.
27177 (vpopcnt): Likewise.
27178 (vpopcntb): Likewise.
27179 (vpopcnth): Likewise.
27180 (vpopcntw): Likewise.
27181 (vpopcntd): Likewise.
27183 (vmrgew): Likewise.
27184 (vmrgow): Likewise.
27186 (eqv_v16qi3): Likewise.
27187 (eqv_v8hi3): Likewise.
27188 (eqv_v4si3): Likewise.
27189 (eqv_v2di3): Likewise.
27190 (eqv_v4sf3): Likewise.
27191 (eqv_v2df3): Likewise.
27193 (nand_v16qi3): Likewise.
27194 (nand_v8hi3): Likewise.
27195 (nand_v4si3): Likewise.
27196 (nand_v2di3): Likewise.
27197 (nand_v4sf3): Likewise.
27198 (nand_v2df3): Likewise.
27200 (orc_v16qi3): Likewise.
27201 (orc_v8hi3): Likewise.
27202 (orc_v4si3): Likewise.
27203 (orc_v2di3): Likewise.
27204 (orc_v4sf3): Likewise.
27205 (orc_v2df3): Likewise.
27207 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27208 allow power8 quad mode in 64-bit.
27209 (rs6000_builtin_vectorized_function): Add support to vectorize
27210 ISA 2.07 count leading zeros, population count builtins.
27211 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27212 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27213 (builtin_function_type): Add vgbbd builtin function which takes an
27215 (altivec_expand_vec_perm_const): Add support for new power8 merge
27218 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27219 that does not include TImdoe for use with 32-bit.
27220 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27222 (UNSPEC_VSX_CVDPSPN): Likewise.
27223 (vsx_xscvdpspn): Likewise.
27224 (vsx_xscvspdpn): Likewise.
27225 (vsx_xscvdpspn_scalar): Likewise.
27226 (vsx_xscvspdpn_directmove): Likewise.
27227 (vsx_and<mode>3): Split logical operations into 32-bit and
27228 64-bit. Add support to do logical operations on TImode as well as
27229 VSX vector types. Allow logical operations to be done in either
27230 VSX registers or in general purpose registers in 64-bit mode. Add
27231 splitters if GPRs were used. For AND, add clobber of CCmode to
27232 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27234 (vsx_and<mode>3_32bit): Likewise.
27235 (vsx_and<mode>3_64bit): Likewise.
27236 (vsx_ior<mode>3): Likewise.
27237 (vsx_ior<mode>3_32bit): Likewise.
27238 (vsx_ior<mode>3_64bit): Likewise.
27239 (vsx_xor<mode>3): Likewise.
27240 (vsx_xor<mode>3_32bit): Likewise.
27241 (vsx_xor<mode>3_64bit): Likewise.
27242 (vsx_one_cmpl<mode>2): Likewise.
27243 (vsx_one_cmpl<mode>2_32bit): Likewise.
27244 (vsx_one_cmpl<mode>2_64bit): Likewise.
27245 (vsx_nor<mode>3): Likewise.
27246 (vsx_nor<mode>3_32bit): Likewise.
27247 (vsx_nor<mode>3_64bit): Likewise.
27248 (vsx_andc<mode>3): Likewise.
27249 (vsx_andc<mode>3_32bit): Likewise.
27250 (vsx_andc<mode>3_64bit): Likewise.
27251 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27252 and xxlorc instructions.
27253 (vsx_eqv<mode>3_64bit): Likewise.
27254 (vsx_nand<mode>3_32bit): Likewise.
27255 (vsx_nand<mode>3_64bit): Likewise.
27256 (vsx_orc<mode>3_32bit): Likewise.
27257 (vsx_orc<mode>3_64bit): Likewise.
27259 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27261 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27263 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27264 (p8_vmrgow): Likewise.
27265 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27266 GPRs to be split under VSX.
27267 (p8v_clz<mode>2): Add power8 count leading zero support.
27268 (p8v_popcount<mode>2): Add power8 population count support.
27269 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27272 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27275 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27277 (vec_nand): Likewise.
27278 (vec_vclz): Likewise.
27279 (vec_vclzb): Likewise.
27280 (vec_vclzd): Likewise.
27281 (vec_vclzh): Likewise.
27282 (vec_vclzw): Likewise.
27283 (vec_vgbbd): Likewise.
27284 (vec_vmrgew): Likewise.
27285 (vec_vmrgow): Likewise.
27286 (vec_vpopcnt): Likewise.
27287 (vec_vpopcntb): Likewise.
27288 (vec_vpopcntd): Likewise.
27289 (vec_vpopcnth): Likewise.
27290 (vec_vpopcntw): Likewise.
27292 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27294 PR rtl-optimization/57468
27295 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27298 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27300 PR rtl-optimization/57459
27301 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27302 type when setting live regs.
27304 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27306 * config/s390/s390.opt (mlra): New option.
27307 * config/s390/s390.c (s390_decompose_address): Check displacement
27308 for all registers for LRA.
27309 (s390_secondary_reload): Don't used secondary reloads for LRA.
27310 (s390_lra_p): New function.
27311 (TARGET_LRA_P): Define.
27312 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27313 of attribute cpu_facility to zarch for the last alternative.
27314 (*cmpmem_short): Ditto.
27316 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27318 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27319 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27320 (arm_expand_prologue): Likewise.
27322 2013-06-06 Teresa Johnson <tejohnson@google.com>
27325 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27326 as this is now done by redirect_edge_and_branch_force.
27327 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27328 barriers, and fix interaction with splitting.
27329 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27330 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27331 reflect changes made in the routine.
27332 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27333 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27334 since this is called in cfglayout mode, and replace partition fixup
27335 with assert as that is now done by force_nonfallthru_and_redirect.
27336 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27337 already be marked with region crossing note.
27338 (insert_section_boundary_note): Make non-static, gate on flag
27339 has_bb_partition, rewrite to also check for multiple partitions.
27340 (rest_of_handle_reorder_blocks): Remove call to
27341 insert_section_boundary_note, now done later during free_cfg.
27342 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27343 * bb-reorder.h (insert_section_boundary_note): Declare.
27344 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27345 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27346 invoke insert_section_boundary_note.
27347 (try_redirect_by_replacing_jump): Remove unnecessary
27348 check for region crossing note.
27349 (fixup_partition_crossing): New function.
27350 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27351 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27352 in non-cfglayout mode.
27353 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27354 remove old code that tried to do this. Emit barrier correctly
27355 when we are in cfglayout mode.
27356 (last_bb_in_partition): New function.
27357 (rtl_split_edge): Correctly fixup partition boundaries.
27358 (commit_one_edge_insertion): Remove old code that tried to
27359 fixup region crossing edge since this is now handled in
27360 split_block, and set up insertion point correctly since
27361 block may now end in a jump.
27362 (verify_hot_cold_block_grouping): Guard against checking when not in
27363 linearized RTL mode.
27364 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27366 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27367 rtl_verify_flow_info, so not called in cfglayout mode.
27368 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27369 (fixup_reorder_chain): Remove old code that attempted to fixup region
27370 crossing note as this is now handled in force_nonfallthru_and_redirect.
27371 (duplicate_insn_chain): Don't duplicate switch section notes.
27372 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27374 * basic-block.h (emit_barrier_after_bb): Declare.
27376 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27378 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27379 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27380 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27382 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27384 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27386 * config/arm/ldmstm.md: Regenerate.
27388 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27390 * config/arm/sync.md (atomic_loaddi_1):
27391 Disable predication for arm_restrict_it.
27392 (arm_load_exclusive<mode>): Likewise.
27393 (arm_load_exclusivesi): Likewise.
27394 (arm_load_exclusivedi): Likewise.
27395 (arm_load_acquire_exclusive<mode>): Likewise.
27396 (arm_load_acquire_exclusivesi): Likewise.
27397 (arm_load_acquire_exclusivedi): Likewise.
27398 (arm_store_exclusive<mode>): Likewise.
27399 (arm_store_exclusive<mode>): Likewise.
27400 (arm_store_release_exclusivedi): Likewise.
27401 (arm_store_release_exclusive<mode>): Likewise.
27403 2013-06-06 Richard Biener <rguenther@suse.de>
27405 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27407 (lto_tag_is_tree_code_p): Adjust.
27408 (lto_tag_is_gimple_code_p): Likewise.
27409 (lto_gimple_code_to_tag): Likewise.
27410 (lto_tag_to_gimple_code): Likewise.
27411 (lto_tree_code_to_tag): Likewise.
27412 (lto_tag_to_tree_code): Likewise.
27413 * data-streamer.h (streamer_write_hwi_in_range): Use
27414 uhwi streaming to stream the normalized range.
27415 (streamer_read_hwi_in_range): Likewise.
27417 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27419 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27420 (predicable_short_it): Likewise.
27421 (predicated): Likewise.
27422 (enabled): Handle above.
27423 (define_cond_exec): Set predicated attribute to yes.
27425 2013-06-05 Mike Stump <mikestump@comcast.net>
27427 * gdbinit.in (__FUNCTION__): Add.
27429 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27431 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27432 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27434 2013-06-05 Jan Hubicka <jh@suse.cz>
27436 * varasm.c (mark_decl_referenced): Revert the removal until targets
27439 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27441 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27442 instead of mark_decl_referenced.
27444 2013-06-05 Jan Hubicka <jh@suse.cz>
27446 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27447 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27448 and symtab_used_from_object_file_p.
27449 (cgraph_make_node_local_1): Clear forced_by_abi.
27450 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27451 * cgraph.h (symtab_node_base): Add forced_by_abi.
27452 (decide_is_variable_needed): Remove.
27453 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27454 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27455 (decide_is_symbol_needed): ... this one; handle symbols in general;
27456 always analyze virtuals; honnor forced_by_abi.
27457 (cgraph_finalize_function): Update.
27458 (varpool_finalize_decl): Update.
27459 (symbol_defined_and_needed): Remove.
27460 (analyze_functions): Update.
27461 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27462 output_refs, input_overwrite_node): Handle forced_by_abi.
27463 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27464 (address_taken_from_non_vtable_p): ... this one.
27465 (comdat_can_be_unshared_p_1): New function.
27466 (cgraph_comdat_can_be_unshared_p): Rename to ...
27467 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27468 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27469 (function_and_variable_visibility): Clear forced_by_abi as needed.
27470 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27471 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27472 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27473 * varpool.c (decide_is_variable_needed): Remove.
27475 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27477 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27478 (arm_option_override): Override arm_restrict_it where appropriate.
27479 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27480 * config/arm/arm.opt (mrestrict-it): New command-line option.
27481 * doc/invoke.texi: Document -mrestrict-it.
27483 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27485 * tsan.c (tsan_atomic_table): Make const.
27487 2013-06-05 Richard Biener <rguenther@suse.de>
27489 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27490 index associated with the tree we are supposed to replace.
27491 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27492 TREE_ASM_WRITTEN as zero for everything but SSA names.
27494 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27496 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27498 2013-06-04 Jan Hubicka <jh@suse.cz>
27500 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27501 (input_node, input_varpool_node): Handle correctly external same
27503 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27504 nodes at ltrans stage.
27506 2013-06-04 Jan Hubicka <jh@suse.cz>
27508 * ipa-inline.c (update_caller_keys): Fix availability test.
27509 (update_callee_keys): Likewise.
27510 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27511 to follow ELF standard.
27513 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27515 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27516 (mips64r5900el-*-elf*): New configurations.
27517 * config/mips/mips-cpus.def (r5900): New processor.
27518 * config/mips/mips-tables.opt: Regenerate.
27519 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27520 (mips_issue_rate): Handle PROCESSOR_R5900.
27521 (mips_reorg_process_insns): Force reorder mode for the R5900.
27522 * config/mips/mips.h (TARGET_MIPS5900): Define.
27523 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27525 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27527 * config/mips/mips.md (processor): Add r5900.
27528 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27530 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27532 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27533 into function to generate MOVI instruction.
27534 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27535 (aarch64_preferred_simd_mode): Turn into wrapper.
27536 (aarch64_output_scalar_simd_mov_immediate): New function.
27537 * config/aarch64/aarch64-protos.h: Add prototype for above.
27539 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27541 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27542 element_char member.
27543 (sizetochar): Return signed char.
27544 (aarch64_simd_valid_immediate): Remove elchar and other
27545 unnecessary variables.
27546 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27547 Calculate element_char as required.
27548 * config/aarch64/aarch64-protos.h: Update and move prototype
27549 for aarch64_output_simd_mov_immediate.
27550 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27553 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27555 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27556 information completed by aarch64_simd_valid_immediate.
27557 (aarch64_legitimate_constant_p): Update arguments.
27558 (aarch64_simd_valid_immediate): Work with struct rather than many
27560 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27561 (aarch64_simd_make_constant): Update arguments.
27562 (aarch64_output_simd_mov_immediate): Work with struct rather than
27563 many pointers. Output immediate directly rather than as operand.
27564 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27566 * config/aarch64/constraints.md (Dn): Update arguments.
27568 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27570 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27572 (aarch64_simd_immediate_valid_for_move): Remove.
27573 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27574 (aarch64_simd_make_constant): Update call.
27575 (aarch64_output_simd_mov_immediate): Update call.
27576 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27578 * config/aarch64/constraints.md (Dn): Update call.
27580 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27582 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27583 return type to bool for prototype.
27584 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27585 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27586 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27588 2013-06-04 Catherine Moore <clm@codesourcery.com>
27590 * config/mips/mips.opt (meva): New.
27591 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27592 (ASM_SPEC): Handle -meva.
27593 * doc/invoke.texi (meva): Document.
27595 2013-06-04 Alan Modra <amodra@gmail.com>
27597 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27600 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27602 * rtl.def: Add extra fourth optional field to define_cond_exec.
27603 * gensupport.c (process_one_cond_exec): Process attributes from
27605 * doc/md.texi: Document fourth field in define_cond_exec.
27607 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27609 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27610 out the processing order as in store_bit_field_1.
27612 2013-06-04 Jan Hubicka <jh@suse.cz>
27614 PR middle-end/57500
27615 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27616 non-VAR_DECL node if it does not exist yet.
27618 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27620 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27621 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27622 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27623 target_cpu_default setting.
27625 2013-06-03 Teresa Johnson <tejohnson@google.com>
27627 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27628 default to -fopt-info=optimized instead of all.
27629 * doc/invoke.texi: Ditto.
27630 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27631 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27632 (execute_vect_slp): Emit BB vectorization success under
27633 MSG_OPTIMIZED_LOCATIONS.
27634 * tree-vect-slp.c (vect_slp_transform_bb): Change
27635 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27636 * tree-vect-loop.c (vect_transform_loop): Ditto.
27638 2013-06-03 Jason Merrill <jason@redhat.com>
27641 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27642 Use TARGET_EXPR for C++.
27644 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27646 PR rtl-optimization/57268
27647 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27648 if DEBUG_INSN_P (insn).
27651 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27653 PR rtl-optimization/57268
27654 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27655 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27657 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27659 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27660 (ix86_avoid_lea_for_addr): Likewise.
27661 (exact_dependency_1): Likewise.
27662 (ix86_adjust_cost): Likewise.
27663 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27665 (do_reorder_for_imul): Fix typo, formatting and
27666 !reload_completed check removed.
27667 (ix86_sched_reorder): Fix typo and formatting.
27668 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27671 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27673 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27675 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27677 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27678 <STRING_CST>: Likewise.
27679 <VECTOR_CST>: Likewise.
27681 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27682 Mikael Morin <mikael@gcc.gnu.org>
27684 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27685 * config.in: Regenerated.
27686 * configure: Regenerated.
27688 2013-06-01 Jan Hubicka <jh@suse.cz>
27690 PR middle-end/57366
27691 * cgraphunit.c (compile): When weakref is not supported,
27692 set up transparent aliases before final output pass.
27693 * varasm.c (assemble_alias): Do not try to do it here.
27695 2013-06-01 Jan Hubicka <jh@suse.cz>
27697 PR middle-end/57467
27698 * passes.c (for_per_function): Skip unanalyzed functions.
27700 2013-06-01 Jan Hubicka <jh@suse.cz>
27702 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27703 (lto_symtab_merge_symbols_1): ... this one.
27704 (lto_symtab_merge_cgraph_nodes): Rename to ...
27705 (lto_symtab_merge_symbols): ... this one; simplify.
27706 * cgraph.c (same_body_aliases_done): Rename to ...
27707 (cpp_implicit_aliases_done): ... this one.
27708 (cgraph_create_function_alias): Update.
27709 (cgraph_same_body_alias): Update.
27710 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27711 (verify_edge_corresponds_to_fndecl): Simplify.
27712 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27713 (cgraph_node): Remove same_body_alias.
27714 (varpool_node): Remove alias_of and extra_name_alias.
27715 (same_body_aliases_done): Rename to ..
27716 (cpp_implicit_aliases_done): ... this one.
27717 (symtab_alias_ultimate_target): Add default parameter.
27718 (symtab_resolve_alias): New function.
27719 (fixup_same_cpp_alias_visibility): Declare.
27720 (cgraph_function_node): Add default parameter.
27721 (cgraph_node_asm_name): Likewise.
27722 (cgraph_function_or_thunk_node): Add default parameter; do
27723 not ICE when it is NULL.
27724 (varpool_variable_node): Likewise.
27725 * tree-emutls.c (create_emultls_var): Update.
27726 (ipa_lower_emutls): Update.
27727 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27728 (cgraph_reset_node): Reset alias info.
27729 (cgraph_finalize_function): Update.
27730 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27731 (analyze_function): Simplify.
27732 (cgraph_process_same_body_aliases): Simplify.
27733 (analyze_functions): Fixup same body aliases.
27734 (handle_alias_pairs): Simplify.
27735 (assemble_thunk): Update.
27736 (assemble_thunks_and_aliases): Update.
27737 (output_weakrefs): Rewrite.
27738 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27739 (lto_output_varpool_node): Likewise.
27740 (compute_ltrans_boundary): Remve assert.
27741 (get_alias_symbol): New functoin.
27742 (input_node): Rewrite alias handling.
27743 (input_varpool_node): Likewise.
27744 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27745 * ipa.c (process_references): Handle weakrefs correctly.
27746 (symtab_remove_unreachable_nodes): Likewise.
27747 * trans-mem.c (get_cg_data): Update.
27748 (ipa_tm_create_version_alias): Update.
27749 (ipa_tm_execute): Update.
27750 * symtab.c (dump_symtab_base): Dump aliases.
27751 (verify_symtab_base): Verify aliases.
27752 (symtab_node_availability): New function.
27753 (symtab_alias_ultimate_target): Simplify.
27754 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27755 handle all the fixup cases.
27756 (symtab_resolve_alias): New function.
27757 * passes.c (ipa_write_summaries): Handle weakrefs.
27758 * varpool.c (varpool_analyze_node): Simplify.
27759 (assemble_aliases): Update.
27760 (varpool_create_variable_alias): Simplify.
27761 (varpool_extra_name_alias): Simplify.
27762 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27763 (lto_symtab_merge_symbols): ... this one.
27765 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27768 PR rtl-optimization/57268
27769 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27770 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27772 2013-06-01 Tobias Burnus <burnus@net-b.de>
27774 Partially reverted:
27775 2013-05-31 Tobias Burnus <burnus@net-b.de>
27777 PR middle-end/57073
27778 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27781 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27783 PR rtl-optimization/57268
27784 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27785 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27787 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27789 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27790 unordered comparison operators when -fno-trapping-math is in effect
27792 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27793 and implement unordered comparison operators properly on the e500.
27795 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27797 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27798 for constant scalar integers.
27799 (simplify_relational_operation_1): Likewise.
27801 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27803 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27804 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27807 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27808 Igor Zamyatin <igor.zamyatin@intel.com>
27810 Silvermont (SLM) architecture performance tuning.
27811 * config/i386/i386.h (enum ix86_tune_indices): Add
27812 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27813 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27815 * config/i386/i386.c (initial_ix86_tune_features)
27816 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27817 (ix86_lea_outperforms): Handle Silvermont tuning.
27818 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27820 (ix86_use_lea_for_mov): Likewise.
27821 (ix86_avoid_lea_for_addr): Likewise.
27822 (ix86_lea_for_add_ok): Likewise.
27823 (exact_dependency_1): New function.
27824 (exact_store_load_dependency): Likewise.
27825 (ix86_adjust_cost): Handle Silvermont tuning.
27826 (do_reoder_for_imul): Likewise.
27827 (swap_top_of_ready_list): New function.
27828 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27830 * config/i386/i386.md (peepholes that split memory operand in fp
27833 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27835 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27836 Remove un-necessary braces.
27838 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27840 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27841 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27843 2013-05-31 Tobias Burnus <burnus@net-b.de>
27845 PR middle-end/57073
27846 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27848 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27851 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27852 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27853 * config/arm/neon.md (iordi3_neon): Remove.
27854 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27855 * config/arm/predicates.md (imm_for_neon_logic_operand):
27856 Move to earlier in the file.
27857 (neon_logic_op2): Likewise.
27858 (arm_iordi_operand_neon): New predicate.
27860 2013-05-31 Richard Biener <rguenther@suse.de>
27862 PR tree-optimization/57478
27863 PR tree-optimization/57453
27864 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27867 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27869 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27870 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27872 2013-05-30 Tobias Burnus <burnus@net-b.de>
27873 Thomas Koenig <tkoenig@gcc.gnu.org>
27875 PR middle-end/57073
27876 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27877 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27879 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27881 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27883 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27885 * target.def (register_usage_leveling_p): New hook.
27886 * targhooks.c (default_register_usage_leveling_p): New.
27887 * targhooks.h (default_register_usage_leveling_p): New prototype.
27888 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27889 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27890 * doc/tm.texi: Update.
27891 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27893 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27895 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27896 (*insv_reg<mode>): New define_insn.
27898 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27900 PR rtl-optimization/57439
27901 * postreload.c (move2add_valid_value_p): Check that we have
27902 a zero subreg_regno_offset when accessing the register in
27903 the requested mode.
27905 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27906 Igor Zamyatin <igor.zamyatin@intel.com>
27908 Silvermont (SLM) architecture pipeline model, tuning and
27910 * config.gcc: Add slm config options and target.
27912 * config/i386/slm.md: New.
27914 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27916 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27918 (ix86_target_macros_internal): Likewise.
27920 * config/i386/i386.c (slm_cost): New cost.
27921 (m_SLM): New macro flag.
27922 (initial_ix86_tune_features): Set m_SLM.
27923 (x86_accumulate_outgoing_args): Likewise.
27924 (x86_arch_always_fancy_math_387): Likewise.
27925 (processor_target_table): Add slm cost.
27926 (cpu_names): Add slm cpu name.
27927 (x86_option_override_internal): Set SLM ISA.
27928 (ix86_issue_rate): New case PROCESSOR_SLM.
27929 (ia32_multipass_dfa_lookahead): Likewise.
27930 (fold_builtin_cpu): Add slm.
27932 * config/i386/i386.h (TARGET_SLM): New target macro.
27933 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27934 (processor_type): Add PROCESSOR_SLM.
27936 * config/i386/i386.md (cpu): Add new value "slm".
27937 (slm.md): Include slm.md.
27939 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27940 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27942 * config/arm/arm-protos.h: Add and update function protos.
27943 * config/arm/arm.c (use_simple_return_p): New added.
27944 (thumb2_expand_return): Check simple_return flag.
27945 * config/arm/arm.md: Add simple_return and conditional simple_return.
27946 * config/arm/iterators.md: Add iterator for return and simple_return.
27948 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27950 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27951 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27952 (arm_emit_vfp_multi_reg_pop): Likewise.
27953 (thumb2_emit_ldrd_pop): Likewise.
27954 (arm_expand_epilogue): Add misc REG_CFA notes.
27955 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27957 2013-05-29 Lawrence Crowl <crowl@google.com>
27959 * config/arm/t-arm: Update for below.
27961 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27962 Change type to hash_table. Update dependent calls and types.
27964 * config/i386/t-cygming: Update for below.
27966 * config/i386/t-interix: Update for below.
27968 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27969 Change type to hash_table. Update dependent calls and types.
27970 (i386_find_on_wrapper_list::wrappers): Likewise.
27972 * config/ia64/t-ia64: Update for below.
27974 * config/ia64/ia64.c (bundle_state_table):
27975 Change type to hash_table. Update dependent calls and types.
27977 * config/mips/mips.c (mips_reorg_process_insns::htab):
27978 Change type to hash_table. Update dependent calls and types.
27980 * config/sol2.c (solaris_comdat_htab):
27981 Change type to hash_table. Update dependent calls and types.
27983 * config/t-sol2: Update for above.
27985 2013-05-29 Teresa Johnson <tejohnson@google.com>
27987 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27988 functions are not yet marked as defined.
27990 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27991 Pat Haugen <pthaugen@us.ibm.com>
27992 Peter Bergner <bergner@vnet.ibm.com>
27994 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27998 (vrotl<mode>3): Likewise.
27999 (vashl<mode>3): Likewise.
28000 (vlshr<mode>3): Likewise.
28001 (vashr<mode>3): Likewise.
28003 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28004 support for power8 V2DI builtins.
28006 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28007 power8 V2DI builtins.
28008 (vupkhsw): Likewise.
28009 (vupklsw): Likewise.
28010 (vaddudm): Likewise.
28011 (vminsd): Likewise.
28012 (vmaxsd): Likewise.
28013 (vminud): Likewise.
28014 (vmaxud): Likewise.
28015 (vpkudum): Likewise.
28016 (vpksdss): Likewise.
28017 (vpkudus): Likewise.
28018 (vpksdus): Likewise.
28023 (vsubudm): Likewise.
28024 (vcmpequd): Likewise.
28025 (vcmpgtsd): Likewise.
28026 (vcmpgtud): Likewise.
28027 (vcmpequd_p): Likewise.
28028 (vcmpgtsd_p): Likewise.
28029 (vcmpgtud_p): Likewise.
28030 (vupkhsw): Likewise.
28031 (vupklsw): Likewise.
28032 (vaddudm): Likewise.
28033 (vmaxsd): Likewise.
28034 (vmaxud): Likewise.
28035 (vminsd): Likewise.
28036 (vminud): Likewise.
28037 (vpksdss): Likewise.
28038 (vpksdus): Likewise.
28039 (vpkudum): Likewise.
28040 (vpkudus): Likewise.
28045 (vsubudm): Likewise.
28047 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28048 support for power8 V2DI instructions.
28050 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28051 power8 V2DI instructions. Combine pack and unpack insns to use an
28052 iterator for each mode. Check whether a particular mode supports
28053 Altivec instructions instead of just checking TARGET_ALTIVEC.
28054 (UNSPEC_VPKUWUM): Likewise.
28055 (UNSPEC_VPKSHSS): Likewise.
28056 (UNSPEC_VPKSWSS): Likewise.
28057 (UNSPEC_VPKUHUS): Likewise.
28058 (UNSPEC_VPKSHUS): Likewise.
28059 (UNSPEC_VPKUWUS): Likewise.
28060 (UNSPEC_VPKSWUS): Likewise.
28061 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28062 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28063 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28064 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28065 (UNSPEC_VUPKHSB): Likewise.
28066 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28067 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28068 (UNSPEC_VUPKHSH): Likewise.
28069 (UNSPEC_VUPKLSB): Likewise.
28070 (UNSPEC_VUPKLSH): Likewise.
28072 (VI_char): Likewise.
28073 (VI_scalar): Likewise.
28074 (VI_unit): Likewise.
28076 (VP_small): Likewise.
28077 (VP_small_lc): Likewise.
28078 (VU_char): Likewise.
28079 (add<mode>3): Likewise.
28080 (altivec_vaddcuw): Likewise.
28081 (altivec_vaddu<VI_char>s): Likewise.
28082 (altivec_vadds<VI_char>s): Likewise.
28083 (sub<mode>3): Likewise.
28084 (altivec_vsubcuw): Likewise.
28085 (altivec_vsubu<VI_char>s): Likewise.
28086 (altivec_vsubs<VI_char>s): Likewise.
28087 (altivec_vavgs<VI_char>): Likewise.
28088 (altivec_vcmpbfp): Likewise.
28089 (altivec_eq<mode>): Likewise.
28090 (altivec_gt<mode>): Likewise.
28091 (altivec_gtu<mode>): Likewise.
28092 (umax<mode>3): Likewise.
28093 (smax<mode>3): Likewise.
28094 (umin<mode>3): Likewise.
28095 (smin<mode>3): Likewise.
28096 (altivec_vpkuhum): Likewise.
28097 (altivec_vpkuwum): Likewise.
28098 (altivec_vpkshss): Likewise.
28099 (altivec_vpkswss): Likewise.
28100 (altivec_vpkuhus): Likewise.
28101 (altivec_vpkshus): Likewise.
28102 (altivec_vpkuwus): Likewise.
28103 (altivec_vpkswus): Likewise.
28104 (altivec_vpks<VI_char>ss): Likewise.
28105 (altivec_vpks<VI_char>us): Likewise.
28106 (altivec_vpku<VI_char>us): Likewise.
28107 (altivec_vpku<VI_char>um): Likewise.
28108 (altivec_vrl<VI_char>): Likewise.
28109 (altivec_vsl<VI_char>): Likewise.
28110 (altivec_vsr<VI_char>): Likewise.
28111 (altivec_vsra<VI_char>): Likewise.
28112 (altivec_vsldoi_<mode>): Likewise.
28113 (altivec_vupkhsb): Likewise.
28114 (altivec_vupkhs<VU_char>): Likewise.
28115 (altivec_vupkls<VU_char>): Likewise.
28116 (altivec_vupkhsh): Likewise.
28117 (altivec_vupklsb): Likewise.
28118 (altivec_vupklsh): Likewise.
28119 (altivec_vcmpequ<VI_char>_p): Likewise.
28120 (altivec_vcmpgts<VI_char>_p): Likewise.
28121 (altivec_vcmpgtu<VI_char>_p): Likewise.
28122 (abs<mode>2): Likewise.
28123 (vec_unpacks_hi_v16qi): Likewise.
28124 (vec_unpacks_hi_v8hi): Likewise.
28125 (vec_unpacks_lo_v16qi): Likewise.
28126 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28127 (vec_unpacks_lo_v8hi): Likewise.
28128 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28129 (vec_pack_trunc_v8h): Likewise.
28130 (vec_pack_trunc_v4si): Likewise.
28131 (vec_pack_trunc_<mode>): Likewise.
28133 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28135 (vec_vmaxsd): Likewise.
28136 (vec_vmaxud): Likewise.
28137 (vec_vminsd): Likewise.
28138 (vec_vminud): Likewise.
28139 (vec_vpksdss): Likewise.
28140 (vec_vpksdus): Likewise.
28141 (vec_vpkudum): Likewise.
28142 (vec_vpkudus): Likewise.
28143 (vec_vrld): Likewise.
28144 (vec_vsld): Likewise.
28145 (vec_vsrad): Likewise.
28146 (vec_vsrd): Likewise.
28147 (vec_vsubudm): Likewise.
28148 (vec_vupkhsw): Likewise.
28149 (vec_vupklsw): Likewise.
28151 2013-05-29 Jan Hubicka <jh@suse.cz>
28153 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28154 flags; reorder rest of fields in more consistent way.
28155 (varpool_node): Remove analyzed, finalized and alias.
28156 (cgraph_ndoe): Likewise.
28157 (symtab_alias_ultimate_target): New function.
28158 (cgraph_function_node): Move offline.
28159 (cgraph_reset_node): Declare.
28160 (cgraph_comdat_can_be_unshared_p): Remove.
28161 (varpool_remove_initializer): Declare.
28162 (varpool_first_defined_variable, varpool_next_defined_variable
28163 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28164 (cgraph_function_with_gimple_body_p): Update.
28165 (varpool_all_refs_explicit_p): Update.
28166 (symtab_alias_target): New function.
28167 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28168 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28169 (cgraph_function_or_thunk_node): Simplify using
28170 symtab_alias_ultimate_target.
28171 (varpool_variable_node): Likewise.
28172 * cgraph.c (cgraph_create_function_alias): Update.
28173 (cgraph_add_thunk): Update.
28174 (cgraph_remove_node): Update.
28175 (dump_cgraph_node): Do not dump removed flags.
28176 (cgraph_function_body_availability): Update.
28177 (cgraph_propagate_frequency): Update.
28178 (verify_cgraph_node): Check sanity of local flag.
28179 (cgraph_function_node): Move here from cgraph.h; revamp for
28180 cgraph_function_or_thunk_node.
28181 * lto-symtab.c (lto_varpool_replace_node): Update.
28182 (lto_symtab_resolve_can_prevail_p): Update.
28183 (lto_symtab_merge_cgraph_nodes): Update.
28184 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28185 propagate_constants_accross_call, devirtualization_time_bonus,
28186 ipcp_propagate_stage): Update.
28187 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28188 * ipa-inline-transform.c (clone_inlined_nodes,
28189 preserve_function_body_p): Update.
28190 * ipa-reference.c (propagate): Update.
28191 (write_node_summary_p): Update.
28192 * toplev.c (wrapup_global_declaration_2): Update.
28193 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28194 (analyze_function) ... this one.
28195 (cgraph_process_new_functions): Update.
28196 (cgraph_reset_node): Export.
28197 (cgraph_finalize_function): Update.
28198 (cgraph_add_new_function): Update.
28199 (process_function_and_variable_attributes): Update.
28200 (varpool_finalize_decl): Update.
28201 (symbol_finalized): Remove.
28202 (symbol_finalized_and_needed): Rename to ...
28203 (symbol_defined_and_needed): ... update.
28204 (cgraph_analyze_functions): Update.
28205 (handle_alias_pairs): Update.
28206 (mark_functions_to_output): Update.
28207 (assemble_thunk): Update.
28208 (output_in_order): Update.
28209 (output_weakrefs): Update.
28210 (finalize_compilation_unit): Update.
28211 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28212 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28213 input_node, input_varpool_node): Update.
28214 * dbxout.c (dbxout_expand_expr): Update.
28215 * cgraphclones.c (cgraph_clone_node): Update.
28216 (cgraph_copy_node_for_versioning): Update.
28217 (cgraph_materialize_clone): Update.
28218 (cgraph_materialize_all_clones): Update.
28219 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28220 propagate_pure_const, propagate_nothrow): Update.
28221 * lto-streamer-out.c (lto_output, write_symbol): Update.
28222 * ipa-utils.c (ipa_reverse_postorder): Update.
28223 * ipa-inline.c (can_inline_edge_p): Update.
28224 (update_caller_keys, ipa_inline): Update.
28225 * dwarf2out.c (reference_to_unused,
28226 premark_types_used_by_global_vars_helper): Update.
28227 * tree-eh.c (tree_could_trap_p): Update.
28228 * ipa-split.c (consider_split, execute_split_functions): Update.
28229 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28230 has_addr_references_p): Update; move ahead in file for better
28232 (process_references): Simplify.
28233 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28234 bodies are removed.
28235 (cgraph_comdat_can_be_unshared_p): Make static.
28236 (cgraph_externally_visible_p): Update.
28237 (varpool_externally_visible_p): Update.
28238 (function_and_variable_visibility): Update.
28239 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28240 ipa_tm_mark_force_output_node): Update.
28241 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28242 estimate_edge_devirt_benefit, inline_generate_summary,
28243 inline_write_summary): Update.
28244 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28245 * ipa-prop.c (ipa_compute_jump_functions): Update.
28246 (ipa_print_node_params, ipa_prop_read_section,
28247 ipa_update_after_lto_read, read_replacements_section): Update.
28248 * varasm.c (mark_decl_referenced): Update.
28249 (assemble_alias, dump_tm_clone_pairs): Update.
28250 * tree-inline.c (copy_bb): Update.
28251 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28253 * symtab.c (dump_symtab_base): Print new flags.
28254 (verify_symtab_base): Verify new flags.
28255 (symtab_alias_ultimate_target): New function.
28256 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28257 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28259 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28261 * i386.c (ix86_get_function_versions_dispatcher,
28262 ix86_generate_version_dispatcher_body): Update.
28263 (fold_builtin_cpu): Use varpool_add_new_variable.
28264 * varpool.c (varpool_remove_initializer): Break out from ...
28265 (varpool_remove_node): ... this one.
28266 (dump_varpool_node, varpool_node_for_asm,
28267 cgraph_variable_initializer_availability, varpool_analyze_node,
28268 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28269 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28272 2013-05-29 Jan Hubicka <jh@suse.cz>
28274 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28276 2013-05-29 Easwaran Raman <eraman@google.com>
28278 PR tree-optimization/57442
28279 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28280 when control exits the main loop.
28282 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28284 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28286 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28287 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28288 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28291 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28293 PR tree-optimization/57441
28294 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28295 Don't limit size of incr_vec to number of candidates.
28297 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28299 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28300 and mips16 directories.
28301 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28302 (MULTILIB_DIRNAMES): Ditto.
28303 (MULTILIB_EXCEPTIONS): Add new exceptions.
28304 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28305 (MULTILIB_DIRNAMES): Ditto.
28306 (MULTILIB_EXCEPTIONS): Add new exceptions.
28308 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28309 Marcus Shawcroft <marcus.shawcroft@arm.com>
28311 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28312 SYMBOL_TINY_ABSOLUTE.
28313 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28314 SYMBOL_TINY_ABSOLUTE.
28315 (aarch64_expand_mov_immediate): Likewise.
28316 (aarch64_classify_symbol): Likewise.
28317 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28318 Permit SYMBOL_TINY_ABSOLUTE.
28319 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28321 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28322 Marcus Shawcroft <marcus.shawcroft@arm.com>
28324 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28325 Refactor if/switch. Replace gcc_assert with if.
28327 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28329 * config/i386/i386.c (initial_ix86_tune_features): Enable
28330 FP Reassociation for AMD bdver1 and bdver2.
28332 2013-05-29 Martin Jambor <mjambor@suse.cz>
28334 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28335 and IMAGPART_EXPR do not occur within other handled_components.
28337 2013-05-29 Richard Biener <rguenther@suse.de>
28339 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28340 access on whether the use is in the BB we currently try to
28342 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28343 vectorize to vect_bb_slp_scalar_cost.
28345 2013-05-29 Richard Biener <rguenther@suse.de>
28347 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28348 computing scalar cost offsetted by stmts that are kept live
28350 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28351 for computation of scalar cost.
28353 2013-05-28 Steve Ellcey <sellcey@mips.com>
28355 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28357 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28359 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28360 array notation built-in reduction functions.
28361 * doc/passes.texi (Passes): Added documentation about changes done
28363 * doc/invoke.texi (C Dialect Options): Added documentation about
28364 the -fcilkplus flag.
28365 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28366 (BUILTINS_DEF): Depend on cilkplus.def.
28367 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28368 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28369 * cilkplus.def: New file.
28371 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28373 PR rtl-optimization/57439
28374 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28376 2013-05-28 Easwaran Raman <eraman@google.com>
28378 PR tree-optimization/57337
28379 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28380 (find_insert_point): Correctly identify the insertion point
28381 when two statements with the same UID is compared.
28383 2013-05-28 Richard Biener <rguenther@suse.de>
28385 PR tree-optimization/56787
28386 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28387 from the list of data references.
28388 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28390 (vect_analyze_loop_operations): Likewise.
28391 (vect_transform_loop): Remove clobbers.
28393 2013-05-28 Martin Jambor <mjambor@suse.cz>
28395 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28396 and REALPART_EXPRs have scalar type.
28398 2013-05-28 Richard Biener <rguenther@suse.de>
28400 PR tree-optimization/57411
28401 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28403 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28404 virtual operand propagation.
28406 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28408 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28409 destination register for bmasksi_vis.
28410 (vector_init_bshuffle): Likewise.
28411 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28413 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28415 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28416 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28417 mode if the instruction isn't available in the original mode.
28418 * config/sparc/sparc.opt (mfix-ut699): New option.
28419 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28420 (divdf3): Turn into expander.
28421 (divdf3_nofix): New insn.
28422 (divdf3_fix): Likewise.
28423 (divsf3): Disable if -mfix-ut699.
28424 (sqrtdf2): Turn into expander.
28425 (sqrtdf2_nofix): New insn.
28426 (sqrtdf2_fix): Likewise.
28427 (sqrtsf2): Disable if -mfix-ut699.
28429 2013-05-27 Richard Biener <rguenther@suse.de>
28431 PR middle-end/57412
28432 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28433 block for the new loop.
28435 2013-05-27 Richard Biener <rguenther@suse.de>
28437 PR tree-optimization/57343
28438 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28439 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28440 (number_of_iterations_cond): Do not build the folded tree.
28442 2013-05-27 Richard Biener <rguenther@suse.de>
28445 PR middle-end/57381
28446 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28447 OEP_CONSTANT_ADDRESS_OF retained.
28449 PR tree-optimization/57417
28450 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28451 for unchanged base.
28452 (set_ssa_val_to): Compare addresses using
28453 get_addr_base_and_unit_offset.
28455 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28457 PR rtl-optimization/56833
28458 * postreload.c (move2add_record_mode): New function.
28459 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28460 (move2add_use_add2_insn): Use move2add_record_sym_value.
28461 (move2add_use_add3_insn): Likewise.
28462 (reload_cse_move2add): Use move2add_valid_value_p and
28463 move2add_record_mode. Invalidate call-clobbered and REG_INC
28464 affected regs by setting reg_mode to VOIDmode.
28465 (move2add_note_store): Don't pretend the inside of a SUBREG is
28466 the actual destination. Invalidate single/leading registers by
28467 setting reg_mode to VOIDmode.
28468 Use move2add_record_sym_value, move2add_valid_value_p and
28469 move2add_record_mode.
28471 2013-05-27 Richard Biener <rguenther@suse.de>
28473 PR tree-optimization/57396
28474 * tree-affine.c (double_int_constant_multiple_p): Properly
28475 return false for val == 0 and div != 0.
28477 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28479 * config/mips/mips.h: Use #elif in preprocessor conditions.
28481 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28484 * config/mips/constraints.md (kl): New constraint.
28485 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28486 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28487 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28488 from LO for MIPS16.
28489 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28491 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28494 * config/mips/mips.c (mips_can_inline_p): New function.
28495 (TARGET_CAN_INLINE_P): Define.
28497 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28499 * sched-int.h (ds_t, dw_t): Make unsigned int.
28500 Fix documentation that describes how all the ds_t bits are used.
28501 Reserve the last bit for delayed-branch scheduling.
28502 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28503 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28504 (gen_dep_weak_1): Remove prototype.
28505 * sched-deps.c (get_dep_weak_1): Make static.
28506 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28507 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28508 * doc/tm.texi: Regenerate.
28509 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28511 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28514 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28516 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28517 Sandra Loosemore <sandra@codesourcery.com>
28519 * config.gcc (powerpc-*): Allow native for with-cpu.
28521 2013-05-24 Jeff Law <law@redhat.com>
28523 PR tree-optimization/57124
28524 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28525 conversion feeding a condition if the range has an overflow
28526 if -fstrict-overflow. Add warnings for when we do make the
28529 2013-05-24 Dehao Chen <dehao@google.com>
28531 * tree-cfg.c (locus_discrim_map): Fix the typo.
28532 (locus_discrim_hasher): Likewise.
28533 (locus_discrim_hasher::hash): Likewise.
28534 (locus_discrim_hasher::equal): Likewise.
28536 2013-05-24 Martin Jambor <mjambor@suse.cz>
28538 PR tree-optimization/57294
28539 * cgraph.h (ipa_record_stmt_references): Declare.
28540 * cgraphbuild.c (ipa_record_stmt_references): New function.
28541 (build_cgraph_edges): Use ipa_record_stmt_references.
28542 (rebuild_cgraph_edges): Likewise.
28543 (cgraph_rebuild_references): Likewise.
28544 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28545 associated with the old statement and build references from the
28546 newly built statements.
28547 * ipa-ref.c (ipa_remove_stmt_references): New function.
28548 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28550 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28552 * lra-constraints.c (emit_spill_move): Use smaller mode for
28554 (check_and_process_move): Consider mem-reg moves for secondary
28556 (curr_insn_transform): Don't lose insns emitted before for
28557 secondary memory moves.
28558 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28559 reg set up in the current insn.
28561 2013-05-24 Dehao Chen <dehao@google.com>
28563 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28565 (locus_descrim_hasher::equal): Likewise.
28566 (build_gimple_cfg): New discriminator assignment algorithm.
28567 (make_edges): Likewise.
28568 (next_discriminator_for_locus): Likewise.
28569 (same_line_p): Likewise.
28570 (assign_discriminators): Likewise.
28571 (make_cond_expr_edges): Likewise.
28572 (make_gimple_switch_edges): Likewise.
28573 (make_goto_expr_edges): Likewise.
28574 (make_gimple_asm_edges): Likewise.
28576 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28578 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28579 X format specifier to only display bottom 16 bits.
28580 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28581 immediate to match for operand 2, since it will be masked.
28583 2013-05-24 Richard Biener <rguenther@suse.de>
28585 PR tree-optimization/57287
28586 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28587 all SSA names that occur in abnormal PHIs.
28589 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28592 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28593 that index is not negative.
28595 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28597 PR rtl-optimization/55177
28598 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28599 (simplify_byte_swapping_operation): New.
28600 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28601 (simplify_relational_operation_1): Deal with BSWAP.
28603 2013-05-23 Richard Henderson <rth@redhat.com>
28606 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28607 (ix86_reorg): Call it.
28609 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28612 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28613 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28614 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28616 2013-05-23 Christian Bruel <christian.bruel@st.com>
28619 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28621 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28622 Marcus Shawcroft <marcus.shawcroft@arm.com>
28624 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28625 * config/aarch64/constraints.md (Usa): Remove.
28626 * doc/md.texi (AArch64 Usa): Remove.
28628 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28629 Marcus Shawcroft <marcus.shawcroft@arm.com>
28631 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28632 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28633 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28634 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28636 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28638 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28639 instruction (AdvSIMD).
28640 * config/aarch64/aarch64-builtins.c
28641 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28642 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28644 2013-05-23 Martin Jambor <mjambor@suse.cz>
28646 PR middle-end/57347
28647 * tree.h (contains_bitfld_component_ref_p): Declare.
28648 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28649 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28651 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28652 not access a bit-field. Assert all final offsets are byte-aligned.
28654 2013-05-23 Richard Biener <rguenther@suse.de>
28656 PR tree-optimization/57380
28657 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28658 least one invariant or re-used load.
28659 * passes.c (init_optimization_passes): Move pass_phiprop before
28662 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28664 * config/aarch64/aarch64-simd.md
28665 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28667 2013-05-23 Richard Biener <rguenther@suse.de>
28669 PR middle-end/57381
28670 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28671 OEP_CONSTANT_ADDRESS_OF retained.
28673 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28675 PR middle-end/57344
28676 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28677 don't lower unit. Handle unit not being always BITS_PER_WORD.
28679 2013-05-23 Richard Biener <rguenther@suse.de>
28681 PR rtl-optimization/57341
28682 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28683 instead of true_dependence.
28685 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28687 * bb-reorder.c (branch_threshold): Make const.
28688 (exec_threshold): Ditto.
28690 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28691 Pat Haugen <pthaugen@us.ibm.com>
28692 Peter Bergner <bergner@vnet.ibm.com>
28694 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28695 documentation for the power8 crypto builtins.
28697 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28699 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28700 macros for defining power8 builtin functions.
28701 (BU_P8V_AV_2): Likewise.
28702 (BU_P8V_AV_P): Likewise.
28703 (BU_P8V_VSX_1): Likewise.
28704 (BU_P8V_OVERLOAD_1): Likewise.
28705 (BU_P8V_OVERLOAD_2): Likewise.
28706 (BU_CRYPTO_1): Likewise.
28707 (BU_CRYPTO_2): Likewise.
28708 (BU_CRYPTO_3): Likewise.
28709 (BU_CRYPTO_OVERLOAD_1): Likewise.
28710 (BU_CRYPTO_OVERLOAD_2): Likewise.
28711 (XSCVSPDP): Fix typo, point to the correct instruction.
28712 (VCIPHER): Add power8 crypto builtins.
28713 (VCIPHERLAST): Likewise.
28714 (VNCIPHER): Likewise.
28715 (VNCIPHERLAST): Likewise.
28716 (VPMSUMB): Likewise.
28717 (VPMSUMH): Likewise.
28718 (VPMSUMW): Likewise.
28719 (VPERMXOR_V2DI): Likewise.
28720 (VPERMXOR_V4SI: Likewise.
28721 (VPERMXOR_V8HI: Likewise.
28722 (VPERMXOR_V16QI: Likewise.
28723 (VSHASIGMAW): Likewise.
28724 (VSHASIGMAD): Likewise.
28725 (VPMSUM): Likewise.
28726 (VPERMXOR): Likewise.
28727 (VSHASIGMA): Likewise.
28729 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28730 __CRYPTO__ if the crypto instructions are available.
28731 (altivec_overloaded_builtins): Add support for overloaded power8
28734 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28735 support for power8 crypto builtins.
28736 (builtin_function_type): Likewise.
28737 (altivec_init_builtins): Add support for builtins that take vector
28738 long long (V2DI) arguments.
28740 * config/rs6000/crypto.md: New file, define power8 crypto
28743 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28744 Pat Haugen <pthaugen@us.ibm.com>
28745 Peter Bergner <bergner@vnet.ibm.com>
28747 * doc/invoke.texi (Option Summary): Add power8 options.
28748 (RS/6000 and PowerPC Options): Likewise.
28750 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28751 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28752 wm, wn, wr documentation.
28754 * config/rs6000/constraints.md (wm): New constraint for VSX
28755 registers if direct move instructions are enabled.
28756 (wn): New constraint for no registers.
28757 (wq): New constraint for quad word even GPR registers.
28758 (wr): New constraint if 64-bit instructions are enabled.
28759 (wv): New constraint if power8 vector instructions are enabled.
28760 (wQ): New constraint for quad word memory locations.
28762 * config/rs6000/predicates.md (const_0_to_15_operand): New
28763 constraint for 0..15 for crypto instructions.
28764 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28765 as GPR and floating point registers.
28766 (int_reg_operand): New predicate to match only GPR registers.
28767 (base_reg_operand): New predicate to match base registers.
28768 (quad_int_reg_operand): New predicate to match even GPR registers
28769 for quad memory operations.
28770 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28771 operations in both GPR and VSX registers.
28772 (quad_memory_operand): New predicate for quad memory operations.
28773 (reg_or_indexed_operand): New predicate for direct move support.
28775 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28776 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28777 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28778 (POWERPC_MASKS): Add power8 options.
28779 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28782 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28783 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28785 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28786 (-mpower8-fusion): New power8 options.
28787 (-mpower8-fusion-sign): Likewise.
28788 (-mpower8-vector): Likewise.
28789 (-mcrypto): Likewise.
28790 (-mdirect-move): Likewise.
28791 (-mquad-memory): Likewise.
28793 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28794 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28796 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28797 (rs6000_debug_vector_unit): Add p8_vector.
28798 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28799 definitions. Also print fusion state.
28800 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28801 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28802 (rs6000_option_override_internal): Add support for power8.
28803 (rs6000_common_init_builtins): Add debugging for skipped builtins
28804 if -mdebug=builtin.
28805 (rs6000_adjust_cost): Add power8 support.
28806 (rs6000_issue_rate): Likewise.
28807 (insn_must_be_first_in_group): Likewise.
28808 (insn_must_be_last_in_group): Likewise.
28809 (force_new_group): Likewise.
28810 (rs6000_register_move_cost): Likewise.
28811 (rs6000_opt_masks): Likewise.
28813 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28814 power8 capable assembler, default to power7 options.
28815 (TARGET_DIRECT_MOVE): Likewise.
28816 (TARGET_CRYPTO): Likewise.
28817 (TARGET_P8_VECTOR): Likewise.
28818 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28819 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28820 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28821 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28822 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28823 (TARGET_XSCVDPSPN): Likewise.
28824 (TARGET_XSCVSPDPN): Likewsie.
28825 (TARGET_SYNC_HI_QI): Likewise.
28826 (TARGET_SYNC_TI): Likewise.
28827 (MASK_CRYPTO): Likewise.
28828 (MASK_DIRECT_MOVE): Likewise.
28829 (MASK_P8_FUSION): Likewise.
28830 (MASK_P8_VECTOR): Likewise.
28831 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28832 temporary used by some of the direct move instructions to get two FP
28833 temporary registers does not force creation of a stack frame.
28834 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28835 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28836 that any VSX registers are tieable, even if they are also an
28837 Altivec vector mode.
28838 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28839 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28840 (RS6000_BTM_CRYPTO): Likewise.
28841 (RS6000_BTM_COMMON): Likewise.
28843 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28844 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28845 (enum rs6000_vector): Add power8 vector support.
28847 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28851 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28852 (any_sibcall_could_use_r3): this and handle indirect calls.
28853 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28855 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28857 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28859 2013-05-22 Richard Biener <rguenther@suse.de>
28861 PR middle-end/57349
28862 * profile.c (branch_prob): Do not split blocks that are
28863 abnormally receiving from ECF_RETURNS_TWICE functions.
28865 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28867 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28868 address mode. Move pointer mode initialization to the same place.
28870 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28872 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28873 while it has any effect.
28875 2013-05-21 Easwaran Raman <eraman@google.com>
28877 PR tree-optimization/57322
28878 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28879 UID of the statement added to the BB to be 1.
28881 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28883 PR tree-optimization/57331
28884 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28885 of conversion from pointer type to integral type with integer.
28887 2013-05-21 Martin Jambor <mjambor@suse.cz>
28890 * ipa-prop.c (ipa_read_node_info): Process param_used and
28891 controlled_uses in the same order as when writing.
28893 2013-05-21 Magnus Granberg <baldrick@free.fr>
28896 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28898 2013-05-21 Richard Biener <rguenther@suse.de>
28900 PR tree-optimization/57318
28901 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28902 estimate stmts with side-effects as likely eliminated.
28904 2013-05-21 Richard Biener <rguenther@suse.de>
28906 PR tree-optimization/57330
28907 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28908 preserve the call stmts fntype.
28910 2013-05-21 Richard Biener <rguenther@suse.de>
28912 PR tree-optimization/57303
28913 * tree-ssa-sink.c (statement_sink_location): Improve killing
28914 stmt detection and properly handle self-assignments.
28916 2013-05-21 Christian Bruel <christian.bruel@st.com>
28918 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28919 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28920 registers. Set register size out of the PARALLEL loop.
28922 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28925 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28926 (*fmasf4, *fmasf4_media): New insns.
28928 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28930 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28931 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28932 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28933 (mips_idiv_insns): Update the comments to say that the returned
28934 instruction counts are in units of BASE_INSN_LENGTH.
28935 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28936 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28937 using 2 rather than 4 as the length of indirect MIPS16 and
28938 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28939 length of a NOP. Don't divide MIPS16 lengths by 2.
28940 (mips16_split_long_branches): Assume a branch is long if the
28941 length is greater than 4 rather than 8.
28942 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28943 rather than multiplying them by 2. Multiply instruction counts
28944 by BASE_INSN_LENGTH rather than 4.
28945 (*jump_mips16, tls_get_tp_mips16_<mode>)
28946 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28948 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28950 * config/mips/mips.md (extended_mips16): Remove branch case.
28951 (length): Remove duplicated extended_mips16 test.
28953 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28955 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28957 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28959 * recog.h (Recog_data): Rename to...
28960 (recog_data_d): ...this.
28961 (recog_data): Update accordingly.
28962 * recog.c (recog_data): Likewise.
28963 * reload.c (save_recog_data): Likewise.
28964 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28965 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28967 2013-05-17 Julian Brown <julian@codesourcery.com>
28969 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28970 found in a REG_EQUAL note, invalidate it.
28972 2013-05-17 Easwaran Raman <eraman@google.com>
28974 * tree-ssa-reassoc.c (find_insert_point): New function.
28975 (insert_stmt_after): Likewise.
28976 (get_def_stmt): Likewise.
28977 (ensure_ops_are_available): Likewise.
28978 (not_dominated_by): Likewise.
28979 (rewrite_expr_tree): Do not move statements beyond what is
28980 necessary. Remove call to swap_ops_for_binary_stmt...
28981 (reassociate_bb): ... and move it here.
28982 (build_and_add_sum): Assign UIDs for new statements.
28983 (linearize_expr): Likewise.
28984 (do_reassoc): Renumber gimple statement UIDs.
28986 2013-05-17 Jan Hubicka <jh@suse.cz>
28988 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28990 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28991 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28993 (output_weakrefs): Update.
28995 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28996 Martin Jambor <mjambor@suse.cz>
28998 PR middle-end/57276
28999 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29000 value that corresponds to the given aggval is found in values vector.
29002 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29004 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29005 sse, sse2, sse3, ssse3 and sse4a flags to options.
29007 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29009 * gengtype-state.c: (s_expr_writer): New class, to handle
29010 prettifying of output layout of s-expressions.
29011 (state_writer): New class, to write out gtype.state.
29012 (state_written_type_count): Move this variable into member data of
29014 (s_expr_writer::s_expr_writer): New code: constructor for new class
29015 (state_writer::state_writer(): ditto
29016 (s_expr_writer::write_new_line): New function
29017 (s_expr_writer::write_any_indent): ditto
29018 (s_expr_writer::begin_s_expr): ditto
29019 (s_expr_writer::end_s_expr): ditto
29020 (write_state_fileloc): convert to method of state_writer...
29021 (state_writer:: write_state_fileloc): ...and use methods of
29022 s_expr_writer to write indentation into the gtype.state output file
29023 to visually represent the hierarchical structure of the list
29025 (write_state_fields): ditto, renaming to...
29026 (state_writer::write_state_fields)
29027 (write_state_a_string): ditto, renaming to...
29028 (state_writer::write_state_a_string)
29029 (write_state_string_option): ditto, renaming to...
29030 (state_writer::write_state_string_option)
29031 (write_state_type_option): ditto, renaming to...
29032 (state_writer::write_state_type_option)
29033 (write_state_nested_option): ditto, renaming to...
29034 (state_writer::write_state_nested_option)
29035 (write_state_option): ditto, renaming to...
29036 (state_writer::write_state_option)
29037 (write_state_options): ditto, renaming to...
29038 (state_writer::write_state_options)
29039 (write_state_lang_bitmap): ditto, renaming to...
29040 (state_writer::write_state_lang_bitmap)
29041 (write_state_version): ditto, renaming to...
29042 (state_writer::write_state_version)
29043 (write_state_scalar_type): ditto, renaming to...
29044 (state_writer::write_state_scalar_type)
29045 (write_state_string_type): ditto, renaming to...
29046 (state_writer::write_state_string_type)
29047 (write_state_undefined_type): ditto, renaming to...
29048 (state_writer::write_state_undefined_type)
29049 (write_state_struct_union_type): ditto, renaming to...
29050 (state_writer::write_state_struct_union_type)
29051 (write_state_struct_type): ditto, renaming to...
29052 (state_writer::write_state_struct_type)
29053 (write_state_user_struct_type): ditto, renaming to...
29054 (state_writer::write_state_user_struct_type)
29055 (write_state_lang_struct_type): ditto, renaming to...
29056 (state_writer::write_state_lang_struct_type)
29057 (write_state_param_struct_type): ditto, renaming to...
29058 (state_writer::write_state_param_struct_type)
29059 (write_state_pointer_type): ditto, renaming to...
29060 (state_writer::write_state_pointer_type)
29061 (write_state_array_type): ditto, renaming to...
29062 (state_writer::write_state_array_type)
29063 (write_state_gc_used): ditto, renaming to...
29064 (state_writer::write_state_gc_used)
29065 (write_state_common_type_content): ditto, renaming to...
29066 (state_writer::write_state_common_type_content)
29067 (write_state_type): ditto, renaming to...
29068 (state_writer::write_state_type)
29069 (write_state_pair_list): ditto, renaming to...
29070 (state_writer::write_state_pair_list)
29071 (write_state_pair): ditto, renaming to...
29072 (state_writer::write_state_pair)
29073 (write_state_typedefs): ditto, renaming to...
29074 (state_writer::write_state_typedefs)
29075 (write_state_structures): ditto, renaming to...
29076 (state_writer::write_state_structures)
29077 (write_state_param_structs): ditto, renaming to...
29078 (state_writer::write_state_param_structs)
29079 (write_state_variables): ditto, renaming to...
29080 (state_writer::write_state_variables)
29081 (write_state_srcdir): ditto, renaming to...
29082 (state_writer::write_state_srcdir)
29083 (write_state_files_list): ditto, renaming to...
29084 (state_writer::write_state_files_list)
29085 (write_state_languages): ditto, renaming to...
29086 (state_writer::write_state_languages)
29087 (write_state): create a state_writer instance and use it when
29088 writing out the state file
29090 2013-05-17 Mike Stump <mikestump@comcast.net>
29092 PR rtl-optimization/57304
29093 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29094 accessing DF_REF_REAL_LOC.
29096 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29098 PR rtl-optimization/57281
29099 PR rtl-optimization/57300
29100 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29101 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29102 what the other splitter did if the registers are dead.
29104 2013-05-17 Richard Biener <rguenther@suse.de>
29106 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29109 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29111 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29114 2013-05-17 Marek Polacek <polacek@redhat.com>
29116 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29117 length when doing non-zero store of storing '\0' to '\0'.
29119 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29121 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29122 vect_external_def oprnd1 with loop_vinfo, try to emit
29123 optional cast, negation and and stmts on the loop preheader
29124 edge instead of into the pattern def seq.
29126 PR tree-optimization/57051
29127 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29128 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29130 2013-05-16 Nick Clifton <nickc@redhat.com>
29132 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29133 (rl78_is_naked_func): New function.
29134 (rl78_expand_prologue): Skip prologue generation for naked functions.
29135 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29136 * doc/extend.texi (naked): Add RL78 to the list of processors
29137 that supports this attribute.
29139 2013-05-16 Jeff Law <law@redhat.com>
29141 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29143 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29145 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29146 cache parameters using detect_caches_amd also for CYRIX,
29147 NSC and TM2 signatures.
29149 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29150 Dzianis Kahanovich <mahatma@eu.by>
29154 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29155 VIA/Centaur processors and determine their cache parameters
29156 using detect_caches_amd.
29158 2013-05-16 Teresa Johnson <tejohnson@google.com>
29160 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29161 (rtl_verify_edges): New function.
29162 (rtl_verify_bb_insns): Ditto.
29163 (rtl_verify_bb_pointers): Ditto.
29164 (rtl_verify_bb_insn_chain): Ditto.
29165 (rtl_verify_fallthru): Ditto.
29166 (rtl_verify_bb_layout): Ditto.
29167 (rtl_verify_flow_info_1): Outline checks into new functions.
29168 (rtl_verify_flow_info): Ditto.
29170 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29172 * cfghooks.c (copy_bbs): Add update_dominance argument.
29173 * cfghooks.h (copy_bbs): Update prototype.
29174 * tree-cfg.c (gimple_duplicate_sese_region):
29175 Add update_dominance argument.
29176 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29177 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29178 gimple_duplicate_sese_region call.
29179 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29180 Update copy_bbs call.
29181 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29182 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29184 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29186 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29187 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29188 vect_recog_rotate_pattern.
29189 (vect_recog_rotate_pattern): New function.
29191 2013-05-16 Jason Merrill <jason@redhat.com>
29193 * Makefile.in (LLINKER): New variable.
29194 (mostlyclean): Remove link mutex.
29195 * configure.ac: Handle --enable-link-mutex.
29196 * lock-and-run.sh: New script.
29198 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29201 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29204 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29206 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29208 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29210 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29211 * config/arm/arm.c (next_consecutive_mem): New function.
29212 (gen_movmem_ldrd_strd): Likewise.
29213 * config/arm/arm.md (movmemqi): Update condition and code.
29214 (unaligned_loaddi, unaligned_storedi): New patterns.
29216 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29218 * config.gcc: Obsolete *-*-solaris2.9*.
29219 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29221 2013-05-16 Richard Biener <rguenther@suse.de>
29223 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29224 earlier, after GRAPHITE transforms and IV canonicalization.
29226 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29228 * omp-low.c (extract_omp_for_data): For collapsed loops,
29229 if at least one of the loops is known at compile time to
29230 iterate zero times, set count to 0.
29231 (expand_omp_regimplify_p): New function.
29232 (expand_omp_for_generic): For collapsed loops, if at least
29233 one of the loops isn't known to iterate at least once,
29234 add runtime check with setting count to 0.
29235 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29236 For unsigned types if it isn't known at compile time that
29237 the loop will iterate at least once, add runtime check to bypass
29238 the whole loop if initial condition isn't true.
29240 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29242 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29244 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29246 PR middle-end/57286
29247 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29248 transformations to avoid an infinite loop.
29250 2013-05-16 Marek Polacek <polacek@redhat.com>
29252 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29254 2013-05-15 Leif Ekblad <leif@rdos.net>
29256 * config/i386/i386.c (ix86_decompose_address): Use
29257 DEFAULT_TLS_SEG_REG to access TLS segment register.
29258 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29259 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29260 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29262 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29265 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29266 sibling calls to functions that would normally be lazily bound,
29267 unless $gp is call-clobbered.
29269 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29271 * config/i386/i386.c (ix86_option_override_internal): Update
29272 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29273 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29274 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29275 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29277 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29279 2013-05-15 Andreas Schwab <schwab@suse.de>
29281 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29282 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29285 2013-05-15 Teresa Johnson <tejohnson@google.com>
29287 * loop-unroll.c (report_unroll_peel): Check decision before
29288 emitting unroll/peel message.
29290 2013-05-15 Teresa Johnson <tejohnson@google.com>
29292 * function.h (has_bb_partition): New rtl_data flag.
29293 (bb_reorder_complete): Ditto.
29294 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29295 instead of flag_reorder_blocks_and_partition.
29296 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29297 with some enhancements.
29298 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29299 * bb-reorder.c (connect_traces): Check for has_bb_partition
29300 instead of flag_reorder_blocks_and_partition.
29301 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29302 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29303 verify_hot_cold_block_grouping.
29304 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29306 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29309 * config/arm/predicates.md (call_insn_operand): New predicate.
29310 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29311 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29312 if insn is not a tail call.
29313 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29315 * config/arm/arm.h (enum reg_class): New caller save register class.
29316 (REG_CLASS_NAMES): Likewise.
29317 (REG_CLASS_CONTENTS): Likewise.
29318 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29321 2013-05-15 Richard Biener <rguenther@suse.de>
29323 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29324 of MSG_OPTIMIZED_LOCATIONS.
29325 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29326 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29328 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29329 of MSG_OPTIMIZED_LOCATIONS.
29330 (execute_vect_slp): Likewise.
29331 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29332 (vect_create_cond_for_alias_checks): Likewise.
29333 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29334 (vect_recog_widen_mult_pattern): Likewise.
29335 (vect_recog_widen_sum_pattern): Likewise.
29336 (vect_recog_over_widening_pattern): Likewise.
29337 (vect_recog_widen_shift_pattern): Likewise.
29338 (vect_recog_vector_vector_shift_pattern): Likewise.
29339 (vect_recog_divmod_pattern): Likewise.
29340 (vect_recog_mixed_size_cond_pattern): Likewise.
29341 (vect_recog_bool_pattern): Likewise.
29342 (vect_pattern_recog_1): Likewise.
29344 2013-05-15 Martin Jambor <mjambor@suse.cz>
29346 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29347 non-functions to builtin_unreachable.
29348 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29349 correct when new direct edges were discovered.
29351 2013-05-15 Martin Jambor <mjambor@suse.cz>
29353 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29354 header, print symbol order instead of node uid, print more information
29355 about indirect edge targets.
29356 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29358 (ipa_make_edge_direct_to_target): Likewise.
29359 (remove_described_reference): Likewise.
29360 (propagate_controlled_uses): Likewise.
29361 (ipa_print_node_params): Also print symbol order.
29362 (ipcp_transform_function): Print symbol order instead of node uids.
29363 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29364 (cgraph_get_create_real_symbol_node): Likewise.
29365 * ipa-cp.c (print_lattice): Likewise.
29366 (print_all_lattices): Likewise.
29367 (determine_versionability): Likewise.
29368 (initialize_node_lattices): Likewise.
29369 (estimate_local_effects): Likewise.
29370 (update_profiling_info): Likewise.
29371 (create_specialized_node): Likewise.
29372 (perhaps_add_new_callers): Likewise.
29373 (decide_about_value): Likewise.
29374 (decide_whether_version_node): Likewise.
29375 (identify_dead_nodes): Likewise.
29376 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29377 (dump_inline_summary): Likewise.
29378 (estimate_node_size_and_time): Likewise.
29379 (inline_analyze_function): Likewise.
29380 * ipa-inline.c (report_inline_failed_reason): Likewise.
29381 (want_early_inline_function_p): Likewise.
29382 (edge_badness): Likewise.
29383 (update_edge_key): Likewise.
29384 (inline_small_functions): Likewise. Add dumping of order to two other
29386 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29387 instead of node uids.
29388 (propagate_pure_const): Likewise.
29389 (propagate_pure_const): Likewise.
29390 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29391 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29392 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29394 * tree-pretty-print.c (dump_function_header): Likewise.
29395 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29396 Print symbol order instead of node uids.
29398 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29400 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29401 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29403 2013-05-15 Richard Biener <rguenther@suse.de>
29405 PR tree-optimization/57275
29406 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29407 return value for fail to do runtime alias checks for gather loads.
29409 2013-05-15 Jan Hubicka <jh@suse.cz>
29413 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29414 weakrefs are not external.
29415 (lto_symtab_merge_decls): Fix thinko when dealing with
29416 non-lto_symtab decls.
29417 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29418 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29419 * varpool.c (dump_varpool_node): Dump more flags.
29421 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29423 * config/i386/i386.c (processor_alias_table): Add instruction
29424 FSGSBASE for AMD bdver3 architecture.
29426 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29428 * tree.c (warn_deprecated_use): Print file:line using locus color.
29429 * diagnostic.c (diagnostic_report_current_module): Print file:line
29430 and file:line:column using locus color.
29432 2013-05-14 Mike Stump <mikestump@comcast.net>
29434 * gdbinit.in: Add __null.
29436 2013-05-14 Mike Stump <mikestump@comcast.net>
29438 * recog.h: Rename struct recog_data to Recog_data.
29439 * recog.c: Likewise.
29440 * reload.c (can_reload_into): Likewise.
29441 * config/picochip/picochip.c: Likewise.
29443 2013-05-14 Mike Stump <mikestump@comcast.net>
29445 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29447 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29449 * resource.h (struct resources): Remove unch_memory member.
29450 (CLEAR_RESOURCE): Don't clear unch_memory.
29451 * resource.c (mark_referenced_resources): Don't set it.
29452 (mark_set_resources): Likewise.
29453 (mark_target_live_regs): Don't clear it.
29454 (init_resource_info): Likewise.
29455 * reorg.c (resource_conflicts_p): Don't compare it.
29456 (redundant_insn): Don't set it.
29458 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29460 * emit-rtl.c (next_label): Remove unused function.
29461 (skip_consecutive_labels, link_cc0_insns): Move to ...
29462 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29463 only place where these functions are used, and make them static.
29465 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29467 * fold-const.c (fold_negate_expr): Handle vectors.
29468 (fold_truth_not_expr): Make it static.
29469 (fold_invert_truthvalue): New static function.
29470 (invert_truthvalue_loc): Handle vectors. Do not call
29471 fold_truth_not_expr directly.
29472 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29473 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29474 (fold_comparison): Handle vector constants.
29475 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29476 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29477 * tree.h (fold_truth_not_expr): Remove declaration.
29479 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29481 * config/aarch64/aarch64-simd.md
29482 (aarch64_vcond_internal<mode>): Rename to...
29483 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29484 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29485 float modes. Clarify all iterator modes.
29486 (vcond<mode><mode>): Use new name for vcond expanders.
29487 (vcond<v_cmp_result><mode>): Likewise.
29488 (vcondu<mode><mode>: Likewise.
29489 * config/aarch64/iterators.md (VDQF_COND): New.
29491 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29494 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29495 variable for the shift amount. Check that we shift by non-negative
29498 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29501 * config/arm/arm.h (EPILOGUE_USES): Only return true
29502 for LR_REGNUM after epilogue_completed.
29504 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29506 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29507 is error_mark_node.
29509 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29512 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29513 and Solaris 11+/x86 with gld.
29514 * configure: Regenerate.
29516 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29518 * expmed.c (expand_shift_1): Canonicalize rotates by
29519 constant bitsize / 2 to bitsize - 1.
29520 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29521 case ROTATERT>: Likewise.
29524 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29526 * config/i386/i386.md (rotateinv): New code attr.
29527 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29528 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29529 roll $31, %eax, etc.
29531 2013-05-14 Richard Biener <rguenther@suse.de>
29533 PR middle-end/57235
29534 * tree-eh.c (sink_clobbers): Give up for successors with
29535 multiple predecessors and no virtual uses.
29537 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29539 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29540 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29542 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29544 PR middle-end/57251
29545 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29546 the case when both op0 and op1 have VOIDmode.
29548 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29550 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29551 in multiply-accumulate mode.
29553 2013-05-13 Guozhi Wei <carrot@google.com>
29555 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29557 2013-05-13 Kai Tietz <ktietz@redhat.com>
29560 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29561 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29562 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29563 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29564 (ix86_expand_prologue): Likewise.
29565 (ix86_expand_split_stack_prologue): Likewise.
29566 (legitimate_pic_address_disp_p): Likewise.
29567 (legitimize_pic_address): Likewise.
29568 (legitimize_tls_address): Likewise.
29569 (legitimize_pe_coff_symbol): Likewise.
29570 (output_pic_addr_const): Likewise.
29571 (construct_plt_address): Likewise.
29572 (ix86_expand_call): Likewise.
29573 (x86_output_mi_thunk): Likewise.
29574 (x86_function_profiler): Likewise.
29576 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29578 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29579 similar switch cases.
29580 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29581 (aarch64_simd_mov_to_<mode>low): Delete.
29582 (aarch64_simd_mov_to_<mode>high): Delete.
29583 (move_lo_quad_<mode>): Add w<-r alternative.
29584 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29585 (aarch64_simd_mov_from_*): Update type attribute.
29586 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29589 2013-05-13 Jan Hubicka <jh@suse.cz>
29591 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29592 * config/i386/i386.c (ix86_compute_frame_layout,
29593 ix86_expand_epilogue, emit_i387_cw_initialization,
29594 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29595 ix86_local_alignment): Fix use of size/speed predicates.
29597 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29599 PR tree-optimization/45216
29600 PR tree-optimization/57157
29601 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29602 the (-Y) & (B - 1) variant if OP is |.
29603 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29604 return shifted. Use (-op1) & (prec - 1) as other_amount
29605 instead of prec - op1.
29607 2013-05-13 Martin Jambor <mjambor@suse.cz>
29609 PR middle-end/42371
29610 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29611 (ipa_constant_data): New type.
29612 (ipa_jump_func): Use ipa_constant_data to hold information about
29613 constant jump functions.
29614 (ipa_get_jf_constant): Adjust to jump function type changes.
29615 (ipa_get_jf_constant_rdesc): New function.
29616 (ipa_param_descriptor): New field controlled_uses.
29617 (ipa_get_controlled_uses): New function.
29618 (ipa_set_controlled_uses): Likewise.
29619 * ipa-ref.h (ipa_find_reference): Declare.
29620 * ipa-prop.c (ipa_cst_ref_desc): New type.
29621 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29623 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29624 New parameter cs. Adjust all callers.
29625 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29626 (remove_described_reference): New function.
29627 (jfunc_rdesc_usable): Likewise.
29628 (try_make_edge_direct_simple_call): Decrement controlled use count,
29629 attempt to remove reference if it hits zero.
29630 (combine_controlled_uses_counters): New function.
29631 (propagate_controlled_uses): Likewise.
29632 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29633 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29634 (ipa_print_node_params): Print described use counter.
29635 (ipa_write_jump_function): Adjust to jump function type changes.
29636 (ipa_read_jump_function): New parameter CS, pass it to
29637 ipa_set_jf_constant. Adjust caller.
29638 (ipa_write_node_info): Stream controlled use count
29639 (ipa_read_node_info): Likewise.
29640 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29642 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29643 count. Remove cloning-added reference if it reaches zero.
29644 * ipa-ref.c (ipa_find_reference): New function.
29646 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29648 * config/i386/i386.c (processor_target_table): Modified default
29649 alignment values for AMD BD and BT architectures.
29651 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29653 * tree-vect-generic.c (uniform_vector_p): Move ...
29654 * tree.c (uniform_vector_p): ... here.
29655 * tree.h (uniform_vector_p): Declare it.
29656 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29659 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29661 PR tree-optimization/57230
29662 * tree-ssa-strlen.c (handle_char_store): Record length for
29663 array store from STRING_CST.
29665 PR tree-optimization/57230
29666 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29669 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29671 * config/epiphany/epiphany.c (epiphany_init): Check size of
29672 NUM_MODES_FOR_MODE_SWITCHING.
29673 (epiphany_expand_prologue):
29674 Remove CONFIG_REGNUM initial value handling code.
29675 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29676 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29677 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29678 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29679 Don't return 1 for FP_MODE_NONE.
29680 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29681 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29682 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29683 * config/epiphany/epiphany.md (save_config): New pattern.
29685 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29687 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29689 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29691 * config/i386/i386.md (memory): Handle sseishft1.
29692 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29693 (*vec_extractv2di_1): Ditto.
29695 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29697 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29700 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29702 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29703 Add mthumb/march=armv7-a multilib.
29704 Add mthumb/march=armv7-r multilib.
29705 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29707 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29709 * config/v850/t-rtems: Add more multilibs.
29711 2013-05-10 Richard Biener <rguenther@suse.de>
29713 PR tree-optimization/57214
29714 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29715 not propagate from SSA names that occur in abnormal PHI nodes.
29717 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29719 * stor-layout.c (element_precision): New function.
29720 * machmode.h (element_precision): Declare it.
29721 * tree.c (build_minus_one_cst): New function.
29722 (element_precision): Likewise.
29723 * tree.h (build_minus_one_cst): Declare new function.
29724 (element_precision): Likewise.
29725 * fold-const.c (operand_equal_p): Use element_precision.
29726 (fold_binary_loc): Handle vector types.
29727 * convert.c (convert_to_integer): Use element_precision.
29728 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29731 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29733 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29734 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29735 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29736 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29737 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29738 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29739 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29740 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29741 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29742 (Uuw8): New constraints.
29743 (Usb4): Move into alphabetical order.
29744 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29745 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29746 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29747 previously unnamed patterns.
29748 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29749 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29750 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29751 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29752 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29753 of specific lengths.
29755 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29757 * config/i386/i386.md (rotateinv): New code attr.
29758 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29759 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29760 roll $31, %eax, etc.
29762 PR tree-optimization/45216
29763 PR tree-optimization/57157
29764 * tree-ssa-forwprop.c (simplify_rotate): New function.
29765 (ssa_forward_propagate_and_combine): Call it.
29767 2013-05-10 Richard Biener <rguenther@suse.de>
29769 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29770 disable peeling when we version for aliasing.
29771 (vector_alignment_reachable_p): Honor explicit user alignment.
29772 (vect_supportable_dr_alignment): Likewise.
29773 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29774 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29775 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29776 then peeling to arrange for the cost-model check to come first.
29778 2013-05-10 Alan Modra <amodra@gmail.com>
29780 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29781 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29782 * configure: Regenerate.
29784 2013-05-10 Alan Modra <amodra@gmail.com>
29787 * varasm.c (default_elf_select_section): Move !DECL_P check..
29788 (get_named_section): ..to here before calling get_section_name.
29790 (default_section_type_flags): Add DECL_P check.
29791 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29792 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29794 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29796 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29797 When using gen_stack_adjust_str with a register offset, add a
29798 REG_FRAME_RELATED_EXPR note.
29800 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29802 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29803 (*vec_extractv4si_zext_mem): Ditto.
29804 (*vec_extractv2di): Add 0->x and x->x alternatives.
29805 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29806 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29808 2013-05-09 Jason Merrill <jason@redhat.com>
29810 N3639 C++1y VLA support
29811 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29814 * tree.c (build_constructor_va): New.
29815 * tree.h: Declare it.
29817 2013-05-09 Martin Jambor <mjambor@suse.cz>
29820 * gimple-fold.c (canonicalize_constructor_val): Call
29821 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29823 2013-05-09 Jan Hubicka <jh@suse.cz>
29824 Richard Biener <rguenther@suse.de>
29827 * symtab.c (symtab_make_decl_local): Do not add private names.
29829 2013-05-09 Jan Hubicka <jh@suse.cz>
29832 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29833 (unlink_from_assembler_name_hash): Likewise.
29834 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29835 symtab_unregister_node, symtab_initialize_asm_name_hash,
29836 change_decl_assembler_name): Update.
29838 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29840 * config/aarch64/aarch64.md: New movtf split.
29841 (*movtf_aarch64): Update.
29842 (aarch64_movdi_tilow): Handle TF modes and rename to
29843 aarch64_movdi_<mode>low.
29844 (aarch64_movdi_tihigh): Handle TF modes and rename to
29845 aarch64_movdi_<mode>high
29846 (aarch64_movtihigh_di): Handle TF modes and rename to
29847 aarch64_mov<mode>high_di
29848 (aarch64_movtilow_di): Handle TF modes and rename to
29849 aarch64_mov<mode>low_di
29850 (aarch64_movtilow_tilow): Remove spurious whitespace.
29851 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29853 (aarch64_print_operand): Update.
29855 2013-05-09 Alan Modra <amodra@gmail.com>
29857 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29859 * configure: Regenerate.
29861 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29863 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29864 splitter preparation statements.
29865 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29866 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29869 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29871 * gimple-ssa-strength-reduction.c (count_candidates): Change
29872 return value to int.
29873 (analyze_candidates_and_replace): Change type of length to int.
29875 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29877 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29878 (*vec_extract<mode>): Use VI12_128 mode iterator.
29879 (*vec_extract<mode>_mem): Ditto.
29880 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29883 2013-05-08 Diego Novillo <dnovillo@google.com>
29888 2012-08-17 Diego Novillo <dnovillo@google.com>
29891 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29892 * config.in: Regenerate.
29893 * configure: Regenerate.
29894 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29896 2013-05-08 Jan Hubicka <jh@suse.cz>
29899 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29900 * cgraph.h (symtab_node_base): Add unique_name.
29901 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29902 input_overwrite_node, input_varpool_node): Stream unique_name.
29903 * cgraphclones.c (cgraph_create_virtual_clone,
29904 cgraph_function_versioning): Set unique_name.
29905 * ipa.c (function_and_variable_visibility): Set unique_name.
29907 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29909 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29910 (alloc_cand_and_find_basis): Restrict conditional candidate
29911 processing to CAND_MULTs.
29913 2013-05-08 Jan Hubicka <jh@suse.cz>
29916 lto-symtab.c (lto_symtab_symbol_p): New function.
29917 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29918 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29919 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29920 Skip static symbols.
29922 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29924 PR tree-optimization/57200
29925 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29926 Only call inform if the preceding warning_at returns true.
29928 2013-05-07 Han Shen <shenhan@google.com>
29930 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29931 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29932 * common.opt (fstack-protector-strong): New option.
29933 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29934 * doc/invoke.texi (Optimization Options): Document
29935 "-fstack-protector-strong".
29936 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29938 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29940 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29942 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29944 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29945 it is not lhs of the insn.
29946 (setup_reg_equiv): Remove insn having equiv memory which it is not
29948 * lra-constraints.c (process_address): Try to improve generation
29949 code for address base + disp.
29950 (lra_constraints): Make correct the code for checking insn setting
29951 up backward equivalence. Remove insn only if it is in the init
29953 * lra-eliminations.c (update_reg_eliminate): Change return value.
29954 (lra_eliminate): Use the result.
29956 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29958 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29959 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29960 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29961 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29962 register target operands.
29963 (*vec_extractv8hi_sse2): New pattern.
29964 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29965 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29966 (*vec_extract<mode>_mem): New insn and split pattern.
29968 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29970 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29971 (TARGET_ASAN_SHADOW_OFFSET): Define.
29972 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29973 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29975 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29977 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29978 (incr_vec_index): Return -1 if increment not found.
29979 (create_add_on_incoming_edge): Assert if increment not found.
29980 (record_increment): Limit number of increments recorded.
29981 (all_phi_incrs_profitable): Return false if an increment not found.
29982 (replace_profitable_candidates): Don't process increments that were
29984 (analyze_candidates_and_replace): Limit size of incr_vec.
29986 2013-05-07 Richard Biener <rguenther@suse.de>
29988 * calls.c (special_function_p): setjmp-like functions are leaf.
29989 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29990 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29992 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29994 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29995 (aarch64_simd_mov<mode>): New expander.
29996 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29997 (aarch64_simd_mov_to_<mode>high): Likewise.
29998 (aarch64_simd_mov_from_<mode>low): Likewise.
29999 (aarch64_simd_mov_from_<mode>high): Likewise.
30000 (aarch64_dup_lane<mode>): Update.
30001 (aarch64_dup_lanedi): New instruction pattern.
30002 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30003 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30005 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30007 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30008 (replace_mult_candidate): Remove unnecessary argument; remove
30009 unnecessary parameter from call to introduce_cast_before_cand.
30010 (replace_unconditional_candidate): Remove unnecessary parameter
30011 from call to replace_mult_candidate.
30012 (replace_conditional_candidate): Likewise.
30013 (insert_initializers): Use make_temp_ssa_name.
30014 (introduce_cast_before_cand): Remove unnecessary argument; use
30015 make_temp_ssa_name.
30016 (replace_one_candidate): Remove unnecessary argument; remove
30017 unnecessary parameter from calls to introduce_cast_before_cand.
30018 (replace_profitable_candidates): Remove unnecessary parameters
30019 from calls to replace_one_candidate.
30021 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30023 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30024 phi def as possibly hiding a basis for a CAND_ADD whose operands
30025 have been commuted in the analysis.
30026 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30028 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30030 * config/aarch64/aarch64.md
30031 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30032 shift value between 0-4.
30034 2013-05-07 Richard Biener <rguenther@suse.de>
30036 * double-int.h (rshift): New overload.
30037 * double-int.c (rshift): New function.
30038 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30039 (create_reference_ops_from_ref): Remove.
30040 (vn_reference_insert): Use shared ops for constructing the
30041 reference and copy it.
30043 2013-05-07 Richard Biener <rguenther@suse.de>
30045 PR middle-end/57190
30046 * tree-eh.c (sink_clobbers): Properly propagate
30047 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30049 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30051 PR tree-optimization/57149
30052 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30053 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30054 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30055 uninit_undefined_value_p instead of ssa_undefined_value_p.
30058 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30059 for modifier == EXPAND_INITIALIZER.
30061 2013-05-07 Anton Blanchard <anton@samba.org>
30063 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30064 for powerpc64 little endian.
30065 * configure: Regenerate.
30067 2013-05-06 Graham Stott <grahams@btinternet.com>
30069 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30070 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30071 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30072 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30074 2013-05-06 Graham Stott <grahams@btinternet.com>
30076 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30077 codes which allow non-lvalues.
30079 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30081 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30082 components are all 1s.
30083 (integer_minus_onep): New function.
30084 * tree.h (integer_minus_onep): Declare it.
30085 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30086 integer_minus_onep instead of integer_all_onesp.
30088 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30091 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30092 variations of these patterns.
30094 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30096 * config/i386/i386.md (isa): Add x64_sse4 member.
30097 (enabled): Handle x64_sse4.
30098 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30099 instruction for 64bit SSE4_1 targets. Update insn attributes.
30100 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30101 instruction for SSE4_1 targets. Update insn attributes.
30102 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30103 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30104 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30106 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30107 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30108 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30110 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30113 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30115 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30117 * final.c (do_assembler_dialects): Don't handle curly braces and
30118 vertical bar escaped by % as dialect delimiters.
30119 (output_asm_insn): Print curly braces and vertical bar if escaped
30120 by % and ASSEMBLER_DIALECT defined.
30121 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30122 * doc/tm.texi: Regenerated.
30124 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30126 * config/mips/mips.c: Include tree-pass.h.
30127 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30128 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30129 (pass_mips_machine_reorg2): New machine specific pass.
30130 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30131 (mips_option_override): Register the new pass.
30132 * rtl.h (cleanup_barriers): Remove prototype.
30133 (dbr_schedule): Likewise.
30134 * jump.c (cleanup_barriers): Make static.
30135 * reorg.c (dbr_schedule): Likewise.
30137 2013-05-06 Richard Biener <rguenther@suse.de>
30139 PR tree-optimization/57185
30140 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30141 SSA names properly.
30143 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30146 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30147 between "first_arg" and "insn", not "last" and "insn".
30149 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30151 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30152 (find_candidates_in_block): Re-enable slsr_process_phi.
30153 (create_phi_basis): Fix double counting of candidate adjustment.
30155 2013-05-06 Richard Biener <rguenther@suse.de>
30157 PR middle-end/57147
30158 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30159 the edge is also fallthru, preserve it and just clear the
30161 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30162 also complex, preserve that and just clear the fallthru flag.
30163 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30164 update virtual operands.
30166 2013-05-06 Alan Modra <amodra@gmail.com>
30168 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30169 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30170 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30171 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30172 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30173 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30175 2013-05-06 Alan Modra <amodra@gmail.com>
30177 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30178 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30179 (DEFAULT_ASM_ENDIAN): Define.
30180 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30181 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30182 Update -K PIC clause from sysv4.h.
30183 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30184 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30186 2013-05-06 Alan Modra <amodra@gmail.com>
30188 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30189 twice for little-endian.
30190 (ashrdi3_no_power, ashrdi3): Support little-endian.
30192 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30195 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30196 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30198 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30199 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30200 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30203 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30204 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30206 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30207 * config/pa/pa.opt: Make mbig-switch a no-op.
30208 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30209 (CASE_VECTOR_MODE): Always return SImode.
30210 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30211 for the !TARGET_BIG_SWITCH case.
30212 * config/pa/pa-linux.h: Likewise.
30213 * config/pa/pa-openbsd.h: Likewise.
30214 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30215 * config/pa/pa.md (short_jump): Remove define_insn.
30216 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30217 (casesi0): Remove define_insn.
30218 (type): Remove btable_branch.
30219 (pa_combine_type): Likewise.
30220 (in_nullified_branch_delay): Likewise.
30221 (in_call_delay): Likewise.
30222 (define_delay): Likewise.
30223 (define_insn_reservation "Z3"): Likewise.
30224 (define_insn_reservation "Z4"): Likewise.
30225 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30226 (pa_adjust_insn_length): Remove adjustment for btable branches.
30227 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30230 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30232 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30233 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30234 Add m->r,x alternatives.
30235 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30236 splitters using SWI48x mode iterator.
30237 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30238 TARGET_64BIT. Add m->x alternative.
30239 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30240 Add o->x alternative. Enable for TARGET_SSE.
30241 (sse_storeq): Remove expander.
30242 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30243 with memory input operand.
30244 (*vec_extractv2di_1 splitter): New.
30245 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30246 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30248 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30250 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30251 (INT_LOWPART): Delete.
30252 (extract_MB): Adjust.
30253 (extract_ME): Adjust.
30254 (print_operand): Adjust.
30256 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30258 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30259 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30260 (reg_or_logical_cint_operand, easy_fp_constant,
30261 logical_const_operand): Delete "CONST_DOUBLE" case.
30262 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30263 "HOST_BITS_PER_WIDE_INT == 64" test.
30264 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30265 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30266 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30267 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30269 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30270 CONST_DOUBLE DImode/VOIDmode case.
30271 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30272 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30273 CONST_DOUBLE VOIDmode case.
30274 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30275 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30276 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30277 Delete CONST_DOUBLE case.
30278 (splitters for mov FMOVE64 const_double): Delete
30279 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30280 "HOST_BITS_PER_WIDE_INT >= 64" test.
30281 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30283 (mov DI const_double): Delete.
30285 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30287 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30288 on op shows all bits zero in mode of a lowpart subreg, return zero.
30290 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30293 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30294 to save TFmode registers and DImode to save TImode registers for
30295 caller save operations.
30296 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30297 mark being partially clobbered since they only use the first
30300 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30301 and TDmode only use the upper 64-bits of each VSX register.
30303 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30305 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30306 (find_candidates_in_block): Disable slsr_process_phi.
30308 2013-05-03 Guozhi Wei <carrot@google.com>
30310 * coverage.c (coverage_obj_init): Move the construction of gcov
30312 (build_init_ctor): ... here.
30314 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30316 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30317 (slsr_cand_d): Redefine def_phi.
30318 (stride_status, phi_adjust_status, count_phis_status): New enums.
30319 (find_phi_def): New.
30320 (find_basis_for_base_expr): New.
30321 (find_basis_for_candidate): Handle hidden bases.
30322 (alloc_cand_and_find_basis): Handle phi candidates.
30323 (slsr_process_phi): New.
30324 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30325 (create_mul_imm_cand): Likewise.
30326 (create_add_ssa_cand): Exclude phi base candidates.
30327 (create_add_imm_cand): Likewise.
30328 (slsr_process_cast): Likewise.
30329 (slsr_process_copy): Likewise.
30330 (find_candidates_in_block): Handle phi candidates.
30331 (dump_candidate): Likewise.
30332 (unconditional_cands): Delete.
30333 (unconditional_cands_with_known_stride_p): Delete.
30334 (phi_dependent_cand_p): New.
30335 (cand_increment): Handle phi-dependent candidates.
30336 (replace_dependent): Delete.
30337 (replace_mult_candidate): New.
30338 (replace_unconditional_candidate): New.
30339 (incr_vec_index): Move to avoid forward reference.
30340 (create_add_on_incoming_edge): New.
30341 (create_phi_basis): New.
30342 (replace_dependents): Delete.
30343 (replace_conditional_candidate): New.
30344 (phi_add_costs): New.
30345 (replace_uncond_cands_and_profitable_phis): New.
30346 (record_increment): Handle phi adjustments.
30347 (record_phi_increments): New.
30348 (record_increments): Handle phi adjustments.
30349 (phi_incr_cost): New.
30350 (lowest_cost_path): Handle phis.
30351 (total_savings): Likewise.
30352 (analyze_increments): Likewise.
30353 (ncd_with_phi): New.
30354 (ncd_of_cand_and_phis): New.
30355 (nearest_common_dominator_for_cands): Handle phi increments.
30356 (all_phi_incrs_profitable): New.
30357 (replace_profitable_candidates): Handle phi-dependent candidates.
30358 (analyze_candidates_and_replace): Likewise.
30360 2013-05-03 Teresa Johnson <tejohnson@google.com>
30363 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30364 do not exceed REG_BR_PROB_BASE.
30366 2013-05-03 Jeff Law <law@redhat.com>
30368 PR tree-optimization/57144
30369 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30370 operand of the condition will bit into the new type when eliminating
30371 a cast feeding a condition.
30373 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30375 PR rtl-optimization/57130
30376 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30377 of COMPARE as in_code to the recursive call if needed.
30379 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30381 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30382 (enabled): Handle new members.
30383 * config/i386/sse.md (*vec_concatv2si): Merge from
30384 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30385 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30387 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30389 PR tree-optimization/57027
30390 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30391 for fnms opportunity, check we got the prerequisite kind
30392 of tree / gimple before using accessor functions.
30394 2013-05-03 Richard Biener <rguenther@suse.de>
30396 * double-int.h (lshift): New overload without precision
30397 and arith argument.
30398 (operator *=, operator +=, operator -=): Move ...
30399 * double-int.c (operator *=, operator +=, operator -=): ... here
30400 and implement more efficiently.
30401 (mul_double_with_sign): Remove.
30402 (lshift_double): Adjust to take unsinged shift argument, push
30403 dispatching code to callers.
30404 (mul_double_wide_with_sign): Add early out for callers that
30405 are not interested in high parts or overflow.
30406 (lshift): New function.
30407 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30408 dispatch code here.
30409 (lrotate, rrotate): Use logical shifts.
30410 * expr.c (get_inner_reference): Use lshift.
30411 * fixed-value.c (do_fixed_divide): Likewise.
30412 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30413 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30414 (indirect_refs_may_alias_p): Likewise.
30415 (stmt_kills_ref_p_1): Likewise.
30417 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30419 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30421 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30423 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30424 scalar form of FABD instruction.
30426 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30428 * lra-constraints.c (process_alt_operands): Add checking alt
30429 number to choose the best alternative.
30431 2013-05-02 Richard Biener <rguenther@suse.de>
30433 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30434 bitmap and its handling.
30435 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30437 2013-05-02 Richard Biener <rguenther@suse.de>
30439 PR middle-end/57140
30440 * tree-inline.c (copy_loops): Properly handle removed loops.
30441 (copy_cfg_body): Mark destination loops for fixup if source
30442 loops needed fixup.
30444 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30447 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30448 generating simple_return for naked functions.
30450 2013-05-02 Martin Jambor <mjambor@suse.cz>
30452 PR middle-end/56988
30453 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30454 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30456 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30457 ipa_agg_replacement_value structures.
30458 (known_aggs_to_agg_replacement_list): Likewise.
30459 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30460 (read_agg_replacement_chain): Likewise.
30461 (ipcp_transform_function): Also check that by_ref flags match.
30463 2013-05-02 Richard Biener <rguenther@suse.de>
30465 * graphds.h (struct graph): Add obstack member.
30466 * graphds.c (new_graph): Initialize obstack and allocate
30468 (add_edge): Allocate edge from the obstack.
30469 (free_graph): Free the obstack instead of all edges and vertices.
30471 2013-05-02 Teresa Johnson <tejohnson@google.com>
30473 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30475 * cfg.c (update_bb_profile_for_threading): Ditto.
30476 * tree-inline.c (copy_bb): Ditto.
30477 (copy_edges_for_bb): Ditto.
30478 (initialize_cfun): Ditto.
30479 (copy_cfg_body): Ditto.
30480 (expand_call_inline): Ditto.
30481 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30482 (estimate_node_size_and_time): Ditto.
30483 (inline_merge_summary): Ditto.
30484 * cgraphclones.c (cgraph_clone_edge): Ditto.
30485 (cgraph_clone_node): Ditto.
30486 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30487 (compute_trg_info): Ditto.
30489 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30491 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30492 S reg when fp attribute set.
30493 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30495 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30497 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30499 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30500 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30501 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30503 2013-05-02 Richard Biener <rguenther@suse.de>
30505 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30506 (struct instantiate_cache_entry): New type.
30507 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30508 (struct instantiate_cache_type): New type.
30509 (set_instantiated_value, get_instantiated_value): Remove.
30510 (get_instantiated_value_entry): New function.
30511 (instantiate_scev_name): Use the new cache and adjust.
30512 (instantiate_scev_poly): Adjust.
30513 (instantiate_scev_binary): Likewise.
30514 (instantiate_array_ref): Likewise.
30515 (instantiate_scev_convert): Likewise.
30516 (instantiate_scev_not): Likewise.
30517 (instantiate_scev_3): Likewise.
30518 (instantiate_scev_2): Likewise.
30519 (instantiate_scev_r): Likewise.
30520 (instantiate_scev): Likewise.
30521 (resolve_mixers): Likewise.
30523 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30526 * lra-constraints.c (best_small_class_operands_num): Remove.
30527 (process_alt_operands): Remove small_class_operands_num. Take
30528 small classes operands into losers and only if the operand is not
30529 matched. Modify debugging output.
30530 (curr_insn_transform): Remove best_small_class_operands_num.
30533 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30535 * config/aarch64/aarch64-builtins.c
30536 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30537 * config/aarch64/aarch64-simd-builtins.def
30538 (reduc_splus_): Add new modes.
30539 (reduc_uplus_): New.
30540 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30541 (reduc_uplus_v4sf): Likewise.
30542 (reduc_splus_v4sf): Likewise.
30543 (aarch64_addv<mode>): Likewise.
30544 (reduc_uplus_<mode>): Likewise.
30545 (reduc_splus_<mode>): Likewise.
30546 (aarch64_addvv2di): Likewise.
30547 (reduc_uplus_v2di): Likewise.
30548 (reduc_splus_v2di): Likewise.
30549 (aarch64_addvv2si): Likewise.
30550 (reduc_uplus_v2si): Likewise.
30551 (reduc_splus_v2si): Likewise.
30552 (reduc_<sur>plus_<mode>): New.
30553 (reduc_<sur>plus_v2di): Likewise.
30554 (reduc_<sur>plus_v2si): Likewise.
30555 (reduc_<sur>plus_v4sf): Likewise.
30556 (aarch64_addpv4sf): Likewise.
30557 * config/aarch64/arm_neon.h
30558 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30559 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30560 add UNSPEC_SADDV, UNSPEC_UADDV.
30562 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30564 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30566 * config/aarch64/arm_neon.h
30567 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30569 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30571 * config/aarch64/aarch64-builtins
30572 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30574 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30576 * config/aarch64/aarch64-simd-builtins.def
30577 (reduc_smax_): New.
30578 (reduc_smin_): Likewise.
30579 (reduc_umax_): Likewise.
30580 (reduc_umin_): Likewise.
30581 (reduc_smax_nan_): Likewise.
30582 (reduc_smin_nan_): Likewise.
30585 (smax): Update for V2SF, V4SF and V2DF modes.
30588 (smin_nan): Likewise.
30589 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30590 (<su><maxmin><mode>3): ...This, refactor.
30591 (s<maxmin><mode>3): New.
30592 (<maxmin_uns><mode>3): Likewise.
30593 (reduc_<maxmin_uns>_<mode>): Refactor.
30594 (reduc_<maxmin_uns>_v4sf): Likewise.
30595 (reduc_<maxmin_uns>_v2si): Likewise.
30596 (aarch64_<fmaxmin><mode>: Remove.
30597 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30599 (vmin<q>_f<32,64>): Likewise.
30600 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30602 (su): Add mappings for smax, smin, umax, umin.
30604 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30605 (FMAXMIN): Rename as...
30606 (FMAXMIN_UNS): ...This.
30608 (fmaxminv): Likewise.
30609 (fmaxmin): Likewise.
30611 (maxmin_uns_op): Likewise.
30613 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30615 * config/aarch64/arm_neon.h
30616 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30617 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30618 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30620 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30622 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30623 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30625 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30627 * config/aarch64/aarch64-simd.md
30628 (vcond<mode>_internal): Handle special cases for constant masks.
30629 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30630 (vcondu<mode><mode>): Likewise.
30631 (vcond<v_cmp_result><mode>): New.
30633 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30635 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30636 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30637 * config/aarch64/aarch64-simd-builtins.def
30638 (cmeq): Update to BUILTIN_VALLDI.
30643 * config/aarch64/arm_neon.h
30644 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30645 to builtins or C as appropriate.
30647 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30649 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30651 (cmhi): Rename to...
30653 * config/aarch64/aarch64-simd.md
30654 (simd_mode): Add SF.
30655 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30656 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30657 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30658 (cstore<mode>_neg): ...This.
30659 * config/aarch64/iterators.md
30661 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30662 (COMPARISONS): New.
30663 (UCOMPARISONS): Likewise.
30664 (optab): Add missing comparisons.
30670 (VCMP_S): Likewise.
30671 (VCMP_U): Likewise.
30672 (V_cmp_result): Add DF, SF modes.
30673 (v_cmp_result): Likewise.
30675 (vmtype): Likewise.
30676 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30678 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30680 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30681 define_insn to define_insn_and_split.
30682 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30683 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30684 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30685 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30686 (thumb2_negscc): Likewise.
30688 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30690 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30692 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30694 * config/arm/thumb2.md: Remove trailing whitespaces.
30696 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30698 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30699 Use gen_int_mode rather than GEN_INT.
30701 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30703 * value-prof.c (stream_in_histogram_value): Remove the strayed
30706 2013-04-30 Richard Biener <rguenther@suse.de>
30708 PR middle-end/57122
30709 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30711 2013-04-30 Richard Biener <rguenther@suse.de>
30713 PR middle-end/57107
30714 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30716 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30718 PR rtl-optimization/56957
30719 PR rtl-optimization/57105
30720 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30721 variable. Use just INSN_UID for determining whether an insn
30722 should be only disconnected from the insn stream.
30723 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30725 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30727 PR tree-optimization/57104
30728 * tsan.c (instrument_expr): Don't instrument accesses to
30729 DECL_HARD_REGISTER VAR_DECLs.
30731 2013-04-30 Richard Biener <rguenther@suse.de>
30733 * function.h (loops_for_fn): New inline function.
30734 (set_loops_for_fn): Likewise.
30735 * cfgloop.h (place_new_loop): Add struct function parameter.
30736 (get_loop): Likewise.
30737 (get_loops): Likewise.
30738 (number_of_loops): Likewise.
30739 (fel_next): Adjust.
30740 (fel_init): Likewise.
30741 * cfg.c (get_loop_copy): Adjust.
30742 * cfgloop.c (flow_loops_dump): Likewise.
30743 (record_loop_exits): Likewise.
30744 (verify_loop_structure): Likewise.
30745 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30746 (estimate_reg_pressure_cost): Likewise.
30747 (mark_loop_exit_edges): Likewise.
30748 * cfgloopmanip.c (place_new_loop): Likewise.
30749 (add_loop): Likewise.
30750 (duplicate_loop): Likewise.
30751 * graph.c (draw_cfg_nodes): Likewise.
30752 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30753 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30754 (extract_affine_chrec): Likewise.
30755 (build_scop_iteration_domain): Likewise.
30756 * graphite.c (graphite_initialize): Likewise.
30757 * ira-build.c (create_loop_tree_nodes): Likewise.
30758 (more_one_region_p): Likewise.
30759 (rebuild_regno_allocno_maps): Likewise.
30760 (mark_loops_for_removal): Likewise.
30761 (mark_all_loops_for_removal): Likewise.
30762 (remove_unnecessary_regions): Likewise.
30763 (ira_build): Likewise.
30764 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30765 * loop-init.c (fix_loop_structure): Likewise.
30766 (gate_rtl_move_loop_invariants): Likewise.
30767 (gate_rtl_unswitch): Likewise.
30768 (gate_rtl_unroll_and_peel_loops): Likewise.
30769 (rtl_doloop): Likewise.
30770 * lto-streamer-in.c (input_cfg): Likewise.
30771 * lto-streamer-out.c (output_cfg): Likewise.
30772 * modulo-sched.c (sms_schedule): Likewise.
30773 * predict.c (tree_estimate_probability): Likewise.
30774 (tree_estimate_probability_driver): Likewise.
30775 (estimate_loops): Likewise.
30776 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30777 (move_sese_region_to_fn): Likewise.
30778 (debug_loop_num): Likewise.
30779 * tree-chrec.c (chrec_evaluate): Likewise.
30780 (hide_evolution_in_other_loops_than_loop): Likewise.
30781 (chrec_component_in_loop_num): Likewise.
30782 (reset_evolution_in_loop): Likewise.
30783 (evolution_function_is_invariant_rec_p): Likewise.
30784 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30785 * tree-inline.c (copy_loops): Likewise.
30786 (copy_cfg_body): Likewise.
30787 (tree_function_versioning): Likewise.
30788 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30789 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30791 (add_to_evolution_1): Likewise.
30792 (scev_const_prop): Likewise.
30793 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30794 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30795 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30796 (tree_ssa_lim_initialize): Likewise.
30797 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30798 (verify_loop_closed_ssa): Likewise.
30799 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30800 (tree_ssa_loop_im): Likewise.
30801 (tree_ssa_loop_unswitch): Likewise.
30802 (tree_vectorize): Likewise.
30803 (check_data_deps): Likewise.
30804 (tree_ssa_loop_ivcanon): Likewise.
30805 (tree_ssa_loop_bounds): Likewise.
30806 (tree_complete_unroll): Likewise.
30807 (tree_complete_unroll_inner): Likewise.
30808 (tree_parallelize_loops): Likewise.
30809 (tree_ssa_loop_prefetch): Likewise.
30810 (tree_ssa_loop_ivopts): Likewise.
30811 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30812 * tree-vectorizer.c (vectorize_loops): Likewise.
30814 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30816 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30817 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30818 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30819 with EABI_LINK_SPEC.
30821 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30824 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30827 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30830 * lra-constraints.c (process_alt_operands): Discourage a bit more
30831 using memory for pseudos. Print cost dump for alternatives.
30832 Modify cost values for conflicts with early clobbers.
30833 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30835 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30838 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30840 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30842 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30843 from/to S register.
30844 (movdi_aarch64): Support LDR/STR from/to D register.
30846 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30848 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30849 or higher by default.
30851 2013-04-29 Richard Biener <rguenther@suse.de>
30853 PR middle-end/57075
30854 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30855 even if not adding abnormal edges for calls that can make
30858 2013-04-29 Richard Biener <rguenther@suse.de>
30860 PR middle-end/57103
30861 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30863 (move_stmt_r): Remove redundant checking.
30865 2013-04-29 Teresa Johnson <tejohnson@google.com>
30868 * basic-block.h (apply_scale): New function.
30869 (apply_probability): Use apply_scale.
30870 * gimple-streamer-in.c (input_bb): Ditto.
30871 * lto-streamer-in.c (input_cfg): Ditto.
30872 * lto-cgraph.c (merge_profile_summaries): Ditto.
30873 * tree-optimize.c (execute_fixup_cfg): Ditto.
30874 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30875 (copy_edges_for_bb): Ditto.
30876 (copy_cfg_body): Ditto.
30878 2013-04-29 Tom de Vries <tom@codesourcery.com>
30880 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30881 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30882 (tail_merge_optimize): Handle current_loops == NULL.
30884 2013-04-26 Jeff Law <law@redhat.com>
30886 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30887 (simplify_cond_using_ranges): Generalize code to simplify
30888 COND_EXPRs where one argument is a constant and the other
30889 is an SSA_NAME created by an integral type conversion.
30891 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30893 * config/arm/arm.md (store_minmaxsi): Use only when
30894 optimize_insn_for_size_p.
30896 2013-04-29 Christian Bruel <christian.bruel@st.com>
30899 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30901 2013-04-29 Richard Biener <rguenther@suse.de>
30903 PR middle-end/57089
30904 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30905 loop tree make sure to schedule a fixup for the child as well.
30906 (expand_omp_for_generic): Properly add loops.
30907 (expand_omp_for_static_nochunk): Likewise.
30908 (expand_omp_for_static_chunk): Likewise.
30909 (expand_omp_for): For the degenerate case fixup loops.
30910 (expand_omp_sections): Fix default bb placement in loops.
30911 (expand_omp_atomic_pipeline): Properly add loops.
30913 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30915 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30917 2013-04-29 Tom de Vries <tom@codesourcery.com>
30919 * tree-ssa-tail-merge.c: Update header comment.
30921 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30923 * config/aarch64/arm_neon.h
30924 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30925 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30926 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30927 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30928 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30929 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30930 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30931 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30933 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30935 * config/aarch64/aarch64-simd.md
30936 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30937 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30938 fix_trunc, fixuns_trunc.
30939 (ftrunc<VDQF:mode>2): New.
30940 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30941 (fix_trunc_optab): New.
30943 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30945 * config/aarch64/aarch64-builtins.c
30946 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30947 iceilf, lround, iroundf.
30949 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30952 * config/i386/i386.h (enum ix86_tune_indices)
30953 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30954 New, split from X86_TUNE_INTER_UNIT_MOVES.
30955 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30956 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30957 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30958 (TARGET_INTER_UNIT_MOVES): Remove.
30959 * config/i386/i386.c (initial_ix86_tune_features): Update.
30960 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30961 (ix86_expand_convert_uns_didf_sse): Use
30962 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30963 (ix86_expand_vector_init_one_nonzero): Ditto.
30964 (ix86_expand_vector_init_interleave): Ditto.
30965 (inline_secondary_memory_needed): Return true for moves from SSE class
30966 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30967 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30968 * config/i386/constraints.md (Yi, Ym): Depend on
30969 TARGET_INTER_UNIT_MOVES_TO_VEC.
30970 (Yj, Yn): New constraints.
30971 * config/i386/i386.md (*movdi_internal): Change constraints of
30972 operand 1 from Yi to Yj and from Ym to Yn.
30973 (*movsi_internal): Ditto.
30974 (*movdf_internal): Ditto.
30975 (*movsf_internal): Ditto.
30976 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30977 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30978 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30979 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30980 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30981 * config/i386/sse.md (movdi_to_sse): Ditto.
30982 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30983 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30984 TARGET_INTER_UNIT_MOVES.
30985 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30986 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30987 instead of TARGET_INTER_UNIT_MOVES.
30988 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30989 operand 1 from Yi to Yj and from Ym to Yn.
30991 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30993 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30994 (float_truncate_hi_): Likewise.
30995 (float_extend_lo_): Likewise.
30996 (float_truncate_lo_): Likewise.
30997 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30998 (aarch64_float_extend_lo_v2df): Likewise.
30999 (vec_unpacks_hi_v4sf): Likewise.
31000 (aarch64_float_truncate_lo_v2sf): Likewise.
31001 (aarch64_float_truncate_hi_v4sf): Likewise.
31002 (vec_pack_trunc_v2df): Likewise.
31003 (vec_pack_trunc_df): Likewise.
31005 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31007 * config/aarch64/aarch64-builtins.c
31008 (aarch64_fold_builtin): Fold float conversions.
31009 * config/aarch64/aarch64-simd-builtins.def
31010 (floatv2si, floatv4si, floatv2di): New.
31011 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31012 * config/aarch64/aarch64-simd.md
31013 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31014 * config/aarch64/iterators.md (FLOATUORS): New.
31015 (optab): Add float, floatuns.
31016 (su_optab): Likewise.
31018 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31020 * config/aarch64/aarch64-builtins.c
31021 (aarch64_builtin_vectorized_function): Use new names for
31023 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31024 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31025 (fcvtzu): Split as...
31026 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31027 (fcvtas): Split as...
31028 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31029 (fcvtau): Split as...
31030 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31031 (fcvtps): Split as...
31032 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31033 (fcvtpu): Split as...
31034 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31035 (fcvtms): Split as...
31036 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31037 (fcvtmu): Split as...
31038 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31039 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31040 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31041 (lfrintnusf, lfrintnudf): Likewise.
31042 * config/aarch64/aarch64-simd.md
31043 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31045 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31046 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31047 (fcvt_pattern): Likewise.
31049 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31051 * config/aarch64/aarch64-simd.md
31052 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31053 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31055 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31057 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31058 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31059 (vrnd<a,m,n,p>_f32): Implement using builtins.
31060 (vrnd<i,x><q>_f<32, 64>): New.
31062 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31064 * config/aarch64/aarch64-builtins.c
31065 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31066 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31067 (frintz): Rename to...
31069 (frintp): Rename to...
31071 (frintm): Rename to...
31073 (frinti): Rename to...
31074 (nearbyint): ...this.
31075 (frintx): Rename to...
31077 (frinta): Rename to...
31079 * config/aarch64/aarch64-simd.md
31080 (aarch64_frint<frint_suffix><mode>): Delete.
31081 (<frint_pattern><mode>2): Convert to insn.
31082 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31083 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31084 (frint_pattern): Likewise.
31085 (frint_suffix): Likewise.
31087 2013-04-29 Richard Biener <rguenther@suse.de>
31089 PR tree-optimization/57081
31090 * loop-init.c: Include tree-flow.h.
31091 (loop_optimizer_finalize): Free number of iteration estimates.
31092 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31094 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31096 PR tree-optimization/57083
31097 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31098 non-singleton shift count range, zero extend low_bound for uns case.
31100 * config/i386/predicates.md (general_vector_operand): New predicate.
31101 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31102 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31103 if they aren't nonimmediate operands. If their original values
31104 satisfy const_vector_equal_evenodd_p, don't shift them.
31105 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31106 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31107 if not nonimmediate_operand.
31108 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31109 instead of register_operand.
31110 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31112 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31114 * stor-layout.c (finalize_size_functions): Allocate a structure and
31115 reset cfun before dumping the functions.
31117 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31119 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31122 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31123 use xop_pmacsdqh if uns_p.
31124 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31125 the immediate rotate count.
31127 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31129 * rtl.h (struct rtx_def): Add comment for field jump.
31130 (LRA_SUBREG_P): New macro.
31131 * recog.c (register_operand): Check LRA_SUBREG_P.
31132 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31134 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31135 (lra_final_code_change): Skip subreg change for operators.
31136 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31137 if there are no operand changes.
31138 * lra-constraints.c (curr_insn_set): New.
31139 (match_reload): Set LRA_SUBREG_P.
31140 (emit_spill_move): Ditto.
31141 (check_and_process_move): Use curr_insn_set. Process only single
31142 set insns. Don't initialize sec_mem_p and change_p.
31143 (simplify_operand_subreg): Use LRA_SUBREG_P.
31144 (reg_in_class_p): New function.
31145 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31146 of #ifdef. Add code to remove cycling.
31147 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31148 non-null disp. Reload inner instead of disp when base and index
31149 are null. Try to put lo_sum into register.
31150 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31151 (check_and_process_move): Move code for move cost check to
31152 simple_move_p. Remove equiv_substitution.
31153 (simple_move_p): New function.
31154 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31155 curr_insn_set. Call check_and_process_move only for single set
31156 insns. Use the new function. Move call of check_and_process_move
31157 after operand equiv substitution and address process.
31159 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31162 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31163 with nonlocal goto receivers or returns twice calls, ignore
31164 unininitialized values from abnormal edges to nl goto receiver
31165 or returns twice call.
31167 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31169 PR tree-optimization/57051
31170 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31171 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31174 2013-04-26 Richard Biener <rguenther@suse.de>
31176 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31177 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31178 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31179 (fixup_loop_arrays_after_move): New function.
31180 (move_sese_region_to_fn): Properly outline the loop tree parts
31181 of the SESE region.
31183 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31185 * config/i386/i386.md (type, unit): Fix long lines.
31187 2013-04-26 Richard Biener <rguenther@suse.de>
31189 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31190 (lto-streamer-out.o): Likewise.
31191 * cfgloop.c (init_loops_structure): Export, add struct function
31192 argument and adjust.
31193 (flow_loops_find): Adjust.
31194 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31195 (init_loops_structure): Declare.
31196 * lto-streamer-in.c: Include cfgloop.h.
31197 (input_cfg): Input the loop tree.
31198 * lto-streamer-out.c: Include cfgloop.h.
31199 (output_cfg): Output the loop tree.
31200 (output_struct_function_base): Do not drop PROP_loops.
31202 2013-03-26 Richard Biener <rguenther@suse.de>
31204 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31205 (pass_build_cfg): Provide PROP_loops.
31206 (move_sese_region_to_fn): Remove loops that are outlined into fn
31208 * tree-inline.c: Include cfgloop.h.
31209 (initialize_cfun): Do not drop PROP_loops.
31210 (copy_loops): New function.
31211 (copy_cfg_body): Copy loop structure.
31212 (tree_function_versioning): Initialize destination loop tree.
31213 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31214 (pass_parallelize_loops): Do IL verification.
31215 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31216 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31217 the CFG make sure we fixup loops as well.
31218 * tree-ssa-tail-merge.c: Include cfgloop.h.
31219 (replace_block_by): When merging loop latches mark loops for fixup.
31220 * lto-streamer-out.c (output_struct_function_base): Drop
31221 PROP_loops for now.
31222 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31223 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31224 * ipa-split.c: Include cfgloop.h.
31225 (split_function): Add the new return block to the loop tree root.
31226 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31227 whether we have removed the forwarder block.
31228 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31229 * cfgloop.h (place_new_loop): Declare.
31230 * cfgloopmanip.c (place_new_loop): Export.
31231 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31232 (tree-switch-conversion.o): Likewise.
31233 (tree-complex.o): Likewise.
31234 (tree-inline.o): Likewise.
31235 (tree-ssa-tailmerge.o): Likewise.
31236 (ipa-split.o): Likewise.
31237 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31238 (tree-ssa-copy.o): Likewise.
31239 * tree-switch-conversion.c: Include cfgloop.h
31240 (process_switch): If we emit a bit-test cascade, schedule loops
31242 * tree-complex.c: Include cfgloop.h.
31243 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31244 * asan.c: Include cfgloop.h.
31245 (create_cond_insert_point): Properly add new basic-blocks to
31246 loops, schedule loop fixup.
31247 * cfgloop.c (verify_loop_structure): Check that looks are not
31249 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31251 (expand_omp_for_generic): Likewise.
31252 (expand_omp_sections): Likewise.
31253 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31254 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31255 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31256 is initialized, not when loops are present.
31257 * tree-parloops.c (parallelize_loops): Remove checking here.
31258 * passes.c (init_optimization_passes): Schedule a copy-propagation
31259 pass before complete unrolling of inner loops.
31261 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31263 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31264 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31265 (colorize_init): Add argument to _WIN32 version.
31266 * toplev.c: Include diagnostic-color.h.
31267 (process_options): Default to -fdiagnostics-color=auto if
31268 GCC_COLORS env var is in the environment.
31269 * common.opt (fdiagnostics-color=): Add Var and Init.
31270 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31271 env var is in the environment, the default is auto rather than never.
31273 * diagnostic.h (file_name_as_prefix): Add context argument.
31274 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31275 the string as locus.
31276 * langhooks.c (lhd_print_error_function): Adjust caller.
31278 2013-04-25 Lawrence Crowl <crowl@google.com>
31280 * var-tracking.c (shared_hash_def::htab):
31281 Change type to hash_table. Update dependent calls and types.
31283 2013-04-25 Lawrence Crowl <crowl@google.com>
31285 * Makefile.in: Update as needed below.
31287 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31288 Move declaration to after the type's method definitons.
31290 * attribs.c (htab_t scoped_attributes::attribute_hash):
31291 Change type to hash_table. Update dependent calls and types.
31293 * bitmap.c (htab_t bitmap_desc_hash):
31294 Change type to hash_table. Update dependent calls and types.
31296 * cselib.c (htab_t cselib_hash_table):
31297 Change type to hash_table. Update dependent calls and types.
31299 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31300 (hash_string_slot_node): Move implementation into lto-streamer.h
31301 struct string_slot_hasher.
31302 (eq_string_slot_node): Likewise.
31304 * data-streamer-out.c: Update output_block::string_hash_table
31305 dependent calls and types.
31307 * dwarf2cfi.c (htab_t trace_index):
31308 Change type to hash_table. Update dependent calls and types.
31310 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31311 Change type to hash_table. Update dependent calls and types.
31312 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31313 (htab_t optimize_external_refs::map): Likewise.
31314 (htab_t output_comp_unit::extern_map): Likewise.
31315 (htab_t output_comdat_type_unit::extern_map): Likewise.
31316 (htab_t output_macinfo::macinfo_htab): Likewise.
31317 (htab_t optimize_location_lists::htab): Likewise.
31318 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31320 * except.c (htab_t ehspec_hash_type):
31321 Change type to hash_table. Update dependent calls and types.
31322 (assign_filter_values::ttypes): Likewise.
31323 (assign_filter_values::ehspec): Likewise.
31324 (sjlj_assign_call_site_values::ar_hash): Likewise.
31325 (convert_to_eh_region_ranges::ar_hash): Likewise.
31327 * gcse.c (htab_t pre_ldst_table):
31328 Change type to hash_table. Update dependent calls and types.
31330 * ggc-common.c (htab_t saving_htab):
31331 Change type to hash_table. Update dependent calls and types.
31332 (htab_t loc_hash): Likewise.
31333 (htab_t ptr_hash): Likewise.
31334 (call_count): Rename ggc_call_count.
31335 (call_alloc): Rename ggc_call_alloc.
31336 (loc_descriptor): Rename make_loc_descriptor.
31337 (add_statistics): Rename ggc_add_statistics.
31339 * ggc-common.c (saving_htab):
31340 Change type to hash_table. Update dependent calls and types.
31342 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31343 (push_gimplify_context): Likewise.
31344 (pop_gimplify_context): Likewise.
31345 (struct gimple_temp_hash_elt): Added.
31346 (struct gimplify_hasher): Likewise.
31347 (struct gimplify_ctx.temp_htab):
31348 Change type to hash_table. Update dependent calls and types.
31350 * gimple-fold.c: Include gimplify-ctx.h.
31352 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31353 Change type to hash_table. Update dependent calls and types.
31354 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31355 avoid potential global name collision.
31357 * gimplify.c: Include gimplify-ctx.h.
31358 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31359 (htab_t gimplify_ctx::temp_htab):
31360 Update dependent calls and types for new type hash_table.
31361 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31362 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31364 * gimplify-ctx.h: New.
31365 (struct gimple_temp_hash_elt): Move from gimplify.c.
31366 (class gimplify_hasher): New.
31367 (struct gimplify_ctx): Move from gimple.h.
31368 (htab_t gimplify_ctx::temp_htab):
31369 Change type to hash_table. Update dependent calls and types.
31371 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31372 (htab_t ivs_params::newivs_index):
31373 Change type to hash_table. Update dependent calls and types.
31374 (htab_t ivs_params::params_index): Likewise.
31375 (htab_t print_generated_program::params_index): Likewise.
31376 (htab_t gloog::newivs_index): Likewise.
31377 (htab_t gloog::params_index): Likewise.
31379 * graphite.c: Include graphite-htab.h.
31380 4htab_t graphite_transform_loops::bb_pbb_mapping):
31381 Change type to hash_table. Update dependent calls and types.
31383 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31384 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31385 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31387 * graphite-dependences.c: Include graphite-htab.h.
31388 (loop_is_parallel_p): Change hash table type of parameter.
31390 * graphite-htab.h: New.
31391 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31392 (extern find_pbb_via_hash): Move from graphite-poly.h.
31393 (extern loop_is_parallel_p): Move from graphite-poly.h.
31394 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31396 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31397 (extern loop_is_parallel_p): Move to graphite-htab.h.
31398 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31400 * haifa-sched.c (htab_t delay_htab):
31401 Change type to hash_table. Update dependent calls and types.
31402 (htab_t delay_htab_i2): Likewise.
31404 * ira-color.c (htab_t allocno_hard_regs_htab):
31405 Change type to hash_table. Update dependent calls and types.
31407 * ira-costs.c (htab_t cost_classes_htab):
31408 Change type to hash_table. Update dependent calls and types.
31410 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31411 Change type to hash_table. Update dependent calls and types.
31413 * loop-iv.c (htab_t bivs):
31414 Change type to hash_table. Update dependent calls and types.
31416 * loop-unroll.c (htab_t opt_info::insns_to_split):
31417 Change type to hash_table. Update dependent calls and types.
31418 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31420 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31421 (struct string_slot_hasher): New.
31422 (htab_t output_block::string_hash_table):
31423 Change type to hash_table. Update dependent calls and types.
31425 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31426 (htab_t file_name_hash_table):
31427 Change type to hash_table. Update dependent calls and types.
31429 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31432 * lto-streamer.c (htab_t tree_htab):
31433 Change type to hash_table. Update dependent calls and types.
31435 * omp-low.c: Include gimplify-ctx.h.
31437 * passes.c (htab_t name_to_pass_map):
31438 Change type to hash_table. Update dependent calls and types.
31439 (pass_traverse): Rename to passes_pass_traverse.
31441 * plugin.c (htab_t event_tab):
31442 Change type to hash_table. Update dependent calls and types.
31444 * postreload-gcse.c (htab_t expr_table):
31445 Change type to hash_table. Update dependent calls and types.
31446 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31448 * sese.c (debug_rename_map_1): Make extern.
31449 (htab_t copy_bb_and_scalar_dependences::rename_map):
31450 Change type to hash_table. Update dependent calls and types.
31452 * sese.h (extern debug_rename_map): Move to .c file.
31454 * store-motion.c (htab_t store_motion_mems_table):
31455 Change type to hash_table. Update dependent calls and types.
31457 * trans-mem.c (htab_t tm_new_mem_hash):
31458 Change type to hash_table. Update dependent calls and types.
31460 * tree-browser.c (htab_t TB_up_ht):
31461 Change type to hash_table. Update dependent calls and types.
31463 * tree-cfg.c (htab_t discriminator_per_locus):
31464 Change type to hash_table. Update dependent calls and types.
31466 * tree-complex.c: Include tree-hasher.h
31467 (htab_t complex_variable_components):
31468 Change type to hash_table. Update dependent calls and types.
31470 * tree-eh.c (htab_t finally_tree):
31471 Change type to hash_table. Update dependent calls and types.
31473 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31474 struct int_tree_hasher.
31475 (extern int_tree_map_eq): Likewise.
31476 (uid_decl_map_hash): Removed.
31477 (extern decl_tree_map_eq): Likewise.
31479 * tree-hasher.h: New.
31480 (struct int_tree_hasher): New.
31481 (typedef int_tree_htab_type): New.
31483 * tree-inline.c: Include gimplify-ctx.h.
31485 * tree-mudflap.c: Include gimplify-ctx.h.
31487 * tree-parloops.c: Include tree-hasher.h.
31488 (htab_t eliminate_local_variables_stmt::decl_address):
31489 Change type to hash_table. Update dependent calls and types.
31490 (htab_t separate_decls_in_region::decl_copies): Likewise.
31492 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31493 Change type to hash_table. Update dependent calls and types.
31495 * tree-sra.c (candidates):
31496 Change type to hash_table. Update dependent calls and types.
31498 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31500 (int_tree_map_hash): Likewise.
31502 * tree-ssa-dom.c (htab_t avail_exprs):
31503 Change type to hash_table. Update dependent calls and types.
31505 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31506 Change type to hash_table. Update dependent calls and types.
31508 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31509 Change type to hash_table. Update dependent calls and types.
31511 * tree-ssa-phiopt.c (seen_ssa_names):
31512 Change type to hash_table. Update dependent calls and types.
31514 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31515 Change type to hash_table. Update dependent calls and types.
31517 * tree-ssa-uncprop.c (equiv):
31518 Change type to hash_table. Update dependent calls and types.
31520 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31522 PR rtl-optimization/57003
31523 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31524 call note_stores with kill_clobbered_value callback again after
31525 killing regs_invalidated_by_call.
31527 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31529 * config/aarch64/aarch64-simd.md
31530 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31531 (aarch64_simd_bsl<mode>): Likewise.
31532 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31534 2013-04-25 Marek Polacek <polacek@redhat.com>
31536 PR tree-optimization/57066
31537 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31539 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31541 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31543 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31545 * config/aarch64/aarch64-builtins.c
31546 (aarch64_fold_builtin): New.
31547 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31548 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31549 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31550 * config/aarch64/arm_neon.h
31551 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31553 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31554 Tejas Belagod <tejas.belagod@arm.com>
31556 * config/aarch64/aarch64-builtins.c
31557 (aarch64_gimple_fold_builtin): New.
31558 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31559 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31560 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31561 (addvv4sf): Update.
31562 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31564 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31566 * config/aarch64/aarch64.md
31567 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31569 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31571 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31572 (*ngcsi_uxtw): New pattern.
31574 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31575 Julian Brown <julian@codesourcery.com>
31577 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31578 (TB_DREG): Add T_V4HF.
31579 (v4hf_UP): New macro.
31580 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31581 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31582 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31584 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31585 (arm_vector_mode_supported_p): Handle V4HF.
31586 (arm_mangle_map): Handle V4HFmode.
31587 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31588 * config/arm/arm_neon_builtins.def: Add entries for
31589 vcvtv4hfv4sf, vcvtv4sfv4hf.
31590 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31591 (neon_vcvtv4hfv4sf): Likewise.
31592 * config/arm/neon-gen.ml: Handle half-precision floating point
31594 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31595 * config/arm/arm_neon.h: Regenerate.
31596 * config/arm/neon.ml (type elts): Add F16.
31597 (type vectype): Add T_float16x4, T_floatHF.
31598 (type vecmode): Add V4HF.
31599 (type features): Add Requires_FP_bit feature.
31600 (elt_width): Handle F16.
31601 (elt_class): Likewise.
31602 (elt_of_class_width): Likewise.
31603 (mode_of_elt): Refactor.
31604 (type_for_elt): Handle F16, fix error messages.
31605 (vectype_size): Handle T_float16x4.
31606 (vcvt_sh): New function.
31607 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31608 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31609 (string_of_mode): Handle V4HF.
31610 * doc/arm-neon-intrinsics.texi: Regenerate.
31612 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31614 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31615 format specifier in 'X' case.
31617 2013-04-25 Alan Modra <amodra@gmail.com>
31620 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31621 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31622 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31623 Repeat for many other rotate/shift and mask patterns using subregs.
31624 Name lshiftrt insns.
31625 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31626 on WORDS_BIG_ENDIAN.
31628 2013-04-25 Alan Modra <amodra@gmail.com>
31630 * config.gcc: Support little-endian powerpc-linux targets.
31631 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31632 (LINK_OS_LINUX_SPEC): Define.
31633 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31634 Preserve MASK_LITTLE_ENDIAN.
31635 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31636 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31637 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31638 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31639 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31640 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31641 Correct fp word order for little-endian. Don't shift toc entries
31642 smaller than a word for little-endian.
31643 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31644 (bswapdi2 splits): Correct low-part subreg for little-endian.
31645 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31646 low/high where such is correct only for be.
31647 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31648 little-endian for -mcall-aixdesc.
31650 2013-04-25 Alan Modra <amodra@gmail.com>
31652 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31653 replace_equiv_address_nv.
31655 2013-04-25 Alan Modra <amodra@gmail.com>
31657 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31659 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31662 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31663 * rtl.h (struct rtx_def): ...
31665 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31667 PR rtl-optimizations/57046
31668 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31669 for multi-reg splits.
31671 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31673 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31675 2013-04-24 Sterling Augustine <saugustine@google.com>
31677 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31678 (comp_dir_string, debug_str_dwo_section): New.
31679 (DEBUG_STR_DWO_SECTION): Rename to ...
31680 (DEBUG_DWO_STR_SECTION): ... this.
31681 (DEBUG_NORM_STR_SECTION): Delete.
31682 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31683 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31684 (find_AT_string): Move most logic to ...
31685 (find_AT_string_in_table): ... here. New.
31686 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31687 add_skeleton_AT_string. Delete logic.
31688 (output_skeleton_debug_sections): Remove call to
31689 add_top_level_skeleton_die_attrs.
31690 (add_comp_dir_attribute): Move logic to comp_dir_string.
31691 (dwarf2out_init): Initialize debug_str_dwo_section.
31692 (output_indirect_string): Call find_string_form.
31693 (output_indirect_strings): Rewrite.
31694 (prune_unused_types): Empty skeleton_debug_str_hash.
31695 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31696 (dwarf2out_finish): Call output_indirect_strings.
31698 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31700 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31702 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31704 * rtl.h (struct rtx_def): Add comment for field jump.
31705 (LRA_SUBREG_P): New macro.
31706 * recog.c (register_operand): Check LRA_SUBREG_P.
31707 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31709 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31710 (lra_final_code_change): Skip subreg change for operators.
31711 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31712 if there are no operand changes.
31713 * lra-constraints.c (curr_insn_set): New.
31714 (match_reload): Set LRA_SUBREG_P.
31715 (emit_spill_move): Ditto.
31716 (check_and_process_move): Use curr_insn_set. Process only single
31717 set insns. Don't initialize sec_mem_p and change_p.
31718 (simplify_operand_subreg): Use LRA_SUBREG_P.
31719 (reg_in_class_p): New function.
31720 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31721 of #ifdef. Add code to remove cycling.
31722 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31723 non-null disp. Reload inner instead of disp when base and index
31724 are null. Try to put lo_sum into register.
31725 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31726 (check_and_process_move): Move code for move cost check to
31727 simple_move_p. Remove equiv_substitution.
31728 (simple_move_p): New function.
31729 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31730 curr_insn_set. Call check_and_process_move only for single set
31731 insns. Use the new function. Move call of check_and_process_move
31732 after operand equiv substitution and address process.
31734 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31736 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31737 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31738 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31740 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31742 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31744 2013-04-24 Marek Polacek <polacek@redhat.com>
31746 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31747 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31748 (select_loops_exit_conditions): Likewise.
31749 (number_of_iterations_for_all_loops): Likewise.
31750 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31751 (scev_analysis): Likewise.
31753 2013-04-02 Catherine Moore <clm@codesourcery.com>
31754 Chao-ying Fu <fu@mips.com>
31756 * config/mips/micromips.md (jraddiusp): New pattern.
31757 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31758 instruction if possible.
31760 2013-04-24 Alan Modra <amodra@gmail.com>
31762 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31764 2013-04-24 Julian Brown <julian@codesourcery.com>
31765 Chung-Lin Tang <cltang@codesourcery.com>
31767 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31768 dependency behavior in enumeration type DIE generation. Add TODO note
31769 to comments about future DW_FORM_sdata/udata re-work of related code.
31771 2013-04-23 Lawrence Crowl <crowl@google.com>
31773 * Makefile.in: Update as needed below.
31775 * hash-table.h (class hash_table):
31776 Correct many methods with parameter types compare_type to the correct
31777 value_type. (Correct code was unlikely to notice the change.)
31778 (hash_table::elements_with_deleted) New.
31779 (class hashtable::iterator): New.
31780 (hashtable::begin()): New.
31781 (hashtable::end()): New.
31782 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31784 * statistics.c (statistics_hashes):
31785 Change type to hash_table. Update dependent calls and types.
31787 * tree-into-ssa.c (var_infos):
31788 Change type to hash_table. Update dependent calls and types.
31790 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31791 Change type to hash_table. Update dependent calls and types.
31793 * tree-ssa-loop-im.c (struct mem_ref.refs):
31794 Change type to hash_table. Update dependent calls and types.
31796 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31797 Change type to hash_table. Update dependent calls and types.
31799 * tree-ssa-sccvn.c (vn_tables_s::nary):
31800 Change type to hash_table. Update dependent calls and types.
31801 (vn_tables_s::phis): Likewise.
31802 (vn_tables_s::references): Likewise.
31804 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31805 (vn_reference_eq): Update parameter and return types.
31807 * tree-ssa-structalias.c (pointer_equiv_class_table):
31808 Change type to hash_table. Update dependent calls and types.
31809 (location_equiv_class_table): Likewise.
31811 * tree-vect-data-refs.c: Consequential changes for making
31812 peeling a hash_table.
31814 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31815 (destroy_loop_vec_info): Dependent hash_table update.
31817 * tree-vectorizer.h (peeling_htab):
31818 Change type to hash_table. Update dependent calls and types.
31820 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31822 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31823 to check the register content is equal or not.
31824 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31825 to assign register content record.
31826 * lra-eliminations.c (update_reg_eliminate): Use
31827 lra_update_reg_val_offset to update register content offset.
31828 * lra-int.h (struct lra_reg): Add offset member.
31829 (lra_reg_val_equal_p): New static inline function.
31830 (lra_update_reg_val_offset): New static inline function.
31831 (lra_assign_reg_val): New static inline function.
31832 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31833 to assign register content record.
31834 (initialize_lra_reg_info_element): Initial offset to zero.
31836 2013-04-23 Catherine Moore <clm@codesourcery.com>
31838 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31839 operands. Record compression.
31841 2013-04-23 Xinliang David Li <davidxl@google.com>
31843 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31845 2013-04-23 Richard Biener <rguenther@suse.de>
31847 PR middle-end/57036
31848 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31849 parameter, only add abnormal goto edges from the copied body
31850 if the call could perform abnormal gotos.
31851 (copy_cfg_body): Adjust.
31853 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31855 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31857 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31859 * coretypes.h (gimple_stmt_iterator): Add struct to make
31862 2013-04-23 Richard Biener <rguenther@suse.de>
31864 PR tree-optimization/57026
31865 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31866 from SSA names occuring in abnormal PHI nodes.
31868 2013-04-22 Andi Kleen <ak@linux.intel.com>
31870 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31872 2013-04-22 Andi Kleen <ak@linux.intel.com>
31874 * lto/lto.c (print_lto_report_1): Declare early.
31875 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31877 2013-04-22 Andi Kleen <ak@linux.intel.com>
31879 * common.opt (-flto-report-wpa): Add.
31880 * doc/invoke.texi (-flto-report-wpa): Add.
31881 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31884 2013-04-22 Xinliang David Li <davidxl@google.com>
31886 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31887 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31888 * Makefile.in: New dependency
31890 David Daney <ddaney.cavm@gmail.com>
31892 * configure.ac (gcc_cv_as_micromips_support): Use the
31893 --fatal-warnings option.
31894 * configure: Regenerate.
31896 2013-04-22 Marek Polacek <polacek@redhat.com>
31899 * tsan.c (instrument_expr): Don't instrument expression
31900 in case its size is zero.
31902 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31906 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31908 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31910 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31912 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31913 (gimple_stmt_iterator): New typedef.
31914 * gimple.h (gimple_stmt_iterator): Rename to...
31915 (gimple_stmt_iterator_d): ... This.
31916 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31917 trees be valid for GIMPLE and GENERIC.
31918 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31919 * gimple-fold.c (gimple_fold_call): Call target hook
31920 gimple_fold_builtin.
31921 * hooks.c (hook_bool_gsiptr_false): New.
31922 * hooks.h (hook_bool_gsiptr_false): New.
31923 * target.def (fold_stmt): New.
31924 * doc/tm.texi: Regenerate.
31926 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31929 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31930 a set sp if no stack realignment.
31932 2013-04-22 Nick Clifton <nickc@redhat.com>
31934 * config.gcc (tilegx-linux): Extend extra_objs rather than
31936 (tilepro-linux): Likewise.
31938 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31940 * config/aarch64/aarch64-builtins.c
31942 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31943 (VAR<1-12>): Add MAP parameter.
31944 (BUILTIN_*): Likewise.
31945 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31946 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31947 (aarch64_ushl_n<mode>): Likewise.
31948 (aarch64_sshr_n<mode>): Likewise.
31949 (aarch64_ushr_n<mode>): Likewise.
31950 (aarch64_<maxmin><mode>): Likewise.
31951 (aarch64_sqrt<mode>): Likewise.
31952 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31953 (vshr<q>_n_*): Likewise.
31955 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31957 * config/aarch64/aarch64-builtins.c
31958 (aarch64_simd_builtin_type_mode): Handle SF types.
31960 (BUILTIN_GPF): Define.
31961 (aarch64_init_simd_builtins): Handle SF types.
31962 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31963 (frecps): Likewise.
31964 (frecpx): Likewise.
31965 * config/aarch64/aarch64-simd.md
31966 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31967 (aarch64_frecpe<mode>): New.
31968 (aarch64_frecps<mode>): Likewise.
31969 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31970 (v8type): Add frecp<esx>.
31971 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31972 (aarch64_frecps<mode>): Likewise.
31973 * config/aarch64/iterators.md (FRECP): New.
31974 (frecp_suffix): Likewise.
31975 * config/aarch64/arm_neon.h
31976 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31978 2013-04-22 Christian Bruel <christian.bruel@st.com>
31981 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31982 (REG_CLASS_NAMES): Idem.
31983 (REG_CLASS_CONTENTS): Idem.
31984 (REGCLASS_HAS_FP_REG): Idem.
31985 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31986 (sh_conditional_register_usage): Idem.
31988 2013-04-21 Jeff Law <law@redhat.com>
31990 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31991 (ssa_forward_propagate_and_combine): Use it.
31993 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31995 * lra.c: Update the flow chart diagram.
31997 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31999 PR rtl-optimization/56847
32000 * lra-constraints.c (process_alt_operands): Discourage alternative
32001 with non-matche doffsettable memory constraint fro memory with
32004 2013-04-19 Richard Biener <rguenther@suse.de>
32006 PR tree-optimization/56982
32007 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32009 * gimplify.c (gimplify_call_expr): Notice special calls.
32010 (gimplify_modify_expr): Likewise.
32011 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32012 abnormal control flow receivers.
32013 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32014 in the same way as cfun->has_nonlocal_labels.
32015 (gimple_purge_dead_abnormal_call_edges): Likewise.
32016 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32017 receivers start a basic-block.
32019 2013-04-19 Richard Biener <rguenther@suse.de>
32021 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32023 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32024 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32025 (SLP_TREE_LOAD_PERMUTATION): Add.
32026 (vect_transform_slp_perm_load): Adjust prototype.
32027 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32028 (vect_free_slp_instance): Likewise.
32029 (vect_create_new_slp_node): Likewise.
32030 (vect_supported_slp_permutation_p): Remove.
32031 (vect_slp_rearrange_stmts): Adjust.
32032 (vect_supported_load_permutation_p): Likewise. Inline
32033 vect_supported_slp_permutation_p here.
32034 (vect_analyze_slp_instance): Compute load permutations per
32035 slp node instead of per instance.
32036 (vect_get_slp_defs): Adjust.
32037 (vect_transform_slp_perm_load): Likewise.
32038 (vect_schedule_slp_instance): Remove redundant code.
32039 (vect_schedule_slp): Remove hack for PR56270, add it ...
32040 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32041 CSE loads for SLP. Adjust.
32043 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32045 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32046 spelling in two comments.
32048 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32051 * config/arm/arm.c (load_multiple_sequence): Require SP
32052 as base register for loads if SP is in the register list.
32054 2013-04-19 Martin Jambor <mjambor@suse.cz>
32056 PR tree-optimization/56718
32057 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32058 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32059 and made public. Adjusted all callers.
32060 (ipa_intraprocedural_devirtualization): New function.
32061 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32062 (ipa_intraprocedural_devirtualization): Likewise.
32063 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32065 2013-04-19 Richard Biener <rguenther@suse.de>
32067 PR tree-optimization/57000
32068 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32070 2013-04-19 Terry Guo <terry.guo@arm.com>
32072 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32074 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32075 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32076 (cortex_m4_fmacs): Use new reservations.
32077 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32079 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32081 PR rtl-optimization/56999
32082 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32084 (lra_coalesce): Remove split_origin_bitmap and related code.
32085 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32086 ranges if necessary.
32088 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32090 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32092 (ix86_expand_call): Remove clobbered_registers array and use
32093 x86_64_ms_sysv_extra_clobbered_registers instead.
32094 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32096 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32098 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32099 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32100 (*call_value_rex64_ms_sysv): Ditto.
32102 2013-04-18 Cary Coutant <ccoutant@google.com>
32104 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32105 parent instead of die_mark.
32107 2013-04-18 Diego Novillo <dnovillo@google.com>
32109 * gimple.c (create_gimple_tmp): New.
32110 (get_expr_type): New.
32111 (build_assign): New.
32112 (build_type_cast): New.
32113 * gimple.h (enum ssa_mode): Define.
32114 (gimple_seq_set_location): New.
32115 * asan.c (build_check_stmt): Change some gimple_build_* calls
32116 to use build_assign and build_type_cast.
32118 2013-04-18 Richard Biener <rguenther@suse.de>
32120 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32121 handle negative step. Remove redundant checks.
32122 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32123 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32124 for negative step and grouped loads fail to vectorize.
32126 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32128 * emit-rtl.c (reset_insn_used_flags): New function.
32129 (reset_all_used_flags): Use it.
32130 (verify_insn_sharing): New function.
32131 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32133 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32135 PR tree-optimization/56984
32136 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32137 and (x >> M) >= N don't register any assertion if N << M is the
32140 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32142 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32143 do not delete_insn insns that have not yet been emitted, only
32144 unlink them with remove_insn.
32145 * df-scan.c (df_insn_delete): Revert r197492.
32147 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32149 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32150 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32152 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32154 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32155 define_insn_and_split.
32156 (and_scc,ior_scc,negscc): Likewise.
32157 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32159 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32161 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32162 can benefit from using a sequence of LDRD instructions in epilogue
32163 instead of a single LDM instruction.
32165 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32168 * doc/extend.texi: Fix typo.
32170 2013-04-17 Richard Biener <rguenther@suse.de>
32172 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32173 (vect_build_slp_tree): ... here.
32174 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32175 match. Remove special-casing of mismatched complex loads.
32176 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32177 re-try the match with swapped commutative operands.
32178 (vect_supported_load_permutation_p): Remove special-casing of
32179 mismatched complex loads.
32180 (vect_analyze_slp_instance): Adjust.
32182 2013-04-17 Richard Biener <rguenther@suse.de>
32184 PR rtl-optimization/56921
32185 * cfgloop.h (struct loop): Add simple_loop_desc member.
32186 (struct niter_desc): Mark with GTY(()).
32187 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32188 * loop-iv.c (get_simple_loop_desc): Likewise.
32189 (free_simple_loop_desc): Likewise.
32192 2013-04-16 Richard Biener <rguenther@suse.de>
32194 PR rtl-optimization/56921
32195 * loop-init.c (pass_rtl_move_loop_invariants): Add
32196 TODO_do_not_ggc_collect to todo_flags_finish.
32197 (pass_rtl_unswitch): Same.
32198 (pass_rtl_unroll_and_peel_loops): Same.
32199 (pass_rtl_doloop): Same.
32201 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32203 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32204 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32205 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32207 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32208 * tree-streamer.c (record_common_node): Adjust reference in comment.
32210 2013-04-17 Terry Guo <terry.guo@arm.com>
32212 * config/arm/cortex-m4.md: Add a new bypass.
32214 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32216 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32218 (*subs_<optab><mode>_multp2): New pattern.
32219 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32220 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32222 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32224 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32225 (*subs_mul_imm_<mode>): New pattern.
32227 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32230 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32231 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32232 (vsx_movti_32bit): Change j->wa to O->wa.
32234 2013-04-16 Richard Biener <rguenther@suse.de>
32236 PR rtl-optimization/56921
32237 * loop-init.c (pass_rtl_move_loop_invariants): Add
32238 TODO_do_not_ggc_collect to todo_flags_finish.
32239 (pass_rtl_unswitch): Same.
32240 (pass_rtl_unroll_and_peel_loops): Same.
32241 (pass_rtl_doloop): Same.
32243 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32245 * config/arm/arm.c (emit_multi_reg_push): New declaration
32246 for an existing function.
32247 (arm_emit_strd_push): New function.
32248 (arm_expand_prologue): Used here.
32249 (arm_emit_ldrd_pop): New function.
32250 (arm_expand_epilogue): Used here.
32251 (arm_get_frame_offsets): Update condition.
32252 (arm_emit_multi_reg_pop): Add a special case for load of a single
32253 register with writeback.
32255 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32257 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32260 2013-04-16 Richard Biener <rguenther@suse.de>
32262 PR tree-optimization/56756
32263 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32264 (first_mem_ref_loc): New.
32265 (execute_sm): Place the load temporarily before a previous
32266 access instead of in the latch edge to ensure its SSA dependencies
32267 are defined at points dominating the load.
32269 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32271 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32272 correct fix by moving header and footer insn to the footer of
32273 the merged basic block. Clear BB_END of the merged-away block.
32275 PR middle-end/43631
32276 * emit-rtl.c (make_note_raw): New function.
32277 (link_insn_into_chain): New static inline function.
32278 (add_insn): Use it.
32279 (add_insn_before, add_insn_after): Factor insn chain linking code...
32280 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32281 using link_insn_into_chain.
32282 (note_outside_basic_block_p): New helper function for emit_note_after
32283 and emit_note_before.
32284 (emit_note_after): Use nobb variant of add_insn_after if the note
32285 should not be contained in a basic block.
32286 (emit_note_before): Use nobb variant of add_insn_before if the note
32287 should not be contained in a basic block.
32288 (emit_note_copy): Use make_note_raw.
32289 (emit_note): Likewise.
32290 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32291 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32292 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32293 the moved barrier the tail of the basic block it follows.
32294 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32296 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32298 PR tree-optimization/56962
32299 * gimple-ssa-strength-reduction.c (record_increment): Only set
32300 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32301 either rhs1 or rhs2 is equal to c->base_expr.
32303 2013-04-15 Richard Biener <rguenther@suse.de>
32305 PR tree-optimization/56933
32306 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32308 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32309 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32310 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32311 dependence check ...
32312 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32314 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32315 GROUP_READ_WRITE_DEPENDENCE.
32317 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32319 * emit-rtl.c (reset_all_used_flags): New function.
32320 (verify_rtl_sharing): Call reset_all_used_flags before and after
32321 performing the checks.
32323 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32325 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32326 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32327 * config/arm/constraints.md (De): New constraint.
32328 * config/arm/neon.md (anddi3_neon): Delete.
32329 (neon_vand<mode>): Expand to standard anddi3 pattern.
32330 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32331 Move earlier in the file.
32332 (neon_inv_logic_op2): Likewise.
32333 (arm_anddi_operand_neon): New predicate.
32335 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32337 * configure.ac (gcc_cv_ld_as_needed): Set
32338 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32339 Use -z ignore, -z record on *-*-solaris2*.
32340 (HAVE_LD_AS_NEEDED): Update comment.
32341 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32342 * configure: Regenerate.
32343 * config.in: Regenerate.
32344 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32345 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32346 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32347 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32348 equivalents. Fix markup.
32349 * doc/tm.texi: Regenerate.
32351 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32353 * config/i386/i386.opt: New option mstack-protector-guard=.
32354 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32355 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32356 TARGET_SSP_TLS_GUARD.
32357 * config/i386/i386.c (ix86_option_override_internal): Set
32358 ix86_stack_protector_guard.
32359 * config/i386/i386.md (stack_protect_set): Enable for
32360 TARGET_SSP_TLS_GUARD only.
32361 (stack_protect_set_<mode>): Ditto.
32362 (stack_protect_test): Ditto.
32363 (stack_protect_test_<mode>): Ditto.
32364 * doc/invoke.texi (i386 Option): Document.
32366 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32369 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32370 (S_MODES): Set H_MODE bit.
32371 (SF_MODES): Set only S_MODE and SF_MODE bits.
32372 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32373 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32374 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32375 <MODE_FLOAT>: Likewise.
32377 2013-04-15 Joey Ye <joey.ye@arm.com>
32379 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32381 2013-04-15 Joey Ye <joey.ye@arm.com>
32383 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32385 (thumb_far_jump_used_p): Count instruction size and set
32388 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32390 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32391 * resource.c (mark_target_live_regs): Reformat conditional block.
32393 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32395 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32396 notes, they are emitted only just before final.
32397 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32399 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32401 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32402 * cfgrtl.c (delete_insn): Call it here instead.
32403 * lra-spills.c (lra_final_code_change): Use delete_insn.
32404 * haifa-sched.c (sched_remove_insn): Likewise.
32405 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32406 returning to the nop pool.
32407 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32408 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32410 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32412 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32413 * doc/tm.texi: Regenerated.
32415 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32417 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32420 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32422 * df-core.c (df_find_def): Compare register numbers.
32423 (df_find_use): Likewise.
32425 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32428 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32429 lra_in_progress for return.
32431 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32433 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32434 define_insn into define_insn_and_split and emit movsicc patterns.
32436 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32438 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32440 2013-04-12 Richard Biener <rguenther@suse.de>
32442 * tree-pass.h (TODO_do_not_ggc_collect): New.
32443 * passes.c (execute_one_ipa_transform_pass): Honor
32444 TODO_do_not_ggc_collect.
32445 (execute_one_pass): Likewise.
32448 2013-04-10 Richard Biener <rguenther@suse.de>
32450 * passes.c (init_optimization_passes): Remove reload pass.
32451 * ira.c (do_reload): Merge into ...
32453 (rest_of_handle_reload): Remove.
32454 (pass_reload): Likewise.
32455 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32456 of reload for vzeroupper pass placement.
32458 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32460 PR tree-optimization/56918
32461 PR tree-optimization/56920
32462 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32463 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32464 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32465 use wide_mul_with_sign method.
32467 2013-04-12 Richard Biener <rguenther@suse.de>
32469 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32470 not be considered a gimple constant.
32472 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32474 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32475 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32478 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32479 Jakub Jelinek <jakub@redhat.com>
32481 * opts.c: Include diagnostic-color.h.
32482 (common_handle_option): Handle OPT_fdiagnostics_color_.
32483 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32484 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32485 (diagnostic-color.o): New.
32486 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32487 (diagnostic_color_rule): New enum.
32488 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32489 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32490 the location string.
32491 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32492 either NULL, or color kind.
32493 * diagnostic-color.c: New file.
32494 * diagnostic-color.h: New file.
32495 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32497 * doc/invoke.texi (-fdiagnostics-color): Document.
32498 * pretty-print.h (pp_show_color): Define.
32499 (struct pretty_print_info): Add show_color field.
32500 * diagnostic.c: Include diagnostic-color.h.
32501 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32502 macros. Colorize error:, warning: etc. strings and also the location
32504 (diagnostic_show_locus): Colorize the caret line.
32505 * pretty-print.c: Include diagnostic-color.h.
32506 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32507 inside of %< %> quotes or quoted through q format modifier.
32509 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32511 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32513 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32515 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32516 code in CC_NZ mode.
32517 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32520 2013-04-11 Marek Polacek <polacek@redhat.com>
32522 PR tree-optimization/48184
32523 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32525 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32527 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32528 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32529 (skip_simple_arithmetic): Tidy up.
32530 * tree.h (skip_simple_constant_arithmetic): Declare.
32532 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32534 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32536 2013-04-11 Richard Biener <rguenther@suse.de>
32538 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32539 generate vector constants.
32541 2013-04-11 Richard Biener <rguenther@suse.de>
32543 PR tree-optimization/56878
32544 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32545 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32547 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32548 Prefer to align the DR with the most invariant base address.
32550 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32552 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32555 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32557 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32558 floating-point vector comparisons against 0.
32560 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32562 PR tree-optimization/56899
32563 * fold-const.c (extract_muldiv_1): Apply distributive law
32564 only if TYPE_OVERFLOW_WRAPS (ctype).
32566 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32569 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32570 loading has side effect.
32572 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32574 * config/sparc/sparc.c: Include tree-pass.h.
32575 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32576 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32577 head of file. Change return type. Split off gate function.
32578 (sparc_gate_work_around_errata): New function.
32579 (pass_work_around_errata): New pass definition.
32580 (insert_pass_work_around_errata) New pass insert definition to
32581 insert pass_work_around_errata just after delayed-branch scheduling.
32582 (sparc_option_override): Insert the pass.
32583 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32585 2013-04-10 David S. Miller <davem@davemloft.net>
32587 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32588 or -mcpu=hypersparc.
32590 * target.def (cstore_mode): New hook.
32591 * target.h: Include insn-codes.h
32592 * targhooks.c: Likewise.
32593 (default_cstore_mode): New function.
32594 * targhooks.h: Declare it.
32595 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32596 * doc/tm.texi: Rebuild.
32597 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32598 target hook, rather than inspecting the insn_data.
32599 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32600 (TARGET_CSTORE_MODE): Redefine.
32601 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32603 * config/sparc/predicates.md (cstore_result_operand): New special
32605 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32606 Use it for operand 0.
32607 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32608 (*snesi_special): Likewise.
32609 (*snesi_zero): Likewise.
32610 (*seqsi_zero): Likewise.
32611 (*sltu_insn): Likewise.
32612 (*sgeu_insn): Likewise.
32613 (*seqdi_special): Make operand 0 and comparison operation be of
32615 (*snedi_special): Likewise.
32616 (*snedi_special_vis3): Likewise.
32617 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32618 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32619 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32620 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32621 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32622 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32623 (*sltu_extend_sp64): Likewise.
32624 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32625 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32626 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32627 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32628 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32630 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32632 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32633 (aarch64_start_file): Use the new function.
32635 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32636 Jason Merrill <jason@redhat.com>
32638 * common.opt: Add -gdwarf.
32639 * opts.c (common_handle_option): Handle it.
32640 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32642 2013-04-10 Richard Biener <rguenther@suse.de>
32644 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32645 (execute_one_ipa_transform_pass): But unconditionally here.
32646 (execute_one_pass): And here.
32647 (init_optimization_passes): Remove reload pass.
32648 * tree-pass.h (TODO_ggc_collect): Remove.
32649 (pass_reload): Likewise.
32650 * ira.c (do_reload): Merge into ...
32652 (rest_of_handle_reload): Remove.
32653 (pass_reload): Likewise.
32654 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32655 of reload for vzeroupper pass placement.
32656 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32657 and todo_flags_finish of all passes.
32659 2013-04-10 Richard Biener <rguenther@suse.de>
32661 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32662 first_const_oprnd field, rename first_def_type to first_op_type.
32663 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32664 (vect_get_and_check_slp_defs): Always use the type of the
32665 operand. Allow mixed vect_external_def, vect_constant_def types.
32666 (vect_get_constant_vectors): Handle mixed vect_external_def,
32667 vect_constant_def types.
32669 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32671 PR tree-optimization/55524
32672 * tree-ssa-math-opts.c
32673 (convert_mult_to_fma): Don't use an fms construct
32674 when we don't have an fms operation, but fnma, and it looks
32675 likely that we'll be able to use the latter.
32677 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32679 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32681 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32682 inline fail caused by overwritable functions.
32684 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32686 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32687 unnecessary bits in the constant power of two case.
32689 2013-04-10 Richard Biener <rguenther@suse.de>
32691 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32692 broken code swapping operands.
32693 (vect_build_slp_tree): Do not compute load permutations here.
32694 (vect_analyze_slp_instance): Compute load permutations here,
32695 after building the SLP tree.
32697 2013-04-09 Christian Bruel <christian.bruel@st.com>
32699 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32700 of next/prev_real_insn.
32702 2013-04-09 Jan Hubicka <jh@suse.cz>
32704 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32705 Drop aliased parameter.
32706 (function_and_variable_visibility): Do not handle alias pairs.
32707 * cgraph.c (varpool_externally_visible_p): Update prototype.
32708 * varpool.c (varpool_add_new_variable): Update.
32710 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32712 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32714 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32716 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32718 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32720 2013-04-09 Marek Polacek <polacek@redhat.com>
32722 PR tree-optimization/48762
32723 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32725 2013-04-09 Richard Biener <rguenther@suse.de>
32727 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32729 (vect_build_slp_tree): Likewise.
32730 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32731 calculating the cost of a SLP instance.
32732 (vect_analyze_slp_instance): Use it from here, after building
32735 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32737 PR middle-end/56883
32738 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32739 expand_omp_for_static_chunk): Use simple_p = true in
32740 force_gimple_operand_gsi calls when assigning to addressable decls.
32742 2013-04-09 Jeff Law <law@redhat.com>
32744 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32745 when the boolean was created by converting a wider object which
32746 had a boolean range.
32748 2013-04-09 Richard Biener <rguenther@suse.de>
32750 * tree-vectorizer.h (slp_void_p): Remove.
32751 (slp_tree): Typedef before _slp_tree declaration.
32752 (struct _slp_tree): Use a vector of slp_tree as children.
32753 (vect_get_place_in_interleaving_chain): Remove.
32754 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32756 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32758 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32759 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32760 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32761 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32762 Use slp_node instead of slp_void_p and adjust.
32764 2013-04-09 Richard Biener <rguenther@suse.de>
32766 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32767 work that is not necessary.
32769 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32771 PR tree-optimization/56854
32772 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32773 forward into clobber stmts if it would change MEM_REF lhs into
32776 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32778 * tree.c (type_hash_lookup, type_hash_add): Make static.
32779 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32781 2013-04-09 Richard Biener <rguenther@suse.de>
32783 * tree.h (unsave_expr_now): Remove.
32784 * tree-inline.c (mark_local_for_remap_r): Remove.
32785 (unsave_expr_1): Likewise.
32786 (unsave_r): Likewise.
32787 (unsave_expr_now): Likewise.
32788 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32789 (propagate_tree_value): Likewise.
32791 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32793 * doc/rtl.texi (sequence): Rewrite documentation to match the
32794 current use of SEQUENCE rtl objects.
32795 * rtl.def (SEQUENCE): Likewise.
32797 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32798 Update documentation.
32799 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32800 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32802 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32804 2013-04-08 Teresa Johnson <tejohnson@google.com>
32806 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32807 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32809 (estimate_edge_size_and_time): Add comment to suggest using rounding
32811 (estimate_node_size_and_time): Ditto.
32812 (remap_edge_change_prob): Use helper rounding divide methods.
32813 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32814 (gimple_mod_pow2_value_transform): Ditto.
32815 (gimple_mod_subtract_transform): Ditto.
32816 (gimple_ic_transform): Ditto.
32817 (gimple_stringops_transform): Ditto.
32818 * stmt.c (conditional_probability): Ditto.
32819 (emit_case_dispatch_table): Ditto.
32820 * lto-cgraph.c (merge_profile_summaries): Ditto.
32821 * tree-optimize.c (execute_fixup_cfg): Ditto.
32822 * cfgcleanup.c (try_forward_edges): Ditto.
32823 * cfgloopmanip.c (scale_loop_profile): Ditto.
32825 (duplicate_loop_to_header_edge): Ditto.
32826 (lv_adjust_loop_entry_edge): Ditto.
32827 * tree-vect-loop.c (vect_transform_loop): Ditto.
32828 * profile.c (compute_branch_probabilities): Ditto.
32829 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32830 * lto-streamer-in.c (input_cfg): Ditto.
32831 * gimple-streamer-in.c (input_bb): Ditto.
32832 * ipa-cp.c (update_profiling_info): Ditto.
32833 (update_specialized_profile): Ditto.
32834 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32835 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32837 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32838 (compute_trg_info): Ditto.
32839 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32840 (purge_dead_edges): Ditto.
32841 * loop-unswitch.c (unswitch_loop): Ditto.
32842 * cgraphclones.c (cgraph_clone_edge): Ditto.
32843 (cgraph_clone_node): Ditto.
32844 * tree-inline.c (copy_bb): Ditto.
32845 (copy_edges_for_bb): Ditto.
32846 (initialize_cfun): Ditto.
32847 (copy_cfg_body): Ditto.
32848 (expand_call_inline): Ditto.
32850 2013-04-08 Kai Tietz <ktietz@redhat.com>
32852 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32853 TARGET_CYGWIN64 by TARGET_64BIT.
32855 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32857 * config/epiphany/epiphany.md (GPR_1): New constant.
32858 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32859 * config/epiphany/epiphany.c (gen_compare_reg):
32860 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32861 is already in place.
32862 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32863 Don't require being called during rtl expansion; If y operlaps r0,
32865 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32866 (epiphany_expand_epilogue): Likewise.
32868 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32869 Don't use CC_FPmode for ORDERED / UNORDERED.
32870 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32872 * config/epiphany/constraints.md (CnL): New constraint.
32873 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32874 * config/epiphany/predicates.md (add_operand): Allow 1024.
32876 * config/epiphany/epiphany.md (logical_op): New code iterator.
32877 (op_mnc): New code attribute.
32878 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32879 (mov_f+1, mov_f+2): New peephole2 patterns.
32881 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32882 (cstoresi4): Also allow re-use of zero result when doing a NE
32883 comparison to a non-zero operand.
32884 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32886 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32887 Use gen_addsi3_i / gen_subsi3_i.
32889 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32893 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32894 contain anything but clobbers, at most one __builtin_stack_restore,
32895 optionally debug stmts and final resx, and if it has at least one
32896 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32897 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32898 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32899 which isn't defaut definition, remove them.
32900 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32901 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32902 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32903 with MEM_REF LHS with SSA_NAME address.
32905 2013-04-08 Jeff Law <law@redhat.com>
32907 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32909 2013-04-08 Richard Biener <rguenther@suse.de>
32911 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32913 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32914 determined vector type.
32915 (vect_analyze_data_refs): Likewise.
32916 (vect_get_new_vect_var): Adjust.
32917 (vect_create_destination_var): Preserve SSA name versions.
32918 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32919 not dump anything here.
32921 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32923 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32924 Add member lr_slot_known.
32925 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32927 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32928 Remove code that sets lr_slot_offset according to what a previous
32929 version of epiphany_emit_save_restore used to do.
32930 (epiphany_emit_save_restore): When doing an lr save or restore,
32931 set/verify lr_slot_known and lr_slot_offset.
32933 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32936 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32939 2013-04-08 Richard Biener <rguenther@suse.de>
32941 * alias.c (find_base_term): Fix thinko in previous change.
32943 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32945 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32946 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32947 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32948 if possible to compute val.
32949 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32950 For QImode integers don't require anything about precision. Use
32951 const_with_all_bytes_same to find out if the constant doesn't have
32952 repeated bytes in it.
32954 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32956 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32959 2013-04-08 Marek Polacek <polacek@redhat.com>
32961 PR rtl-optimization/48182
32962 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32965 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32968 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32969 nuses, make sure we have a label.
32971 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32974 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32975 (rs6000_emit_swdiv_low_precision): Remove.
32976 (rs6000_emit_swdiv): Rewrite to handle between one and four
32977 iterations of Newton-Raphson generally; modify required number of
32978 iterations for some cases.
32979 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32981 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32983 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32984 set-but-unused variable.
32986 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32987 basic blocks of released function bodies garbage-collectable.
32989 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32990 (struct rtl_opt_pass): Add TODO_df_finish.
32992 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32994 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32996 * config/arm/constraints.md (q): New constraint.
32997 * config/arm/ldrdstrd.md: New file.
32998 * config/arm/arm.md (ldrdstrd.md) New include.
32999 (arm_movdi): Use "q" instead of "r" constraint
33000 for double-word memory access.
33001 (movdf_soft_insn): Likewise.
33002 * config/arm/vfp.md (movdi_vfp): Likewise.
33003 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33004 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33005 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33006 (mem_ok_for_ldrd_strd): Likewise.
33007 (output_move_double): Update assertion.
33009 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33011 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33013 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33015 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33016 define_insn_and_split.
33017 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33019 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33021 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33022 define_insn_and_split.
33023 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33024 (shiftsi3_compare): New pattern.
33025 (rrx): New pattern.
33026 * config/arm/unspecs.md (UNSPEC_RRX): New.
33028 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33030 * config/arm/arm.md (negdi_extendsidi): New pattern.
33031 (negdi_zero_extendsidi): Likewise.
33033 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33035 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33036 define_insn_and_split.
33037 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33038 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33040 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33042 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33043 define_insn_and_split.
33044 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33045 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33047 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33049 * config/arm/arm.md (subsi3_carryin): New pattern.
33050 (subsi3_carryin_const): Likewise.
33051 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33052 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33054 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33056 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33058 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33060 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33061 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33063 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33065 * config/arm/arm.c (arm_expand_builtin): Change fcode
33066 type to unsigned int.
33068 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33070 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33072 2013-04-04 Ian Lance Taylor <iant@google.com>
33074 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33077 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33079 PR middle-end/56729
33080 * df-scan.c (df_insn_delete): Disable failing assert.
33082 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33084 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33085 New function prototype.
33086 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33087 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33088 (arm_builtin_vectorized_function): New function.
33090 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33092 * config/arm/arm_neon_builtins.def: New file.
33093 * config/arm/arm.c (neon_builtin_data): Move contents to
33094 arm_neon_builtins.def.
33095 (enum arm_builtins): Include neon builtin definitions.
33096 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33097 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33099 2013-04-04 Marek Polacek <polacek@redhat.com>
33101 PR tree-optimization/48186
33102 * predict.c (maybe_hot_frequency_p): Return false if
33103 HOT_BB_FREQUENCY_FRACTION is 0.
33104 (cgraph_maybe_hot_edge_p): Likewise.
33106 2013-04-04 Richard Biener <rguenther@suse.de>
33108 PR tree-optimization/56826
33109 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33112 2013-04-04 Richard Biener <rguenther@suse.de>
33114 PR tree-optimization/56213
33115 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33116 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33118 2013-04-04 Richard Biener <rguenther@suse.de>
33120 PR tree-optimization/56837
33121 * tree-loop-distribution.c (classify_partition): For non-zero
33122 values require that the value has the same precision as its
33123 mode to be useful as memset value.
33125 2013-04-03 Nick Clifton <nickc@redhat.com>
33127 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33128 (fmssf4): Use fmsf.s on E3V5 architectures.
33129 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33130 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33132 2013-04-03 Jeff Law <law@redhat.com>
33134 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33135 (lra-eliminations.o): Likewise.
33137 2013-04-03 Teresa Johnson <tejohnson@google.com>
33139 * gcov-io.c (compute_working_sets): Moved most of body of old
33140 compute_working_sets here from profile.c.
33141 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33142 (gcov_working_set_t): Moved typedef here from basic-block.h
33143 (compute_working_set): Declare.
33144 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33145 (get_working_sets): Renamed from compute_working_set,
33146 replace most of body with call to new compute_working_sets.
33147 (get_exec_counts): Replace call to compute_working_sets
33148 to get_working_sets.
33149 * profile.h (get_working_sets): Renamed from compute_working_set.
33150 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33151 to get_working_sets.
33152 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33153 * gcov-dump.c (dump_working_sets): New function.
33155 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33157 * hwint.c (sext_hwi, zext_hwi): New functions.
33158 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33159 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33160 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33161 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33162 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33163 (sext_hwi, zext_hwi): New functions.
33165 2013-04-03 Jeff Law <law@redhat.com>
33167 PR tree-optimization/56799
33168 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33169 back test for widening conversion erroneously dropped in prior change.
33171 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33174 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33175 instead of next_real_insn.
33177 2013-04-03 Marek Polacek <polacek@redhat.com>
33180 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33182 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33185 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33187 (thumb1_output_casesi): Likewise.
33188 (thumb2_output_casesi): Likewise.
33190 2013-04-03 Richard Biener <rguenther@suse.de>
33192 PR tree-optimization/56817
33193 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33195 (tree_unroll_loops_completely_1): ... new function to manually
33196 walk the loop tree, properly defering outer loops of unrolled
33197 loops to later iterations.
33199 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33201 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33202 (vectorizable_load): Likewise.
33203 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33204 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33206 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33208 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33211 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33213 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33215 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33217 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33219 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33221 PR tree-optimization/56790
33222 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33225 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33227 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33229 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33230 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33233 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33236 * tree.h (force_folding_builtin_constant_p): New decl.
33237 * builtins.c (force_folding_builtin_constant_p): New variable.
33238 (fold_builtin_constant_p): Fold immediately also if
33239 force_folding_builtin_constant_p.
33241 2013-04-03 Richard Biener <rguenther@suse.de>
33243 PR tree-optimization/56812
33244 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33245 DRs of the same interleaving chain are independent.
33247 2013-04-02 Jason Merrill <jason@redhat.com>
33249 * gdbinit.in (pbb): Use debug fn.
33251 2013-04-02 Lawrence Crowl <crowl@google.com>
33253 * sese.h (struct ivtype_map_elt_s): Remove unused.
33254 (extern debug_ivtype_map): Remove unused.
33255 (extern eq_ivtype_map_elts): Remove unused.
33256 * sese.c (debug_ivtype_map): Removed unused.
33257 (debug_ivtype_map_1): Removed unused.
33258 (debug_ivtype_elt): Remove unused.
33259 (eq_ivtype_map_elts): Remove unused.
33261 2013-04-02 Kai Tietz <ktietz@redhat.com>
33264 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33265 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33266 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33268 (legitimize_pe_coff_symbol): Likewise.
33269 (is_imported_p): New helper-function.
33270 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33271 for Windows x64 targets.
33272 (ix86_expand_prologue): Optimize for pe-coff targets.
33273 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33274 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33275 medium/large code-model.
33276 (legitimize_pic_address): Likewise.
33277 (legitimize_tls_address): Likewise.
33278 (ix86_expand_call): Likewise.
33279 (x86_output_mi_thunk): Likewise.
33280 (get_dllimport_decl): Add new beimport argument.
33281 (construct_plt_address): Don't assert for x64 pe-coff targets.
33282 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33284 (SYMBOL_FLAG_STUBVAR): New macro.
33285 (SYMBOL_REF_STUBVAR_P): Likewise.
33286 * config/i386/winnt.c (stub_list): New structure.
33287 (stub_head): New local variable.
33288 (i386_pe_record_stub): New function.
33289 (i386_pe_file_end): Emit refptr-stubs.
33291 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33293 PR rtl-optimization/56745
33294 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33295 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33298 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33299 and both of them are MEM_REFs, just compare first argument for
33300 equality and attempt to deal even with differing offsets.
33303 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33304 of gimple_clobber_p to be MEM_REF.
33305 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33306 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33307 after gimplification.
33308 * asan.c (get_mem_ref_of_assignment): Don't instrument
33309 gimple_clobber_p stmts.
33310 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33311 gimple_clobber_p stmt if they have MEM_REF lhs and
33312 are dead because of another gimple_clobber_p stmt.
33313 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33314 gimple_clobber_p stmts like debug stmts.
33315 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33316 that refer to unused VAR_DECLs or uninitialized values.
33317 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33318 gimple_clobber_p stmts if they refer to removed parameters.
33319 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33322 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33324 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33325 using SWI48 mode attribute.
33327 2013-04-02 Wei Mi <wmi@google.com>
33329 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33330 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33331 *<rotate_insn><mode>3_mask in i386.md.
33333 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33335 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33337 2013-04-02 Richard Biener <rguenther@suse.de>
33339 PR tree-optimization/56778
33340 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33341 Runtime alias tests are not supported for gather loads.
33342 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33343 stmts referenced from SSA operands before updating SSA form.
33345 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33346 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33348 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33349 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33350 * config/arm/cortex-a53.md: New file.
33351 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33352 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33353 * config/arm/arm.c (arm_issue_rate): Likewise.
33354 * config/arm/arm-tune.md: Regenerate
33355 * config/arm/arm-tables.opt: Regenerate.
33356 * config/arm/arm-cores.def: Add cortex-a53.
33358 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33360 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33363 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33365 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33366 scalar load/store operations using B/H registers.
33367 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33369 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33371 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33373 * config/aarch64/aarch64.c
33374 (aarch64_simd_scalar_immediate_valid_for_move): New.
33375 * config/aarch64/aarch64-protos.h
33376 (aarch64_simd_scalar_immediate_valid_for_move): New.
33377 * config/aarch64/constraints.md (Dh, Dq): New.
33378 * config/aarch64/iterators.md (hq): New.
33380 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33382 * reorg.c (get_branch_condition): Deal with conditional returns.
33383 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33385 2013-04-01 Wei Mi <wmi@google.com>
33387 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33388 Truncate operand 2 using %b asm operand modifier.
33389 (*<shift_insn><mode>3_mask): Ditto.
33390 (*<rotate_insn><mode>3_mask): Ditto.
33392 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33394 PR middle-end/56798
33395 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33397 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33399 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33401 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33403 2013-03-30 Lawrence Crowl <crowl@google.com>
33405 * dse.c (clear_alias_sets): Remove never set.
33406 (disqualified_clear_alias_sets): Remove never set.
33407 (clear_alias_mode_pool): Remove never set.
33408 (dse_step0): Remove condition that is never true.
33409 (canon_address): Remove condition that is never true.
33410 (dse_step7): Remove condition that is never true.
33411 (rest_of_handle_dse): Remove condition that is never true.
33412 (rest_of_handle_dse::did_global): Remove never read from above.
33413 (dse_step2_spill): Remove never called from above.
33414 (dse_step5_spill): Remove never called from above.
33416 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33418 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33419 JUMP_TABLE_DATA changes.
33420 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33421 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33422 (Insns) <jump_table_data>: New entry.
33423 * doc/tm.texi: Regenerate.
33425 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33427 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33428 for table jump at the end of a basic block using tablejump_p.
33429 * targhooks.c (default_invalid_within_doloop): Likewise.
33430 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33431 target hook implementation that is identical to the default hook.
33432 (rs6000_invalid_within_doloop): Remove.
33434 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33435 unused variable from tablejump_p call.
33437 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33438 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33439 (INSN_DELETED_P): Likewise.
33440 (emit_jump_table_data): New prototype.
33441 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33442 after 4th as unused.
33443 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33444 * sched-vis.c (print_insn): Likewise.
33445 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33446 insn for compatibility with back ends that use next_active_insn to
33447 identify jump table data.
33448 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33449 (remove_insn): Likewise.
33450 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33452 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33453 (emit_jump_table_data): New function.
33455 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33456 basic block, a JUMP_TABLE_DATA never is.
33457 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33458 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33459 off from code handling real insns.
33460 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33461 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33462 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33463 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33464 is not a NONDEBUG_INSN_P.
33465 * ira-costs.c (scan_one_insn): Likewise.
33466 * jump.c (mark_all_labels): Likewise.
33467 (mark_jump_label_1): Likewise.
33468 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33469 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33471 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33472 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33473 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33474 JUMP_TABLE_DATA_P insns.
33475 (calculate_elim_costs_all_insns): Likewise.
33476 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33477 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33478 (delete_output_reload): Code style fixups.
33479 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33480 insn flags on this non-insn.
33481 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33482 as scheduling barriers, for pre-change compatibility.
33483 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33484 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33486 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33487 redundant JUMP_TABLE_DATA_P test.
33488 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33489 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33490 (frv_for_each_packet): Likewise.
33491 * config/i386/i386.c (min_insn_size): Likewise.
33492 (ix86_avoid_jump_mispredicts): Likewise.
33493 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33494 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33495 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33496 (mips16_insn_length): Robustify.
33497 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33498 (mips16_split_long_branches): Likewise.
33499 * config/pa/pa.c (pa_combine_instructions): Likewise.
33500 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33501 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33502 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33503 as contributing to pool range lengths.
33504 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33505 Remove redundant JUMP_TABLE_DATA_P test.
33506 (sh_loop_align): Likewise.
33507 (split_branches): Likewise.
33508 (sh_insn_length_adjustment): Likewise.
33509 * config/spu/spu.c (get_branch_target): Likewise.
33511 2013-03-29 Jan Hubicka <jh@suse.cz>
33513 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33514 gcov streaming; stream hot bb threshold to ltrans.
33515 * predict.c (get_hot_bb_threshold): Break out from ....
33516 (maybe_hot_count_p): ... here.
33517 (set_hot_bb_threshold): New function.
33518 * lto-section-in.c (lto_section_name): Add profile.
33519 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33520 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33521 and data-streamer.h
33522 (histogram_entry): New structure.
33523 (histogram, histogram_pool): New global vars.
33524 (histogram_hash): New structure.
33525 (histogram_hash::hash): New method.
33526 (histogram_hash::equal): Likewise.
33527 (account_time_size): New function.
33528 (cmp_counts): New function.
33529 (dump_histogram): New function.
33530 (ipa_profile_generate_summary): New function.
33531 (ipa_profile_write_summary): New function.
33532 (ipa_profile_read_summary): New function.
33533 (ipa_profile): Decide on threshold.
33534 (pass_ipa_profile): Add ipa_profile_write_summary and
33535 ipa_profile_read_summary.
33536 * Makefile.in (ipa.o): Update dependencies.
33537 * lto-streamer.h (LTO_section_ipa_profile): New section.
33539 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33541 * tree.h (VAR_P): New.
33543 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33546 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33548 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33550 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33551 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33552 (control_flow_insn_p): Likewise.
33553 * cfgrtl.c (duplicate_insn_chain): Likewise.
33554 * final.c (get_attr_length_1): Likewise.
33555 (shorten_branches): Likewise.
33556 (final_scan_insn): Likewise.
33557 * function.c (instantiate_virtual_regs): Likewise.
33558 * gcse.c (insert_insn_end_basic_block): Likewise.
33559 * ira-costs.c (scan_one_insn): Likewise.
33560 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33561 * lra.c (check_rtl): Likewise.
33562 * reload1.c (elimination_costs_in_insn): Likewise.
33563 * reorg.c (follow_jumps): Likewise.
33565 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33566 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33567 (thumb_far_jump_used_p): Likewise.
33568 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33569 (workaround_speculation): Likewise.
33570 (add_sched_insns_for_speculation): Likewise.
33571 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33572 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33573 (frv_for_each_packet): Likewise.
33574 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33575 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33576 (final_emit_insn_group_barriers): Likewise.
33577 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33578 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33579 (mips16_insn_length): Likewise.
33580 * config/pa/pa.c (pa_reorg): Likewise.
33581 (pa_combine_instructions): Likewise.
33582 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33583 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33584 (sh_reorg): Likewise.
33585 (split_branches): Likewise.
33586 * config/spu/spu.c (get_branch_target): Likewise.
33588 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33591 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33593 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33594 Fix declaration name.
33596 2013-03-28 Lawrence Crowl <crowl@google.com>
33598 * graphds.h (struct graph.indicies): Remove unused.
33599 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33600 (SCOP_ORIGINAL_PDDRS): Remove unused.
33601 * sese.h (extern insert_loop_close_phis): Removed unused.
33602 (extern insert_guard_phis): Removed unused.
33603 (extern ivtype_map_elt_info): Removed unused.
33604 (new_ivtype_map_elt): Removed unused.
33605 * sese.c (ivtype_map_elt_info): Removed unused.
33607 2013-03-28 Lawrence Crowl <crowl@google.com>
33609 * Makefile.in: Add several missing include dependences.
33611 (test-dump.o): New. This object is not added to any executable,
33612 but is present for ad-hoc testing.
33614 (debug (const bitmap_head_def &)): New.
33615 (debug (const bitmap_head_def *)): New.
33617 (extern debug (const bitmap_head_def &)): New.
33618 (extern debug (const bitmap_head_def *)): New.
33620 (debug (edge_def &)): New.
33621 (debug (edge_def *)): New.
33623 (debug (basic_block_def &)): New.
33624 (debug (basic_block_def *)): New.
33626 (dump_node (const_tree, int, FILE *)): Correct source file.
33628 (debug (die_struct &)): New.
33629 (debug (die_struct *)): New.
33631 (extern debug (die_struct &)): New.
33632 (extern debug (die_struct *)): New.
33633 * gimple-pretty-print.c
33634 (debug (gimple_statement_d &)): New.
33635 (debug (gimple_statement_d *)): New.
33636 * gimple-pretty-print.h
33637 (extern debug (gimple_statement_d &)): New.
33638 (extern debug (gimple_statement_d *)): New.
33640 (debug (ira_allocno_copy &)): New.
33641 (debug (ira_allocno_copy *)): New.
33642 (debug (ira_allocno &)): New.
33643 (debug (ira_allocno *)): New.
33645 (extern debug (ira_allocno_copy &)): New.
33646 (extern debug (ira_allocno_copy *)): New.
33647 (extern debug (ira_allocno &)): New.
33648 (extern debug (ira_allocno *)): New.
33650 (debug (live_range &)): New.
33651 (debug (live_range *)): New.
33653 (debug (lra_live_range &)): New.
33654 (debug (lra_live_range *)): New.
33656 (debug (lra_live_range &)): New.
33657 (debug (lra_live_range *)): New.
33659 (debug (omega_pb_d &)): New.
33660 (debug (omega_pb_d *)): New.
33662 (extern debug (omega_pb_d &)): New.
33663 (extern debug (omega_pb_d *)): New.
33665 (debug (const rtx_def &)): New.
33666 (debug (const rtx_def *)): New.
33668 (debug_tree (tree): Move within file.
33669 (debug_raw (const tree_node &)): New.
33670 (debug_raw (const tree_node *)): New.
33671 (dump_tree_via_hooks (const tree_node *, int)): New.
33672 (debug (const tree_node &)): New.
33673 (debug (const tree_node *)): New.
33674 (debug_verbose (const tree_node &)): New.
33675 (debug_verbose (const tree_node *)): New.
33676 (debug_head (const tree_node &)): New.
33677 (debug_head (const tree_node *)): New.
33678 (debug_body (const tree_node &)): New.
33679 (debug_body (const tree_node *)): New.
33680 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33681 (debug (vec<tree, va_gc> &)): New.
33682 (debug (vec<tree, va_gc> *)): New.
33684 (extern debug (const rtx_def &)): New.
33685 (extern debug (const rtx_def *)): New.
33687 (debug_raw (simple_bitmap_def &)): New.
33688 (debug_raw (simple_bitmap_def *)): New.
33689 (debug (simple_bitmap_def &)): New.
33690 (debug (simple_bitmap_def *)): New.
33692 (extern debug (simple_bitmap_def &)): New.
33693 (extern debug (simple_bitmap_def *)): New.
33694 (extern debug_raw (simple_bitmap_def &)): New.
33695 (extern debug_raw (simple_bitmap_def *)): New.
33697 (debug (vinsn_def &)): New.
33698 (debug (vinsn_def *)): New.
33699 (debug_verbose (vinsn_def &)): New.
33700 (debug_verbose (vinsn_def *)): New.
33701 (debug (expr_def &)): New.
33702 (debug (expr_def *)): New.
33703 (debug_verbose (expr_def &)): New.
33704 (debug_verbose (expr_def *)): New.
33705 (debug (vec<rtx> &)): New.
33706 (debug (vec<rtx> *)): New.
33708 (extern debug (vinsn_def &)): New.
33709 (extern debug (vinsn_def *)): New.
33710 (extern debug_verbose (vinsn_def &)): New.
33711 (extern debug_verbose (vinsn_def *)): New.
33712 (extern debug (expr_def &)): New.
33713 (extern debug (expr_def *)): New.
33714 (extern debug_verbose (expr_def &)): New.
33715 (extern debug_verbose (expr_def *)): New.
33716 (extern debug (vec<rtx> &)): New.
33717 (extern debug (vec<rtx> *)): New.
33719 (_list_iter_cond_expr): Make inline instead of static.
33721 (debug (sreal &)): New.
33722 (debug (sreal *)): New.
33724 (extern debug (sreal &)): New.
33725 (extern debug (sreal *)): New.
33727 (extern debug_raw (const tree_node &)): New.
33728 (extern debug_raw (const tree_node *)): New.
33729 (extern debug (const tree_node &)): New.
33730 (extern debug (const tree_node *)): New.
33731 (extern debug_verbose (const tree_node &)): New.
33732 (extern debug_verbose (const tree_node *)): New.
33733 (extern debug_head (const tree_node &)): New.
33734 (extern debug_head (const tree_node *)): New.
33735 (extern debug_body (const tree_node &)): New.
33736 (extern debug_body (const tree_node *)): New.
33737 (extern debug (vec<tree, va_gc> &)): New.
33738 (extern debug (vec<tree, va_gc> *)): New.
33740 (debug (struct loop &)): New.
33741 (debug (struct loop *)): New.
33742 (debug_verbose (struct loop &)): New.
33743 (debug_verbose (struct loop *)): New.
33744 * tree-dump.c: Add header dependence.
33746 (extern debug (struct loop &)): New.
33747 (extern debug (struct loop *)): New.
33748 (extern debug_verbose (struct loop &)): New.
33749 (extern debug_verbose (struct loop *)): New.
33751 (debug (data_reference &)): New.
33752 (debug (data_reference *)): New.
33753 (debug (vec<data_reference_p> &)): New.
33754 (debug (vec<data_reference_p> *)): New.
33755 (debug (vec<ddr_p> &)): New.
33756 (debug (vec<ddr_p> *)): New.
33758 (extern debug (data_reference &)): New.
33759 (extern debug (data_reference *)): New.
33760 (extern debug (vec<data_reference_p> &)): New.
33761 (extern debug (vec<data_reference_p> *)): New.
33762 (extern debug (vec<ddr_p> &)): New.
33763 (extern debug (vec<ddr_p> *)): New.
33765 (debug (pt_solution &)): New.
33766 (debug (pt_solution *)): New.
33768 (extern debug (pt_solution &)): New.
33769 (extern debug (pt_solution *)): New.
33771 (debug (_var_map &)): New.
33772 (debug (_var_map *)): New.
33773 (debug (tree_live_info_d &)): New.
33774 (debug (tree_live_info_d *)): New.
33776 (extern debug (_var_map &)): New.
33777 (extern debug (_var_map *)): New.
33778 (extern debug (tree_live_info_d &)): New.
33779 (extern debug (tree_live_info_d *)): New.
33781 2013-03-28 Jan Hubicka <jh@suse.cz>
33783 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33785 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33787 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33788 record only when desired or required.
33790 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33792 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33793 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33795 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33797 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33798 (*andsi3_compare0_uxtw): New pattern.
33799 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33800 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33802 2013-03-28 Jan Hubicka <jh@suse.cz>
33804 * data-streamer-in.c (streamer_read_gcov_count): New function.
33805 * gimple-streamer-out.c: Include value-prof.h.
33806 (output_gimple_stmt): Output histogram.
33807 (output_bb): Use streamer_write_gcov_count.
33808 * value-prof.c: Include data-streamer.h
33809 (dump_histogram_value): Add HIST_TYPE_MAX.
33810 (stream_out_histogram_value): New function.
33811 (stream_in_histogram_value): New function.
33812 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33813 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33814 * data-streamer-out.c (streamer_write_gcov_count): New function.
33815 (streamer_write_gcov_count_stream): New function.
33816 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33817 (lto_output_node): Likewise.
33818 (input_node, input_edge): Likewise.
33819 * lto-streamer-out.c (output_cfg): Update streaming.
33820 * lto-streamer-in.c (input_cfg): Likewise.
33821 * data-streamer.h (streamer_write_gcov_count,
33822 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33823 * gimple-streamer-in.c: Include value-prof.h
33824 (input_gimple_stmt): Input histograms.
33825 (input_bb): Update profile streaming.
33827 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33829 * genmodes.c (emit_max_int): New function.
33830 (emit_insn_modes_h): Added call to emit_max_function.
33831 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33833 * machmode.def: Fixed comment.
33835 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33837 * combine.c (try_combine): Removed useless assert.
33838 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33840 2013-03-28 Marek Polacek <polacek@redhat.com>
33841 Richard Biener <rguenther@suse.de>
33843 PR tree-optimization/56695
33844 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33845 build signed result of a vector comparison.
33846 * tree-cfg.c (verify_gimple_comparison): Check that a result
33847 of a vector comparison has signed type.
33849 2013-03-28 Richard Biener <rguenther@suse.de>
33851 PR tree-optimization/37021
33852 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33853 do not restrict gaps between groups.
33854 * tree-vect-stmts.c (vectorizable_load): Properly account for
33855 a gap between groups.
33857 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33859 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33860 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33863 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33865 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33866 * doc/extend.texi (Named Address Spaces): Ditto.
33867 (Variable Attributes): Ditto.
33869 2013-03-27 Kai Tietz <ktietz@redhat.com>
33871 * config.build: Add support for cygwin x64 target.
33872 * config.gcc: Likewise.
33873 * config.host: Likewise.
33874 * configure.ac: Likewise
33875 * configure: Regenerated.
33877 2013-03-27 Kai Tietz <ktietz@redhat.com>
33879 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33880 * config/i386/t-cygwin-w64: New file.
33881 * config/i386/cygwin-w64.h: New file.
33882 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33883 and add support for x64-cygwin target.
33884 (CPP_SPEC): Likewise.
33885 (CXX_WRAP_SPEC_LIST): Undefine before define.
33886 (LIBGCJ_SONAME): Use 15 as version.
33888 2013-03-27 Richard Biener <rguenther@suse.de>
33890 PR tree-optimization/56716
33891 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33892 dumping for ref nodes.
33894 2013-03-27 Martin Jambor <mjambor@suse.cz>
33896 PR tree-optimization/55334
33897 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33898 restricted pointers to arrays.
33900 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33902 * Makefile.in (.SUFFIXES): Add .cc.
33903 (.c.o): Apply same recipe for implicit rule .cc.o.
33905 2013-03-27 Richard Biener <rguenther@suse.de>
33907 PR tree-optimization/37021
33908 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33909 REALPART/IMAGPART_EXPRs around the supported refs.
33910 * tree-ssa-structalias.c (find_func_aliases): Assume that
33911 floating-point values are not used to transfer pointers.
33913 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33915 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33916 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33917 * doc/tm.texi: Regenerate.
33918 * targhooks.h (default_has_ifunc_p): New.
33919 * targhooks.c (default_has_ifunc_p): Ditto.
33920 * config/linux-protos.h: New file.
33921 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33922 hook for linux which disables support of indirect functions in android.
33923 * config/linux-android.c: New file.
33924 * config/t-linux-android.c: Ditto.
33925 * config.gcc: Added new object file linux-android.o.
33926 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33927 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33928 * varasm.c (do_assemble_alias): Likewise.
33929 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33930 doesn't support indirect functions.
33931 * configure: Regenerate.
33933 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33936 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33937 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33940 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33942 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33944 2013-03-27 Terry Guo <terry.guo@arm.com>
33946 * config/arm/arm-cores.def: Added core cortex-r7.
33947 * config/arm/arm-tune.md: Regenerated.
33948 * config/arm/arm-tables.opt: Regenerated.
33949 * doc/invoke.texi: Added entry for core cortex-r7.
33951 2013-03-27 Walter Lee <walt@tilera.com>
33953 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33954 double-decrement of next_scratch_regno.
33956 2013-03-27 Walter Lee <walt@tilera.com>
33958 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33960 (insn_v1mulus): Ditto.
33961 (insn_v2muls): Ditto.
33963 2013-03-27 Walter Lee <walt@tilera.com>
33965 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33966 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33968 2013-03-27 Walter Lee <walt@tilera.com>
33970 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33971 (*sibcall_value): Ditto.
33973 2013-03-27 Walter Lee <walt@tilera.com>
33975 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33976 (insn_mnz_v8qi): ... this ...
33977 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33979 (insn_v<n>mnz): Replaced by ...
33980 (insn_v1mnz): ... this ...
33981 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33983 (insn_mz_<mode>): Replaced by ...
33984 (insn_mz_v8qi): ... this ...
33985 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33987 (insn_v<n>mz): Replaced by ...
33988 (insn_v1mz): ... this ...
33989 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33992 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33994 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33996 2013-03-26 Roland McGrath <mcgrathr@google.com>
33998 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33999 than fprintf with a non-constant, non-format string.
34001 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34003 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34004 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34005 operand 0 predicate.
34006 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34007 attribute. Use general_x64nomem_operand as operand 1 predicate.
34008 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34009 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34010 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34011 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34012 (mov<mode>_insv_1): Remove expander. Merge insn with
34013 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34014 Use general_x64nomem_operand as operand 1 predicate.
34015 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34016 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34017 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34018 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34019 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34020 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34021 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34022 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34023 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34024 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34025 (general_x64nomem_operand): Ditto.
34027 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34029 * config/rtems.opt: Add -pthread option.
34031 2013-03-26 Richard Biener <rguenther@suse.de>
34033 * alias.c (find_base_term): Avoid redundant and not used recursion.
34034 (base_alias_check): Get the initial base term from the caller.
34035 (true_dependence_1): Compute and pass base terms to base_alias_check.
34036 (write_dependence_p): Likewise.
34037 (may_alias_p): Likewise.
34039 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34041 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34042 PC-relative load in SI modes and above only.
34044 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34046 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34047 * config/arm/iwmmxt.md (WCGR0): Update.
34048 (WCGR1, WCGR2, WCGR3): Likewise.
34050 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34052 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34053 Use x64 and nox64 isa attributes.
34055 2013-03-26 Richard Biener <rguenther@suse.de>
34057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34058 alignment computations and rely on get_object_alignment_1
34059 for the !TYPE_P case.
34060 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34062 2013-03-26 Walter Lee <walt@tilera.com>
34064 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34065 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34067 2013-03-25 Jeff Law <law@redhat.com>
34069 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34070 check for INTEGRAL_TYPE_P that was missing due to checking in
34071 wrong version of prior patch.
34073 2013-03-25 Walter Lee <walt@tilera.com>
34075 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34076 TILEGX_INSN_SHUFFLEBYTES1.
34077 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34079 (tilegx_builtins): Ditto.
34080 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34082 2013-03-25 Walter Lee <walt@tilera.com>
34084 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34085 (floatunssisf2): New pattern.
34086 (floatsidf2): New pattern.
34087 (floatunssidf2): New pattern.
34089 2013-03-25 Walter Lee <walt@tilera.com>
34091 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34092 tests for constraint J, K, N, P.
34094 2013-03-25 Walter Lee <walt@tilera.com>
34096 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34097 Use indirect/pcrel encoding.
34098 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34101 2013-03-25 Steve Ellcey <sellcey@mips.com>
34103 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34104 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34105 * config/mips/mips.c (mips_option_override): Set IMADD default.
34106 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34107 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34108 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34109 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34110 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34112 2013-03-25 Jeff Law <law@redhat.com>
34114 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34115 slightly to avoid creating and folding useless trees. Simplify
34116 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34118 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34120 * config/i386/i386.md (*zero_extendsidi2): Merge with
34121 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34122 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34123 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34124 targets. Clarify comment.
34126 2013-03-25 Martin Jambor <mjambor@suse.cz>
34128 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34129 pass-through jump functions differently.
34130 (ipa_read_jump_function): Likewise. Also use setter functions to set
34133 2013-03-25 Martin Jambor <mjambor@suse.cz>
34135 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34136 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34138 (ipa_get_indirect_edge_target): New function.
34139 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34140 ipa_get_indirect_edge_target. Update all callers.
34141 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34142 ipa_get_indirect_edge_target_1 instead of calling
34143 ipa_get_indirect_edge_target.
34144 (create_specialized_node): Pass aggvlas to
34145 ipcp_discover_new_direct_edges.
34147 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34149 * config/arm/arm.md (f_sels, f_seld): New types.
34150 (*cmov<mode>): New pattern.
34151 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34154 2013-03-25 Kai Tietz <ktietz@redhat.com>
34156 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34157 POSIX-printf for mingw-hosted builds.
34159 2013-03-25 Richard Biener <rguenther@suse.de>
34161 PR middle-end/56694
34162 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34163 must-not-throw stmt location.
34165 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34167 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34168 Emit load-acquire versions when acq is true.
34169 (arm_emit_store_exclusive): Add rel parameter.
34170 Emit store-release versions when rel is true.
34171 (arm_split_compare_and_swap): Use acquire-release instructions
34173 of barriers when appropriate.
34174 (arm_split_atomic_op): Likewise.
34175 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34176 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34177 (VUNSPEC_SLX): Likewise.
34178 (VUNSPEC_LDA): Likewise.
34179 (VUNSPEC_STL): Likewise.
34180 * config/arm/sync.md (atomic_load<mode>): New pattern.
34181 (atomic_store<mode>): Likewise.
34182 (arm_load_acquire_exclusive<mode>): Likewise.
34183 (arm_load_acquire_exclusivesi): Likewise.
34184 (arm_load_acquire_exclusivedi): Likewise.
34185 (arm_store_release_exclusive<mode>): Likewise.
34187 2013-03-25 Catherine Moore <clm@codesourcery.com>
34189 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34190 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34191 * config/mip/predicates.md (lwsp_swsp_operand,
34192 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34193 sb16_operand, db4_operand, db7_operand, ib3_operand,
34194 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34195 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34196 andi16_operand): New predicates.
34197 * config/mips/mips.md (compression): New attribute.
34198 (enabled): New attribute.
34199 (length): Consider compression in computing length.
34200 (shift_compression): New code attribute.
34201 (*add<mode>3): New operands. Record compression.
34202 (sub<mode>3): Likewise.
34203 (one_cmpl<mode>2): Likewise.
34204 (*and<mode>3): Likewise.
34205 (*ior<mode>3): Likewise.
34206 (unnamed pattern for xor): Likewise.
34207 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34208 (*<optab><mode>3): Likewise.
34209 (*mov<mode>_internal: Likewise.
34210 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34211 (mips_unsigned_immediate_p): New.
34212 (umips_lwsp_swsp_address_p): New.
34213 (m16_based_address_p): New.
34214 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34215 (mips_unsigned_immediate_p): New prototype.
34216 (lwsp_swsp_address_p): New prototype.
34217 (m16_based_address_p): New prototype.
34218 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34219 (mips_signed_immediate_p): New function.
34220 (m16_based_address_p): New function.
34221 (lwsp_swsp_address_p): New function.
34222 (mips_print_operand_punctuation): Recognize short delay slot insns
34223 for microMIPS.add<mode>3"
34225 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34228 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34229 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34231 2013-03-25 Richard Biener <rguenther@suse.de>
34233 PR tree-optimization/56689
34234 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34237 2013-03-25 Richard Biener <rguenther@suse.de>
34239 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34241 (memory_references): Likewise.
34242 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34243 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34244 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34245 (gather_mem_refs_in_loops): Fold into ...
34246 (analyze_memory_references): ... this. Move initialization
34247 to tree_ssa_lim_initialize.
34248 (fill_always_executed_in): Rename to ...
34249 (fill_always_executed_in_1): ... this.
34250 (fill_always_executed_in): Move contains_call computation to
34251 this new function from ...
34252 (tree_ssa_lim_initialize): ... here.
34253 (tree_ssa_lim): Call fill_always_executed_in.
34255 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34257 * postreload.c (reload_combine): Fix code detecting returns.
34259 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34261 * function.c (emit_use_return_register_into_block): On cc0 targets,
34262 do not emit the sequence between cc0 setter and user.
34264 2013-03-25 Kai Tietz <ktietz@redhat.com>
34266 * config/i386/predicates.md (local_symbolic_operand): Interpret
34267 dll-imported symbols as none-local.
34269 2013-03-25 Richard Biener <rguenther@suse.de>
34271 * tree-ssa-loop-im.c (struct depend): Remove.
34272 (struct lim_aux_data): Make depends a vec of gimples.
34273 (free_lim_aux_data): Adjust.
34274 (add_dependency): Likewise.
34275 (set_level): Likewise.
34277 2013-03-25 Richard Biener <rguenther@suse.de>
34279 PR middle-end/56434
34280 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34281 the pointer returned by calls with ECF_MALLOC set.
34283 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34285 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34287 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34289 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34290 using MMXMODE mode iterator.
34291 (*move<mode>_internal): Merge with *movv2sf_internal and
34292 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34294 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34296 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34297 (record_last_mem_set_info): Likewise.
34299 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34300 of XNEWVEC followed by memset.
34301 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34303 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34305 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34306 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34307 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34308 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34309 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34310 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34311 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34312 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34313 BARRIER_P instead of GET_CODE.
34315 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34317 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34318 inaccuracy in the probing code.
34320 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34321 (ctrapdi4): Likewise.
34323 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34325 * calls.c (expand_call): Add missing guard to code handling return
34326 of non-BLKmode structures in MSB.
34327 * function.c (expand_function_end): Likewise.
34329 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34331 * combine.c (try_combine): Adjust comment. Do not add the set of
34332 insn #0 if the destination indirectly is set or dies in insn #2.
34333 Tidy up code to distribute a new note.
34335 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34337 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34338 also for alternatives 16 and 17.
34340 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34342 * config/i386/sse.md (*mov<mode>_internal): Merge with
34343 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34344 Emit insn template depending on type attribute. Use
34345 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34346 movd instead of movq mnemonic for interunit moves. Rewrite mode
34347 attribute calculation. Remove unit attribute calculation.
34348 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34349 Set prefix_data16 attribute for DImode ssemov types.
34350 Use Ym instead of y for SSE-MMX conversion alternatives.
34351 Reorder operand constraints.
34353 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34355 * df.h (df_insn_delete): Adjust prototype.
34356 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34357 and let it decide whether mark the basic block dirty.
34358 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34359 * df-scan.c (df_insn_info_delete): New helper function, split
34360 off from df_insn_delete.
34361 (df_scan_free_bb_info): Use it.
34362 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34364 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34365 that the insn is actually an insn and it has a non-NULL basic block.
34366 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34368 2013-03-22 Richard Biener <rguenther@suse.de>
34370 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34372 (mem_ref_alloc): Do not allocate them.
34373 (refs_independent_p): Do not query or maintain a cache.
34375 2013-03-22 Richard Biener <rguenther@suse.de>
34377 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34378 (gather_mem_refs_in_loops): Do not compute it.
34379 (analyze_memory_references): Do not allocate it.
34380 (tree_ssa_lim_finalize): Do not free it.
34381 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34383 2013-03-22 Richard Biener <rguenther@suse.de>
34385 * is-a.h (as_a): Use gcc_checking_assert.
34387 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34389 * config/aarch64/aarch64.c (aarch64_print_operand): New
34390 format specifier for printing a constant in hex.
34391 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34392 format specifier for printing second operand.
34394 2013-03-22 Richard Biener <rguenther@suse.de>
34396 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34398 (gather_mem_refs_in_loops): Perform store accumulation here.
34399 (create_vop_ref_mapping_loop): Remove.
34400 (create_vop_ref_mapping): Likewise.
34401 (analyze_memory_references): Initialize refs_stored_in_loop.
34402 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34403 (record_indep_loop): Remove.
34404 (record_dep_loop): New function.
34405 (ref_indep_loop_p_1): Adjust to only walk over references
34406 in the loop, not its subloops.
34407 (ref_indep_loop_p): Rename to ...
34408 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34409 maintaining a more fine-grained cache.
34410 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34411 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34413 2013-03-22 Richard Biener <rguenther@suse.de>
34415 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34416 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34417 aggregate mem_ref_loc.
34418 (free_mem_ref_locs): Inline into ...
34419 (memref_free): ... this and adjust.
34420 (mem_ref_alloc): Adjust.
34421 (mem_ref_locs_alloc): Remove.
34422 (record_mem_ref_loc): Adjust.
34423 (get_all_locs_in_loop): Rewrite into ...
34424 (for_all_locs_in_loop): ... this iterator.
34425 (rewrite_mem_ref_loc): New functor.
34426 (rewrite_mem_refs): Use for_all_locs_in_loop.
34427 (sm_set_flag_if_changed): New functor.
34428 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34429 (ref_always_accessed): New functor.
34430 (ref_always_accessed_p): Use for_all_locs_in_loop.
34432 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34434 * tree-pass.h (PROP_gimple_lvec): New.
34435 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34436 (init_optimization_passes): Move pass_lower_vector.
34437 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34439 (pass_lower_vector): Provide PROP_gimple_lvec.
34440 (pass_lower_vector_ssa): Likewise.
34441 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34443 2013-03-21 Mark Wielaard <mjw@redhat.com>
34445 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34447 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34449 * config/i386/i386.md (*movdi_internal): Disparage slightly
34450 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34451 conversion alternatives.
34453 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34455 PR middle-end/48087
34456 * diagnostic.def (DK_WERROR): New kind.
34457 * diagnostic.h (werrorcount): Define.
34458 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34459 promoted to DK_ERROR, increment DK_WERROR counter instead of
34461 * toplev.c (toplev_main): Call print_ignored_options even if
34462 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34463 even if just werrorcount is non-zero.
34466 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34468 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34469 (string_cst_pool_decl): New function.
34470 (optimize_one_addr_into_implicit_ptr): New function.
34471 (resolve_addr_in_expr): Optimize DWARF location expression
34472 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34473 which doesn't live in memory, but has DW_AT_location or
34474 DW_AT_const_value, or refers to a string literal, into
34475 DW_OP_GNU_implicit_pointer.
34476 (optimize_location_into_implicit_ptr): New function.
34477 (resolve_addr): If removing DW_AT_location of a variable because
34478 it was DW_OP_addr of address of the variable, but the variable doesn't
34479 live in memory, try to emit const value attribute for the initializer.
34481 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34483 * tree.h (VECTOR_TYPE_P): New macro.
34484 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34485 TYPE_MODE): Use it.
34486 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34487 VEC_COND_EXPR cannot be lvalues.
34488 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34490 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34492 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34493 Restrict the transformation to equal modes.
34495 2013-03-21 Richard Biener <rguenther@suse.de>
34497 PR tree-optimization/39326
34498 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34499 (MEM_ANALYZABLE): Adjust.
34500 (record_mem_ref_loc): Move bitmap ops ...
34501 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34502 unanalyzable refs, do not record locations for it.
34503 (analyze_memory_references): Allocate ref zero as shared
34505 (refs_independent_p): Do not test for unanalyzed mems here.
34506 (ref_indep_loop_p_1): Special-case disambiguation against
34507 the unanalyzed ref.
34508 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34510 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34512 * config/arm/arm-protos.h (tune_params): Add
34513 prefer_neon_for_64bits field.
34514 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34515 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34516 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34517 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34518 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34519 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34520 (arm_option_override): Handle -mneon-for-64bits new option.
34521 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34522 (prefer_neon_for_64bits): Declare new variable.
34523 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34524 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34525 (arch_enabled): Handle new arch types. Remove support for onlya8
34527 (one_cmpldi2): Use new arch names.
34528 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34529 * config/arm/arm.opt (mneon-for-64bits): Add option.
34530 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34531 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34532 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34534 * doc/invoke.texi (-mneon-for-64bits): Document.
34536 2013-03-21 Richard Biener <rguenther@suse.de>
34538 PR tree-optimization/39326
34539 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34540 (sort_bbs_in_loop_postorder_cmp): New function.
34541 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34543 2013-03-21 Richard Biener <rguenther@suse.de>
34545 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34546 (vect_insert_into_interleaving_chain): Likewise.
34547 (vect_drs_dependent_in_basic_block): Inline ...
34548 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34550 (vect_analyze_data_ref_dependence): ... here. Simplify.
34551 (vect_check_interleaving): Simplify.
34552 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34553 (vect_slp_analyze_data_ref_dependences): ... this new function.
34554 (dr_group_sort_cmp): New function.
34555 (vect_analyze_data_ref_accesses): Compute data-reference groups
34556 here instead of in vect_analyze_data_ref_dependence. Use
34557 a more efficient algorithm.
34558 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34559 vect_slp_analyze_data_ref_dependences. Call
34560 vect_analyze_data_ref_accesses earlier.
34561 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34562 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34563 (vect_slp_analyze_data_ref_dependences): New prototype.
34565 2013-03-21 Richard Biener <rguenther@suse.de>
34567 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34568 ref is stored in the loop.
34569 (find_refs_for_sm): Walk only over all stores.
34570 (store_motion_loop): Allocate from lim_bitmap_obstack.
34571 (store_motion): Likewise.
34573 2013-03-21 Richard Biener <rguenther@suse.de>
34575 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34576 Update virtual SSA form.
34578 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34580 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34581 * configure: Regenerate.
34582 * config.in: Regenerate.
34583 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34584 if !HAVE_LD_EH_FRAME_CIEV3.
34586 2013-03-21 Richard Biener <rguenther@suse.de>
34588 * tree-cfg.c (verify_expr_no_block): New function.
34589 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34590 nor DECL_VALUE_EXPR have locations with associated blocks.
34591 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34592 (clear_unused_block_pointer): Remove code dealing with
34593 blocks in DECL_DEBUG_EXPR locations.
34595 2013-03-21 Richard Biener <rguenther@suse.de>
34597 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34598 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34599 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34600 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34601 instead of DECL_DEBUG_EXPR_IS_FROM.
34602 * gimplify.c (gimplify_modify_expr): Likewise.
34603 * tree-cfg.c (verify_expr_location_1): Likewise.
34604 * tree-complex.c (create_one_component_var): Likewise.
34605 * tree-sra.c (create_access_replacement): Likewise.
34606 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34607 (clear_unused_block_pointer): Likewise.
34608 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34609 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34610 * var-tracking.c (var_debug_decl): Likewise.
34611 (track_expr_p): Likewise.
34612 * tree-inline.c (add_local_variables): Likewise. Set
34613 DECL_HAS_DEBUG_EXPR_P after copying it.
34614 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34615 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34617 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34620 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34621 * configure: Regenerate.
34622 * config.in: Regenerate.
34623 * config/i386/i386.md (*movdf_internal): Use
34624 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34625 movd instead of movq mnemonic for interunit moves.
34626 (*movdi_internal): Ditto.
34628 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34630 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34631 (abd<mode>_3): New pattern.
34632 (aba<mode>_3): New pattern.
34633 (fabd<mode>_3): New pattern.
34635 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34637 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34638 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34639 occurrence of REGISTER_PREFIX as its empty string.
34641 2013-03-20 Jeff Law <law@redhat.com>
34643 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34644 addititional equivalences for equality comparisons between an SSA_NAME
34645 and a constant where the SSA_NAME was set from a widening conversion.
34647 2013-03-20 Walter Lee <walt@tilera.com>
34649 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34651 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34653 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34654 depending on type attribute.
34655 (*movti_internal): Ditto.
34656 (*movtf_internal): Ditto.
34657 (*movxf_internal): Ditto.
34658 (*movdf_internal): Ditto.
34659 (*movsf_internal): Ditto.
34661 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34663 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34664 maybe_vex for sselog1 and ssemov types.
34665 (*movdi_internal): Reorder operand constraints.
34666 (*movsi_internal): Ditto. Set prefix attribute to
34667 maybe_vex for sselog1 and ssemov types.
34668 (*movtf_internal): Set prefix attribute to maybe_vex
34669 for sselog1 and ssemov types.
34670 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34671 DImode ssemov types. Reorder operand constraints.
34672 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34673 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34674 attribute for SImode ssemov types. Reorder operand constraints.
34676 2013-03-20 Martin Jambor <mjambor@suse.cz>
34678 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34679 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34681 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34683 * config/rs6000/predicates.md (indexed_address, update_address_mem
34684 update_indexed_address_mem): New predicates.
34685 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34686 attribute for load/store instructions.
34687 * config/rs6000/dfp.md (movsd_store): Likewise.
34688 (movsd_load): Likewise.
34689 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34690 (unnamed HI->DI extend define_insn): Likewise.
34691 (unnamed SI->DI extend define_insn): Likewise.
34692 (unnamed QI->SI extend define_insn): Likewise.
34693 (unnamed QI->HI extend define_insn): Likewise.
34694 (unnamed HI->SI extend define_insn): Likewise.
34695 (unnamed HI->SI extend define_insn): Likewise.
34696 (extendsfdf2_fpr): Likewise.
34697 (movsi_internal1): Likewise.
34698 (movsi_internal1_single): Likewise.
34699 (movhi_internal): Likewise.
34700 (movqi_internal): Likewise.
34701 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34702 attribute for load/store instructions.
34703 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34705 (mov<mode>_softfloat): Likewise.
34706 (mov<mode>_hardfloat32): Likewise.
34707 (mov<mode>_hardfloat64): Likewise.
34708 (mov<mode>_softfloat64): Likewise.
34709 (movdi_internal32): Likewise.
34710 (movdi_internal64): Likewise.
34711 (probe_stack_<mode>): Likewise.
34713 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34715 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34716 floating point, and decimal floating point to reload iterator.
34718 * config/rs6000/constraints.md (wl constraint): New constraints to
34719 return FLOAT_REGS if certain options are used to reduce the number
34720 of separate patterns that exist in the file.
34721 (wx constraint): Likewise.
34722 (wz constraint): Likewise.
34724 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34725 -mdebug=reg, print wg, wl, wx, and wz constraints.
34726 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34727 Initialize the reload functions for 64-bit binary/decimal floating
34729 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34730 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34731 create the buffer on the stack to overcome not having a 32-bit
34733 (rs6000_emit_move): Likewise.
34734 (rs6000_secondary_memory_needed_rtx): Likewise.
34735 (rs6000_alloc_sdmode_stack_slot): Likewise.
34736 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34737 via xxlxor, just like DFmode 0.0.
34739 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34740 define as 1 if we are running on a power7 or newer.
34741 (enum r6000_reg_class_enum): Add new constraints.
34743 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34744 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34745 with other moves by using conditional constraits (wg). Use LFIWZX
34746 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34747 (movsd splitter): Likewise.
34748 (movsd_hardfloat): Likewise.
34749 (movsd_softfloat): Likewise.
34751 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34752 binary and decimal floating point moves.
34753 (fmove_ok): New attributes to combine binary and decimal floating
34754 point moves, and to combine power6x (mfpgpr) moves along normal
34756 (real_value_to_target): Likewise.
34757 (f32_lr): Likewise.
34758 (f32_lm): Likewise.
34759 (f32_li): Likewise.
34760 (f32_sr): Likewise.
34761 (f32_sm): Likewise.
34762 (f32_si): Likewise.
34763 (movsf): Combine binary and decimal floating point moves. Combine
34764 power6x (mfpgpr) moves with other moves by using conditional
34765 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34766 (mov<mode> for SFmode/SDmode); Likewise.
34767 (SFmode/SDmode splitters): Likewise.
34768 (movsf_hardfloat): Likewise.
34769 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34770 (movsf_softfloat): Likewise.
34771 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34773 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34774 wx and wz constraints.
34776 * config/rs6000/constraints.md (wg constraint): New constraint to
34777 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34779 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34783 -mdebug=reg, print wg, wl, wx, and wz constraints.
34784 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34785 Initialize the reload functions for 64-bit binary/decimal floating
34787 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34788 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34789 create the buffer on the stack to overcome not having a 32-bit
34791 (rs6000_emit_move): Likewise.
34792 (rs6000_secondary_memory_needed_rtx): Likewise.
34793 (rs6000_alloc_sdmode_stack_slot): Likewise.
34794 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34795 via xxlxor, just like DFmode 0.0.
34797 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34798 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34799 with other moves by using conditional constraits (wg). Use LFIWZX
34800 and STFIWX for loading SDmode on power7.
34801 (movdd splitters): Likewise.
34802 (movdd_hardfloat32): Likewise.
34803 (movdd_softfloat32): Likewise.
34804 (movdd_hardfloat64_mfpgpr): Likewise.
34805 (movdd_hardfloat64): Likewise.
34806 (movdd_softfloat64): Likewise.
34808 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34809 64-bit binary and decimal floating point moves.
34810 (FMOVE64X): Likewise.
34811 (movdf): Combine 64-bit binary and decimal floating point moves.
34812 Combine power6x (mfpgpr) moves with other moves by using
34813 conditional constraits (wg).
34814 (mov<mode> for DFmode/DDmode): Likewise.
34815 (DFmode/DDmode splitters): Likewise.
34816 (movdf_hardfloat32): Likewise.
34817 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34818 (movdf_softfloat32): Likewise.
34819 (movdf_hardfloat64_mfpgpr): Likewise.
34820 (movdf_hardfloat64): Likewise.
34821 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34822 (movdf_softfloat64): Likewise.
34823 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34824 (reload_<mode>_load): Move to later in the file so they aren't in
34825 the middle of the floating point move insns.
34826 (reload_<mode>_store): Likewise.
34828 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34832 constraint if -mdebug=reg.
34833 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34834 Enable using dd reload support if needed.
34836 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34837 binary and decimal floating point moves in rs6000.md.
34838 (movtd_internal): Likewise.
34840 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34841 decimal floating point moves.
34843 (movtf_internal): Likewise.
34844 (mov<mode>_internal, TDmode/TFmode): Likewise.
34845 (movtf_softfloat): Likewise.
34846 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34848 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34849 movdi_internal64, using wg constraint for move direct operations.
34850 (movdi_internal64): Likewise.
34852 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34853 MODES_TIEABLE_P for selected modes. Print the numerical value of
34854 the various virtual registers. Use GPR/FPR first/last values,
34855 instead of hard coding the register numbers. Print which modes
34856 have reload functions registered.
34857 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34858 settings before/after setting cpu, target and subtarget settings.
34859 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34860 and for secondary reload failures in rs6000_secondary_reload_inner.
34861 (rs6000_secondary_reload_fail): Likewise.
34862 (rs6000_secondary_reload_inner): Likewise.
34864 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34865 macros for first/last GPR and FPR registers.
34866 (LAST_GPR_REGNO): Likewise.
34867 (FIRST_FPR_REGNO): Likewise.
34868 (LAST_FPR_REGNO): Likewise.
34870 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34871 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34872 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34873 (vcond<mode><mode>): Likewise.
34874 (vcondu<mode><mode>): Likewise.
34875 (vector_gtu<mode>): Likewise.
34876 (vector_gte<mode>): Likewise.
34877 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34878 to prevent the compiler from converting DImode operations to TImode.
34879 (ior<mode>3): Likewise.
34880 (and<mode>3): Likewise.
34881 (one_cmpl<mode>2): Likewise.
34882 (nor<mode>3): Likewise.
34883 (andc<mode>3): Likewise.
34885 * config/rs6000/constraints.md (wt constraint): New constraint
34886 that returns VSX_REGS if TImode is allowed in VSX registers.
34888 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34889 constant under VSX.
34891 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34892 similar to TImode, but it is restricted to being in the GPRs.
34894 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34895 TImode to occupy a single VSX register.
34897 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34898 -mvsx-timode for power7/power8.
34899 (power7 cpu): Likewise.
34900 (power8 cpu): Likewise.
34902 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34903 sure that TFmode/TDmode take up two registers if they are ever
34904 allowed in the upper VSX registers.
34905 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34907 (rs6000_init_hard_regno_mode_ok): Likewise.
34908 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34909 constraint. Print if LRA is turned on.
34910 (rs6000_option_override_internal): Give an error if -mvsx-timode
34911 and VSX is not enabled.
34912 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34913 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34914 to reg+offset addressing. Use PTImode when checking offset
34915 addresses for validity.
34916 (reg_offset_addressing_ok_p): Likewise.
34917 (rs6000_legitimate_offset_address_p): Likewise.
34918 (rs6000_legitimize_address): Likewise.
34919 (rs6000_legitimize_reload_address): Likewise.
34920 (rs6000_legitimate_address_p): Likewise.
34921 (rs6000_eliminate_indexed_memrefs): Likewise.
34922 (rs6000_emit_move): Likewise.
34923 (rs6000_secondary_reload): Likewise.
34924 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34925 reloads to fpr registers to continue to use reg+offset addressing,
34926 but 64-bit reloads to altivec registers need reg+reg addressing.
34927 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34928 it. Treat LO_SUM like a PLUS operation.
34929 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34930 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34931 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34932 registers to share a register with a smaller sized type, since VSX
34933 puts scalars in the upper 64-bits.
34934 (print_operand): Add support for PTImode.
34935 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34936 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34937 registers, but don't have arithmetic support.
34938 (rs6000_memory_move_cost): Add test for VSX.
34939 (rs6000_opt_masks): Add -mvsx-timode.
34941 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34944 (VSr): Use wt constraint for TImode.
34945 (VSv): Drop TImode support.
34946 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34947 (vsx_movti_64bit): Likewise.
34948 (vsx_movti_32bit): Likewise.
34949 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34950 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34951 one '?' on the appropriate output constraint. Do not allow TImode
34952 logical operations on 32-bit systems.
34953 (vsx_ior<mode>3): Likewise.
34954 (vsx_xor<mode>3): Likewise.
34955 (vsx_one_cmpl<mode>2): Likewise.
34956 (vsx_nor<mode>3): Likewise.
34957 (vsx_andc<mode>3): Likewise.
34958 (vsx_concat_<mode>): Likewise.
34959 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34961 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34962 OPTION_MASK_VSX_TIMODE.
34963 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34964 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34966 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34967 (TI2 iterator): New iterator for TImode, PTImode.
34968 (wd mode attribute): Add values for vector types.
34969 (movti_string): Replace TI move operations with operations for TImode
34970 and PTImode. Add support for TImode being allowed in VSX registers.
34971 (mov<mode>_string, TImode/PTImode): Likewise.
34972 (movti_ppc64): Likewise.
34973 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34974 (TI mode splitters): Likewise.
34976 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34979 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34981 PR tree-optimization/56355
34982 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34983 Also handle integers with undefined overflow.
34985 2013-03-20 Catherine Moore <clm@codesourcery.com>
34986 Maciej W. Rozycki <macro@codesourcery.com>
34987 Tom de Vries <tom@codesourcery.com>
34988 Nathan Sidwell <nathan@codesourcery.com>
34989 Iain Sandoe <iain@codesourcery.com>
34990 Nathan Froyd <froydnj@codesourcery.com>
34991 Chao-ying Fu <fu@mips.com>
34993 * doc/extend.texi: (micromips, nomicromips, nocompression):
34994 Document new function attributes.
34995 * doc/invoke.texi (minterlink-compressed, mmicromips,
34996 m14k, m14ke, m14kec): Document new options.
34997 (minterlink-mips16): Update documentation.
34998 * doc/md.texi (ZC, ZD): Document new constraints.
34999 * configure.ac (gcc_cv_as_micromips): Check if linker
35000 supports the .set micromips directive.
35001 * configure: Regenerate.
35002 * config.in: Regenerate.
35003 * config/mips/mips-tables.opt: Regenerate.
35004 * config/mips/micromips.md: New file.
35005 * constraints.md (ZC, ZD): New constraints.
35006 * config/mips/predicates.md (movep_src_register): New predicate.
35007 (movep_src_operand): New predicate.
35008 (non_volatile_mem_operand): New predicate.
35009 * config/mips/mips.md (multimem): New type.
35010 (length): Differentiate between 17-bit and 18-bit branch offsets.
35011 (MOVEP1, MOVEP2): New mode iterator.
35012 (mov_<load>l): Use ZC constraint.
35013 (mov_<load>r): Likewise.
35014 (mov_<store>l): Likewise.
35015 (mov_<store>r): Likewise.
35016 (*branch_equality<mode>_inverted): Add microMIPS support.
35017 (*branch_equality<mode>): Likewise.
35018 (*jump_absolute): Likewise.
35019 (indirect_jump_<mode>): Likewise.
35020 (tablejump_<mode>): Likewise.
35021 (<optab>_internal): Likewise.
35022 (sibcall_internal): Likewise.
35023 (sibcall_value_internal): Likewise.
35024 (prefetch): Use constraint ZD.
35025 * config/mips/mips.opt (minterlink-compressed): New option.
35026 (minterlink-mips16): Now an alias for minterlink-compressed.
35027 (mmicromips): New option.
35028 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35029 (compare_and_swap_12): Likewise.
35030 (sync_add<mode>): Likewise.
35031 (sync_<optab>_12): Likewise.
35032 (sync_old_<optab>_12): Likewise.
35033 (sync_new_<optab>_12): Likewise.
35034 (sync_nand_12): Likewise.
35035 (sync_old_nand_12): Likewise.
35036 (sync_new_nand_12): Likewise.
35037 (sync_sub<mode>): Likewise.
35038 (sync_old_add<mode>): Likewise.
35039 (sync_old_sub<mode>): Likewise.
35040 (sync_new_add<mode>): Likewise.
35041 (sync_new_sub<mode>): Likewise.
35042 (sync_<optab><mode>): Likewise.
35043 (sync_old_<optab><mode>): Likewise.
35044 (sync_new_<optab><mode>): Likewise.
35045 (sync_nand<mode>): Likewise.
35046 (sync_old_nand<mode>): Likewise.
35047 (sync_new_nand<mode>): Likewise.
35048 (sync_lock_test_and_set<mode>): Likewise.
35049 (test_and_set_12): Likewise.
35050 (atomic_compare_and_swap<mode>): Likewise.
35051 (atomic_exchange<mode>_llsc): Likewise.
35052 (atomic_fetch_add<mode>_llsc): Likewise.
35053 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35054 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35055 (umips_save_restore_pattern_p): Likewise.
35056 (umips_load_store_pair_p): Likewise.
35057 (umips_output_load_store_pair): Likewise.
35058 (umips_movep_target_p): Likewise.
35059 (umips_12bit_offset_address_p): Likewise.
35060 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35061 (mips_base_mips16): Rename this...
35062 (mips_base_compression_flags): ...to this. Update all uses.
35063 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35064 (mips_mips16_decl_p): Delete.
35065 (mips_nomips16_decl_p): Delete.
35066 (mips_get_compress_on_flags): New function.
35067 (mips_get_compress_off_flags): New function.
35068 (mips_get_compress_mode): New function.
35069 (mips_get_compress_on_name): New function.
35070 (mips_get_compress_off_name): New function.
35071 (mips_insert_attributes): Support multiple compression types.
35072 (mips_merge_decl_attributes): Likewise.
35073 (umips_12bit_offset_address_p): New function.
35074 (mips_start_function_definition): Emit .set micromips directive.
35075 (mips_call_may_need_jalx_p): New function.
35076 (mips_function_ok_for_sibcall): Add microMIPS support.
35077 (mips_print_operand_punctuation): Support short delay slots and
35079 (umips_swm_mask, umips_swm_encoding): New.
35080 (umips_build_save_restore): New function.
35081 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35082 (was_mips16_p): Remove.
35083 (old_compression_mode): New.
35084 (mips_set_compression_mode): New function.
35085 (mips_set_current_function): Add microMIPS support.
35086 (mips_option_override): Likewise.
35087 (umips_save_restore_pattern_p): New function.
35088 (umips_output_save_restore): New function.
35089 (umips_load_store_pair_p_1): New function.
35090 (umips_load_store_pair_p): New function.
35091 (umips_output_load_store_pair_1): New function.
35092 (umips_output_load_store_pair): New function.
35093 (umips_movep_target_p) New function.
35094 (mips_prepare_pch_save): Add microMIPS support.
35095 * config/mips/mips.h (TARGET_COMPRESSION): New.
35096 (TARGET_CPU_CPP_BUILTINS): Update macro
35097 to use new compression flags and to support microMIPS.
35098 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35099 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35100 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35101 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35102 (ASM_SPEC): Support mmicromips and mno-micromips.
35103 (M16STORE_REG_P): New macro.
35104 (MIPS_CALL): Support TARGET_MICROMIPS.
35105 (MICROMIPS_J): New macro.
35106 (mips_base_mips16): Rename this...
35107 (mips_base_compression_flags): ...to this.
35108 (UMIPS_12BIT_OFFSET_P): New macro.
35109 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35110 (MULTILIB_DIRNAMES): Likewise.
35111 2013-03-20 Richard Biener <rguenther@suse.de>
35113 PR tree-optimization/56661
35114 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35115 the result does not have to be distinct.
35117 2013-03-20 Richard Biener <rguenther@suse.de>
35119 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35122 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35123 Steven Bosscher <steven@gcc.gnu.org>
35125 PR rtl-optimization/56605
35126 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35128 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35131 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35132 that require movd instead of movq.
35134 2013-03-20 Richard Biener <rguenther@suse.de>
35136 * tree-ssa-structalias.c (struct variable_info): Add pointer
35137 to the first field of an aggregate with sub-vars. Make
35138 this and the pointer to the next subfield its ID.
35139 (vi_next): New function.
35140 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35141 storedanything_id, integer_id): Increment by one.
35142 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35143 get_call_clobber_vi): Adjust.
35144 (solution_set_expand): Simplify and speedup.
35145 (solution_set_add): Inline into ...
35146 (set_union_with_increment): ... this. Adjust accordingly.
35147 (do_sd_constraint): Likewise.
35148 (do_ds_constraint): Likewise.
35149 (do_complex_constraint): Simplify.
35150 (build_pred_graph): Adjust.
35151 (solve_graph): Likewise. Simplify and speedup.
35152 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35153 get_constraint_for_component_ref, get_constraint_for_1,
35154 first_vi_for_offset, first_or_preceding_vi_for_offset,
35155 create_function_info_for, create_variable_info_for_1,
35156 create_variable_info_for, intra_create_variable_infos): Adjust.
35157 (init_base_vars): Push NULL for ID zero.
35158 (compute_points_to_sets): Adjust.
35160 2013-03-20 Richard Biener <rguenther@suse.de>
35162 * cfgloop.c (verify_loop_structure): Streamline and avoid
35163 ICEing on corrupt loop tree.
35164 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35167 2013-03-20 Richard Biener <rguenther@suse.de>
35169 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35170 check whether an SSA update is needed.
35172 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35174 * config/mips/constraints.md (T): Rename to...
35178 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35179 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35181 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35183 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35184 (*subsi3_carryin_uxtw): Likewise.
35186 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35188 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35189 (*rorsi3_insn_uxtw): Likewise.
35191 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35193 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35194 (*extrsi5_insn_uxtw): Likewise.
35196 2013-03-19 Richard Biener <rguenther@suse.de>
35198 PR tree-optimization/56273
35199 * passes.c (init_optimization_passes): Move second VRP after DOM.
35201 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35203 * config/i386/i386.md (*movti_internal): Merge from
35204 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35205 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35206 nox64 isa attributes.
35208 2013-03-18 Richard Biener <rguenther@suse.de>
35210 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35212 (merge_node_constraints): Likewise.
35213 (build_succ_graph): Likewise.
35214 (valid_graph_edge): Inline into single caller.
35215 (unify_nodes): Likewise. Use bitmap_set_bit return value
35217 (scc_visit): Fix formatting and variable use.
35218 (do_sd_constraint): Use gcc_checking_assert.
35219 (do_ds_constraint): Likewise.
35220 (do_complex_constraint): Likewise.
35221 (condense_visit): Likewise. Cleanup.
35222 (dump_pred_graph): New function.
35223 (perform_var_substitution): Dump the pred-graph before
35224 variable substitution.
35225 (find_equivalent_node): Use gcc_checking_assert.
35226 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35228 2013-03-18 Richard Biener <rguenther@suse.de>
35230 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35231 Remove cond_expr_stmt_list argument and do not gimplify the
35233 (vect_loop_versioning): Adjust.
35234 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35235 Cleanup to use less temporaries.
35236 (vect_create_data_ref_ptr): Cleanup.
35238 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35240 PR tree-optimization/56635
35241 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35242 require types_compatible_p types.
35244 2013-03-18 Nick Clifton <nickc@redhat.com>
35246 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35247 spurious backslash.
35249 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35250 Add missing line to comment describing function.
35252 2013-03-18 Richard Biener <rguenther@suse.de>
35254 PR tree-optimization/56210
35255 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35256 Handle string / character search functions.
35257 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35259 2013-03-18 Richard Biener <rguenther@suse.de>
35261 PR middle-end/56483
35262 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35263 and implement properly.
35264 * gimple.h (gimple_cond_single_var_p): Remove.
35266 2013-03-18 Richard Biener <rguenther@suse.de>
35268 * tree-data-ref.h (find_data_references_in_loop): Declare.
35269 * tree-data-ref.c (get_references_in_stmt): Use a stack
35270 vector pre-allocated in the callers.
35271 (find_data_references_in_stmt): Adjust.
35272 (graphite_find_data_references_in_stmt): Likewise.
35273 (create_rdg_vertices): Likewise.
35274 (find_data_references_in_loop): Export.
35275 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35276 Compute dependences here...
35277 (vect_analyze_data_refs): ...not here. When we encounter
35278 a non-vectorizable data reference in basic-block vectorization
35279 truncate the data reference vector. Do not bother to
35280 fixup data-dependence information for gather loads.
35281 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35282 of data references, as reported.
35284 2013-03-18 Richard Biener <rguenther@suse.de>
35286 PR tree-optimization/3713
35287 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35288 has_constants and expr.
35289 (stmt_has_constants): Properly valueize SSA names when deciding
35290 whether the stmt has constants.
35292 2013-03-18 Richard Biener <rguenther@suse.de>
35294 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35295 whole function when there is nothing to do.
35296 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35297 * tree-vectorizer.c (vectorize_loops): Update virtual and
35298 loop-closed SSA once.
35299 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35301 2013-03-18 Richard Biener <rguenther@suse.de>
35303 PR middle-end/56113
35304 * domwalk.c (bb_postorder): New global static.
35305 (cmp_bb_postorder): New function.
35306 (walk_dominator_tree): Replace scheme imposing an order for
35307 visiting dominator sons by one sorting them at the time they
35308 are pushed on the stack.
35310 2013-03-18 Richard Biener <rguenther@suse.de>
35312 PR tree-optimization/39326
35313 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35314 (struct mem_ref): Replace mem member with ao_ref typed member.
35315 (MEM_ANALYZABLE): Adjust.
35316 (memref_eq): Likewise.
35317 (mem_ref_alloc): Likewise.
35318 (gather_mem_refs_stmt): Likewise.
35319 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35320 (execute_sm_if_changed_flag_set): Adjust.
35321 (execute_sm): Likewise.
35322 (ref_always_accessed_p): Likewise.
35323 (refs_independent_p): Likewise.
35324 (can_sm_ref_p): Likewise.
35326 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35329 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35330 return 1 even for !unsignedp.
35332 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35334 * config/i386/i386.md (isa): Add x64 and nox64.
35335 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35336 (*pushtf): Enable *roF alternative for x64 isa only.
35337 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35338 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35339 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35340 (*movtf_internal): Merge from *movtf_internal_rex64 and
35341 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35342 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35343 nox64 isa attributes.
35344 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35345 nox64 isa attributes.
35346 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35348 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35350 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35352 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35355 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35356 class names. Remove trailing comma after "ALL_REGS".
35358 2013-03-16 Jan Hubicka <jh@suse.cz>
35360 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35361 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35362 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35363 of cgraph_get_create_node.
35364 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35366 2013-03-16 Jason Merrill <jason@redhat.com>
35369 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35370 with DW_AT_default_value.
35372 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35374 * BASE-VER: Set to 4.9.0.
35376 2013-03-14 Andi Kleen <ak@linux.intel.com>
35379 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35380 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35381 Document _x* TSX intrinsics.
35383 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35384 David Holsgrove <david.holsgrove@xilinx.com>
35386 * configure.ac: Add MicroBlaze TLS support detection.
35387 * configure: Regenerate.
35388 * config/microblaze/microblaze-protos.h
35389 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35390 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35391 * config/microblaze/microblaze.c (microblaze_address_type): Add
35392 ADDRESS_TLS and tls_reloc address types.
35393 (microblaze_address_info): Add tls_reloc.
35394 (TARGET_HAVE_TLS): Define.
35395 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35396 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35397 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35398 load_tls_operand, microblaze_call_tls_get_addr,
35399 microblaze_legitimize_tls_address): New functions.
35400 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35401 (get_base_reg): Use microblaze_tls_symbol_p.
35402 (microblaze_classify_address): Handle TLS.
35403 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35404 label_mentioned_p and microblaze_tls_referenced_p.
35405 (microblaze_legitimize_address): Handle TLS.
35406 (microblaze_address_insns): Handle ADDRESS_TLS.
35407 (pic_address_needs_scratch): Handle TLS.
35408 (print_operand_address): Handle TLS.
35409 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35410 (microblaze_expand_move): Handle TLS.
35411 (microblaze_legitimate_constant_p): Check
35412 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35413 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35414 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35415 (PIC_OFFSET_TABLE_REGNUM): Set.
35416 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35417 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35418 (addsi3, movsi_internal2, movdf_internal): Update constraints
35419 * config/microblaze/predicates.md (arith_plus_operand): Define
35420 (move_operand): Redefine as move_src_operand,
35421 check microblaze_tls_referenced_p.
35423 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35425 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35426 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35428 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35430 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35433 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35435 PR tree-optimization/53265
35436 * common.opt (Waggressive-loop-optimizations): New option.
35437 * tree-ssa-loop-niter.c: Include tree-pass.h.
35438 (do_warn_aggressive_loop_optimizations): New function.
35439 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35440 if number_of_latch_executions returned constant.
35441 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35442 early. If number_of_latch_executions returned constant, set
35443 nb_iterations_upper_bound back to it.
35444 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35446 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35447 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35449 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35450 (MULTILIB_OSDIRNAMES): Set.
35451 * genmultilib: If defaultosdirname doesn't start with :: , set
35452 defaultosdirname2 instead, clear it and emit two . multilib_raw
35453 entries instead of just one.
35455 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35457 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35458 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35459 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35460 (SUBTARGET_OVERRIDE_OPTIONS): New.
35462 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35465 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35466 (musermode): Convert to Var(TARGET_USERMODE).
35467 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35468 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35469 * config/sh/sh.c (sh_option_override): Use
35470 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35471 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35473 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35475 (udivsi3_i4_single, divsi3_i4_single): Use
35476 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35478 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35480 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35483 2013-03-13 Richard Biener <rguenther@suse.de>
35485 PR tree-optimization/56608
35486 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35487 calls when vectorizing basic-blocks.
35489 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35492 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35495 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35497 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35499 2013-03-11 Jan Hubicka <jh@suse.cz>
35502 * lto-streamer-out.c (output_symbol_p): Skip references from
35503 constructors of external variables.
35505 2013-03-11 Jan Hubicka <jh@suse.cz>
35507 PR middle-end/56571
35508 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35510 * emit-rtl.c (verify_rtx_sharing): Likewise.
35511 (copy_insn_1): Likewise.
35512 * rtl.c (copy_rtx): Likewise.
35514 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35517 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35518 output_operand_lossage message.
35520 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35523 * arm.c (shift_op): Validate RTL pattern on the fly.
35524 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35527 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35530 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35531 new call patterns that clobber %fr12.
35532 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35533 split and postreload patterns.
35534 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35535 registers %fr12 and %fr12R as call used.
35537 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35539 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35540 (canon_address, record_store, replace_read, check_mem_read_rtx,
35541 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35542 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35543 rest_of_handle_dse): Likewise.
35545 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35547 PR middle-end/56524
35548 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35550 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35551 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35552 (save_optabs_if_changed): Replace with...
35553 (init_tree_optimization_optabs): ...this.
35554 * optabs.c (save_optabs_if_changed): Rename to...
35555 (init_tree_optimization_optabs): ...this. Take the optimization node
35556 as argument. Do nothing if the base optabs are already correct.
35557 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35558 to recompute optabs.
35559 * function.h (function): Remove optabs field.
35560 * function.c (invoke_set_current_function_hook): Call
35561 init_tree_optimization_optabs. Use the result to initialize
35564 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35566 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35567 if GTMA_HAS_NO_INSTRUMENTATION.
35568 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35569 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35570 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35571 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35572 GTMA_HAS_NO_INSTRUMENTATION.
35574 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35576 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35579 2013-03-08 Marek Polacek <polacek@redhat.com>
35580 Jakub Jelinek <jakub@redhat.com>
35582 PR tree-optimization/56478
35583 * predict.c (is_comparison_with_loop_invariant_p): Change the
35584 type of loop_step to tree.
35585 (predict_loops): Adjust.
35586 (predict_iv_comparison): Perform the computations on double_ints.
35588 2013-03-08 Richard Biener <rguenther@suse.de>
35590 PR tree-optimization/56570
35591 * tree-cfg.c (verify_expr_location_1): Verify locations for
35593 * tree-sra.c (create_access_replacement): Strip locations
35594 from DECL_DEBUG_EXPRs.
35596 2013-03-08 Richard Biener <rguenther@suse.de>
35598 * tree-inline.c (expand_call_inline): Do not associate
35599 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35600 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35602 2013-03-08 Richard Biener <rguenther@suse.de>
35604 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35605 or block changes with -Og. Fix for location / block encoding
35606 changes and PHI arguments with locations.
35608 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35610 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35612 (struct output_info): Likewise.
35613 (register_overhead): Remove bad gcc_assert.
35614 (bitmap_find_bit): If there is only a single bitmap element, do not
35615 count a miss as a search.
35616 (print_statistics): Update for counter type changes.
35617 (dump_bitmap_statistics): Likewise. Print headers such that they
35618 are properly lined up with the printed counters.
35620 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35622 PR tree-optimization/56559
35623 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35624 check that it has only a single use.
35626 2013-03-07 Richard Biener <rguenther@suse.de>
35628 * doc/invoke.texi (fwhole-program): Discourage use in combination
35631 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35633 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35635 PR tree-optimization/56539
35636 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35637 instead of GSI_CONTINUE_LINKING as last argument to
35638 force_gimple_operand_gsi. Adjust function comment.
35640 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35643 PR middle-end/56548
35644 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35645 promoted mode, convert the result back to the original mode.
35647 2013-03-06 Richard Biener <rguenther@suse.de>
35649 PR middle-end/56294
35650 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35651 (insert_updated_phi_nodes_compare_uids): New function.
35652 (update_ssa): Sort symbols_to_rename after UID before
35653 traversing it to insert PHI nodes.
35655 2013-03-06 Richard Biener <rguenther@suse.de>
35657 PR middle-end/50494
35658 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35659 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35662 2013-02-13 Richard Biener <rguenther@suse.de>
35665 * varasm.c (output_constant_def_1): Get the decl representing
35666 the constant as argument.
35667 (output_constant_def): Wrap output_constant_def_1.
35668 (make_decl_rtl): Use output_constant_def_1 with the decl
35669 representing the constant.
35670 (build_constant_desc): Optionally re-use a decl already
35671 representing the constant.
35672 (tree_output_constant_def): Adjust.
35674 2013-03-06 Joey Ye <joey.ye@arm.com>
35677 * gcc.c (convert_white_space): New function.
35678 (main): Handles white space in function name.
35680 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35683 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35684 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35685 to SH_DIV_CALL_TABLE for TARGET_SH2.
35686 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35688 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35689 call-table options.
35691 2013-03-05 Sterling Augustine <saugustine@google.com>
35692 Cary Coutant <ccoutant@google.com>
35695 * dwarf2out.c (resolve_addr): Don't call
35696 remove_loc_list_addr_table_entries a second time for the same
35699 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35702 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35703 (avoid_complex_debug_insns): New function.
35704 (expand_debug_locations): Call it.
35706 PR rtl-optimization/56484
35707 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35708 lifetimes of hard registers on small register class machines.
35710 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35712 * config/microblaze/microblaze-protos.h: Rename
35713 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35714 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35716 (microblaze_fast_interrupt_function_p): New function.
35717 (microblaze_is_interrupt_handler): Rename to
35718 microblaze_is_interrupt_variant and add fast_interrupt check.
35719 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35720 (save_restore_insns): Likewise.
35721 (compute_frame_size): Likewise.
35722 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35723 (microblaze_globalize_label): Likewise.
35724 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35725 * config/microblaze/microblaze.md: Use wrapper
35726 microblaze_is_interrupt_variant.
35728 2013-03-05 Kai Tietz <ktietz@redhat.com>
35730 * sdbout.c (sdbout_one_type): Switch to current function's section
35731 supporting cold/hot.
35733 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35735 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35738 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35740 PR middle-end/56461
35741 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35742 if VALGRIND_GET_VBITS is defined, temporarily make object
35743 memory all defined, and restore previous valgrind addressability
35744 and definability afterwards. Free this_object at the end.
35746 PR middle-end/56461
35747 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35748 right before calling lra_create_live_ranges, also call it
35749 when clearing live_p. Only call lra_clear_live_ranges
35750 at the end if live_p.
35752 PR middle-end/56461
35753 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35755 2013-03-05 Richard Biener <rguenther@suse.de>
35757 PR tree-optimization/56521
35758 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35761 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35764 * except.h (remove_unreachable_eh_regions): New prototype.
35765 * except.c (remove_eh_handler_splicer): New function, split out
35766 of remove_eh_handler.
35767 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35768 warning about running it on many EH regions one at a time.
35769 (remove_unreachable_eh_regions_worker): New function, walk the
35770 EH tree in depth-first order and remove non-marked regions.
35771 (remove_unreachable_eh_regions): New function.
35772 * tree-eh.c (mark_reachable_handlers): New function, split out
35773 from remove_unreachable_handlers.
35774 (remove_unreachable_handlers): Use mark_reachable_handlers and
35775 remove_unreachable_eh_regions.
35776 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35777 and remove_unreachable_eh_regions.
35779 2013-03-05 Richard Biener <rguenther@suse.de>
35781 PR middle-end/56525
35782 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35783 not freeing them until the end.
35785 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35787 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35789 2013-03-05 Richard Biener <rguenther@suse.de>
35791 PR tree-optimization/56270
35792 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35793 of loads after scheduling an SLP instance.
35795 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35797 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35799 (check_gcc_parallelize): Run guality.exp as a separate job from
35800 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35801 struct-layout-1.exp with stackalign.exp.
35803 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35805 PR middle-end/56461
35806 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35807 load_index sbitmap even if some bit in it isn't set.
35809 PR middle-end/56461
35810 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35811 (discover_iteration_bound_by_body_walk): Change queues to
35812 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35813 spelling in comment. Call safe_push on queues[bound_index] directly.
35814 Release queues[queue_index] in every iteration unconditionally.
35815 Release bounds vector.
35817 PR middle-end/56461
35818 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35819 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35820 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35823 2013-03-05 Richard Biener <rguenther@suse.de>
35826 * tree-inline.c (remap_blocks_to_null): New function.
35827 (expand_call_inline): When expanding a call stmt without
35828 an associated block inline remap all callee blocks to NULL.
35830 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35832 PR rtl-optimization/56494
35833 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35834 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35835 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35837 PR middle-end/56461
35838 * sel-sched-ir.c (free_sched_pools): Release
35839 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35840 if succs_info_pool.max_top isn't -1.
35843 * opts.c (opts_obstack, opts_concat): Moved to...
35844 * opts-common.c (opts_obstack, opts_concat): ... here.
35846 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35848 PR middle-end/56461
35849 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35851 2013-03-04 Martin Jambor <mjambor@suse.cz>
35853 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35854 all appropriate places.
35856 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35858 PR tree-optimization/56424
35859 * ipa-split.c (split_function): Do not set the RSO flag if result is
35860 not by reference and its type is a register type.
35862 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35864 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35865 (microblaze_legitimate_pic_operand): Likewise
35866 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35867 new function microblaze_legitimate_pic_operand
35868 * config/microblaze/microblaze-protos.h
35869 (microblaze_legitimate_pic_operand): Declare.
35871 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35873 * config/microblaze/predicates.md (call_insn_simple_operand):
35874 New predicate for supported rtx code types.
35875 * config/microblaze/microblaze.md (call_internal1): Use
35876 call_insn_simple_operand predicate.
35878 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35880 PR middle-end/56461
35881 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35882 partitions.ordered_remove.
35884 PR middle-end/56461
35885 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35886 vec_oprnds0.create (1) for modifier == NONE.
35888 PR middle-end/56461
35889 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35890 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35891 vec_oprnds1 right before pushing anything to it for
35894 PR middle-end/56461
35895 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35896 set nbbs to 0 instead of having separate code path.
35897 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35898 instead of false as last argument if returning NULL.
35900 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35902 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35903 the attribute is now called "target" instead of "option".
35904 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35905 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35906 attribute/pragma name for TARGET_OPTION_VALID_P and
35907 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35908 * doc/tm.texi: Regenerated.
35910 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35912 * config/microblaze/microblaze.c:
35913 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35914 * config/microblaze/microblaze.h: Add -mxl-reorder to
35916 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35917 instructions emitted if TARGET_REORDER.
35918 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35919 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35922 2013-03-01 Xinliang David Li <davidxl@google.com>
35924 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35927 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35929 PR middle-end/56461
35930 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35931 vector even when returning true. Fix up function comment formatting.
35933 PR middle-end/56461
35934 * ira-build.c (ira_loop_nodes_count): New variable.
35935 (create_loop_tree_nodes): Initialize it.
35936 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35938 PR middle-end/56461
35939 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35940 method on dr_chain and result_chain.
35941 * tree-vect-stmts.c (vectorizable_store): Only call
35942 result_chain.create if j == 0.
35944 PR middle-end/56461
35945 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35946 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35947 before overwriting it.
35949 2013-03-01 Tobias Burnus <burnus@net-b.de>
35951 * doc/extended.texi (C Extensions): Change order in @menu
35953 (Other MIPS Built-in Functions): Move last MIPS entry before
35954 "picoChip Built-in Functions".
35955 (SH Built-in Functions): Move after RX Built-in Functions.
35956 * doc/gcc.texi (Introduction): Change order in @menu
35958 * doc/md.texi (Constraints): Ditto.
35959 * gty.texi (Type Information): Ditto.
35960 (User-provided marking routines for template types): Make
35962 * doc/invoke.texi (AArch64 Options): Move before
35963 "Adapteva Epiphany Options".
35965 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35966 Jakub Jelinek <jakub@redhat.com>
35969 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35970 no_address_safety_analysis attribute.
35971 * doc/extend.texi (no_address_safety_attribute): Rename to
35972 no_sanitize_address attribute, mention no_address_safety_analysis
35973 attribute as deprecated alias.
35975 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35977 PR middle-end/56461
35978 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35979 type to vec<vec<tree> > *.
35980 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35981 to be vec<tree> instead of vec<tree> *, set vec_defs
35982 to vNULL and call vec_defs.create (number_of_vects), adjust other
35984 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35985 vectorizable_condition): Adjust vect_get_slp_defs callers.
35987 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35989 * config/aarch64/aarch64.c
35990 (aarch64_float_const_representable): Remove unused variable.
35992 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35994 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35996 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35998 * config/aarch64/aarch64-builtins.c
35999 (aarch64_init_simd_builtins): Make static.
36001 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36003 * config/aarch64/aarch64.c
36004 (aarch64_simd_make_constant): Make static.
36006 2013-02-28 Martin Jambor <mjambor@suse.cz>
36008 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36009 with no initialization to the RHS of debug statements.
36011 2013-02-28 Martin Jambor <mjambor@suse.cz>
36013 PR tree-optimization/56294
36014 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36016 (get_access_replacement): Do not call create_access_replacement.
36017 Assert a replacement exists.
36018 (get_repl_default_def_ssa_name): Create the replacement declaration
36021 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36023 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36024 final_end_function.
36026 2013-02-28 Marek Polacek <polacek@redhat.com>
36028 PR rtl-optimization/56466
36029 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36030 if we're changing a loop.
36031 (peel_loops_completely): Likewise.
36033 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36036 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36038 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36041 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36042 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36043 INTX_FTYPE_FX, FX_FTYPE_INTX.
36044 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36046 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36048 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36049 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36050 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36051 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36052 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36053 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36054 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36055 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36056 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36057 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36058 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36059 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36060 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36061 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36062 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36063 (avrxmega6): Increase max flash segments from 5 to 6.
36064 * config/avr/t-multilib: Regenerate.
36065 * config/avr/avr-tables.opt: Regenerate.
36066 * doc/avr-mmcu.texi: Regenerate.
36068 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36070 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36071 (avr_device_to_arch): Rename to avr_device_to_ld.
36072 (avr_device_to_as): New prototype.
36073 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36074 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36075 * config/avr/driver-avr.c (avr_device_to_as): New.
36076 (avr_device_to_arch): Rename to avr_device_to_ld.
36078 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36080 PR middle-end/56461
36081 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36082 method on dr_chain and result_chain.
36084 PR middle-end/56461
36085 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36086 pointer_set_destroy on not_executed_last_iteration.
36088 PR middle-end/56461
36089 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36091 PR middle-end/56461
36092 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36093 FOR_EACH_DEFINED_FUNCTION when freeing state.
36095 PR middle-end/56461
36096 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36098 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36101 PR middle-end/56461
36102 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36103 known_aggs[i].items and release known_aggs vector.
36105 PR middle-end/56461
36106 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36108 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36110 * config/microblaze/microblaze.c (microblaze_emit_compare):
36111 Use xor for EQ/NE comparisions.
36112 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36113 (cbranchsf4): Adjust operator to comparison_operator.
36115 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36117 PR middle-end/56461
36118 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36120 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36121 vec_safe_push, always update *slot.
36122 (redirect_edge_var_map_clear): Use vec_free.
36123 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36124 (free_var_map_entry): Use vec_free.
36125 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36126 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36128 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36130 PR middle-end/45472
36131 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36132 when the may_trap_p bit of the exprs being merged differs.
36133 Reorder tests for speculativeness in the logical and operator.
36135 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36137 * incpath.c (add_standard_paths): Use reconcat instead of concat
36138 where appropriate and avoid leaking memory.
36140 * opts.h: Include obstack.h.
36141 (opts_concat): New prototype.
36142 (opts_obstack): New declaration.
36143 * opts.c (opts_concat): New function.
36144 (opts_obstack): New variable.
36145 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36146 (finish_options): Use opts_concat instead of concat
36147 and XOBNEWVEC instead of XNEWVEC.
36148 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36149 generate_option): Likewise.
36150 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36151 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36154 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36155 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36157 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36159 PR middle-end/56461
36160 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36162 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36164 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36165 (arm_block_move_unaligned_straight): Likewise.
36166 (arm_adjust_block_mem): Likewise.
36168 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36171 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36172 temp, cond and label.
36173 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36176 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36177 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36180 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36181 of prologue/epilogue functions.
36184 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36185 Remove unused variable cfa_offset.
36186 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36189 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36190 type promotion to unsigned.
36193 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36194 for HOST_WIDE_INT of 32 bit / same size as int.
36195 (arm_block_move_unaligned_straight): Likewise.
36196 (arm_adjust_block_mem): Likewise.
36199 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36202 2013-02-26 Marek Polacek <polacek@redhat.com>
36204 PR tree-optimization/56426
36205 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36207 2013-02-26 Richard Biener <rguenther@suse.de>
36210 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36211 unused variable loops.
36213 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36215 PR tree-optimization/56448
36216 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36217 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36218 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36219 later operands of the references, or even first operand for
36220 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36222 PR tree-optimization/56443
36223 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36224 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36225 to type_for_mode langhook.
36227 2013-02-25 Matt Turner <mattst88@gmail.com>
36229 * doc/invoke.texi: Document r4700.
36231 2013-02-25 Richard Biener <rguenther@suse.de>
36233 PR tree-optimization/56175
36234 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36236 (simplify_bitwise_binary): ... here. Also guard the conversion
36237 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36239 2013-02-25 Catherine Moore <clm@codesourcery.com>
36242 2013-02-24 Catherine Moore <clm@codesourcery.com>
36243 Maciej W. Rozycki <macro@codesourcery.com>
36244 Tom de Vries <tom@codesourcery.com>
36245 Nathan Sidwell <nathan@codesourcery.com>
36246 Iain Sandoe <iain@codesourcery.com>
36247 Nathan Froyd <froydnj@codesourcery.com>
36248 Chao-ying Fu <fu@mips.com>
36250 * doc/extend.texi: (micromips, nomicromips, nocompression):
36251 Document new function attributes.
36252 * doc/invoke.texi (minterlink-compressed, mmicromips,
36253 m14k, m14ke, m14kec): Document new options.
36254 (minterlink-mips16): Update documentation.
36255 * doc/md.texi (ZC, ZD): Document new constraints.
36256 * configure.ac (gcc_cv_as_micromips): Check if linker
36257 supports the .set micromips directive.
36258 * configure: Regenerate.
36259 * config.in: Regenerate.
36260 * config/mips/mips-tables.opt: Regenerate.
36261 * config/mips/micromips.md: New file.
36262 * constraints.md (ZC, AD): New constraints.
36263 * config/mips/predicates.md (movep_src_register): New predicate.
36264 (movep_src_operand): New predicate.
36265 (non_volatile_mem_operand): New predicate.
36266 * config/mips/mips.md (multimem): New type.
36267 (length): Differentiate between 17-bit and 18-bit branch offsets.
36268 (MOVEP1, MOVEP2): New mode iterator.
36269 (mov_<load>l): Use ZC constraint.
36270 (mov_<load>r): Likewise.
36271 (mov_<store>l): Likewise.
36272 (mov_<store>r): Likewise.
36273 (*branch_equality<mode>_inverted): Add microMIPS support.
36274 (*branch_equality<mode>): Likewise.
36275 (*jump_absolute): Likewise.
36276 (indirect_jump_<mode>): Likewise.
36277 (tablejump_<mode>): Likewise.
36278 (<optab>_internal): Likewise.
36279 (sibcall_internal): Likewise.
36280 (sibcall_value_internal): Likewise.
36281 (prefetch): Use constraint ZD.
36282 * config/mips/mips.opt (minterlink-compressed): New option.
36283 (minterlink-mips16): Now an alias for minterlink-compressed.
36284 (mmicromips): New option.
36285 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36286 (compare_and_swap_12): Likewise.
36287 (sync_add<mode>): Likewise.
36288 (sync_<optab>_12): Likewise.
36289 (sync_old_<optab>_12): Likewise.
36290 (sync_new_<optab>_12): Likewise.
36291 (sync_nand_12): Likewise.
36292 (sync_old_nand_12): Likewise.
36293 (sync_new_nand_12): Likewise.
36294 (sync_sub<mode>): Likewise.
36295 (sync_old_add<mode>): Likewise.
36296 (sync_old_sub<mode>): Likewise.
36297 (sync_new_add<mode>): Likewise.
36298 (sync_new_sub<mode>): Likewise.
36299 (sync_<optab><mode>): Likewise.
36300 (sync_old_<optab><mode>): Likewise.
36301 (sync_new_<optab><mode>): Likewise.
36302 (sync_nand<mode>): Likewise.
36303 (sync_old_nand<mode>): Likewise.
36304 (sync_new_nand<mode>): Likewise.
36305 (sync_lock_test_and_set<mode>): Likewise.
36306 (test_and_set_12): Likewise.
36307 (atomic_compare_and_swap<mode>): Likewise.
36308 (atomic_exchange<mode>_llsc): Likewise.
36309 (atomic_fetch_add<mode>_llsc): Likewise.
36310 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36311 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36312 (umips_save_restore_pattern_p): Likewise.
36313 (umips_load_store_pair_p): Likewise.
36314 (umips_output_load_store_pair): Likewise.
36315 (umips_movep_target_p): Likewise.
36316 (umips_12bit_offset_address_p): Likewise.
36317 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36318 (mips_base_mips16): Rename this...
36319 (mips_base_compression_flags): ...to this. Update all uses.
36320 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36321 (mips_mips16_decl_p): Delete.
36322 (mips_nomips16_decl_p): Delete.
36323 (mips_get_compress_on_flags): New function.
36324 (mips_get_compress_off_flags): New function.
36325 (mips_get_compress_mode): New function.
36326 (mips_get_compress_on_name): New function.
36327 (mips_get_compress_off_name): New function.
36328 (mips_insert_attributes): Support multiple compression types.
36329 (mips_merge_decl_attributes): Likewise.
36330 (umips_12bit_offset_address_p): New function.
36331 (mips_start_function_definition): Emit .set micromips directive.
36332 (mips_call_may_need_jalx_p): New function.
36333 (mips_function_ok_for_sibcall): Add microMIPS support.
36334 (mips_print_operand_punctuation): Support short delay slots and
36336 (umips_swm_mask, umips_swm_encoding): New.
36337 (umips_build_save_restore): New function.
36338 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36339 (was_mips16_p): Remove.
36340 (old_compression_mode): New.
36341 (mips_set_compression_mode): New function.
36342 (mips_set_current_function): Add microMIPS support.
36343 (mips_option_override): Likewise.
36344 (umips_save_restore_pattern_p): New function.
36345 (umips_output_save_restore): New function.
36346 (umips_load_store_pair_p_1): New function.
36347 (umips_load_store_pair_p): New function.
36348 (umips_output_load_store_pair_1): New function.
36349 (umips_output_load_store_pair): New function.
36350 (umips_movep_target_p) New function.
36351 (mips_prepare_pch_save): Add microMIPS support.
36352 * config/mips/mips.h (TARGET_COMPRESSION): New.
36353 (TARGET_CPU_CPP_BUILTINS): Update macro
36354 to use new compression flags and to support microMIPS.
36355 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36356 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36357 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36358 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36359 (ASM_SPEC): Support mmicromips and mno-micromips.
36360 (M16STORE_REG_P): New macro.
36361 (MIPS_CALL): Support TARGET_MICROMIPS.
36362 (MICROMIPS_J): New macro.
36363 (mips_base_mips16): Rename this...
36364 (mips_base_compression_flags): ...to this.
36365 (UMIPS_12BIT_OFFSET_P): New macro.
36366 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36367 (MULTILIB_DIRNAMES): Likewise.
36369 2013-02-25 Tom de Vries <tom@codesourcery.com>
36371 PR rtl-optimization/56131
36372 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36373 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36374 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36376 2013-02-25 Tobias Burnus <burnus@net-b.de>
36378 * doc/invoke.texi (-fsanitize=): Move from optimization
36379 to debugging options.
36381 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36383 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36385 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36386 Alexander Monakov <amonakov@ispras.ru>
36388 PR middle-end/56077
36389 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36390 flush pending lists also on non-jumps. Adjust comment.
36392 2013-02-24 Catherine Moore <clm@codesourcery.com>
36393 Maciej W. Rozycki <macro@codesourcery.com>
36394 Tom de Vries <tom@codesourcery.com>
36395 Nathan Sidwell <nathan@codesourcery.com>
36396 Iain Sandoe <iain@codesourcery.com>
36397 Nathan Froyd <froydnj@codesourcery.com>
36398 Chao-ying Fu <fu@mips.com>
36400 * doc/extend.texi: (micromips, nomicromips, nocompression):
36401 Document new function attributes.
36402 * doc/invoke.texi (minterlink-compressed, mmicromips,
36403 m14k, m14ke, m14kec): Document new options.
36404 (minterlink-mips16): Update documentation.
36405 * doc/md.texi (ZC, ZD): Document new constraints.
36406 * configure.ac (gcc_cv_as_micromips): Check if linker
36407 supports the .set micromips directive.
36408 * configure: Regenerate.
36409 * config.in: Regenerate.
36410 * config/mips/mips-tables.opt: Regenerate.
36411 * config/mips/micromips.md: New file.
36412 * constraints.md (ZC, AD): New constraints.
36413 * config/mips/predicates.md (movep_src_register): New predicate.
36414 (movep_src_operand): New predicate.
36415 (non_volatile_mem_operand): New predicate.
36416 * config/mips/mips.md (multimem): New type.
36417 (length): Differentiate between 17-bit and 18-bit branch offsets.
36418 (MOVEP1, MOVEP2): New mode iterator.
36419 (mov_<load>l): Use ZC constraint.
36420 (mov_<load>r): Likewise.
36421 (mov_<store>l): Likewise.
36422 (mov_<store>r): Likewise.
36423 (*branch_equality<mode>_inverted): Add microMIPS support.
36424 (*branch_equality<mode>): Likewise.
36425 (*jump_absolute): Likewise.
36426 (indirect_jump_<mode>): Likewise.
36427 (tablejump_<mode>): Likewise.
36428 (<optab>_internal): Likewise.
36429 (sibcall_internal): Likewise.
36430 (sibcall_value_internal): Likewise.
36431 (prefetch): Use constraint ZD.
36432 * config/mips/mips.opt (minterlink-compressed): New option.
36433 (minterlink-mips16): Now an alias for minterlink-compressed.
36434 (mmicromips): New option.
36435 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36436 (compare_and_swap_12): Likewise.
36437 (sync_add<mode>): Likewise.
36438 (sync_<optab>_12): Likewise.
36439 (sync_old_<optab>_12): Likewise.
36440 (sync_new_<optab>_12): Likewise.
36441 (sync_nand_12): Likewise.
36442 (sync_old_nand_12): Likewise.
36443 (sync_new_nand_12): Likewise.
36444 (sync_sub<mode>): Likewise.
36445 (sync_old_add<mode>): Likewise.
36446 (sync_old_sub<mode>): Likewise.
36447 (sync_new_add<mode>): Likewise.
36448 (sync_new_sub<mode>): Likewise.
36449 (sync_<optab><mode>): Likewise.
36450 (sync_old_<optab><mode>): Likewise.
36451 (sync_new_<optab><mode>): Likewise.
36452 (sync_nand<mode>): Likewise.
36453 (sync_old_nand<mode>): Likewise.
36454 (sync_new_nand<mode>): Likewise.
36455 (sync_lock_test_and_set<mode>): Likewise.
36456 (test_and_set_12): Likewise.
36457 (atomic_compare_and_swap<mode>): Likewise.
36458 (atomic_exchange<mode>_llsc): Likewise.
36459 (atomic_fetch_add<mode>_llsc): Likewise.
36460 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36461 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36462 (umips_save_restore_pattern_p): Likewise.
36463 (umips_load_store_pair_p): Likewise.
36464 (umips_output_load_store_pair): Likewise.
36465 (umips_movep_target_p): Likewise.
36466 (umips_12bit_offset_address_p): Likewise.
36467 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36468 (mips_base_mips16): Rename this...
36469 (mips_base_compression_flags): ...to this. Update all uses.
36470 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36471 (mips_mips16_decl_p): Delete.
36472 (mips_nomips16_decl_p): Delete.
36473 (mips_get_compress_on_flags): New function.
36474 (mips_get_compress_off_flags): New function.
36475 (mips_get_compress_mode): New function.
36476 (mips_get_compress_on_name): New function.
36477 (mips_get_compress_off_name): New function.
36478 (mips_insert_attributes): Support multiple compression types.
36479 (mips_merge_decl_attributes): Likewise.
36480 (umips_12bit_offset_address_p): New function.
36481 (mips_start_function_definition): Emit .set micromips directive.
36482 (mips_call_may_need_jalx_p): New function.
36483 (mips_function_ok_for_sibcall): Add microMIPS support.
36484 (mips_print_operand_punctuation): Support short delay slots and
36486 (umips_swm_mask, umips_swm_encoding): New.
36487 (umips_build_save_restore): New function.
36488 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36489 (was_mips16_p): Remove.
36490 (old_compression_mode): New.
36491 (mips_set_compression_mode): New function.
36492 (mips_set_current_function): Add microMIPS support.
36493 (mips_option_override): Likewise.
36494 (umips_save_restore_pattern_p): New function.
36495 (umips_output_save_restore): New function.
36496 (umips_load_store_pair_p_1): New function.
36497 (umips_load_store_pair_p): New function.
36498 (umips_output_load_store_pair_1): New function.
36499 (umips_output_load_store_pair): New function.
36500 (umips_movep_target_p) New function.
36501 (mips_prepare_pch_save): Add microMIPS support.
36502 * config/mips/mips.h (TARGET_COMPRESSION): New.
36503 (TARGET_CPU_CPP_BUILTINS): Update macro
36504 to use new compression flags and to support microMIPS.
36505 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36506 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36507 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36508 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36509 (ASM_SPEC): Support mmicromips and mno-micromips.
36510 (M16STORE_REG_P): New macro.
36511 (MIPS_CALL): Support TARGET_MICROMIPS.
36512 (MICROMIPS_J): New macro.
36513 (mips_base_mips16): Rename this...
36514 (mips_base_compression_flags): ...to this.
36515 (UMIPS_12BIT_OFFSET_P): New macro.
36516 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36517 (MULTILIB_DIRNAMES): Likewise.
36519 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36522 * target-globals.c (save_target_globals): For init_reg_sets and
36523 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36525 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36527 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36528 * config/aarch64/t-aarch64
36529 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36531 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36533 PR inline-asm/56148
36534 * lra-constraints.c (process_alt_operands): Reload operand
36535 conflicting with earlier clobber only if no more other conflicting
36538 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36541 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36542 if not linking a shared library.
36544 2013-02-22 Seth LaForge <sethml@google.com>
36546 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36548 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36550 * config/arm/arm.md (split for extendsidi): Update condition.
36551 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36552 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36553 (qhs_zextenddi_cstr): Likewise.
36555 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36557 PR middle-end/56420
36558 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36559 avoid signed wrapping.
36560 (expand_mult): Handle properly multiplication by
36561 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36562 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36563 in the compiler if coeff is HOST_WIDE_INT_MIN.
36564 (expand_divmod): Don't make ext_op1 static, change it's type to
36565 uhwi. Avoid undefined behavior in -INTVAL (op1).
36567 PR rtl-optimization/50339
36568 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36570 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36571 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36572 into splitting_ashiftrt field.
36573 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36575 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36578 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36580 PR middle-end/56108
36581 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36582 are sure to go irrevocable.
36584 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36586 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36587 scalars are valid operands.
36589 2013-02-21 Martin Jambor <mjambor@suse.cz>
36591 PR tree-optimization/56310
36592 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36593 only matching indices and non-negative final offsets.
36594 (intersect_aggregates_with_edge): Pass src_idx to
36595 agg_replacements_to_vector. Pass src_idx insstead of index to
36596 intersect_with_agg_replacements.
36598 2013-02-21 Martin Jambor <mjambor@suse.cz>
36600 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36601 instead of hard-wired defaults.
36603 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36605 * doc/invoke.texi (MIPS Options): Update documentation of the
36606 floating-point multiply-accumulate instruction restrictions.
36608 2013-02-21 Kostya Serebryany <kcc@google.com>
36610 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36611 asan_shadow_offset on x86_64 linux.
36613 2013-02-21 Richard Biener <rguenther@suse.de>
36615 PR tree-optimization/56415
36617 2013-02-11 Richard Biener <rguenther@suse.de>
36619 PR tree-optimization/56273
36620 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36623 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36626 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36629 PR inline-asm/56405
36630 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36631 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36633 2013-02-20 Jan Hubicka <jh@suse.cz>
36635 PR tree-optimization/56265
36636 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36637 when target is referenced for first time.
36639 2013-02-20 Richard Biener <rguenther@suse.de>
36641 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36642 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36643 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36644 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36645 not return anything.
36646 (rename_ssa_copies): Do not remove unused locals.
36647 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36648 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36649 * passes.c (execute_function_todo): Do not schedule unused locals
36650 removal if cleanup_tree_cfg did something.
36651 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36652 about the number of removed locals.
36654 2013-02-20 Richard Biener <rguenther@suse.de>
36656 PR tree-optimization/56398
36657 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36659 2013-02-20 Martin Jambor <mjambor@suse.cz>
36661 PR tree-optimization/55334
36662 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36663 restricted pointers to arrays.
36665 2013-02-20 Richard Biener <rguenther@suse.de>
36666 Jakub Jelinek <jakub@redhat.com>
36668 PR tree-optimization/56396
36669 * tree-ssa-ccp.c (n_const_val): New static variable.
36670 (get_value): Return NULL for SSA names we don't have a lattice
36672 (ccp_initialize): Initialize n_const_val.
36673 * tree-ssa-copy.c (n_copy_of): New static variable.
36674 (init_copy_prop): Initialize n_copy_of.
36675 (get_value): Return NULL_TREE for SSA names we don't have a
36678 2013-02-20 Martin Jambor <mjambor@suse.cz>
36680 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36682 2013-02-20 Richard Biener <rguenther@suse.de>
36684 * genpreds.c (write_lookup_constraint): Do not compare first
36685 letter of the constraint again.
36687 2013-02-20 Richard Biener <rguenther@suse.de>
36689 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36691 (get_use_iv_cost): Terminate hashtable walk when coming across
36694 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36696 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36697 reassociation for avx2 targets.
36699 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36701 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36702 Add version check for v8.10.a to enable microblaze_has_clz
36703 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36704 version and TARGET_PATTERN_COMPARE check
36705 * config/microblaze/microblaze.md: New clzsi2 instruction
36707 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36709 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36710 function before branching.
36712 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36714 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36716 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36718 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36720 PR middle-end/55889
36721 * sel-sched.c: Include ira.h.
36722 (implicit_clobber_conflict_p): New function.
36723 (moveup_expr): Use it.
36724 * Makefile.in (sel-sched.o): Depend on ira.h.
36726 2013-02-19 Richard Biener <rguenther@suse.de>
36728 PR tree-optimization/56384
36729 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36730 (vn_hash_type): Split out from ...
36731 (vn_hash_constant_with_type): ... here.
36732 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36733 (vn_phi_eq): Compare types from vn_phi_s structure.
36734 (vn_phi_lookup): Populate vn_phi_s type.
36735 (vn_phi_insert): Likewise.
36737 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36739 PR tree-optimization/56350
36740 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36741 if haven't found reduction or nested cycle operand, rather than
36742 asserting we must find it.
36744 PR tree-optimization/56381
36745 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36748 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36749 Jakub Jelinek <jakub@redhat.com>
36752 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36753 (swap_optab_enable): Same.
36754 (init_all_optabs): Use argument instead of global.
36755 * tree.h (struct tree_optimization_option): New field target_optabs.
36756 * expr.h (init_all_optabs): Add argument to prototype.
36757 (TREE_OPTIMIZATION_OPTABS): New.
36758 (save_optabs_if_changed): Protoize.
36759 * optabs.h: Declare this_fn_optabs.
36760 * optabs.c (save_optabs_if_changed): New.
36761 Declare this_fn_optabs.
36762 (init_optabs): Add argument to init_all_optabs() call.
36763 * function.c (invoke_set_current_function_hook): Handle per
36765 * function.h (struct function): New field optabs.
36766 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36767 optimization_current_node has changed.
36768 * target-globals.h (save_target_globals_default_opts): Protoize.
36769 * target-globals.c (save_target_globals_default_opts): New.
36771 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36774 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36775 registers %fr12 and %fr12R as call used.
36778 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36779 and HImode, require all displacements to be an integer multiple of
36781 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36782 only allow QImode and HImode when reload is in progress and strict is
36783 true. Likewise for symbolic addresses. Use base14_operand to check
36784 displacements in REG+BASE addresses.
36786 2013-02-18 Richard Biener <rguenther@suse.de>
36788 PR tree-optimization/56366
36789 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36790 handle sign-conversion of outer-loop initial induction value.
36792 2013-02-18 Richard Biener <rguenther@suse.de>
36794 PR middle-end/56349
36795 * cfghooks.c (merge_blocks): If we merge a latch into another
36796 block adjust references to it.
36797 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36798 (verify_loop_structure): Verify that a recorded latch is in fact
36801 2013-02-18 Richard Biener <rguenther@suse.de>
36803 PR tree-optimization/56321
36804 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36805 order SSA name release and virtual operand unlinking.
36807 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36809 * config/microblaze/microblaze.md (save_stack_block): Define.
36810 (restore_stack_block): Likewise.
36812 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36814 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36815 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36816 * config/microblaze/microblaze.c (microblaze_option_override):
36817 Bail out early for PIC modes when target does not support PIC.
36819 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36821 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36822 Replace with a microblaze version.
36823 (microblaze_trampoline_init): Adapt for microblaze.
36824 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36827 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36828 Dodji Seketeli <dodji@redhat.com>
36831 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36832 (instrument_mem_region_access): Do not forget to always put
36833 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36834 0) statement, even for cases where either 'base' or 'base + len'
36835 are not instrumented -- because they have been previously
36836 instrumented. Simplify the logic by putting all the statements
36837 instrument 'base + len' inside a sequence, and then insert that
36838 sequence right before the current insertion point. Then, to
36839 instrument 'base + len', just get an iterator on that statement.
36840 And do not forget to update the pointer to iterator the function
36841 received as argument.
36843 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36845 PR rtl-optimization/56348
36846 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36848 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36850 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36851 (clean_graph_dump_file): Pass base to start_graph_dump.
36853 2013-02-14 Richard Henderson <rth@redhat.com>
36856 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36858 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36860 * collect2-aix.h: Define F_LOADONLY.
36862 2013-02-14 Richard Biener <rguenther@suse.de>
36865 * varasm.c (output_constant_def_1): Get the decl representing
36866 the constant as argument.
36867 (output_constant_def): Wrap output_constant_def_1.
36868 (make_decl_rtl): Use output_constant_def_1 with the decl
36869 representing the constant.
36870 (build_constant_desc): Optionally re-use a decl already
36871 representing the constant.
36872 (tree_output_constant_def): Adjust.
36874 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36877 * asan.c (instrument_builtin_call): Really put the length of the
36878 second source argument into src1_len.
36880 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36882 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36883 argument. If it is false, don't create edge from then_bb to
36885 (insert_if_then_before_iter): Pass true to it.
36886 (build_check_stmt): Pass false to it.
36887 (transform_statements): Flush hash table only on extended basic
36888 block boundaries, rather than at the beginning of every bb.
36889 Don't flush hash table on nonfreeing_call_p calls.
36890 * tree-flow.h (nonfreeing_call_p): New prototype.
36891 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36893 2013-02-13 David S. Miller <davem@davemloft.net>
36895 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36897 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36900 * ira.c (max_regno_before_ira): Move from ...
36902 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36905 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36907 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36909 2013-02-13 Richard Biener <rguenther@suse.de>
36912 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36913 globals in MEM_REFs.
36915 2013-02-13 Richard Biener <rguenther@suse.de>
36917 * loop-init.c (loop_optimizer_init): Clear loop state when
36918 re-initializing preserved loops.
36919 * loop-unswitch.c (unswitch_single_loop): Return whether
36920 we unswitched the loop. Do not verify loop state here.
36921 (unswitch_loops): When we unswitched a loop discover new loops.
36923 2013-02-13 Kostya Serebryany <kcc@google.com>
36925 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36927 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36929 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36931 Avoid instrumenting duplicated memory access in the same basic block
36932 * Makefile.in (asan.o): Add new dependency on hash-table.h
36933 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36934 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36935 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36936 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36937 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36938 (get_mem_ref_of_assignment): New functions.
36939 (get_mem_refs_of_builtin_call): Extract from
36940 instrument_builtin_call and tweak a little bit to make it fit with
36942 (instrument_builtin_call): Use the new
36943 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36944 of is_gimple_builtin_call.
36945 (instrument_derefs, instrument_mem_region_access): Insert the
36946 instrumented memory reference into the hash table.
36947 (maybe_instrument_assignment): Renamed instrument_assignment into
36948 this, and change it to advance the iterator when instrumentation
36949 actually happened and return true in that case. This makes it
36950 homogeneous with maybe_instrument_assignment, and thus give a
36951 chance to callers to be more 'regular'.
36952 (transform_statements): Clear the memory reference hash table
36953 whenever we enter a new BB, when we cross a function call, or when
36954 we are done transforming statements. Use
36955 maybe_instrument_assignment instead of instrumentation. No more
36956 need to special case maybe_instrument_assignment and advance the
36957 iterator after calling it; it's now handled just like
36958 maybe_instrument_call. Update comment.
36960 2013-02-13 Richard Biener <rguenther@suse.de>
36962 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36963 Fix loop discovery code.
36965 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36967 PR inline-asm/56148
36968 * lra-constraints.c (process_alt_operands): Match early clobber
36969 operand with itself. Check conflicts with earlyclobber only if
36970 the operand is not reloaded. Prefer to reload conflicting operand
36971 if earlyclobber and matching operands are the same.
36973 2013-02-12 Richard Biener <rguenther@suse.de>
36976 * lto-streamer-out.c (write_symbol): Do not output symbols
36977 for hard register variables.
36979 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36982 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36983 (umulsidi3_insn, mulsidi3_insn): New insns.
36985 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36987 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36988 (struct tune_params): Add vec_costs field.
36989 * config/arm/arm.c (arm_builtin_vectorization_cost)
36990 (arm_add_stmt_cost): New functions.
36991 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36992 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36993 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36994 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36995 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36996 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36997 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36999 2013-02-12 Richard Biener <rguenther@suse.de>
37002 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37003 decls again if possible.
37005 2013-02-12 Richard Biener <rguenther@suse.de>
37007 PR middle-end/56288
37008 * tree-ssa.c (verify_ssa_name): Fix check, move
37009 SSA_NAME_IN_FREE_LIST check up.
37011 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37012 Steven Bosscher <steven@gcc.gnu.org>
37014 PR rtl-optimization/56151
37015 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37016 equal to op0 or op1, and last_insn pattern is CODE operation
37017 with MEM dest and one of the operands matches that MEM.
37019 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37021 * doc/extend.texi: Document Function Multiversioning and "default"
37022 parameter string to target attribute.
37023 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37024 target attribute parameter is "default".
37025 (ix86_compare_version_priority): Remove checks for target attribute.
37026 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37027 Remove check for target attribute equal to NULL. Add assert.
37028 (ix86_generate_version_dispatcher_body): Change error to sorry.
37030 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37031 Jack Howarth <howarth@bromo.med.uc.edu>
37032 Patrick Marlier <patrick.marlier@gmail.com>
37035 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37036 define ENDFILE_SPEC as TM_DESTRUCTOR.
37037 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37039 2013-02-11 Alexander Potapenko <glider@google.com>
37040 Jack Howarth <howarth@bromo.med.uc.edu>
37041 Jakub Jelinek <jakub@redhat.com>
37044 * config/darwin.c (cdtor_record): Rename ctor_record.
37045 (sort_cdtor_records): Rename sort_ctor_records.
37046 (finalize_dtors): New routine to sort destructors by
37047 priority before use in assemble_integer.
37048 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37050 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37052 PR rtl-optimization/56275
37053 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37054 offset is non-negative and less than cmode size before
37055 calling simplify_subreg.
37057 2013-02-11 Richard Biener <rguenther@suse.de>
37059 PR tree-optimization/56264
37060 * cfgloop.h (fix_loop_structure): Adjust prototype.
37061 * loop-init.c (fix_loop_structure): Return the number of
37062 newly discovered loops.
37063 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37064 are discovered, do a full loop-closed SSA rewrite.
37066 2013-02-11 Richard Biener <rguenther@suse.de>
37068 PR tree-optimization/56273
37069 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37071 (check_array_ref): Fix missing newline in dumps.
37072 (search_for_addr_array): Likewise.
37074 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37076 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37078 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37081 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37083 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37085 PR rtl-optimization/56246
37086 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37088 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37089 constraints are satisfied.
37091 2013-02-08 Jeff Law <law@redhat.com>
37094 * emit-rtl.c (reg_is_parm_p): New function.
37095 * regs.h (reg_is_parm_p): New prototype.
37096 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37097 callee-clobbered registers.
37099 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37102 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37103 If there is no implicit builtin declaration, just return NULL.
37105 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37107 * config/i386/sse.md (FMAMODEM): New mode iterator.
37108 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37109 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37111 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37113 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37114 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37115 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37117 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37119 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37120 (microblaze*-*-elf): Likewise.
37121 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37123 * config/microblaze/microblaze-c.c: Add builtin defines for
37124 _LITTLE_ENDIAN and _BIG_ENDIAN.
37125 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37126 add to TARGET_DEFAULT flags.
37127 Expand ASM_SPEC and LINK_SPEC.
37128 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37129 * config/microblaze/microblaze.md: Update extendsidi2 and
37130 movdi_internal instructions to use low-order / high-order reg
37132 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37133 options and inversemask / mask of LITTLE_ENDIAN.
37134 * config/microblaze/t-microblaze: Expand multilib options to
37135 include mlittle-endian (le) and update exceptions patterns.
37137 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37139 PR rtl-optimization/56195
37140 * lra-constraints.c (get_reload_reg): Don't reuse regs
37141 if they have smaller mode than requested, if they have
37142 wider mode than requested, try to return a SUBREG.
37144 PR tree-optimization/56250
37145 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37146 if type is unsigned and code isn't MULT_EXPR.
37148 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37150 PR tree-optimization/56064
37151 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37152 bits according to mode.
37153 * fixed-value.h (fixed_from_double_int)
37154 (const_fixed_from_double_int): Adjust comments.
37156 2013-02-08 Richard Biener <rguenther@suse.de>
37159 * lto-streamer.h (struct data_in): Remove current_file, current_line
37160 and current_col members.
37161 * lto-streamer-out.c (lto_output_location): Stream changed bits
37162 en-block for efficiency.
37163 * lto-streamer-in.c (clear_line_info): Remove.
37164 (lto_input_location): Cache current file, line and column
37165 globally via local statics. Read changed bits en-block.
37166 (input_function): Do not call clear_line_info.
37167 (lto_read_body): Likewise.
37168 (lto_input_toplevel_asms): Likewise.
37170 2013-02-08 Michael Matz <matz@suse.de>
37172 PR tree-optimization/52448
37173 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37174 (nt_call_phase): New static.
37175 (add_or_mark_expr): Only mark accesses with newer phase than any
37177 (nonfreeing_call_p): New.
37178 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37179 (nt_fini_block): Keep blocks marked as visited.
37180 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37182 2013-02-08 Richard Biener <rguenther@suse.de>
37184 * ira.c (ira): Free broken dominator information.
37186 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37188 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37190 2013-02-08 Marek Polacek <polacek@redhat.com>
37192 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37194 2013-02-08 Richard Biener <rguenther@suse.de>
37196 PR middle-end/56181
37197 * cfgloop.h (flow_loops_find): Adjust.
37198 (bb_loop_header_p): Declare.
37199 * cfgloop.c (bb_loop_header_p): New function split out from ...
37200 (flow_loops_find): ... here. Adjust function signature,
37201 support incremental loop structure update.
37202 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37203 * cfgloopmanip.c (fix_loop_structure): Move ...
37204 * loop-init.c (fix_loop_structure): ... here.
37205 (apply_loop_flags): Split out from ...
37206 (loop_optimizer_init): ... here.
37207 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37208 in incremental mode, only remove dead loops here.
37210 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37213 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37214 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37215 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37216 (*round<mode>3.libgcc): New insns for fixed-modes.
37217 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37218 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37219 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37220 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37221 implementations. Define to __builtin_avr_absFX,
37222 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37223 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37224 __builtin_avr_countlsFX, respectively.
37225 * config/avr/avr-c.c (target.h): Include it.
37226 (enum avr_builtin_id): New enum.
37227 (avr_resolve_overloaded_builtin): New static function.
37228 (avr_register_target_pragmas): Use it to set
37229 targetm.resolve_overloaded_builtin.
37230 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37231 tree nodes used by DEF_BUILTIN.
37232 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37233 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37234 <AVR_BUILTIN_xxBITS>: Same.
37236 2013-02-08 Richard Biener <rguenther@suse.de>
37238 * cfgloop.c (verify_loop_structure): Properly handle
37239 a loop exiting to another loop header.
37240 * ira-int.h (ira_loops): Remove.
37241 * ira.c (ira_loops): Remove.
37242 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37243 (do_reload): Use loop_optimizer_finalize.
37244 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37245 number_of_loops to access the loop tree.
37246 (more_one_region_p): Likewise.
37247 (finish_loop_tree_nodes): Likewise.
37248 (rebuild_regno_allocno_maps): Likewise.
37249 (mark_loops_for_removal): Likewise.
37250 (mark_all_loops_for_removal): Likewise.
37251 (remove_unnecessary_regions): Likewise.
37252 (ira_build): Likewise.
37253 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37255 2013-02-08 Richard Biener <rguenther@suse.de>
37257 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37258 * ipa-pure-const.c (analyze_function): Avoid calling
37259 mark_irreducible_loops twice.
37260 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37262 2013-02-07 David S. Miller <davem@davemloft.net>
37264 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37266 * var-tracking.c (vt_add_function_parameter): Test the presence of
37267 HAVE_window_save properly and do not remap argument registers when
37268 we have a leaf function.
37270 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37273 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37275 * config/i386/i386.c (ix86_print_operand): Ditto.
37277 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37279 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37281 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37283 PR rtl-optimization/56225
37284 * lra-constraints.c (process_alt_operands): Check that reload hard
37285 reg can hold value for strict_low_part.
37287 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37290 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37291 dwarf2out_end_function.
37292 (in_first_function_p, maybe_at_text_label_p,
37293 first_loclabel_num_not_at_text_label): New variables.
37294 (dwarf2out_var_location): In the first function find out
37295 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37296 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37299 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37301 PR rtl-optimization/56178
37302 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37303 SUBREG of a register. Tidy up related block of code.
37304 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37305 note if the source is a register or a SUBREG of a register.
37307 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37310 * config/rs6000/rs6000.md (ptrm): New mode attr.
37311 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37312 call_value_indirect_aix<pttrsize>,
37313 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37316 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37318 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37319 if -bnortl. Convert to strcmp and strncmp.
37321 2013-02-07 Alan Modra <amodra@gmail.com>
37324 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37325 addresses won't wrap when offsetting.
37326 (rs6000_secondary_reload): Provide secondary reloads needed for
37327 wrapping LO_SUM addresses.
37329 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37331 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37332 MACH, just __MACH__.
37334 2013-02-06 Richard Biener <rguenther@suse.de>
37336 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37337 instead of calling fix_loop_structure.
37339 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37341 PR middle-end/56217
37342 * omp-low.c (use_pointer_for_field): Return false if
37343 lower_send_shared_vars doesn't generate any copy-out code.
37345 2013-02-06 Tom de Vries <tom@codesourcery.com>
37347 PR rtl-optimization/56131
37348 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37349 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37350 of the label is NULL. Add comment.
37352 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37354 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37357 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37358 (STATIC_LIBTSAN_LIBS): Likewise.
37359 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37360 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37361 is defined, don't add anything else beyond that.
37362 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37363 (LINK_COMMAND_SPEC): Use them.
37365 PR tree-optimization/56205
37366 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37367 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37368 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37370 2013-02-05 Richard Biener <rguenther@suse.de>
37372 PR tree-optimization/53342
37373 PR tree-optimization/53185
37374 * tree-vectorizer.h (vect_check_strided_load): Remove.
37375 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37376 not disallow peeling for vectorized strided loads.
37377 (vect_check_strided_load): Make static and simplify.
37378 (vect_analyze_data_refs): Adjust.
37379 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37380 correctly when vectorizing strided loads.
37382 2013-02-05 Richard Biener <rguenther@suse.de>
37384 * doc/install.texi: Refer to ISL, not PPL.
37386 2013-02-05 Jan Hubicka <jh@suse.cz>
37388 PR tree-optimization/55789
37389 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37391 2013-02-05 Jan Hubicka <jh@suse.cz>
37393 PR tree-optimization/55789
37394 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37395 the dead call anyway.
37397 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37400 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37402 2013-02-04 Alexander Potapenko <glider@google.com>
37403 Jack Howarth <howarth@bromo.med.uc.edu>
37404 Jakub Jelinek <jakub@redhat.com>
37407 * config/darwin.c (sort_ctor_records): Stabilized qsort
37408 on constructor priority by using original position.
37409 (finalize_ctors): New routine to sort constructors by
37410 priority before use in assemble_integer.
37411 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37413 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37416 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37417 about visibility on artificial decls.
37418 * config/sol2.c (solaris_assemble_visibility): Likewise.
37420 2013-02-04 Kai Tietz <ktietz@redhat.com>
37423 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37424 argument and improve checking of return-argument types for 16-byte
37426 (ix86_function_value_1): Add additional valtype argument on call
37427 of function_value_64.
37428 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37429 handling infunction_value_64 function.
37431 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37433 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37435 2013-02-04 Richard Biener <rguenther@suse.de>
37437 PR tree-optimization/56188
37438 * tree-ssa-structalias.c (label_visit): Consider case with
37439 initially non-empty points-to set.
37440 (perform_var_substitution): Dump node mapping and clean up.
37442 2013-02-04 Richard Guenther <rguenther@suse.de>
37445 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37446 node prevail as last resort.
37447 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37448 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37450 2013-02-04 Richard Biener <rguenther@suse.de>
37452 PR tree-optimization/56113
37453 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37455 (equiv_class_lookup_or_add): ... this.
37456 (label_visit): Adjust and fix error in previous patch.
37457 (perform_var_substitution): Adjust.
37459 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37461 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37462 * config/sh/sh4-300.md: Likewise.
37463 * config/sh/sh4a.md: Likewise.
37464 * config/sh/constraints.md: Likewise.
37465 * config/sh/sh.md: Likewise.
37466 * config/sh/netbsd-elf.h: Likewise.
37467 * config/sh/predicates.md: Likewise.
37468 * config/sh/sh-protos.h: Likewise.
37469 * config/sh/ushmedia.h: Likewise.
37470 * config/sh/linux.h: Likewise.
37471 * config/sh/sh.c: Likewise.
37472 * config/sh/superh.h: Likewise.
37473 * config/sh/elf.h: Likewise.
37474 * config/sh/sh4.md: Likewise.
37475 * config/sh/sh.h: Likewise.
37477 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37479 * config/pa/constraints.md: Adjust unused letters. Change "T"
37480 constraint to match_test floating_point_store_memory_operand().
37481 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37482 (base14_operand): New.
37483 (floating_point_store_memory_operand): New.
37484 (integer_store_memory_operand): Revise to use base14_operand and
37485 reg_plus_base_memory_operand.
37486 (move_dest_operand): Allow symbolic_memory_operands.
37487 (symbolic_memory_operand): Check for LO_SOM.
37488 (symbolic_operand): Change default case to break.
37489 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37490 CONST_DOUBLE values to be reloaded by putting them into memory when
37491 the destination is a floating point register.
37492 (movdf): Remove code to handle CONST_DOUBLE.
37494 (reload_indf_r1): New.
37495 (reload_insf_r1): New.
37496 Consistently use "Q" and "T" constraints with integer and floating
37497 point move instructions, respectively.
37498 (movdi): Remove FAIL.
37499 Change predicate for source operand unamed DImode move from
37500 general_operand to move_src_operand.
37501 (umulsidi3): Change predicate for destination operand to
37503 Likewise for similar unamed patterns.
37504 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37505 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37506 (hppa_legitimize_address): Simplify mask calculation.
37507 (pa_emit_move_sequence): Revised handling of secondary reloads from
37508 REG+D addresses for floating point loads and stores. Directly handle
37509 loading CONST0_RTX (mode) to a floating point register.
37510 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37511 to floating point registers. Don't restrict secondary reloads to
37512 floating point registers to integer modes. Revise some comments and
37514 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37515 (pa_legitimate_address_p): New.
37516 (pa_legitimize_reload_address): New.
37517 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37518 (STRICT_REG_OK_FOR_BASE_P): New.
37519 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37520 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37522 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37523 Andrew Dixie <andrewd@gentrack.com>
37525 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37528 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37530 * expmed.c (extract_bit_field_1): Pass the full width of the
37531 structure to get_best_reg_extraction_insn.
37533 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37536 * configure.ac (use_cxa_atexit): Add AIX.
37537 * configure: Regenerate.
37539 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37541 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37544 * final.c (need_profile_function): New variable.
37545 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37546 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37547 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37548 notes, targetm.asm_out.function_prologue doesn't emit anything,
37549 HAVE_prologue and profiler should be emitted before prologue,
37550 set need_profile_function instead of emitting it.
37551 (final_scan_insn): If need_profile_function, emit
37552 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37553 NOTE_INSN_FUNCTION_BEG note.
37555 2013-02-01 Richard Henderson <rth@redhat.com>
37557 * config/rs6000/rs6000.md (smulditi3): New.
37560 * config/alpha/alpha.md (umulditi3): New.
37562 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37564 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37565 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37567 2013-02-01 Richard Biener <rguenther@suse.de>
37569 PR tree-optimization/56113
37570 * tree-ssa-structalias.c (label_visit): Reduce work for
37571 single-predecessor nodes.
37573 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37575 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37576 range isn't testing for zero.
37578 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37580 PR middle-end/56113
37581 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37583 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37584 Nick Clifton <nickc@redhat.com>
37586 * config/v850/constraints.md (Q): Define as a memory constraint.
37587 * config/v850/predicates.md (label_ref_operand): New predicate.
37588 (e3v5_shift_operand): New predicate.
37589 (ior_operator): New predicate.
37590 * config/v850/t-v850: Add e3v5 multilib.
37591 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37592 (v850_gen_movdi): Prototype.
37593 * config/v850/v850.c: Add support for e3v5 architecture.
37594 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37596 (construct_save_jarl): Add e3v5 long JARL support.
37597 (v850_adjust_insn_length): New function. Adjust length of call
37598 insns when using e3v5 instructions.
37599 (v850_gen_movdi): New function: Generate instructions to move a
37601 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37602 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37603 (TARGET_USE_FPU): Enable for e3v5.
37604 (CONST_OK_FOR_W): New macro.
37605 (ADJUST_INSN_LENGTH): Define.
37606 * config/v850/v850.md (UNSPEC_LOOP): Define.
37607 (attr cpu): Add v850e3v5.
37608 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37609 (movdi): New pattern.
37610 (movdi_internal): New pattern.
37611 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37612 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37613 (cstoresf4): Likewise.
37614 (cstoredf4): Likewise.
37615 (insv): New pattern.
37616 (rotlso3_a): New pattern.
37617 (rotlsi3_b): New pattern
37618 (rotlsi3_v850e3v5): New pattern.
37619 (doloop_begin): New pattern.
37620 (fix_loop_counter): New pattern.
37621 (doloop_end): New pattern.
37622 (branch_normal): Add e3v5 long branch support.
37623 (branch_invert): Likewise.
37624 (branch_z_normal): Likewise.
37625 (branch_z_invert): Likewise.
37626 (branch_nz_normal): Likewise.
37627 (branch_nz_invert): Likewise.
37628 (call_internal_short): Add e3v5 register-indirect JARL support.
37629 (call_internal_long): Likewise.
37630 (call_value_internal_short): Likewise.
37631 (call_value_internal_long): Likewise.
37632 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37633 (mloop): New option.
37634 * config.gcc: Add support for configuring v840e3v5 target.
37635 * doc/invoke.texi: Document new v850 specific command line options.
37637 2013-01-31 Paul Koning <ni1d@arrl.net>
37641 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37642 children if parent is a class.
37643 (prune_unused_types_prune): Don't add DW_AT_declaration.
37645 2013-01-31 Richard Biener <rguenther@suse.de>
37647 PR tree-optimization/56157
37648 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37649 match up operand with SLP child.
37651 2013-01-31 Jason Merrill <jason@redhat.com>
37654 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37655 parameters the first time.
37656 (gen_scheduled_generic_parms_dies): Check completeness here.
37658 2013-01-31 Richard Biener <rguenther@suse.de>
37660 PR middle-end/53073
37661 * common.opt (faggressive-loop-optimizations): New flag,
37662 enabled by default.
37663 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37664 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37665 infer_loop_bounds_from_undefined by it.
37667 2013-01-31 Richard Biener <rguenther@suse.de>
37669 PR tree-optimization/56150
37670 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37671 visit virtual operands.
37672 (find_uses_to_rename_bb): Likewise.
37674 2013-01-31 Richard Biener <rguenther@suse.de>
37676 PR tree-optimization/56150
37677 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37678 mixed store non-store stmts.
37680 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37683 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37684 LIBASAN_EARLY_SPEC is defined.
37685 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37686 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37688 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37691 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37692 invalid args instead of ICEing on it.
37693 (ix86_valid_target_attribute_tree): Return error_mark_node if
37694 ix86_valid_target_attribute_inner_p failed.
37695 (ix86_valid_target_attribute_p): Return false only if
37696 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37697 target("default") attribute.
37698 (sorted_attr_string): Change argument from const char * to tree,
37699 merge in all target attribute arguments rather than just one.
37700 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37701 instead of free. Avoid using strcat.
37702 (ix86_mangle_function_version_assembler_name): Mangle
37703 target("default") as if no target attribute is present. Adjust
37704 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37705 instead of xmalloc and XDELETEVEC instead of free.
37706 (ix86_function_versions): Don't return true if one of the decls
37707 doesn't have target attribute. If they don't and one of the decls
37708 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37709 sorted_attr_string caller. Use XDELETEVEC instead of free.
37710 (ix86_supports_function_versions): Remove.
37711 (make_name): Fix up formatting.
37712 (make_dispatcher_decl): Remove resolver_name and its initialization.
37713 Avoid leaking memory.
37714 (is_function_default_version): Return true if there is
37715 target("default") attribute rather than no target attribute at all.
37716 (make_resolver_func): Avoid leaking memory.
37717 (ix86_generate_version_dispatcher_body): Likewise.
37718 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37719 * target.def (supports_function_versions): Remove.
37720 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37721 * doc/tm.texi: Regenerated.
37723 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37725 PR rtl-optimization/56144
37726 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37727 for values with side effects.
37729 2013-01-30 Richard Biener <rguenther@suse.de>
37731 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37732 (sparseset_pop): Likewise.
37733 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37734 to be able to use quick_push in the worker loop.
37736 2013-01-30 Marek Polacek <polacek@redhat.com>
37738 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37740 2013-01-30 Richard Biener <rguenther@suse.de>
37743 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37745 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37747 PR tree-optimization/56064
37748 * fixed-value.c (fixed_from_double_int): New function.
37749 * fixed-value.h (fixed_from_double_int): New prototype.
37750 (const_fixed_from_double_int): New static inline function.
37751 * fold-const.c (native_interpret_fixed): New static function.
37752 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37753 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37754 (native_encode_fixed): New static function.
37755 (native_encode_expr) <FIXED_CST>: Use it.
37756 (native_interpret_int): Move double_int worker code to...
37757 * double-int.c (double_int::from_buffer): ...this new static method.
37758 * double-int.h (double_int::from_buffer): Prototype it.
37760 2013-01-30 Richard Biener <rguenther@suse.de>
37762 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37763 New pointer-map and obstack.
37764 (init_alias_vars): Allocate pointer-map and obstack.
37765 (delete_points_to_sets): Free them.
37766 (find_what_var_points_to): Cache result.
37767 (find_what_p_points_to): Adjust for changed interface of
37768 find_what_var_points_to.
37769 (compute_points_to_sets): Likewise.
37770 (ipa_pta_execute): Likewise.
37772 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37774 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37775 * configure: Regenerate.
37776 * config.in: Regenerate.
37777 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37778 #nobits/#progbits if supported.
37780 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37783 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37784 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37785 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37787 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37789 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37790 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37792 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37794 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37795 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37797 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37799 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37801 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37802 * config/arm/cortex-a7.md: New bypasses using
37803 arm_mac_accumulator_is_result.
37805 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37807 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37808 (cortex_a7_neon_mla): Likewise.
37809 (cortex_a7_fpfmad): New reservation.
37810 (cortex_a7_fpmacs): Use ffmas and update required units.
37811 (cortex_a7_fpmuld): Update required units and latency.
37812 (cortex_a7_fpmacd): Likewise.
37813 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37814 (cortex_a7_neon). Likewise.
37815 (bypass) Update participating units.
37817 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37819 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37820 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37822 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37823 (vfp_fmul): Use ffmad.
37824 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37825 (cortex_r4_fmacd): Use ffmad.
37826 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37827 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37828 (cortex_a9_fmacd): Use ffmad.
37829 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37830 (cortex_a8_vfp_macd): Use ffmad.
37831 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37832 (cortex_a5_fpmacd): Use ffmad.
37833 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37834 (cortex_a15_vfp_macd): Use ffmad.
37835 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37837 2013-01-29 Jason Merrill <jason@redhat.com>
37840 * varasm.c (default_assemble_visibility): Don't warn about
37841 visibility on artificial decls.
37843 2013-01-29 Richard Biener <rguenther@suse.de>
37845 PR tree-optimization/56113
37846 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37848 (label_visit): Free duplicate bitmaps and record the leader instead.
37849 (perform_var_substitution): Adjust.
37851 2013-01-29 Richard Biener <rguenther@suse.de>
37853 PR tree-optimization/55270
37854 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37855 the CFG, schedule loops for fixup.
37857 2013-01-29 Nick Clifton <nickc@redhat.com>
37859 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37862 2013-01-28 Leif Ekblad <leif@rdos.net>
37864 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37865 * config/i386/i386.h (TARGET_RDOS): New macro.
37866 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37867 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37868 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37869 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37870 DEFAULT_LARGE_SECTION_THRESHOLD.
37871 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37872 * config/i386/rdos.h: New file.
37873 * config/i386/rdos64.h: New file.
37875 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37878 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37881 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37883 PR rtl-optimization/56117
37884 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37885 call cselib_lookup_from_insn on the MEM before calling
37886 add_insn_mem_dependence.
37888 2013-01-28 Richard Biener <rguenther@suse.de>
37890 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37891 to a stmt that didn't have one.
37892 (copy_phis_for_bb): Likewise for PHI arguments.
37893 (copy_debug_stmt): Likewise for debug stmts.
37895 2013-01-28 Richard Biener <rguenther@suse.de>
37897 PR tree-optimization/56034
37898 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37899 (partition_builtin_p): Adjust.
37900 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37901 it is the last partition.
37902 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37903 up the vertex for the definition.
37904 (classify_partition): Classify whether a partition is a
37905 PKIND_REDUCTION, thus has uses outside of the loop.
37906 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37907 Merge all PKIND_REDUCTION partitions into the last partition.
37908 (tree_loop_distribution): Seed partitions from reductions as well.
37910 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37912 PR tree-optimization/56125
37913 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37914 pow(x,c) into sqrt(x) * powi(x, n/2) or
37915 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37916 optimizing for size.
37917 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37918 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37921 PR tree-optimization/56094
37922 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37923 to UNKNOWN_LOCATION while gimplifying expr.
37925 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37928 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37929 operand 0 in movabs insn template for -masm=intel asm alternative.
37930 (*movabs<mode>_2): Ditto for operand 1.
37932 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37935 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37938 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37940 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37943 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37945 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37946 Undef to avoid warning.
37948 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37950 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37951 * configure: Regenerate.
37953 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37955 PR tree-optimization/56098
37956 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37957 for stmts with volatile ops.
37958 (cond_store_replacement): Don't optimize if assign has volatile ops.
37959 (cond_if_else_store_replacement_1): Don't optimize if either
37960 then_assign or else_assign have volatile ops.
37961 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37964 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37966 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37968 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37970 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37971 missing ':' in asm example.
37973 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37975 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37976 entries into lane and laneq entries.
37977 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37978 Remove AdvSIMD scalar modes.
37979 (aarch64_sq<r>dmulh_laneq<mode>): New.
37980 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37982 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37983 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37984 * config/aarch64/iterators.md (VCOND): New.
37987 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37990 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37991 Add NULL LIBNAME argument to existing definitions.
37992 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37993 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37994 * config/avr/avr.c (DEF_BUILTIN): Same.
37995 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37996 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37997 implementation is available (DECL_ASSEMBLER_NAME is set).
37998 (avr_fold_absfx): New static function.
37999 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38000 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38001 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38002 AVR_BUILTIN_ABSLLK.
38003 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38004 (abshk, absk, abslk, absllk): Provide as static inline functions.
38006 2013-01-25 Marek Polacek <polacek@redhat.com>
38008 PR tree-optimization/56035
38009 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38011 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38013 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38014 (*movtf_internal_rex64): Add (!o,C) alternative
38015 (*movxf_internal_rex64): Ditto.
38016 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38018 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38020 * doc/invoke.texi: fix typo.
38021 * doc/objc.texi: fix typo.
38023 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38025 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38026 for the first two alternatives.
38028 2013-01-24 Diego Novillo <dnovillo@google.com>
38030 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38031 (ggc-zone.o): Remove.
38032 * configure.ac: Remove option --with-gc.
38033 * configure: Re-generate.
38034 * doc/install.texi: Remove documentation for --with-gc.
38035 * gengtype.c (write_enum_defn): Remove. Update all users.
38036 (write_Types_process_field): Remove generation of gt_e_* argument.
38037 (output_type_enum): Remove. Update all users.
38038 (write_enum_defn): Remove. Update all users.
38039 (enum alloc_zone): Remove. Update all users.
38040 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38041 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38042 Update all callers.
38043 (struct ptr_data): Remove field TYPE. Update all users.
38044 (gt_pch_note_object): Remove argument TYPE. Update all users.
38045 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38047 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38048 (struct alloc_zone): Remove.
38049 (ggc_internal_alloc_zone_stat): Remove.
38050 (ggc_internal_cleared_alloc_zone_stat): Remove.
38051 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38052 (ggc_pch_count_object): Remove last argument. Update all users.
38053 (ggc_pch_alloc_object): Remove last argument. Update all users.
38054 (struct alloc_zone): Remove.
38055 * ggc-zone.c: Remove.
38056 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38057 (struct alloc_zone): Remove.
38058 (ggc_alloc_typed_stat): Remove.
38059 (ggc_alloc_typed): Remove.
38060 (ggc_splay_alloc): Remove first argument.
38061 (rtl_zone): Remove. Update all users.
38062 (tree_zone): Remove. Update all users.
38063 (tree_id_zone): Remove. Update all users.
38064 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38065 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38066 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38067 * tree-ssanames.c: Remove references to zone allocator in comments.
38069 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38071 * config/avr/avr.c (avr_out_fract): Make register numbers that
38072 might be outside of source operand signed.
38074 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38076 * config/i386/constraints.md (Yf): New constraint.
38077 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38078 of f constraint to conditionaly disable x87 register preferences.
38079 (*movdf_internal): Ditto.
38080 (*movsf_internal): Ditto.
38082 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38084 PR inline-asm/55934
38085 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38086 that have operands with impossible constraints.
38087 Add a FIXME for a speed-up opportunity.
38088 * lra-constraints.c (process_alt_operands): Verify that a class
38089 selected from constraints on asms is valid for the operand mode.
38090 (curr_insn_transform): Remove incorrect comment.
38092 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38094 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38095 TOC operand is a valid symbol ref in the constant pool.
38097 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38099 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38101 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38104 * config/avr/stdfix.h: New file.
38105 * t-avr (stdfix-gcc.h): New rule to build it.
38106 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38108 2013-01-23 Kostya Serebryany <kcc@google.com>
38110 * config/darwin.h: remove dependency on
38111 CoreFoundation (asan on Mac OS).
38113 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38116 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38117 instead of cmpdi_operand for first comparison operand.
38118 Don't assert that comparison operands aren't both constants.
38120 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38122 * doc/install.texi (Downloading the Source): Update references to
38123 downloading separate components.
38125 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38127 * doc/extend.texi (__int128): Improve grammar.
38129 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38132 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38133 alternative to (o,r).
38134 (*movdi_internal_rex64): Remove (!o,n) alternative.
38135 (DImode immediate->memory splitter): Remove.
38136 (DImode immediate->memory peephole2): Remove.
38137 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38138 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38139 alternative to (!o,*r).
38140 (*movtf_internal_sse): New pattern.
38141 (*movxf_internal_rex64): New pattern.
38142 (*movxf_internal): Disable for TARGET_64BIT.
38143 (*movdf_internal_rex64): Remove (!o,F) alternative.
38145 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38147 PR middle-end/56074
38148 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38149 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38150 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38151 stmt locations where LOCATION_LOCUS of the stmt location is
38152 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38155 * config/i386/i386.md (UNSPEC_STOS): New.
38156 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38157 *strsetqi_1): Add UNSPEC_STOS.
38159 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38162 * doc/invoke.texi: Remove left over -Wsynth example.
38164 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38166 PR tree-optimization/56051
38167 * fold-const.c (fold_binary_loc): Don't fold
38168 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38169 a narrowing conversion, or widening conversion from signed
38172 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38174 PR rtl-optimization/56023
38175 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38176 dependent on debug instruction.
38178 2013-01-21 Martin Jambor <mjambor@suse.cz>
38180 PR middle-end/56022
38181 * function.c (allocate_struct_function): Call
38182 invoke_set_current_function_hook earlier.
38184 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38186 * reload1.c (init_reload): Only initialize reload_obstack
38187 during the first call.
38189 2013-01-21 Marek Polacek <polacek@redhat.com>
38191 * cfgloop.c (verify_loop_structure): Fix up grammar.
38193 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38195 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38196 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38198 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38201 * config/arm/marvell-pj4.md: Update copyright year.
38202 Fix up use of alu to alu_reg and simple_alu_imm.
38204 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38206 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38208 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38211 * lra-constraints.c (curr_insn_transform): Don't reuse original
38212 insn for secondary memory move when memory mode should be different.
38214 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38216 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38217 atomic_storedi_1): New patterns.
38219 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38221 btver2 pipeline descriptions.
38222 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38224 * config/i386/i386.md (btver2_decode): New type attributes.
38225 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38227 * config/i386/btver2.md: New file describing btver2 pipelines.
38229 2013-01-19 Andrew Pinski <apinski@cavium.com>
38231 PR tree-optimization/52631
38232 * tree-ssa-sccvn (visit_use): Before looking up the original
38233 statement, try looking up the simplified expression.
38235 2013-01-19 Anthony Green <green@moxielogic.com>
38237 * config/moxie/moxie.c (moxie_expand_prologue): Set
38238 current_function_static_stack_size.
38240 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38242 PR tree-optimization/56029
38243 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38244 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38246 2013-01-18 Sharad Singhai <singhai@google.com>
38248 PR tree-optimization/55995
38249 * dumpfile.c (dump_loc): Print location only if available.
38250 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38252 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38255 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38256 secondary memory move.
38257 (inherit_reload_reg): Use rclass instead of cl for
38258 check_secondary_memory_needed_p.
38260 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38262 PR middle-end/56015
38263 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38264 the case where writing real complex part of target modifies op1.
38266 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38268 * config/aarch64/aarch64-simd.md
38269 (aarch64_vcond_internal<mode>): Handle unordered cases.
38270 * config/aarch64/iterators.md (v_cmp_result): New.
38272 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38273 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38275 * config/arm/marvell-pj4.md: New file.
38276 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38277 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38278 (generic_vfp): Likewise.
38279 * config/arm/arm-cores.def: Add marvell-pj4.
38280 * config/arm/arm-tune.md: Regenerate.
38281 * config/arm/arm-tables.opt: Regenerate.
38282 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38283 * doc/invoke.texi: Document marvell-pj4.
38285 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38287 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38289 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38294 * var-tracking.c (negative_power_of_two_p): New.
38295 (global_get_addr_cache, local_get_addr_cache): New.
38296 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38297 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38299 (vt_stack_offset_p): Remove.
38300 (vt_canon_true_dep): Always canonicalize loc's address.
38301 (clobber_overlapping_mems): Make sure we have a MEM.
38302 (local_get_addr_clear_given_value): New.
38303 (val_reset): Clear local cached entries.
38304 (compute_bb_dataflow): Create and release the local cache.
38305 Disable duplicate MEMs clobbering.
38306 (emit_notes_in_bb): Clobber MEMs likewise.
38307 (vt_emit_notes): Create and release the local cache.
38308 (vt_initialize, vt_finalize): Create and release the global
38309 cache, respectively.
38310 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38312 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38314 PR libmudflap/53359
38315 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38316 not found in the symtab.
38318 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38321 PR rtl-optimization/55547
38322 PR rtl-optimization/53827
38325 * alias.c (offset_overlap_p): New, factored out of...
38326 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38327 the conservative special case for symbolic constants. Don't
38328 adjust zero sizes on alignment.
38330 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38332 PR rtl-optimization/52573
38333 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38334 REG_UNUSED for the same register.
38336 2013-01-17 Richard Biener <rguenther@suse.de>
38337 Marek Polacek <polacek@redhat.com>
38339 PR rtl-optimization/55833
38340 * loop-unswitch.c (unswitch_loops): Move loop verification...
38341 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38342 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38343 Set it to true when we're removing a loop from hierarchy tree in
38344 an irreducible region.
38345 (fix_bb_placements): Adjust caller.
38346 (fix_loop_placements): Likewise.
38348 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38350 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38351 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38352 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38353 Remove ID. Adjust comments.
38354 * config/avr/avr-c.c (avr_builtin_name): Remove.
38355 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38356 * config/avr/avr.c (avr_tolower): New static function.
38357 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38358 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38359 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38362 2013-01-17 Jan Hubicka <jh@suse.cz>
38364 PR tree-optimization/55273
38365 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38367 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38370 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38371 store through atomic_store<mode>_1.
38372 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38374 2013-01-17 Martin Jambor <mjambor@suse.cz>
38376 PR tree-optimizations/55264
38377 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38378 for virtual methods.
38379 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38380 virtual methods before inlining is over.
38381 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38383 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38386 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38388 PR rtl-optimization/56005
38389 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38390 pending reads for prefetch.
38392 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38394 * config/aarch64/aarch64.md
38395 (*cstoresi_neg_uxtw): New pattern.
38396 (*cmovsi_insn_uxtw): New pattern.
38397 (*<optab>si3_uxtw): New pattern.
38398 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38399 (*<optab>si3_insn_uxtw): New pattern.
38400 (*bswapsi2_uxtw): New pattern.
38402 2013-01-16 Richard Biener <rguenther@suse.de>
38404 * tree-inline.c (tree_function_versioning): Remove set but
38405 never used variable.
38407 2013-01-16 Richard Biener <rguenther@suse.de>
38409 PR tree-optimization/55964
38410 * tree-flow.h (rename_variables_in_loop): Remove.
38411 (rename_variables_in_bb): Likewise.
38412 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38413 (copy_loop_before): Adjust and delete update-ssa status.
38414 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38415 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38416 (rename_variables_in_loop): Remove.
38417 (slpeel_update_phis_for_duplicate_loop): Likewise.
38418 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38419 use available cfg machinery instead of duplicating it.
38420 Update PHI nodes and perform poor-mans SSA update here.
38421 (slpeel_tree_peel_loop_to_edge): Adjust.
38423 2013-01-16 Richard Biener <rguenther@suse.de>
38425 PR tree-optimization/54767
38426 PR tree-optimization/53465
38427 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38428 (vrp_visit_phi_node): For PHI arguments coming via backedges
38429 drop all symbolical range information.
38430 (execute_vrp): Compute backedges.
38432 2013-01-16 Richard Biener <rguenther@suse.de>
38434 * doc/install.texi: Update CLooG and ISL requirements to
38437 2013-01-16 Christian Bruel <christian.bruel@st.com>
38440 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38441 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38442 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38444 2013-01-16 DJ Delorie <dj@redhat.com>
38446 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38447 (UNSPECV_SP_SWITCH_E): New.
38448 (sp_switch_1): Change to an unspec.
38449 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38452 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38454 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38455 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38456 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38457 (expand_mem_thread_fence): Ditto.
38458 (expand_mem_signal_fence): Ditto.
38459 (expand_atomic_load): Ditto.
38460 (expand_atomic_store): Ditto.
38462 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38464 PR rtl-optimization/55547
38465 PR rtl-optimization/53827
38468 * alias.c (memrefs_conflict_p): Set sizes to negative after
38471 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38474 * function.c (thread_prologue_and_epilogue_insns): Always
38475 add crtl->drap_reg to set_up_by_prologue.set, even if
38476 stack_realign_drap is false.
38478 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38480 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38481 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38482 *call): Fix indention.
38484 2013-01-15 Tom de Vries <tom@codesourcery.com>
38487 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38490 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38492 PR rtl-optimization/55153
38493 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38495 2013-01-15 Martin Jambor <mjambor@suse.cz>
38497 PR tree-optimization/55920
38498 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38499 accesses as grp_to_be_debug_replaced.
38501 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38503 PR tree-optimization/55920
38504 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38505 there is non-useless type conversion needed from debug rhs to lhs,
38506 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38508 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38509 Mikael Pettersson <mikpe@it.uu.se>
38512 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38514 (ASM_OUTPUT_CASE_LABEL): Remove.
38515 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38516 * final.c (shorten_branches): Update alignment of labels before
38517 jump tables if CASE_VECTOR_SHORTEN_MODE.
38519 2013-01-15 Richard Biener <rguenther@suse.de>
38522 * system.h: Do not include gmp.h for building host tools.
38524 2013-01-15 Richard Biener <rguenther@suse.de>
38526 PR middle-end/55882
38527 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38528 account for bitpos when computing alignment.
38530 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38532 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38533 (ix86_target_macros_internal): Likewise.
38535 * config/i386/i386.c (m_CORE2I7): Removed.
38536 (m_CORE_HASWELL): New macro.
38537 (m_CORE_ALL): Likewise.
38538 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38539 (initial_ix86_arch_features): Likewise.
38540 (processor_target_table): Initializations for Core avx2.
38541 (cpu_names): New names "core-avx2".
38542 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38543 PROCESSOR_CORE_HASWELL.
38544 (ix86_issue_rate): New case.
38545 (ia32_multipass_dfa_lookahead): Likewise.
38546 (ix86_sched_init_global): Likewise.
38548 * config/i386/i386.h (TARGET_HASWELL): New macro.
38549 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38550 (processor_type): New PROCESSOR_HASWELL.
38552 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38554 PR tree-optimization/55955
38555 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38556 *SHIFT_EXPR and *ROTATE_EXPR codes.
38558 PR tree-optimization/48766
38559 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38560 -ftrapv disable -fwrapv.
38562 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38565 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38566 etc. to 1 and not to __flash.
38567 Use LL suffix for __INT24_MAX__ with -mint8.
38568 Use ULL suffix for __UINT24_MAX__ with -mint8.
38570 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38572 * config/avr/avr-arch.h
38573 (struct base_arch_s): Use typedef avr_arch_t instead.
38574 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38575 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38576 * config/avr/avr.c: Same.
38577 * config/avr/avr-devices.c: Same.
38578 * config/avr/driver-avr.c: Same.
38579 * config/avr/gen-avr-mmcu-texi.c: Same.
38580 * config/avr/avr-mcus.def: Adjust comment.
38582 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38584 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38585 * config/aarch64/iterators.md (VALLDI): New.
38587 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38588 Andi Kleen <ak@linux.intel.com>
38591 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38592 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38595 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38597 * config/avr/avr-stdint.h: Remove trailing blanks.
38598 * config/avr/avr-log.h: Same.
38599 * config/avr/avr-arch.h: Same.
38600 * config/avr/avr-devices.c: Same.
38601 * config/avr/avr-dimode.md: Same.
38602 * config/avr/predicates.md: Same.
38603 * config/avr/avr-c.c: Same. And fix typo.
38605 * config/avr/avr-protos.h: Same. And:
38606 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38607 (init_cumulative_args): Rename to avr_init_cumulative_args.
38608 (expand_prologue): Rename to avr_expand_prologue.
38609 (expand_epilogue): Rename to avr_expand_epilogue.
38610 (adjust_insn_length): Rename to avr_adjust_insn_length.
38611 (notice_update_cc): Rename to avr_notice_update_cc.
38612 (final_prescan_insn): Rename to avr_final_prescan_insn.
38613 * config/avr/avr.c: Same.
38614 * config/avr/avr.h: Same.
38615 * config/avr/avr.md: Remove trailing blanks.
38616 (prologue): Use avr_expand_prologue.
38617 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38619 2013-01-14 Richard Biener <rguenther@suse.de>
38621 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38622 verify_location, collect_subblocks): New functions.
38623 (verify_gimple_in_cfg): Verify that locations only reference
38624 BLOCKs in the functions BLOCK tree.
38626 2013-01-14 Richard Biener <rguenther@suse.de>
38628 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38630 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38632 (insert_out_of_ssa_copy_on_edge): Likewise.
38633 (rewrite_close_phi_out_of_ssa): Likewise.
38634 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38636 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38637 propagated constants.
38638 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38641 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38643 * config/avr/avr-modes.def: Add GPL copyright notice.
38645 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38647 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38648 MEMMODEL_MASK to determine memory model.
38649 (atomic_store<mode>): Ditto from operands[2].
38650 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38652 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38655 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38656 (fold_gimple_assign): Don't call unshare_expr here.
38657 (fold_ctor_reference): Call unshare_expr.
38659 2013-01-13 Terry Guo <terry.guo@arm.com>
38661 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38662 * doc/fragments.texi: Document MULTILIB_REUSE.
38663 * gcc.c (multilib_reuse): New internal spec.
38664 (set_multilib_dir): Also search multilib from multilib_reuse.
38665 * genmultilib (tmpmultilib3): Refactor code.
38666 (tmpmultilib4): Ditto.
38667 (multilib_reuse): New multilib argument.
38669 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38671 * Makefile.in: Update copyright.
38673 2013-01-12 Tom de Vries <tom@codesourcery.com>
38675 PR middle-end/55890
38676 * calls.c (expand_call): Check if arg_nr is valid.
38678 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38680 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38681 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38682 documentation. Add missing '__' in front of
38683 __builtin_ia32_packssdw256.
38685 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38688 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38689 NO_REGS for larl operands.
38690 (s390_reload_larl_operand): Use s390_load_address instead of
38693 2013-01-11 Richard Biener <rguenther@suse.de>
38695 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38696 (verify_node_sharing): ... here.
38697 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38699 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38701 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38702 Substitute TREECHECKING.
38703 * configure: Regenerate.
38704 * Makefile.in (TREECHECKING): New.
38706 2013-01-11 Richard Guenther <rguenther@suse.de>
38708 PR tree-optimization/44061
38709 * tree-vrp.c (extract_range_basic): Compute zero as
38710 value-range for __builtin_constant_p of function parameters.
38712 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38714 Update copyright years.
38716 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38718 PR rtl-optimization/55672
38719 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38720 const to be eliminable.
38722 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38724 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38725 * configure: Regenerate.
38727 2013-01-10 Richard Biener <rguenther@suse.de>
38729 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38731 2013-01-10 Richard Biener <rguenther@suse.de>
38734 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38735 locations for virtual PHI arguments.
38736 (rewrite_update_phi_arguments): Likewise.
38738 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38740 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38743 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38745 PR tree-optimization/55921
38746 * tree-complex.c (expand_complex_asm): New function.
38747 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38749 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38752 * config/s390/s390.c (s390_symref_operand_p)
38753 (s390_loadrelative_operand_p): Merge the two functions.
38754 (s390_check_qrst_address, print_operand_address): Add parameters
38755 to s390_loadrelative_operand_p invokation.
38756 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38757 (s390_reload_larl_operand, s390_secondary_reload): Use
38758 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38759 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38761 2013-01-09 Mike Stump <mikestump@comcast.net>
38763 * dse.c (record_store): Remove unnecessary assert.
38765 2013-01-09 Jan Hubicka <jh@suse.cz>
38767 PR tree-optimization/55569
38768 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38769 * cfgloop.h (scale_loop_profile): Likewise.
38771 2013-01-09 Jan Hubicka <jh@suse.cz>
38774 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38776 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38778 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38780 PR middle-end/55114
38781 * expr.h (maybe_emit_group_store): Declare.
38782 * expr.c (maybe_emit_group_store): New function.
38783 * builtins.c (expand_builtin_int_roundingfn): Call it.
38784 (expand_builtin_int_roundingfn_2): Likewise.
38786 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38788 PR rtl-optimization/55829
38789 * lra-constraints.c (match_reload): Add code for absent output.
38790 (curr_insn_transform): Add code for reloads of matched inputs
38793 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38795 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38796 attribute of movddup insn to DF.
38797 (*vec_interleave_lowv2df): Ditto.
38798 (vec_dupv2df): Ditto.
38800 2013-01-09 Jan Hubicka <jh@suse.cz>
38802 PR tree-optimiation/55875
38803 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38804 EVERY_ITERATION parameter.
38805 (number_of_iterations_exit): Check if exit is executed every iteration.
38806 (idx_infer_loop_bounds): Similarly here.
38807 (n_of_executions_at_most): Simplify
38808 to only test for cases where statement is dominated by the
38809 particular bound; handle correctly the "postdominance" test.
38810 (scev_probably_wraps_p): Use max loop iterations info
38811 as a global bound first.
38813 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38814 Nick Clifton <nickc@redhat.com>
38816 * config/v850/v850.md (cbranchsf4): New pattern.
38817 (cstoresf4): New pattern.
38818 (cbranchdf4): New pattern.
38819 (cstoredf4): New pattern.
38820 (movsicc): Disallow floating point comparisons.
38821 (cmpsf_le_insn): Fix order of operators.
38822 (cmpsf_lt_insn): Likewise.
38823 (cmpsf_eq_insn): Likewise.
38824 (cmpdf_le_insn): Likewise.
38825 (cmpdf_lt_insn): Likewise.
38826 (cmpdf_eq_insn): Likewise.
38827 (cmpsf_ge_insn): Use LE comparison.
38828 (cmpdf_ge_insn): Likewise.
38829 (cmpsf_gt_insn): Use LT comparison.
38830 (cmpdf_gt_insn): Likewise.
38831 (cmpsf_ne_insn): Delete pattern.
38832 (cmpdf_ne_insn): Delete pattern.
38833 * config/v850/v850.c (v850_gen_float_compare): Use
38834 gen_cmpdf_eq_insn for NE comparison.
38835 (v850_float_z_comparison_operator)
38836 (v850_float_nz_comparison_operator): Move from here ...
38837 * config/v850/predicates.md: ... to here. Move GT and GE
38838 comparisons into v850_float_z_comparison_operator.
38839 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38841 (v850_float_nz_comparison_operator): Likewise.
38843 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38845 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38846 with calls to gen_insvsi/gen_insvdi.
38848 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38850 * config/i386/i386.c (initial_ix86_tune_features): Set up
38851 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38853 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38854 Jakub Jelinek <jakub@redhat.com>
38856 PR tree-optimization/48189
38857 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38858 If nitercst is 0, don't predict the exit edge.
38860 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38862 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38863 in asm_fprintf with reg_names.
38864 (aarch64_print_operand_address): Likewise.
38865 (aarch64_return_addr): Likewise.
38866 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38868 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38870 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38871 (INT_U6_BITS): Likewise.
38872 * config/pa/predicates.md (uint6_operand): New predicate.
38873 (shift5_operand, shift6_operand): Likewise.
38874 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38876 (lshrdi3): Use shift6_operand.
38877 (shrpsi4, shrpdi4): New insn patterns.
38878 (extzv): Delete expander.
38879 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38880 predicates in unamed zero extract patterns. Tighten common constraint.
38881 (extv): Delete expander.
38882 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38883 predicates in unamed sign extract patterns. Tighten common constraint.
38884 (insv): Delete expander.
38885 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38886 predicates in unamed insert patterns. Tighten common constraint.
38887 Change uint32_operand predicate to uint6_operand predicate in unamed
38888 DImode pattern to insert constant values of type 1...1xxxx.
38890 2013-01-04 Jan Hubicka <jh@suse.cz>
38892 PR tree-optimization/55823
38893 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38896 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38897 Uros Bizjak <ubizjak@gmail.com>
38899 PR rtl-optimization/55845
38900 * df-problems.c (can_move_insns_across): Stop scanning at
38901 volatile_insn_p source instruction or give up if
38902 across_from .. across_to range contains any volatile_insn_p
38905 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38907 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38908 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38910 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38911 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38913 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38916 * asan.c (asan_clear_shadow): New function.
38917 (asan_emit_stack_protection): Use it.
38919 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38921 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38922 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38923 with tab instead of space.
38925 2013-01-08 Nick Clifton <nickc@redhat.com>
38927 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38928 register bank 0 at the start of an interrupt handler.
38929 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38932 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38934 * config/aarch64/aarch64-simd.md
38935 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38936 (aarch64_simd_bsl): Likewise.
38937 (aarch64_vcond_internal<mode>): Likewise.
38938 (vcond<mode><mode>): Likewise.
38939 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38940 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38942 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38944 * config/aarch64/aarch64-builtins.c
38945 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38947 2013-01-08 Martin Jambor <mjambor@suse.cz>
38950 * tree-sra.c (analyze_access_subtree): Return true also after
38951 potentially creating a debug-only replacement.
38953 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38955 PR middle-end/55890
38956 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38958 PR tree-optimization/54120
38959 * tree-vrp.c (range_fits_type_p): Don't allow
38960 src_precision < precision from signed vr to unsigned_p
38961 if vr->min or vr->max is negative.
38962 (simplify_float_conversion_using_ranges): Test can_float_p
38963 against CODE_FOR_nothing.
38965 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38966 Richard Biener <rguenther@suse.de>
38968 PR middle-end/55851
38969 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38970 types instead of just INTEGER_TYPE types.
38972 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38974 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38977 2013-01-07 Steve Ellcey <sellcey@mips.com>
38980 * config/mips/mips.opt: Change mad to mmad to match documentation.
38982 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38985 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38986 .progmemx.data now.
38988 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38991 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38992 (avr_addrspace_t): Add .section_name field.
38993 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38995 (avr_addrspace): Same. Initialize .section_name. Remove last
38996 NULL entry. Put __memx into .progmemx.data.
38997 (progmem_section_prefix): Remove.
38998 (avr_asm_init_sections): No need to initialize progmem_section.
38999 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39000 section name prefix.
39001 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39002 retrieve the progmem section.
39003 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39004 boundary to run over avr_addrspace[].
39005 (avr_register_target_pragmas): Ditto.
39007 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39009 * varasm.c (output_constant_def_contents): For asan_protect_global
39010 protected strings, adjust DECL_ALIGN if needed, before testing for
39012 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39013 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39015 (output_object_block): For asan protected decls, emit asan padding
39016 after their contents.
39017 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39018 (asan_finish_file): Test it here instead.
39020 2013-01-07 Nick Clifton <nickc@redhat.com>
39021 Matthias Klose <doko@debian.org>
39022 Doug Kwan <dougkwan@google.com>
39023 H.J. Lu <hongjiu.lu@intel.com>
39026 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39028 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39030 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39032 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39034 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39036 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39039 * doc/install.texi (Cross-Compiler-Specific Options): Document
39042 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39044 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39045 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39046 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39047 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39048 vqmovun_high_s64): Fix source operand number and update copyright.
39050 2013-01-07 Richard Biener <rguenther@suse.de>
39052 PR middle-end/55890
39053 * gimple.h (gimple_call_builtin_p): New overload.
39054 * gimple.c (validate_call): New function.
39055 (gimple_call_builtin_p): Likewise.
39056 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39057 Use gimple_call_builtin_p.
39058 (find_func_clobbers): Likewise.
39059 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39060 (strlen_optimize_stmt): Likewise.
39062 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39064 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39065 (vld1q_dup_*): Likewise.
39066 (vld1_*): Likewise.
39067 (vld1q_*): Likewise.
39068 (vld1_lane_*): Likewise.
39069 (vld1q_lane_*): Likewise.
39071 2013-01-07 Richard Biener <rguenther@suse.de>
39073 * lto-streamer.h (LTO_minor_version): Bump to 2.
39075 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39077 * config/aarch64/aarch64-protos.h
39078 (aarch64_const_double_zero_rtx_p): Rename to...
39079 (aarch64_float_const_zero_rtx_p): ...this.
39080 (aarch64_float_const_representable_p): New.
39081 (aarch64_output_simd_mov_immediate): Likewise.
39082 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39083 move immediate case.
39084 * config/aarch64/aarch64.c
39085 (aarch64_const_double_zero_rtx_p): Rename to...
39086 (aarch64_float_const_zero_rtx_p): ...this.
39087 (aarch64_print_operand): Allow printing of new constants.
39088 (aarch64_valid_floating_const): New.
39089 (aarch64_legitimate_constant_p): Check for valid floating-point
39091 (aarch64_simd_valid_immediate): Likewise.
39092 (aarch64_vect_float_const_representable_p): New.
39093 (aarch64_float_const_representable_p): Likewise.
39094 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39095 (aarch64_output_simd_mov_immediate): New.
39096 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39097 (*movdf_aarch64): Likewise.
39098 * config/aarch64/constraints.md (Ufc): New.
39099 (Y): call aarch64_float_const_zero_rtx.
39100 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39102 2013-01-07 Richard Biener <rguenther@suse.de>
39104 PR tree-optimization/55888
39105 PR tree-optimization/55862
39106 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39107 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39108 not if it is contained therein.
39110 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39112 * config/avr/t-avr: Typo.
39114 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39117 * config/avr/t-avr: Don't automatically rebuild
39118 $(srcdir)/config/avr/t-multilib
39119 $(srcdir)/config/avr/avr-tables.opt
39120 $(srcdir)/doc/avr-mmcu.texi
39121 (avr-mcus): New phony target to build them on request.
39122 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39123 * avr/avr-mcus.def: Adjust comments.
39125 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39127 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39129 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39131 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39133 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39135 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39137 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39139 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39140 to generate profiling.
39141 * config/rs6000/aix64.h (LIB_SPEC): Same.
39143 2013-01-04 Andrew Pinski <apinski@cavium.com>
39145 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39147 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39149 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39151 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39153 (ix86_expand_move): Ditto.
39154 (ix86_zero_extend_to_Pmode): Ditto.
39155 (ix86_expand_call): Ditto.
39156 (ix86_expand_special_args_builtin): Ditto.
39157 (ix86_expand_builtin): Ditto.
39159 2013-01-04 Richard Biener <rguenther@suse.de>
39161 PR tree-optimization/55862
39162 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39163 translating them through PHI nodes.
39165 2013-01-04 Martin Jambor <mjambor@suse.cz>
39167 PR tree-optimization/55755
39168 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39169 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39171 2013-01-04 Marek Polacek <polacek@redhat.com>
39173 PR middle-end/55859
39174 * opts.c (default_options_optimization): Clarify error message.
39176 2013-01-04 Richard Biener <rguenther@suse.de>
39178 PR middle-end/55863
39179 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39182 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39185 * config/pa/pa.md (movsi): Revert previous change.
39186 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39189 2013-01-03 Richard Henderson <rth@redhat.com>
39191 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39192 after eliminating TLS symbols.
39194 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39197 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39198 * graphite-poly.c (debug_gmp_value): Likewise.
39200 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39203 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39204 selected code model, define __code_mode_small__, __code_model_medium__,
39205 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39206 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39207 xchg temporary register with %k. Declare temporary register as
39209 [__x86_64__]: For medium and large code models, preserve %rbx register.
39211 2013-01-03 Richard Biener <rguenther@suse.de>
39213 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39214 (dump_subscript): Adjust.
39215 (finalize_ddr_dependent): Do not dump redundant info.
39216 (analyze_siv_subscript): Adjust.
39217 (subscript_dependence_tester): Likewise.
39218 (compute_affine_dependence): Likewise.
39220 2013-01-03 Richard Biener <rguenther@suse.de>
39223 2013-01-03 Richard Biener <rguenther@suse.de>
39225 PR tree-optimization/55857
39226 * tree-vect-stmts.c (vectorizable_load): Do not setup
39227 re-alignment for invariant loads.
39229 2013-01-02 Richard Biener <rguenther@suse.de>
39231 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39232 invariant load do not generate a vector load from the scalar location.
39234 2013-01-03 Richard Biener <rguenther@suse.de>
39236 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39237 for not vectorizing.
39238 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39239 not build INDIRECT_REFs, call get_name once only.
39240 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39241 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39243 2013-01-03 Richard Biener <rguenther@suse.de>
39245 PR tree-optimization/55857
39246 * tree-vect-stmts.c (vectorizable_load): Do not setup
39247 re-alignment for invariant loads.
39249 2013-01-03 Richard Biener <rguenther@suse.de>
39252 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39253 prefer a built-in decl.
39255 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39257 * gcc.c (process_command): Update copyright notice dates.
39258 * gcov.c (print_version): Likewise.
39259 * gcov-dump.c (print_version): Likewise.
39261 PR rtl-optimization/55838
39262 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39263 iv0.step, iv1.step and step.
39265 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39266 Marc Glisse <marc.glisse@inria.fr>
39268 PR tree-optimization/55832
39269 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39270 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39271 integer_{one,zero}_node.
39273 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39276 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39277 * var-tracking.c (reverse_op): Don't add reverse ops to
39278 VALUEs that have already
39279 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39281 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39283 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39285 2013-01-02 Teresa Johnson <tejohnson@google.com>
39287 * dumpfile.c (dump_loc): Print filename with location.
39288 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39289 new location_t parameter to emit complete unroll message with
39290 new dump framework.
39291 (canonicalize_loop_induction_variables): Compute loops location
39292 and pass to try_unroll_loop_completely.
39293 * loop-unroll.c (report_unroll_peel): New function.
39294 (peel_loops_completely): Use new dump format with location
39295 for main dumpfile message, and invoke report_unroll_peel on success.
39296 (decide_unrolling_and_peeling): Ditto.
39297 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39298 by report_unroll_peel.
39299 (decide_peel_completely): Ditto.
39300 (decide_unroll_constant_iterations): Ditto.
39301 (decide_unroll_runtime_iterations): Ditto.
39302 (decide_peel_simple): Ditto.
39303 (decide_unroll_stupid): Ditto.
39304 * cfgloop.c (get_loop_location): New function.
39305 * cfgloop.h (get_loop_location): Declare.
39307 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39309 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39312 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39314 PR middle-end/55198
39315 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39316 BLKmode objects when EXPAND_MEMORY is specified.
39318 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39320 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39322 (fold_builtin_cpu): Do not share cpu model decls across statements.
39324 2013-01-02 Jason Merrill <jason@redhat.com>
39327 * tree.c (build_array_type_1): Revert earlier change.
39329 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39331 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39333 * config/aarch64/aarch64-tune.md: Re-generate.
39335 2013-01-02 Richard Biener <rguenther@suse.de>
39337 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39338 invariant load do not generate a vector load from the scalar location.
39340 2013-01-02 Richard Biener <rguenther@suse.de>
39343 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39344 * configure: Regenerate.
39346 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39348 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39349 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39350 (expand_builtin_int_roundingfn_2): Keep the original target around
39351 for the fallback case.
39353 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39355 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39356 to be clear for sign changes.
39358 2013-01-01 Jan Hubicka <jh@suse.cz>
39360 * ipa-inline-analysis.c: Fix formatting.
39362 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39364 PR tree-optimization/55831
39365 * tree-vect-loop.c (get_initial_def_for_induction): Use
39366 gsi_after_labels instead of gsi_start_bb.
39368 Copyright (C) 2013 Free Software Foundation, Inc.
39370 Copying and distribution of this file, with or without modification,
39371 are permitted in any medium without royalty provided the copyright
39372 notice and this notice are preserved.