1 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
4 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
5 consant/external operand, and add a few missing \n.
7 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
8 Tocar Ilya <ilya.tocar@intel.com>
10 * config/i386/core2.md: Replace corei7 with nehalem.
12 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
13 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
16 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
17 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
18 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
19 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
20 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
21 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
22 __tune_haswell__, __bonnell/__bonnell__,
23 __silvermont/__silvermont__, __tune_bonnell__,
26 * config/i386/i386.c (m_COREI7): Renamed to ...
28 (m_COREI7_AVX): Renamed to ...
29 (m_SANDYBRIDGE): This.
30 (m_ATOM): Renamed to ...
32 (m_SLM): Renamed to ...
34 (m_CORE_ALL): Updated.
35 (cpu_names): Add "nehalem", "westmere", "sandybridge",
36 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
38 (PTA_NEHALEM): Likewise.
39 (PTA_WESTMERE): Likewise.
40 (PTA_SANDYBRIDGE): Likewise.
41 (PTA_IVYBRIDGE): Likewise.
42 (PTA_HASWELL): Likewise.
43 (PTA_BROADWELL): Likewise.
44 (PTA_BONNELL): Likewise.
45 (PTA_SILVERMONT): Likewise.
46 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
47 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
48 (ix86_lea_outperforms): Updated.
49 (ix86_issue_rate): Likewise.
50 (ix86_adjust_cost): Likewise.
51 (ia32_multipass_dfa_lookahead): Likewise.
52 (do_reorder_for_imul): Likewise.
53 (swap_top_of_ready_list): Likewise.
54 (ix86_sched_reorder): Likewise.
55 (ix86_sched_init_global): Likewise.
56 (get_builtin_code_for_version): Likewise.
57 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
58 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
59 (arch_names_table): Updated.
61 * config/i386/i386.h (TARGET_COREI7): Removed.
62 (TARGET_COREI7_AVX): Likewise.
63 (TARGET_ATOM): Likewise.
64 (TARGET_SLM): Likewise.
65 (TARGET_NEHALEM): New.
66 (TARGET_SANDYBRIDGE): Likewise.
67 (TARGET_BONNELL): Likewise.
68 (TARGET_SILVERMONT): Likewise.
69 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
70 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
71 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
72 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
73 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
74 before TARGET_CPU_DEFAULT_broadwell.
75 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
76 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
77 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
79 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
81 * config/i386/x86-tune.def: Updated.
83 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
84 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
85 haswell, bonnel, silvermont. Add westmere.
87 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
89 PR rtl-optimization/57422
90 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
91 can always be scheduled in its current form.
93 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
95 PR rtl-optimization/57422
96 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
99 2013-12-20 Sharad Singhai <singhai@google.com>
101 * Makefile.in: Add optinfo.texi.
102 * doc/invoke.texi: Fix typo.
103 * doc/optinfo.texi: New documentation for optimization info.
104 * doc/passes.texi: Add new node.
106 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
108 * vec.h (stack_vec): Convert to a templaate specialization of
110 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
111 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
112 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
113 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
114 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
115 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
116 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
117 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
118 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
120 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
122 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
123 arguments to push onto the stack and no varargs, save ip into the last
124 stack slot if r3 isn't available on entry.
126 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
128 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
129 * config/arm/arm_neon.h: Regenerate.
130 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
131 * doc/arm-neon-intrinsics.texi: Regenerate.
133 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
135 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return NO_REGS
138 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
140 * config/arm/arm_acle.h: Add underscores before variables.
142 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
144 PR tree-optimization/59544
145 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
147 (vectorizable_store): Handle negative step.
149 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
151 * config.gcc: Support march=broadwell.
152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
153 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
154 * doc/invoke.texi: Document march=broadwell.
156 2013-12-20 Jakub Jelinek <jakub@redhat.com>
158 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
159 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
161 (instrument_bool_enum_load): New function.
162 (ubsan_pass): Call it.
163 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
164 * asan.c (create_cond_insert_point): No longer static.
165 * asan.h (create_cond_insert_point): Declare.
166 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
168 * opts.c (common_handle_option): Handle -fsanitize=bool and
170 * builtins.c (fold_builtin_memory_op): When sanitizing bool
171 and enum loads, don't use enum or bool types for memcpy folding.
172 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
173 (SANITIZE_UNDEFINED): Or these in.
175 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
177 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
178 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
179 to determine available register number.
180 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
181 macro NDS32_MODE_TYPE_ALIGN.
182 (nds32_function_arg): Refine code layout.
184 2013-12-19 Jeff Law <law@redhat.com>
186 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
187 handles both zero and sign extension.
189 2013-12-19 Teresa Johnson <tejohnson@google.com>
191 PR gcov-profile/59542
192 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
193 if we have made any changes.
195 2013-12-19 Jakub Jelinek <jakub@redhat.com>
198 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
199 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
201 (attr_rtx_1): Change hashcode variable to unsigned.
202 (attr_string): Likewise. Perform first multiplication in unsigned
204 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
206 * double-int.c (neg_double): Likewise.
207 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
208 * combine.c (force_to_mode): Likewise.
209 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
210 reload_cse_move2add, move2add_note_store): Likewise.
211 * simplify-rtx.c (simplify_const_unary_operation,
212 simplify_const_binary_operation): Likewise.
213 * ipa-split.c (find_split_points): Initialize first.can_split
214 and first.non_ssa_vars.
215 * gengtype-state.c (read_state_files_list): Fix up check.
216 * genautomata.c (reserv_sets_hash_value): Use portable rotation
219 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
221 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
222 * doc/arm-neon-intrinsics.texi: Regenerate.
224 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
226 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
228 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
230 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
231 (arm_init_neon_builtins): Handle crypto builtins.
232 (bdesc_2arg): Likewise.
233 (bdesc_1arg): Likewise.
234 (bdesc_3arg): New table.
235 (arm_expand_ternop_builtin): New function.
236 (arm_expand_unop_builtin): Handle sha1h explicitly.
237 (arm_expand_builtin): Handle ternary builtins.
238 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
239 Define __ARM_FEATURE_CRYPTO.
240 * config/arm/arm.md: Include crypto.md.
241 (is_neon_type): Add crypto types.
242 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
243 * config/arm/crypto.def: New.
244 * config/arm/crypto.md: Likewise.
245 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
246 (CRYPTO_BINARY): Likewise.
247 (CRYPTO_TERNARY): Likewise.
248 (CRYPTO_SELECTING): Likewise.
249 (crypto_pattern): New int attribute.
250 (crypto_size_sfx): Likewise.
251 (crypto_mode): Likewise.
252 (crypto_type): Likewise.
253 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
254 Handle crypto intrinsics.
255 * config/arm/neon.ml: Add support for poly64 and polt128 types
256 and intrinsics. Define crypto intrinsics.
257 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
258 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
259 (neon_vreinterpretv8hi<mode>): Likewise.
260 (neon_vreinterpretv4si<mode>): Likewise.
261 (neon_vreinterpretv4sf<mode>): Likewise.
262 (neon_vreinterpretv2di<mode>): Likewise.
263 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC,
264 UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H,
265 UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2,
266 UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
267 * config/arm/arm_neon.h: Regenerate.
269 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
272 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
273 DEFAULT_LINKER is defined.
274 * common.opt (fuse-ld=bfd): Add Driver.
275 (fuse-ld=gold): Likewise.
276 * gcc.c (use_ld): New variable.
277 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
279 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
281 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
283 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
284 * config.gcc (extra_headers): Add arm_acle.h.
285 * config/arm/arm.c (FL_CRC32): Define.
286 (arm_have_crc): Likewise.
287 (arm_option_override): Set arm_have_crc.
288 (arm_builtins): Add CRC32 builtins.
289 (bdesc_2arg): Likewise.
290 (arm_init_crc32_builtins): New function.
291 (arm_init_builtins): Initialise CRC32 builtins.
292 (arm_file_start): Handle architecture extensions.
293 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FEATURE_CRC32.
294 Define __ARM_32BIT_STATE.
295 (TARGET_CRC32): Define.
296 * config/arm/arm-arches.def: Add armv8-a+crc.
297 * config/arm/arm-tables.opt: Regenerate.
298 * config/arm/arm.md (type): Add crc.
299 (<crc_variant>): New insn.
300 * config/arm/arm_acle.h: New file.
301 * config/arm/iterators.md (CRC): New int iterator.
302 (crc_variant, crc_mode): New int attributes.
303 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
304 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
305 * doc/invoke.texi: Document -march=armv8-a+crc option.
306 * doc/extend.texi: Document ACLE intrinsics.
308 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
311 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
313 * config/arm/ldmstm.md: Regenerate.
315 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
318 * config/arm/predicates.md (arm_hard_general_register_operand):
320 (arm_hard_register_operand): Remove.
321 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
323 * config/arm/ldmstm.md: Regenerate.
325 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
328 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
329 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
330 vfp_hard_register_operand.
332 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
334 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
335 Define builtin types for poly64_t poly128_t.
336 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
337 * aarch64/aarch64-simd-builtins.def: Update builtins table.
338 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
339 aarch64_crypto_pmullv2di): New.
340 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
342 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
343 (vmull_p64, vmull_high_p64): New.
344 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
346 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
348 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
349 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha256h<sha256_op>v4si,
350 aarch64_crypto_sha256su0v4si, aarch64_crypto_sha256su1v4si): New.
351 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
352 vsha256su0q_u32, vsha256su1q_u32): New.
353 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
355 (CRYPTO_SHA256): New int iterator.
356 (sha256_op): New int attribute.
358 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
360 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
361 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
363 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
364 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
365 aarch64_crypto_sha1su0v4si): New.
366 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
367 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
368 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
370 (CRYPTO_SHA1): New int iterator.
371 (sha1_op): New int attribute.
373 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
375 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
376 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
378 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
379 aarch64_crypto_aes<aesmc_op>v16qi): New.
380 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
382 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
384 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
385 (aes_op, aesmc_op): New int attributes.
387 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
389 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
390 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
391 crypto_sha256_slow): New.
393 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
395 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
396 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
398 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
399 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
401 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
403 (s390_hotpatch_trampoline_halfwords_max): New constant
404 (s390_hotpatch_trampoline_halfwords): New static variable
405 (get_hotpatch_attribute): New function
406 (s390_handle_hotpatch_attribute): New function
407 (s390_attribute_table): New target specific attribute table to implement
408 the hotpatch attribute
409 (s390_option_override): Parse hotpatch options
410 (s390_function_num_hotpatch_trampoline_halfwords): New function
411 (s390_can_inline_p): Implement target hook to
412 suppress hotpatching for explicitly inlined functions
413 (s390_asm_output_function_label): Generate hotpatch prologue
414 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
415 (TARGET_CAN_INLINE_P): Define to implement target hook
416 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
417 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
419 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
420 function label generation for hotpatching
421 (FUNCTION_BOUNDARY): Align functions to eight bytes
422 * doc/extend.texi: Document hotpatch attribute
423 * doc/invoke.texi: Document -mhotpatch option
425 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
427 * config/i386/i386.c: Include cfgloop.h.
428 (ix86_loop_memcount): New function.
429 (ix86_loop_unroll_adjust): New function.
430 (TARGET_LOOP_UNROLL_ADJUST): Define.
432 (TARGET_ADJUST_UNROLL): Define.
433 * config/i386/x86-tune.def
434 (X86_TUNE_ADJUST_UNROLL): Define.
436 2013-12-19 Marek Polacek <polacek@redhat.com>
438 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
439 variable alg. Use index variable i directly.
441 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
443 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
446 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
448 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
449 Consider TARGET_CPU_DEFAULT settings.
451 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
453 * config/aarch64/aarch64-cores.def: Add support for
454 -mcpu=cortex-a57.cortex-a53.
455 * config/aarch64/aarch64-tune.md: Regenerate.
456 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
458 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
460 * config/aarch64/aarch64-cores.def: Add new column for
462 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle
464 * config/aarch64/aarch64.c (AARCH64_CORE): Handle
466 (aarch64_parse_cpu): mcpu implies a default value for mtune.
467 * config/aarch64/aarch64.h (AARCH64_CORE): Handle
470 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
472 * common/config/aarch64/aarch64-common.c
473 (aarch64_rewrite_selected_cpu): New.
474 (aarch64_rewrite_mcpu): New.
475 * config/aarch64/aarch64-protos.h
476 (aarch64_rewrite_selected_cpu): New.
477 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
478 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
479 (ASM_CPU_SPEC): Likewise.
480 (EXTRA_SPEC_FUNCTIONS): Likewise.
481 (EXTRA_SPECS): Likewise.
482 (ASM_SPEC): Likewise.
483 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
486 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
488 * omp-low.c (simd_clone_clauses_extract): Replaced the string
489 "cilk simd elemental" with "cilk simd function."
490 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
491 Removed a carriage-return from a warning string.
493 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
495 * passes.c (execute_function_dump): Set graph_dump_initialized
497 (pass_init_dump_file): Similarly.
498 (execute_one_pass): Pass new argument to do_per_function.
499 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
501 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
503 * doc/tree-ssa.texi (SSA Operands): Remove reference to
505 Synchronize SSA_OP* definitions with source.
506 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
507 Add not to SSA_OP* macro definitions.
509 2013-12-18 Jakub Jelinek <jakub@redhat.com>
513 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
514 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
515 prefix existing define_insn names with *.
517 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
519 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
521 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
522 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
524 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
525 cortex-a57, cortex-a57.cortex-a53.
527 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
530 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
531 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
532 (dwarf2out_frame_debug_expr): Tidy.
534 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
535 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
536 Sergey Lega <sergey.s.lega@intel.com>
537 Anna Tikhonova <anna.tikhonova@intel.com>
538 Ilya Tocar <ilya.tocar@intel.com>
539 Andrey Turetskiy <andrey.turetskiy@intel.com>
540 Ilya Verbin <ilya.verbin@intel.com>
541 Kirill Yukhin <kirill.yukhin@intel.com>
542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
544 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
545 (*fma_fmsub_<mode>): Ditto.
546 (*fma_fnmadd_<mode>): Ditto.
547 (*fma_fnmsub_<mode>): Ditto.
548 (*fma_fmaddsub_<mode>): Ditto.
549 (*fma_fmsubadd_<mode>): Ditto.
550 (avx512f_vternlog<mode>): Ditto.
551 (avx512f_fixupimm<mode>): Ditto.
552 (avx512f_sfixupimm<mode>): Ditto.
553 (avx512f_vpermi2var<mode>3): Ditto.
554 (avx512f_vpermt2var<mode>3): Ditto.
555 (avx512f_fmaddsub_<mode>_maskz): New.
556 (avx512f_vternlog<mode>_maskz): Ditto.
557 (avx512f_fixupimm<mode>_maskz): Ditto.
558 (avx512f_sfixupimm<mode>_maskz): Ditto.
559 (avx512f_vpermi2var<mode>3_maskz): Ditto.
560 (avx512f_vpermt2var<mode>3_maskz): Ditto.
561 (avx512f_expand<mode>_maskz): Ditto.
562 * config/i386/subst.md (sd_maskz_name): Ditto.
563 (sd_mask_op4): Ditto.
564 (sd_mask_op5): Ditto.
565 (sd_mask_codefor): Ditto.
566 (sd_mask_mode512bit_condition): Ditto.
569 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
571 Sergey Lega <sergey.s.lega@intel.com>
572 Anna Tikhonova <anna.tikhonova@intel.com>
573 Ilya Tocar <ilya.tocar@intel.com>
574 Andrey Turetskiy <andrey.turetskiy@intel.com>
575 Ilya Verbin <ilya.verbin@intel.com>
576 Kirill Yukhin <kirill.yukhin@intel.com>
577 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
579 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
580 (avx512f_ucmp<mode>3): Ditto.
581 (avx512f_eq<mode>3): Ditto.
582 (avx512f_gt<mode>3): Ditto.
583 (avx512f_testm<mode>3): Ditto.
584 (avx512f_testnm<mode>3): Ditto.
585 * config/i386/subst.md (SUBST_S): New.
586 (mask_scalar_merge_name): Ditto.
587 (mask_scalar_merge_operand3): Ditto.
588 (mask_scalar_merge_operand4): Ditto.
589 (mask_scalar_merge): Ditto.
591 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
594 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
596 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
598 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
601 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
603 2013-12-17 Teresa Johnson <tejohnson@google.com>
605 PR gcov-profile/59527
606 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
607 branch, which can't be eliminated.
609 2013-12-18 Martin Liska <marxin.liska@gmail.com>
610 Jan Hubicka <jh@suse.cz>
612 * cgraphunit.c (node_cmp): New function.
613 (expand_all_functions): Function ordering added.
614 * common.opt: New profile based function reordering flag introduced.
615 * lto-partition.c: Support for time profile added.
617 * predict.c (handle_missing_profiles): Time profile handled in
620 2013-12-17 Jakub Jelinek <jakub@redhat.com>
622 PR tree-optimization/59523
623 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
626 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
628 * ipa-inline.c (gate_ipa_inline): Remove.
629 (const pass_data pass_data_ipa_inline): Unset has_gate.
630 (class pass_ipa_inline): Remove gate() method.
632 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
634 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
635 in contains_type_p query.
637 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
639 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
642 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
645 * omp-low.c: Remove leftover comment.
647 * omp-low.c (check_combined_parallel): Reflect reality in comment.
649 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
651 * doc/passes.texi (Pass manager): Refer to passes.def.
653 * doc/gccint.texi (Top): Fix inclusion order.
655 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
657 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
658 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
659 * config/arm/arm.md (generic_vfp): Remove cortexa12.
661 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
663 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
664 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
665 * config/arm/arm-tables.opt: Regenerate.
666 * config/arm/arm-tune.md: Regenerate.
668 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
670 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
672 * config/arm/arm-cores.def (cortex-a57): New.
673 * doc/invoke.texi: Document -mcpu=cortex-a57.
674 * config/arm/arm-tables.opt: Regenerate.
675 * config/arm/arm-tune.md: Regenerate.
676 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
678 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
680 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
681 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
682 * config/arm/arm-tables.opt: Regenerate.
683 * config/arm/arm-tune.md: Regenerate.
685 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
687 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
689 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
690 * config/arm/genopt.sh: Improve layout.
691 * config/arm/arm-tune.md: Regenerate.
692 * config/arm/arm-tables.opt: Regenerate.
693 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
694 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
695 (arm_option_override): When a CPU is chosen, that should also
696 form the tune target.
697 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
699 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
701 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
702 (arm_rewrite_mcpu): Likewise.
703 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
704 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
705 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
706 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
707 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
708 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
710 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
712 * expmed.c (lowpart_bit_field_p): Fix comment.
713 (store_bit_field_using_insv): Fix formatting.
714 (store_bit_field): Likewise.
715 (store_fixed_bit_field): More declaration and remove return.
716 (store_fixed_bit_field_1): Fix formatting.
717 (extract_fixed_bit_field): Move declaration.
718 (extract_fixed_bit_field_1): Simplify.
720 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
722 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
724 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
726 2013-12-17 Jakub Jelinek <jakub@redhat.com>
728 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
729 instead of x as last gen_lowpart argument.
731 2013-12-16 Jakub Jelinek <jakub@redhat.com>
733 * predict.h (PROB_LIKELY): Fix the value.
734 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
735 for overflow checking for modes without 2xwider supported mode,
736 if the mode has 2xnarrower mode.
738 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
739 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
740 try to improve generated code if one of the arguments is constant
741 or get_range_info says that one of the argument is always
742 negative or always non-negative.
743 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
744 (simplify_stmt_using_ranges): Call it.
746 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
748 PR rtl-optimization/59466
749 * emit-rtl.c (change_address_1): Don't validate address for LRA.
750 * recog.c (general_operand): Accept any memory for LRA.
751 * lra.c (lra_set_insn_recog_data): Add an assert.
753 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
755 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
757 2013-12-14 Jan Hubicka <jh@suse.cz>
758 Markus Trippelsdorf <octoploid@yandex.com>
761 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
762 call is already devirtualized.
764 2013-12-16 Jakub Jelinek <jakub@redhat.com>
766 * Makefile.in (version.o): Restore dependencies on
767 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
769 2013-12-14 Jan Hubicka <jh@suse.cz>
772 * ipa-devirt.c (get_class_context): Do not ICE when type is found
775 2013-12-16 Jakub Jelinek <jakub@redhat.com>
778 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
779 reductions without placeholder if is_simd, but when not using
780 GOMP_SIMD* internal calls, also perform the reduction operation
781 on the outer var rather than simple assignment.
783 2013-12-16 Jakub Jelinek <jakub@redhat.com>
787 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
788 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
790 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
791 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
792 calls to supply the gimple operand containing the base tree
793 as an extra argument.
794 * tree-ssa-ter.c: Include gimple-walk.h.
795 (find_ssaname, find_ssaname_in_store): New helper functions.
796 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
797 same_root_var if USE is used somewhere in the stores of the stmt.
798 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
799 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
800 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
801 check_ipa_store): Likewise.
802 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
803 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
804 (verify_non_ssa_vars, visit_bb): Adjust their callers.
805 * cfgexpand.c (add_scope_conflicts_1): Use
806 walk_stmt_load_store_addr_fn type for visit variable.
807 (visit_op, visit_conflict): Remove name of the stmt
808 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
809 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
810 argument and ATTRIBUTE_UNUSED.
811 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
812 unnamed tree argument.
813 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
814 ATTRIBUTE_UNUSED from stmt parameter.
816 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
818 * opts-common.c (integral_argument): Add support for
819 hexadecimal command option integer arguments. Update comments.
821 2013-12-14 Jan Hubicka <jh@suse.cz>
824 * ipa-prop.c (ipa_analyze_call_uses): Skip already
827 2013-12-14 Jan Hubicka <jh@suse.cz>
829 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
831 2013-12-14 Jan Hubicka <jh@suse.cz>
834 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
836 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
839 * config/i386/i386.c (ix86_function_specific_restore): Don't
842 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
844 * var-tracking.c (add_stores): Fix oversight in latest commit.
846 2013-12-14 Marek Polacek <polacek@redhat.com>
849 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
850 expand_binop with correct optab depending on code.
852 2013-12-14 Tom de Vries <tom@codesourcery.com>
854 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
856 2013-12-13 DJ Delorie <dj@redhat.com>
858 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
860 * config/msp430/msp430.md (movqi): replace general_operand with
861 msp_general_operand and nonimmediate_operand with
862 msp_nonimmediate_operand to allow volatile operands.
867 (addhi3_cy): Likewise.
868 (addchi4_cy): Likewise.
869 (xor<mode>3): Likewise.
870 (ome_cmpl<mode>2): Likewise.
871 (extendqihi2): Likewise.
872 (zero_extendqihi2): Likewise.
873 (zero_extendhipsi2): Likewise.
874 (truncpsihi2): Likewise.
877 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
879 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
881 * lra-int.h (lra_init_equiv): New prototype.
882 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
883 (loc_equivalence_callback): Use the 3rd arg.
884 (lra_constraints): Update equivalences. Pass curr_insn to
885 simplify_replace_fn_rtx.
886 * lra.c (lra): Call lra_init_equiv.
888 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
890 * genmodes.c (emit_max_int): Fixed missing parens.
892 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
894 PR tree-optimization/59149
895 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
896 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
899 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
901 * config/arc/arc.h (BITS_PER_UNIT): Removed.
902 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
903 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
904 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
905 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
906 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
907 * config/spu/spu.h (BITS_PER_UNIT): Removed.
908 * defaults.h (BITS_PER_UNIT): Removed.
909 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
910 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
911 (MAX_BITSIZE_MODE_ANY_INT): Updated.
912 * doc/tm.texi (BITS_PER_UNIT): Removed.
913 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
914 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
915 (create_modes): Added code to set bits_per_unit and
916 max_bitsize_mode_any_int.
917 (emit_max_int): Changed code generation.
918 * mkconfig.sh: Added insn-modes.h.
920 2013-12-13 Jeff Law <law@redhat.com>
922 PR tree-optimization/45685
923 * tree-ssa-phiopt.c (neg_replacement): New function.
924 (tree_ssa_phiopt_worker): Call it.
926 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
928 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
930 2013-12-13 Bin Cheng <bin.cheng@arm.com>
932 PR tree-optimization/58296
933 PR tree-optimization/41488
934 * tree-scalar-evolution.c: Include necessary header files.
935 (simplify_peeled_chrec): New function.
936 (analyze_evolution_in_loop): New static variable.
937 Call simplify_peeled_chrec.
938 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
939 (add_old_iv_candidates): Don't add candidate for peeled IV.
940 * tree-affine.h (aff_combination_zero_p): New function.
942 2013-12-13 Nick Clifton <nickc@redhat.com>
944 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
945 true if the current function has the wakeup attribute.
946 (msp430_start_function): Note if the function has the wakeup
948 (msp430_attribute_table): Add wakeup attribute.
949 (msp430_expand_epilogue): Add support for wakeup functions.
950 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
951 the DINT instruction.
952 * doc/extend.texi: Document the wakeup attribute.
954 2013-12-13 Kai Tietz <kitetz@redhat.com>
957 * config/i386/i386.c (ix86_option_override_internal): Set for
958 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
961 2013-12-12 Jeff Law <law@redhat.com>
963 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
964 for zero-extended MULT simple LEA pattern.
966 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
969 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
972 2013-12-12 Jakub Jelinek <jakub@redhat.com>
975 * gimplify.c (omp_check_private): Add copyprivate argument, if it
976 is true, don't check omp_privatize_by_reference.
977 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
978 decl is private in outer context. Adjust omp_check_private caller.
980 2013-12-11 Jeff Law <law@redhat.com>
982 PR rtl-optimization/59446
983 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
984 test for crossing a loop header.
986 2013-12-11 Sriraman Tallam <tmsriram@google.com>
989 * config/i386/i386.c (get_builtin): New function.
990 (ix86_builtin_vectorized_function): Replace all instances of
991 ix86_builtins[...] with get_builtin(...).
992 (ix86_builtin_reciprocal): Ditto.
994 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
996 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
997 (lang_hooks_for_cilkplus): Remove.
998 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
999 (lhd_install_body_with_frame_cleanup): Likewise.
1000 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1001 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1002 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1003 (LANG_HOOKS_CILKPLUS): Likewise.
1004 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1005 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1006 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1007 (gimplify_call_expr): Likewise.
1009 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1011 * expr.c (expand_assignment): Remove dependency on
1012 flag_strict_volatile_bitfields. Always set the memory
1014 (expand_expr_real_1): Likewise.
1016 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1019 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1020 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1021 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1022 to do the real work.
1023 (store_fixed_bit_field_1): New function.
1024 (store_split_bit_field): Limit the unit size to the memory mode size,
1025 to prevent recursion.
1027 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1028 Sandra Loosemore <sandra@codesourcery.com>
1034 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1035 and bitregion_end parameters. Test for compliance with C++
1037 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1038 Add fallback logic for cases where -fstrict-volatile-bitfields
1039 is supposed to apply, but cannot.
1040 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1041 extract_fixed_bit_field_1 to do the extraction.
1042 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1043 Call extract_fixed_bit_field_1 to do the real work.
1044 (extract_fixed_bit_field_1): New function.
1046 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1052 * expmed.c (strict_volatile_bitfield_p): New function.
1053 (store_bit_field_1): Don't special-case strict volatile
1055 (store_bit_field): Handle strict volatile bitfields here instead.
1056 (store_fixed_bit_field): Don't special-case strict volatile
1058 (extract_bit_field_1): Don't special-case strict volatile
1060 (extract_bit_field): Handle strict volatile bitfields here instead.
1061 (extract_fixed_bit_field): Don't special-case strict volatile
1062 bitfields here. Simplify surrounding code to resemble that in
1063 store_fixed_bit_field.
1064 * doc/invoke.texi (Code Gen Options): Update
1065 -fstrict-volatile-bitfields description.
1067 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1069 * configure.ac: Add check for aarch64 assembler -mabi support.
1070 * configure: Regenerate.
1071 * config.in: Regenerate.
1072 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1073 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1074 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1075 if assembler does not support -mabi and option ilp32 is selected.
1076 * doc/install.texi: Added note that building gcc 4.9 and after
1077 with pre 2.24 binutils will not support -mabi=ilp32.
1079 2013-12-11 Marek Polacek <polacek@redhat.com>
1082 * expr.c (expand_expr_real_1): Remove assert dealing with
1083 internal calls and turn that into a condition instead.
1085 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1087 * config/arm/arm.opt (mlra): Enable LRA by default.
1089 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1091 PR tree-optimization/59417
1092 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1093 in a different bb rhan var, only duplicate points-to info and
1094 not alignment info and don't duplicate range info.
1095 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1096 assertion failure handle inconsistencies in range info by only
1097 using var's range info and not PHI result range infos.
1099 PR tree-optimization/59386
1100 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1101 unshare_expr (id->retval) before passing it to gimple_build_assign.
1103 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1106 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1107 PR tree-optimization/41488
1108 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1109 for PEELED_CHREC kind IV.
1110 * tree-scalar-evolution.c: Include necessary header files.
1111 (peeled_chrec_map, simplify_peeled_chrec): New.
1112 (analyze_evolution_in_loop): New static variable.
1113 Call simplify_peeled_chrec.
1114 (scev_initialize): Initialize peeled_chrec_map.
1115 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1117 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1120 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1123 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1125 PR rtl-optimization/58295
1126 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1127 WORD_REGISTER_OPERATIONS targets.
1129 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1131 * genrecog.c (validate_pattern): Treat all messages except missing
1133 * config/epiphany/epiphany.md: Remove constraints from
1135 * config/h8300/h8300.md: Remove constraints from define_splits.
1136 * config/msp430/msp430.md: Likewise.
1137 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1138 nonimmediate_operand rather than general_operand for operand 0.
1139 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1140 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1141 Use match_operator rather than match_test to invoke general_operand.
1142 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1143 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1145 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1147 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1148 register_operand rather than pointer_operand. Add modes to the
1150 (insn_ldna_add<bitsuffix>): Likewise.
1151 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1152 (insn_ldnt_add<bitsuffix>): Likewise.
1153 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1154 (insn_ld_add_L2<bitsuffix>): Likewise.
1155 (insn_ldna_add_L2<bitsuffix>): Likewise.
1156 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1157 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1158 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1159 (insn_ld_add_miss<bitsuffix>): Likewise.
1160 (insn_ldna_add_miss<bitsuffix>): Likewise.
1161 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1162 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1163 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1164 (insn_st_add<bitsuffix>): Likewise.
1165 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1166 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1167 (insn_stnt_add<bitsuffix>): Likewise.
1168 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1169 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1170 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1171 reg_or_0_operand for operand 0.
1172 (insn_v2<pack_insn>): Likewise.
1173 (vec_pack_hipart_v4hi): Likewise.
1174 (insn_v2packh): Likewise.
1175 (vec_pack_ssat_v2si): Likewise.
1176 (insn_v4packsc): Likewise.
1178 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1180 * basic-block.h (gcov_working_set_t): Put back typedef.
1181 * gcov-io.h (gcov_bucket_type): Likewise.
1182 (gcov_working_set_info, gcov_working_set_t): Likewise.
1184 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1186 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1188 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1189 rename to cgraph_inline_failed_t.
1190 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1192 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1194 * conditions.h (CC_STATUS): Remove typedef.
1195 * bitmap.h (bitmap_obstack): Remove typedef.
1196 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1198 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1200 (bitmap_iterator): Remove typedef.
1201 * target.h (cumulative_args_t, print_switch_type,
1202 secondary_reload_info): Remove typedef.
1203 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1204 dw_cfi_oprnd_struct alias.
1205 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1206 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1207 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1209 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1211 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1212 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1214 * params.h (param_info, compiler_param): Remove typedef.
1215 * opts.h (cl_deferred_param): Remove typedef.
1216 * sreal.h (sreal): Remove typedef.
1217 * ddg.h (dep_type, dep_data_type): Remove typedef.
1218 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1220 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1221 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1222 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1223 and rename to aff_tree.
1224 * sched-int.h (region): Remove typedef.
1225 * diagnostic.h (diagnostic_info,
1226 diagnostic_classification_change_t): Remove typedef.
1227 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1229 * sbitmap.h (sbitmap_iterator): Remove typedef.
1230 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1231 Remove typedef and rename to imm_use_iterator.
1232 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1234 * ggc-internal.h (ggc_statistics): Remove typedef.
1235 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1236 rename to cselib_val.
1237 * tree-core.h (alias_pair): Remove typedef.
1238 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1240 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1242 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1243 * tree-data-ref.h (conflict_function): Remove typedef.
1244 * tree-inline.h (copy_body_data): Remove typedef.
1245 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1246 edge_growth_cache_entry): Remove typedef.
1247 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1248 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1249 Remove typedef and rename to gimple_stmt_iterator.
1250 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1251 rename to ce_if_block.
1252 (edge_iterator): Remove typedef.
1253 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1254 and rename to ipa_agg_jf_item.
1255 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1256 ipa_parm_adjustment_t): Remove typedef.
1257 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1259 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1261 * gcov-io.h (gcov_bucket_type): Remove typedef.
1262 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1263 to gcov_working_set_t.
1264 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1265 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1266 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1267 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1268 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1269 replace_label_data): Remove typedef.
1270 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1271 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1272 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1273 sel_region_bb_info_def, succ_iterator): Remove typedef.
1274 (deps_where_def, deps_where_t): Remove typedef and rename to
1276 * coretypes.h: Adapt forward declarations.
1277 * tree-scalar-evolution.h: Likewise.
1278 * tree-ssa-address.h: Likewise.
1279 * tree-ssa-operands.h: Likewise.
1280 * function.h: Likewise.
1281 * config/frv/frv-protos.h: Likewise.
1282 * targhooks.h: Likewise.
1283 * basic_block.h: Likewise.
1284 * rtl.def: Adapt documentation.
1285 * doc/tm.texi: Likewise.
1286 * ipa-cp.c: Adapt uses.
1287 * bitmap.c: Likewise.
1288 * dwarf2out.c: Likewise.
1289 * target.def: Likewise.
1290 * ipa-inline-analysis.c: Likewise.
1291 * dwarf2cfi.c: Likewise.
1292 * tree-ssa-loop-ivopts.c: Likewise.
1293 * lto-cgraph.c: Likewise.
1294 * config/frv/frv.c: Likewise.
1295 * ifcvt.c: Likewise.
1296 * ipa-prop.c: Likewise.
1298 2013-12-10 Kai Tietz <ktietz@redhat.com>
1301 * config/i386/i386.c (ix86_expand_prologue): Address saved
1302 registers stack-relative, not via frame-pointer.
1304 2013-12-10 Richard Biener <rguenther@suse.de>
1307 * tree-ssa-structalias.c (solution_set_expand): Expand into
1308 a different possibly cached bitmap and return the result.
1309 (set_union_with_increment): Pass in a shared expanded bitmap
1311 (do_sd_constraint): Likewise.
1312 (do_ds_constraint): Likewise.
1313 (do_complex_constraint): Likewise.
1314 (solve_graph): Manage the shared expanded bitmap.
1316 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1318 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1319 (LOOP_VINFO_SCALAR_LOOP): Define.
1320 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1321 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1322 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1324 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1326 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1328 (release_bb_predicate): New function.
1329 (free_bb_predicate): Use it.
1330 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1331 just to immediately allocate it again.
1332 (add_to_predicate_list): Add loop argument. If basic blocks that
1333 dominate loop->latch don't insert any predicate.
1334 (add_to_dst_predicate_list): Adjust caller.
1335 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1336 handle it like flag_tree_loop_if_convert_stores.
1337 (insert_gimplified_predicates): Likewise.
1338 (ifcvt_can_use_mask_load_store): New function.
1339 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1340 argument, check if some conditional loads or stores can't be
1341 converted into MASK_LOAD or MASK_STORE.
1342 (if_convertible_stmt_p): Add any_mask_load_store argument,
1343 pass it down to if_convertible_gimple_assign_stmt_p.
1344 (predicate_bbs): Don't return bool, only check if the last stmt
1345 of a basic block is GIMPLE_COND and handle that. Adjust
1346 add_to_predicate_list caller.
1347 (if_convertible_loop_p_1): Only call predicate_bbs if
1348 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1349 afterwards, check gimple_code of stmts here. Replace is_predicated
1350 check with dominance check. Add any_mask_load_store argument,
1351 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1352 call if_convertible_phi_p only after all if_convertible_stmt_p
1354 (if_convertible_loop_p): Add any_mask_load_store argument,
1355 pass it down to if_convertible_loop_p_1.
1356 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1357 (combine_blocks): Add any_mask_load_store argument, pass
1358 it down to insert_gimplified_predicates and call predicate_mem_writes
1359 if it is set. Call predicate_bbs.
1360 (version_loop_for_if_conversion): New function.
1361 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1362 calls. Return todo flags instead of bool, call
1363 version_loop_for_if_conversion if if-conversion should be just
1364 for the vectorized loops and nothing else.
1365 (main_tree_if_conversion): Adjust caller. Don't call
1366 tree_if_conversion for dont_vectorize loops if if-conversion
1367 isn't explicitly enabled.
1368 * tree-vect-data-refs.c (vect_check_gather): Handle
1369 MASK_LOAD/MASK_STORE.
1370 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1371 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1372 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1373 expand_MASK_STORE): New functions.
1374 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1375 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1376 (vectorize_loops): Don't try to vectorize loops with
1377 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1378 loops, fold LOOP_VECTORIZED internal call depending on if loop
1379 has been vectorized or not.
1380 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1382 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1383 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1384 still to loop's entry or exit edge.
1385 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1386 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1387 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1389 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1390 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1391 right place in the CFG afterwards.
1392 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1394 * cfgloop.h (struct loop): Add dont_vectorize field.
1395 * tree-loop-distribution.c (copy_loop_before): Adjust
1396 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1397 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1398 * passes.def: Add a note that pass_vectorize must immediately follow
1400 * tree-predcom.c (split_data_refs_to_components): Give up if
1402 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
1404 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1406 (vectorizable_mask_load_store): New function.
1407 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1408 (vect_transform_stmt): Handle MASK_STORE.
1409 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1410 DR_STMT where lhs is NULL.
1411 * optabs.h (can_vec_perm_p): Fix up comment typo.
1412 (can_vec_mask_load_store_p): New prototype.
1413 * optabs.c (can_vec_mask_load_store_p): New function.
1415 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1417 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1418 the extraction of a bit-field of null size.
1420 2013-12-10 Marek Polacek <polacek@redhat.com>
1423 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1424 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1425 instead of gimple_code.
1427 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1429 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1430 Add android definitions.
1431 (s390x-*-linux*): Use linux-protos.h.
1433 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1435 PR tree-optimization/41488
1436 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1437 for PEELED_CHREC kind IV.
1438 * tree-scalar-evolution.c: Include necessary header files.
1439 (peeled_chrec_map, simplify_peeled_chrec): New.
1440 (analyze_evolution_in_loop): New static variable.
1441 Call simplify_peeled_chrec.
1442 (scev_initialize): Initialize peeled_chrec_map.
1443 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1445 2013-12-09 Andrew Pinski <apinski@cavium.com>
1447 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1448 that options are conflicting ones.
1450 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1452 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1454 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1456 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1458 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1459 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1461 * cfganal.c (inverted_post_order_compute): Likewise.
1462 * cfgcleanup.c (try_optimize_cfg): Likewise.
1463 * cfgexpand.c (add_scope_conflicts): Likewise.
1464 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1465 * cfgrtl.c (relink_block_chain): Likewise.
1466 * dce.c (mark_artificial_uses): Likewise.
1467 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1468 * df-problems.c (df_lr_verify_solution_start,
1469 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1470 df_live_verify_solution_start, df_live_verify_solution_end,
1471 df_live_set_all_dirty, df_live_verify_transfer_functions,
1472 df_md_local_comput): Likewise.
1473 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1474 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1475 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1476 free_dominance_info): Likewise.
1477 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1478 * graph.c (draw_cfg_edges): Likewise.
1479 * graphite-scop-detection.c (print_graphite_scop_statistics,
1480 dot_all_scops_1): Likewise.
1481 * graphite.c (print_global_statistics,
1482 print_graphite_scop_statistics): Likewise.
1483 * ira.c (do_reload): Likewise.
1484 * loop-init.c (loop_optimizer_finalize): Likewise.
1485 * lto-streamer-in.c (input_function): Likewise.
1486 * lto-streamer-out.c (output_function): Likewise.
1487 * mcf.c (adjust_cfg_counts): Likewise.
1488 * predict.c (estimate_loops): Likewise.
1489 * sched-rgn.c (haifa_find_rgns): Likewise.
1490 * tree-cfg.c (split_critical_edges): Likewise.
1491 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1492 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1493 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1494 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1495 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1496 * vtable-verify.c (vtable_verify_main): Likewise.
1497 * web.c (web_main): Likewise.
1499 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1501 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1503 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1504 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1505 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1506 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1507 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1508 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1509 * config/sh/sh.c (sh_md_init_global): Likewise.
1510 * config/sh/sh_optimize_sett_clrt.cc
1511 (sh_optimize_sett_clrt::execute): Likewise.
1512 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1514 * dominance.c (calc_dfs_tree): Likewise.
1515 * final.c (final): Likewise.
1516 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1517 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1518 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1519 * lcm.c (compute_antinout_edge): Likewise.
1520 * mode-switching.c (optimize_mode_switching): Likewise.
1521 * postreload.c (reload_combine): Likewise.
1522 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1523 * tree-ssa-live.c (live_worklist): Likewise.
1525 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1527 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1529 * asan.c (transform_statements, execute_sanopt): Eliminate
1530 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1532 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1533 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1534 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1535 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1536 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1537 duplicate_computed_gotos): Likewise.
1538 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1539 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1540 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1541 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1542 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1543 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1545 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1546 verify_loop_structure): Likewise.
1547 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1548 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1549 verify_hot_cold_block_grouping, purge_all_dead_edges,
1550 fixup_abnormal_edges, record_effective_endpoints,
1551 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1552 break_superblocks): Likewise.
1553 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1554 cgraph_rebuild_references): Likewise.
1555 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1556 * combine.c (delete_noop_moves, create_log_links,
1557 combine_instructions): Likewise.
1558 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1559 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1561 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1562 c6x_reorg): Likewise.
1563 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1564 * config/frv/frv.c (frv_optimize_membar): Likewise.
1565 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1566 * config/ia64/ia64.c (ia64_reorg): Likewise.
1567 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1568 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1569 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1570 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1571 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1572 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1573 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1574 reorder_var_tracking_notes): Likewise.
1575 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1576 reorder_var_tracking_notes): Likewise.
1577 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1578 * cprop.c (compute_hash_table_work, compute_cprop_data,
1579 local_cprop_pass, find_implicit_sets): Likewise.
1580 * cse.c (cse_condition_code_reg): Likewise.
1581 * dce.c (prescan_insns_for_dce): Likewise.
1582 * df-core.c (df_compact_blocks): Likewise.
1583 * df-problems.c (df_word_lr_alloc): Likewise.
1584 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1585 df_update_entry_exit_and_calls): Likewise.
1586 * dominance.c (calculate_dominance_info, verify_dominators,
1587 debug_dominance_info): Likewise.
1588 * dse.c (dse_step5_nospill): Likewise.
1589 * except.c (finish_eh_generation): Likewise.
1590 * final.c (compute_alignments): Likewise.
1591 * function.c (thread_prologue_and_epilogue_insns,
1592 rest_of_match_asm_constraints): Likewise.
1593 * gcse.c (compute_hash_table_work, prune_expressions,
1594 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1595 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1596 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1597 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1598 find_explicit_erroneous_behaviour): Likewise.
1599 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1600 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1601 * haifa-sched.c (haifa_sched_init): Likewise.
1602 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1604 * ifcvt.c (if_convert): Likewise.
1605 * init-regs.c (initialize_uninitialized_regs): Likewise.
1606 * ipa-prop.c (ipcp_transform_function): Likewise.
1607 * ipa-pure-const.c (analyze_function): Likewise.
1608 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1609 * ira-build.c (form_loop_tree): Likewise.
1610 * ira-costs.c (find_costs_and_classes): Likewise.
1611 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1612 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1613 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1614 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1615 * jump.c (mark_all_labels): Likewise.
1616 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1617 compute_nearerout, compute_rev_insert_delete): Likewise.
1618 * loop-init.c (fix_loop_structure): Likewise.
1619 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1620 * lower-subreg.c (decompose_multiword_subregs,
1621 decompose_multiword_subregs): Likewise.
1622 * lra-assigns.c (assign_by_spills): Likewise.
1623 * lra-coalesce.c (lra_coalesce): Likewise.
1624 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1626 * lra-eliminations.c (lra_init_elimination): Likewise.
1627 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1628 lra_final_code_change): Likewise.
1629 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1630 update_inc_notes): Likewise.
1631 * mcf.c (adjust_cfg_counts): Likewise.
1632 * mode-switching.c (optimize_mode_switching): Likewise.
1633 * modulo-sched.c (rest_of_handle_sms): Likewise.
1634 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1635 expand_omp_target): Likewise.
1636 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1637 * postreload.c (reload_cse_regs_1): Likewise.
1638 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1639 tree_estimate_probability, expensive_function_p,
1640 estimate_bb_frequencies, compute_function_frequency): Likewise.
1641 * profile.c (is_inconsistent, compute_branch_probabilities,
1642 branch_prob): Likewise.
1643 * ree.c (find_removable_extensions): Likewise.
1644 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1645 * regcprop.c (copyprop_hardreg_forward): Likewise.
1646 * reginfo.c (init_subregs_of_mode): Likewise.
1647 * regrename.c (regrename_analyze): Likewise.
1648 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1650 * reload1.c (has_nonexceptional_receiver, reload,
1651 calculate_elim_costs_all_insns): Likewise.
1652 * resource.c (init_resource_info, free_resource_info): Likewise.
1653 * sched-ebb.c (schedule_ebbs): Likewise.
1654 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1655 haifa_find_rgns, sched_rgn_local_init): Likewise.
1656 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1657 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1658 make_regions_from_the_rest): Likewise.
1659 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1660 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1661 * store-motion.c (compute_store_table, build_store_vectors,
1662 one_store_motion_pass): Likewise.
1663 * tracer.c (tail_duplicate): Likewise.
1664 * trans-mem.c (compute_transaction_bits): Likewise.
1665 * tree-call-cdce.c (tree_call_cdce): Likewise.
1666 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1667 fold_cond_expr_cond, make_edges, assign_discriminators,
1668 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1669 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1670 execute_fixup_cfg): Likewise.
1671 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1672 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1674 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1675 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1676 mark_reachable_handlers): Likewise.
1677 * tree-emutls.c (lower_emutls_function_body): Likewise.
1678 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1679 * tree-inline.c (optimize_inline_calls): Likewise.
1680 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1681 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1682 * tree-object-size.c (compute_object_sizes): Likewise.
1683 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1684 insert_backedge_copies, tree_profiling): Likewise.
1685 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1686 * tree-sra.c (scan_function, sra_modify_function_body,
1687 propagate_dereference_distances, ipa_sra_modify_function_body,
1688 convert_callers): Likewise.
1689 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1690 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1691 create_outofssa_var_map, coalesce_partitions): Likewise.
1692 * tree-ssa-copy.c (init_copy_prop): Likewise.
1693 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1694 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1695 eliminate_unnecessary_stmts): Likewise.
1696 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1698 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1699 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1700 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1701 analyze_memory_references, fill_always_executed_in,
1702 tree_ssa_lim_finalize): Likewise.
1703 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1705 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1706 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1707 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1708 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1709 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1711 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1712 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1713 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1714 tree_ssa_uncprop): Likewise.
1715 * tree-ssa-uninit.c (warn_uninitialized_vars,
1716 execute_late_warn_uninitialized): Likewise.
1717 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1718 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1720 * tree-switch-conversion.c (do_switchconv): Likewise.
1721 * tree-vect-generic.c (expand_vector_operations): Likewise.
1722 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1723 execute_vect_slp): Likewise.
1724 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1725 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1727 * ubsan.c (ubsan_pass): Likewise.
1728 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1729 gimple_find_values_to_profile): Likewise.
1730 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1731 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1733 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1735 * basic-block.h (last_basic_block): Eliminate macro.
1737 * asan.c (transform_statements): Eliminate use of last_basic_block
1738 in favor of last_basic_block_for_fn, in order to make use of cfun
1740 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1741 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1742 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1743 * cfg.c (compact_blocks): Likewise.
1744 * cfganal.c (mark_dfs_back_edges,
1745 control_dependences::control_dependences, post_order_compute,
1746 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1747 single_pred_before_succ_order): Likewise.
1748 * cfgbuild.c (make_edges): Likewise.
1749 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1750 * cfghooks.c (verify_flow_info): Likewise.
1751 * cfgloop.c (verify_loop_structure): Likewise.
1752 * cfgloopanal.c (just_once_each_iteration_p,
1753 mark_irreducible_loops): Likewise.
1754 * cfgloopmanip.c (fix_bb_placements, remove_path,
1755 update_dominators_in_loop): Likewise.
1756 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1757 break_superblocks, rtl_flow_call_edges_add): Likewise.
1758 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1759 * config/frv/frv.c (frv_optimize_membar): Likewise.
1760 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1761 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1762 * cprop.c (compute_local_properties, find_implicit_sets,
1763 bypass_conditional_jumps, one_cprop_pass): Likewise.
1764 * cse.c (cse_main): Likewise.
1765 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1766 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1767 * df-problems.c (df_lr_verify_solution_start,
1768 df_live_verify_solution_start, df_md_local_compute): Likewise.
1769 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1770 calc_idoms): Likewise.
1771 * domwalk.c (dom_walker::walk): Likewise.
1772 * dse.c (dse_step0, dse_step3): Likewise.
1773 * function.c (epilogue_done): Likewise.
1774 * gcse.c (alloc_gcse_mem, compute_local_properties,
1775 prune_insertions_deletions, compute_pre_data,
1776 pre_expr_reaches_here_p, one_pre_gcse_pass,
1777 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1778 one_code_hoisting_pass): Likewise.
1779 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1780 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1781 * haifa-sched.c (unlink_bb_notes): Likewise.
1782 * ipa-split.c (execute_split_functions): Likewise.
1783 * ira-build.c (create_loop_tree_nodes,
1784 remove_unnecessary_regions): Likewise.
1785 * ira-emit.c (ira_emit): Likewise.
1786 * ira.c (find_moveable_pseudos, ira): Likewise.
1787 * lcm.c (compute_antinout_edge, compute_laterin,
1788 compute_insert_delete, pre_edge_lcm, compute_available,
1789 compute_nearerout, compute_rev_insert_delete,
1790 pre_edge_rev_lcm): Likewise.
1791 * loop-unroll.c (opt_info_start_duplication,
1792 apply_opt_in_copies): Likewise.
1793 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1794 * lra-lives.c (lra_create_live_ranges): Likewise.
1795 * lra.c (lra): Likewise.
1796 * mode-switching.c (optimize_mode_switching): Likewise.
1797 * recog.c (split_all_insns): Likewise.
1798 * regcprop.c (copyprop_hardreg_forward): Likewise.
1799 * regrename.c (regrename_analyze): Likewise.
1800 * reload1.c (reload): Likewise.
1801 * resource.c (init_resource_info): Likewise.
1802 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1803 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1804 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1805 recompute_rev_top_order, sel_init_pipelining,
1806 make_regions_from_the_rest): Likewise.
1807 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1809 * tracer.c (tail_duplicate): Likewise.
1810 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1811 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1812 gimple_flow_call_edges_add): Likewise.
1813 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1814 cleanup_tree_cfg_1): Likewise.
1815 * tree-complex.c (tree_lower_complex): Likewise.
1816 * tree-inline.c (copy_cfg_body): Likewise.
1817 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1818 prepare_def_site_for, update_ssa): Likewise.
1819 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1820 * tree-ssa-dom.c (record_edge_info): Likewise.
1821 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1822 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1823 * tree-ssa-loop-manip.c (copy_phi_node_args
1824 gimple_duplicate_loop_to_header_edge): Likewise.
1825 * tree-ssa-pre.c (compute_antic): Likewise.
1826 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1827 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1828 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1829 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1830 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1831 * tree-stdarg.c (reachable_at_most_once): Likewise.
1832 * tree-vrp.c (find_assert_locations): Likewise.
1833 * var-tracking.c (vt_find_locations): Likewise.
1835 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1837 * basic-block.h (profile_status): Eliminate macro.
1839 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1840 profile_status macro in favor of profile_status_for_fn, making
1841 use of cfun explicit.
1842 * cfghooks.c (account_profile_record): Likewise.
1843 * cfgloopanal.c (single_likely_exit):
1844 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1845 * graphite.c (graphite_finalize):
1846 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1847 ubsan_expand_si_overflow_neg_check,
1848 ubsan_expand_si_overflow_mul_check): Likewise.
1849 * ipa-split.c (consider_split, execute_split_functions):
1850 * loop-unroll.c (decide_peel_simple):
1851 * optabs.c (emit_cmp_and_jump_insn_1):
1852 * predict.c (maybe_hot_edge_p, probably_never_executed,
1853 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1854 tree_estimate_probability_driver, estimate_bb_frequencies,
1855 compute_function_frequency, rebuild_frequencies): Likewise.
1856 * profile.c (compute_branch_probabilities): Likewise.
1857 * tree-cfg.c (gimple_account_profile_record): Likewise.
1858 * tree-inline.c (optimize_inline_calls): Likewise.
1860 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1862 * basic-block.h (label_to_block_map): Eliminate macro.
1864 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1865 with uses of label_to_block_map_for_fn, making uses of cfun be
1867 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1868 (verify_gimple_label): Likewise.
1870 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1872 * basic-block.h (basic_block_info): Eliminate macro.
1874 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1875 basic_block_info with basic_block_info_for_fn, making uses
1876 of cfun be explicit.
1877 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1879 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1881 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1883 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1884 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1885 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1886 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1887 * caller-save.c (insert_one_insn): Likewise.
1888 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1889 * cfgexpand.c (add_scope_conflicts): Likewise.
1890 * cfghooks.c (verify_flow_info): Likewise.
1891 * cfgloop.c (flow_loops_find): Likewise.
1892 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1893 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1894 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1895 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1896 * cse.c (cse_main): Likewise.
1897 * dce.c (fast_dce): Likewise.
1898 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1899 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1900 df_bb_replace, df_dump_region): Likewise.
1901 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1902 df_live_bb_local_compute, df_chain_remove_problem)
1903 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1904 df_md_bb_local_compute, df_md_local_compute,
1905 df_md_transfer_function): Likewise.
1906 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1907 df_reorganize_refs_by_insn, df_bb_refs_collect,
1908 df_record_entry_block_defs, df_update_entry_block_defs,
1909 df_record_exit_block_uses): Likewise.
1910 * dominance.c (nearest_common_dominator_for_set): Likewise.
1911 * gcse.c (hoist_code): Likewise.
1912 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1913 * ipa-inline-analysis.c (param_change_prob,
1914 estimate_function_body_sizes): Likewise.
1915 * ipa-split.c (dominated_by_forbidden): Likewise.
1916 * loop-unroll.c (apply_opt_in_copies): Likewise.
1917 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1918 * lra-lives.c (lra_create_live_ranges): Likewise.
1919 * predict.c (propagate_freq): Likewise.
1920 * regrename.c (regrename_analyze): Likewise.
1921 * regstat.c (regstat_bb_compute_ri,
1922 regstat_bb_compute_calls_crossed): Likewise.
1923 * resource.c (mark_target_live_regs): Likewise.
1924 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1925 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1926 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1927 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1928 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1929 * sched-vis.c (debug_bb_n_slim): Likewise.
1930 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1931 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1932 * sel-sched.c (remove_insns_that_need_bookkeeping)
1933 (current_region_empty_p, sel_region_init,
1934 simplify_changed_insns): Likewise.
1935 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1936 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1937 * tree-cfg.c (make_edges, end_recording_case_labels,
1938 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1939 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1940 gimple_purge_all_dead_eh_edges,
1941 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1942 * tree-cfgcleanup.c (fixup_noreturn_call,
1943 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1944 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1945 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1946 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1947 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1948 * tree-ssa-live.c (live_worklist): Likewise.
1949 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1950 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1951 * tree-ssa-pre.c (compute_antic): Likewise.
1952 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1953 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1954 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1955 same_succ_flush_bbs, update_worklist, set_cluster,
1956 same_phi_alternatives, find_clusters_1, apply_clusters,
1957 update_debug_stmts): Likewise.
1958 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1959 thread_through_all_blocks): Likewise.
1960 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1961 * tree-vrp.c (find_assert_locations): Likewise.
1963 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1965 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1967 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1968 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1969 (expunge_block): Likewise.
1970 * cfgrtl.c (create_basic_block_structure): Likewise.
1971 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1972 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1973 * tree-cfg.c (create_bb): Likewise.
1975 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1977 * basic-block.h (profile_status_for_function): Rename to...
1978 (profile_status_for_fn): ...this.
1980 * cfg.c (check_bb_profile): Update for renaming.
1981 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1982 * lto-streamer-in.c (input_cfg): Likewise.
1983 * lto-streamer-out.c (output_cfg): Likewise.
1984 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1985 maybe_hot_bb_p, probably_never_executed)
1986 (handle_missing_profiles): Likewise.
1987 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1988 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1990 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1992 * basic-block.h (label_to_block_map_for_function): Rename to...
1993 (label_to_block_map_for_fn): ...this.
1995 * lto-streamer-in.c (input_cfg): Update for renaming.
1996 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1998 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2000 * basic-block.h (last_basic_block_for_function): Rename to...
2001 (last_basic_block_for_fn): ...this.
2003 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2004 last_basic_block_for_function to last_basic_block_for_fn.
2005 * lto-streamer-in.c (input_cfg): Likewise.
2006 * lto-streamer-out.c (output_cfg): Likewise.
2007 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2008 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2011 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2013 * basic-block.h (basic_block_info_for_function): Rename to...
2014 (basic_block_info_for_fn): ...this.
2015 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2016 (BASIC_BLOCK_FOR_FN): ...this.
2017 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2018 (SET_BASIC_BLOCK_FOR_FN): ...this.
2020 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2021 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2022 * ipa-utils.c (ipa_merge_profiles): Likewise.
2023 * lto-streamer-in.c (make_new_block): Update for renaming of
2024 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2025 (input_cfg): Update for renamings.
2026 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2027 (dump_function_to_file): Update for renaming of
2028 basic_block_info_for_function to basic_block_info_for_fn.
2030 2013-12-09 Richard Biener <rguenther@suse.de>
2033 * tree-ssa-structalias.c (set_union_with_increment): Remove
2035 (do_complex_constraint): Call set_union_with_increment with
2036 the solution delta, not the full solution.
2037 (make_transitive_closure_constraints): Merge the two
2040 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2042 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2043 more address validation checks.
2045 2013-12-09 Marek Polacek <polacek@redhat.com>
2048 * vtable-verify.c (verify_bb_vtables): Check the return value
2049 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2051 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2053 * config/arm/arm.md (generic_sched): Add cortexa12.
2054 (generic_vfp): Likewise.
2055 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2056 (arm_cortex_a12_tune): New tuning struct.
2057 * config/arm/arm-cores.def: Add cortex-a12.
2058 * config/arm/arm-tables.opt: Regenerate.
2059 * config/arm/arm-tune.md: Likewise.
2060 * config/arm/bpabi.h: Add cortex-a12.
2061 * doc/invoke.texi: Document -mcpu=cortex-a12.
2063 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2065 * doc/install.texi (Prerequisites): Explicitly mention C library
2066 and its headers for multilib builds.
2068 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2072 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2073 OPT_mcbranchdi entry.
2074 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2076 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2077 and TARGET_CMPEQDI_T variables.
2078 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2080 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2082 * config/linux.h: Fix typo in a comment.
2084 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2086 * config.gcc (*linux*): Split libc selection from Android support.
2087 Add libc selection to all *linux* targets. Add Android support to
2088 architectures that support it.
2089 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2090 (mips*-*-linux*): Add Android support.
2092 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2093 Maxim Kuvyrkov <maxim@kugelworks.com>
2095 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2096 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2097 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2099 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2101 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2102 Define appropriately for Linux and uClinux targets.
2104 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2106 * config/linux.c (linux_has_ifunc_p): Use correct test.
2108 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2110 * config/linux.c (linux_android_has_ifunc_p): Rename to
2112 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2113 * config/linux-protos.h (linux_android_has_ifunc_p,)
2114 (linux_android_libc_has_function): Update declarations.
2115 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2116 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2118 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2120 * linux-android.c: Rename to linux.c.
2121 * t-linux-android: Rename to t-linux. Update references
2123 * config.gcc: Update references to t-linux-android and linux-android.o.
2125 2013-12-07 Alan Modra <amodra@gmail.com>
2127 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2130 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2132 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2134 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2136 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2139 2013-12-06 Caroline Tice <cmtice@google.com>
2141 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2142 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2143 vtable pointer with the results of the verification call, rather than
2144 only the uses in the next statement.
2146 2013-12-06 Andrew Pinski <apinski@cavium.com>
2149 * config/aarch64/aarch64.md (trap): New pattern.
2151 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2153 PR tree-optimization/59388
2154 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2155 gimplify tem after stmt rather than before it.
2157 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2158 (get_references_in_stmt): Don't record operand addresses, but
2159 operands themselves.
2160 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2161 Adjust for the pos -> ref change.
2163 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2165 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2167 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2168 (processor_alias_table): Likewise.
2169 (ix86_option_override_internal): Likewise.
2170 * config/i386/i386.h (target_cpu_default): Replace
2171 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2173 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2175 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2178 * config/i386/i386.c (type_natural_mode): Properly handle
2179 size 8 for !TARGET_64BIT.
2181 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2183 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2186 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2187 Mark Mitchell <mark@codesourcery.com>
2190 * config/arm/arm.md (trap): New pattern.
2191 * config/arm/types.md: Added a type for trap.
2193 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2195 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2197 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2200 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2201 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2202 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2203 (TARGET_BUILTIN_DECL): Define.
2204 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2205 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2206 (enum sparc_builtins): New enumeral type.
2207 (sparc_builtins): New static array.
2208 (sparc_builtins_icode): Likewise.
2209 (def_builtin): Accept a separate icode and save the result.
2210 (def_builtin_const): Likewise.
2211 (sparc_fpu_init_builtins): New function.
2212 (sparc_vis_init_builtins): Pass the builtin code.
2213 (sparc_init_builtins): Call it if TARGET_FPU.
2214 (sparc_builtin_decl): New function.
2215 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2216 (sparc_handle_vis_mul8x16): Use the builtin code.
2217 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2218 and SPARC_BUILTIN_PDISTN.
2219 (compound_expr): New helper function.
2220 (sparc_atomic_assign_expand_fenv): New function.
2221 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2223 (flush, flushdi): Merge into single pattern.
2224 (ldfsr): New instruction.
2227 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2229 * asan.c: Remove struct tags when referring to class varpool_node.
2230 * cgraph.h: Likewise.
2231 * cgraphbuild.c: Likewise.
2232 * cgraphunit.c: Likewise.
2233 * dbxout.c: Likewise.
2234 * dwarf2out.c: Likewise.
2235 * gimple-fold.c: Likewise.
2236 * ipa-devirt.c: Likewise.
2237 * ipa-ref-inline.h: Likewise.
2238 * ipa-ref.h: Likewise.
2239 * ipa-reference.c: Likewise.
2240 * ipa-utils.c: Likewise.
2242 * lto-cgraph.c: Likewise.
2243 * lto-streamer-out.c: Likewise.
2244 * lto-streamer.h: Likewise.
2245 * passes.c: Likewise.
2246 * toplev.c: Likewise.
2247 * tree-eh.c: Likewise.
2248 * tree-emutls.c: Likewise.
2249 * tree-pass.h: Likewise.
2250 * tree-ssa-structalias.c: Likewise.
2251 * tree-vectorizer.c: Likewise.
2253 * varasm.c: Likewise.
2254 * varpool.c: Likewise.
2256 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2258 * cgraphunit.c: Remove struct tags when referring to class
2259 ipa_opt_pass_d or class opt_pass.
2260 * function.h: Likewise.
2261 * lto-cgraph.c: Likewise.
2262 * pass_manager.h: Likewise.
2263 * passes.c: Likewise.
2264 * tree-pass.h: Likewise.
2266 2013-12-06 Richard Biener <rguenther@suse.de>
2268 PR tree-optimization/59058
2269 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2270 (LOOP_VINFO_NITERSM1): New macro.
2271 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2272 the vector loop entry test in terms of scalar latch executions.
2273 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2274 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2275 number of latch executions.
2276 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2277 (vect_analyze_loop_form): Likewise.
2278 (vect_generate_tmps_on_preheader): Compute the number of
2279 vectorized iterations differently.
2281 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2283 * config/score/score.c (score_force_temporary): Delete function.
2284 (score_split_symbol): Ditto.
2285 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2286 parentheses to silence ambiguity warning and reindent.
2288 2013-12-05 Marek Polacek <polacek@redhat.com>
2290 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2292 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2294 * config.gcc: Support --with-cpu=ia.
2296 * config/i386/i386.c (cpu_names): Add "ia".
2297 (processor_alias_table): Likewise.
2298 (ix86_option_override_internal): Disallow -march=ia.
2299 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2301 * doc/invoke.texi: Document -mtune=ia.
2303 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2305 PR rtl-optimization/59317
2306 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2309 2013-12-05 Martin Jambor <mjambor@suse.cz>
2312 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2313 non-BLKmode in their naturally aligned type.
2315 2013-12-05 Marek Polacek <polacek@redhat.com>
2319 * ubsan.c: Include rtl.h and expr.h.
2320 (ubsan_encode_value): Add new parameter. If expanding, assign
2321 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2322 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2323 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2324 * ubsan.h (ubsan_encode_value): Adjust declaration.
2325 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2326 ubsan_build_overflow_builtin above expand_normal call. Surround
2327 this call with push_temp_slots and pop_temp_slots.
2328 (ubsan_expand_si_overflow_neg_check): Likewise.
2329 (ubsan_expand_si_overflow_mul_check): Likewise.
2331 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2333 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2334 the get_alternative_base call with flag_expensive_optimizations.
2335 (alloc_cand_and_find_basis): Likewise.
2337 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2339 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2340 vec_select for overlapping register lanes.
2342 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2344 * config/i386/i386.c (ix86_expand_builtin): Generate
2345 reg for readflags built-in when optimizing.
2346 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2347 (pushfl<mode>2): This. Fix iterator.
2348 (*popfl<mode>): Rename to ...
2349 (*popfl<mode>1): This. Fix iterator.
2351 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2353 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2354 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2355 (ix86_init_mmx_sse_builtins): Define
2356 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2357 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2358 (ix86_expand_builtin): Expand them.
2359 * config/i386/ia32intrin.h (__readeflags): New.
2360 (__writeeflags): Ditto.
2361 * config/i386/i386.md (*pushfl<mode>): Ditto.
2362 (*popfl<mode>1): Ditto.
2364 2013-12-05 Richard Biener <rguenther@suse.de>
2366 PR tree-optimization/59374
2367 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2368 Commonize known and unknown dependence case fixing the allowed
2369 read-write dependence case and dropping code that should not matter.
2371 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2373 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2374 generation of predicated version.
2375 (epilogue_deallocate_stack): Ditto.
2376 (prologue_allocate_stack_pr): Add explicit predicated version.
2377 (epilogue_deallocate_stack_pr): Ditto.
2378 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2380 2013-12-05 Alan Modra <amodra@gmail.com>
2382 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2384 <recursive call for build != host>: Clear GMPINC. Don't bother
2387 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2388 Marek Polacek <polacek@redhat.com>
2390 * opts.c (common_handle_option): Handle
2391 -fsanitize=signed-integer-overflow.
2392 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2393 negv<mode>3, negv<mode>3_1): Define expands.
2394 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2395 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2396 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2397 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2398 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2399 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2400 PROB_ALWAYS): Define.
2401 (ubsan_build_overflow_builtin): Declare.
2402 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2404 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2405 (ubsan_build_overflow_builtin): New function.
2406 (instrument_si_overflow): Likewise.
2407 (ubsan_pass): Add signed integer overflow checking.
2408 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2409 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2410 * internal-fn.c: Include ubsan.h and target.h.
2411 (ubsan_expand_si_overflow_addsub_check): New function.
2412 (ubsan_expand_si_overflow_neg_check): Likewise.
2413 (ubsan_expand_si_overflow_mul_check): Likewise.
2414 (expand_UBSAN_CHECK_ADD): Likewise.
2415 (expand_UBSAN_CHECK_SUB): Likewise.
2416 (expand_UBSAN_CHECK_MUL): Likewise.
2417 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2418 (-A) + B -> B - A when doing the signed integer overflow checking.
2419 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2421 * tree-vrp.c (extract_range_basic): Handle internal calls.
2422 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2424 * asan.c: Include predict.h.
2425 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2426 * predict.c: Move the PROB_* macros...
2427 * predict.h (enum br_predictor): ...here.
2428 (PROB_LIKELY, PROB_UNLIKELY): Define.
2429 * trans-mem.c: Include predict.h.
2430 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2431 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2433 2013-12-04 Jeff Law <law@redhat.com>
2435 * common.opt: Split up -fisolate-erroneous-paths into
2436 -fisolate-erroneous-paths-dereference and
2437 -fisolate-erroneous-paths-attribute.
2438 * invoke.texi: Corresponding changes.
2439 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2440 what kind of statements can be used to infer a non-null range.
2441 * gimple.h (infer_nonnull_range): Update prototype.
2442 * tree-vrp.c (infer_value_range): Corresponding changes.
2443 * opts.c (default_options_table): Update due to option split.
2444 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2445 (find_implicit_erroneous_behaviour): Pass additional arguments
2446 to infer_nonnull_range.
2447 (find_explicit_erroneous_behaviour): Similarly.
2448 (gate_isolate_erroneous_paths): Check both of the new options.
2450 2013-12-04 Jeff Law <law@redhat.com>
2452 * expr.c (expand_assignment): Update comments.
2454 2013-12-04 Tobias Burnus <burnus@net-b.de>
2457 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2458 * tree.def (NAMELIST_DECL): Add.
2459 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2460 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2461 * dwarf2out.c (gen_namelist_decl): New function.
2462 (gen_decl_die, dwarf2out_decl): Call it.
2463 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2464 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2465 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2467 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2469 2013-12-03 Xinliang David Li <davidxl@google.com>
2471 * tree-ssa-structalias.c (constraint_set_union): Change return type
2473 (merge_node_constraints): Ditto.
2474 (unify_nodes): Update changed set when constraints set changes.
2476 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2478 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2480 * configure: Regenerated.
2482 * gdbasan.in: New file.
2484 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2486 PR rtl-optimization/58726
2487 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2488 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2490 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2491 Uros Bizjak <ubizjak@gmail.com>
2494 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2495 !TARGET_AVX there is misaligned MEM operand with vector mode
2496 and get_attr_ssememalign is 0, return false.
2497 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2498 computed alignment and for non-temporal loads/stores also
2499 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2500 * config/i386/sse.md
2501 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2502 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2503 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2504 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2505 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2506 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2507 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2508 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2509 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2510 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2511 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2512 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2513 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2514 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2515 * config/i386/i386.md (ssememalign): New define_attr.
2517 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2519 PR tree-optimization/59355
2520 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2521 * opts.c (common_handle_option): Fix comment spelling.
2523 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2525 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2526 (name_expansions): New static variable.
2527 (alt_base_map): Ditto.
2528 (get_alternative_base): New function.
2529 (find_basis_for_candidate): For CAND_REF, optionally call
2530 find_basis_for_base_expr with the returned value from
2531 get_alternative_base.
2532 (record_potential_basis): Add new parameter 'base' of type 'tree';
2533 add an assertion of non-NULL base; use base to set node->base_expr.
2534 (alloc_cand_and_find_basis): Update; call record_potential_basis
2535 for CAND_REF with the returned value from get_alternative_base.
2536 (replace_refs): Dump details on the replacing.
2537 (execute_strength_reduction): Call pointer_map_create for
2538 alt_base_map; call free_affine_expand_cache with &name_expansions.
2540 2013-12-03 Wei Mi <wmi@google.com>
2542 PR rtl-optimization/59020
2543 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2544 (sched_analyze_insn): Call try_group_insn.
2545 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2546 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2547 (group_insns_for_macro_fusion): Removed.
2548 (sched_init): Remove calling group_insns_for_macro_fusion.
2550 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2552 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2554 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2556 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2558 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2560 (aarch64_can_eliminate): Don't check elimination source when
2561 frame_pointer_required is false.
2563 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2565 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2566 position independent code.
2567 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2569 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2572 * config/i386/i386.c (emit_memset): Adjust destination address
2574 (expand_setmem_epilogue): Likewise.
2576 2013-12-03 Marek Polacek <polacek@redhat.com>
2579 * calls.c (expand_call): Disallow passing huge arguments by value.
2581 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2583 PR tree-optimization/59362
2584 * tree-object-size.c (object_sizes): Change into array of
2585 vec<unsigned HOST_WIDE_INT>.
2586 (compute_builtin_object_size): Check computed bitmap for
2587 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2588 vector if new SSA_NAMEs appeared.
2589 (init_object_sizes): Check computed bitmap for non-NULL.
2590 Call safe_grow on object_sizes elements instead of initializing
2592 (fini_object_sizes): Call release on object_sizes elements, don't
2596 * gimplify.c (nonlocal_vla_vars): New variable.
2597 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2598 nonlocal_vla_vars chain.
2599 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2600 if outer_bind has DECL_INITIAL (current_function_decl) block.
2603 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2605 * expr.h (struct saved_pending_stack_adjust): New type.
2606 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2608 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2609 and get_last_insn before do_pending_stack_adjust, call
2610 restore_pending_stack_adjust after delete_insns_since.
2611 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2612 before calling emit_conditional_move.
2613 * expmed.c (expand_sdiv_pow2): Likewise.
2614 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2616 2013-12-02 Jeff Law <law@redhat.com>
2618 PR tree-optimization/59322
2619 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2620 Remove code which copied jump threading paths.
2622 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2625 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2626 for saving in cl_target_option.
2627 (ix86_tune_string): Ditto.
2628 (ix86_cmodel): Ditto.
2630 (ix86_asm_dialect): Ditto.
2631 (ix86_branch_cost): Ditto.
2632 (ix86_dump_tunes): Ditto.
2633 (ix86_force_align_arg_pointer): Ditto.
2634 (ix86_force_drap): Ditto.
2635 (ix86_incoming_stack_boundary_arg): Ditto.
2636 (ix86_pmode): Ditto.
2637 (ix86_preferred_stack_boundary_arg): Ditto.
2638 (ix86_recip_name): Ditto.
2639 (ix86_regparm): Ditto.
2640 (ix86_section_threshold): Ditto.
2641 (ix86_sse2avx): Ditto.
2642 (ix86_stack_protector_guard): Ditto.
2643 (ix86_stringop_alg): Ditto.
2644 (ix86_tls_dialect): Ditto.
2645 (ix86_tune_ctrl_string): Ditto.
2646 (ix86_tune_memcpy_strategy): Ditto.
2647 (ix86_tune_memset_strategy): Ditto.
2648 (ix86_tune_no_default): Ditto.
2649 (ix86_veclibabi_type): Ditto.
2650 * config/i386/i386.c (function_specific_save): Save the above
2651 variables in gcc_options to cl_target_option.
2652 (function_specific_restore): Do the reverse done in
2653 function_specific_save.
2654 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2655 and ix86_tune_string to use the opts structure.
2656 (ix86_option_override_internal):Change
2657 ix86_incoming_stack_boundary_arg to
2658 opts->x_ix86_incoming_stack_boundary_arg
2660 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2662 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2663 in #ifndef IN_LIBGCC2 / #endif.
2665 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2667 PR tree-optimization/59358
2668 * tree-vrp.c (union_ranges): To check for the partially overlapping
2669 ranges or adjacent ranges, also compare *vr0max with vr1max.
2671 2013-12-02 Sterling Augustine  <saugustine@google.com>
2673 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2674 when there isn't a skeleton die.
2676 2013-12-02 Marek Polacek <polacek@redhat.com>
2679 * doc/invoke.texi: Document -fsanitize=return.
2681 2013-12-02 Tobias Burnus <burnus@net-b.de>
2682 Manuel López-Ibáñez <manu@gcc.gnu.org>
2685 * doc/invoke.texi: Add missing @opindex.
2686 (-fsanitize=): Use @gcctabopt instead of @itemize.
2688 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2690 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2691 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2692 targets like arm-none-eabi.
2693 * expr.c (expand_assignment): Handle normal fields like bit regions.
2695 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2698 * function.c (invoke_set_current_function_hook): Call
2699 targetm.set_current_function after setting this_fn_optabs.
2701 2013-12-02 Richard Biener <rguenther@suse.de>
2703 PR tree-optimization/59139
2704 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2705 code in get_val_for.
2706 (get_val_for): Use gcc_checking_asserts.
2708 2013-12-02 Richard Biener <rguenther@suse.de>
2711 * tree-ssa-operands.c (opf_implicit): Remove.
2712 (opf_address_taken): New flag.
2713 (get_expr_operands): Remove early out, pass down opf_address_taken for
2714 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2715 (get_indirect_ref_operands): Rename to ...
2716 (get_mem_ref_operands): ... this.
2717 (get_asm_expr_operands): Rename to ...
2718 (get_asm_stmt_operands): ... this.
2720 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2722 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2724 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2726 PR tree-optimization/59356
2727 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2728 offset computation using the precision of the index type.
2730 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2733 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2734 when rclass is GENERAL_REGS.
2736 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2738 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2739 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2741 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2743 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2746 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2748 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2750 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2751 Eric Botcazou <ebotcazou@adacore.com>
2753 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2754 as applied to nonzero_sign_valid when last_set_mode has less precision
2757 2013-11-30 Tobias Burnus <burnus@net-b.de>
2760 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2761 environment variable and link to a list with flags.
2762 (-fsanitize=thread): Ditto and update link.
2764 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2766 PR rtl-optimization/59340
2767 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2770 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2772 * lra.c (lra): Set lra_in_progress before check_rtl call.
2773 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2774 adding clobber regs when LRA is running.
2776 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2779 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2781 2013-11-29 Richard Biener <rguenther@suse.de>
2784 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2785 free_stmt_operands, update_stmt_operands): Add struct function
2787 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2788 function argument from fini_ssa_operands, verify_ssa_operands,
2789 free_stmt_operands and update_stmt_operands everywhere.
2790 * tree-ssanames.h (release_ssa_name_fn): New.
2791 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2792 * tree-ssanames.c (release_ssa_name): Rename to ...
2793 (release_ssa_name_fn): ... this and add struct function argument.
2794 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2795 (update_stmt_fn): New function.
2796 * tree-cfg.c (move_block_to_fn): Adjust.
2797 * tree-if-conv.c (free_bb_predicate): Likewise.
2798 * tree-ssa.c (verify_ssa): Likewise.
2799 (delete_tree_ssa): Likewise.
2800 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2801 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2802 update_stmt_fn instead of update_stmt.
2804 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2806 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2809 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2811 * config/arm/arm.md (store_minmaxsi): Use only when
2812 optimize_function_for_size_p.
2814 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2815 Yury Gribov <y.gribov@samsung.com>
2818 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2819 * gcc.c: Using libsanitizer spec instead of explicit libs.
2821 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2824 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2825 * cgraph.h (varpool_node): Add need_bounds_init field.
2826 * lto-cgraph.c (lto_output_varpool_node): Output
2827 need_bounds_init value.
2828 (input_varpool_node): Read need_bounds_init value.
2829 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2832 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2833 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2834 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2835 (gen_type_die_with_usage): Skip pointer bounds.
2836 (dwarf2out_global_decl): Likewise.
2839 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2840 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2841 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2842 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2843 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2844 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2845 (gimple_call_with_bounds_p): New.
2846 (gimple_call_set_with_bounds): New.
2847 (gimple_call_num_nobnd_args): Remove.
2848 (gimple_call_nobnd_arg): Remove.
2849 * tree.h (CALL_WITH_BOUNDS_P): New.
2850 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2853 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2854 * common.opt (fcheck-pointer-bounds): Move to ...
2855 * c-family/c.opt: ... here.
2856 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2857 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2858 * langhooks.h (lang_hooks): Remove chkp_supported field.
2859 * toplev.c (process_options): Remove chkp_supported check.
2862 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2863 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2864 * tree.h (POINTER_BOUNDS_P): New.
2865 (BOUNDED_TYPE_P): New.
2867 (pointer_bounds_type_node): New.
2868 * tree.c (build_common_tree_nodes): Initialize
2869 pointer_bounds_type_node.
2870 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2871 (gimple_call_num_nobnd_args): New.
2872 (gimple_call_nobnd_arg): New.
2873 (gimple_return_retbnd): New.
2874 (gimple_return_set_retbnd): New
2875 * gimple.c (gimple_build_return): Increase number of ops
2876 for return statement.
2877 (gimple_call_get_nobnd_arg_index): New.
2878 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2881 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2882 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2883 with "chkp ctor" and "bnd_legacy" attributes.
2884 * gimplify.c (gimplify_init_constructor): Avoid infinite
2885 loop during gimplification of bounds initializer.
2888 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2889 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2890 (handle_bnd_legacy): New.
2891 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2892 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2896 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2897 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2898 (BT_FN_PTR_CONST_PTR): New.
2899 (BT_FN_CONST_PTR_CONST_PTR): New.
2900 (BT_FN_PTR_CONST_PTR_SIZE): New.
2901 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2902 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2903 (BT_FN_VOID_CONST_PTR_SIZE): New.
2904 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2905 * chkp-builtins.def: New.
2906 * builtins.def: include chkp-builtins.def.
2907 (DEF_CHKP_BUILTIN): New.
2908 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2909 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2910 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2911 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2912 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2913 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2914 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2915 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2916 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2917 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2918 * common.opt (fcheck-pointer-bounds): New.
2919 * toplev.c (process_options): Check Pointer Bounds Checker is
2921 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2924 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2925 * target.def (builtin_chkp_function): New.
2926 (chkp_bound_type): New.
2927 (chkp_bound_mode): New.
2928 (fn_abi_va_list_bounds_size): New.
2929 (load_bounds_for_arg): New.
2930 (store_bounds_for_arg): New.
2931 * targhooks.h (default_load_bounds_for_arg): New.
2932 (default_store_bounds_for_arg): New.
2933 (default_fn_abi_va_list_bounds_size): New.
2934 (default_chkp_bound_type): New.
2935 (default_chkp_bound_mode): New.
2936 (default_builtin_chkp_function): New.
2937 * targhooks.c (default_load_bounds_for_arg): New.
2938 (default_store_bounds_for_arg): New.
2939 (default_fn_abi_va_list_bounds_size): New.
2940 (default_chkp_bound_type): New.
2941 (default_chkp_bound_mode); New.
2942 (default_builtin_chkp_function): New.
2943 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2944 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2945 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2946 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2947 (TARGET_CHKP_BOUND_TYPE): New.
2948 (TARGET_CHKP_BOUND_MODE): New.
2949 * doc/tm.texi: Regenerated.
2950 * langhooks.h (lang_hooks): Add chkp_supported field.
2951 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2952 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2955 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2956 * config/i386/constraints.md (B): New.
2959 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2960 * config/i386/i386-modes.def (BND32): New.
2962 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2963 * config/i386/i386.c (isa_opts): Add mmpx.
2964 (regclass_map): Add bound registers.
2965 (dbx_register_map): Likewise.
2966 (dbx64_register_map): Likewise.
2967 (svr4_dbx_register_map): Likewise.
2969 (ix86_option_override_internal): Support MPX ISA.
2970 (ix86_conditional_register_usage): Support bound registers.
2971 (print_reg): Likewise.
2972 (ix86_code_end): Add MPX bnd prefix.
2973 (output_set_got): Likewise.
2974 (ix86_output_call_insn): Likewise.
2975 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2976 (ix86_print_operand_punct_valid_p): Likewise.
2977 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2979 (ix86_class_likely_spilled_p): Add bound regs support.
2980 (ix86_hard_regno_mode_ok): Likewise.
2981 (x86_order_regs_for_local_alloc): Likewise.
2982 (ix86_bnd_prefixed_insn_p): New.
2983 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2984 (FIXED_REGISTERS): Add bound registers.
2985 (CALL_USED_REGISTERS): Likewise.
2986 (REG_ALLOC_ORDER): Likewise.
2987 (HARD_REGNO_NREGS): Likewise.
2989 (VALID_BND_REG_MODE): New.
2990 (FIRST_BND_REG): New.
2991 (LAST_BND_REG): New.
2992 (reg_class): Add BND_REGS.
2993 (REG_CLASS_NAMES): Likewise.
2994 (REG_CLASS_CONTENTS): Likewise.
2996 (ANY_BND_REG_P): New.
2998 (HI_REGISTER_NAMES): Add bound registers.
2999 * config/i386/i386.md (UNSPEC_BNDMK): New.
3000 (UNSPEC_BNDMK_ADDR): New.
3001 (UNSPEC_BNDSTX): New.
3002 (UNSPEC_BNDLDX): New.
3003 (UNSPEC_BNDLDX_ADDR): New.
3004 (UNSPEC_BNDCL): New.
3005 (UNSPEC_BNDCU): New.
3006 (UNSPEC_BNDCN): New.
3007 (UNSPEC_MPX_FENCE): New.
3010 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3011 (length_immediate): Likewise.
3012 (prefix_0f): Likewise.
3014 (prefix_rep): Check for bnd prefix.
3015 (length_nobnd): New.
3016 (length): Use length_nobnd if specified.
3021 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3024 (simple_return_internal): Likewise.
3025 (simple_return_pop_internal): Likewise.
3026 (*indirect_jump): Add MPX bnd prefix.
3027 (*tablejump_1): Likewise.
3028 (simple_return_internal_long): Likewise.
3029 (simple_return_indirect_internal): Likewise.
3033 (*mov<mode>_internal_mpx): New.
3034 (<mode>_<bndcheck>): New.
3035 (*<mode>_<bndcheck>): New.
3040 * config/i386/predicates.md (lea_address_operand): Rename to...
3041 (address_no_seg_operand): ... this.
3042 (address_mpx_no_base_operand): New.
3043 (address_mpx_no_index_operand): New.
3044 (bnd_mem_operator): New.
3045 * config/i386/i386.opt (mmpx): New.
3046 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3047 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3050 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3051 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3052 * tree.def (POINTER_BOUNDS_TYPE): New.
3053 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3054 (POINTER_BOUNDS_MODE): New.
3055 (make_pointer_bounds_mode): New.
3056 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3057 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3058 (layout_type): Support POINTER_BOUNDS_TYPE.
3059 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3060 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3061 (type_contains_placeholder_1): Likewise.
3062 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3063 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3064 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3066 2013-11-29 Richard Biener <rguenther@suse.de>
3069 * tree-cfg.c (verify_expr): Restrict bounds verification of
3070 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3072 2013-11-29 Richard Biener <rguenther@suse.de>
3074 PR tree-optimization/59334
3075 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3078 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3079 Richard Biener <rguenther@suse.de>
3082 * omp-low.c (simd_clone_create): Return NULL if for definition
3083 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3084 before calling cgraph_function_versioning.
3085 (expand_simd_clones): Look for "omp declare simd" attribute first.
3086 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3087 Punt if node->global.inlined_to.
3088 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3089 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3090 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3092 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3095 * tree-core.h (enum omp_clause_schedule_kind): Add
3096 OMP_CLAUSE_SCHEDULE_LAST.
3097 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3098 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3099 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3100 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3101 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3102 (DFS_write_tree_body): Handle OMP_CLAUSE.
3103 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3104 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3105 (write_ts_omp_clause_tree_pointers): New function.
3106 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3107 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3108 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3109 (unpack_value_fields): Call it for OMP_CLAUSE.
3110 (streamer_alloc_tree): Handle OMP_CLAUSE.
3111 (lto_input_ts_omp_clause_tree_pointers): New function.
3112 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3114 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3116 * doc/implement-c.texi: Document C11 implementation-defined
3117 behavior. Refer to -ffp-contract=fast for contraction behavior.
3118 * doc/invoke.texi (-std=c99, std=c11): Update description of
3120 (-std=gnu99): Don't mention as future default.
3121 (-std=gnu11): Mention as intended future default.
3122 * doc/standards.texi: Update descriptions of C99 and C11 support.
3123 Limit statement about C99 facilities for freestanding
3124 implementations to some platforms only.
3126 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3129 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3131 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3134 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3135 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3136 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3137 Don't call lra_init_elimination.
3138 (ira): Call ira_setup_eliminable_regset without arguments.
3139 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3140 from ira_setup_eliminable_regset call.
3141 * gcse.c (calculate_bb_reg_pressure): Ditto.
3142 * haifa-sched.c (sched_init): Ditto.
3143 * lra.h (lra_init_elimination): Remove the prototype.
3144 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3145 used_insn_alternative upper.
3146 (lra_eliminate_regs_1): Add one more parameter.
3147 (lra-eliminate): Ditto.
3148 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3149 (setup_sp_offset): New.
3150 (lra_process_new_insns): Call setup_sp_offset.
3151 (lra): Add argument to lra_eliminate calls.
3152 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3153 (get_equiv_with_elimination): New.
3154 (process_addr_reg): Call get_equiv_with_elimination instead of
3155 get_equiv_substitution.
3156 (equiv_address_substitution): Ditto.
3157 (loc_equivalence_change_p): Ditto.
3158 (loc_equivalence_callback, lra_constraints): Ditto.
3159 (curr_insn_transform): Ditto. Print the sp offset
3160 (process_alt_operands): Prevent stack pointer reloads.
3161 (lra_constraints): Remove one argument from lra_eliminate call.
3162 Move it up. Mark used hard regs bfore it. Use
3163 get_equiv_with_elimination instead of get_equiv_substitution.
3164 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3165 assert for param values combination. Use sp offset. Add argument
3166 to lra_eliminate_regs_1 calls.
3167 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3168 (curr_sp_change): New static var.
3169 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3170 Don't prevent elimination to sp if we can calculate its change.
3171 Pass the argument to mark_not_eliminable calls.
3172 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3173 argument to lra_eliminate_regs_1 call.
3174 (update_reg_eliminate): Move calculation of hard regs for spill
3175 lower. Switch off lra_in_progress temporarily to generate regs
3176 involved into elimination.
3177 (lra_init_elimination): Rename to init_elimination. Make it
3178 static. Set up insn sp offset, check the offsets at the end of BBs.
3179 (process_insn_for_elimination): Add parameter. Pass its value to
3180 eliminate_regs_in_insn.
3181 (lra_eliminate): : Add parameter. Pass its value to
3182 process_insn_for_elimination. Add assert for param values
3183 combination. Call init_elimination. Don't update offsets in
3184 equivalence substitutions.
3185 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3186 for created stack slot.
3187 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3190 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3192 * config/arm/iterators.md (vrint_conds): New int attribute.
3193 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3194 (smax<mode>3): Likewise.
3195 (smin<mode>3): Likewise.
3197 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3199 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3200 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3201 * tree-ssanames.h (set_range_info): Add range_type argument.
3202 (duplicate_ssa_name_range_info): Likewise.
3203 * tree-ssanames.c (set_range_info): Take the range type as argument
3204 and store it in SSA_NAME_ANTI_RANGE_P.
3205 (duplicate_ssa_name_range_info): Likewise.
3206 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3207 (set_nonzero_bits): Update call to set_range_info.
3208 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3209 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3210 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3211 (vrp_finalize): Likewise, passing anti-ranges directly.
3213 2013-11-28 Richard Biener <rguenther@suse.de>
3215 PR tree-optimization/59330
3216 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3217 and fix delayed marking of free calls not necessary.
3219 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3221 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3223 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3225 2013-11-28 Terry Guo <terry.guo@arm.com>
3227 * config/arm/arm.c (v7m_extra_costs): New table.
3228 (arm_v7m_tune): Use it.
3230 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3232 * config/sol2.h (TIME_LIBRARY): Define.
3234 2013-11-28 Richard Biener <rguenther@suse.de>
3237 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3238 CONST_DECLs in function context are not indexable.
3240 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3242 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3243 not optimized for size.
3245 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3247 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3249 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3250 data->asan_base as base for vars and update asan_alignb.
3251 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3252 Pass them to asan_emit_stack_protection.
3253 * asan.c (asan_detect_stack_use_after_return): New variable.
3254 (asan_emit_stack_protection): Add pbase and alignb arguments.
3255 Implement use after return sanitization.
3256 * asan.h (asan_emit_stack_protection): Adjust prototype.
3257 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3259 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3261 * common.opt: Introduced a new option -fsimd-cost-model.
3262 * doc/invoke.texi: Introduced a new openmp-simd warning and
3263 a new -fsimd-cost-model option.
3264 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3265 to rely on the particular loop info.
3266 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3267 (vect_peeling_hash_choose_best_peeling): Ditto.
3268 (vect_enhance_data_refs_alignment): Ditto.
3269 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3270 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3271 plus added openmp-simd warining.
3273 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3275 PR rtl-optimization/59311
3276 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3277 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3279 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3281 * var-tracking.c (track_expr_p): Do not track declarations for parts
3282 of tracked parameters.
3283 (add_stores): Do not track values for tracked parameters passed in
3285 (vt_get_decl_and_offset): Handle PARALLEL.
3286 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3288 2013-11-27 Jeff Law <law@redhat.com>
3290 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3291 clobber the loop structure thread_block was unsuccessful. If
3292 thread_block was unsuccessful, cleanup appropriately.
3294 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3296 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3297 (score_char_to_class): Likewise.
3299 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3301 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3302 the overflow bit set.
3304 2013-11-27 Richard Biener <rguenther@suse.de>
3307 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3309 (rebuild_cgraph_edges): Likewise.
3310 * ipa-inline-analysis.c (estimate_function_body_sizes):
3311 Skip internal calls.
3312 * tree-inline.c (estimate_num_insns): Estimate size of internal
3314 (gimple_expand_calls_inline): Do not try inline-expanding
3316 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3317 force_vect and simduid.
3318 (input_struct_function_base): Stream has_force_vect_loops
3319 and has_simduid_loops.
3320 (input_function): Adjust.
3321 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3322 force_vect and simduid.
3323 (output_struct_function_base): Stream has_force_vect_loops
3324 and has_simduid_loops.
3326 2013-11-27 Kai Tietz <ktietz@redhat.com>
3328 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3331 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3333 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3334 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3336 2013-11-27 Marek Polacek <polacek@redhat.com>
3339 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3340 instead of walk_gimple_op.
3341 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3343 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3344 Jakub Jelinek <jakub@redhat.com>
3346 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3347 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3348 (struct cgraph_node): Add simdclone and simd_clones fields.
3349 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3350 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3351 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3352 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3353 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3354 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3355 * doc/tm.texi: Regenerated.
3356 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3357 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3358 attribute is present.
3359 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3360 (simd_clone_vector_of_formal_parm_types): New function.
3361 (simd_clone_struct_alloc, simd_clone_struct_copy,
3362 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3363 simd_clone_compute_base_data_type, simd_clone_mangle,
3364 simd_clone_create, simd_clone_adjust_return_type,
3365 create_tmp_simd_array, simd_clone_adjust_argument_types,
3366 simd_clone_init_simd_arrays): New functions.
3367 (struct modify_stmt_info): New type.
3368 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3369 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3371 (pass_data_omp_simd_clone): New variable.
3372 (pass_omp_simd_clone): New class.
3373 (make_pass_omp_simd_clone): New function.
3374 * passes.def (pass_omp_simd_clone): New.
3375 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3376 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3377 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3378 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3379 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3380 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3381 * tree-vect-data-refs.c: Include cgraph.h.
3382 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3383 and find_data_references_in_bb, if find_data_references_in_stmt
3384 fails, still allow calls to #pragma omp declare simd functions
3385 in #pragma omp simd loops unless they contain data references among
3386 the call arguments or in lhs.
3387 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3389 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3391 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3392 call_simd_clone_vec_info_type.
3393 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3394 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3395 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3396 tree-scalar-evolution.h and cgraph.h.
3397 (vectorizable_call): Handle calls without lhs. Assert
3398 !stmt_can_throw_internal instead of failing for it. Don't update
3400 (struct simd_call_arg_info): New.
3401 (vectorizable_simd_clone_call): New function.
3402 (vect_transform_stmt): Call it.
3403 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3405 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3406 if cgraph_function_with_gimple_body_p is true.
3408 2013-11-27 Tom de Vries <tom@codesourcery.com>
3409 Marc Glisse <marc.glisse@inria.fr>
3412 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3414 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3415 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3418 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3421 * expr.c (emit_group_store): Don't write past the end of the structure.
3422 (store_bit_field): Fix formatting.
3424 2013-11-27 Richard Biener <rguenther@suse.de>
3426 PR tree-optimization/59288
3427 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3428 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3430 2013-11-27 Marek Polacek <polacek@redhat.com>
3432 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3433 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3434 rather than ADDR_EXPRs.
3436 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3438 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3440 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3442 * gengtype.c (struct seen_tag): New.
3443 (already_seen_tag): New.
3444 (mark_tag_as_seen): New.
3445 (walk_subclasses): Support having multiple subclasses using the
3446 same tag by tracking which tags have already been seen, and using
3447 this to avoid adding duplicate cases to the "switch" statement.
3448 The call to already_seen_tag introduces an O(N^2) when running
3449 gengtype on N, the number of tags, due to the repeated linear
3450 search, but currently max(N) is relatively small (the number of
3451 GSS codes, which is 26).
3452 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3455 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3456 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3457 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3458 GIMPLE_OMP_RETURN happens to share the data layout of
3459 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3460 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3461 underlying GSS value from GSS_OMP_PARALLEL to
3462 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3463 not directly related; they merely share in-memory layout.
3464 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3465 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3467 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3469 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3471 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3472 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3473 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3474 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3477 * gimple.h (gimple_statement_resx): New subclass of
3478 gimple_statement_eh_ctrl, with the invariant that
3479 stmt->code == GIMPLE_RESX.
3480 (gimple_statement_eh_dispatch): New subclass of
3481 gimple_statement_eh_ctrl, with the invariant that
3482 stmt->code == GIMPLE_EH_DISPATH.
3484 (gimple_statement_omp_parallel): The existing class expressed
3485 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3486 are not all related, so it makes more sense for this class to
3487 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3488 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3489 rename the existing gimple_statement_omp_parallel class to...
3490 (gimple_statement_omp_parallel_layout): ...this, expressing
3491 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3492 (gimple_statement_omp_taskreg): New subclass of
3493 gimple_statement_omp_parallel_layout, expressing the invariant
3494 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3495 as used by the various gimple_omp_taskreg_ accessors.
3496 (gimple_statement_omp_parallel): Reintroduce this class, this time
3497 as a subclass of gimple_statement_omp_taskreg to express the
3498 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3499 (gimple_statement_omp_target) New class, subclassing
3500 gimple_statement_omp_parallel_layout, to express the invariant
3501 stmt->code == GIMPLE_OMP_TARGET.
3502 (gimple_statement_omp_task): Update to inherit from
3503 gimple_statement_omp_taskreg rather than
3504 gimple_statement_omp_parallel.
3506 (gimple_statement_omp_single): Rename to...
3507 (gimple_statement_omp_single_layout): ...this, expressing the
3508 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3509 (gimple_statement_omp_single): ...and reintroduce this name as
3510 a subclass of gimple_statement_omp_single_layout, expressing
3511 the invariant that code == GIMPLE_OMP_SINGLE.
3512 (gimple_statement_omp_teams): New class, subclassing
3513 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3515 (gimple_statement_omp_atomic_store): Rename to...
3516 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3517 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3518 (gimple_statement_omp_atomic_store): ...and reintroduce this
3519 name as a subclass of gimple_statement_omp_atomic_store_layout
3520 with code == GIMPLE_OMP_ATOMIC_STORE.
3521 (gimple_statement_omp_return): New class, subclassing
3522 gimple_statement_omp_atomic_store_layout for the code
3525 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3526 (is_a_helper <gimple_statement_resx>::test): New.
3527 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3528 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3529 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3530 (is_a_helper <gimple_statement_omp_return>::test): New.
3531 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3532 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3533 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3535 (is_a_helper <gimple_statement_omp_target>::test): New.
3536 (is_a_helper <gimple_statement_omp_single>::test): Only check
3537 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3538 (is_a_helper <gimple_statement_omp_teams>::test): New.
3540 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3541 (is_a_helper <const gimple_statement_resx>::test): New.
3542 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3543 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3544 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3545 (is_a_helper <const gimple_statement_omp_return>::test): New.
3546 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3547 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3548 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3550 (is_a_helper <const gimple_statement_omp_target>::test): New.
3551 (is_a_helper <const gimple_statement_omp_single>::test): Only
3552 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3553 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3555 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3556 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3557 gimple_statement_omp_atomic_store with downcasts to
3558 gimple_statement_omp_return, thus requiring that the code be
3560 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3561 downcasts to gimple_statement_eh_ctrl with downcasts to
3562 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3563 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3564 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3565 downcasts to gimple_statement_eh_dispatch, thus requiring that
3566 the code be GIMPLE_EH_DISPATCH.
3567 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3568 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3569 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3570 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3571 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3572 gimple_statement_omp_parallel with downcasts to
3573 gimple_statement_omp_taskreg, thus requiring that the code be
3574 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3575 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3576 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3577 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3578 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3579 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3580 gimple_statement_omp_parallel with downcasts to
3581 gimple_statement_omp_target, thus requiring that the code be
3583 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3584 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3585 gimple_statement_omp_single with downcasts to
3586 gimple_statement_omp_teams, thus requiring that the code be
3589 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3590 gimple_statement_resx.
3591 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3592 gimple_statement_eh_dispatch.
3594 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3596 PR tree-optimization/59014
3597 * tree-vrp.c (register_edge_assert_for_1): Don't look
3598 through conversions from non-integral types or through
3599 narrowing conversions.
3602 * config/i386/i386.c (device_alg): Fix up formatting.
3603 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3604 similarly to count && count < epilogue_size_needed. Fix up
3606 * builtins.c (determine_block_size): Fix comment typo.
3609 * ubsan.c (ubsan_source_location): Don't add any location
3610 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3611 (ubsan_create_data): Strip block info from LOC.
3614 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3615 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3617 PR rtl-optimization/59166
3618 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3619 DF_REF_LOC in validate_change call.
3620 (split_live_ranges_for_shrink_wrap): Likewise.
3623 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3624 of references to constant size types in simd loops, defer emitting
3625 initializer for the new_var, emit it later on only if not using
3629 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3630 for the inner loop if collapse_bb is non-NULL.
3631 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3633 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3635 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3636 a constant immediate before force_reg.
3638 2013-11-26 Richard Biener <rguenther@suse.de>
3640 PR tree-optimization/59245
3641 * tree-vrp.c (set_value_range): Assert that we don't have
3642 overflowed constants (but our infinities).
3643 (set_value_range_to_value): Drop all overflow flags.
3644 (vrp_visit_phi_node): Likewise.
3645 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3646 to set a constant range.
3648 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3651 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3652 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3653 for zero_extend case.
3655 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3658 * configure.ac (install_gold_as_default): New. Set to yes for
3659 --disable-ld or --enable-gold=default.
3660 (gcc_cv_ld_gold_srcdir): New.
3661 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3662 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3663 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3664 * configure: Regenerated.
3666 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3667 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3668 (original) [collect-ld && -fuse-ld=bfd]: Set to
3669 $ORIGINAL_LD_BFD_FOR_TARGET.
3670 (original) [collect-ld && -fuse-ld=gold]: Set to
3671 $ORIGINAL_LD_GOLD_FOR_TARGET.
3672 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3673 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3675 2013-11-26 Terry Guo <terry.guo@arm.com>
3677 * config/arm/arm.c (require_pic_register): Handle high pic base
3678 register for thumb-1.
3679 (arm_load_pic_register): Also initialize high pic base register.
3680 * doc/invoke.texi: Update documentation for option -mpic-register.
3682 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3686 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3687 Prefix function names with 'sh_'. Make them non-static.
3688 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3689 sh_max_mov_insn_displacement): Add declarations.
3690 * config/sh/constraints.md (Q): Reject QImode.
3691 (Sdd): Use match_code "mem".
3692 (Snd): Fix erroneous matching of non-memory operands.
3693 * config/sh/predicates.md (short_displacement_mem_operand): New
3695 (general_movsrc_operand): Disallow PC relative QImode loads.
3696 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3697 (*movqi, *movhi): Merge both insns into...
3698 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3699 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3700 on the operand types.
3702 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3704 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3705 Remove unused variable save_config.
3706 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3709 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3711 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3712 using other intrinsics.
3713 (vtbx3_<psu>8): Likewise.
3715 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3717 * config/aarch64/aarch64-builtins.c
3718 (aarch64_types_bsl_p_qualifiers): New.
3719 (aarch64_types_bsl_s_qualifiers): Likewise.
3720 (aarch64_types_bsl_u_qualifiers): Likewise.
3721 (TYPES_BSL_P): Likewise.
3722 (TYPES_BSL_S): Likewise.
3723 (TYPES_BSL_U): Likewise.
3724 (BUILTIN_VALLDIF): Likewise.
3725 (BUILTIN_VDQQH): Likewise.
3726 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3727 * config/aarch64/aarch64-simd.md
3728 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3729 (aarch64_simd_bsl<mode>): Likewise.
3730 * config/aarch64/arm_neon.h
3731 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3732 * config/aarch64/iterators.md (VALLDIF): New.
3733 (Vbtype): Handle more modes.
3735 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3737 * config/aarch64/aarch64-builtins.c
3738 (aarch64_type_qualifiers): Add qualifier_poly.
3739 (aarch64_build_scalar_type): Also build Poly types.
3740 (aarch64_build_vector_type): Likewise.
3741 (aarch64_build_type): Likewise.
3742 (aarch64_build_signed_type): New.
3743 (aarch64_build_unsigned_type): Likewise.
3744 (aarch64_build_poly_type): Likewise.
3745 (aarch64_init_simd_builtins): Also handle Poly types.
3747 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3749 * config/aarch64/aarch64-builtins.c
3750 (VAR1): Use new naming scheme for aarch64_builtins.
3751 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3753 2013-11-26 Richard Biener <rguenther@suse.de>
3755 PR tree-optimization/59287
3756 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3757 Remove no longer necessary special-casing of union accesses.
3759 2013-11-26 Richard Biener <rguenther@suse.de>
3761 * pretty-print.c (output_buffer::~output_buffer): Really
3764 2013-11-25 Jeff Law <law@redhat.com>
3766 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3767 invalidate loop information.
3769 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3771 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3773 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3777 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3779 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3780 previously visited basic blocks before recursing instead of only one
3783 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3785 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3786 * config/aarch64/aarch64-cores.def (cortex-a53):
3787 Use cortexa53 tuning struct.
3789 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3792 * fold-const.c: Include hash-table.h.
3794 2013-11-25 Marek Polacek <polacek@redhat.com>
3797 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3799 2013-11-25 Richard Biener <rguenther@suse.de>
3801 * tree-dfa.c: Remove unused convert.h include.
3803 2013-11-25 Terry Guo <terry.guo@arm.com>
3805 * doc/invoke.texi (-mslow-flash-data): Document new option.
3806 * config/arm/arm.opt (mslow-flash-data): New option.
3807 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3809 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3811 (arm_disable_literal_pool): Declare it.
3812 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3813 (arm_option_override): Handle new option.
3814 (thumb2_legitimate_address_p): Don't allow symbol references when
3815 literal pools are disabled.
3816 (arm_max_const_double_inline_cost): New function.
3817 * config/arm/arm.md (types.md): Include it before ...
3818 (use_literal_pool): New attribute.
3819 (enabled): Use new attribute.
3820 (split pattern): Replace symbol+offset with MOVW/MOVT.
3822 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3825 Revert previous commit.
3827 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3829 * jump.c (reset_insn_reg_label_operand_notes): New function,
3831 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3832 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3834 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3835 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3836 expensive CFG cleanup is called for.
3837 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3838 (cfg_layout_finalize): Delete dead jump tables before re-building
3840 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3841 basic blocks, not before.
3842 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3844 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3845 insns chain of a scheduling extended basic block, they cannot appear
3846 there in cfglayout mode.
3848 2013-11-24 Tobias Burnus <burnus@net-b.de>
3850 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3852 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3854 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3857 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3859 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3861 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3863 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3865 2013-11-23 David Edelson <dje.gcc@gmail.com>
3866 Andrew Dixie <andrewd@gentrack.com>
3869 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3870 (COLLECT_SHARED_FINI_FUNC): Define.
3872 * collect2.c (aix_shared_initname): Declare.
3873 (aix_shared_fininame): Declare.
3874 (symkind): Add SYM_AIXI and SYM_AIXD.
3875 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3876 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3877 (aixlazy_flag): Parse.
3878 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3879 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3881 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3883 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3884 (rs6000_xcoff_select_section): Place decls with stricter alignment
3885 into named sections.
3886 (rs6000_xcoff_unique_section): Allow unique sections for
3887 uninitialized data with strict alignment.
3889 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3891 PR tree-optimization/59154
3892 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3893 rhs1 of a cast and new_op is invariant, fold_convert it.
3894 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3895 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3897 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3900 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3901 Declare as MULTI_ARG_1_SF instruction.
3902 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3903 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3904 from *xop_vmfrcz_<mode>.
3905 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3906 to merge scalar result with __A.
3907 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3910 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3912 * gimplify.h (recalculate_side_effects): Delete.
3913 * gimplify.c (recalculate_side_effects): Make static and add comment.
3915 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3917 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3918 for the destination of a define_peephole2. Likewise register_operand
3919 rather than arith_reg_operand. Remove constraints from
3922 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3924 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3926 (mn10300_store_multiple_operation_p): Declare.
3927 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3929 (mn10300_store_multiple_operation_p): ...this and remove mode
3931 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3934 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3936 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3937 (pop_multiple_operation): Delete.
3938 (analyze_push_multiple_operation): Declare.
3939 (analyze_pop_multiple_operation): Declare.
3940 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3941 (analyze_push_multiple_operation): ...this and remove mode argument.
3942 (pop_multiple_operation): Rename to...
3943 (analyze_pop_multiple_operation): ...this and remove mode argument.
3944 * config/bfin/predicates.md (push_multiple_operation): Define.
3945 (pop_multiple_operation): Likewise.
3947 2013-11-23 Alan Modra <amodra@gmail.com>
3949 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3951 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3954 * common.opt (static-liblsan): Add.
3955 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3957 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3958 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3960 * opts.c (common_handle_option): Handle -fsanitize=leak.
3961 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3962 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3963 (LIBUBSAN_EARLY_SPEC): Remove.
3964 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3965 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3966 (sanitize_spec_function): Handle %sanitize(leak).
3967 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3969 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3970 Jakub Jelinek <jakub@redhat.com>
3972 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3973 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3974 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3975 (ipa_modify_formal_parameters): Adjust caller. Remove
3976 synth_parm_prefix argument. Use operator enum instead of bit fields.
3977 Add assert for properly handling vector of references. Handle
3978 creating brand new parameters.
3979 (ipa_modify_call_arguments): Use operator enum instead of bit
3981 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3983 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3985 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3986 Use operator enum instead of bit fields.
3987 * ipa-prop.h (enum ipa_parm_op): New.
3988 (struct ipa_parm_adjustment): New field op. Rename reduction
3989 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3991 (ipa_modify_formal_parameters): Remove last argument.
3992 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3993 ipa_get_adjustment_candidate): New prototypes.
3994 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3995 enum. Set arg_prefix.
3996 (get_adjustment_for_base): Use operator enum.
3997 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3999 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4000 (ipa_sra_modify_function_body): Same. No longer static.
4001 (sra_ipa_reset_debug_stmts): Use operator enum.
4002 (modify_function): Do not pass prefix argument.
4004 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4006 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4007 (ubsan_pass): Ignore clobber stmts.
4009 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4010 * opts.c (common_handle_option): Add -fsanitize=return.
4011 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4012 or it into SANITIZE_UNDEFINED.
4014 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4015 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4016 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4017 Don't instrument accesses to VAR_DECLs which are known to fit
4018 into their bounds and the vars are known to have shadow bytes
4019 indicating allowed access.
4020 (asan_dynamic_init_call): New function.
4021 (asan_add_global): If vnode->dynamically_initialized,
4022 set __has_dynamic_init to 1 instead of 0.
4023 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4024 * asan.h (asan_dynamic_init_call): New prototype.
4025 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4027 2013-11-22 Martin Jambor <mjambor@suse.cz>
4029 PR rtl-optimization/10474
4030 * ira.c (interesting_dest_for_shprep_1): New function.
4031 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4032 also check parallels.
4034 2013-11-22 Jeff Law <law@redhat.com>
4036 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4037 NULL for RHS, which we used to invalidate equivalences.
4038 (record_temporary_equivalences_from_phis): New bitmap arguments
4039 and a boolean indicating if we have passed a backedge. If we
4040 have passed a backedge, then set the appropriate bit in the
4041 bitmaps for the SRC & DEST of PHIs creating equivalences.
4042 (invalidate_equivalences, dummy_simplify): New functions.
4043 (cond_arg_set_in_b): Remove.
4044 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4045 arguments and a boolean indicating if we have passed a backedge.
4046 If we have passed a backedge, then perform invalidations as needed.
4047 (thread_around_empty_blocks): If we have seen a backedge, then
4048 use the dummy simplify routine.
4049 (thread_through_normal_block): Likewise. Pass bitmaps and
4050 backedge status to children. Do not pessimize so much when
4051 traversing backedges in the CFG.
4052 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4053 If we have seen a backedge, then use the dummy simplify routine.
4054 Do not pessimize so much when traversing backedges.
4056 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4058 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4059 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4061 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4063 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4064 PTA_PCLMUL and PTA_RDRND for Silvermont.
4065 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4068 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4070 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4072 * hooks.h (hook_uint_mode_0): Add Prototype.
4073 * hooks.c (hook_uint_mode_0): New default function.
4074 * target.def (atomic_align_for_mode): New target hook.
4075 * tree.c (build_atomic_base): Add alignment override parameter.
4076 (build_common_tree_nodes): Use atomic alignment override.
4077 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4078 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4080 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4082 * gimple.h: Remove all includes.
4083 (recalculate_side_effects): Move prototype to gimplify.h.
4084 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4085 * gengtype.c (open_base_files): Add gimple.h include list.
4086 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4087 * gimple.c: Adjust include list.
4088 (recalculate_side_effects): Move to gimplify.c.
4089 * gimplify.c: Adjust include list.
4090 (recalculate_side_effects): Relocate from gimple.c.
4091 * alias.c: Add required include files removed from gimple.h.
4093 * builtins.c: Likewise.
4094 * calls.c: Likewise.
4095 * cfgexpand.c: Likewise.
4096 * cfgloop.c: Likewise.
4097 * cfgloopmanip.c: Likewise.
4098 * cgraphbuild.c: Likewise.
4099 * cgraph.c: Likewise.
4100 * cgraphclones.c: Likewise.
4101 * cgraphunit.c: Likewise.
4102 * cilk-common.c: Likewise.
4103 * data-streamer.c: Likewise.
4104 * data-streamer-in.c: Likewise.
4105 * data-streamer-out.c: Likewise.
4107 * dwarf2out.c: Likewise.
4108 * emit-rtl.c: Likewise.
4109 * except.c: Likewise.
4111 * fold-const.c: Likewise.
4112 * function.c: Likewise.
4113 * gimple-builder.c: Likewise.
4114 * gimple-expr.c: Likewise.
4115 * gimple-fold.c: Likewise.
4116 * gimple-iterator.c: Likewise.
4117 * gimple-low.c: Likewise.
4118 * gimple-pretty-print.c: Likewise.
4119 * gimple-ssa-isolate-paths.c: Likewise.
4120 * gimple-ssa-strength-reduction.c: Likewise.
4121 * gimple-streamer-in.c: Likewise.
4122 * gimple-streamer-out.c: Likewise.
4123 * gimple-walk.c: Likewise.
4124 * gimplify-me.c: Likewise.
4125 * graphite-blocking.c: Likewise.
4126 * graphite.c: Likewise.
4127 * graphite-clast-to-gimple.c: Likewise.
4128 * graphite-dependences.c: Likewise.
4129 * graphite-interchange.c: Likewise.
4130 * graphite-optimize-isl.c: Likewise.
4131 * graphite-poly.c: Likewise.
4132 * graphite-scop-detection.c: Likewise.
4133 * graphite-sese-to-poly.c: Likewise.
4134 * internal-fn.c: Likewise.
4136 * ipa-cp.c: Likewise.
4137 * ipa-devirt.c: Likewise.
4138 * ipa-inline-analysis.c: Likewise.
4139 * ipa-inline.c: Likewise.
4140 * ipa-profile.c: Likewise.
4141 * ipa-prop.c: Likewise.
4142 * ipa-pure-const.c: Likewise.
4143 * ipa-reference.c: Likewise.
4144 * ipa-split.c: Likewise.
4145 * ipa-utils.c: Likewise.
4146 * langhooks.c: Likewise.
4147 * lto-cgraph.c: Likewise.
4148 * lto-compress.c: Likewise.
4149 * lto-opts.c: Likewise.
4150 * lto-section-in.c: Likewise.
4151 * lto-section-out.c: Likewise.
4152 * lto-streamer.c: Likewise.
4153 * lto-streamer-in.c: Likewise.
4154 * lto-streamer-out.c: Likewise.
4155 * omp-low.c: Likewise.
4156 * opts-global.c: Likewise.
4157 * passes.c: Likewise.
4158 * predict.c: Likewise.
4159 * profile.c: Likewise.
4162 * stor-layout.c: Likewise.
4163 * symtab.c: Likewise.
4164 * targhooks.c: Likewise.
4165 * toplev.c: Likewise.
4166 * tracer.c: Likewise.
4167 * trans-mem.c: Likewise.
4168 * tree-affine.c: Likewise.
4170 * tree-call-cdce.c: Likewise.
4171 * tree-cfg.c: Likewise.
4172 * tree-cfgcleanup.c: Likewise.
4173 * tree-chrec.c: Likewise.
4174 * tree-complex.c: Likewise.
4175 * tree-data-ref.c: Likewise.
4176 * tree-dfa.c: Likewise.
4177 * tree-eh.c: Likewise.
4178 * tree-emutls.c: Likewise.
4179 * tree-if-conv.c: Likewise.
4180 * tree-inline.c: Likewise.
4181 * tree-into-ssa.c: Likewise.
4182 * tree-loop-distribution.c: Likewise.
4183 * tree-nested.c: Likewise.
4184 * tree-nrv.c: Likewise.
4185 * tree-object-size.c: Likewise.
4186 * tree-outof-ssa.c: Likewise.
4187 * tree-parloops.c: Likewise.
4188 * tree-phinodes.c: Likewise.
4189 * tree-predcom.c: Likewise.
4190 * tree-pretty-print.c: Likewise.
4191 * tree-profile.c: Likewise.
4192 * tree-scalar-evolution.c: Likewise.
4193 * tree-sra.c: Likewise.
4194 * tree-ssa-address.c: Likewise.
4195 * tree-ssa-alias.c: Likewise.
4196 * tree-ssa.c: Likewise.
4197 * tree-ssa-ccp.c: Likewise.
4198 * tree-ssa-coalesce.c: Likewise.
4199 * tree-ssa-copy.c: Likewise.
4200 * tree-ssa-copyrename.c: Likewise.
4201 * tree-ssa-dce.c: Likewise.
4202 * tree-ssa-dom.c: Likewise.
4203 * tree-ssa-dse.c: Likewise.
4204 * tree-ssa-forwprop.c: Likewise.
4205 * tree-ssa-ifcombine.c: Likewise.
4206 * tree-ssa-live.c: Likewise.
4207 * tree-ssa-loop.c: Likewise.
4208 * tree-ssa-loop-ch.c: Likewise.
4209 * tree-ssa-loop-im.c: Likewise.
4210 * tree-ssa-loop-ivcanon.c: Likewise.
4211 * tree-ssa-loop-ivopts.c: Likewise.
4212 * tree-ssa-loop-manip.c: Likewise.
4213 * tree-ssa-loop-niter.c: Likewise.
4214 * tree-ssa-loop-prefetch.c: Likewise.
4215 * tree-ssa-loop-unswitch.c: Likewise.
4216 * tree-ssa-math-opts.c: Likewise.
4217 * tree-ssanames.c: Likewise.
4218 * tree-ssa-operands.c: Likewise.
4219 * tree-ssa-phiopt.c: Likewise.
4220 * tree-ssa-phiprop.c: Likewise.
4221 * tree-ssa-pre.c: Likewise.
4222 * tree-ssa-propagate.c: Likewise.
4223 * tree-ssa-reassoc.c: Likewise.
4224 * tree-ssa-sccvn.c: Likewise.
4225 * tree-ssa-sink.c: Likewise.
4226 * tree-ssa-strlen.c: Likewise.
4227 * tree-ssa-structalias.c: Likewise.
4228 * tree-ssa-tail-merge.c: Likewise.
4229 * tree-ssa-ter.c: Likewise.
4230 * tree-ssa-threadedge.c: Likewise.
4231 * tree-ssa-threadupdate.c: Likewise.
4232 * tree-ssa-uncprop.c: Likewise.
4233 * tree-ssa-uninit.c: Likewise.
4234 * tree-stdarg.c: Likewise.
4235 * tree-streamer.c: Likewise.
4236 * tree-streamer-in.c: Likewise.
4237 * tree-streamer-out.c: Likewise.
4238 * tree-switch-conversion.c: Likewise.
4239 * tree-tailcall.c: Likewise.
4240 * tree-vect-data-refs.c: Likewise.
4241 * tree-vect-generic.c: Likewise.
4242 * tree-vect-loop.c: Likewise.
4243 * tree-vect-loop-manip.c: Likewise.
4244 * tree-vectorizer.c: Likewise.
4245 * tree-vect-patterns.c: Likewise.
4246 * tree-vect-slp.c: Likewise.
4247 * tree-vect-stmts.c: Likewise.
4248 * tree-vrp.c: Likewise.
4250 * ubsan.c: Likewise.
4251 * value-prof.c: Likewise.
4252 * varpool.c: Likewise.
4253 * var-tracking.c: Likewise.
4254 * vtable-verify.c: Likewise.
4255 * config/darwin.c: Likewise.
4256 * config/aarch64/aarch64-builtins.c: Likewise.
4257 * config/aarch64/aarch64.c: Likewise.
4258 * config/alpha/alpha.c: Likewise.
4259 * config/i386/i386.c: Likewise.
4260 * config/i386/winnt.c: Likewise.
4261 * config/ia64/ia64.c: Likewise.
4262 * config/m32c/m32c.c: Likewise.
4263 * config/mep/mep.c: Likewise.
4264 * config/mips/mips.c: Likewise.
4265 * config/rs6000/rs6000.c: Likewise.
4266 * config/s390/s390.c: Likewise.
4267 * config/sh/sh.c: Likewise.
4268 * config/sparc/sparc.c: Likewise.
4269 * config/spu/spu.c: Likewise.
4270 * config/stormy16/stormy16.c: Likewise.
4271 * config/tilegx/tilegx.c: Likewise.
4272 * config/tilepro/tilepro.c: Likewise.
4273 * config/xtensa/xtensa.c: Likewise.
4275 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4278 * arm.md (negdi_extendsidi): Fix invalid split.
4280 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4282 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4283 (vmov_n_f64): Likewise.
4284 (vmov_n_p8): Likewise.
4285 (vmov_n_p16): Likewise.
4286 (vmov_n_s8): Likewise.
4287 (vmov_n_s16): Likewise.
4288 (vmov_n_s32): Likewise.
4289 (vmov_n_s64): Likewise.
4290 (vmov_n_u8): Likewise.
4291 (vmov_n_u16): Likewise.
4292 (vmov_n_u32): Likewise.
4293 (vmov_n_u64): Likewise.
4294 (vmovq_n_f32): Likewise.
4295 (vmovq_n_f64): Likewise.
4296 (vmovq_n_p8): Likewise.
4297 (vmovq_n_p16): Likewise.
4298 (vmovq_n_s8): Likewise.
4299 (vmovq_n_s16): Likewise.
4300 (vmovq_n_s32): Likewise.
4301 (vmovq_n_s64): Likewise.
4302 (vmovq_n_u8): Likewise.
4303 (vmovq_n_u16): Likewise.
4304 (vmovq_n_u32): Likewise.
4305 (vmovq_n_u64): Likewise.
4307 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4309 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4310 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4311 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4312 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4313 and also change to float UNSPEC.
4314 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4315 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4316 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4317 result access for big-endian.
4318 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4319 intrinsics for big-endian.
4320 * config/aarch64/iterators.md (VDQV): Add V2DI.
4322 (vp): New mode attribute.
4324 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4326 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4327 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4330 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4332 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4333 for big-endian element order.
4334 (aarch64_simd_vec_setv2di): Likewise.
4335 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4336 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4337 (vec_extract): Expand using aarch64_get_lane.
4338 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4340 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4342 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4343 and stores to be ABI compliant.
4345 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4347 * input.h (input_line): Remove.
4348 (input_filename): Likewise.
4349 (in_system_header): Likewise.
4350 * tree.h (EXPR_LOC_OR_HERE): Remove.
4351 * config/bfin/bfin.c (output_file_start): Remove use of
4352 input_filename macro.
4353 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4354 * gimplify.c (internal_get_tmp_var): Likewise.
4355 EXPR_LOC_OR_HERE macro.
4356 (shortcut_cond_expr): Likewise.
4357 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4358 use of input_filename macro.
4359 * tree.c (get_file_function_name): Likewise.
4361 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4363 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4365 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4367 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4368 (same sized) elements even if the type of the CONSTRUCTOR has
4369 vector mode and target is a REG.
4371 2013-11-22 Richard Biener <rguenther@suse.de>
4374 2013-11-21 Richard Biener <rguenther@suse.de>
4376 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4377 nb_iterations_upper_bound by one.
4379 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4381 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4384 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4385 core-avx-i, core-avx2 and slm.
4387 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4389 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4391 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4393 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4394 (stzx_24_<mode>): Likewise mra_operand.
4396 2013-11-22 Jeff Law <law@redhat.com>
4398 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4399 (thread_block_1): Do not cancel jump threads which go from
4400 inside a loop, through the header, then back inside the loop.
4401 (bb_ends_with_multiway_branch): New function.
4402 (thread_through_all_blocks): Handle threading cases which start
4403 in a loop through the loop header to a point in the loop.
4405 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4406 jump thread path properly.
4408 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4410 * vec.h (auto_vec): New class.
4411 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4412 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4413 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4414 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4415 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4416 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4417 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4418 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4419 appropriate instead of vec for local variables.
4421 2013-11-21 Teresa Johnson <tejohnson@google.com>
4424 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4425 not understood by old_insns_match_p.
4427 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4429 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4430 little endian change.
4431 (vec_pack_sfix_trunc_v2df): Likewise.
4432 (vec_pack_ufix_trunc_v2df): Likewise.
4433 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4434 double checking of endianness.
4436 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4438 * tree-vect-generic.c (optimize_vector_constructor): New function.
4439 (expand_vector_operations_1): Call it.
4441 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4443 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4444 ix86_zero_extend_to_Pmode where appropriate.
4445 (ix86_expand_builtin): Ditto.
4447 2013-11-21 Cary Coutant <ccoutant@google.com>
4449 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4450 (add_linkage_name): Don't add linkage name for -g1.
4451 (decls_for_scope): Process subblocks for -g1.
4452 (dwarf2out_source_line): Output line tables for -g1.
4453 (dwarf2out_finish): Likewise.
4454 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4455 unused scopes for -g1.
4456 * opts.c (common_handle_option): Handle -g same as -g2.
4457 * doc/invoke.texi: Update description for -g1.
4459 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4461 * doc/extend.texi: Document htm builtins.
4463 2013-11-21 Jeff Law <law@redhat.com>
4465 PR tree-optimization/59221
4466 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4467 temporary equivalences when threading through joiner blocks.
4469 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4471 PR rtl-optimization/55950
4472 * real.c (real_sqrt): Remove function.
4473 * real.h (real_sqrt): Remove prototype.
4474 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4475 SQRT using real_sqrt.
4477 2013-11-21 Richard Biener <rguenther@suse.de>
4479 PR tree-optimization/59058
4480 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4481 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4482 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4483 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4484 (NITERS_KNOWN_P): Fold into ...
4485 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4486 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4487 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4488 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4489 (vect_do_peeling_for_alignment): Re-use precomputed niter
4490 instead of re-emitting it.
4491 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4492 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4493 * tree-vect-loop.c (vect_get_loop_niters): Use
4494 number_of_latch_executions.
4495 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4496 (vect_analyze_loop_form): Simplify.
4497 (vect_analyze_loop_operations): Move epilogue peeling code ...
4498 (vect_analyze_loop_2): ... here and adjust it to compute
4499 LOOP_VINFO_PEELING_FOR_NITER.
4500 (vect_estimate_min_profitable_iters): Use
4501 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4502 (vect_build_loop_niters): Emit on the preheader.
4503 (vect_generate_tmps_on_preheader): Likewise.
4504 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4505 of recomputing it. Adjust.
4507 2013-11-21 Richard Biener <rguenther@suse.de>
4509 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4510 LOC_LINE): Remove wrappers and fix all users.
4511 (struct _loop_vec_info): Remove loop_line_number member.
4512 (LOOP_VINFO_LOC): Remove.
4513 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4514 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4517 2013-11-21 Richard Biener <rguenther@suse.de>
4519 * tree-ssa-forwprop.c (simplify_vce): New function.
4520 (ssa_forward_propagate_and_combine): Call it.
4522 2013-11-21 Richard Biener <rguenther@suse.de>
4524 * tree-vect-loop-manip.c (vect_build_loop_niters,
4525 vect_generate_tmps_on_preheader): Move ...
4526 * tree-vect-loop.c (vect_build_loop_niters,
4527 vect_generate_tmps_on_preheader): ... here and simplify.
4528 (vect_transform_loop): Call them here and pass down results
4530 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4531 Get niter variables from caller.
4532 (vect_do_peeling_for_alignment): Likewise.
4533 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4534 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4537 2013-11-21 Richard Biener <rguenther@suse.de>
4539 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4540 nb_iterations_upper_bound by one.
4542 2013-11-21 Richard Biener <rguenther@suse.de>
4544 PR tree-optimization/59058
4545 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4546 (build_size_arg_loc): Apply niter adjustment here.
4547 (generate_memset_builtin): Adjust.
4548 (generate_memcpy_builtin): Likewise.
4549 (classify_partition): Do not use number_of_exit_cond_executions
4550 but record whether niter needs to be adjusted.
4552 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4554 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4557 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4560 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4561 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4562 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4563 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4564 sh_optimize_sett_clrt pass.o to extra_objs.
4566 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4568 * cfg.c (dump_edge_info): Remove redundant comment.
4569 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4570 EXIT_BLOCK_PTR in comment.
4571 (try_optimize_cfg): Likewise.
4572 * cfgrtl.c (last_bb_in_partition): Likewise.
4573 * cgraph.c (cgraph_node_cannot_return): Likewise.
4574 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4575 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4576 * ipa-split.c (consider_split): Likewise.
4577 * profile.c (find_spanning_tree): Likewise.
4578 * sched-int.h (common_sched_info_def.add_block): Likewise.
4579 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4580 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4581 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4582 in comments to now removed ENTRY_BLOCK_PTR macro.
4583 (tree_forwarder_block_p): Reword reference in comment to
4585 * tree-inline.c (copy_cfg_body): Reword references in comments to
4586 now removed ENTRY_BLOCK_PTR macro.
4587 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4588 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4589 a comma to the comment to clarify the meaning.
4591 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4593 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4595 (free_gimplify_stack): Add prototype.
4596 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4597 (struct gimplify_ctx): Relocate here.
4598 (gimplify_ctxp): Make static.
4599 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4600 list of struct gimplify_ctx.
4601 (push_gimplify_context): Add default parameters and allocate a struct
4603 (pop_gimplify_context): Free a struct back to the pool.
4604 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4605 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4606 use a local 'struct gimplify_ctx'.
4607 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4608 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4610 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4611 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4612 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4613 lower_omp_teams, execute_lower_omp): Likewise.
4614 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4615 * tree-inline.c (optimize_inline_calls): Likewise.
4617 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4619 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4620 (vsx_extract_<mode>): Likewise.
4621 (*vsx_extract_<mode>_one_le): New LE variant on
4622 *vsx_extract_<mode>_zero.
4623 (vsx_extract_v4sf): Adjust for little endian.
4625 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4627 PR rtl-optimization/59133
4628 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4630 (lra_create_new_reg_with_unique_value): Pass new argument value.
4631 (lra_emit_add, lra_emit_move): Ditto.
4632 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4633 (change_class): Rename to lra_change_class. Move to lra-int.h.
4634 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4636 (process_addr_reg, process_addr): Ditto.
4637 (curr_insn_transform): Ditto. Add check on old pseudo for
4639 * lra-int.h (lra_get_regno_hard_regno): Move below.
4640 (lra_change_class): Renamed change_class from lra.c.
4642 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4644 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4645 the children of a NULL pointer.
4647 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4649 * lra.c (lra): Set lra_in_progress before check_rtl call.
4650 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4651 adding clobber regs when LRA is running.
4653 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4655 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4656 restriction for ISA_MIPS32R2.
4657 (ISA_HAS_LXC1_SXC1): New macro.
4658 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4659 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4660 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4661 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4662 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4663 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4664 (*<ANYF:storex>_<P:mode>): Likewise.
4666 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4668 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4669 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4670 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4671 * config/mips/mips.md (recip_condition): Remove mode attribute.
4672 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4674 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4676 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4679 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4680 Make sure neg2_ovf is set before being used.
4682 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4684 * plugin.def: Add comment about register_callback and
4685 invoke_plugin_callbacks_full.
4687 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4688 Handle PLUGIN_INCLUDE_FILE event.
4690 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4692 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4693 allow subregs of TDmode in FPRs of smaller size in little-endian.
4694 (rs6000_split_multireg_move): When splitting an access to TDmode
4695 in FPRs, do not use simplify_gen_subreg.
4697 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4700 * real.c: Remove comment about decimal string conversion and
4702 (real_from_string): Use MPFR to convert nonzero decimal constant
4705 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4707 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4708 endianness of the D registers for the legacy encodings.
4710 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4712 PR rtl-optimization/54300
4713 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4714 outputs in a single-set are killed from the value chains.
4716 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4718 * cgraph.h (varpool_node): Add need_bounds_init field.
4719 * lto-cgraph.c (lto_output_varpool_node): Output
4720 need_bounds_init value.
4721 (input_varpool_node): Read need_bounds_init value.
4722 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4724 2013-11-20 Jan Hubicka <jh@suse.cz>
4726 * opts.c (finish_options): Imply -ffat-lto-objects with
4727 -fno-use-linker-plugin.
4728 * common.opt (fuse-linker-plugin): Add var.
4730 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4732 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4733 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4734 (gen_type_die_with_usage): Skip pointer bounds.
4735 (dwarf2out_global_decl): Likewise.
4737 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4739 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4742 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4745 * config/i386/i386.c (ix86_option_override_internal): Add missed
4746 argument prefix for 'ix86_fpmath'.
4747 * config/i386/ssemath.h: Add missed definition of
4748 TARGET_FPMATH_DEFAULT_P macros.
4750 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4751 Mike Stump <mikestump@comcast.net>
4752 Richard Sandiford <rdsandiford@googlemail.com>
4754 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4755 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4756 tree_fits_shwi_p or tree_fits_uhwi_p.
4757 * builtins.c (fold_builtin_powi): Likewise.
4758 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4760 * dbxout.c (dbxout_symbol): Likewise.
4761 * expr.c (expand_expr_real_1): Likewise.
4762 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4763 (fold_binary_loc): Likewise.
4764 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4765 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4766 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4767 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4768 * stor-layout.c (compute_record_mode): Likewise.
4769 * tree-cfg.c (verify_expr): Likewise.
4770 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4771 * tree-pretty-print.c (dump_array_domain): Likewise.
4772 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4773 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4774 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4775 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4776 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4777 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4778 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4779 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4780 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4781 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4782 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4783 (create_variable_info_for_1): Likewise.
4784 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4785 (vect_verify_datarefs_alignment): Likewise.
4786 (vect_analyze_data_ref_accesses): Likewise.
4787 (vect_prune_runtime_alias_test_list): Likewise.
4788 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4790 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4792 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4793 overflow. Use tree_to_shwi.
4795 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4797 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4798 HOST_WIDE_INTs when folding (x >> c) << c.
4800 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4801 Dominik Vogt <vogt@linux.vnet.ibm.com>
4803 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4804 int comparisons with an out of range condition code.
4805 (s390_optimize_nonescaping_tx): Skip empty BBs.
4806 Generate the new tbegin RTX when removing the FPR clobbers (with
4808 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4809 result before doing the retry calculations.
4810 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4812 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4813 the TDB setting part of an tbegin.
4814 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4815 ("tx_assist"): Set unused argument to an immediate zero instead of
4816 loading zero into a GPR and pass it as argument.
4817 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4818 Remove inline and related attributes.
4819 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4820 (__TM_is_illegal, __TM_is_footprint_exceeded)
4821 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4823 2013-11-20 Richard Biener <rguenther@suse.de>
4826 * lto-opts.c (lto_write_options): Write defaults only if
4827 they were not explicitely specified. Also write
4828 -ffp-contract default.
4829 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4831 (run_gcc): Pass through -ffp-contract.
4833 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4835 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4837 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4839 * config/aarch64/aarch64-builtins.c
4840 (aarch64_simd_itype): Remove.
4841 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4842 (VAR1): Use qualifiers.
4843 (aarch64_build_scalar_type): New.
4844 (aarch64_build_vector_type): Likewise.
4845 (aarch64_build_type): Likewise.
4846 (aarch64_init_simd_builtins): Refactor, remove special cases,
4847 consolidate main loop.
4848 (aarch64_simd_expand_args): Likewise.
4850 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4853 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4855 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4857 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4859 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4861 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4862 to "vec<>" instances.
4863 (build_pretty_printer): Register the vec<>* prettyprinter.
4865 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4867 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4868 (GdbSubprinter.handles_type): New.
4869 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4870 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4871 (GdbPrettyPrinters.add_printer): Remove in favor of...
4872 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4873 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4874 (GdbPrettyPrinters.__call__): Update search for subprinter
4875 to use handles_type method.
4876 (build_pretty_printer): Update registration of subprinters to
4877 use the new API above, supporting multiple spelling of each type,
4878 and allowing for future regex-based subprinters.
4880 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4882 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4883 V16QI vector splat case for little endian.
4885 2013-11-19 Jeff Law <law@redhat.com>
4887 * tree-ssa-threadedge.c (thread_across_edge): After threading
4888 through a joiner, allow threading a normal block requiring duplication.
4890 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4891 jump threading requests that would muck up the loop structures.
4893 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4894 * tree-ssa-threadupdate.h: Likewise.
4896 2013-11-19 Mike Stump <mikestump@comcast.net>
4898 * gdbinit.in: Add pmz to print out mpz values.
4900 2013-11-20 Jan Hubicka <jh@suse.cz>
4902 * common.opt (ffat-lto-objects): Disable by default.
4903 * doc/invoke.texi (fat-lto-objects): Update documentation.
4904 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4906 2013-11-19 Martin Jambor <mjambor@suse.cz>
4908 PR rtl-optimization/59099
4909 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4911 (ira): Move init_reg_equiv and call to
4912 split_live_ranges_for_shrink_wrap up, remove analyses around call
4913 to find_moveable_pseudos.
4915 2013-11-20 Alan Modra <amodra@gmail.com>
4917 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4918 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4919 to strict alignment on older processors when little-endian.
4920 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4923 2013-11-19 Teresa Johnson <tejohnson@google.com>
4925 * common/config/i386/i386-common.c: Enable
4926 -freorder-blocks-and-partition at -O2 and up for x86.
4927 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4928 * opts.c (finish_options): Only warn if
4929 -freorder-blocks-and-partition was set on command line.
4931 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4933 * final.c (final_scan_insn): Emit a label for the split
4934 cold function part. Label name is formed by suffixing
4935 the original function name with "cold".
4937 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4939 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4940 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4941 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4942 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4943 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4945 (EXIT_BLOCK_PTR): Likewise.
4946 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4947 (FOR_ALL_BB_FN): Update for renaming of
4948 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4950 * cfg.c (init_flow): Likewise.
4951 (check_bb_profile): Likewise.
4952 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4953 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4954 * cfghooks.c (account_profile_record): Likewise.
4955 * cfgloop.c (init_loops_structure): Likewise.
4956 * cgraphbuild.c (record_eh_tables): Likewise.
4957 (compute_call_stmt_bb_frequency): Likewise.
4958 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4959 * lto-streamer-in.c (input_cfg): Likewise.
4960 * predict.c (maybe_hot_frequency_p): Likewise.
4961 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4962 * tree-inline.c (initialize_cfun): Likewise.
4963 (copy_cfg_body): Likewise.
4964 (copy_body): Likewise.
4965 (tree_function_versioning): Likewise.
4967 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4968 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4969 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4970 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4971 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4972 (connect_traces): Likewise.
4973 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4974 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4975 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4977 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4979 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4980 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4981 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4982 (rotate_loop): Likewise.
4983 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4984 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4986 (alloc_aux_for_edges): Likewise.
4987 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4988 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4990 (compact_blocks): Likewise.
4991 (clear_edges): Likewise.
4992 * cfganal.c (single_pred_before_succ_order): Remove usage of
4993 ENTRY_BLOCK_PTR macro.
4994 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4995 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4996 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4997 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4998 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5000 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5001 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5003 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5004 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5005 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5006 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5007 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5008 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5010 (print_edge_list): Likewise.
5011 (create_edge_list): Likewise.
5012 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5013 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5015 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5017 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5018 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5019 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5020 (try_optimize_cfg): Likewise.
5021 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5022 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5023 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5024 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5025 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5026 (try_forward_edges): Likewise.
5027 (try_simplify_condjump): Likewise.
5028 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5029 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5030 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5031 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5033 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5034 (expand_gimple_tailcall): Likewise.
5035 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5036 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5037 (tidy_fallthru_edges): Likewise.
5038 (verify_flow_info): Likewise.
5039 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5040 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5041 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5042 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5043 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5044 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5045 (get_loop_body_in_dom_order): Likewise.
5046 (get_loop_body): Likewise.
5047 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5048 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5049 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5051 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5052 (fix_bb_placement): Likewise.
5053 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5054 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5055 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5056 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5058 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5059 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5060 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5061 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5063 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5064 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5065 (fixup_reorder_chain): Likewise.
5066 (relink_block_chain): Likewise.
5067 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5068 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5069 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5070 (force_one_exit_fallthru): Likewise.
5071 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5073 (rtl_verify_edges): Likewise.
5074 (commit_edge_insertions): Likewise.
5075 (commit_one_edge_insertion): Likewise.
5076 (rtl_split_edge): Likewise.
5077 (force_nonfallthru_and_redirect): Likewise.
5078 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5079 (skip_insns_after_block): Likewise.
5080 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5082 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5083 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5085 (contains_no_active_insn_p): Likewise.
5086 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5087 (entry_of_function): Likewise.
5088 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5089 (fixup_new_cold_bb): Likewise.
5090 (patch_jump_insn): Likewise.
5091 (try_redirect_by_replacing_jump): Likewise.
5092 (block_label): Likewise.
5093 (could_fall_through): Likewise.
5094 (can_fallthru): Likewise.
5095 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5096 ENTRY_BLOCK_PTR macro.
5097 (rebuild_cgraph_edges): Likewise.
5098 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5099 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5100 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5101 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5102 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5103 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5104 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5105 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5107 (reg_nonzero_bits_for_combine): Likewise.
5108 (set_nonzero_bits_and_sign_copies): Likewise.
5109 (combine_instructions): Likewise.
5110 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5112 (bypass_conditional_jumps): Likewise.
5113 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5114 (find_implicit_sets): Likewise.
5115 (cprop_jump): Likewise.
5116 * cse.c (cse_cc_succs): Likewise.
5117 (cse_find_path): Likewise.
5118 * df-problems.c (df_lr_confluence_0): Likewise.
5119 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5120 ENTRY_BLOCK_PTR macro.
5121 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5122 * dominance.c (iterate_fix_dominators): Remove usage of
5123 ENTRY_BLOCK_PTR macro.
5124 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5125 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5126 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5128 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5130 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5132 * domwalk.c (cmp_bb_postorder): Likewise.
5133 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5134 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5136 (sjlj_emit_function_enter): Likewise.
5137 * final.c (compute_alignments): Likewise.
5138 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5139 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5140 (reposition_prologue_and_epilogue_notes): Remove usage of
5141 EXIT_BLOCK_PTR macro.
5142 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5144 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5145 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5146 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5147 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5148 (compute_code_hoist_vbeinout): Likewise.
5149 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5150 (pre_expr_reaches_here_p_work): Likewise.
5151 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5152 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5154 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5155 ENTRY_BLOCK_PTR macro.
5156 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5158 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5159 ENTRY_BLOCK_PTR macro.
5160 * graphite-scop-detection.c (build_scops): Likewise.
5161 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5162 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5163 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5165 (unlink_bb_notes): Likewise.
5166 (create_check_block_twin): Likewise.
5167 (init_before_recovery): Likewise.
5168 (sched_extend_bb): Likewise.
5169 (priority): Likewise.
5170 * hw-doloop.c (reorder_loops): Likewise.
5171 (discover_loop): Likewise.
5172 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5173 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5174 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5175 (block_has_only_trap): Likewise.
5176 (cond_exec_find_if_block): Likewise.
5177 (merge_if_block): Likewise.
5178 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5179 ENTRY_BLOCK_PTR macro.
5180 (record_modified): Likewise.
5181 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5182 EXIT_BLOCK_PTR macro.
5183 (local_pure_const): Likewise.
5184 * ipa-split.c (split_function): Remove uses of macros:
5185 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5186 (find_split_points): Likewise.
5187 (consider_split): Likewise.
5188 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5189 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5190 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5191 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5192 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5193 ENTRY_BLOCK_PTR macro.
5194 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5195 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5196 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5197 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5198 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5200 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5202 (compute_farthest): Likewise.
5203 (compute_available): Likewise.
5204 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5205 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5207 (compute_earliest): Likewise.
5208 (compute_antinout_edge): Likewise.
5209 * loop-iv.c (simplify_using_initial_values): Remove usage of
5210 ENTRY_BLOCK_PTR macro.
5211 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5213 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5215 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5217 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5218 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5219 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5221 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5223 * lto-streamer-out.c (output_cfg): Likewise.
5224 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5226 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5227 * mode-switching.c (optimize_mode_switching): Likewise.
5228 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5229 * modulo-sched.c (rest_of_handle_sms): Likewise.
5230 (canon_loop): Likewise.
5231 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5232 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5233 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5234 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5236 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5237 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5238 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5239 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5240 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5241 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5242 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5243 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5244 (gimple_predict_edge): Likewise.
5245 (probably_never_executed): Likewise.
5246 * profile.c (find_spanning_tree): Remove uses of macros:
5247 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5248 (branch_prob): Likewise.
5249 (compute_branch_probabilities): Likewise.
5250 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5251 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5252 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5253 (set_bb_counts): Likewise.
5254 (correct_negative_edge_counts): Likewise.
5255 (get_exec_counts): Likewise.
5256 (instrument_values): Likewise.
5257 (instrument_edges): Likewise.
5258 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5260 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5261 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5262 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5263 (reg_to_stack): Likewise.
5264 * regs.h (REG_N_SETS): Likewise.
5265 * reload.c (find_dummy_reload): Likewise.
5266 (combine_reloads): Likewise.
5267 (push_reload): Likewise.
5268 * reload1.c (has_nonexceptional_receiver): Remove usage of
5269 EXIT_BLOCK_PTR macro.
5270 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5272 (find_basic_block): Likewise.
5273 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5274 (schedule_ebbs): Likewise.
5275 * sched-int.h (sel_sched_p): Likewise.
5276 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5278 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5279 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5281 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5282 (extend_rgns): Likewise.
5283 (find_single_block_region): Likewise.
5284 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5285 ENTRY_BLOCK_PTR macro.
5286 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5287 (sel_create_recovery_block): Likewise.
5288 (bb_ends_ebb_p): Likewise.
5289 (sel_bb_end): Likewise.
5290 (sel_bb_head): Likewise.
5291 (free_lv_sets): Likewise.
5292 (init_lv_sets): Likewise.
5293 (tidy_control_flow): Likewise.
5294 (maybe_tidy_empty_bb): Likewise.
5295 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5296 (_succ_iter_start): Likewise.
5297 (sel_bb_empty_or_nop_p): Likewise.
5298 (get_loop_exit_edges_unique_dests): Likewise.
5299 (inner_loop_header_p): Likewise.
5300 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5301 (find_block_for_bookkeeping): Likewise.
5302 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5303 (insert_store): Likewise.
5304 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5305 ENTRY_BLOCK_PTR macro.
5306 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5307 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5308 (gate_tm_init): Likewise.
5309 (tm_region_init): Likewise.
5310 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5311 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5312 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5313 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5315 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5316 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5318 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5320 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5322 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5324 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5325 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5326 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5327 (build_gimple_cfg): Likewise.
5328 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5329 (gimple_can_merge_blocks_p): Likewise.
5330 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5331 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5332 * tree-complex.c (update_parameter_components): Remove usage of
5333 ENTRY_BLOCK_PTR macro.
5334 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5335 EXIT_BLOCK_PTR macro.
5336 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5337 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5338 (delete_unreachable_blocks_update_callgraph): Likewise.
5339 (initialize_cfun): Likewise.
5340 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5341 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5342 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5343 * tree-into-ssa.c (update_ssa): Likewise.
5344 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5345 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5346 (rewrite_into_ssa): Likewise.
5347 (rewrite_debug_stmt_uses): Likewise.
5348 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5349 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5350 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5351 ENTRY_BLOCK_PTR macro.
5352 * tree-scalar-evolution.h (block_before_loop): Likewise.
5353 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5354 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5356 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5358 (propagate_dereference_distances): Remove uses of macros:
5359 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5360 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5362 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5363 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5364 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5365 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5366 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5367 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5368 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5369 (mark_control_dependent_edges_necessary): Remove uses of macros:
5370 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5371 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5372 ENTRY_BLOCK_PTR macro.
5373 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5374 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5375 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5376 (calculate_live_on_exit): Likewise.
5377 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5378 (loe_visit_block): Likewise.
5379 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5380 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5381 (live_on_entry): Likewise.
5382 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5383 EXIT_BLOCK_PTR macro.
5384 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5385 ENTRY_BLOCK_PTR macro.
5386 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5387 (bound_difference): Likewise.
5388 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5389 of EXIT_BLOCK_PTR macro.
5390 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5391 of ENTRY_BLOCK_PTR macro.
5392 * tree-ssa-math-opts.c (register_division_in): Likewise.
5393 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5394 * tree-ssa-pre.c (compute_avail): Likewise.
5395 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5396 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5397 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5398 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5399 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5401 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5402 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5403 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5404 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5405 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5406 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5407 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5408 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5409 (find_pdom): Likewise.
5410 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5411 * tree-stdarg.c (reachable_at_most_once): Likewise.
5412 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5413 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5414 (eliminate_tail_call): Likewise.
5415 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5417 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5418 * var-tracking.c (vt_initialize): Remove uses of macros:
5419 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5420 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5421 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5422 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5424 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5426 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5427 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5428 of EXIT_BLOCK_PTR macro.
5429 * config/arm/arm.c (require_pic_register): Remove usage of
5430 ENTRY_BLOCK_PTR macro.
5431 (arm_r3_live_at_start_p): Likewise.
5432 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5433 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5434 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5435 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5436 ENTRY_BLOCK_PTR macro.
5437 * config/i386/i386.c (ix86_count_insn): Likewise.
5438 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5439 (ix86_pad_short_function): Likewise.
5440 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5441 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5442 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5443 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5444 (ix86_expand_epilogue): Likewise.
5445 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5446 (ia64_expand_prologue): Likewise.
5448 2013-11-19 Catherine Moore <clm@codesourcery.com>
5450 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5451 * config/mips/mips.opt (mfix-rm7000): New option.
5452 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5453 * config/mips/mips.c (mips_reorg_process_insns): Disable
5454 noreorder for TARGET_FIX_RM7000.
5456 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5458 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5460 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5462 * config/arm/arm.c (arm_new_rtx_costs):
5463 Handle narrow mode add-shifts properly.
5464 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5465 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5468 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5470 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5472 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5474 * config/rs6000/vector.md ("mov<mode>"): Do not call
5475 rs6000_emit_le_vsx_move to move into or out of GPRs.
5476 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5477 source and destination are not GPR hard regs.
5479 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5481 * basic-block.h (n_edges_for_function): Rename macro to...
5482 (n_edges_for_fn): ...this.
5483 (n_edges): Eliminate macro as work towards making uses of
5486 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5487 to "n_edges_for_fn".
5489 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5490 (clear_edges): Likewise.
5491 (free_edge): Likewise.
5492 * cfghooks.c (dump_flow_info): Likewise.
5493 * cprop.c (is_too_expensive): Likewise.
5494 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5495 * gcse.c (is_too_expensive): Likewise.
5496 (prune_insertions_deletions): Likewise.
5497 * mcf.c (create_fixup_graph): Likewise.
5498 * sched-rgn.c (haifa_find_rgns): Likewise.
5499 * tree-cfg.c (gimple_dump_cfg): Likewise.
5500 * var-tracking.c (variable_tracking_main_1): Likewise.
5502 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5504 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5507 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5509 * config/aarch64/aarch64.md
5510 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5512 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5514 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5516 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5518 * varasm.c (align_variable): Give error instead of warning for
5519 unsupported alignment.
5520 (assemble_noswitch_variable): Likewise.
5522 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5524 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5527 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5529 * loop-doloop.c (doloop_optimize_loops): Remove unused
5530 loop iterator argument from FOR_EACH_LOOP.
5532 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5534 Convert gimple types from a union to C++ inheritance.
5535 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5536 * coretypes.h (union gimple_statement_d): Remove declaration.
5537 (gimple): Convert from being a "union gimple_statement_d *"
5538 to a "struct gimple_statement_base *".
5539 (const_gimple): Likewise (with "const").
5540 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5541 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5542 * gimple-pretty-print.c (debug): Change parameter from a
5543 "gimple_statement_d &" to a "gimple_statement_base &".
5544 (debug): Change parameter from a "gimple_statement_d *" to
5545 a "gimple_statement_base *".
5546 * gimple-pretty-print.h (debug): Update declarations as above.
5547 * gimple.c (gimple_alloc_stat): Update for renaming of
5548 ggc_alloc_cleared_gimple_statement_d_stat to
5549 ggc_alloc_cleared_gimple_statement_stat.
5550 * gimple.h: Include "is-a.h" for use by is_a_helper
5551 specializations in followup autogenerated patch.
5552 (struct gimple statement_base): Make this type usable as a base
5553 class by adding "desc", "tag" and "variable_size" to GTY, thus
5554 using opting-in to gengtype's support for simple inheritance.
5555 (gimple_statement_with_ops_base): Convert to a subclass of
5556 gimple_statement_base, dropping initial "gsbase" field. Note that
5557 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5558 (gimple_statement_with_ops): Convert to a subclass of
5559 gimple_statement_with_ops_base, dropping initial "opbase" field.
5560 Add tag value to GTY marking. Update marking of op field to
5561 reflect how num_ops field is accessed via inheritance.
5562 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5563 gimple_statement_with_ops_base, dropping initial "opbase" field.
5564 Add tag value to GTY marking.
5565 (gimple_statement_with_memory_ops): Convert to a subclass of
5566 public gimple_statement_with_memory_ops_base, dropping initial
5567 "membase" field. Add tag value to GTY marking. Update marking
5568 of op field to reflect how num_ops field is accessed via inheritance.
5569 (gimple_statement_call): Analogous changes that also update the
5570 marking of the "u" union.
5571 (gimple_statement_omp): Convert to a subclass of
5572 gimple_statement_base, dropping initial "gsbase" field, adding
5573 tag value to GTY marking.
5574 (gimple_statement_bind): Likewise.
5575 (gimple_statement_catch): Likewise.
5576 (gimple_statement_eh_filter): Likewise.
5577 (gimple_statement_eh_else): Likewise.
5578 (gimple_statement_eh_mnt): Likewise.
5579 (gimple_statement_phi): Likewise.
5580 (gimple_statement_eh_ctrl): Likewise.
5581 (gimple_statement_try): Likewise.
5582 (gimple_statement_wce): Likewise.
5583 (gimple_statement_asm): Convert to a subclass of
5584 gimple_statement_with_memory_ops_base, dropping initial
5585 "membase" field, adding tag value to GTY marking, and updating
5586 marking of op field.
5587 (gimple_statement_omp_critical): Convert to a subclass of
5588 gimple_statement_omp, dropping initial "omp" field, adding tag
5589 value to GTY marking.
5590 (gimple_statement_omp_for): Likewise.
5591 (gimple_statement_omp_parallel): Likewise.
5592 (gimple_statement_omp_task): Convert to a subclass of
5593 gimple_statement_omp_parallel, dropping initial "par" field,
5594 adding tag value to GTY marking.
5595 (gimple_statement_omp_sections): Convert to a subclass of
5596 gimple_statement_omp, dropping initial "omp" field, adding
5597 tag value to GTY marking.
5598 (gimple_statement_omp_continue): Convert to a subclass of
5599 gimple_statement_base, dropping initial "gsbase" field, adding
5600 tag value to GTY marking.
5601 (gimple_statement_omp_single): Convert to a subclass of
5602 gimple_statement_omp, dropping initial "omp" field, adding
5603 tag value to GTY marking.
5604 (gimple_statement_omp_atomic_load): Convert to a subclass of
5605 gimple_statement_base, dropping initial "gsbase" field, adding
5606 tag value to GTY marking.
5607 (gimple_statement_omp_atomic_store): Convert to a subclass of
5608 gimple_statement_base, dropping initial "gsbase" field, adding
5609 tag value to GTY marking.
5610 (gimple_statement_transaction): Convert to a subclass of
5611 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5612 field, adding tag value to GTY marking.
5613 (union gimple_statement_d): Remove.
5614 * system.h (CONST_CAST_GIMPLE): Update to use
5615 "struct gimple_statement_base *" rather than
5616 "union gimple_statement_d *".
5617 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5618 gimple_statement_d to gimple_statement_base.
5620 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5621 (gimple_set_use_ops): Port from union to usage of as_a.
5622 (gimple_set_vuse): Likewise.
5623 (gimple_set_vdef): Likewise.
5624 (gimple_call_internal_fn): Port from union to a static_cast,
5625 given that the type has already been asserted.
5626 (gimple_omp_body_ptr): Port from unchecked union usage to
5628 (gimple_omp_set_body): Likewise.
5630 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5631 gimple types to a true class hierarchy.
5632 (update_call_edge_frequencies): Likewise.
5633 (gsi_insert_seq_nodes_before): Likewise.
5634 (gsi_insert_seq_nodes_after): Likewise.
5635 (gsi_split_seq_after): Likewise.
5636 (gsi_set_stmt): Likewise.
5637 (gsi_split_seq_before): Likewise.
5638 (gsi_remove): Likewise.
5639 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5640 (gsi_next): Likewise.
5641 (gsi_prev): Likewise.
5642 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5643 * gimple-ssa.h (gimple_vuse_op): Likewise.
5644 (gimple_vdef_op): Likewise.
5645 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5646 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5647 * gimple.c (gimple_set_code): Likewise.
5648 (gimple_alloc_stat): Likewise.
5649 (gimple_set_subcode): Likewise.
5650 (gimple_build_call_internal_1): Likewise.
5651 (gimple_check_failed): Likewise.
5652 (gimple_call_flags): Likewise.
5653 (gimple_set_bb): Likewise.
5654 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5655 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5656 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5657 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5658 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5659 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5660 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5661 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5662 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5663 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5664 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5665 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5666 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5667 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5668 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5669 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5670 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5671 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5672 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5673 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5674 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5675 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5676 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5677 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5678 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5679 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5681 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5683 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5685 (is_a_helper <const gimple_statement_omp_atomic_store>
5686 (const_gimple)): Likewise.
5687 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5689 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5691 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5693 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5695 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5697 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5699 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5701 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5702 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5704 (gimple_seq_last): Update for conversion of gimple types to a true
5706 (gimple_seq_set_last): Likewise.
5707 (gimple_code): Likewise.
5708 (gimple_bb): Likewise.
5709 (gimple_block): Likewise.
5710 (gimple_set_block): Likewise.
5711 (gimple_location): Likewise.
5712 (gimple_location_ptr): Likewise.
5713 (gimple_set_location): Likewise.
5714 (gimple_no_warning_p): Likewise.
5715 (gimple_set_no_warning): Likewise.
5716 (gimple_set_visited): Likewise.
5717 (gimple_visited_p): Likewise.
5718 (gimple_set_plf): Likewise.
5719 (gimple_plf): Likewise.
5720 (gimple_set_uid): Likewise.
5721 (gimple_uid): Likewise.
5722 (gimple_init_singleton): Likewise.
5723 (gimple_modified_p): Likewise.
5724 (gimple_set_modified): Likewise.
5725 (gimple_expr_code): Likewise.
5726 (gimple_has_volatile_ops): Likewise.
5727 (gimple_set_has_volatile_ops): Likewise.
5728 (gimple_omp_subcode): Likewise.
5729 (gimple_omp_set_subcode): Likewise.
5730 (gimple_omp_return_set_nowait): Likewise.
5731 (gimple_omp_section_set_last): Likewise.
5732 (gimple_omp_parallel_set_combined_p): Likewise.
5733 (gimple_omp_atomic_set_need_value): Likewise.
5734 (gimple_omp_atomic_set_seq_cst): Likewise.
5735 (gimple_num_ops): Likewise.
5736 (gimple_set_num_ops): Likewise.
5737 (gimple_assign_nontemporal_move_p): Likewise.
5738 (gimple_assign_set_nontemporal_move): Likewise.
5739 (gimple_assign_rhs_code): Likewise.
5740 (gimple_assign_set_rhs_code): Likewise.
5741 (gimple_call_internal_p): Likewise.
5742 (gimple_call_with_bounds_p): Likewise.
5743 (gimple_call_set_with_bounds): Likewise.
5744 (gimple_call_set_tail): Likewise.
5745 (gimple_call_tail_p): Likewise.
5746 (gimple_call_set_return_slot_opt): Likewise.
5747 (gimple_call_return_slot_opt_p): Likewise.
5748 (gimple_call_set_from_thunk): Likewise.
5749 (gimple_call_from_thunk_p): Likewise.
5750 (gimple_call_set_va_arg_pack): Likewise.
5751 (gimple_call_va_arg_pack_p): Likewise.
5752 (gimple_call_set_nothrow): Likewise.
5753 (gimple_call_set_alloca_for_var): Likewise.
5754 (gimple_call_alloca_for_var_p): Likewise.
5755 (gimple_call_copy_flags): Likewise.
5756 (gimple_cond_code): Likewise.
5757 (gimple_cond_set_code): Likewise.
5758 (gimple_cond_make_false): Likewise.
5759 (gimple_cond_make_true): Likewise.
5760 (gimple_asm_volatile_p): Likewise.
5761 (gimple_asm_set_volatile): Likewise.
5762 (gimple_asm_set_input): Likewise.
5763 (gimple_asm_input_p): Likewise.
5764 (gimple_try_kind): Likewise.
5765 (gimple_try_set_kind): Likewise.
5766 (gimple_try_catch_is_cleanup): Likewise.
5767 (gimple_try_set_catch_is_cleanup): Likewise.
5768 (gimple_wce_cleanup_eh_only): Likewise.
5769 (gimple_wce_set_cleanup_eh_only): Likewise.
5770 (gimple_debug_bind_p): Likewise.
5771 (gimple_debug_source_bind_p): Likewise.
5772 (gimple_omp_for_set_kind): Likewise.
5773 (gimple_omp_for_set_combined_p): Likewise.
5774 (gimple_omp_for_set_combined_into_p): Likewise.
5775 (gimple_omp_target_set_kind): Likewise.
5776 (gimple_transaction_subcode): Likewise.
5777 (gimple_transaction_set_subcode): Likewise.
5778 (gimple_predict_predictor): Likewise.
5779 (gimple_predict_set_predictor): Likewise.
5780 (gimple_predict_outcome): Likewise.
5781 (gimple_predict_set_outcome): Likewise.
5782 (gimple_transaction_set_label): Likewise.
5783 (gimple_transaction_set_body): Likewise.
5784 (gimple_transaction_label_ptr): Likewise.
5785 (gimple_transaction_label): Likewise.
5786 (gimple_transaction_body_ptr): Likewise.
5787 (gimple_omp_continue_set_control_use): Likewise.
5788 (gimple_omp_continue_control_use_ptr): Likewise.
5789 (gimple_omp_continue_control_use): Likewise.
5790 (gimple_omp_continue_set_control_def): Likewise.
5791 (gimple_omp_continue_control_def_ptr): Likewise.
5792 (gimple_omp_continue_control_def): Likewise.
5793 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5794 (gimple_omp_atomic_load_rhs): Likewise.
5795 (gimple_omp_atomic_load_set_rhs): Likewise.
5796 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5797 (gimple_omp_atomic_load_lhs): Likewise.
5798 (gimple_omp_atomic_load_set_lhs): Likewise.
5799 (gimple_omp_atomic_store_val_ptr): Likewise.
5800 (gimple_omp_atomic_store_val): Likewise.
5801 (gimple_omp_atomic_store_set_val): Likewise.
5802 (gimple_omp_for_cond): Likewise.
5803 (gimple_omp_for_set_cond): Likewise.
5804 (gimple_omp_sections_set_control): Likewise.
5805 (gimple_omp_sections_control_ptr): Likewise.
5806 (gimple_omp_sections_control): Likewise.
5807 (gimple_omp_sections_set_clauses): Likewise.
5808 (gimple_omp_sections_clauses_ptr): Likewise.
5809 (gimple_omp_sections_clauses): Likewise.
5810 (gimple_omp_teams_set_clauses): Likewise.
5811 (gimple_omp_teams_clauses_ptr): Likewise.
5812 (gimple_omp_teams_clauses): Likewise.
5813 (gimple_omp_target_set_data_arg): Likewise.
5814 (gimple_omp_target_data_arg_ptr): Likewise.
5815 (gimple_omp_target_data_arg): Likewise.
5816 (gimple_omp_target_set_child_fn): Likewise.
5817 (gimple_omp_target_child_fn_ptr): Likewise.
5818 (gimple_omp_target_child_fn): Likewise.
5819 (gimple_omp_target_set_clauses): Likewise.
5820 (gimple_omp_target_clauses_ptr): Likewise.
5821 (gimple_omp_target_clauses): Likewise.
5822 (gimple_omp_single_set_clauses): Likewise.
5823 (gimple_omp_single_clauses_ptr): Likewise.
5824 (gimple_omp_single_clauses): Likewise.
5825 (gimple_omp_task_set_arg_align): Likewise.
5826 (gimple_omp_task_arg_align_ptr): Likewise.
5827 (gimple_omp_task_arg_align): Likewise.
5828 (gimple_omp_task_set_arg_size): Likewise.
5829 (gimple_omp_task_arg_size_ptr): Likewise.
5830 (gimple_omp_task_arg_size): Likewise.
5831 (gimple_omp_task_set_copy_fn): Likewise.
5832 (gimple_omp_task_copy_fn_ptr): Likewise.
5833 (gimple_omp_task_copy_fn): Likewise.
5834 (gimple_omp_task_set_data_arg): Likewise.
5835 (gimple_omp_task_data_arg_ptr): Likewise.
5836 (gimple_omp_task_data_arg): Likewise.
5837 (gimple_omp_task_set_child_fn): Likewise.
5838 (gimple_omp_task_child_fn_ptr): Likewise.
5839 (gimple_omp_task_child_fn): Likewise.
5840 (gimple_omp_task_set_clauses): Likewise.
5841 (gimple_omp_task_clauses_ptr): Likewise.
5842 (gimple_omp_task_clauses): Likewise.
5843 (gimple_omp_parallel_set_data_arg): Likewise.
5844 (gimple_omp_parallel_data_arg_ptr): Likewise.
5845 (gimple_omp_parallel_data_arg): Likewise.
5846 (gimple_omp_parallel_set_child_fn): Likewise.
5847 (gimple_omp_parallel_child_fn_ptr): Likewise.
5848 (gimple_omp_parallel_child_fn): Likewise.
5849 (gimple_omp_parallel_set_clauses): Likewise.
5850 (gimple_omp_parallel_clauses_ptr): Likewise.
5851 (gimple_omp_parallel_clauses): Likewise.
5852 (gimple_omp_for_set_pre_body): Likewise.
5853 (gimple_omp_for_pre_body_ptr): Likewise.
5854 (gimple_omp_for_set_incr): Likewise.
5855 (gimple_omp_for_incr_ptr): Likewise.
5856 (gimple_omp_for_incr): Likewise.
5857 (gimple_omp_for_set_final): Likewise.
5858 (gimple_omp_for_final_ptr): Likewise.
5859 (gimple_omp_for_final): Likewise.
5860 (gimple_omp_for_set_initial): Likewise.
5861 (gimple_omp_for_initial_ptr): Likewise.
5862 (gimple_omp_for_initial): Likewise.
5863 (gimple_omp_for_set_index): Likewise.
5864 (gimple_omp_for_index_ptr): Likewise.
5865 (gimple_omp_for_index): Likewise.
5866 (gimple_omp_for_collapse): Likewise.
5867 (gimple_omp_for_set_clauses): Likewise.
5868 (gimple_omp_for_clauses_ptr): Likewise.
5869 (gimple_omp_for_clauses): Likewise.
5870 (gimple_omp_critical_set_name): Likewise.
5871 (gimple_omp_critical_name_ptr): Likewise.
5872 (gimple_omp_critical_name): Likewise.
5873 (gimple_eh_dispatch_set_region): Likewise.
5874 (gimple_eh_dispatch_region): Likewise.
5875 (gimple_resx_set_region): Likewise.
5876 (gimple_resx_region): Likewise.
5877 (gimple_phi_set_arg): Likewise.
5878 (gimple_phi_arg): Likewise.
5879 (gimple_phi_set_result): Likewise.
5880 (gimple_phi_result_ptr): Likewise.
5881 (gimple_phi_result): Likewise.
5882 (gimple_phi_num_args): Likewise.
5883 (gimple_phi_capacity): Likewise.
5884 (gimple_wce_set_cleanup): Likewise.
5885 (gimple_wce_cleanup_ptr): Likewise.
5886 (gimple_try_set_cleanup): Likewise.
5887 (gimple_try_set_eval): Likewise.
5888 (gimple_try_cleanup_ptr): Likewise.
5889 (gimple_try_eval_ptr): Likewise.
5890 (gimple_eh_else_set_e_body): Likewise.
5891 (gimple_eh_else_set_n_body): Likewise.
5892 (gimple_eh_else_e_body_ptr): Likewise.
5893 (gimple_eh_else_n_body_ptr): Likewise.
5894 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5895 (gimple_eh_must_not_throw_fndecl): Likewise.
5896 (gimple_eh_filter_set_failure): Likewise.
5897 (gimple_eh_filter_set_types): Likewise.
5898 (gimple_eh_filter_failure_ptr): Likewise.
5899 (gimple_eh_filter_types_ptr): Likewise.
5900 (gimple_eh_filter_types): Likewise.
5901 (gimple_catch_set_handler): Likewise.
5902 (gimple_catch_set_types): Likewise.
5903 (gimple_catch_handler_ptr): Likewise.
5904 (gimple_catch_types_ptr): Likewise.
5905 (gimple_catch_types): Likewise.
5906 (gimple_asm_string): Likewise.
5907 (gimple_asm_set_label_op): Likewise.
5908 (gimple_asm_label_op): Likewise.
5909 (gimple_asm_set_clobber_op): Likewise.
5910 (gimple_asm_clobber_op): Likewise.
5911 (gimple_asm_set_output_op): Likewise.
5912 (gimple_asm_output_op_ptr): Likewise.
5913 (gimple_asm_output_op): Likewise.
5914 (gimple_asm_set_input_op): Likewise.
5915 (gimple_asm_input_op_ptr): Likewise.
5916 (gimple_asm_input_op): Likewise.
5917 (gimple_asm_nlabels): Likewise.
5918 (gimple_asm_nclobbers): Likewise.
5919 (gimple_asm_noutputs): Likewise.
5920 (gimple_asm_ninputs): Likewise.
5921 (gimple_bind_set_block): Likewise.
5922 (gimple_bind_block): Likewise.
5923 (gimple_bind_add_seq): Likewise.
5924 (gimple_bind_add_stmt): Likewise.
5925 (gimple_bind_set_body): Likewise.
5926 (gimple_bind_body_ptr): Likewise.
5927 (gimple_bind_append_vars): Likewise.
5928 (gimple_bind_set_vars): Likewise.
5929 (gimple_bind_vars): Likewise.
5930 (gimple_call_clobber_set): Likewise.
5931 (gimple_call_use_set): Likewise.
5932 (gimple_call_set_internal_fn): Likewise.
5933 (gimple_call_set_fntype): Likewise.
5934 (gimple_call_fntype): Likewise.
5935 (gimple_omp_return_lhs_ptr): Likewise.
5936 (gimple_omp_return_lhs): Likewise.
5937 (gimple_omp_return_set_lhs): Likewise.
5938 (gimple_omp_taskreg_set_data_arg): Likewise.
5939 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5940 (gimple_omp_taskreg_data_arg): Likewise.
5941 (gimple_omp_taskreg_set_child_fn): Likewise.
5942 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5943 (gimple_omp_taskreg_child_fn): Likewise.
5944 (gimple_omp_taskreg_set_clauses): Likewise.
5945 (gimple_omp_taskreg_clauses_ptr): Likewise.
5946 (gimple_omp_taskreg_clauses): Likewise.
5947 (gimple_vuse): Likewise.
5948 (gimple_vdef): Likewise.
5949 (gimple_vuse_ptr): Likewise.
5950 (gimple_vdef_ptr): Likewise.
5951 * tree-inline.c (copy_debug_stmt): Likewise.
5952 * tree-phinodes.c (make_phi_node): Likewise.
5954 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5955 (is_a_helper <gimple_statement_with_ops>::test): New.
5956 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5957 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5959 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5960 access to use of as_a.
5961 * gimple.c (gimple_build_asm_1): Likewise.
5962 (gimple_build_try): Likewise. Also, return a specific subclass
5963 rather than just gimple.
5964 (gimple_build_resx): Port from union access to use of as_a.
5965 (gimple_build_eh_dispatch): Likewise.
5966 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5967 now that gengtype no longer provides a typed allocator function.
5968 (gimple_copy): Likewise.
5969 * gimple.h (gimple_build_try): Return a specific subclass rather
5971 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5972 with subclass access by making use of new return type of
5974 * tree-phinodes.c: (allocate_phi_node): Return a
5975 "gimple_statement_phi *" rather than just a gimple.
5976 (resize_phi_node): Likewise.
5977 (make_phi_node): Replace union access with subclass access by
5978 making use of new return type of allocate_phi_node.
5979 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5980 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5982 (remove_phi_args): Update for change to remove_phi_arg_num.
5984 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5985 code field to reflect inheritance, rather than embedding of
5986 the base gimple type.
5988 2013-11-19 Richard Biener <rguenther@suse.de>
5990 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5991 and destructor and make fel_next a member function.
5992 (fel_next): Transform into ...
5993 (loop_iterator::next): ... this.
5994 (fel_init): Transform into ...
5995 (loop_iterator::loop_iterator): ... this.
5996 (loop_iterator::~loop_iterator): New.
5997 (FOR_EACH_LOOP): Remove loop-iterator argument.
5998 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5999 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6000 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6001 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6002 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6003 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6004 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6005 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6006 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6007 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6008 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6009 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6010 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6011 FOR_EACH_LOOP_BREAK with break.
6013 2013-11-19 Richard Biener <rguenther@suse.de>
6015 PR tree-optimization/59164
6016 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6018 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6019 whether we can create an epilogue loop to reflect thecases where
6022 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6024 * graphite-sese-to-poly.c: Include expr.h.
6026 2013-11-19 Richard Biener <rguenther@suse.de>
6029 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6030 loads into stmts that may clobber it.
6032 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6034 * cgraphunit.c (symtab_terminator): New variable.
6035 (queued_nodes): Renamed from first. Use symtab_terminator as
6037 (analyze_functions): Adjust accordingly.
6038 (cgraph_process_new_functions): Return void.
6039 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6041 2013-11-19 Marek Polacek <polacek@redhat.com>
6043 * opts.c (common_handle_option): Add -fsanitize=null option.
6044 Turn off -fdelete-null-pointer-checks option when doing the
6045 NULL pointer checking.
6046 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6047 * tree-pass.h (make_pass_ubsan): Declare.
6048 (make_pass_sanopt): Declare.
6049 * timevar.def (TV_TREE_UBSAN): New timevar.
6050 * passes.def: Add pass_sanopt and pass_ubsan.
6051 * ubsan.h (ubsan_null_ckind): New enum.
6052 (ubsan_mismatch_data): New struct.
6053 (ubsan_expand_null_ifn): Declare.
6054 (ubsan_create_data): Adjust declaration.
6055 (ubsan_type_descriptor): Likewise.
6056 * asan.c: Include "ubsan.h".
6057 (pass_data_sanopt): New pass.
6058 (execute_sanopt): New function.
6059 (gate_sanopt): Likewise.
6060 (make_pass_sanopt): Likewise.
6061 (class pass_sanopt): New class.
6062 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6063 gimple-iterator.h and cfgloop.h.
6064 (PROB_VERY_UNLIKELY): Define.
6065 (tree_type_map_hash): New function.
6066 (ubsan_type_descriptor): Add new parameter.
6067 Improve type name generation.
6068 (ubsan_create_data): Add new parameter. Add pointer data into
6070 (ubsan_expand_null_ifn): New function.
6071 (instrument_member_call): Likewise.
6072 (instrument_mem_ref): Likewise.
6073 (instrument_null): Likewise.
6074 (ubsan_pass): Likewise.
6075 (gate_ubsan): Likewise.
6076 (make_pass_ubsan): Likewise.
6077 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6078 (class pass_ubsan): New class.
6079 (pass_data_ubsan): New pass.
6080 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6081 * internal-fn.c (expand_UBSAN_NULL): New function.
6082 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6083 even when !flag_toplevel_reorder.
6084 * internal-fn.def (UBSAN_NULL): New.
6086 2013-11-19 Jan Hubicka <jh@suse.cz>
6088 * cgraph.c (cgraph_create_indirect_edge): Use
6089 get_polymorphic_call_info.
6090 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6091 maybe_in_construction and maybe_derived_type.
6092 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6093 (ipa_dummy_polymorphic_call_context): New global var.
6094 (possible_polymorphic_call_targets): Add context paramter.
6095 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6096 (possible_polymorphic_call_target_p): Likewise.
6097 (get_polymorphic_call_info): New function.
6098 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6099 (add_type_duplicate): Remove forgotten debug output.
6100 (method_class_type): Add sanity check.
6101 (maybe_record_node): Add FINALP parameter.
6102 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6103 by info by get_binfo_at_offset.
6104 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6105 parameters; pass them to record-binfo.
6106 (polymorphic_call_target_d): Add context and FINAL.
6107 (polymorphic_call_target_hasher::hash): Hash context.
6108 (polymorphic_call_target_hasher::equal): Compare context.
6109 (free_polymorphic_call_targets_hash):
6110 (get_class_context): New function.
6111 (contains_type_p): New function.
6112 (get_polymorphic_call_info): New function.
6113 (walk_bases): New function.
6114 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6115 (dump_possible_polymorphic_call_targets): Dump context.
6116 (possible_polymorphic_call_target_p): Add context.
6117 (update_type_inheritance_graph): Update comment.s
6118 (ipa_set_jf_known_type): Assert that compoentn type is known.
6119 (ipa_note_param_call): Do not tamper with offsets.
6120 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6122 (update_indirect_edges_after_inlining): Likewise.
6123 (ipa_write_indirect_edge_info): Stream new fields.
6124 (ipa_read_indirect_edge_info): Stream in new fields.
6126 2013-11-19 Jan Hubicka <jh@suse.cz>
6128 * tree-pretty-print.c (dump_generic_node): Print class type of
6131 2013-11-19 Joey Ye <joey.ye@arm.com>
6133 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6134 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6136 * config/arm/arm.c (arm_option_override): By default disable
6137 -marm-pic-data-is-text-relative.
6138 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6139 (arm_assemble_integer): Likewise.
6140 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6141 New macro to initialize -marm-pic-data-is-text-relative.
6143 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6145 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6146 (address_cost_data): New field.
6147 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6148 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6150 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6152 * config/aarch64/aarch64.md: Remove v8type from all insns.
6154 2013-11-19 Richard Biener <rguenther@suse.de>
6156 PR tree-optimization/57517
6157 * tree-predcom.c (combinable_refs_p): Verify the combination
6158 is always executed when the refs are.
6160 2013-11-19 Jeff Law <law@redhat.com>
6162 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6163 (copy_phi_arg_into_existing_phi): New function.
6164 (any_remaining_duplicated_blocks): Likewise.
6165 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6166 blocks on a jump threading path.
6168 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6169 thread through a joiner which has the latch edge.
6171 2013-11-19 Jan Hubicka <jh@suse.cz>
6173 * md.texi (setmem): Document new parameter.
6174 * optabs.c (maybe_gen_insn): Support 9 operands.
6175 * builtins.c (determine_block_size): Add probable_max_size;
6176 support anti-ranges.
6177 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6179 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6180 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6182 * expr.h (emit_block_move_hints, clear_storage_hints,
6183 set_storage_via_setmem): Update prototype.
6184 * i386.md (setmem, movmem patterns): Add 9th operand.
6185 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6186 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6187 argument; pass it to decide_alg.
6189 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6191 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6192 (n_basic_blocks_for_fn): ...this.
6194 (n_basic_blocks): Eliminate macro as work towards making uses of
6197 * cfgloop.c (init_loops_structure): Update for renaming of
6198 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6199 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6200 * ipa-utils.c (ipa_merge_profiles): Likewise.
6201 * lto-streamer-in.c (make_new_block): Likewise.
6202 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6203 (dump_function_to_file): Likewise.
6205 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6206 macro with "n_basic_blocks_for_fn (cfun)".
6207 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6208 (duplicate_computed_gotos): Likewise.
6209 (reorder_basic_blocks): Likewise.
6210 * bt-load.c (augment_live_range): Likewise.
6211 * cfg.c (expunge_block): Likewise.
6212 (compact_blocks): Likewise.
6213 * cfganal.c (single_pred_before_succ_order): Likewise.
6214 (compute_idf): Likewise.
6215 (flow_dfs_compute_reverse_init): Likewise.
6216 (pre_and_rev_post_order_compute): Likewise.
6217 (pre_and_rev_post_order_compute_fn): Likewise.
6218 (inverted_post_order_compute): Likewise.
6219 (post_order_compute): Likewise.
6220 (print_edge_list): Likewise.
6221 (find_unreachable_blocks): Likewise.
6222 (mark_dfs_back_edges): Likewise.
6223 * cfgcleanup.c (try_optimize_cfg): Likewise.
6224 (try_forward_edges): Likewise.
6225 * cfghooks.c (dump_flow_info): Likewise.
6226 * cfgloop.c (verify_loop_structure): Likewise.
6227 (get_loop_body): Likewise.
6228 (flow_loops_find): Likewise.
6229 * cfgloopmanip.c (add_loop): Likewise.
6230 (remove_path): Likewise.
6231 (find_path): Likewise.
6232 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6233 (rtl_verify_bb_layout): Likewise.
6234 (entry_of_function): Likewise.
6235 (rtl_create_basic_block): Likewise.
6236 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6237 * cprop.c (one_cprop_pass): Likewise.
6238 (is_too_expensive): Likewise.
6239 * df-core.c (df_compute_cfg_image): Likewise.
6240 (df_compact_blocks): Likewise.
6241 (df_worklist_dataflow_doublequeue): Likewise.
6242 * dominance.c (calculate_dominance_info): Likewise.
6243 (calc_dfs_tree): Likewise.
6244 (calc_dfs_tree_nonrec): Likewise.
6245 (init_dom_info): Likewise.
6246 * domwalk.c (cmp_bb_postorder): Likewise.
6247 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6248 (generate_setjmp_warnings): Likewise.
6249 * fwprop.c (build_single_def_use_links): Likewise.
6250 * gcse.c (is_too_expensive): Likewise.
6251 (one_code_hoisting_pass): Likewise.
6252 (one_pre_gcse_pass): Likewise.
6253 * graphite.c (graphite_initialize): Likewise.
6254 * haifa-sched.c (haifa_sched_init): Likewise.
6255 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6256 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6257 * ira-build.c (ira_build): Likewise.
6258 * lcm.c (compute_nearerout): Likewise.
6259 (compute_available): Likewise.
6260 (compute_laterin): Likewise.
6261 (compute_antinout_edge): Likewise.
6262 * lra-lives.c (lra_create_live_ranges): Likewise.
6263 * lra.c (has_nonexceptional_receiver): Likewise.
6264 * mcf.c (create_fixup_graph): Likewise.
6265 * profile.c (branch_prob): Likewise.
6266 * reg-stack.c (convert_regs_2): Likewise.
6267 * regrename.c (regrename_analyze): Likewise.
6268 * reload1.c (has_nonexceptional_receiver): Likewise.
6269 * reorg.c (dbr_schedule): Likewise.
6270 * sched-deps.c (sched_deps_init): Likewise.
6271 * sched-ebb.c (schedule_ebbs): Likewise.
6272 * sched-rgn.c (extend_regions): Likewise.
6273 (schedule_insns): Likewise.
6274 (sched_rgn_init): Likewise.
6275 (extend_rgns): Likewise.
6276 (haifa_find_rgns): Likewise.
6277 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6278 (sel_recompute_toporder): Likewise.
6279 * sel-sched.c (run_selective_scheduling): Likewise.
6280 * store-motion.c (one_store_motion_pass): Likewise.
6281 (remove_reachable_equiv_notes): Likewise.
6282 * tracer.c (tracer): Likewise.
6283 (tail_duplicate): Likewise.
6284 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6285 (dump_cfg_stats): Likewise.
6286 (gimple_dump_cfg): Likewise.
6287 (create_bb): Likewise.
6288 (build_gimple_cfg): Likewise.
6289 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6290 * tree-inline.c (optimize_inline_calls): Likewise.
6291 (fold_marked_statements): Likewise.
6292 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6293 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6294 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6295 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6296 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6297 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6298 * tree-ssa-pre.c (do_pre): Likewise.
6299 (init_pre): Likewise.
6300 (compute_avail): Likewise.
6301 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6302 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6303 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6304 (init_worklist): Likewise.
6305 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6306 * var-tracking.c (variable_tracking_main_1): Likewise.
6307 (vt_find_locations): Likewise.
6308 (vt_stack_adjustments): Likewise.
6309 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6310 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6312 2013-11-18 Jan Hubicka <jh@suse.cz>
6314 * profile.c (compute_branch_probabilities): Do not sanity check
6317 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6319 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6321 * fold-const.c (fold_single_bit_test_into_sign_test)
6322 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6324 2013-11-18 Teresa Johnson <tejohnson@google.com>
6326 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6327 cfglayout after bb reordering.
6328 * passes.def: Move compgotos before bb reordering since it goes into
6331 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6333 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6334 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6336 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6337 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6338 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6339 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6340 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6341 Remove all_lto_gen_passes.
6342 * passes.c (pass_manager::dump_passes): Remove its use.
6343 (pass_manager::register_pass): Likewise.
6344 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6345 (pass_manager::pass_manager): Don't initialize or use it.
6346 (write_lto): New static function.
6347 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6348 instead of using all_lto_gen_passes.
6349 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6350 pass_ipa_lto_finish_out): Delete.
6351 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6352 make_pass_ipa_lto_finish_out): Don't declare.
6354 2013-11-18 Jeff Law <law@redhat.com>
6356 * tree-ssa-threadupdate.c (redirection_data): Record two
6357 duplicated blocks instead of just one.
6358 (local_info): Explain why we don't create a template for the
6359 second duplicated block in a thread path.
6360 (create_block_for_threading): Accept argument indicating array
6361 index into redirection_data to store its result.
6362 (lookup_redirection_data): Initialize both duplicate blocks.
6363 (ssa_create_duplicates): If a jump threading path needs multiple
6364 blocks duplicated, then duplicate them.
6365 (ssa_fix_duplicate_block_edges): Corresponding changes.
6366 (ssa_fixup_template_block, thread_single_edge): Likewise.
6368 2013-11-18 Marek Polacek <polacek@redhat.com>
6370 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6372 2013-11-18 Andrew Pinski <apinski@cavium.com>
6373 Steve Ellcey <sellcey@mips.com>
6376 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6377 type restriction from equality_operator on conditonal move.
6378 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6379 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6381 2013-11-18 Jeff Law <law@redhat.com>
6383 * tree-ssa-threadupdate.c: Fix file block comment.
6384 Fix minor indention issue.
6386 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6388 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6389 ix86_address_subreg_operand. Move subreg checks to
6390 ix86_validate_address_register. Move address override check to
6391 ix86_legitimate_address_p.
6392 (ix86_validate_address_register): New function.
6393 (ix86_legitimate_address_p): Call ix86_validate_address_register
6394 to validate base and index registers. Add address override check
6395 from ix86_decompose_address.
6396 (ix86_decompose_address): Remove.
6398 2013-11-18 Richard Biener <rguenther@suse.de>
6400 PR tree-optimization/59125
6401 PR tree-optimization/54570
6402 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6403 is not complete do not treat component-references with offset zero
6404 but different fields as equal.
6405 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6406 (compute_object_sizes): Apply TLC. Propagate the constant
6407 results into all uses and fold their stmts.
6408 * passes.def (pass_all_optimizations): Move pass_object_sizes
6409 after the first pass_forwprop and before pass_fre.
6411 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6413 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6414 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6415 (tree_ctz): Remove cast to unsigned type.
6416 * builtins.c (fold_builtin_memory_op): Likewise.
6417 * dwarf2out.c (descr_info_loc): Likewise.
6418 * godump.c (go_output_typedef): Likewise.
6419 * omp-low.c (expand_omp_simd): Likewise.
6420 * stor-layout.c (excess_unit_span): Likewise.
6421 * tree-object-size.c (addr_object_size): Likewise.
6422 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6423 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6424 (simplify_rotate): Likewise.
6425 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6426 (handle_pointer_plus): Likewise.
6427 * tree-switch-conversion.c (check_range): Likewise.
6428 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6429 * tsan.c (instrument_builtin_call): Likewise.
6430 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6431 * trans-mem.c (tm_log_add): Likewise.
6432 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6433 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6434 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6435 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6437 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6439 * tree.h (host_integerp, tree_low_cst): Delete.
6440 * tree.c (host_integerp, tree_low_cst): Delete.
6442 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6444 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6446 * fold-const.c (fold_binary_loc): Likewise.
6447 * expr.c (store_constructor): Use tree_to_uhwi rather than
6449 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6450 * stmt.c (emit_case_dispatch_table): Likewise.
6451 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6453 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6455 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6456 config/aarch64/aarch64.c, config/alpha/predicates.md,
6457 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6458 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6459 config/mep/mep-pragma.c, config/mips/mips.c,
6460 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6461 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6462 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6463 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6464 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6465 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6466 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6467 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6468 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6469 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6471 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6473 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6474 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6475 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6476 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6477 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6478 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6479 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6480 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6481 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6482 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6483 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6485 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6487 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6488 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6490 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6492 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6495 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6497 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6498 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6499 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6500 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6501 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6502 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6503 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6504 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6505 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6506 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6507 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6508 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6509 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6510 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6511 tree_fits_uhwi_p throughout.
6513 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6515 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6516 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6517 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6518 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6519 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6520 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6521 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6522 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6523 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6524 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6525 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6526 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6527 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6530 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6532 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6533 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6535 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6537 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6538 flag if it kills its address, not its post-increment.
6540 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6542 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6543 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6544 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6545 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6546 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6547 (gimple_call_with_bounds_p): New.
6548 (gimple_call_set_with_bounds): New.
6549 (gimple_call_num_nobnd_args): Remove.
6550 (gimple_call_nobnd_arg): Remove.
6551 * tree.h (CALL_WITH_BOUNDS_P): New.
6552 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6554 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6556 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6557 (symtab_node_name): Rename to symtab_node::name.
6558 (cgraph_node_asm_name): Remove.
6559 (varpool_node_asm_name): Remove.
6560 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6561 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6562 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6563 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6564 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6566 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6568 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6569 * config/arm/arm.c (arm_cortex_a53_tune): New.
6570 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6572 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6574 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6575 (case ${target}): Add bdver4.
6576 * config/i386/bdver3.md: Add bdver4.
6577 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6578 -march=native recognize bdver4 processors.
6579 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6580 bdver4 def_and_undef
6581 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6582 (m_BDVER4): New definition.
6583 (m_AMD_MULTIPLE): Includes m_BDVER4.
6584 (processor_target_table): Add bdver4 entry.
6585 (static const char *const cpu_names): Add bdver4 entry.
6586 (software_prefetching_beneficial_p): Add bdver3.
6587 (ix86_option_override_internal): Add bdver4 instruction sets.
6588 (ix86_issue_rate): Add bdver4.
6589 (ix86_adjust_cost): Add bdver4.
6590 (ia32_multipass_dfa_lookahead): Add bdver4.
6591 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6592 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6593 (has_dispatch): Add bdver4.
6594 * config/i386/i386.h (TARGET_BDVER4): New definition.
6595 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6596 (enum processor_type): Add PROCESSOR_BDVER4.
6597 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6598 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6599 * doc/extend.texi: Add details about bdver4.
6600 * doc/invoke.texi: Add details about bdver4. Add
6601 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6603 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6605 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6606 sdmode_stack_slot also in little-endian mode.
6608 2013-11-17 Jan Hubicka <jh@suse.cz>
6610 * doc/md.texi (setmem, movstr): Update documentation.
6611 * builtins.c (determine_block_size): New function.
6612 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6613 (expand_builtin_memset_args): Use it and pass it to
6614 set_storage_via_setmem.
6615 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6616 parameters; update call to expander.
6617 (emit_block_move_hints): Add min_size/max_size parameters.
6618 (clear_storage_hints): Likewise.
6619 (set_storage_via_setmem): Likewise.
6620 (clear_storage): Update.
6621 * expr.h (emit_block_move_hints, clear_storage_hints,
6622 set_storage_via_setmem): Update prototypes.
6623 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6624 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6625 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6626 * i386.md (movmem, setmem): Pass parameters.
6628 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6631 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6632 reject non-integer subregs.
6633 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6634 Move check for invalid x32 constant addresses ...
6635 (ix86_legitimate_address_p): ... here.
6637 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6639 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6640 parameter and use it in REG_FRAME_RELATED_EXPR note.
6641 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6643 (rs6000_emit_prologue): Likewise, but for little endian VSX
6644 stores, pass the source register of the store instead.
6646 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6648 * gimple.h: Reorder prototypes to match .c declaration order, and
6649 remove protyotypes for functions not in gimple.c.
6650 (LABEL): Move to tree-into-ssa.c.
6651 * gimple.c: Remove unused prototypes.
6652 (get_base_address): Move to tree.c.
6653 * tree.c (get_base_address): Relocate from gimple.c.
6654 * builtins.h (validate_gimple_arglist): Add prototype.
6655 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6656 * cfgexpand.h: New File.
6657 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6658 * tree.h (build_addr): Move to tree-nested.h.
6659 * tree-nested.h: New File.
6660 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6662 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6663 * ipa-inline-analysis.c: Include cfgexpand.h.
6664 * cgraphunit.c: Include tree-nested.h.
6665 * omp-low.c: Likewise.
6666 * tree-parloops.c: Likewise.
6667 * gimple-low.h: Likewise.
6668 * tree-profile.h: Likewise.
6669 * expr.c: Include cfgexpand.h.
6670 * tree-affine.c: Likewise.
6671 * tree-ssa.c: Likewise.
6672 * tree-ssa-loop-im.c: Include trans-mem.h.
6673 * tree-ssa-tail-merge.c: Likewise.
6674 * value-prof.c: Include builtins.h and tree-nested.h.
6675 * tree-into-ssa.c (LABEL): Define here.
6677 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6679 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6680 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6681 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6682 (make_pass_arc_predicate_delay_insns): New function.
6683 (arc_init): Register pass_arc_predicate_delay_insns if
6684 flag_delayed_branch is active.
6686 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6688 * config/arc/constraints.md (Rcq): Simplify register number test.
6690 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6692 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6694 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6696 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6699 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6701 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6702 * gimple-pretty-print.c (dump_omp_for): Add case for
6703 GF_OMP_FOR_KIND_CILKSIMD.
6704 * gimple.h (enum gf_mask): Restructure entries to add
6705 GF_OMP_FOR_KIND_CILKSIMD.
6706 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6707 (gimplify_omp_for): Handle CILK_SIMD.
6708 (gimplify_expr): Add ccase for CILK_SIMD.
6709 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6710 (build_outer_var_ref): Same.
6711 (check_omp_nesting_restrictions): Same.
6712 (lower_rec_input_clauses): Same.
6713 (lower_lastprivate_clauses): Same.
6714 (expand_omp_for): Same.
6715 (execute_expand_omp): Check flag_enable_cilkplus.
6716 (execute_lower_omp): Same.
6717 (diagnose_sb_0): Handle CILK_SIMD.
6718 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6719 (setjmp_or_longjmp_p): New.
6720 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6721 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6722 * tree.def: Add tree code for CILK_SIMD.
6724 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6726 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6728 (altivec_vperm_<mode>): Revert earlier little endian change.
6729 (*altivec_vperm_<mode>_internal): Remove.
6730 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6731 (*altivec_vperm_<mode>_uns_internal): Remove.
6732 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6734 2013-11-15 Jeff Law <law@redhat.com>
6736 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6737 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6738 * gimple-ssa-isolate-paths.c
6739 (find_implicit_erroneous_behaviour): Corresponding changes.
6740 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6741 (find_explicit_erroneous_behaviour): Likewise.
6743 2013-11-15 Jeff Law <law@redhat.com>
6745 * ifcvt.c (find_cond_trap): Properly handle case where
6748 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6750 * configure: Regenerate.
6752 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6754 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6755 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6756 where it is incorrect or missing.
6758 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6760 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6762 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6763 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6765 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6766 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6767 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6769 2013-11-15 Richard Biener <rguenther@suse.de>
6771 PR tree-optimization/50262
6772 * tree-ssa-alias.h (struct pt_solution): Split
6773 vars_contains_global into vars_contains_nonlocal,
6774 vars_contains_escaped and vars_contains_escaped_heap.
6775 * tree-ssa-structalias.c (label_visit): Expand comment.
6776 (handle_lhs_call): Adjust comment.
6777 (set_uids_in_ptset): Set the new flags appropriately.
6778 (pt_solution_set): Adjust.
6779 (pt_solution_set_var): Likewise.
6780 (pt_solution_ior_into): Likewise.
6781 (pt_solution_includes_global): Likewise.
6782 (pt_solutions_intersect_1): Optimize escaped handling.
6783 (compute_points_to_sets): Remove heap variable globalization.
6784 (ipa_escaped_pt): Adjust initializer.
6785 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6786 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6787 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6789 2013-11-15 Richard Biener <rguenther@suse.de>
6791 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6792 to distribute all stores.
6794 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6796 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6798 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6800 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6801 * configure.ac: Determine target_header_dir earlier.
6802 (--with-glibc-version): New configure option.
6803 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6804 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6805 * configure: Regenerate.
6806 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6807 native toolchains for default.
6808 (--with-glibc-version): Document.
6810 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6812 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6814 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6816 * lto-streamer-in.c (input function): Call cgraph_create_node if
6817 cgraph_get_node failed.
6819 2013-11-14 Olivier Hainque <hainque@adacore.com>
6821 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6822 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6823 small. Factorize size threshold computation from the existing one.
6824 (expand_used_vars): Refine comment.
6826 2013-11-14 Cong Hou <congh@google.com>
6828 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6829 address field as it can be obtained from dr. Rename the struct.
6830 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6831 steps of data references during sort.
6832 (vect_prune_runtime_alias_test_list): Adjust with the change to
6833 struct dr_with_seg_len.
6834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6835 Adjust with the change to struct dr_with_seg_len.
6837 2013-11-14 Jeff Law <law@redhat.com>
6840 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6841 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6842 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6843 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6844 edges, then ignore it. If the statement exhibiting erroneous
6845 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6846 then we can not optimize.
6847 (find_explicit_erroneous_behaviour): Likewise.
6849 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6851 * gimplify-me.h: New file. Add prototypes.
6852 * gimplify.h: Don't include gimple.h.
6853 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6854 Relocate from gimple.h.
6855 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6856 is_gimple_sizepos): Move to gimplify.h.
6857 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6858 (enum gsi_iterator_update): Move to gimple-iterator.h.
6859 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6860 * gimplify-me.c: New File.
6861 (force_gimple_operand_1, force_gimple_operand,
6862 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6863 gimple_regimplify_operands): Relocate from gimplify.c.
6864 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6865 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6866 gimple_regimplify_operands): Move to gimplify-me.c.
6867 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6869 * Makefile.in (OBJS): Add gimplify-me.o
6870 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6872 * cfgloopmanip.c: Likewise.
6873 * cgraphunit.c: Likewise.
6874 * cilk-common.c: Likewise.
6875 * fold-const.c: Likewise.
6876 * function.c: Likewise.
6877 * gimple-expr.c: Likewise.
6878 * gimple-fold.c: Likewise.
6879 * gimple-ssa-strength-reduction.c: Likewise.
6880 * gimple.c: Likewise.
6881 * graphite-clast-to-gimple.c: Likewise.
6882 * graphite-sese-to-poly.c: Likewise.
6883 * ipa-prop.c: Likewise.
6884 * ipa-split.c: Likewise.
6886 * langhooks.c: Likewise.
6887 * omp-low.c: Likewise.
6889 * stor-layout.c: Likewise.
6890 * targhooks.c: Likewise.
6891 * trans-mem.c: Likewise.
6892 * tree-affine.c: Likewise.
6893 * tree-cfg.c: Likewise.
6894 * tree-cfgcleanup.c: Likewise.
6895 * tree-complex.c: Likewise.
6896 * tree-if-conv.c: Likewise.
6897 * tree-inline.c: Likewise.
6898 * tree-loop-distribution.c: Likewise.
6899 * tree-nested.c: Likewise.
6900 * tree-parloops.c: Likewise.
6901 * tree-predcom.c: Likewise.
6902 * tree-profile.c: Likewise.
6903 * tree-scalar-evolution.c: Likewise.
6904 * tree-sra.c: Likewise.
6905 * tree-ssa-address.c: Likewise.
6906 * tree-ssa-ccp.c: Likewise.
6907 * tree-ssa-dce.c: Likewise.
6908 * tree-ssa-forwprop.c: Likewise.
6909 * tree-ssa-ifcombine.c: Likewise.
6910 * tree-ssa-loop-im.c: Likewise.
6911 * tree-ssa-loop-ivopts.c: Likewise.
6912 * tree-ssa-loop-manip.c: Likewise.
6913 * tree-ssa-loop-niter.c: Likewise.
6914 * tree-ssa-loop-prefetch.c: Likewise.
6915 * tree-ssa-loop-unswitch.c: Likewise.
6916 * tree-ssa-math-opts.c: Likewise.
6917 * tree-ssa-phiopt.c: Likewise.
6918 * tree-ssa-phiprop.c: Likewise.
6919 * tree-ssa-pre.c: Likewise.
6920 * tree-ssa-propagate.c: Likewise.
6921 * tree-ssa-reassoc.c: Likewise.
6922 * tree-ssa-sccvn.c: Likewise.
6923 * tree-ssa-strlen.c: Likewise.
6924 * tree-ssa.c: Likewise.
6925 * tree-switch-conversion.c: Likewise.
6926 * tree-tailcall.c: Likewise.
6927 * tree-vect-data-refs.c: Likewise.
6928 * tree-vect-generic.c: Likewise.
6929 * tree-vect-loop-manip.c: Likewise.
6930 * tree-vect-loop.c: Likewise.
6931 * tree-vect-patterns.c: Likewise.
6932 * tree-vect-stmts.c: Likewise.
6935 * value-prof.c: Likewise.
6936 * config/aarch64/aarch64.c: Likewise.
6937 * config/alpha/alpha.c: Likewise.
6938 * config/darwin.c: Likewise.
6939 * config/i386/i386.c: Likewise.
6940 * config/ia64/ia64.c: Likewise.
6941 * config/mep/mep.c: Likewise.
6942 * config/mips/mips.c: Likewise.
6943 * config/rs6000/rs6000.c: Likewise.
6944 * config/s390/s390.c: Likewise.
6945 * config/sh/sh.c: Likewise.
6946 * config/sparc/sparc.c: Likewise.
6947 * config/spu/spu.c: Likewise.
6948 * config/stormy16/stormy16.c: Likewise.
6949 * config/tilegx/tilegx.c: Likewise.
6950 * config/tilepro/tilepro.c: Likewise.
6951 * config/xtensa/xtensa.c: Likewise.
6953 2013-11-14 Diego Novillo <dnovillo@google.com>
6955 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6957 2013-11-14 Diego Novillo <dnovillo@google.com>
6959 * tree.h: Include fold-const.h.
6960 (aggregate_value_p): Moved to function.h.
6961 (alloca_call_p): Moved to calls.h.
6962 (allocate_struct_function): Moved to function.h.
6963 (apply_tm_attr): Moved to attribs.h.
6964 (array_at_struct_end_p): Moved to expr.h.
6965 (array_ref_element_size): Moved to tree-dfa.h.
6966 (array_ref_low_bound): Moved to tree-dfa.h.
6967 (array_ref_up_bound): Moved to tree.h.
6968 (assemble_alias): Moved to cgraph.h.
6969 (bit_from_pos): Moved to stor-layout.h.
6970 (build_addr): Moved to tree-nested.h.
6971 (build_duplicate_type): Moved to tree-inline.h.
6972 (build_fold_addr_expr): Moved to fold-const.h.
6973 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6974 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6975 (build_fold_indirect_ref): Moved to fold-const.h.
6976 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6977 (build_personality_function): Moved to tree.h.
6978 (build_range_check): Moved to fold-const.h.
6979 (build_simple_mem_ref): Moved to fold-const.h.
6980 (build_simple_mem_ref_loc): Moved to fold-const.h.
6981 (build_tm_abort_call): Moved to trans-mem.h.
6982 (byte_from_pos): Moved to stor-layout.h.
6983 (call_expr_flags): Moved to calls.h.
6984 (can_move_by_pieces): Moved to expr.h.
6985 (categorize_ctor_elements): Moved to expr.h.
6986 (change_decl_assembler_name): Moved to gcc-symtab.h.
6987 (combine_comparisons): Moved to fold-const.h.
6988 (complete_ctor_at_level_p): Moved to tree.h.
6989 (component_ref_field_offset): Moved to tree-dfa.h.
6990 (compute_builtin_object_size): Moved to tree-object-size.h.
6991 (compute_record_mode): Moved to stor-layout.h.
6992 (constant_boolean_node): Moved to fold-const.h.
6993 (constructor_static_from_elts_p): Moved to varasm.h.
6994 (cxx11_attribute_p): Moved to attribs.h.
6995 (debug_body): Moved to print-tree.h.
6996 (debug_find_tree): Moved to tree-inline.h.
6997 (debug_fold_checksum): Moved to fold-const.h.
6998 (debug_head): Moved to print-tree.h.
6999 (debug_head): Moved to print-tree.h.
7000 (debug_raw): Moved to print-tree.h.
7001 (debug_tree): Moved to print-tree.h.
7002 (debug_vec_tree): Moved to print-tree.h.
7003 (debug_verbose): Moved to print-tree.h.
7004 (debug_verbose): Moved to print-tree.h.
7005 (decl_attributes): Moved to attribs.h.
7006 (decl_binds_to_current_def_p): Moved to varasm.h.
7007 (decl_default_tls_model): Moved to varasm.h.
7008 (decl_replaceable_p): Moved to varasm.h.
7009 (div_if_zero_remainder): Moved to fold-const.h.
7010 (double_int mem_ref_offset): Moved to fold-const.h.
7011 (dump_addr): Moved to print-tree.h.
7012 (element_precision): Moved to machmode.h.
7013 (expand_dummy_function_end): Moved to function.h.
7014 (expand_function_end): Moved to function.h.
7015 (expand_function_start): Moved to function.h.
7016 (expand_label): Moved to stmt.h.
7017 (expr_first): Moved to tree-iterator.h.
7018 (expr_last): Moved to tree-iterator.h.
7019 (finalize_size_functions): Moved to stor-layout.h.
7020 (finish_builtin_struct): Moved to stor-layout.h.
7021 (finish_record_layout): Moved to stor-layout.h.
7022 (fixup_signed_type): Moved to stor-layout.h.
7023 (fixup_unsigned_type): Moved to stor-layout.h.
7024 (flags_from_decl_or_type): Moved to calls.h.
7025 (fold): Moved to fold-const.h.
7026 (fold_abs_const): Moved to fold-const.h.
7027 (fold_binary): Moved to fold-const.h.
7028 (fold_binary_loc): Moved to fold-const.h.
7029 (fold_binary_to_constant): Moved to fold-const.h.
7030 (fold_build1): Moved to fold-const.h.
7031 (fold_build1_initializer_loc): Moved to fold-const.h.
7032 (fold_build1_loc): Moved to fold-const.h.
7033 (fold_build1_stat_loc): Moved to fold-const.h.
7034 (fold_build2): Moved to fold-const.h.
7035 (fold_build2_initializer_loc): Moved to fold-const.h.
7036 (fold_build2_loc): Moved to fold-const.h.
7037 (fold_build2_stat_loc): Moved to fold-const.h.
7038 (fold_build3): Moved to fold-const.h.
7039 (fold_build3_loc): Moved to fold-const.h.
7040 (fold_build3_stat_loc): Moved to fold-const.h.
7041 (fold_build_call_array): Moved to fold-const.h.
7042 (fold_build_call_array_initializer): Moved to fold-const.h.
7043 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7044 (fold_build_call_array_loc): Moved to fold-const.h.
7045 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7046 (fold_convert): Moved to fold-const.h.
7047 (fold_convert_loc): Moved to fold-const.h.
7048 (fold_convertible_p): Moved to fold-const.h.
7049 (fold_defer_overflow_warnings): Moved to fold-const.h.
7050 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7051 (fold_fma): Moved to fold-const.h.
7052 (fold_ignored_result): Moved to fold-const.h.
7053 (fold_indirect_ref): Moved to fold-const.h.
7054 (fold_indirect_ref_1): Moved to fold-const.h.
7055 (fold_indirect_ref_loc): Moved to fold-const.h.
7056 (fold_read_from_constant_string): Moved to fold-const.h.
7057 (fold_real_zero_addition_p): Moved to fold-const.h.
7058 (fold_single_bit_test): Moved to fold-const.h.
7059 (fold_strip_sign_ops): Moved to fold-const.h.
7060 (fold_ternary): Moved to fold-const.h.
7061 (fold_ternary_loc): Moved to fold-const.h.
7062 (fold_unary): Moved to tree-data-ref.h.
7063 (fold_unary_ignore_overflow): Moved to fold-const.h.
7064 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7065 (fold_unary_loc): Moved to fold-const.h.
7066 (fold_unary_to_constant): Moved to fold-const.h.
7067 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7068 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7069 (folding_initializer): Moved to fold-const.h.
7070 (free_temp_slots): Moved to function.h.
7071 (generate_setjmp_warnings): Moved to function.h.
7072 (get_attribute_name): Moved to attribs.h.
7073 (get_identifier): Moved to stringpool.h.
7074 (get_identifier_with_length): Moved to stringpool.h.
7075 (get_inner_reference): Moved to tree.h.
7076 (gimple_alloca_call_p): Moved to calls.h.
7077 (gimplify_parameters): Moved to function.h.
7078 (highest_pow2_factor): Moved to expr.h.
7079 (indent_to): Moved to print-tree.h.
7080 (init_attributes): Moved to attribs.h.
7081 (init_dummy_function_start): Moved to function.h.
7082 (init_function_start): Moved to function.h.
7083 (init_inline_once): Moved to tree-inline.h.
7084 (init_object_sizes): Moved to tree-object-size.h.
7085 (init_temp_slots): Moved to function.h.
7086 (init_tree_optimization_optabs): Moved to optabs.h.
7087 (initialize_sizetypes): Moved to stor-layout.h.
7088 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7089 (initializer_constant_valid_p): Moved to varasm.h.
7090 (int_const_binop): Moved to fold-const.h.
7091 (internal_reference_types): Moved to stor-layout.h.
7092 (invert_tree_comparison): Moved to fold-const.h.
7093 (invert_truthvalue): Moved to fold-const.h.
7094 (invert_truthvalue_loc): Moved to fold-const.h.
7095 (is_tm_ending_fndecl): Moved to trans-mem.h.
7096 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7097 (is_tm_pure): Moved to trans-mem.h.
7098 (is_tm_safe): Moved to trans-mem.h.
7099 (layout_decl): Moved to stor-layout.h.
7100 (layout_type): Moved to stor-layout.h.
7101 (lookup_attribute_spec): Moved to attribs.h.
7102 (make_accum_type): Moved to stor-layout.h.
7103 (make_decl_one_only): Moved to varasm.h.
7104 (make_decl_rtl): Moved to tree.h.
7105 (make_decl_rtl_for_debug): Moved to varasm.h.
7106 (make_fract_type): Moved to stor-layout.h.
7107 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7108 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7109 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7110 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7111 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7112 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7113 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7114 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7115 (make_range): Moved to fold-const.h.
7116 (make_range_step): Moved to fold-const.h.
7117 (make_sat_signed_accum_type): Moved to stor-layout.h.
7118 (make_sat_signed_fract_type): Moved to stor-layout.h.
7119 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7120 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7121 (make_signed_accum_type): Moved to stor-layout.h.
7122 (make_signed_fract_type): Moved to stor-layout.h.
7123 (make_signed_type): Moved to stor-layout.h.
7124 (make_unsigned_accum_type): Moved to stor-layout.h.
7125 (make_unsigned_fract_type): Moved to stor-layout.h.
7126 (make_unsigned_type): Moved to stor-layout.h.
7127 (mark_decl_referenced): Moved to varasm.h.
7128 (mark_referenced): Moved to varasm.h.
7129 (may_negate_without_overflow_p): Moved to fold-const.h.
7130 (maybe_get_identifier): Moved to stringpool.h.
7131 (merge_ranges): Moved to fold-const.h.
7132 (merge_weak): Moved to varasm.h.
7133 (mode_for_size_tree): Moved to stor-layout.h.
7134 (multiple_of_p): Moved to fold-const.h.
7135 (must_pass_in_stack_var_size): Moved to calls.h.
7136 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7137 (native_encode_expr): Moved to fold-const.h.
7138 (native_interpret_expr): Moved to fold-const.h.
7139 (non_lvalue): Moved to fold-const.h.
7140 (non_lvalue_loc): Moved to fold-const.h.
7141 (normalize_offset): Moved to stor-layout.h.
7142 (normalize_rli): Moved to stor-layout.h.
7143 (notice_global_symbol): Moved to varasm.h.
7144 (omit_one_operand): Moved to fold-const.h.
7145 (omit_one_operand_loc): Moved to fold-const.h.
7146 (omit_two_operands): Moved to fold-const.h.
7147 (omit_two_operands_loc): Moved to fold-const.h.
7148 (operand_equal_p): Moved to tree-data-ref.h.
7149 (parse_input_constraint): Moved to stmt.h.
7150 (parse_output_constraint): Moved to stmt.h.
7151 (place_field): Moved to stor-layout.h.
7152 (pop_function_context): Moved to function.h.
7153 (pop_temp_slots): Moved to function.h.
7154 (pos_from_bit): Moved to stor-layout.h.
7155 (preserve_temp_slots): Moved to function.h.
7156 (print_node): Moved to print-tree.h.
7157 (print_node_brief): Moved to print-tree.h.
7158 (print_rtl): Moved to rtl.h.
7159 (process_pending_assemble_externals): Moved to varasm.h.
7160 (ptr_difference_const): Moved to fold-const.h.
7161 (push_function_context): Moved to function.h.
7162 (push_struct_function): Moved to function.h.
7163 (push_temp_slots): Moved to function.h.
7164 (record_tm_replacement): Moved to trans-mem.h.
7165 (relayout_decl): Moved to stor-layout.h.
7166 (resolve_asm_operand_names): Moved to stmt.h.
7167 (resolve_unique_section): Moved to varasm.h.
7168 (rli_size_so_far): Moved to stor-layout.h.
7169 (rli_size_unit_so_far): Moved to stor-layout.h.
7170 (round_down): Moved to fold-const.h.
7171 (round_down_loc): Moved to fold-const.h.
7172 (round_up): Moved to fold-const.h.
7173 (round_up_loc): Moved to fold-const.h.
7174 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7175 (set_decl_rtl): Moved to tree.h.
7176 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7177 (set_user_assembler_name): Moved to varasm.h.
7178 (setjmp_call_p): Moved to calls.h.
7179 (size_binop): Moved to fold-const.h.
7180 (size_binop_loc): Moved to fold-const.h.
7181 (size_diffop): Moved to fold-const.h.
7182 (size_diffop_loc): Moved to fold-const.h.
7183 (size_int_kind): Moved to fold-const.h.
7184 (stack_protect_epilogue): Moved to function.h.
7185 (start_record_layout): Moved to stor-layout.h.
7186 (supports_one_only): Moved to varasm.h.
7187 (swap_tree_comparison): Moved to fold-const.h.
7188 (tm_malloc_replacement): Moved to trans-mem.h.
7189 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7190 (tree build_invariant_address): Moved to fold-const.h.
7191 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7192 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7193 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7194 (tree_expr_nonnegative_p): Moved to fold-const.h.
7195 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7196 (tree_output_constant_def): Moved to varasm.h.
7197 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7198 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7199 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7200 (tree_swap_operands_p): Moved to fold-const.h.
7201 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7202 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7203 (update_alignment_for_field): Moved to stor-layout.h.
7204 (use_register_for_decl): Moved to function.h.
7205 (variable_size): Moved to rtl.h.
7206 (vector_type_mode): Moved to stor-layout.h.
7207 * cgraph.h: Corresponding changes.
7208 * emit-rtl.h: Corresponding changes.
7209 * expr.h: Corresponding changes.
7210 * function.h: Corresponding changes.
7211 * optabs.h: Corresponding changes.
7212 * trans-mem.h: Corresponding changes.
7213 Protect against multiple inclusion.
7214 * tree-inline.h: Corresponding changes.
7215 * tree-iterator.h: Corresponding changes.
7216 * tree-dfa.h: Include expr.h.
7217 * tree-ssanames.h: Include stringpool.h.
7218 * attribs.h: New file.
7219 * calls.h: New file.
7220 * fold-const.h: New file.
7221 * gcc-symtab.h: New file.
7222 * print-rtl.h: New file.
7223 * print-tree.h: New file.
7225 * stor-layout.h: New file.
7226 * strinpool.h: New file.
7227 * tree-nested.h: New file
7228 * tree-object-size.h: New file.
7229 * varasm.h: New file.
7231 2013-11-14 Diego Novillo <dnovillo@google.com>
7233 * alias.c: Include varasm.h.
7235 * asan.c: Include calls.h.
7236 Include stor-layout.h.
7238 * attribs.c: Include stringpool.h.
7240 Include stor-layout.h.
7241 * builtins.c: Include stringpool.h.
7242 Include stor-layout.h.
7245 Include tree-object-size.h.
7246 * calls.c: Include stor-layout.h.
7248 Include stringpool.h.
7250 * cfgexpand.c: Include stringpool.h.
7252 Include stor-layout.h.
7254 Include print-tree.h.
7255 * cgraph.c: Include varasm.h.
7257 Include print-tree.h.
7258 * cgraphclones.c: Include stringpool.h.
7261 Move inclusion of rtl.h earlier in the file.
7262 * cgraphunit.c: Include varasm.h.
7263 Include stor-layout.h.
7264 Include stringpool.h.
7265 * cilk-common.c: Include stringpool.h.
7266 Include stor-layout.h.
7267 * combine.c: Include stor-layout.h.
7268 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7269 Include stringpool.h.
7271 * config/aarch64/aarch64.c: Include stringpool.h.
7272 Include stor-layout.h.
7275 * config/alpha/alpha.c: Include stor-layout.h.
7278 * config/arc/arc.c: Include varasm.h.
7279 Include stor-layout.h.
7280 Include stringpool.h.
7282 * config/arm/arm.c: Include stringpool.h.
7283 Include stor-layout.h.
7286 * config/avr/avr-c.c: Include stor-layout.h.
7287 * config/avr/avr-log.c: Include print-tree.h.
7288 * config/avr/avr.c: Include print-tree.h.
7290 Include stor-layout.h.
7291 Include stringpool.h.
7292 * config/bfin/bfin.c: Include varasm.h.
7294 * config/c6x/c6x.c: Include stor-layout.h.
7297 Include stringpool.h.
7298 * config/cr16/cr16.c: Include stor-layout.h.
7300 * config/cris/cris.c: Include varasm.h.
7301 Include stor-layout.h.
7304 * config/darwin.c: Include stringpool.h.
7306 Include stor-layout.h.
7307 * config/epiphany/epiphany.c: Include stor-layout.h.
7310 Include stringpool.h.
7311 * config/fr30/fr30.c: Include stor-layout.h.
7313 * config/frv/frv.c: Include varasm.h.
7314 Include stor-layout.h.
7315 Include stringpool.h.
7316 * config/h8300/h8300.c: Include stor-layout.h.
7319 Include stringpool.h.
7320 * config/i386/i386.c: Include stringpool.h.
7323 Include stor-layout.h.
7325 * config/i386/winnt-cxx.c: Include stringpool.h.
7327 * config/i386/winnt.c: Include stringpool.h.
7329 * config/ia64/ia64-c.c: Include stringpool.h.
7330 * config/ia64/ia64.c: Include stringpool.h.
7331 Include stor-layout.h.
7334 * config/iq2000/iq2000.c: Include stor-layout.h.
7337 * config/lm32/lm32.c: Include calls.h.
7338 * config/m32c/m32c.c: Include stor-layout.h.
7341 * config/m32r/m32r.c: Include stor-layout.h.
7343 Include stringpool.h.
7345 * config/m68k/m68k.c: Include calls.h.
7346 Include stor-layout.h.
7348 * config/mcore/mcore.c: Include stor-layout.h.
7350 Include stringpool.h.
7352 * config/mep/mep.c: Include varasm.h.
7354 Include stringpool.h.
7355 Include stor-layout.h.
7356 * config/microblaze/microblaze.c: Include varasm.h.
7357 Include stor-layout.h.
7359 * config/mips/mips.c: Include varasm.h.
7360 Include stringpool.h.
7361 Include stor-layout.h.
7363 * config/mmix/mmix.c: Include varasm.h.
7364 Include stor-layout.h.
7366 * config/mn10300/mn10300.c: Include stor-layout.h.
7369 * config/moxie/moxie.c: Include stor-layout.h.
7372 * config/msp430/msp430.c: Include stor-layout.h.
7374 * config/nds32/nds32.c: Include stor-layout.h.
7377 * config/pa/pa.c: Include stor-layout.h.
7378 Include stringpool.h.
7381 * config/pdp11/pdp11.c: Include stor-layout.h.
7384 * config/picochip/picochip.c: Include calls.h.
7385 Include stor-layout.h.
7386 Include stringpool.h.
7388 * config/rl78/rl78.c: Include varasm.h.
7389 Include stor-layout.h.
7391 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7392 Include stringpool.h.
7393 * config/rs6000/rs6000.c: Include stringpool.h.
7394 Include stor-layout.h.
7396 Include print-tree.h.
7398 * config/rx/rx.c: Include varasm.h.
7399 Include stor-layout.h.
7401 * config/s390/s390.c: Include print-tree.h.
7402 Include stringpool.h.
7403 Include stor-layout.h.
7406 * config/score/score.c: Include stringpool.h.
7409 Include stor-layout.h.
7410 * config/sh/sh-c.c: Include stringpool.h.
7411 Include attribs.h.h.
7412 * config/sh/sh.c: Include stringpool.h.
7413 Include stor-layout.h.
7416 * config/sol2-c.c: Include stringpool.h.
7418 * config/sol2-cxx.c: Include stringpool.h.
7419 * config/sol2.c: Include stringpool.h.
7421 * config/sparc/sparc.c: Include stringpool.h.
7422 Include stor-layout.h.
7425 * config/spu/spu-c.c: Include stringpool.h.
7426 * config/spu/spu.c: Include stringpool.h.
7427 Include stor-layout.h.
7430 * config/stormy16/stormy16.c: Include stringpool.h.
7431 Include stor-layout.h.
7434 * config/tilegx/tilegx.c: Include stringpool.h.
7435 Include stor-layout.h.
7438 * config/tilepro/tilepro.c: Include stringpool.h.
7439 Include stor-layout.h.
7442 * config/v850/v850-c.c: Include stringpool.h.
7444 * config/v850/v850.c: Include stringpool.h.
7445 Include stor-layout.h.
7448 * config/vax/vax.c: Include calls.h.
7450 * config/vms/vms.c: Include stringpool.h.
7451 * config/vxworks.c: Include stringpool.h.
7452 * config/xtensa/xtensa.c: Include stringpool.h.
7453 Include stor-layout.h.
7456 * convert.c: Include stor-layout.h.
7457 * coverage.c: Include stringpool.h.
7458 Include stor-layout.h.
7459 * dbxout.c: Include varasm.h.
7460 Include stor-layout.h.
7461 * dojump.c: Include stor-layout.h.
7462 * dse.c: Include stor-layout.h.
7463 * dwarf2asm.c: Include stringpool.h.
7465 * dwarf2cfi.c: Include stor-layout.h.
7466 * dwarf2out.c: Include rtl.h.
7467 Include stringpool.h.
7468 Include stor-layout.h.
7472 Move inclusion of rtl.h earlier in the file.
7473 * emit-rtl.c: Include varasm.h.
7474 * except.c: Include stringpool.h.
7475 Include stor-layout.h.
7476 * explow.c: Include stor-layout.h.
7477 * expmed.c: Include stor-layout.h.
7478 * expr.c: Include stringpool.h.
7479 Include stor-layout.h.
7482 * final.c: Include varasm.h.
7483 * fold-const.c: Include stor-layout.h.
7485 Include tree-iterator.h.
7486 * function.c: Include stor-layout.h.
7488 Include stringpool.h.
7489 * genattrtab.c (write_header): Emit includes for varasm.h,
7490 stor-layout.h and calls.h.
7491 * genautomata.c (main): Likewise.
7492 * genemit.c: Likewise.
7493 * genopinit.c: Likewise.
7494 * genoutput.c (output_prologue): Likewise.
7495 * genpeep.c: Likewise.
7496 * genpreds.c (write_insn_preds_c): Likewise.
7497 * gengtype.c (open_base_files): Add stringpool.h.
7498 * gimple-expr.c: Include stringpool.h.
7499 Include stor-layout.h.
7500 * gimple-fold.c: Include stringpool.h.
7503 Include stor-layout.h.
7504 * gimple-low.c: Include tree-nested.h.
7506 * gimple-pretty-print.c: Include stringpool.h.
7507 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7509 * gimple-walk.c: Include stmt.h.
7510 * gimple.c: Include calls.h.
7512 Include stor-layout.h.
7513 * gimplify.c: Include stringpool.h.
7516 Include stor-layout.h.
7518 Include print-tree.h.
7520 * gimplify-me.c: Include stmt.h
7521 Include stor-layout.h
7522 * internal-fn.c: Include stor-layout.h.
7523 * ipa-devirt.c: Include print-tree.h.
7525 * ipa-inline-analysis.c: Include stor-layout.h.
7526 Include stringpool.h.
7527 Include print-tree.h.
7528 * ipa-inline.c: Include trans-mem.h.
7530 * ipa-prop.c: Include expr.h.
7531 Include stor-layout.h.
7532 Include print-tree.h.
7533 * ipa-pure-const.c: Include print-tree.h.
7535 * ipa-reference.c: Include calls.h.
7536 * ipa-split.c: Include stringpool.h.
7539 * ipa.c: Include calls.h.
7540 Include stringpool.h.
7541 * langhooks.c: Include stringpool.h.
7543 * lto-cgraph.c: Include stringpool.h.
7544 * lto-streamer-in.c: Include stringpool.h.
7545 * lto-streamer-out.c: Include stor-layout.h.
7546 Include stringpool.h.
7547 * omp-low.c: Include stringpool.h.
7548 Include stor-layout.h.
7550 * optabs.c: Include stor-layout.h.
7551 Include stringpool.h.
7553 * passes.c: Include varasm.h.
7554 * predict.c: Include calls.h.
7555 * print-rtl.c: Include print-tree.h.
7556 * print-tree.c: Include varasm.h.
7557 Include print-rtl.h.
7558 Include stor-layout.h.
7559 * realmpfr.c: Include stor-layout.h.
7560 * reg-stack.c: Include varasm.h.
7561 * sdbout.c: Include varasm.h.
7562 Include stor-layout.h.
7563 * simplify-rtx.c: Include varasm.h.
7564 * stmt.c: Include varasm.h.
7565 Include stor-layout.h.
7566 * stor-layout.c: Include stor-layout.h.
7567 Include stringpool.h.
7569 Include print-tree.h.
7570 * symtab.c: Include rtl.h.
7571 Include print-tree.h.
7575 * targhooks.c: Include stor-layout.h.
7577 * toplev.c: Include varasm.h.
7578 Include tree-inline.h.
7579 * trans-mem.c: Include calls.h.
7583 * tree-affine.c: Include expr.h.
7584 * tree-browser.c: Include print-tree.h.
7585 * tree-call-cdce.c: Include stor-layout.h.
7586 * tree-cfg.c: Include trans-mem.h.
7587 Include stor-layout.h.
7588 Include print-tree.h.
7589 * tree-complex.c: Include stor-layout.h.
7590 * tree-data-ref.c: Include expr.h.
7591 * tree-dfa.c: Include stor-layout.h.
7592 * tree-eh.c: Include expr.h.
7594 * tree-emutls.c: Include stor-layout.h.
7596 * tree-if-conv.c: Include stor-layout.h.
7597 * tree-inline.c: Include stor-layout.h.
7599 * tree-loop-distribution.c: Include stor-layout.h.
7600 * tree-nested.c: Include stringpool.h.
7601 Include stor-layout.h.
7602 * tree-object-size.c: Include tree-object-size.h.
7603 * tree-outof-ssa.c: Include stor-layout.h.
7604 * tree-parloops.c: Include stor-layout.h.
7605 Include tree-nested.h.
7606 * tree-pretty-print.c: Include stor-layout.h.
7608 * tree-profile.c: Include varasm.h.
7609 Include tree-nested.h.
7610 * tree-scalar-evolution.c: Include expr.h.
7611 * tree-sra.c: Include stor-layout.h.
7612 * tree-ssa-address.c: Include stor-layout.h.
7613 * tree-ssa-ccp.c: Include stor-layout.h.
7614 * tree-ssa-dce.c: Include calls.h.
7615 * tree-ssa-dom.c: Include stor-layout.h.
7616 * tree-ssa-forwprop.c: Include stor-layout.h.
7617 * tree-ssa-ifcombine.c: Include stor-layout.h.
7618 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7619 * tree-ssa-loop-niter.c: Include calls.h.
7621 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7622 * tree-ssa-math-opts.c: Include stor-layout.h.
7623 * tree-ssa-operands.c: Include stmt.h.
7624 Include print-tree.h.
7625 * tree-ssa-phiopt.c: Include stor-layout.h.
7626 * tree-ssa-reassoc.c: Include stor-layout.h.
7627 * tree-ssa-sccvn.c: Include stor-layout.h.
7628 * tree-ssa-sink.c: Include stor-layout.h.
7629 * tree-ssa-strlen.c: Include stor-layout.h.
7630 * tree-ssa-structalias.c: Include stor-layout.h.
7632 * tree-ssa-tail-merge.c: Include stor-layout.h.
7633 Include trans-mem.h.
7634 * tree-ssa-uncprop.c: Include stor-layout.h.
7635 * tree-ssa.c: Include stor-layout.h.
7636 * tree-ssanames.c: Include stor-layout.h.
7637 * tree-streamer-in.c: Include stringpool.h.
7638 * tree-streamer-out.c: Include stor-layout.h.
7639 * tree-switch-conversion.c: Include varasm.h.
7640 Include stor-layout.h.
7641 * tree-tailcall.c: Include stor-layout.h.
7642 * tree-vect-data-refs.c: Include stor-layout.h.
7643 * tree-vect-generic.c: Include stor-layout.h.
7644 * tree-vect-loop.c: Include stor-layout.h.
7645 * tree-vect-patterns.c: Include stor-layout.h.
7646 * tree-vect-slp.c: Include stor-layout.h.
7647 * tree-vect-stmts.c: Include stor-layout.h.
7648 * tree-vectorizer.c: Include stor-layout.h.
7649 * tree-vrp.c: Include stor-layout.h.
7651 * tree.c: Include stor-layout.h.
7655 * tsan.c: Include expr.h.
7656 * ubsan.c: Include stor-layout.h.
7657 Include stringpool.h.
7658 * value-prof.c: Include tree-nested.h.
7660 * var-tracking.c: Include varasm.h.
7661 Include stor-layout.h.
7662 * varasm.c: Include stor-layout.h.
7663 Include stringpool.h.
7664 Include gcc-symtab.h.
7666 * varpool.c: Include varasm.h.
7667 * vmsdbgout.c: Include varasm.h.
7668 * xcoffout.c: Include varasm.h.
7670 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7672 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7675 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7677 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7679 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7680 Alan Modra <amodra@gmail.com>
7682 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7683 (RS6000_SAVE_TOC): Remove.
7684 (RS6000_TOC_SAVE_SLOT): New macro.
7685 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7686 (rs6000_parm_start): Use it.
7687 (rs6000_function_arg_advance_1): Likewise.
7688 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7689 (rs6000_emit_epilogue): Likewise.
7690 (rs6000_call_aix): Likewise.
7691 (rs6000_output_function_prologue): Do not save/restore r11
7692 around calling _mcount for ABI_ELFv2.
7694 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7695 Alan Modra <amodra@gmail.com>
7697 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7699 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7700 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7701 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7702 (rs6000_function_parms_need_stack): Likewise.
7703 (rs6000_reg_parm_stack_space): Likewise.
7704 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7705 returning a register argument.
7707 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7708 Michael Gschwind <mkg@us.ibm.com>
7710 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7711 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7712 (FUNCTION_VALUE_REGNO_P): Use them.
7713 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7714 (rs6000_return_in_msb): New function.
7715 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7716 Handle aggregates of up to 16 bytes for ELFv2.
7717 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7719 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7720 Michael Gschwind <mkg@us.ibm.com>
7722 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7723 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7724 (rs6000_discover_homogeneous_aggregate): Likewise.
7725 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7726 (rs6000_function_arg_advance_1): Likewise.
7727 (rs6000_function_arg): Likewise.
7728 (rs6000_arg_partial_bytes): Likewise.
7729 (rs6000_psave_function_arg): Handle BLKmode arguments.
7731 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7732 Michael Gschwind <mkg@us.ibm.com>
7734 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7735 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7736 (rs6000_discover_homogeneous_aggregate): Likewise.
7737 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7738 (rs6000_function_arg_advance_1): Likewise.
7739 (rs6000_function_arg): Likewise.
7740 (rs6000_arg_partial_bytes): Likewise.
7741 (rs6000_psave_function_arg): Handle BLKmode arguments.
7743 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7745 * config/rs6000/rs6000.c (machine_function): New member
7747 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7748 (rs6000_output_mi_thunk): Set r2_setup_needed.
7749 (rs6000_output_function_prologue): Output global entry point
7750 prologue and local entry point marker if needed for ABI_ELFv2.
7751 Output -mprofile-kernel code here.
7752 (output_function_profiler): Do not output -mprofile-kernel
7753 code here; moved to rs6000_output_function_prologue.
7754 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7756 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7757 (rs6000_output_function_entry): Likewise.
7758 (rs6000_assemble_integer): Likewise.
7759 (rs6000_elf_encode_section_info): Likewise.
7760 (rs6000_elf_declare_function_name): Do not create dot symbols
7761 or .opd section for ABI_ELFv2.
7763 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7764 (rs6000_trampoline_init): Likewise.
7765 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7767 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7768 for function descriptors in ABI_ELFv2.
7770 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7771 on ABI_AIX only, not ABI_ELFv2.
7772 ("*call_value_indirect_aix<mode>"): Likewise.
7773 ("*call_indirect_elfv2<mode>"): New pattern.
7774 ("*call_value_indirect_elfv2<mode>"): Likewise.
7776 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7777 check for function descriptors in ABI_ELFv2.
7778 ("current_file_function_operand"): Likewise.
7780 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7782 (FUNC_NAME): Define ELFv2 variant.
7783 (JUMP_TARGET): Likewise.
7784 (FUNC_START): Likewise.
7785 (HIDDEN_FUNC): Likewise.
7786 (FUNC_END): Likeiwse.
7788 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7790 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7791 and --with-abi=elfv2.
7792 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7793 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7794 (mabi=elfv2): Likewise.
7795 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7796 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7798 (ELFv2_ABI_CHECK): New macro.
7799 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7800 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7801 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7802 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7803 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7805 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7806 (debug_stack_info): Likewise.
7807 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7808 (rs6000_legitimize_tls_address): Likewise.
7809 (rs6000_conditional_register_usage): Likewise.
7810 (rs6000_emit_move): Likewise.
7811 (init_cumulative_args): Likewise.
7812 (rs6000_function_arg_advance_1): Likewise.
7813 (rs6000_function_arg): Likewise.
7814 (rs6000_arg_partial_bytes): Likewise.
7815 (rs6000_output_function_entry): Likewise.
7816 (rs6000_assemble_integer): Likewise.
7817 (rs6000_savres_strategy): Likewise.
7818 (rs6000_stack_info): Likewise.
7819 (rs6000_function_ok_for_sibcall): Likewise.
7820 (rs6000_emit_load_toc_table): Likewise.
7821 (rs6000_savres_routine_name): Likewise.
7822 (ptr_regno_for_savres): Likewise.
7823 (rs6000_emit_prologue): Likewise.
7824 (rs6000_emit_epilogue): Likewise.
7825 (rs6000_output_function_epilogue): Likewise.
7826 (output_profile_hook): Likewise.
7827 (output_function_profiler): Likewise.
7828 (rs6000_trampoline_size): Likewise.
7829 (rs6000_trampoline_init): Likewise.
7830 (rs6000_elf_output_toc_section_asm_op): Likewise.
7831 (rs6000_elf_encode_section_info): Likewise.
7832 (rs6000_elf_reloc_rw_mask): Likewise.
7833 (rs6000_elf_declare_function_name): Likewise.
7834 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7835 except that rs6000_compat_align_parm is always assumed false.
7836 (rs6000_gimplify_va_arg): Likewise.
7837 (rs6000_call_aix): Update comment.
7838 (rs6000_sibcall_aix): Likewise.
7839 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7840 Treat ABI_ELFv2 the same as ABI_AIX.
7841 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7842 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7843 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7844 ("load_toc_aix_si"): Likewise.
7845 ("load_toc_aix_di"): Likewise.
7847 ("call_value"): Likewise.
7848 ("*call_local_aix<mode>"): Likewise.
7849 ("*call_value_local_aix<mode>"): Likewise.
7850 ("*call_nonlocal_aix<mode>"): Likewise.
7851 ("*call_value_nonlocal_aix<mode>"): Likewise.
7852 ("*call_indirect_aix<mode>"): Likewise.
7853 ("*call_value_indirect_aix<mode>"): Likewise.
7854 ("sibcall"): Likewise.
7855 ("sibcall_value"): Likewise.
7856 ("*sibcall_aix<mode>"): Likewise.
7857 ("*sibcall_value_aix<mode>"): Likewise.
7858 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7859 ("current_file_function_operand"): Likewise.
7861 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7863 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7864 by making use of the fact that for vector / floating point arguments
7865 passed both in VRs/FPRs and in the fixed parameter area, the partial
7866 bytes mechanism is in fact not used.
7868 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7870 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7871 (rs6000_finish_function_arg): Likewise.
7872 (rs6000_function_arg): Use rs6000_psave_function_arg and
7873 rs6000_finish_function_arg to handle both vector and floating
7874 point arguments that are also passed in GPRs / the stack.
7876 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7878 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7879 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7880 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7881 (rs6000_function_arg_advance_1):Likewise.
7882 (rs6000_darwin64_record_arg_recurse): Likewise.
7883 (rs6000_function_arg): Likewise.
7884 (rs6000_arg_partial_bytes): Likewise.
7886 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7888 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7889 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7890 (rs6000_savres_strategy): Likewise.
7891 (rs6000_return_addr): Likewise.
7892 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7893 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7894 (rs6000_emit_prologue): Likewise.
7895 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7896 (rs6000_elf_declare_function_name): Remove duplicated test.
7897 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7898 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7899 ("load_toc_v4_PIC_1_normal"): Likewise.
7900 ("load_toc_v4_PIC_1_476"): Likewise.
7901 ("load_toc_v4_PIC_1b"): Likewise.
7902 ("load_toc_v4_PIC_1b_normal"): Likewise.
7903 ("load_toc_v4_PIC_1b_476"): Likewise.
7904 ("load_toc_v4_PIC_2"): Likewise.
7905 ("load_toc_v4_PIC_3b"): Likewise.
7906 ("load_toc_v4_PIC_3c"): Likewise.
7907 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7908 (RS6000_SAVE_AREA): Likewise.
7909 (FP_ARG_MAX_REG): Likewise.
7910 (RETURN_ADDRESS_OFFSET): Likewise.
7911 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7913 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7914 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7916 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7918 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7919 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7920 Create call insn directly instead of via various gen_... routines.
7921 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7922 (rs6000_sibcall_aix): New function.
7923 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7924 (TOC_SAVE_OFFSET_64BIT): Likewise.
7925 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7926 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7927 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7928 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7929 ("call" expander): Call rs6000_call_aix.
7930 ("call_value" expander): Likewise.
7931 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7932 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7933 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7934 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7935 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7936 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7937 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7938 ("*call_nonlocal_aix<mode>"): ... this pattern.
7939 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7940 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7941 ("*call_local_aix<mode>"): New insn pattern.
7942 ("*call_value_local_aix<mode>"): Likewise.
7943 ("sibcall" expander): Call rs6000_sibcall_aix.
7944 ("sibcall_value" expander): Likewise. Move earlier in file.
7945 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7946 ("*sibcall_aix<mode>"): ... this pattern.
7947 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7948 ("*sibcall_value_aix<mode>"): ... this pattern.
7949 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7950 (rs6000_call_aix): Add prototype.
7951 (rs6000_sibcall_aix): Likewise.
7953 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7956 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7957 isn't confused by the artificial decl.
7959 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7961 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7962 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7963 Instead, add USEs of all modified call-saved CR fields to the
7964 insn storing the result to the stack slot, and provide an
7965 appropriate REG_FRAME_RELATED_EXPR for that insn.
7966 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7967 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7969 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7970 Alan Modra <amodra@gmail.com>
7972 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7973 of re-evaluating REG_PARM_STACK_SPACE target macro.
7974 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7975 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7976 (assign_parm_find_entry_rtl): Update call.
7977 * calls.c (initialize_argument_information): Update call.
7978 (emit_library_call_value_1): Likewise.
7979 * expr.h (locate_and_pad_parm): Update prototype.
7981 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7983 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7986 2013-11-14 DJ Delorie <dj@redhat.com>
7988 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7991 2013-11-14 Jeff Law <law@redhat.com>
7993 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7994 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7996 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7998 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8001 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8003 * config/aarch64/aarch64-cores.def (example-1): Remove.
8004 (example-2): Likewise.
8005 * config/aarch64/aarch64-tune.md: Regenerate.
8006 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8007 (generic_sched): Remove "large", "small".
8008 * config/aarch64/large.md: Delete.
8009 * config/aarch64/small.md: Delete.
8011 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8013 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8014 * config/aarch64/aarch64-tune.md: Regenerate.
8015 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8016 (generic_sched): "no" if we are tuning for cortexa15.
8017 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8020 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8022 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8023 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8024 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8025 (all_cores): Use cortexa53 when tuning for "generic".
8026 (aarch64_override_options): Fix comment.
8027 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8028 * config/aarch64/aarch64-generic.md: Delete.
8030 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8032 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8034 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8036 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8037 (generic_rtx_cost_table): Remove.
8038 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8039 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8041 (cpu_rtx_cost_table): Remove.
8043 2013-11-14 Julian Brown <julian@codesourcery.com>
8044 Joey Ye <joey.ye@arm.com>
8046 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8047 (arm_v7m_tune): New.
8048 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8049 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8050 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8051 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8053 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8056 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8059 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8060 Uros Bizjak <ubizjak@gmail.com>
8063 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8064 operands[2] satisfies_constraint_Z that might have bit 31 set.
8066 2013-11-13 Jeff Law <law@redhat.com>
8068 PR tree-optimization/59102
8069 * gimple-ssa-isolate-paths.c
8070 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8071 gimple assignment before looking at gimple_assign_lhs.
8073 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8075 * ira.c: Add comment about threads at the top of file.
8077 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8079 * ira-color.c (coalesce_allocnos): Don't allocate and free
8082 2013-11-14 Tom de Vries <tom@codesourcery.com>
8084 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8085 equality for GIMPLE_ASSIGN.
8087 2013-11-14 Tom de Vries <tom@codesourcery.com>
8089 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8091 (gimple_equal_p): ... here.
8093 2013-11-14 Tom de Vries <tom@codesourcery.com>
8095 * trans-mem.c (is_tm_ending): New function.
8096 * gimple.h (is_tm_ending): Declare.
8097 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8099 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8101 2013-11-14 Tom de Vries <tom@codesourcery.com>
8103 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8105 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8107 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8108 (struct walk_stmt_info): Relocate here from gimple.h.
8109 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8110 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8111 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8112 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8113 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8114 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8115 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8116 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8117 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8118 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8119 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8120 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8121 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8122 (struct walk_stmt_info): Move to gimple-walk.h.
8123 (gimple_seq_set_location): Move to gimple.c
8124 * gimple-walk.c: New File.
8125 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8126 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8127 walk_stmt_load_store_ops): Relocate here from gimple.c.
8128 * gimple-iterator.c: Include gimple-iterator.h.
8129 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8130 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8131 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8133 (gimple_seq_set_location): Relocate from gimple.h.
8134 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8135 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8136 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8137 * Makefile.in (OBJS): Add gimple-walk.o
8138 * asan.c: Update Include list as required for gimple-iterator.h and
8140 * cfgexpand.c: Likewise.
8141 * cfgloop.c: Likewise.
8142 * cfgloopmanip.c: Likewise.
8143 * cgraph.c: Likewise.
8144 * cgraphbuild.c: Likewise.
8145 * cgraphunit.c: Likewise.
8146 * gimple-fold.c: Likewise.
8147 * gimple-low.c: Likewise.
8148 * gimple-pretty-print.c: Likewise.
8149 * gimple-ssa-isolate-paths.c: Likewise.
8150 * gimple-ssa-strength-reduction.c: Likewise.
8151 * gimple-streamer-in.c: Likewise.
8152 * gimple-streamer-out.c: Likewise.
8153 * gimplify.c: Likewise.
8154 * graphite-blocking.c: Likewise.
8155 * graphite-clast-to-gimple.c: Likewise.
8156 * graphite-dependences.c: Likewise.
8157 * graphite-interchange.c: Likewise.
8158 * graphite-optimize-isl.c: Likewise.
8159 * graphite-poly.c: Likewise.
8160 * graphite-scop-detection.c: Likewise.
8161 * graphite-sese-to-poly.c: Likewise.
8162 * graphite.c: Likewise.
8163 * ipa-inline-analysis.c: Likewise.
8164 * ipa-profile.c: Likewise.
8165 * ipa-prop.c: Likewise.
8166 * ipa-pure-const.c: Likewise.
8167 * ipa-split.c: Likewise.
8168 * lto-streamer-in.c: Likewise.
8169 * lto-streamer-out.c: Likewise.
8170 * omp-low.c: Likewise.
8171 * predict.c: Likewise.
8172 * profile.c: Likewise.
8174 * tracer.c: Likewise.
8175 * trans-mem.c: Likewise.
8176 * tree-call-cdce.c: Likewise.
8177 * tree-cfg.c: Likewise.
8178 * tree-cfgcleanup.c: Likewise.
8179 * tree-complex.c: Likewise.
8180 * tree-data-ref.c: Likewise.
8181 * tree-dfa.c: Likewise.
8182 * tree-eh.c: Likewise.
8183 * tree-emutls.c: Likewise.
8184 * tree-if-conv.c: Likewise.
8185 * tree-inline.c: Likewise.
8186 * tree-into-ssa.c: Likewise.
8187 * tree-loop-distribution.c: Likewise.
8188 * tree-nested.c: Likewise.
8189 * tree-nrv.c: Likewise.
8190 * tree-object-size.c: Likewise.
8191 * tree-outof-ssa.c: Likewise.
8192 * tree-parloops.c: Likewise.
8193 * tree-predcom.c: Likewise.
8194 * tree-profile.c: Likewise.
8195 * tree-scalar-evolution.c: Likewise.
8196 * tree-sra.c: Likewise.
8197 * tree-ssa-ccp.c: Likewise.
8198 * tree-ssa-coalesce.c: Likewise.
8199 * tree-ssa-copy.c: Likewise.
8200 * tree-ssa-copyrename.c: Likewise.
8201 * tree-ssa-dce.c: Likewise.
8202 * tree-ssa-dom.c: Likewise.
8203 * tree-ssa-dse.c: Likewise.
8204 * tree-ssa-forwprop.c: Likewise.
8205 * tree-ssa-ifcombine.c: Likewise.
8206 * tree-ssa-live.c: Likewise.
8207 * tree-ssa-loop-ch.c: Likewise.
8208 * tree-ssa-loop-im.c: Likewise.
8209 * tree-ssa-loop-ivcanon.c: Likewise.
8210 * tree-ssa-loop-ivopts.c: Likewise.
8211 * tree-ssa-loop-manip.c: Likewise.
8212 * tree-ssa-loop-niter.c: Likewise.
8213 * tree-ssa-loop-prefetch.c: Likewise.
8214 * tree-ssa-loop.c: Likewise.
8215 * tree-ssa-math-opts.c: Likewise.
8216 * tree-ssa-phiopt.c: Likewise.
8217 * tree-ssa-phiprop.c: Likewise.
8218 * tree-ssa-pre.c: Likewise.
8219 * tree-ssa-propagate.c: Likewise.
8220 * tree-ssa-reassoc.c: Likewise.
8221 * tree-ssa-sink.c: Likewise.
8222 * tree-ssa-strlen.c: Likewise.
8223 * tree-ssa-structalias.c: Likewise.
8224 * tree-ssa-tail-merge.c: Likewise.
8225 * tree-ssa-ter.c: Likewise.
8226 * tree-ssa-threadedge.c: Likewise.
8227 * tree-ssa-threadupdate.c: Likewise.
8228 * tree-ssa-uncprop.c: Likewise.
8229 * tree-ssa-uninit.c: Likewise.
8230 * tree-ssa.c: Likewise.
8231 * tree-stdarg.c: Likewise.
8232 * tree-switch-conversion.c: Likewise.
8233 * tree-tailcall.c: Likewise.
8234 * tree-vect-data-refs.c: Likewise.
8235 * tree-vect-generic.c: Likewise.
8236 * tree-vect-loop-manip.c: Likewise.
8237 * tree-vect-loop.c: Likewise.
8238 * tree-vect-patterns.c: Likewise.
8239 * tree-vect-slp.c: Likewise.
8240 * tree-vect-stmts.c: Likewise.
8241 * tree-vectorizer.c: Likewise.
8242 * tree-vrp.c: Likewise.
8245 * value-prof.c: Likewise.
8246 * vtable-verify.c: Likewise.
8248 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8250 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8253 2013-11-13 Jeff Law <law@redhat.com>
8255 * PR middle-end/59119
8256 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8257 function, extracted from gimple_ssa_isolate_erroneous_paths.
8258 (find_explicit_erroneous_behaviour): Similarly.
8259 (insert_trap_and_remove_trailing_statements): Remove statements
8262 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8264 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8265 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8266 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8267 looking at INSN_CODE.
8268 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8269 active_insn_p object, respect basic block boundaries.
8270 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8271 follows immediately after the jump table data label.
8272 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8273 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8274 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8276 2013-11-13 Teresa Johnson <tejohnson@google.com>
8279 * predict.c (drop_profile): Error is currently too strict.
8280 (handle_missing_profiles): Pass call_count to drop_profile.
8282 2013-11-13 Teresa Johnson <tejohnson@google.com>
8285 * ipa-inline.c (edge_badness): Fix overflow.
8287 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8289 PR rtl-optimization/59036
8290 * ira-color.c (struct allocno_color_data): Add new members
8291 first_thread_allocno, next_thread_allocno, thread_freq.
8292 (sorted_copies): New static var.
8293 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8294 (allocno_thread_conflict_p, merge_threads)
8295 (form_threads_from_copies, form_threads_from_bucket)
8296 (form_threads_from_colorable_allocno, init_allocno_threads): New
8298 (bucket_allocno_compare_func): Add comparison by thread frequency
8300 (add_allocno_to_ordered_bucket): Rename to
8301 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8302 (push_only_colorable): Call form_threads_from_bucket.
8303 (color_pass): Call init_allocno_threads. Use
8304 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8305 for nuillify allocno color data.
8306 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8307 (coalesce_allocnos): Use static sorted copies.
8309 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8311 * passes.c (execute_todo): Don't call do_per_function if
8313 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8314 execute_function_dump if dump_file is NULL.
8316 2013-11-13 Martin Jambor <mjambor@suse.cz>
8318 * cgraph.c (cgraph_get_create_node): Do what
8319 cgraph_get_create_real_symbol_node used to do.
8320 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8321 call cgraph_get_create_node.
8322 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8323 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8324 cgraph_get_create_node. Assert we get a node.
8326 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8328 * config/aarch64/aarch64-simd.md (vec_extract): New.
8330 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8332 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8335 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8337 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8338 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8339 or if optimization is enabled.
8340 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8341 require that all the names based on a PARM_DECL or a RESULT_DECL that
8342 isn't ignored for debug info be coalesced.
8344 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8346 * config/c6x/c6x.c: Include "gimple-expr.h".
8348 2013-11-13 Richard Biener <rguenther@suse.de>
8350 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8351 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8352 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8353 dealing with type mismatches inside component reference chains.
8355 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8357 PR tree-optimization/59077
8358 * ipa-pure-const.c (better_state): Update *state.
8360 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8362 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8363 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8364 Update offset calculations.
8366 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8369 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8370 for fields. Do not add the attribute if the size is negative.
8372 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8374 * config/arm/arm.c: Include aarch-cost-tables.h.
8375 (generic_extra_costs): Move from here...
8376 * config/arm/aarch-cost-tables.h: ... To here. New file.
8378 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8379 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8380 Sergey Lega <sergey.s.lega@intel.com>
8381 Anna Tikhonova <anna.tikhonova@intel.com>
8382 Ilya Tocar <ilya.tocar@intel.com>
8383 Andrey Turetskiy <andrey.turetskiy@intel.com>
8384 Ilya Verbin <ilya.verbin@intel.com>
8385 Kirill Yukhin <kirill.yukhin@intel.com>
8386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8388 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8389 * config/i386/predicate.md (const_0_to_4_operand): New.
8390 (const_0_to_5_operand): Ditto.
8391 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8392 (UNSPEC_COMPRESS_STORE): Ditto.
8393 (UNSPEC_EXPAND): Ditto.
8394 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8395 (define_mode_attr ssescalarsize): Ditto.
8396 (avx512f_load<mode>_mask): Ditto.
8397 (avx512f_store<mode>_mask): Ditto.
8398 (avx512f_storedqu<mode>_mask): Ditto.
8399 (avx512f_vmcmp<mode>3_mask): Ditto.
8400 (avx512f_fmadd_<mode>_mask): Ditto.
8401 (avx512f_fmadd_<mode>_mask3): Ditto.
8402 (avx512f_fmsub_<mode>_mask): Ditto.
8403 (avx512f_fmsub_<mode>_mask3): Ditto.
8404 (avx512f_fnmadd_<mode>_mask): Ditto.
8405 (avx512f_fnmadd_<mode>_mask3): Ditto.
8406 (avx512f_fnmsub_<mode>_mask): Ditto.
8407 (avx512f_fnmsub_<mode>_mask3): Ditto.
8408 (avx512f_fmaddsub_<mode>_mask): Ditto.
8409 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8410 (avx512f_fmsubadd_<mode>_mask): Ditto.
8411 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8412 (vec_unpacku_float_lo_v16si): Ditto.
8413 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8414 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8415 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8416 (vec_extract_lo_<mode>_maskm): Ditto.
8417 (vec_extract_hi_<mode>_maskm): Ditto.
8418 (avx512f_vternlog<mode>_mask): Ditto.
8419 (avx512f_shufps512_mask): Ditto.
8420 (avx512f_fixupimm<mode>_mask): Ditto.
8421 (avx512f_shufpd512_mask): Ditto.
8422 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8423 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8424 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8425 (ashr<mode>3<mask_name>): Ditto.
8426 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8427 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8428 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8429 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8430 (avx512f_pshufdv3_mask): Ditto.
8431 (avx512f_perm<mode>_mask): Ditto.
8432 (avx512f_vpermi2var<mode>3_mask): Ditto.
8433 (avx512f_vpermt2var<mode>3_mask): Ditto.
8434 (avx512f_compress<mode>_mask): Ditto.
8435 (avx512f_compressstore<mode>_mask): Ditto.
8436 (avx512f_expand<mode>_mask): Ditto.
8437 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8439 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8440 (<plusminus_insn><mode>3<mask_name>): Ditto.
8441 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8442 (mul<mode>3<mask_name>): Ditto.
8443 (*mul<mode>3<mask_name>): Ditto.
8444 (<sse>_div<mode>3<mask_name>): Ditto.
8445 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8446 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8447 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8448 (<code><mode>3<mask_name>/smaxmin): Ditto.
8449 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8450 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8451 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8452 (ufloatv16siv16sf2<mask_name>): Ditto.
8453 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8454 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8455 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8456 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8457 (ufloatv8siv8df<mask_name>): Ditto.
8458 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8459 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8460 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8461 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8462 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8463 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8464 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8465 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8466 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8467 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8468 (vec_extract_lo_<mode><mask_name>): Ditto.
8469 (vec_extract_hi_<mode><mask_name>): Ditto.
8470 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8471 (avx512f_movddup512<mask_name>): Ditto.
8472 (avx512f_unpcklpd512<mask_name>): Ditto.
8473 (*avx512f_unpcklpd512<mask_name>): Ditto.
8474 (*avx512f_vmscalef<mode>): Ditto.
8475 (avx512f_scalef<mode><mask_name>): Ditto.
8476 (avx512f_getexp<mode><mask_name>): Ditto.
8477 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8478 (avx512f_rndscale<mode><mask_name>): Ditto.
8479 (avx512f_shufps512_1<mask_name>): Ditto.
8480 (avx512f_shufpd512_1<mask_name>): Ditto.
8481 (<plusminus_insn><mode>3<mask_name>): Ditto.
8482 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8483 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8484 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8485 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8486 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8487 (mul<mode>3<mask_name>): Ditto.
8488 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8489 (<shift_insn><mode>3<mask_name>): Ditto.
8490 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8491 (avx512f_<rotate><mode><mask_name>): Ditto.
8492 (<code><mode>3<mask_name>/maxmin): Ditto.
8493 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8494 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8495 (*andnot<mode>3<mask_name>): Ditto.
8496 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8497 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8498 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8499 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8500 (vec_set_lo_<mode><mask_name>): Ditto.
8501 (vec_set_hi_<mode><mask_name>): Ditto.
8502 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8503 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8504 (avx512f_pshufd_1<mask_name>): Ditto.
8505 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8506 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8507 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8508 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8509 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8510 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8511 (avx512er_exp2<mode><mask_name>): Ditto.
8512 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8513 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8514 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8515 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8516 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8517 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8518 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8519 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8520 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8521 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8522 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8523 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8524 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8525 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8526 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8527 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8528 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8529 (avx512f_getmant<mode><mask_name>): Ditto.
8530 (clz<mode>2<mask_name>): Ditto.
8531 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8532 (*srcp14<mode>): Remove visibility.
8533 (*rsqrt14<mode>): Ditto.
8534 (*fma_fmsub_<mode>): Ditto.
8535 (*fma_fnmadd_<mode>): Ditto.
8536 (*avx512f_rndscale<mode>): Ditto.
8537 * config/i386/subst.md: New file.
8539 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8541 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8542 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8543 (atomic_load_explicit, atomic_exchange_explicit)
8544 (atomic_compare_exchange_strong_explicit)
8545 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8546 declare variable initialized with PTR argument.
8548 2013-11-12 Jeff Law <law@redhat.com>
8550 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8551 backedge_seen_p. Set, use and pass it to children appropriately.
8552 (thread_through_normal_block): Similarly.
8553 (thread_across_edge): Similarly.
8555 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8556 memory references as volatile.
8557 (insert_trap_and_remove_trailing_statements): Fix comment.
8559 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8562 * ira-costs.c (record_operand_costs): Check operands number for
8565 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8568 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8569 constraints that would allow DImode into the traditional Altivec
8570 registers, but cause undesirable code generation when loading 0 as
8572 (movdi_internal64): Likewise.
8573 (cmp<mode>_fpr): Do not use %x for CR register output.
8574 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8575 -mallow-upper-sf debug switches are used.
8577 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8579 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8580 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8581 Relocate prototypes from gimple.h.
8582 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8583 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8585 * gimple.h: Move some prototypes to gimplify.h.
8586 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8588 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8589 Relocate from gimpify.c.
8590 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8591 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8592 is_gimple_reg_rhs) Relocate from gimplify.c.
8593 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8594 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8595 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8596 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8597 is_gimple_reg_rhs): Move to gimple-expr.c.
8598 (should_carry_location_p): Move to gimple.c.
8599 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8601 (annotate_one_with_location, annotate_all_with_location_after,
8602 annotate_all_with_location): Move to gimple.c.
8603 (compare_case_labels, sort_case_labels,
8604 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8605 (rhs_predicate_for): Make static.
8606 (gimplify_assign): Relocate from gimple.c.
8607 * gimple.c (gimplify_assign): Move to gimplify.c.
8608 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8609 annotate_one_with_location, annotate_all_with_location_after,
8610 annotate_all_with_location, compare_case_labels, sort_case_labels,
8611 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8612 * tree.h (unshare_expr, unshare_expr_without_location,
8613 mark_addressable): Move prototypes to gimplify.h.
8614 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8616 * asan.c: Include gimplify.h rather than gimple.h.
8617 * cfgloopmanip.c: Likewise.
8618 * cgraphunit.c: Likewise.
8619 * cilk-common.c: Likewise.
8620 * dwarf2out.c: Dont include gimple.h.
8621 * fold-const.c: Include gimplify.h rather than gimple.h.
8622 * function.c: Likewise.
8623 * gimple-fold.c: Likewise.
8624 * gimple-ssa-strength-reduction.c: Likewise.
8625 * graphite-clast-to-gimple.c: Likewise.
8626 * graphite-sese-to-poly.c: Likewise.
8627 * ipa-prop.c: Likewise.
8628 * ipa-split.c: Likewise.
8630 * langhooks.c: Dont include gimple.h.
8631 * loop-init.c: Include gimplify.h rather than gimple.h.
8632 * omp-low.c: Likewise.
8634 * stor-layout.c: Likewise.
8635 * targhooks.c: Likewise.
8636 * trans-mem.c: Likewise.
8637 * tree-affine.c: Likewise.
8638 * tree-cfg.c: Likewise.
8639 * tree-cfgcleanup.c: Likewise.
8640 * tree-complex.c: Likewise.
8641 * tree-if-conv.c: Likewise.
8642 * tree-inline.c: Likewise.
8643 * tree-iterator.c: Likewise.
8644 * tree-loop-distribution.c: Likewise.
8645 * tree-nested.c: Likewise.
8646 * tree-parloops.c: Likewise.
8647 * tree-predcom.c: Likewise.
8648 * tree-profile.c: Likewise.
8649 * tree-scalar-evolution.c: Likewise.
8650 * tree-sra.c: Likewise.
8651 * tree-ssa-address.c: Likewise.
8652 * tree-ssa-ccp.c: Likewise.
8653 * tree-ssa-dce.c: Likewise.
8654 * tree-ssa-forwprop.c: Likewise.
8655 * tree-ssa-ifcombine.c: Likewise.
8656 * tree-ssa-loop-im.c: Likewise.
8657 * tree-ssa-loop-ivopts.c: Likewise.
8658 * tree-ssa-loop-manip.c: Likewise.
8659 * tree-ssa-loop-niter.c: Likewise.
8660 * tree-ssa-loop-prefetch.c: Likewise.
8661 * tree-ssa-loop-unswitch.c: Likewise.
8662 * tree-ssa-math-opts.c: Likewise.
8663 * tree-ssa-phiopt.c: Likewise.
8664 * tree-ssa-phiprop.c: Likewise.
8665 * tree-ssa-pre.c: Likewise.
8666 * tree-ssa-propagate.c: Likewise.
8667 * tree-ssa-reassoc.c: Likewise.
8668 * tree-ssa-sccvn.c: Likewise.
8669 * tree-ssa-strlen.c: Likewise.
8670 * tree-ssa.c: Likewise.
8671 * tree-switch-conversio: Likewise.n.c
8672 * tree-tailcall.c: Likewise.
8673 * tree-vect-data-refs.c: Likewise.
8674 * tree-vect-generic.c: Likewise.
8675 * tree-vect-loop-manip.c: Likewise.
8676 * tree-vect-loop.c: Likewise.
8677 * tree-vect-patterns.c: Likewise.
8678 * tree-vect-stmts.c: Likewise.
8680 * value-prof.c: Likewise.
8681 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8682 * config/alpha/alpha.c: Likewise.
8683 * config/darwin.c: Likewise.
8684 * config/i386/i386.c: Likewise.
8685 * config/ia64/ia64.c: Likewise.
8686 * config/mep/mep.c: Likewise.
8687 * config/mips/mips.c: Likewise.
8688 * config/rs6000/rs6000.c: Likewise.
8689 * config/s390/s390.c: Likewise.
8690 * config/sh/sh.c: Likewise.
8691 * config/sparc/sparc.c: Likewise.
8692 * config/spu/spu.c: Likewise.
8693 * config/stormy16/stormy16.c: Likewise.
8694 * config/tilegx/tilegx.c: Likewise.
8695 * config/tilepro/tilepro.c: Likewise.
8696 * config/xtensa/xtensa.c: Likewise.
8698 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8700 * tree.c (grow_tree_vec_stat): New function ...
8701 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8702 and macro front-end.
8704 2013-11-12 Marek Polacek <polacek@redhat.com>
8706 * final.c (update_alignments): Initialize label to NULL_RTX.
8708 2013-11-12 Jeff Law <law@redhat.com>
8710 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8711 (insert_trap_and_remove_trailing_statements): New argument OP which
8712 is the NULL pointer. Emit the trap after the load/store through
8713 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8714 when trivial to do so.
8715 (isolate_path): Corresponding changes.
8716 (gimple_ssa_isolate_erroneous_path): Likewise.
8718 2013-11-12 Teresa Johnson <tejohnson@google.com>
8719 Jan Hubicka <jh@suse.cz>
8721 * predict.c (drop_profile): New function.
8722 (handle_missing_profiles): Ditto.
8723 (counts_to_freqs): Don't overwrite estimated frequencies
8724 when function has no profile counts.
8725 * predict.h (handle_missing_profiles): Declare.
8726 * tree-inline.c (freqs_to_counts): New function.
8727 (copy_cfg_body): Invoke freqs_to_counts as needed.
8728 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8730 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8733 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8735 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8737 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8740 * config/i386/i386.c (ix86_option_override_internal): Check
8741 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8742 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8743 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8744 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8746 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8747 Clear m_COREI7_AVX and update comments.
8748 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8750 2013-11-12 Martin Jambor <mjambor@suse.cz>
8752 PR rtl-optimization/10474
8753 * ira.c (interesting_dest_for_shprep): New function.
8754 (split_live_ranges_for_shrink_wrap): Likewise.
8755 (find_moveable_pseudos): Move calculation of dominance info,
8756 df_analysios and the final anlyses to...
8757 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8759 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8761 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8762 Handle type conversion.
8764 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8765 Jan Hubicka <jh@suse.cz>
8767 * cgraph.c (dump_cgraph_node): Profile dump added.
8768 * cgraph.h (struct cgraph_node): New time profile variable added.
8769 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8770 * gcov-io.h (gcov_type): New profiler type introduced.
8771 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8772 (input_node): Time profiler is read from LTO stream.
8773 * predict.c (maybe_hot_count_p): Hot prediction changed.
8774 * profile.c (instrument_values): New case for time profiler added.
8775 (compute_value_histograms): Read of time profile.
8776 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8777 * tree-profile.c (init_ic_make_global_vars): Time profiler
8779 (gimple_init_edge_profiler): TP function instrumentation.
8780 (gimple_gen_time_profiler): New.
8781 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8783 (dump_histogram_value): TP type added to dumps.
8784 (visit_hist): More sensitive check that takes TP into account.
8785 (gimple_find_values_to_profile): TP instrumentation.
8786 * value-prof.h (hist_type): New histogram type added.
8787 (struct histogram_value_t): Pointer to struct function added.
8788 * libgcc/Makefile.in: New GCOV merge function for TP added.
8789 * libgcov.c: function_counter variable introduced.
8790 (_gcov_merge_time_profile): New.
8791 (_gcov_time_profiler): New.
8793 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8794 Jeff Law <law@redhat.com>
8796 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8797 ao_ref_init_from_ptr_and_size for builtins.
8799 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8800 H.J. Lu <hongjiu.lu@intel.com>
8803 * config/i386/x86-tune.def
8804 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8805 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8806 * config/i386/i386.h
8807 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8808 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8809 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8810 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8811 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8812 misaligned_prologue_used. Check that
8813 desired_aling <= epilogue_size_needed.
8815 2013-11-11 Cong Hou <congh@google.com>
8817 PR tree-optimization/59050
8818 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8820 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8823 * expmed.c (emit_store_flag): Fail for const-const comparison.
8825 2013-11-11 Tristan Gingold <gingold@adacore.com>
8826 Eric Botcazou <ebotcazou@adacore.com>
8828 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8829 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8830 * tree.def (CONSTRUCTOR): Likewise.
8831 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8832 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8833 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8835 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8837 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8840 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8842 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8845 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8847 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8849 2013-11-08 Jeff Law <law@redhat.com>
8851 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8852 threading paths first, then perform PHI node checks if applicable.
8854 2013-11-10 Karlson2k <k2k@narod.ru>
8855 Kai Tietz <ktietz@redhat.com>
8858 * configure.ac: Adding for exported symbols check
8859 and for rdynamic-check executable-extension.
8860 * configure: Regenerated.
8862 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8864 * mode-switching.c (optimize_mode_switching): Mark block as
8865 nontransparent, if last_mode at block exit is different from no_mode.
8867 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8869 * function.c (NAME__MAIN): Move to...
8870 * cfgexpand.c (NAME__MAIN): ...here.
8872 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8874 * target.def (can_use_doloop_p): New hook.
8875 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8876 * doc/tm.texi: Regenerate.
8877 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8878 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8879 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8880 * targhooks.h (can_use_doloop_if_innermost): Declare.
8881 * targhooks.c (can_use_doloop_if_innermost): New function.
8882 * target.h: Include double-int.h.
8883 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8884 Remove iteration count, maximum iteration count, loop depth and
8885 enter-at-top inputs from doloop_begin and doloop_end.
8886 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8888 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8889 (TARGET_CAN_USE_DOLOOP_P): Define.
8890 * config/arm/thumb2.md (doloop_end): Update for new interface.
8891 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8892 * config/bfin/bfin.md (doloop_end): Update for new interface.
8893 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8894 (TARGET_CAN_USE_DOLOOP_P): Define.
8895 * config/c6x/c6x.md (doloop_end): Update for new interface.
8896 * config/ia64/ia64.md (doloop_end): Update for new interface.
8897 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8898 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8900 * config/mep/mep.c (mep_emit_doloop): Likewise.
8901 (TARGET_CAN_USE_DOLOOP_P): Define.
8902 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8903 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8904 * config/s390/s390.md (doloop_end): Update for new interface.
8905 * config/sh/sh.md (doloop_end): Likewise.
8906 * config/spu/spu.md (doloop_end): Likewise.
8907 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8908 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8909 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8910 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8911 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8912 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8914 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8916 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8919 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8922 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8923 Joseph Myers <joseph@codesourcery.com>
8925 * ginclude/stdatomic.h: New file.
8926 * Makefile.in (USER_H): Add stdatomic.h.
8928 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8930 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8933 2013-11-08 Jeff Law <law@redhat.com>
8935 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8936 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8937 (ssa_redirect_edges, thread_block_1): Use it.
8938 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8939 (thread_through_all_blocks, register_jump_thread): Likewise.
8940 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8942 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8944 * config/arm/aarch-common.c
8945 (search_term): New typedef.
8946 (shift_rtx_costs): New array.
8947 (arm_rtx_shift_left_p): New.
8948 (arm_find_sub_rtx_with_search_term): Likewise.
8949 (arm_find_sub_rtx_with_code): Likewise.
8950 (arm_early_load_addr_dep): Add sanity checking.
8951 (arm_no_early_alu_shift_dep): Likewise.
8952 (arm_no_early_alu_shift_value_dep): Likewise.
8953 (arm_no_early_mul_dep): Likewise.
8954 (arm_no_early_store_addr_dep): Likewise.
8956 2013-11-08 Richard Biener <rguenther@suse.de>
8958 PR tree-optimization/59047
8959 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8961 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8963 * common.opt (fcheck-pointer-bounds): Move to ...
8964 * c-family/c.opt: ... here.
8965 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8966 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8967 * langhooks.h (lang_hooks): Remove chkp_supported field.
8968 * toplev.c (process_options): Remove chkp_supported check.
8970 2013-11-08 Richard Biener <rguenther@suse.de>
8972 PR tree-optimization/59038
8973 PR tree-optimization/58955
8974 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8975 previous change. Handle known dependences correctly.
8977 2013-11-08 Tom de Vries <tom@codesourcery.com>
8979 * config/rs6000/t-xilinx: Remove duplicate contents.
8981 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8982 Joseph Myers <joseph@codesourcery.com>
8984 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8985 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8986 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8987 (struct tree_base): Add atomic_flag field.
8988 * tree.h (TYPE_ATOMIC): New accessor macro.
8989 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8990 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8991 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8992 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8993 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8994 (find_atomic_core_type): New function.
8995 (build_qualified_type): Adjust alignment for qualified types.
8996 (build_atomic_base): New function
8997 (build_common_tree_nodes): Build atomicQI_type_node,
8998 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9000 * print-tree.c (print_node): Print atomic qualifier.
9001 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9002 * target.def (atomic_assign_expand_fenv): New hook.
9003 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9004 * doc/tm.texi: Regenerate.
9005 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9006 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9007 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9008 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9010 * config/i386/i386.c (enum ix86_builtins): Add
9011 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9012 IX86_BUILTIN_FNCLEX.
9013 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9014 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9015 (ix86_expand_builtin): Handle the new built-in functions.
9016 (ix86_atomic_assign_expand_fenv): New function.
9017 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9018 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9019 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9020 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9022 2013-11-07 Steve Ellcey <sellcey@mips.com>
9024 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9025 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9026 (MULTILIB_DIRNAMES): Add fp64 directory.
9027 (MULTILIB_EXCEPTIONS): Add new exclusions.
9029 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9031 * gimplify.c (gimple_regimplify_operands): Do not set
9033 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9034 (rewrite_close_phi_out_of_ssa): Same.
9035 (rewrite_phi_out_of_ssa): Same.
9036 (rewrite_degenerate_phi): Same.
9037 (handle_scalar_deps_crossing_scop_limits): Same.
9038 * tree-if-conv.c (predicate_scalar_phi): Same.
9039 * tree-parloops.c (create_loads_for_reductions): Same.
9040 (create_final_loads_for_reduction): Same.
9041 (create_loads_and_stores_for_name): Same.
9042 (transform_to_exit_first_loop): Same.
9043 (create_parallel_loop): Same.
9044 * tree-ssa-loop-im.c
9045 (move_computations_dom_walker::before_dom_children): Same.
9046 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9047 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9048 * tree-ssa-propagate.c (substitute_and_fold): Same.
9049 * tree-vect-loop.c (vect_finalize_reduction): Same.
9050 * tree-vect-stmts.c (vectorizable_call): Same.
9052 2013-11-07 Mike Stump <mikestump@comcast.net>
9054 * config/pdp11/pdp11.c: Include dbxout.h.
9055 * config/picochip/picochip.c: Likewise.
9057 2013-11-07 Cong Hou <congh@google.com>
9059 PR tree-optimization/56764
9060 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9061 Combine alias checks if it is possible to amortize the runtime
9062 overhead. Return the number of alias checks after merging.
9063 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9064 Use the function vect_create_cond_for_alias_checks () to check
9065 the number of alias checks.
9067 2013-11-07 Jeff Law <law@redhat.com>
9069 * varpool.c (ctor_for_folding): Fix typo in comment.
9071 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9073 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9074 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9076 2013-11-07 Jeff Law <law@redhat.com>
9078 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9080 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9081 No longer check if we have __builtin_trap, assume it's available.
9083 2013-11-07 Diego Novillo <dnovillo@google.com>
9085 * attribs.c (lookup_scoped_attribute_spec): Make static.
9086 (get_attribute_namespace): Likewise.
9087 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9088 (validate_arglist): Move earlier in the file. Make static.
9089 (expand_stack_restore): Move from stmt.c
9090 (expand_stack_save): Move from stmt.c
9091 (rewrite_call_expr_array): Move earlier in the file.
9092 (rewrite_call_expr_valist): Likewise.
9093 * cfgexpand.c: Include hard-reg-set.h before tree.h
9096 (expand_asm_loc): Move from stmt.c.
9097 (n_occurrences): Move from stmt.c.
9098 (check_operand_nalternatives): Move from stmt.c.
9099 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9100 (expand_asm_operands): Move from stmt.c
9101 (expand_asm_stmt): Move from stmt.c
9102 (expand_computed_goto): Move from stmt.c
9103 (expand_goto): Move from stmt.c
9104 (expand_null_return_1): Move from stmt.c
9105 (expand_null_return): Move from stmt.c
9106 (expand_value_return): Move from stmt.c
9107 (expand_return): Move from stmt.c
9108 (expand_main_function): Move from function.c
9109 (stack_protect_prologue): Move from function.c
9110 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9111 (build_function_decl_skip_args): Move from tree.c.
9112 * explow.c (tree_expr_size): Move from tree.c.
9113 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9114 (fields_length): Move from tree.c.
9115 * fold-const.c (size_low_cst): Move from tree.c.
9116 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9117 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9118 (fold_build3_initializer_loc): Remove.
9119 (tree_invalid_nonnegative_warnv_p): Make static.
9120 * function.c (expand_main_function): Move to cfgexpand.c.
9121 (stack_protect_prologue): Move to cfgexpand.c.
9122 (set_insn_locations): Move earlier in the file.
9123 * gimple-fold.c: Include langhooks.h.
9124 (truth_type_for): Move from tree.c.
9125 * print-tree.c (print_vec_tree): Remove.
9126 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9127 (expand_goto): Move to cfgexpand.c.
9128 (n_occurrences): Move to cfgexpand.c.
9129 (expand_asm_loc): Move to cfgexpand.c
9130 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9131 (expand_asm_operands): Move to cfgexpand.c.
9132 (expand_asm_stmt): Move to cfgexpand.c.
9133 (check_operand_nalternatives): Move to cfgexpand.c
9134 (expand_null_return): Move to cfgexpand.c.
9135 (expand_value_return): Move to cfgexpand.c.
9136 (expand_null_return_1): Move to cfgexpand.c.
9137 (expand_return): Move to cfgexpand.c.
9138 (expand_stack_save): Move to builtins.c.
9139 (expand_stack_restore): Move to builtins.c
9140 * symtab.c: Include output.h.
9141 (decl_assembler_name_hash): Move from tree.c.
9142 (decl_assembler_name_equal): Move from tree.c.
9143 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9144 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9145 (range_in_array_bounds_p): Move from tree.c.
9146 * tree-object-size.c (fini_object_sizes): Make static.
9147 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9148 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9149 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9150 (tree_expr_size): Move to explow.c.
9151 (decl_assembler_name_hash): Move to symtab.c.
9152 (real_twop): Remove.
9153 (tree_expr_size): Move to explow.c.
9154 (stabilize_reference_1): Move earlier in the file. Make static.
9155 (omp_remove_redundant_declare_simd_attrs): Remove.
9156 (simple_cst_list_equal): Move earlier in the file. Make static.
9157 (size_low_cst): Move to fold-const.c.
9158 (build_type_no_quals): Remove.
9159 (build_function_type_skip_args): Move to cgraphclones.c.
9160 (build_function_decl_skip_args): Move to cgraphclones.c.
9161 (in_array_bounds_p): Move to tree-eh.c.
9162 (range_in_array_bounds_p): Move to tree-eh.c.
9163 (truth_type_for): Move to gimple-fold.c.
9164 (list_equal_p): Remove.
9165 * tree.h (decl_assembler_name_equal): Remove.
9166 (decl_assembler_name_hash): Remove.
9167 (truth_type_for): Remove.
9168 (build_type_no_quals): Remove.
9169 (build_function_decl_skip_args): Remove.
9170 (in_array_bounds_p): Remove.
9171 (range_in_array_bounds_p): Remove.
9172 (size_low_cst): Remove.
9173 (omp_remove_redundant_declare_simd_attrs): Remove.
9174 (tree_expr_size): Remove.
9175 (fields_length): Remove.
9176 (stabilize_reference_1): Remove.
9177 (expand_goto): Remove.
9178 (expand_stack_save): Remove.
9179 (expand_stack_restore): Remove.
9180 (expand_return): Remove.
9181 (fold_build3_initializer_loc): Remove.
9182 (tree_expr_nonzero_p): Remove.
9183 (tree_invalid_nonnegative_warnv_p): Remove.
9184 (tree_expr_nonzero_warnv_p): Remove.
9185 (fold_builtin_snprintf_chk): Remove.
9186 (validate_arglist): Remove.
9187 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9188 (simple_cst_list_equal): Remove.
9189 (real_twop): Remove.
9190 (expand_main_function): Remove.
9191 (stack_protect_prologue): Remove.
9192 (print_vec_tree): Remove.
9193 (lookup_scoped_attribute_spec): Remove.
9194 (get_attribute_namespace): Remove.
9195 (expand_computed_goto): Remove.
9196 (expand_asm_stmt): Remove.
9197 (list_equal_p): Remove.
9198 (ssa_name_nonnegative_p): Remove.
9199 (fini_object_sizes): Remove.
9200 (addr_expr_of_non_mem_decl_p): Remove.
9201 (is_tm_safe_or_pure): Move to trans-mem.c.
9202 (more_const_call_expr_args_p): Remove.
9203 (save_vtable_map_decl): Remove.
9205 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9207 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9208 linker plugins, too.
9210 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9211 link to libgomp and its dependencies.
9212 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9213 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9214 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9215 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9217 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9219 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9220 (determine_value_range): Add loop argument. Use get_range_info to
9222 (bound_difference): Adjust caller.
9224 2013-11-07 Richard Biener <rguenther@suse.de>
9225 Jakub Jelinek <jakub@redhat.com>
9227 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9228 latches from header PHI arguments from the latch edge.
9230 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9233 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9235 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9237 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9238 misaligned_prologue_used when it has been set.
9240 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9241 Jakub Jelinek <jakub@redhat.com>
9244 * asan.c (get_mem_refs_of_builtin_call): Allow
9245 integer literals as addresses in instrumented builtins.
9247 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9249 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9250 Explain why plus_constant is not used.
9252 2013-11-07 Richard Biener <rguenther@suse.de>
9254 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9255 (canonicalize_value): ... this. Also handle stripping of
9257 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9258 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9259 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9261 2013-11-07 Richard Biener <rguenther@suse.de>
9263 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9265 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9268 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9269 with stack_pointer_rtx.
9271 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9273 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9274 using operand_equal_p.
9276 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9278 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9279 * tree-affine.c (get_inner_reference_aff): Return base.
9280 * tree-affine.h (get_inner_reference_aff): Change prototype.
9282 2013-11-06 Tobias Burnus <burnus@net-b.de>
9284 * doc/invoke.texi (Wdate-time): Fix typo.
9286 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9288 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9289 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9290 fp_arith_reg_operand instead of arith_reg_operand.
9292 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9294 * config/sh/sh.md (adddi3): Remove empty constraints.
9295 Remove can_create_pseudo_p and arith_reg_operand check.
9296 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9297 Split before reload.
9299 2013-11-06 Jeff Law <law@redhat.com>
9300 Tom Tromey <tromey@redhat.com>
9302 * gdbinit.in: Disable strict type checking.
9304 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9306 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9307 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9308 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9309 (rest_of_handle_live_range_shrinkage): Ditto
9310 (class pass_live_range_shrinkage): Ditto.
9311 (pass_data_live_range_shrinkage): Ditto.
9312 (make_pass_live_range_shrinkage): Ditto.
9313 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9314 (finish_live_range_shrinkage): Ditto.
9315 * sched-deps.c (create_insn_reg_set): Make void return value.
9316 * passes.def: Add pass_live_range_shrinkage.
9317 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9318 * haifa-sched.c (live_range_shrinkage_p): New.
9319 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9321 (rank_for_schedule): Add code for pressure relief through live
9323 (schedule_insn): Print more debug info.
9324 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9325 through live range shrinkage.
9326 * doc/invoke.texi (-flive-range-shrinkage): New.
9327 * common.opt (flive-range-shrinkage): New.
9329 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9332 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9333 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9334 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9335 RTXes that return in AVX256 register.
9337 2013-11-06 Richard Biener <rguenther@suse.de>
9339 PR tree-optimization/58653
9340 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9341 (prepare_initializers_chain): Adjust.
9343 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9345 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9346 (gimple_in_transaction): Use bb_in_transaction.
9347 * basic-block.h (bb_in_transaction): Relocate here and rename.
9348 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9350 2013-11-06 Richard Biener <rguenther@suse.de>
9352 * tree.c (drop_tree_overflow): New function.
9353 * tree.h (drop_tree_overflow): Declare.
9354 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9355 * tree-vrp.c (range_int_cst_singleton_p): Use
9356 is_overflow_infinity instead of testing TREE_OVERFLOW.
9357 (extract_range_from_assert): Likewise.
9358 (zero_nonzero_bits_from_vr): Likewise.
9359 (extract_range_basic): Likewise.
9360 (register_new_assert_for): Use drop_tree_overflow.
9361 (vrp_visit_phi_node): Likewise.
9363 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9365 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9366 checking for leaf functions without dynamic stack allocation.
9367 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9368 (ia64_expand_prologue): Likewise.
9369 * config/mips/mips.c (mips_expand_prologue): Likewise.
9370 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9371 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9372 (sparc_flat_expand_prologue): Likewise.
9374 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9376 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9377 (__ST3_LANE_FUNC): Likewise.
9378 (__ST4_LANE_FUNC): Likewise.
9380 2013-11-06 Nick Clifton <nickc@redhat.com>
9382 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9383 name returned by msp430_mcu_name.
9384 (LIB_SPEC): If a -T option has not been specified then set a
9385 default, mcu-specific, linker script.
9386 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9387 * config/msp430/msp430.c (msp430x_names): Likewise.
9388 Alpha sort the names for ease of comparison.
9389 (msp430_mcu_name): New function: Returns a string suitable for
9390 use as a C preprocessor symbol based upon the name of the MCU
9392 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9394 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9396 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9397 unless it is the last part of a spec substring.
9398 * doc/invoke.texi (Spec Files): Document space insertion
9401 2013-11-06 Christian Bruel <christian.bruel@st.com>
9403 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9404 Factorize probabilities, Use adjust_address instead of
9405 adjust_automodify_address when possible. Enable for optimize.
9406 (sh_expand_strlen): New function.
9407 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9408 * config/sh/sh.md (strlensi): New pattern.
9409 (UNSPEC_BUILTIN_STRLEN): Define.
9411 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9414 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9415 (expand_assignment): If *bitpos is negative, set *offset
9416 and adjust *bitpos, so that it is not negative.
9418 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9420 * config/i386/bdver3.md : Added two additional decoder units
9421 to support issue rate of 4 and remodeled vector unit.
9422 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9423 architectures is set to 4.
9424 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9425 lookahead is set to 4 for BD architectures.
9427 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9429 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9430 Remove restriction against use of VSX instructions when generating
9431 code for little endian mode.
9433 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9435 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9436 for both big and little endian.
9437 (mulv8hi3): Swap input operands for merge high and merge low
9438 instructions for little endian.
9440 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9442 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9443 define_insn to define_expand that uses even patterns for big
9444 endian and odd patterns for little endian.
9445 (vec_widen_smult_even_v16qi): Likewise.
9446 (vec_widen_umult_even_v8hi): Likewise.
9447 (vec_widen_smult_even_v8hi): Likewise.
9448 (vec_widen_umult_odd_v16qi): Likewise.
9449 (vec_widen_smult_odd_v16qi): Likewise.
9450 (vec_widen_umult_odd_v8hi): Likewise.
9451 (vec_widen_smult_odd_v8hi): Likewise.
9452 (altivec_vmuleub): New define_insn.
9453 (altivec_vmuloub): Likewise.
9454 (altivec_vmulesb): Likewise.
9455 (altivec_vmulosb): Likewise.
9456 (altivec_vmuleuh): Likewise.
9457 (altivec_vmulouh): Likewise.
9458 (altivec_vmulesh): Likewise.
9459 (altivec_vmulosh): Likewise.
9461 2013-11-05 Mike Stump <mikestump@comcast.net>
9463 * Makefile.in (mostlyclean): Remove c-family objects.
9465 2013-11-05 Ian Lance Taylor <iant@google.com>
9467 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9468 If possible, add .cfi directives to record change to bx.
9469 * config/i386/i386.c (ix86_emit_cfi): New function.
9470 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9472 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9474 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9475 immediately after a label for a tablejump pattern.
9477 * config/arm/arm.c (is_jump_table): Remove.
9478 (create_fix_barrier): Use tablejump_p instead.
9479 (arm_reorg): Likewise.
9480 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9481 (thumb2_output_casesi): Likewise.
9482 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9483 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9484 casesi_shift_media, casesi_load_media): Likewise.
9485 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9486 * config/microblaze/microblaze.md: Likewise.
9488 2013-11-05 Tobias Burnus <burnus@net-b.de>
9490 * doc/invoke.texi (-Wdate-time): Document.
9492 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9494 * double-int.c (lshift_double, rshift_double): Remove
9495 SHIFT_COUNT_TRUNCATED handling.
9497 2013-11-05 Jeff Law <law@redhat.com>
9499 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9500 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9501 * gimple-ssa-isolate-paths.c: New file.
9502 * gimple.c (check_loadstore): New function.
9503 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9504 Verify OP is in the argument list and the argument corresponding
9505 to OP is a pointer type. Use operand_equal_p rather than
9506 pointer equality when testing if OP is on the nonnull list.
9507 Use check_loadstore rather than count_ptr_derefs. Handle
9508 GIMPLE_RETURN statements.
9509 * tree-vrp.c (infer_nonnull_range): Remove.
9510 * gimple.h (infer_nonnull_range): Declare.
9511 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9512 * passes.def: Add pass_isolate_erroneous_paths.
9513 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9514 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9515 * tree-ssa.c (struct count_ptr_d): Remove.
9516 (count_ptr_derefs, count_uses_and_derefs): Remove.
9517 * tree-ssa.h (count_uses_and_derefs): Remove.
9519 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9521 PR rtl-optimization/58997
9522 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9523 get_iv_value to be in iv->mode rather than iv->extend_mode.
9524 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9525 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9526 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9529 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9531 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9533 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9534 Move to gimple-expr.h.
9535 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9536 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9537 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9538 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9540 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9541 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9542 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9543 is_gimple_address, is_gimple_invariant_address,
9544 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9545 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9546 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9547 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9548 gimple_decl_printable_name, useless_type_conversion_p,
9549 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9551 * gimple-expr.c: New File.
9552 (useless_type_conversion_p, gimple_set_body, gimple_body,
9553 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9554 gimple_can_coalesce_p, extract_ops_from_tree_1,
9555 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9556 is_gimple_address, is_gimple_invariant_address,
9557 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9558 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9559 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9560 is_gimple_mem_ref_addr): Relocate here.
9561 * Makefile.in (OBJS): Add gimple-expr.o.
9563 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9565 * gengtype-parse.c (struct_field_seq): Support empty structs.
9567 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9569 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9571 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9573 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9575 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9577 (LONG_DOUBLE_TYPE_SIZE): New define.
9578 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9580 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9583 * doc/extend.texi [visibility ("visibility_type")]: Add example
9584 about visibility attribute on namespace declaration.
9586 2013-11-05 Richard Biener <rguenther@suse.de>
9589 * passes.def (all_passes): Start with pass_fixup_cfg again.
9591 2013-11-05 Richard Biener <rguenther@suse.de>
9593 PR tree-optimization/58955
9594 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9597 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9599 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9601 (vec_pack_ufix_trunc_v2df): Likewise.
9603 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9606 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9607 pattern, instead of word_mode.
9609 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9611 (set_storage_via_setmem): Likewise.
9613 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9615 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9616 gimple.h and the rest of the condition in eliminate_build.
9617 (eliminate_build): Call new routine.
9618 * gimple.h (phi_ssa_name_p): Delete.
9620 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9622 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9623 case of no prefix and reserving zero slots, because when that's the
9624 case we'll never get here.
9625 * vec.h (va_heap::reserve): Don't try and handle
9626 vec_prefix::calculate_allocation returning zero because that should
9629 2013-11-05 Richard Biener <rguenther@suse.de>
9632 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9633 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9634 process trailing array detection before diving into the
9635 view-converted object (and possibly apply some extra offset).
9637 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9639 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9641 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9643 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9645 PR tree-optimization/58958
9646 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9647 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9649 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9651 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9652 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9654 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9656 PR tree-optimization/58984
9657 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9658 set *SIZE_P if non-NULL on success.
9659 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9661 (ipcp_transform_function): Likewise. Punt if size of access
9662 is different from TYPE_SIZE on v->value's type.
9664 2013-11-05 Tobias Burnus <burnus@net-b.de>
9666 * doc/invoke.texi (-fopenmp-simd): Document new option.
9667 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9668 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9669 * tree.c (attribute_value_equal): Ditto.
9671 2013-11-04 Wei Mi <wmi@google.com>
9673 * sched-rgn.c (add_branch_dependences): Keep insns in
9674 a SCHED_GROUP at the end of BB to remain their location.
9676 2013-11-04 Wei Mi <wmi@google.com>
9678 * config/i386/i386.c (memory_address_length): Extract a part
9679 of code to rip_relative_addr_p.
9680 (rip_relative_addr_p): New Function.
9681 (ix86_macro_fusion_p): Ditto.
9682 (ix86_macro_fusion_pair_p): Ditto.
9683 * config/i386/i386.h: Add new tune features about macro-fusion.
9684 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9685 * doc/tm.texi: Generated.
9686 * doc/tm.texi.in: Ditto.
9687 * haifa-sched.c (try_group_insn): New Function.
9688 (group_insns_for_macro_fusion): Ditto.
9689 (sched_init): Call group_insns_for_macro_fusion.
9690 * target.def: Add two hooks: macro_fusion_p and
9691 macro_fusion_pair_p.
9693 2013-11-04 Kostya Serebryany <kcc@google.com>
9695 Update to match the changed asan API.
9696 * asan.c (asan_function_start): New function.
9697 (asan_emit_stack_protection): Update the string stored in the
9698 stack red zone to match new API. Store the PC of the current
9699 function in the red zone.
9700 (asan_global_struct): Update the __asan_global definition to match
9702 (asan_add_global): Ditto.
9703 * asan.h (asan_function_start): New prototype.
9704 * final.c (final_start_function): Call asan_function_start.
9705 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9708 2013-11-04 Wei Mi <wmi@google.com>
9710 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9711 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9712 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9713 (ix86_issue_rate): Ditto.
9714 (ix86_adjust_cost): Ditto.
9715 (ia32_multipass_dfa_lookahead): Ditto.
9716 (ix86_sched_init_global): Ditto.
9717 (get_builtin_code_for_version): Ditto.
9718 * config/i386/i386.h (enum target_cpu_default): Ditto.
9719 (enum processor_type): Ditto.
9720 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9722 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9724 PR rtl-optimization/58967
9725 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9726 !lra_in_progress for mode sizes bigger word.
9728 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9730 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9731 arguments to merge instruction for little endian.
9732 (vec_widen_umult_lo_v16qi): Likewise.
9733 (vec_widen_smult_hi_v16qi): Likewise.
9734 (vec_widen_smult_lo_v16qi): Likewise.
9735 (vec_widen_umult_hi_v8hi): Likewise.
9736 (vec_widen_umult_lo_v8hi): Likewise.
9737 (vec_widen_smult_hi_v8hi): Likewise.
9738 (vec_widen_smult_lo_v8hi): Likewise.
9740 2013-11-04 Ian Lance Taylor <iant@google.com>
9742 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9743 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9744 builtins that take pointers.
9745 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9746 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9747 (run_gcc): Pass -fnon-call-exceptions.
9749 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9751 * optabs.c (expand_vec_perm): Revert one incorrect line from
9754 PR tree-optimization/58978
9755 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9756 use_stmt by single_imm_use directly. Only call single_imm_use
9759 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9761 PR rtl-optimization/58968
9762 * lra-spills.c (return_regno_p): New function.
9763 (lra_final_code_change): Use it.
9765 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9767 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9768 * target.def (float_exceptions_rounding_supported_p): New hook.
9769 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9771 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9772 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9774 * doc/tm.texi: Regenerate.
9775 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9776 * config/rs6000/rs6000-linux.c: New file.
9777 * config/rs6000/rs6000-protos.h
9778 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9779 * config/rs6000/linux.h
9780 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9781 * config/rs6000/linux64.h
9782 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9783 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9784 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9786 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9788 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9789 Replace the define_insn_and_split with a define_insn and two
9790 define_splits, with the split after reload re-permuting the source
9791 register to its original value.
9792 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9793 (*vsx_le_perm_store_v8hi): Likewise.
9794 (*vsx_le_perm_store_v16qi): Likewise.
9796 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9798 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9801 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9803 PR tree-optimization/58946
9804 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9805 bbs with bbinfo[idx].op != NULL before all blocks with
9806 bbinfo[idx].op == NULL.
9808 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9810 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9811 (avr_dump_double_int_hex): Likewise.
9812 (avr_log_vadump): Remove %D and %X handling.
9813 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9814 (avr_map_op_t): Change map from double_int to unsigned int.
9815 (avr_map_op): Update accordingly.
9816 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9817 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9818 unsigned ints rather than double_ints.
9820 2013-11-03 Marek Polacek <polacek@redhat.com>
9822 Implement -fsanitize=vla-bound.
9823 * opts.c (common_handle_option): Handle vla-bound.
9824 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9825 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9826 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9828 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9830 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9833 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9835 * config/i386/constraints.md (Ts, Tv): New address constrains.
9836 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9837 constraint for address_no_seg_operand.
9838 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9839 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9840 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9841 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9842 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9843 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9844 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9845 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9846 constraint for vsib_address_operand.
9848 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9850 * gcse.c (pre_delete): Remove references to regmove from comments.
9851 * recog.c: (validate_replace_rtx_1): Likewise.
9852 * config/rl78/rl78.c: Likewise.
9853 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9854 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9855 * common/config/mmix/mmix-common.c: Likewise.
9857 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9859 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9860 * gimplify.c (gimplify_compound_lval): Likewise.
9861 * graphite-clast-to-gimple.c (gloog): Likewise.
9862 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9863 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9864 (limit_scop); Likewise.
9865 (build_scops): Likewise.
9866 (dot_scop): Likewise.
9867 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9868 (build_scop_drs): Likewise.
9869 (insert_stmts): Likewise.
9870 (insert_out_of_ssa_copy): Likewise.
9871 (remove_phi): Likewise.
9872 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9873 * hw-doloop.c (discover_loop): Likewise.
9874 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9875 * tree-dfa.c (dump_enumerated_decls): Likewise.
9876 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9877 * tree-inline.c (tree_function_versioning): Likewise.
9878 * tree-loop-distribution.c (build_rdg): Likewise.
9879 (rdg_flag_vertex_and_dependent): Likewise.
9880 (distribute_loop): Likewise.
9881 * tree-parloops.c (loop_parallel_p): Likewise.
9882 (eliminate_local_variables): Likewise.
9883 (separate_decls_in_region): Likewise.
9884 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9885 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9886 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9887 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9888 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9889 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9890 (vectorizable_condition): Likewise.
9892 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9894 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9895 * configure: Regenerate.
9896 * config/i386/i386.md (*movdi_internal): Change
9897 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9898 (*movdf_internal): Ditto.
9899 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9900 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9901 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9903 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9905 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9908 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9910 Automated part of renaming of symtab_node_base to symtab_node.
9912 Patch autogenerated by rename_symtab.py from
9913 https://github.com/davidmalcolm/gcc-refactoring-scripts
9914 revision 58bb219cc090b2f4516a9297d868c245495ee622
9915 with ChangeLog entry fixed up by hand.
9917 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9919 (cgraph_node_for_asm): Likewise.
9920 * cgraph.h (symtab_node_base): Likewise.
9921 (cgraph_node): Likewise.
9922 (varpool_node): Likewise.
9923 (is_a_helper <cgraph_node>::test): Likewise.
9924 (is_a_helper <varpool_node>::test): Likewise.
9925 (symtab_nodes): Likewise.
9926 (symtab_register_node): Likewise.
9927 (symtab_unregister_node): Likewise.
9928 (symtab_remove_node): Likewise.
9929 (symtab_get_node): Likewise.
9930 (symtab_node_for_asm): Likewise.
9931 (symtab_node_asm_name): Likewise.
9932 (symtab_node_name): Likewise.
9933 (symtab_insert_node_to_hashtable): Likewise.
9934 (symtab_add_to_same_comdat_group): Likewise.
9935 (symtab_dissolve_same_comdat_group_list): Likewise.
9936 (dump_symtab_node): Likewise.
9937 (debug_symtab_node): Likewise.
9938 (dump_symtab_base): Likewise.
9939 (verify_symtab_node): Likewise.
9940 (verify_symtab_base): Likewise.
9941 (symtab_used_from_object_file_p): Likewise.
9942 (symtab_alias_ultimate_target): Likewise.
9943 (symtab_resolve_alias): Likewise.
9944 (fixup_same_cpp_alias_visibility): Likewise.
9945 (symtab_for_node_and_aliases): Likewise.
9946 (symtab_nonoverwritable_alias): Likewise.
9947 (availability symtab_node_availability): Likewise.
9948 (symtab_semantically_equivalent_p): Likewise.
9949 (fixup_same_cpp_alias_visibility): Likewise.
9950 (symtab_prevail_in_asm_name_hash): Likewise.
9952 (varpool): Likewise.
9953 (varpool_first_variable): Likewise.
9954 (varpool_next_variable): Likewise.
9955 (varpool_first_static_initializer): Likewise.
9956 (varpool_next_static_initializer): Likewise.
9957 (varpool_first_defined_variable): Likewise.
9958 (varpool_next_defined_variable): Likewise.
9959 (cgraph_first_defined_function): Likewise.
9960 (cgraph_next_defined_function): Likewise.
9961 (cgraph_first_function): Likewise.
9962 (cgraph_next_function): Likewise.
9963 (cgraph_first_function_with_gimple_body): Likewise.
9964 (cgraph_next_function_with_gimple_body): Likewise.
9965 (symtab_alias_target): Likewise.
9966 (symtab_real_symbol_p): Likewise.
9967 (symtab_can_be_discarded): Likewise.
9968 * cgraphbuild.c (mark_address): Likewise.
9969 (mark_load): Likewise.
9970 (mark_store): Likewise.
9971 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9973 (enqueue_node): Likewise.
9974 (referred_to_p): Likewise.
9975 (cgraph_process_same_body_aliases): Likewise.
9976 (analyze_functions): Likewise.
9977 (handle_alias_pairs): Likewise.
9978 (output_weakrefs): Likewise.
9979 (compile): Likewise.
9980 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9981 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9982 * ipa-prop.c (remove_described_reference): Likewise.
9983 (try_decrement_rdesc_refcount): Likewise.
9984 (ipa_edge_duplication_hook): Likewise.
9985 * ipa-ref.c (ipa_record_reference): Likewise.
9986 (ipa_maybe_record_reference): Likewise.
9987 (ipa_clone_ref): Likewise.
9988 (ipa_clone_references): Likewise.
9989 (ipa_clone_referring): Likewise.
9990 (ipa_find_reference): Likewise.
9991 (ipa_remove_stmt_references): Likewise.
9992 (ipa_clear_stmts_in_references): Likewise.
9993 * ipa-ref.h (symtab_node_base): Likewise.
9994 (ipa_ref): Likewise.
9995 (ipa_record_reference): Likewise.
9996 (ipa_maybe_record_reference): Likewise.
9997 (ipa_clone_references): Likewise.
9998 (ipa_clone_referring): Likewise.
9999 (ipa_clone_ref): Likewise.
10000 (ipa_find_reference): Likewise.
10001 (ipa_remove_stmt_references): Likewise.
10002 (ipa_clear_stmts_in_references): Likewise.
10003 * ipa-reference.c (ipa_reference_write_optimization_summary):
10005 * ipa.c (enqueue_node): Likewise.
10006 (process_references): Likewise.
10007 (walk_polymorphic_call_targets): Likewise.
10008 (symtab_remove_unreachable_nodes): Likewise.
10009 (address_taken_from_non_vtable_p): Likewise.
10010 (comdat_can_be_unshared_p_1): Likewise.
10011 (comdat_can_be_unshared_p): Likewise.
10012 (can_replace_by_local_alias): Likewise.
10013 (function_and_variable_visibility): Likewise.
10014 * is-a.h: Likewise (within example in comment).
10015 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10016 (lto_symtab_encoder_encode): Likewise.
10017 (lto_symtab_encoder_delete_node): Likewise.
10018 (lto_symtab_encoder_in_partition_p): Likewise.
10019 (lto_set_symtab_encoder_in_partition): Likewise.
10020 (output_refs): Likewise.
10021 (compute_ltrans_boundary): Likewise.
10022 (output_symtab): Likewise.
10023 (input_node): Likewise.
10024 (input_ref): Likewise.
10025 (input_edge): Likewise.
10026 (input_cgraph_1): Likewise.
10027 (input_refs): Likewise.
10028 (output_cgraph_opt_summary): Likewise.
10029 (input_node_opt_summary): Likewise.
10030 (input_cgraph_opt_section): Likewise.
10031 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10033 * lto-streamer-out.c (lto_output): Likewise.
10034 (output_symbol_p): Likewise.
10035 (produce_symtab): Likewise.
10036 * lto-streamer.h (lto_encoder_entry): Likewise.
10037 (lto_free_function_in_decl_state_for_node): Likewise.
10038 (lto_symtab_encoder_encode): Likewise.
10039 (lto_symtab_encoder_delete_node): Likewise.
10040 (lto_symtab_encoder_in_partition_p): Likewise.
10041 (lto_set_symtab_encoder_in_partition): Likewise.
10042 (lto_symtab_encoder_lookup): Likewise.
10043 (lsei_node): Likewise.
10044 (lto_symtab_encoder_deref): Likewise.
10045 * symtab.c (symtab_hash): Likewise.
10046 (assembler_name_hash): Likewise.
10047 (symtab_nodes): Likewise.
10048 (hash_node): Likewise.
10049 (eq_node): Likewise.
10050 (hash_node_by_assembler_name): Likewise.
10051 (eq_assembler_name): Likewise.
10052 (insert_to_assembler_name_hash): Likewise.
10053 (unlink_from_assembler_name_hash): Likewise.
10054 (symtab_prevail_in_asm_name_hash): Likewise.
10055 (symtab_register_node): Likewise.
10056 (symtab_insert_node_to_hashtable): Likewise.
10057 (symtab_unregister_node): Likewise.
10058 (symtab_get_node): Likewise.
10059 (symtab_remove_node): Likewise.
10060 (symtab_initialize_asm_name_hash): Likewise.
10061 (symtab_node_for_asm): Likewise.
10062 (symtab_add_to_same_comdat_group): Likewise.
10063 (symtab_dissolve_same_comdat_group_list): Likewise.
10064 (symtab_node_asm_name): Likewise.
10065 (symtab_node_name): Likewise.
10066 (dump_symtab_base): Likewise.
10067 (dump_symtab_node): Likewise.
10068 (dump_symtab): Likewise.
10069 (debug_symtab_node): Likewise.
10070 (verify_symtab_base): Likewise.
10071 (verify_symtab_node): Likewise.
10072 (verify_symtab): Likewise.
10073 (symtab_used_from_object_file_p): Likewise.
10074 (symtab_node_availability): Likewise.
10075 (symtab_alias_ultimate_target): Likewise.
10076 (fixup_same_cpp_alias_visibility): Likewise.
10077 (symtab_resolve_alias): Likewise.
10078 (symtab_for_node_and_aliases): Likewise.
10079 (symtab_for_node_and_aliases): Likewise.
10080 (symtab_nonoverwritable_alias_1): Likewise.
10081 (symtab_nonoverwritable_alias): Likewise.
10082 (symtab_semantically_equivalent_p): Likewise.
10083 * value-prof.c (init_node_map): Likewise.
10084 * varasm.c (find_decl): Likewise.
10085 * varpool.c (varpool_node_for_asm): Likewise.
10086 (varpool_remove_unreferenced_decls): Likewise.
10088 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10090 Manual part of renaming of symtab_node_base to symtab_node.
10092 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10093 clashes with the preferred name for the base class.
10094 (const_symtab_node): Remove redundant typedef.
10096 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10098 * optabs.c (expand_vec_perm): Avoid vector mode punning
10099 SUBREGs in SET_DEST.
10100 * expmed.c (store_bit_field_1): Likewise.
10101 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10102 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10103 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10104 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10105 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10106 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10107 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10108 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10109 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10110 expand_vec_perm_vpshufb2_vpermq,
10111 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10112 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10113 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10114 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10117 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10119 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10120 Use gcc_unreachable for unhandled modes. Do not check results of
10121 expand_simple_binop. If not expanded to target, move the result.
10123 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10124 Shiva Chen <shiva0217@gmail.com>
10126 * config.gcc (nds32*-*-*): Add nds32 target.
10127 * config/nds32/nds32.c: New file.
10128 * config/nds32/nds32.h: New file.
10129 * config/nds32/nds32.md: New file.
10130 * config/nds32/constants.md: New file.
10131 * config/nds32/constraints.md: New file.
10132 * config/nds32/iterators.md: New file.
10133 * config/nds32/nds32-doubleword.md: New file.
10134 * config/nds32/nds32-intrinsic.md: New file.
10135 * config/nds32/nds32_intrinsic.h: New file.
10136 * config/nds32/nds32-modes.def: New file.
10137 * config/nds32/nds32-multiple.md: New file.
10138 * config/nds32/nds32.opt: New file.
10139 * config/nds32/nds32-opts.h: New file.
10140 * config/nds32/nds32-protos.h: New file.
10141 * config/nds32/nds32-peephole2.md: New file.
10142 * config/nds32/pipelines.md: New file.
10143 * config/nds32/predicates.md: New file.
10144 * config/nds32/t-mlibs: New file.
10145 * common/config/nds32: New directory and files.
10147 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10148 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10149 * doc/install.texi (Cross-Compiler-Specific Options): Document
10150 --with-nds32-lib for nds32 target.
10151 * doc/extend.texi (Function Attributes, Target Builtins): Document
10152 nds32 specific attributes.
10154 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10156 * lra-constraints (process_alt_operands): Use the result
10157 elimination register for operand when matching constraints.
10159 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10161 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10162 (remove_range_assertions): Call it.
10164 * tree.c (tree_ctz): New function.
10165 * tree.h (tree_ctz): New prototype.
10166 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10167 first argument from tree to const_tree.
10168 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10169 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10170 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10172 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10173 * tree-vect-loop.c (vect_analyze_loop_operations,
10174 vect_transform_loop): Don't force scalar loop for bound just because
10175 number of iterations is unknown, only do it if it is not known to be
10176 a multiple of vectorization_factor.
10177 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10179 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10180 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10181 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10182 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10183 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10184 a default def isn't partially constant.
10185 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10186 is known to be partially zero.
10187 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10188 to see if a default def isn't partially constant.
10189 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10190 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10192 (set_nonzero_bits, get_nonzero_bits): New functions.
10194 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10195 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10196 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10197 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10198 uses but in the condition and ASSERT_EXPR and the other successor of
10199 the predecessor bb is __builtin_unreachable (), set_range_info of the
10200 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10202 2013-10-31 Martin Jambor <mjambor@suse.cz>
10204 PR rtl-optimization/58934
10206 2013-10-30 Martin Jambor <mjambor@suse.cz>
10207 PR rtl-optimization/10474
10208 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10210 (interesting_dest_for_shprep): New function.
10211 (split_live_ranges_for_shrink_wrap): Likewise.
10212 (ira): Calculate dominance info and df analysis. Call
10213 split_live_ranges_for_shrink_wrap.
10215 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10216 Yury Gribov <y.gribov@samsung.com>
10219 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10220 shadow pointer to avoid clobbering the main one.
10222 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10224 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10226 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10229 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10230 it for calling update_costs_from_allocno.
10231 (assign_hard_reg): Call restore_costs_from_copies only for
10232 !retry_p. Pass new argument to update_costs_from_copies.
10233 (color_pass): Pass new argument to update_costs_from_copies.
10234 (ira_mark_allocation_change): Ditto.
10236 2013-10-30 Sharad Singhai <singhai@google.com>
10238 PR middle-end/58134
10239 * opts.c (common_handle_option): Remove deprecated option
10240 -ftree-vectorizer-verbose.
10241 * doc/invoke.texi (Debugging Options): Ditto.
10242 * opts-global.c (handle_common_deferred_options): Ditto.
10243 (dump_remap_tree_vectorizer_verbose): Delete.
10244 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10246 2013-10-30 DJ Delorie <dj@redhat.com>
10248 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10249 that take no arguments.
10251 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10254 * reload1.c (update_eliminables_and_spill): New function, broken
10256 (reload): Use it. Check for frame size change after frame size
10257 alignment, and call update_eliminables_and_spill first if continue-ing.
10259 2013-10-30 Cong Hou <congh@google.com>
10262 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10263 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10264 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10266 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10268 PR rtl-optimization/58369
10269 * reload1.c (compute_reload_subreg_offset): New function.
10270 (choose_reload_regs): Use it to pass endian-correct
10271 offset to subreg_regno_offset.
10273 2013-10-30 Tobias Burnus <burnus@net-b.de>
10276 * tree-cfg.c (replace_loop_annotate): Replace warning by
10279 2013-10-30 Jason Merrill <jason@redhat.com>
10281 * configure.ac (loose_warn): Add -Wno-format if
10282 --disable-build-format-warnings.
10284 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10286 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10287 onto multiple lines to make things easier for rename_symtab.py.
10289 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10290 (symtab_semantically_equivalent_p): Likewise.
10292 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10295 * lra.c (check_rtl): Remove address check before LRA work.
10297 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10299 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10300 POINTER_PLUS_EXPR in the defining statement.
10302 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10304 * regmove.c: Remove.
10305 * tree-pass.h (make_pass_regmove): Remove.
10306 * timevar.def (TV_REGMOVE): Remove.
10307 * passes.def (pass_regmove): Remove.
10308 * opts.c (default_options_table): Remove entry for regmove.
10309 * doc/passes.texi: Remove regmove pass description.
10310 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10312 (-fdump-rtl-regmove): Ditto.
10313 * common.opt (foptimize-register-move, fregmove): Ignore.
10314 * Makefile.in (OBJS): Remove regmove.o.
10315 * regmove.c: Remove.
10316 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10318 (struct ira_allocno) New member allocno_prefs.
10319 (ALLOCNO_PREFS): New macro.
10320 (ira_prefs, ira_prefs_num): New external vars.
10321 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10322 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10323 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10325 (ira_add_allocno_copy_to_list): Remove prototype.
10326 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10327 (ira_pref_iterator): New type.
10328 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10329 (FOR_EACH_PREF): New macro.
10330 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10331 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10333 (ira_setup_alts): New function.
10334 (decrease_live_ranges_number): New function.
10335 (ira): Call the above function.
10336 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10337 (ira_create_allocno): Initialize allocno prefs.
10338 (pref_pool, pref_vec): New static vars.
10339 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10341 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10342 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10343 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10344 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10345 (ira_add_allocno_copy_to_list): Make static. Rename to
10346 add_allocno_copy_to_list.
10347 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10348 swap_allocno_copy_ends_if_necessary.
10349 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10350 ira_remove_allocno_prefs.
10351 (ira_flattening): Ditto.
10352 (ira_build): Call initiate_prefs, print_prefs.
10353 (ira_destroy): Call finish_prefs.
10354 * ira-color.c (struct update_cost_record): New.
10355 (struct allocno_color_data): Add new member update_cost_records.
10356 (update_cost_record_pool): New static var.
10357 (init_update_cost_records, get_update_cost_record): New functions.
10358 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10359 (struct update_cost_queue_elem): Add member from.
10360 (initiate_cost_update): Call init_update_cost_records.
10361 (finish_cost_update): Call finish_update_cost_records.
10362 (queue_update_cost, get_next_update_cost): Add new param from.
10363 (Update_allocno_cost, update_costs_from_allocno): New functions.
10364 (update_costs_from_prefs): Ditto.
10365 (update_copy_costs): Rename to update_costs_from_copies.
10366 (restore_costs_from_copies): New function.
10367 (update_conflict_hard_regno_costs): Don't go back.
10368 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10370 (pop_allocnos): Add priniting more debug info.
10371 (color_allocnos): Remove prefs for conflicting hard regs.
10372 Call update_costs_from_prefs.
10373 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10374 (get_dup_num): Rename, modify, and move to ira.c
10375 (process_regs_for_copy): Add prefs.
10376 (add_insn_allocno_copies): Put src as first arg of
10377 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10378 * ira-costs.c (record_reg_classes): Modify and move code into
10379 record_operands_costs.
10380 (find_costs_and_classes): Create prefs for the hard reg of small
10382 (process_bb_node_for_hard_reg_moves): Add prefs.
10384 2013-10-30 Richard Biener <rguenther@suse.de>
10386 PR middle-end/57100
10387 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10388 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10390 (pre_and_rev_post_order_compute): ... which now wraps it.
10391 * graph.c (draw_cfg_nodes_no_loops): Use
10392 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10395 2013-10-30 Christian Bruel <christian.bruel@st.com>
10397 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10398 (sh_expand_cmpstr): Handle known align and schedule improvements.
10399 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10400 * config/sh/sh.md (cmpstrnsi): New pattern.
10402 2013-10-30 Martin Jambor <mjambor@suse.cz>
10404 PR rtl-optimization/10474
10405 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10407 (interesting_dest_for_shprep): New function.
10408 (split_live_ranges_for_shrink_wrap): Likewise.
10409 (ira): Calculate dominance info and df analysis. Call
10410 split_live_ranges_for_shrink_wrap.
10412 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10415 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10417 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10419 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10420 * tree.h (POINTER_BOUNDS_P): New.
10421 (BOUNDED_TYPE_P): New.
10423 (pointer_bounds_type_node): New.
10424 * tree.c (build_common_tree_nodes): Initialize
10425 pointer_bounds_type_node.
10426 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10427 (gimple_call_num_nobnd_args): New.
10428 (gimple_call_nobnd_arg): New.
10429 (gimple_return_retbnd): New.
10430 (gimple_return_set_retbnd): New
10431 * gimple.c (gimple_build_return): Increase number of ops
10432 for return statement.
10433 (gimple_call_get_nobnd_arg_index): New.
10434 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10436 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10438 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10439 with "chkp ctor" and "bnd_legacy" attributes.
10440 * gimplify.c (gimplify_init_constructor): Avoid infinite
10441 loop during gimplification of bounds initializer.
10443 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10445 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10446 (handle_bnd_legacy): New.
10447 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10448 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10451 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10453 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10454 (BT_FN_PTR_CONST_PTR): New.
10455 (BT_FN_CONST_PTR_CONST_PTR): New.
10456 (BT_FN_PTR_CONST_PTR_SIZE): New.
10457 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10458 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10459 (BT_FN_VOID_CONST_PTR_SIZE): New.
10460 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10461 * chkp-builtins.def: New.
10462 * builtins.def: include chkp-builtins.def.
10463 (DEF_CHKP_BUILTIN): New.
10464 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10465 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10466 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10467 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10468 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10469 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10470 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10471 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10472 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10473 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10474 * common.opt (fcheck-pointer-bounds): New.
10475 * toplev.c (process_options): Check Pointer Bounds Checker is
10477 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10479 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10481 * target.def (builtin_chkp_function): New.
10482 (chkp_bound_type): New.
10483 (chkp_bound_mode): New.
10484 (fn_abi_va_list_bounds_size): New.
10485 (load_bounds_for_arg): New.
10486 (store_bounds_for_arg): New.
10487 * targhooks.h (default_load_bounds_for_arg): New.
10488 (default_store_bounds_for_arg): New.
10489 (default_fn_abi_va_list_bounds_size): New.
10490 (default_chkp_bound_type): New.
10491 (default_chkp_bound_mode): New.
10492 (default_builtin_chkp_function): New.
10493 * targhooks.c (default_load_bounds_for_arg): New.
10494 (default_store_bounds_for_arg): New.
10495 (default_fn_abi_va_list_bounds_size): New.
10496 (default_chkp_bound_type): New.
10497 (default_chkp_bound_mode); New.
10498 (default_builtin_chkp_function): New.
10499 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10500 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10501 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10502 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10503 (TARGET_CHKP_BOUND_TYPE): New.
10504 (TARGET_CHKP_BOUND_MODE): New.
10505 * doc/tm.texi: Regenerated.
10506 * langhooks.h (lang_hooks): Add chkp_supported field.
10507 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10508 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10510 2013-10-29 Andrew Pinski <apinski@cavium.com>
10512 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10513 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10514 fails, combining the branches anyways.
10515 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10516 increases the number of combinings.
10517 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10519 2013-10-29 Mike Stump <mikestump@comcast.net>
10521 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10522 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10523 (make_vector_mode): Increase namebuf to 16.
10524 (emit_insn_modes_h): When processing BImode, don't
10525 also match partial int modes.
10526 (emit_class_narrowest_mode): Likewise.
10528 * config/bfin/bfin-modes.def: Add precision to PDI.
10529 * config/m32c/m32c-modes.def: Add precision to PSI.
10530 * config/msp430/msp430-modes.def: Add precision to PSI.
10531 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10532 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10534 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10537 * config/sh/sh.md (*addc): Rename existing variations to ...
10538 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10539 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10540 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10541 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10543 2013-10-29 Teresa Johnson <tejohnson@google.com>
10546 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10547 insanities when updating probabilities.
10549 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10551 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10552 prettyprinter for cgraph_node to reflect the conversion of the
10553 symtable types to a C++ class hierarchy: it now *is* a
10554 symtab_node_base, rather than having one (named "symbol").
10556 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10558 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10559 __cilkrts_pop_frame. If matched, then return true for built-in
10561 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10562 BUILT_IN_CILK_POP_FRAME case.
10563 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10564 (lhs_cilk_detect_spawn): Likewise.
10565 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10566 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10567 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10568 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10569 (LANG_HOOKS_CILKPLUS): Likewise.
10570 * tree.h (CILK_SPAWN_FN): Likewise.
10571 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10572 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10573 (OBJS): Added cilk-common.o.
10574 (BUILTINS_DEF): Added cilk-builtins.def.
10575 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10576 (lhd_cilk_detect_spawn): Likewise.
10577 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10578 (struct lang_hooks): Added new field called "cilkplus."
10579 * cilk-common.c: New file.
10580 * cilk.h: Likewise.
10581 * cilk-builtins.def: Likewise.
10582 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10583 "__cilk" macro and set it to 200.
10584 * function.h (struct function::cilk_frame_decl): New field.
10585 (struct function::is_cilk_function): Likewise.
10586 (struct function::calls_cilk_spawn): Likewise.
10587 * gimplify.c (gimplify_call_expr): Added a check if the function call
10588 being gimplified is a spawn detach point. If so, then add pop_frame
10589 and detach function calls.
10590 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10591 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10592 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10593 function. If so, added a _Cilk_sync and gimplified it.
10594 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10595 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10596 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10598 (can_inline_edge_p): Prevent inling of spawnee function.
10599 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10600 for functions that use Cilk keywords.
10601 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10602 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10603 CILK_SYNC_STMT cases.
10604 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10606 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10607 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10608 * passes.texi (Cilk Keywords): New section that describes the compiler
10609 code changes for handling Cilk Keywords.
10611 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10613 Patch autogenerated by refactor_symtab.py from
10614 https://github.com/davidmalcolm/gcc-refactoring-scripts
10615 revision 58bb219cc090b2f4516a9297d868c245495ee622
10617 * asan.c (asan_finish_file): Update for conversion of symtab types to
10618 a true class hierarchy.
10619 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10620 * cgraph.c (cgraph_get_body): Likewise.
10621 (cgraph_get_create_real_symbol_node): Likewise.
10622 (verify_cgraph_node): Likewise.
10623 (verify_edge_corresponds_to_fndecl): Likewise.
10624 (verify_edge_count_and_frequency): Likewise.
10625 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10626 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10627 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10628 (cgraph_node_cannot_return): Likewise.
10629 (cgraph_set_pure_flag_1): Likewise.
10630 (cgraph_set_const_flag_1): Likewise.
10631 (cgraph_set_nothrow_flag_1): Likewise.
10632 (cgraph_make_node_local_1): Likewise.
10633 (cgraph_for_node_and_aliases): Likewise.
10634 (cgraph_for_node_thunks_and_aliases): Likewise.
10635 (cgraph_node_can_be_local_p): Likewise.
10636 (cgraph_node_cannot_be_local_p_1): Likewise.
10637 (cgraph_function_body_availability): Likewise.
10638 (dump_cgraph_node): Likewise.
10639 (cgraph_rtl_info): Likewise.
10640 (cgraph_mark_address_taken_node): Likewise.
10641 (cgraph_remove_node): Likewise.
10642 (cgraph_release_function_body): Likewise.
10643 (cgraph_update_edges_for_call_stmt_node): Likewise.
10644 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10645 (cgraph_make_edge_direct): Likewise.
10646 (cgraph_resolve_speculation): Likewise.
10647 (cgraph_speculative_call_info): Likewise.
10648 (cgraph_turn_edge_to_speculative): Likewise.
10649 (cgraph_create_edge_1): Likewise.
10650 (cgraph_set_call_stmt): Likewise.
10651 (cgraph_node_for_asm): Likewise.
10652 (cgraph_add_thunk): Likewise.
10653 (cgraph_same_body_alias): Likewise.
10654 (cgraph_create_function_alias): Likewise.
10655 (cgraph_create_node): Likewise.
10656 (cgraph_create_empty_node): Likewise.
10657 (record_function_versions): Likewise.
10658 (used_from_object_file_p): Likewise.
10659 * cgraph.h (symtab_can_be_discarded): Likewise.
10660 (symtab_real_symbol_p): Likewise.
10661 (cgraph_mark_force_output_node): Likewise.
10662 (cgraph_edge_recursive_p): Likewise.
10663 (symtab_alias_target): Likewise.
10664 (varpool_all_refs_explicit_p): Likewise.
10665 (varpool_can_remove_if_no_refs): Likewise.
10666 (cgraph_only_called_directly_or_aliased_p): Likewise.
10667 (cgraph_next_function_with_gimple_body): Likewise.
10668 (cgraph_first_function_with_gimple_body): Likewise.
10669 (cgraph_function_with_gimple_body_p): Likewise.
10670 (cgraph_next_function): Likewise.
10671 (cgraph_first_function): Likewise.
10672 (cgraph_next_defined_function): Likewise.
10673 (cgraph_first_defined_function): Likewise.
10674 (varpool_next_defined_variable): Likewise.
10675 (varpool_first_defined_variable): Likewise.
10676 (varpool_next_static_initializer): Likewise.
10677 (varpool_first_static_initializer): Likewise.
10678 (varpool_next_variable): Likewise.
10679 (varpool_first_variable): Likewise.
10680 (varpool_node_name): Likewise.
10681 (varpool): Likewise.
10682 (cgraph): Likewise.
10683 (is_a_helper <varpool_node>::test): Likewise.
10684 (is_a_helper <cgraph_node>::test): Likewise.
10685 (varpool_variable_node): Likewise.
10686 (cgraph_function_or_thunk_node): Likewise.
10687 (varpool_alias_target): Likewise.
10688 (cgraph_alias_target): Likewise.
10689 (cgraph_node_name): Likewise.
10690 (varpool_node_asm_name): Likewise.
10691 (cgraph_node_asm_name): Likewise.
10692 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10693 (cgraph_rebuild_references): Likewise.
10694 (rebuild_cgraph_edges): Likewise.
10695 (record_eh_tables): Likewise.
10696 (build_cgraph_edges): Likewise.
10697 (mark_store): Likewise.
10698 (mark_load): Likewise.
10699 (mark_address): Likewise.
10700 (record_type_list): Likewise.
10701 (record_reference): Likewise.
10702 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10703 (cgraph_materialize_clone): Likewise.
10704 (cgraph_function_versioning): Likewise.
10705 (cgraph_copy_node_for_versioning): Likewise.
10706 (update_call_expr): Likewise.
10707 (cgraph_find_replacement_node): Likewise.
10708 (cgraph_create_virtual_clone): Likewise.
10709 (cgraph_clone_node): Likewise.
10710 * cgraphunit.c (compile): Likewise.
10711 (output_weakrefs): Likewise.
10712 (output_in_order): Likewise.
10713 (expand_function): Likewise.
10714 (assemble_thunks_and_aliases): Likewise.
10715 (expand_thunk): Likewise.
10716 (mark_functions_to_output): Likewise.
10717 (handle_alias_pairs): Likewise.
10718 (analyze_functions): Likewise.
10719 (walk_polymorphic_call_targets): Likewise.
10720 (varpool_finalize_decl): Likewise.
10721 (process_function_and_variable_attributes): Likewise.
10722 (cgraph_process_same_body_aliases): Likewise.
10723 (analyze_function): Likewise.
10724 (cgraph_add_new_function): Likewise.
10725 (cgraph_finalize_function): Likewise.
10726 (referred_to_p): Likewise.
10727 (cgraph_reset_node): Likewise.
10728 (cgraph_process_new_functions): Likewise.
10729 (enqueue_node): Likewise.
10730 (decide_is_symbol_needed): Likewise.
10731 * coverage.c (coverage_compute_profile_id): Likewise.
10732 * dbxout.c (dbxout_expand_expr): Likewise.
10733 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10734 (reference_to_unused): Likewise.
10735 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10736 * gimplify.c (unvisit_body): Likewise.
10737 (unshare_body): Likewise.
10738 * ipa-cp.c (ipcp_generate_summary): Likewise.
10739 (ipcp_decision_stage): Likewise.
10740 (identify_dead_nodes): Likewise.
10741 (decide_whether_version_node): Likewise.
10742 (decide_about_value): Likewise.
10743 (perhaps_add_new_callers): Likewise.
10744 (create_specialized_node): Likewise.
10745 (update_profiling_info): Likewise.
10746 (ipcp_propagate_stage): Likewise.
10747 (estimate_local_effects): Likewise.
10748 (good_cloning_opportunity_p): Likewise.
10749 (devirtualization_time_bonus): Likewise.
10750 (propagate_constants_accross_call): Likewise.
10751 (initialize_node_lattices): Likewise.
10752 (ipcp_cloning_candidate_p): Likewise.
10753 (determine_versionability): Likewise.
10754 (print_all_lattices): Likewise.
10755 (print_lattice): Likewise.
10756 (ipcp_discover_new_direct_edges): Likewise.
10757 * ipa-devirt.c (ipa_devirt): Likewise.
10758 (likely_target_p): Likewise.
10759 (update_type_inheritance_graph): Likewise.
10760 (possible_polymorphic_call_target_p): Likewise.
10761 (dump_possible_polymorphic_call_targets): Likewise.
10762 (devirt_variable_node_removal_hook): Likewise.
10763 (record_binfo): Likewise.
10764 (maybe_record_node): Likewise.
10765 (build_type_inheritance_graph): Likewise.
10766 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10767 (inline_generate_summary): Likewise.
10768 (inline_analyze_function): Likewise.
10769 (do_estimate_growth): Likewise.
10770 (simple_edge_hints): Likewise.
10771 (estimate_node_size_and_time): Likewise.
10772 (estimate_edge_devirt_benefit): Likewise.
10773 (compute_inline_parameters): Likewise.
10774 (estimate_function_body_sizes): Likewise.
10775 (compute_bb_predicates): Likewise.
10776 (initialize_inline_failed): Likewise.
10777 (dump_inline_summary): Likewise.
10778 (dump_inline_edge_summary): Likewise.
10779 * ipa-inline-transform.c (inline_transform): Likewise.
10780 (preserve_function_body_p): Likewise.
10781 (save_inline_function_body): Likewise.
10782 (inline_call): Likewise.
10783 (clone_inlined_nodes): Likewise.
10784 (can_remove_node_now_p): Likewise.
10785 (can_remove_node_now_p_1): Likewise.
10786 * ipa-inline.c (early_inliner): Likewise.
10787 (early_inline_small_functions): Likewise.
10788 (inline_always_inline_functions): Likewise.
10789 (ipa_inline): Likewise.
10790 (flatten_function): Likewise.
10791 (inline_small_functions): Likewise.
10792 (speculation_useful_p): Likewise.
10793 (recursive_inlining): Likewise.
10794 (update_caller_keys): Likewise.
10795 (reset_edge_caches): Likewise.
10796 (update_edge_key): Likewise.
10797 (edge_badness): Likewise.
10798 (relative_time_benefit): Likewise.
10799 (want_inline_self_recursive_call_p): Likewise.
10800 (want_inline_small_function_p): Likewise.
10801 (want_early_inline_function_p): Likewise.
10802 (num_calls): Likewise.
10803 (can_early_inline_edge_p): Likewise.
10804 (can_inline_edge_p): Likewise.
10805 (report_inline_failed_reason): Likewise.
10806 * ipa-profile.c (ipa_profile): Likewise.
10807 (ipa_propagate_frequency): Likewise.
10808 (ipa_propagate_frequency_1): Likewise.
10809 (ipa_profile_generate_summary): Likewise.
10810 * ipa-prop.c (ipcp_transform_function): Likewise.
10811 (read_replacements_section): Likewise.
10812 (ipa_prop_read_section): Likewise.
10813 (ipa_modify_call_arguments): Likewise.
10814 (ipa_print_node_params): Likewise.
10815 (propagate_controlled_uses): Likewise.
10816 (update_indirect_edges_after_inlining): Likewise.
10817 (remove_described_reference): Likewise.
10818 (ipa_make_edge_direct_to_target): Likewise.
10819 (ipa_analyze_node): Likewise.
10820 (ipa_analyze_params_uses): Likewise.
10821 (ipa_compute_jump_functions): Likewise.
10822 (ipa_get_callee_param_type): Likewise.
10823 (ipa_print_node_jump_functions): Likewise.
10824 (ipa_initialize_node_params): Likewise.
10825 (ipa_populate_param_decls): Likewise.
10826 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10827 (write_agg_replacement_chain): Likewise.
10828 (ipa_write_node_info): Likewise.
10829 (ipa_edge_duplication_hook): Likewise.
10830 (try_decrement_rdesc_refcount): Likewise.
10831 * ipa-pure-const.c (propagate_nothrow): Likewise.
10832 (propagate_pure_const): Likewise.
10833 (pure_const_read_summary): Likewise.
10834 (pure_const_write_summary): Likewise.
10835 (analyze_function): Likewise.
10836 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10837 (ipa_ref_referring_ref_list): Likewise.
10838 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10839 (ipa_remove_stmt_references): Likewise.
10840 (ipa_find_reference): Likewise.
10841 (ipa_dump_referring): Likewise.
10842 (ipa_dump_references): Likewise.
10843 (ipa_record_reference): Likewise.
10844 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10845 (ipa_reference_write_optimization_summary): Likewise.
10846 (write_node_summary_p): Likewise.
10847 (propagate): Likewise.
10848 (read_write_all_from_decl): Likewise.
10849 (generate_summary): Likewise.
10850 (analyze_function): Likewise.
10851 (propagate_bits): Likewise.
10852 (ipa_reference_get_not_written_global): Likewise.
10853 (ipa_reference_get_not_read_global): Likewise.
10854 * ipa-split.c (execute_split_functions): Likewise.
10855 (split_function): Likewise.
10856 * ipa-utils.c (ipa_merge_profiles): Likewise.
10857 (dump_cgraph_node_set): Likewise.
10858 (ipa_reverse_postorder): Likewise.
10859 (ipa_edge_within_scc): Likewise.
10860 (ipa_get_nodes_in_cycle): Likewise.
10861 (ipa_free_postorder_info): Likewise.
10862 (ipa_reduced_postorder): Likewise.
10863 (searchc): Likewise.
10864 (recursive_call_p): Likewise.
10865 * ipa.c (ipa_cdtor_merge): Likewise.
10866 (record_cdtor_fn): Likewise.
10867 (function_and_variable_visibility): Likewise.
10868 (varpool_externally_visible_p): Likewise.
10869 (cgraph_externally_visible_p): Likewise.
10870 (comdat_can_be_unshared_p): Likewise.
10871 (comdat_can_be_unshared_p_1): Likewise.
10872 (address_taken_from_non_vtable_p): Likewise.
10873 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10874 (symtab_remove_unreachable_nodes): Likewise.
10875 (walk_polymorphic_call_targets): Likewise.
10876 (process_references): Likewise.
10877 (enqueue_node): Likewise.
10878 (has_addr_references_p): Likewise.
10879 (cgraph_non_local_node_p_1): Likewise.
10880 * is-a.h (varpool_analyze_node): Likewise.
10881 * lto-cgraph.c (input_symtab): Likewise.
10882 (merge_profile_summaries): Likewise.
10883 (input_cgraph_1): Likewise.
10884 (input_edge): Likewise.
10885 (input_varpool_node): Likewise.
10886 (input_node): Likewise.
10887 (input_overwrite_node): Likewise.
10888 (compute_ltrans_boundary): Likewise.
10889 (output_refs): Likewise.
10890 (lto_output_varpool_node): Likewise.
10891 (lto_output_node): Likewise.
10892 (reachable_from_other_partition_p): Likewise.
10893 (referenced_from_other_partition_p): Likewise.
10894 (lto_output_edge): Likewise.
10895 (output_node_opt_summary): Likewise.
10896 (add_node_to): Likewise.
10897 (reachable_from_this_partition_p): Likewise.
10898 (lto_set_symtab_encoder_in_partition): Likewise.
10899 (lto_symtab_encoder_in_partition_p): Likewise.
10900 (lto_set_symtab_encoder_encode_initializer): Likewise.
10901 (lto_symtab_encoder_encode_initializer_p): Likewise.
10902 (lto_set_symtab_encoder_encode_body): Likewise.
10903 (lto_symtab_encoder_encode_body_p): Likewise.
10904 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10906 * lto-streamer-in.c (lto_read_body): Likewise.
10907 (fixup_call_stmt_edges): Likewise.
10908 (fixup_call_stmt_edges_1): Likewise.
10909 * lto-streamer-out.c (produce_symtab): Likewise.
10910 (output_symbol_p): Likewise.
10911 (write_symbol): Likewise.
10912 (lto_output): Likewise.
10913 (copy_function): Likewise.
10914 (output_function): Likewise.
10915 * passes.c (function_called_by_processed_nodes_p): Likewise.
10916 (ipa_write_optimization_summaries): Likewise.
10917 (ipa_write_summaries): Likewise.
10918 (do_per_function_toporder): Likewise.
10919 (do_per_function): Likewise.
10920 (dump_passes): Likewise.
10921 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10922 (symtab_nonoverwritable_alias): Likewise.
10923 (symtab_nonoverwritable_alias_1): Likewise.
10924 (symtab_for_node_and_aliases): Likewise.
10925 (symtab_resolve_alias): Likewise.
10926 (fixup_same_cpp_alias_visibility): Likewise.
10927 (symtab_alias_ultimate_target): Likewise.
10928 (symtab_used_from_object_file_p): Likewise.
10929 (verify_symtab_base): Likewise.
10930 (dump_symtab_base): Likewise.
10931 (symtab_node_name): Likewise.
10932 (symtab_node_asm_name): Likewise.
10933 (symtab_dissolve_same_comdat_group_list): Likewise.
10934 (symtab_add_to_same_comdat_group): Likewise.
10935 (symtab_unregister_node): Likewise.
10936 (symtab_insert_node_to_hashtable): Likewise.
10937 (symtab_register_node): Likewise.
10938 (unlink_from_assembler_name_hash): Likewise.
10939 (insert_to_assembler_name_hash): Likewise.
10940 (eq_assembler_name): Likewise.
10941 (hash_node_by_assembler_name): Likewise.
10942 (eq_node): Likewise.
10943 (hash_node): Likewise.
10944 * toplev.c (wrapup_global_declaration_2): Likewise.
10945 * trans-mem.c (ipa_tm_execute): Likewise.
10946 (ipa_tm_transform_clone): Likewise.
10947 (ipa_tm_transform_transaction): Likewise.
10948 (ipa_tm_transform_calls_redirect): Likewise.
10949 (ipa_tm_insert_gettmclone_call): Likewise.
10950 (ipa_tm_insert_irr_call): Likewise.
10951 (ipa_tm_create_version): Likewise.
10952 (ipa_tm_create_version_alias): Likewise.
10953 (ipa_tm_mark_forced_by_abi_node): Likewise.
10954 (ipa_tm_mark_force_output_node): Likewise.
10955 (ipa_tm_diagnose_tm_safe): Likewise.
10956 (ipa_tm_mayenterirr_function): Likewise.
10957 (ipa_tm_scan_irr_function): Likewise.
10958 (ipa_tm_note_irrevocable): Likewise.
10959 (ipa_tm_scan_calls_clone): Likewise.
10960 (get_cg_data): Likewise.
10961 * tree-eh.c (tree_could_trap_p): Likewise.
10962 * tree-emutls.c (ipa_lower_emutls): Likewise.
10963 (create_emultls_var): Likewise.
10964 (lower_emutls_function_body): Likewise.
10965 (gen_emutls_addr): Likewise.
10966 (emutls_decl): Likewise.
10967 (new_emutls_decl): Likewise.
10968 * tree-inline.c (tree_function_versioning): Likewise.
10969 (optimize_inline_calls): Likewise.
10970 (expand_call_inline): Likewise.
10971 (estimate_num_insns): Likewise.
10972 (copy_bb): Likewise.
10973 (delete_unreachable_blocks_update_callgraph): Likewise.
10974 * tree-nested.c (gimplify_all_functions): Likewise.
10975 (create_nesting_tree): Likewise.
10976 (check_for_nested_with_variably_modified): Likewise.
10977 * tree-pretty-print.c (dump_function_header): Likewise.
10978 * tree-profile.c (tree_profiling): Likewise.
10979 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10980 (modify_function): Likewise.
10981 (convert_callers): Likewise.
10982 (convert_callers_for_node): Likewise.
10983 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10984 (associate_varinfo_to_alias): Likewise.
10985 (create_variable_info_for): Likewise.
10986 (get_constraint_for_ssa_var): Likewise.
10987 * tree-vectorizer.c (increase_alignment): Likewise.
10988 * tree.c (find_decls_types_in_var): Likewise.
10989 (find_decls_types_in_node): Likewise.
10990 (free_lang_data_in_decl): Likewise.
10991 * value-prof.c (gimple_ic_transform): Likewise.
10992 (gimple_ic): Likewise.
10993 (check_ic_target): Likewise.
10994 (init_node_map): Likewise.
10995 * varasm.c (decl_binds_to_current_def_p): Likewise.
10996 (default_binds_local_p_1): Likewise.
10997 (dump_tm_clone_pairs): Likewise.
10998 (assemble_alias): Likewise.
10999 (find_decl): Likewise.
11000 (mark_decl_referenced): Likewise.
11001 * varpool.c (varpool_for_node_and_aliases): Likewise.
11002 (varpool_extra_name_alias): Likewise.
11003 (varpool_create_variable_alias): Likewise.
11004 (add_new_static_var): Likewise.
11005 (varpool_finalize_named_section_flags): Likewise.
11006 (varpool_remove_unreferenced_decls): Likewise.
11007 (enqueue_node): Likewise.
11008 (varpool_assemble_decl): Likewise.
11009 (assemble_aliases): Likewise.
11010 (varpool_analyze_node): Likewise.
11011 (cgraph_variable_initializer_availability): Likewise.
11012 (varpool_add_new_variable): Likewise.
11013 (ctor_for_folding): Likewise.
11014 (dump_varpool_node): Likewise.
11015 (varpool_remove_initializer): Likewise.
11016 (varpool_remove_node): Likewise.
11017 (varpool_node_for_decl): Likewise.
11018 (varpool_create_empty_node): Likewise.
11019 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11020 (ix86_get_function_versions_dispatcher): Likewise.
11022 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11024 * cgraph.h (symtab_node_base): Convert to a class;
11025 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11026 chain_next/prev from symtab_node_def.
11027 (cgraph_node): Inherit from symtab_node; add GTY option
11028 tag ("SYMTAB_FUNCTION").
11029 (varpool_node): Inherit from symtab_node; add GTY option
11030 tag ("SYMTAB_VARIABLE").
11031 (symtab_node_def): Remove.
11032 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11033 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11034 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11035 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11037 * ipa-ref.h (symtab_node_def): Drop.
11038 (symtab_node): Change underlying type from symtab_node_def to
11040 (const_symtab_node): Likwise.
11042 * is-a.h: Update examples in comment.
11044 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11045 (assembler_name_hash): Likewise.
11047 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11049 * doc/tree-ssa.texi (gimple_phi_result): Document.
11050 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11051 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11052 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11053 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11055 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11057 * expr.h: Revert change and include tree-core.h.
11058 * rtl.h: Revert change and don't include tree-core.h.
11060 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11062 * config/darwin.c: Include gimple.h.
11063 * config/i386/winnt.c: Likewise.
11065 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11067 PR tree-optimization/19831
11068 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11070 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11072 * tree-outof-ssa.h: Remove include files.
11073 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11074 * expr.c: Likewise.
11075 * tree-ssa-coalesce.c: Likewise.
11076 * cfgexpand.c: Likewise.
11077 * tree-ssa-ter.c: Likewise.
11078 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11079 * lto-streamer.h: Likewise.
11080 * cgraphbuild.c: Add gimple.h to include list.
11081 * data-streamer-in.c: Likewise.
11082 * ipa-cp.c: Likewise.
11083 * tree-streamer.c: Likewise.
11084 * lto-compress.c: Likewise.
11085 * ipa-reference.c: Likewise.
11086 * data-streamer-out.c: Likewise.
11087 * lto-cgraph.c: Likewise.
11088 * cgraphclones.c: Likewise.
11089 * ipa-utils.c: Likewise.
11090 * data-streamer.c: Likewise.
11091 * ipa-split.c: Likewise.
11092 * lto-section-in.c: Likewise.
11093 * tree-streamer-out.c: Likewise.
11094 * ipa-prop.c: Likewise.
11095 * tree-streamer-in.c: Likewise.
11096 * symtab.c: Likewise.
11097 * opts-global.c: Likewise.
11098 * lto-opts.c: Likewise.
11099 * lto-section-out.c: Likewise.
11100 * lto-streamer.c: Likewise.
11101 * rtl.h: Add tree-core.h to include list.
11102 * expr.h: Remove tree-core.h from include list.
11103 * gimple.h: Likewise.
11104 * ipa-utils.h: Likewise.
11105 * streamer-hooks.h: Likewise.
11106 * streamer-hooks.c: Include input.h.
11108 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11110 * config/arm/arm.c (cortexa7_extra_costs): New table.
11111 (arm_cortex_a7_tune): New.
11112 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11114 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11116 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11118 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11120 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11121 to use autogenerated markers for a class-hierarchy, every class
11122 must have a GTY marker.
11123 * gengtype.h (struct type): Add linked list of subclasses to
11124 the "s" member of the union.
11125 (add_subclass): New decl.
11126 * gengtype-state.c (read_state_struct_type): Set up subclass
11128 * gengtype.c (get_ultimate_base_class): New.
11129 (add_subclass): New.
11130 (new_structure): Set up subclass linked list.
11131 (set_gc_used_type): Propagate usage information to subclasses.
11132 (output_mangled_typename): Use get_ultimate_base_class.
11133 (walk_subclasses): Use the subclass linked list, avoiding an
11134 O(N^2) when writing out all types.
11135 (walk_type): Issue an error if the base class is missing a tag,
11136 rather than generating bogus C code. Add a gcc_unreachable
11137 default case, in case people omit tags from concrete subclasses,
11138 or get the values wrong.
11139 (write_func_for_structure): Issue an error for subclasses for
11140 which the base doesn't have a "desc", since otherwise the
11141 autogenerated routines for the base would silently fail to visit
11142 any subclass fields.
11143 (write_root): Use get_ultimate_base_class, tweaking constness of
11144 tp to match that function's signature.
11146 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11148 * doc/gty.texi (GTY Options): Add note about inheritance to
11149 description of desc and tag.
11150 (Inheritance and GTY): New.
11152 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11154 * gengtype-parse.c (opts_have): Drop "static" so that
11155 we can use this from gengtype.c.
11156 * gengtype.c (set_gc_used_type): Mark any base class as used;
11157 update field traversal to visit inherited fields.
11158 (output_mangled_typename): Convert references to classes within
11159 an inheritance hierarchy to reference the ultimate base class,
11160 since only it will have gt_ functions.
11161 (get_string_option): New.
11162 (walk_subclasses): New.
11163 (walk_type): Treat GTY structs that have a "desc" as being the
11164 root of an inheritance hierarchy. Generate a switch on it
11165 within the marking function which walks all subclasses, adding
11166 cases for them via walk_subclasses. For subclasses, visit all
11167 fields of the type (including inherited ones).
11168 (write_func_for_structure): Don't write fns for subclasses, only
11169 for the ultimate base class within an inheritance hierarchy.
11170 Subclasses-marking will be handled by the base class marking functions.
11171 (write_types): Likewise.
11172 (write_local_func_for_structure): Likewise.
11173 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11174 a "tag" option (and are thus concrete subclasses).
11175 (write_root): Use the marker function for the ultimate base class.
11176 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11177 (opts_have): Add declaration.
11179 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11181 * lra-spills.c (lra_final_code_change): Remove useless move insns
11182 originated from moves of pseudos.
11184 2013-10-28 Jeff Law <law@redhat.com>
11186 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11188 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11190 * df-scan.c (df_collection_rec): Adjust.
11191 (copy_defs): New constant.
11192 (copy_uses): Likewise.
11193 (copy_eq_uses): Likewise.
11194 (copy_mw): Likewise.
11195 (copy_all): Likewise.
11196 (df_insn_rescan): Adjust.
11197 (df_notes_rescan): Likewise.
11198 (df_swap_refs): Likewise.
11199 (df_sort_and_compress_refs): Likewise.
11200 (df_sort_and_compress_mws): Likewise.
11201 (df_install_refs): Likewise.
11202 (df_install_mws): Likewise.
11203 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11205 (df_bb_refs_record): Adjust.
11206 (df_record_entry_block_defs): Likewise.
11207 (df_record_exit_block_defs): Likewise.
11208 (df_refs_verify): Likewise.
11209 (df_mws_verify): Likewise.
11210 (df_insn_refs_verify): Likewise.
11211 (df_bb_verify): Likewise.
11212 * ipa-pure-const.c (finish_state): Remove.
11213 (propagate): Adjust.
11214 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11215 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11216 var-tracking.c: Adjust.
11217 * vec.c (stack_vecs): Remove.
11218 (register_stack_vec): Likewise.
11219 (stack_vec_register_index): Likewise.
11220 (unregister_stack_vec): Likewise.
11221 * vec.h (struct va_stack): Remove.
11222 (struct vec<T, A, vl_ptr>): Specialize as
11223 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11224 allocation strategy compatable with the vl_ptr layout.
11225 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11226 specialization anyway.
11227 (class stack_vec): New class.
11228 (vec_stack_alloc): Remove.
11229 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11231 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11233 Sergey Lega <sergey.s.lega@intel.com>
11234 Anna Tikhonova <anna.tikhonova@intel.com>
11235 Ilya Tocar <ilya.tocar@intel.com>
11236 Andrey Turetskiy <andrey.turetskiy@intel.com>
11237 Ilya Verbin <ilya.verbin@intel.com>
11238 Kirill Yukhin <kirill.yukhin@intel.com>
11239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11241 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11242 (*prefetch_avx512pf_<mode>): New.
11243 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11244 (avx512f_maskcmp<mode>3): Ditto.
11245 (vashrv16si3): Ditto.
11247 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11249 Sergey Lega <sergey.s.lega@intel.com>
11250 Anna Tikhonova <anna.tikhonova@intel.com>
11251 Ilya Tocar <ilya.tocar@intel.com>
11252 Andrey Turetskiy <andrey.turetskiy@intel.com>
11253 Ilya Verbin <ilya.verbin@intel.com>
11254 Kirill Yukhin <kirill.yukhin@intel.com>
11255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11257 * config/i386/i386.md (any_truncate): New.
11258 (trunsuffix): Ditto.
11259 * config/i386/predicates.md (const_8_to_9_operand): New.
11260 (const_10_to_11_operand): Ditto.
11261 (const_12_to_13_operand): Ditto.
11262 (const_14_to_15_operand): Ditto.
11263 (const_16_to_19_operand): Ditto.
11264 (const_20_to_23_operand): Ditto.
11265 (const_24_to_27_operand): Ditto.
11266 (const_28_to_31_operand): Ditto.
11267 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11268 (cvtusi2<ssescalarmodesuffix>32): New.
11269 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11270 (ufloatv16siv16sf2): Ditto.
11271 (avx512f_fix_notruncv16sfv16si): Ditto.
11272 (avx512f_ufix_notruncv16sfv16si): Ditto.
11273 (avx512f_vcvtss2usi): Ditto.
11274 (avx512f_vcvtss2usiq): Ditto.
11275 (avx512f_vcvttss2usi): Ditto.
11276 (avx512f_vcvttss2usiq): Ditto.
11277 (avx512f_vcvtsd2usi): Ditto.
11278 (avx512f_vcvtsd2usiq): Ditto.
11279 (avx512f_vcvttsd2usi): Ditto.
11280 (avx512f_vcvttsd2usiq): Ditto.
11281 (ufloatv8siv8df): Ditto.
11282 (avx512f_cvtdq2pd512_2): Ditto.
11283 (avx512f_cvtpd2dq512): Ditto.
11284 (avx512f_ufix_notruncv8dfv8si): Ditto.
11285 (avx512f_cvtpd2ps512): Ditto.
11286 (vec_unpacks_lo_v16sf): Ditto.
11287 (vec_unpacks_hi_v16sf): Ditto.
11288 (vec_unpacks_float_hi_v16si): Ditto.
11289 (vec_unpacks_float_lo_v16si): Ditto.
11290 (avx512f_unpckhps512): Ditto.
11291 (avx512f_unpcklps512): Ditto.
11292 (avx512f_movshdup512): Ditto.
11293 (avx512f_movsldup512): Ditto.
11294 (vec_extract_lo_v32hi): Ditto.
11295 (vec_extract_hi_v32hi): Ditto.
11296 (vec_extract_lo_v64qi): Ditto.
11297 (vec_extract_hi_v64qi): Ditto.
11298 (avx512f_unpckhpd512): Ditto.
11299 (avx512f_movddup512): Ditto.
11300 (avx512f_unpcklpd512): Ditto.
11301 (*avx512f_unpcklpd512): Ditto.
11302 (avx512f_shufps512_1): Ditto.
11303 (avx512f_shufpd512_1): Ditto.
11304 (avx512f_interleave_highv8di): Ditto.
11305 (avx512f_interleave_lowv8di): Ditto.
11306 (PMOV_DST_MODE): Ditto.
11307 (pmov_src_mode): Ditto.
11308 (pmov_src_lower): Ditto.
11309 (pmov_suff): Ditto.
11310 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11311 (*avx512f_<code>v8div16qi2): Ditto.
11312 (*avx512f_<code>v8div16qi2_store): Ditto.
11313 (vec_widen_umult_even_v16si): Ditto.
11314 (*vec_widen_umult_even_v16si): Ditto.
11315 (vec_widen_smult_even_v16si): Ditto.
11316 (*vec_widen_smult_even_v16si): Ditto.
11317 (avx512f_interleave_highv16si): Ditto.
11318 (avx512f_interleave_lowv16si): Ditto.
11319 (avx512f_<code>v16qiv16si2): Ditto.
11320 (avx512f_<code>v16hiv16si2): Ditto.
11321 (avx512f_<code>v8qiv8di2): Ditto.
11322 (avx512f_<code>v8hiv8di2): Ditto.
11323 (avx512f_<code>v8siv8di2): Ditto.
11324 (avx512cd_maskb_vec_dupv8di): Ditto.
11325 (avx512cd_maskw_vec_dupv16si): Ditto.
11326 (avx512f_vcvtph2ps512): Ditto.
11327 (avx512f_vcvtps2ph512): Ditto.
11328 (VEC_EXTRACT_MODE): Extened with wider modes.
11329 (VEC_PERM_AVX2): Ditto.
11330 (VEC_PERM_CONST): Ditto.
11332 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11334 * config/arc/arc.c (arc_ccfsm_post_advance):
11335 Add comment about TYPE_RETURN.
11337 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11339 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11340 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11341 (strip_offset): Convert offset to unsigned number.
11343 2013-10-27 Tom de Vries <tom@codesourcery.com>
11345 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11346 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11348 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11350 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11351 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11352 (TARGET_BIG_ENDIAN): New macro.
11353 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11354 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11355 * config/sh/sh.c: Likewise.
11356 * config/sh/sh.h: Likewise.
11358 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11360 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11361 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11363 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11365 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11367 (cmpstr_t, cmpstrsi): Fix formatting.
11369 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11372 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11373 addressing, do not use general_operand for memory operands.
11375 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11378 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11379 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11381 2013-10-26 Jeff Law <law@redhat.com>
11383 * predict.c (PRED_MUDFLAP): Remove.
11384 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11386 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11387 (OBJS): Remove tree-nomudflap.o
11388 (GTFILES): Remove tree-mudflap.c
11389 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11390 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11391 (mfwrap_spec, mflib_spec): Likewise.
11392 (cpp_unique_options, cc1_options, static_specs): Likewise.
11393 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11394 * passes.def: Likewise.
11395 * toplev.c (compile_file, process_options): Likewise.
11396 * tree-inline.c (copy_tree_r): Likewise.
11397 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11398 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11399 (build_constant_desc, output_constant_def_contents): Likewise.
11400 (categorize_decl_for_section): Likewise.
11401 * tree-mudflap.c: Removed.
11402 * tree-mudflap.h: Removed.
11403 * tree-nomudflap.c: Removed.
11404 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11405 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11406 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11407 * config/sol2.h (MFLIB_SPEC): Likewise.
11408 * doc/install.texi: Remove mudflap references.
11409 * doc/passes.texi: Similarly.
11410 * doc/sourcebuild.texi: Similarly.
11411 * doc/invoke.texi: Remove mudlfap related options.
11413 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11415 PR rtl-optimization/58759
11416 * lra-constraints.c (lra_constraints): Remove wrong condition to
11417 remove insn setting up an equivalent pseudo.
11419 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11421 * config/rs6000/rs6000-protos.h
11422 (rs6000_secondary_memory_needed_mode): New prototype.
11423 * config/rs6000/rs6000.c: Include ira.h.
11424 (TARGET_LRA_P): Redefine.
11425 (rs6000_legitimate_offset_address_p): Call
11426 legitimate_constant_pool_address_p in strict mode for LRA.
11427 (rs6000_legitimate_address_p): Ditto.
11428 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11429 (rs6000_emit_move): Add LRA version of code to generate load/store
11431 (rs6000_secondary_memory_needed_mode): New.
11432 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11433 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11434 constants, memory, and FP registers.
11435 (rs6000_lra_p): New.
11436 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11437 * config/rs6000/rs6000.opt (mlra): New option.
11438 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11440 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11442 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11443 has_single_use () and not do the conversion if has_single_use ()
11444 returns false for the multiplication result.
11446 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11448 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11449 to "NODE", since this works on a "tree", not an
11451 (CONSTANT_CLASS_P): Likewise.
11452 (TYPE_P): Likewise.
11453 (DECL_P): Likewise.
11454 (INDIRECT_REF_P): Likewise.
11455 (REFERENCE_CLASS_P): Likewise.
11456 (COMPARISON_CLASS_P): Likewise.
11457 (UNARY_CLASS_P): Likewise.
11458 (BINARY_CLASS_P): Likewise.
11459 (STATEMENT_CLASS_P): Likewise.
11460 (VL_EXP_CLASS_P): Likewise.
11461 (EXPRESSION_CLASS_P): Likewise.
11462 (IS_TYPE_OR_DECL_P): Likewise.
11464 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11466 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11467 ADDR_EXPR in the defining statement.
11469 2013-10-25 Richard Biener <rguenther@suse.de>
11471 PR tree-optimization/58626
11472 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11473 anti_dd, output_dd and input_dd.
11474 (struct rdg_edge): Remove level and relation members.
11475 (RDGE_LEVEL, RDGE_RELATION): Remove.
11476 (dot_rdg_1): Adjust.
11477 (create_rdg_edge_for_ddr): Remove.
11478 (create_rdg_edges_for_scalar): Adjust.
11479 (create_edge_for_control_dependence): Likewise.
11480 (create_rdg_edges): Split into ...
11481 (create_rdg_flow_edges): ... this
11482 (create_rdg_cd_edges): ... and this.
11483 (free_rdg): Adjust.
11484 (build_rdg): Likewise, do not compute data dependences or
11485 add edges for them.
11486 (pg_add_dependence_edges): New function.
11488 (distribute_loop): First apply all non-dependence based
11489 partition mergings. Then compute dependences between partitions
11490 and merge and order partitions according to them.
11492 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11494 PR rtl-optimization/58831
11495 * alias.c (init_alias_analysis): At the beginning of each iteration,
11496 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11498 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11500 * recog.c (search_ofs): New static variable moved from...
11501 (peep2_find_free_register): ...here.
11502 (peephole2_optimize): Initialize it.
11504 2013-10-25 Tobias Burnus <burnus@net-b.de>
11506 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11508 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11510 * config/i386/i386.h (TARGET_MPX): New define.
11511 (TARGET_MPX_P): Ditto.
11513 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11515 * config/i386/constraints.md (B): New.
11518 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11519 * config/i386/i386-modes.def (BND32): New.
11521 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11522 * config/i386/i386.c (isa_opts): Add mmpx.
11523 (regclass_map): Add bound registers.
11524 (dbx_register_map): Likewise.
11525 (dbx64_register_map): Likewise.
11526 (svr4_dbx_register_map): Likewise.
11528 (ix86_option_override_internal): Support MPX ISA.
11529 (ix86_conditional_register_usage): Support bound registers.
11530 (print_reg): Likewise.
11531 (ix86_code_end): Add MPX bnd prefix.
11532 (output_set_got): Likewise.
11533 (ix86_output_call_insn): Likewise.
11534 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11535 (ix86_print_operand_punct_valid_p): Likewise.
11536 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11538 (ix86_class_likely_spilled_p): Add bound regs support.
11539 (ix86_hard_regno_mode_ok): Likewise.
11540 (x86_order_regs_for_local_alloc): Likewise.
11541 (ix86_bnd_prefixed_insn_p): New.
11542 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11543 (FIXED_REGISTERS): Add bound registers.
11544 (CALL_USED_REGISTERS): Likewise.
11545 (REG_ALLOC_ORDER): Likewise.
11546 (HARD_REGNO_NREGS): Likewise.
11548 (VALID_BND_REG_MODE): New.
11549 (FIRST_BND_REG): New.
11550 (LAST_BND_REG): New.
11551 (reg_class): Add BND_REGS.
11552 (REG_CLASS_NAMES): Likewise.
11553 (REG_CLASS_CONTENTS): Likewise.
11554 (BND_REGNO_P): New.
11555 (ANY_BND_REG_P): New.
11557 (HI_REGISTER_NAMES): Add bound registers.
11558 * config/i386/i386.md (UNSPEC_BNDMK): New.
11559 (UNSPEC_BNDMK_ADDR): New.
11560 (UNSPEC_BNDSTX): New.
11561 (UNSPEC_BNDLDX): New.
11562 (UNSPEC_BNDLDX_ADDR): New.
11563 (UNSPEC_BNDCL): New.
11564 (UNSPEC_BNDCU): New.
11565 (UNSPEC_BNDCN): New.
11566 (UNSPEC_MPX_FENCE): New.
11569 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11570 (length_immediate): Likewise.
11571 (prefix_0f): Likewise.
11572 (memory): Likewise.
11573 (prefix_rep): Check for bnd prefix.
11574 (length_nobnd): New.
11575 (length): Use length_nobnd if specified.
11580 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11581 (*jcc_2): Likewise.
11583 (simple_return_internal): Likewise.
11584 (simple_return_pop_internal): Likewise.
11585 (*indirect_jump): Add MPX bnd prefix.
11586 (*tablejump_1): Likewise.
11587 (simple_return_internal_long): Likewise.
11588 (simple_return_indirect_internal): Likewise.
11592 (*mov<mode>_internal_mpx): New.
11593 (<mode>_<bndcheck>): New.
11594 (*<mode>_<bndcheck>): New.
11596 (*<mode>_ldx): New.
11598 (*<mode>_stx): New.
11599 * config/i386/predicates.md (lea_address_operand): Rename to...
11600 (address_no_seg_operand): ... this.
11601 (address_mpx_no_base_operand): New.
11602 (address_mpx_no_index_operand): New.
11603 (bnd_mem_operator): New.
11604 * config/i386/i386.opt (mmpx): New.
11605 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11606 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11608 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11610 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11611 * tree.def (POINTER_BOUNDS_TYPE): New.
11612 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11613 (POINTER_BOUNDS_MODE): New.
11614 (make_pointer_bounds_mode): New.
11615 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11616 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11617 (layout_type): Support POINTER_BOUNDS_TYPE.
11618 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11619 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11620 (type_contains_placeholder_1): Likewise.
11621 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11622 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11623 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11625 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11627 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11628 mode of address computation when calling memory_address_addr_space.
11630 2013-08-24 Richard Henderson <rth@twiddle.net>
11633 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11634 instead of create_convert_operand_to.
11635 (maybe_emit_sync_lock_test_and_set): Likewise.
11636 (expand_atomic_compare_and_swap): Likewise.
11637 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11639 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11641 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11642 Change param_is to use the struct and not the pointer to the struct.
11644 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11646 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11647 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11648 Move to targhooks.c.
11649 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11650 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11651 Relocate from gimplify.c.
11652 * targhooks.h: Add 2 prototypes.
11653 * tree.h: Delete 2 prototypes.
11655 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11657 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11658 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11660 2013-10-24 Cong Hou <congh@google.com>
11662 * convert.c (convert_to_real): Guard those unsafe math function
11663 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11666 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11669 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11671 (cgraph_create_edge): Use the new argument.
11672 (cgraph_create_indirect_edge): Likewise.
11674 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11676 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11677 TYPE_UNCOND_BRANCH.
11678 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11679 changes statep->state.
11681 2013-10-24 Tobias Burnus <burnus@net-b.de>
11684 * tree-cfg.c (replace_loop_annotate): New function.
11685 (execute_build_cfg): Call it.
11686 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11687 * internal-fn.c (expand_ANNOTATE): New function.
11688 * internal-fn.def (ANNOTATE): Define as new internal function.
11689 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11690 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11691 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11692 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11693 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11695 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11696 Marcus Shawcroft <marcus.shawcroft@arm.com>
11698 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11699 Special case reload SP+C into none GENERAL_REGS.
11701 2013-10-24 Michael Matz <matz@suse.de>
11703 * gengtype.c (is_file_equal): Check that files will be same length.
11705 2013-10-25 Christian Bruel <christian.bruel@st.com>
11707 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11708 * config/sh/t-sh (sh-mem.o): New rule.
11709 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11710 (sh_expand_cmpstr): New function.
11711 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11712 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11713 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11714 (rotlhi3_8): Rename.
11716 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11718 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11719 * Makefile.in (CXXDEPMODE): Assign and change users.
11720 (CCDEPMODE): Delete.
11721 * configure: Regenerate.
11723 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11725 * gengtype-parse.c (require_without_advance): New.
11726 (type): For GTY-marked types that are not GTY((user)), parse any
11727 base classes, requiring them to be single-inheritance, and not
11728 be templates. For non-GTY-marked types and GTY((user)),
11729 continue to skip over any C++ inheritance specification.
11730 * gengtype-state.c (state_writer::write_state_struct_type):
11731 Write base class of type (if any).
11732 (read_state_struct_type): Read base class of type (if any).
11733 * gengtype.c (new_structure): Add a "base_class" parameter.
11734 (create_optional_field_): Update for new parameter to new_structure.
11735 (adjust_field_rtx_def): Likewise.
11736 (adjust_field_tree_exp): Likewise.
11737 * gengtype.h (struct type): Add "base_class" field to the s
11739 (new_structure): Add "base" parameter.
11741 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11744 * config/i386/i386.c (ix86_option_override_internal):
11745 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11746 (ix86_valid_target_attribute_tree):
11747 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11748 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11750 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11752 * tree-ssa-loop.h: Remove include files.
11753 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11754 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11755 * graphite-clast-to-gimple.c: Likewise.
11756 * graphite-scop-detection.c: Likewise.
11757 * graphite-sese-to-poly.c: Likewise.
11758 * ipa-inline-analysis.c: Likewise.
11759 * ipa-pure-const.c: Likewise.
11760 * loop-init.c: Likewise.
11761 * passes.c: Likewise.
11762 * predict.c: Likewise.
11763 * tree-cfg.c: Likewise.
11764 * tree-cfgcleanup.c: Likewise.
11765 * tree-chrec.c: Likewise.
11766 * tree-data-ref.c: Likewise.
11767 * tree-loop-distribution.c: Likewise.
11768 * tree-parloops.c: Likewise.
11769 * tree-predcom.c: Likewise.
11770 * tree-scalar-evolution.c: Likewise.
11771 * tree-ssa-address.c: Likewise.
11772 * tree-ssa.c: Likewise.
11773 * tree-ssa-dce.c: Likewise.
11774 * tree-ssa-loop.c: Likewise.
11775 * tree-ssa-loop-im.c: Likewise.
11776 * tree-ssa-loop-ivcanon.c: Likewise.
11777 * tree-ssa-loop-ivopts.c: Likewise.
11778 * tree-ssa-loop-manip.c: Likewise.
11779 * tree-ssa-loop-niter.c: Likewise.
11780 * tree-ssa-loop-prefetch.c: Likewise.
11781 * tree-ssa-loop-unswitch.c: Likewise.
11782 * tree-ssa-reassoc.c: Likewise.
11783 * tree-vect-data-refs.c: Likewise.
11784 * tree-vect-loop.c: Likewise.
11785 * tree-vect-loop-manip.c: Likewise.
11786 * tree-vectorizer.c: Likewise.
11787 * tree-vect-stmts.c: Likewise.
11788 * tree-vrp.c: Likewise.
11790 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11792 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11794 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11796 PR tree-optimization/58775
11797 PR tree-optimization/58791
11798 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11799 (insert_stmt_after): Rewritten, don't move the stmt, but really
11801 (get_stmt_uid_with_default): Remove.
11802 (build_and_add_sum): Use insert_stmt_after and
11803 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11804 (update_range_test): Set uid on stmts added by
11805 force_gimple_operand_gsi. Don't immediately modify statements
11806 in inter-bb optimization, just update oe->op values.
11807 (optimize_range_tests): Return bool whether any changed have been made.
11808 (update_ops): New function.
11809 (struct inter_bb_range_test_entry): New type.
11810 (maybe_optimize_range_tests): Perform statement changes here.
11811 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11812 ensure_ops_are_available): Remove.
11813 (find_insert_point): Rewritten.
11814 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11815 return LHS of the (new resp. old) stmt. Don't call
11816 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11817 instead of last, move new stmt at the right place.
11818 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11819 (negate_value): Likewise. Set uids.
11820 (break_up_subtract_bb): Initialize uids.
11821 (reassociate_bb): Adjust rewrite_expr_tree caller.
11822 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11824 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11827 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11828 TARGET_32BIT final condition.
11829 (mulsi3_internal2 and splitter): Same.
11831 2013-10-23 Jeff Law <law@redhat.com>
11833 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11834 through joiner blocks with abnormal outgoing edges.
11836 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11837 Add parameter JOINERS, to allow/disallow threading through joiner
11839 (thread_block): New. Call thread_block_1.
11840 (mark_threaded_blocks): Remove code to filter out certain cases
11841 of threading through joiner blocks.
11842 (thread_through_all_blocks): Document how we can have a dangling
11843 edge AUX field and clear it.
11845 2013-10-23 Ian Lance Taylor <iant@google.com>
11847 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11848 (C++ Dialect Options): Likewise.
11849 (Optimize Options): Likewise.
11851 2013-10-23 Tom de Vries <tom@codesourcery.com>
11853 PR tree-optimization/58805
11854 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11856 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11858 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11859 sequence based on get_range_info returned range.
11861 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11863 * tree-ssa.h: Remove all #include's
11864 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11865 * alias.c: Move required includes from tree-ssa.h.
11866 * asan.c: Likewise.
11867 * builtins.c: Likewise.
11868 * calls.c: Likewise.
11869 * cfgexpand.c: Likewise.
11870 * cfghooks.c: Likewise.
11871 * cfgloop.c: Likewise.
11872 * cfgloopmanip.c: Likewise.
11873 * cgraph.c: Likewise.
11874 * cgraphbuild.c: Likewise.
11875 * cgraphclones.c: Likewise.
11876 * cgraphunit.c: Likewise.
11878 * except.c: Likewise.
11879 * expr.c: Likewise.
11880 * final.c: Likewise.
11881 * fold-const.c: Likewise.
11882 * ggc-page.c: Likewise.
11883 * gimple-builder.c: Likewise.
11884 * gimple-fold.c: Likewise.
11885 * gimple-iterator.c: Likewise.
11886 * gimple-low.c: Likewise.
11887 * gimple-pretty-print.c: Likewise.
11888 * gimple-ssa-strength-reduction.c: Likewise.
11889 * gimple-streamer-in.c: Likewise.
11890 * gimple-streamer-out.c: Likewise.
11891 * gimplify.c: Likewise.
11892 * graphite-blocking.c: Likewise.
11893 * graphite-clast-to-gimple.c: Likewise.
11894 * graphite-dependences.c: Likewise.
11895 * graphite-interchange.c: Likewise.
11896 * graphite-optimize-isl.c: Likewise.
11897 * graphite-poly.c: Likewise.
11898 * graphite-scop-detection.c: Likewise.
11899 * graphite-sese-to-poly.c: Likewise.
11900 * graphite.c: Likewise.
11901 * ipa-cp.c: Likewise.
11902 * ipa-inline-analysis.c: Likewise.
11903 * ipa-inline-transform.c: Likewise.
11904 * ipa-inline.c: Likewise.
11905 * ipa-prop.c: Likewise.
11906 * ipa-pure-const.c: Likewise.
11907 * ipa-reference.c: Likewise.
11908 * ipa-split.c: Likewise.
11909 * ipa-utils.c: Likewise.
11910 * loop-init.c: Likewise.
11911 * lto-cgraph.c: Likewise.
11912 * lto-section-in.c: Likewise.
11913 * lto-section-out.c: Likewise.
11914 * lto-streamer-in.c: Likewise.
11915 * lto-streamer-out.c: Likewise.
11916 * lto-streamer.c: Likewise.
11917 * omp-low.c: Likewise.
11918 * passes.c: Likewise.
11919 * predict.c: Likewise.
11920 * print-tree.c: Likewise.
11921 * profile.c: Likewise.
11922 * sese.c: Likewise.
11923 * targhooks.c: Likewise.
11924 * tracer.c: Likewise.
11925 * trans-mem.c: Likewise.
11926 * tree-call-cdce.c: Likewise.
11927 * tree-cfg.c: Likewise.
11928 * tree-cfgcleanup.c: Likewise.
11929 * tree-chrec.c: Likewise.
11930 * tree-complex.c: Likewise.
11931 * tree-data-ref.c: Likewise.
11932 * tree-dfa.c: Likewise.
11933 * tree-eh.c: Likewise.
11934 * tree-emutls.c: Likewise.
11935 * tree-if-conv.c: Likewise.
11936 * tree-inline.c: Likewise.
11937 * tree-into-ssa.c: Likewise.
11938 * tree-loop-distribution.c: Likewise.
11939 * tree-mudflap.c: Likewise.
11940 * tree-nested.c: Likewise.
11941 * tree-nrv.c: Likewise.
11942 * tree-object-size.c: Likewise.
11943 * tree-outof-ssa.c: Likewise.
11944 * tree-parloops.c: Likewise.
11945 * tree-phinodes.c: Likewise.
11946 * tree-predcom.c: Likewise.
11947 * tree-pretty-print.c: Likewise.
11948 * tree-profile.c: Likewise.
11949 * tree-scalar-evolution.c: Likewise.
11950 * tree-sra.c: Likewise.
11951 * tree-ssa-address.c: Likewise.
11952 * tree-ssa-alias.c: Likewise.
11953 * tree-ssa-ccp.c: Likewise.
11954 * tree-ssa-coalesce.c: Likewise.
11955 * tree-ssa-copy.c: Likewise.
11956 * tree-ssa-copyrename.c: Likewise.
11957 * tree-ssa-dce.c: Likewise.
11958 * tree-ssa-dom.c: Likewise.
11959 * tree-ssa-dse.c: Likewise.
11960 * tree-ssa-forwprop.c: Likewise.
11961 * tree-ssa-ifcombine.c: Likewise.
11962 * tree-ssa-live.c: Likewise.
11963 * tree-ssa-loop-ch.c: Likewise.
11964 * tree-ssa-loop-im.c: Likewise.
11965 * tree-ssa-loop-ivcanon.c: Likewise.
11966 * tree-ssa-loop-ivopts.c: Likewise.
11967 * tree-ssa-loop-manip.c: Likewise.
11968 * tree-ssa-loop-niter.c: Likewise.
11969 * tree-ssa-loop-prefetch.c: Likewise.
11970 * tree-ssa-loop-unswitch.c: Likewise.
11971 * tree-ssa-loop.c: Likewise.
11972 * tree-ssa-math-opts.c: Likewise.
11973 * tree-ssa-operands.c: Likewise.
11974 * tree-ssa-phiopt.c: Likewise.
11975 * tree-ssa-phiprop.c: Likewise.
11976 * tree-ssa-pre.c: Likewise.
11977 * tree-ssa-propagate.c: Likewise.
11978 * tree-ssa-reassoc.c: Likewise.
11979 * tree-ssa-sccvn.c: Likewise.
11980 * tree-ssa-sink.c: Likewise.
11981 * tree-ssa-strlen.c: Likewise.
11982 * tree-ssa-structalias.c: Likewise.
11983 * tree-ssa-tail-merge.c: Likewise.
11984 * tree-ssa-ter.c: Likewise.
11985 * tree-ssa-threadedge.c: Likewise.
11986 * tree-ssa-threadupdate.c: Likewise.
11987 * tree-ssa-uncprop.c: Likewise.
11988 * tree-ssa-uninit.c: Likewise.
11989 * tree-ssa.c: Likewise.
11990 * tree-ssanames.c: Likewise.
11991 * tree-stdarg.c: Likewise.
11992 * tree-streamer-in.c: Likewise.
11993 * tree-switch-conversion.c: Likewise.
11994 * tree-tailcall.c: Likewise.
11995 * tree-vect-data-refs.c: Likewise.
11996 * tree-vect-generic.c: Likewise.
11997 * tree-vect-loop-manip.c: Likewise.
11998 * tree-vect-loop.c: Likewise.
11999 * tree-vect-patterns.c: Likewise.
12000 * tree-vect-slp.c: Likewise.
12001 * tree-vect-stmts.c: Likewise.
12002 * tree-vectorizer.c: Likewise.
12003 * tree-vrp.c: Likewise.
12004 * tree.c: Likewise.
12005 * tsan.c: Likewise.
12006 * value-prof.c: Likewise.
12007 * var-tracking.c: Likewise.
12008 * varpool.c: Likewise.
12009 * vtable-verify.c: Likewise.
12011 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12013 * config/tilegx/tilegx.c: Include "tree.h".
12015 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12017 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12018 the info, not after it.
12019 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12020 dump_ssaname_info call.
12021 (pp_gimple_stmt_1): Adjust caller.
12022 (dump_phi_nodes): Likewise. Don't print "# " here.
12024 2013-10-22 Jan Hubicka <jh@suse.cz>
12026 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12028 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12029 * i386.c (expand_small_movmem_or_setmem): New function.
12030 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12032 (alg_usable_p): Add support for value ranges; cleanup.
12033 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12035 2013-10-22 Sterling Augustine <saugustine@google.com>
12037 * doc/invoke.texi: Document -ggnu-pubnames.
12038 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12040 * dwarf2out.c: Include gdb/gdb-index.h.
12041 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12042 debug_generate_pub_sections.
12043 (is_java, output_pubtables, output_pubname): New functions.
12044 (include_pubname_in_output): Handle debug_generate_pub_sections at
12046 (size_of_pubnames): Use new local space_for_flags based on
12047 debug_generate_pub_sections.
12048 (output_pubnames): Unify pubnames and pubtypes output logic.
12049 Genericize comments. Call output_pubname.
12050 (dwarf2out_finish): Move logic to output_pubnames and call it.
12052 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12055 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12056 Remove CCCmode handling.
12057 <case LTU>: Return 'c' suffix for CCCmode.
12058 <case GEU>: Return 'nc' suffix for CCCmode.
12059 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12060 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12061 (*sub<mode>3_cc_overflow): Ditto.
12062 (*subsi3_zext_cc_overflow): Ditto.
12064 2013-10-22 Steve Ellcey <sellcey@mips.com>
12066 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12067 (AND (NOT OP1) (NOT OP2)).
12069 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12071 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12072 meaning of merge-high and merge-low masks for little endian; avoid
12073 use of vector-pack masks for little endian for mismatched modes.
12075 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12077 * config/tilepro/tilepro.c: Include "tree.h".
12079 2013-10-22 Andreas Schwab <schwab@suse.de>
12081 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12084 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12086 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12087 [Ed Smith-Rowland]): New entries.
12088 ([Stephen M. Webb]): Update.
12090 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12092 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12094 2013-10-21 Marek Polacek <polacek@redhat.com>
12096 PR middle-end/58809
12097 * fold-const.c (fold_range_test): Return 0 if the type is not
12100 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12102 * system.h: Move hwint.h include further down.
12103 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12104 gcc_checking_asserts.
12105 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12107 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12109 Fix volatile issues in optimize_bit_field_compare.
12110 * fold-const.c (optimize_bit_field_compare): Bail out if
12111 lvolatilep or rvolatilep.
12113 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12115 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12116 and get_inner_reference returning different pmode for non-volatile
12117 bit-field members dependent on flag_strict_volatile_bitfields.
12118 * stor-layout.c (layout_decl): Remove special handling of
12119 flag_strict_volatile_bitfields.
12120 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12121 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12123 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12125 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12128 2013-10-21 Jeff Law <law@redhat.com>
12130 * tree-ssa-threadedge.c (thread_through_normal_block): New
12131 argument VISITED. Remove VISISTED as a local variable. When we
12132 have a threadable jump, verify the destination of the jump has not
12134 (thread_across_edge): Allocate VISITED bitmap once at function
12135 scope and use it throughout. Make sure to set appropriate bits in
12136 VISITED for E (start of jump thread path).
12137 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12138 through a joiner if any edge on the path has a recorded jump thread.
12140 2013-10-21 Ian Lance Taylor <iant@google.com>
12142 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12143 don't imply that attributes can solve all problems.
12144 (Directory Options): Fix typo.
12146 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12148 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12149 extend and extend_add.
12151 2013-10-21 Richard Biener <rguenther@suse.de>
12153 PR tree-optimization/58794
12154 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12155 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12157 2013-10-21 Richard Biener <rguenther@suse.de>
12159 PR middle-end/58742
12160 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12161 to (T) X for sign-changing conversions (or no conversion).
12163 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12165 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12167 2013-10-20 Jan Hubicka <jh@suse.cz>
12169 * config/i386/i386-tune.def: Add comment; organize into categories
12171 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12173 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12174 argument. Update function comment.
12175 (expand_set_or_movmem_via_rep): New function combining
12176 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12177 (expand_movmem_via_rep_mov): Remove.
12178 expand_setmem_via_rep_stos): Remove.
12179 (expand_movmem_epilogue): Update calls correspondingly.
12180 (expand_setmem_epilogue_via_loop): Likewise.
12181 (emit_memset): New.
12182 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12183 (expand_set_or_movmem_prologue): New function combining
12184 expand_movmem_prologue and expand_setmem_prologue.
12185 (expand_movmem_prologue): Remove.
12186 (expand_setmem_prologue): Remove.
12187 (expand_set_or_movmem_constant_prologue): New function combining
12188 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12189 (expand_constant_movmem_prologue): Remove.
12190 (expand_constant_setmem_prologue): Remove.
12191 (promote_duplicated_reg): Allow vector-const0 value.
12192 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12193 and ix86_expand_setmem.
12194 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12195 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12197 2013-10-21 Diego Novillo <dnovillo@google.com>
12199 * asan.c: Include tree.h
12200 * bb-reorder.c: Likewise.
12201 * cfgcleanup.c: Likewise.
12202 * cfgloopmanip.c: Likewise.
12203 * data-streamer-in.c: Likewise.
12204 * data-streamer-out.c: Likewise.
12205 * data-streamer.c: Likewise.
12206 * dwarf2cfi.c: Likewise.
12207 * graphite-blocking.c: Likewise.
12208 * graphite-clast-to-gimple.c: Likewise.
12209 * graphite-dependences.c: Likewise.
12210 * graphite-interchange.c: Likewise.
12211 * graphite-optimize-isl.c: Likewise.
12212 * graphite-poly.c: Likewise.
12213 * graphite-scop-detection.c: Likewise.
12214 * graphite-sese-to-poly.c: Likewise.
12215 * graphite.c: Likewise.
12216 * ipa-devirt.c: Likewise.
12217 * ipa-profile.c: Likewise.
12220 * loop-init.c: Likewise.
12221 * loop-unroll.c: Likewise.
12222 * lower-subreg.c: Likewise.
12223 * lto/lto-object.c: Likewise.
12224 * recog.c: Likewise.
12225 * reginfo.c: Likewise.
12226 * tree-loop-distribution.c: Likewise.
12227 * tree-parloops.c: Likewise.
12228 * tree-ssa-strlen.c: Likewise.
12229 * tree-streamer.c: Likewise.
12230 * value-prof.c: Likewise.
12231 * target-globals.c: Likewise.
12232 * expr.h: Include tree-core.h instead of tree.h.
12233 * gimple.h: Likewise.
12234 * ipa-prop.h: Likewise.
12235 * ipa-utils.h: Likewise.
12236 * lto-streamer.h: Likewise.
12237 * streamer-hooks.h: Likewise.
12238 * ipa-reference.h: Include cgraph.h instead of tree.h.
12239 * cgraph.h: Include basic-block.h instead of tree.h.
12240 * tree-streamer.h: Do not include tree.h.
12241 * genattrtab.c (write_header): Generate inclusion of tree.h.
12242 * genautomata.c (main): Likewise.
12243 * genemit.c: Likewise.
12244 * genopinit.c: Likewise.
12245 * genoutput.c (output_prologue): Likewise.
12246 * genpeep.c: Likewise.
12248 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12250 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12252 (vec_unpacku_hi_v8hi): Likewise.
12253 (vec_unpacku_lo_v16qi): Likewise.
12254 (vec_unpacku_lo_v8hi): Likewise.
12256 2013-10-20 Jan Hubicka <jh@suse.cz>
12258 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12259 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12260 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12262 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12264 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12265 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12267 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12269 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12272 * system.h: Undef m_slot.
12274 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12276 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12277 all elements for both endian flavors.
12279 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12282 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12283 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12284 and SI_REG for 64bit SYSV ABI targets.
12286 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12288 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12289 to multi_reg_return. Clarify that we are skipping USEs of multiple
12290 return registers. Use bool type where appropriate.
12292 2013-10-18 Jan Hubicka <jh@suse.cz>
12294 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12295 for cold functions.
12296 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12297 (X86_TUNE_PUSH_MEMORY): Likewise.
12298 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12299 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12300 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12302 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12303 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12305 (ix86_option_override_internal): Update to use tune features instead
12308 2013-10-18 Cong Hou <congh@google.com>
12310 PR tree-optimization/58508
12311 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12312 statement that contains data refs with zero-step.
12314 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12316 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12317 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12318 * gimple-low.c (gimple_check_call_arg,
12319 gimple_check_call_matching_types): Move to cgraph.c.
12320 * gimple-low.h: Remove prototype.
12321 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12322 Relocate from gimple-low.c.
12323 * cgraph.h: Add prototype. Don't include basic-block.h.
12324 * gimplify.c: Add gimple-low to include list.
12325 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12326 * tree-eh.c: Add gimple-low to include list.
12327 * tree-nested.c: Likewise.
12328 * cfgexpand.c: Add tree-ssa-address.h to include list.
12329 * expr.c: Likewise.
12330 * gimple-fold.c: Likewise.
12331 * gimple-ssa-strength-reduction.c: Likewise.
12332 * trans-mem.c: Likewise.
12333 * tree-mudflap.c: Likewise.
12334 * tree-ssa-loop-ivopts.c: Likewise.
12335 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12336 (degenerate_phi_result): Move to tree-phinodes.c.
12337 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12338 * tree-ssa-threadedge.c: Likewise.
12339 * tree-vrp.c: Likewise.
12340 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12341 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12342 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12343 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12344 * tree-ssa-forwprop.c: Likewise.
12345 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12346 pass_data_cleanup_cfg_post_optimizing,
12347 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12348 * tree-optimize.c: Delete File.
12349 * graphite.c: Include tree-cfgcleanup.h.
12350 * passes.c: Likewise.
12351 * tree-cfg.c: Likewise.
12352 * tree-profile.c: Likewise.
12353 * tree-ssa-dse.c: Likewise.
12354 * tree-ssa-loop-ivcanon.c: Likewise.
12355 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12356 * tree-outof-ssa.c: Include sbitmap.h.
12357 * tree-ssa-live.c: Likewise.
12358 * tree-ssa-propagate.c: Likewise.
12359 * tree-ssa-structalias.c: Likewise.
12360 * tree-stdarg.c: Likewise.
12361 * Makefile.in (OBJS): Delete tree-optimize.o.
12362 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12363 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12364 * varasm.c: Include basic-block.h.
12365 * cfgloop.h: Include function.h instead of basic-block.h
12366 (bb_loop_depth): Move to cfgloop.c.
12367 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12369 2013-10-18 Teresa Johnson <tejohnson@google.com>
12371 * predict.c (probably_never_executed): Compare frequency-based
12372 count to number of training runs.
12373 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12375 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12377 * config/arm/arm.c (cortexa9_extra_costs): New table.
12378 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12380 2013-10-18 Jeff Law <law@redhat.com>
12382 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12384 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12385 (register_jump_thread): Add "registered_jump_thread" debug
12387 * dbgcnt.def (registered_jump_thread): New debug counter.
12389 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12391 * config/rs6000/rs6000.c: Include cgraph.h.
12393 2013-10-18 Teresa Johnson <tejohnson@google.com>
12395 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12396 weights during merging.
12398 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12400 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12401 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12402 * tree-ssa-operands.h: Remove prototype.
12403 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12404 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12405 * gimple.h: Add prototype.
12406 * gimple-ssa.h: Include tree-ssa-operands.h.
12407 * tree-dump.c: Add tree-cfg.h to include list.
12408 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12409 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12410 * config/i386/i386.c: Don't include tree-flow.h.
12411 * config/rs6000/rs6000.c: Likewise.
12413 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12415 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12417 2013-10-18 Richard Biener <rguenther@suse.de>
12419 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12420 or TYPE_UNSIGNED of integral types.
12421 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12422 NULL_TREE for zero-precision integral types.
12424 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12426 * config/aarch64/arm_neon.h
12427 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12429 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12432 * opth-gen.awk: Define target_flags_explicit.
12434 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12436 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12437 fields to the reg_addr array that describes the valid addressing
12438 mode for any register, general purpose registers, floating point
12439 registers, and Altivec registers.
12440 (FIRST_RELOAD_REG_CLASS): Likewise.
12441 (LAST_RELOAD_REG_CLASS): Likewise.
12442 (struct reload_reg_map_type): Likewise.
12443 (reload_reg_map_type): Likewise.
12444 (RELOAD_REG_VALID): Likewise.
12445 (RELOAD_REG_MULTIPLE): Likewise.
12446 (RELOAD_REG_INDEXED): Likewise.
12447 (RELOAD_REG_OFFSET): Likewise.
12448 (RELOAD_REG_PRE_INCDEC): Likewise.
12449 (RELOAD_REG_PRE_MODIFY): Likewise.
12450 (reg_addr): Likewise.
12451 (mode_supports_pre_incdec_p): New helper functions to say whether
12452 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12453 (mode_supports_pre_modify_p): Likewise.
12454 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12455 print the valid address mode bits for each mode.
12456 (rs6000_debug_print_mode): Likewise.
12457 (rs6000_debug_reg_global): Likewise.
12458 (rs6000_setup_reg_addr_masks): New function to set up the address
12459 mask bits for each type.
12460 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12461 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12462 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12463 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12464 PRE_MODIFY are supported.
12465 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12466 registers, instead of {src,dest}_av_p.
12467 (rs6000_print_options_internal): Tweak the debug output slightly.
12469 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12471 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12474 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12476 * tree-flow.h (struct omp_region): Move to omp-low.c.
12477 Remove omp_ prototypes and variables.
12478 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12479 (copy_var_decl): Relocate prototype from tree-flow.h.
12480 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12481 * tree.h: Move prototype to omp-low.h.
12482 * omp-low.h: New File. Relocate prototypes here.
12483 * omp-low.c (struct omp_region): Make local here.
12484 (root_omp_region): Make static.
12485 (copy_var_decl) Move to gimple.c.
12486 (new_omp_region): Make static.
12487 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12488 * tree-cfg.c: Include omp-low.h.
12489 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12490 * gimplify.c: Include omp-low.h.
12491 * tree-parloops.c: Likewise.
12493 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12495 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12496 operands are in memory, prefer to force non-matched operand 1 to
12499 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12502 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12503 restrict TImode addresses to single indirect registers if both
12504 -mquad-memory and -mvsx-timode are used.
12505 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12506 we should emit load/store quad. Remove using %y for quad memory
12509 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12510 constraints to allow load/store quad on machines where TImode is
12511 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12512 for TImode to load integer constants.
12514 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12516 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12518 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12520 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12521 handling of STACK_REG.
12523 2013-10-17 Richard Biener <rguenther@suse.de>
12525 PR tree-optimization/58143
12526 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12528 (rewrite_to_defined_overflow): Likewise.
12529 (move_computations_dom_walker::before_dom): Rewrite stmts
12530 with undefined signed overflow that are not always executed
12531 into unsigned arithmetic.
12533 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12536 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12537 explicit isa flag to be an options variable, instead of using
12538 global_options_set. Remove define from rs6000.h.
12539 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12541 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12542 Initialize rs6000_isa_flags_explicit.
12543 (rs6000_function_specific_save): Add gcc_options* parameter, so
12544 that the powerpc builds after the 2013-10-15 changes.
12545 (rs6000_function_specific_restore): Likewise.
12547 2013-10-16 DJ Delorie <dj@redhat.com>
12549 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12550 op is a REG before checking REGNO.
12551 (rl78_alloc_physical_registers): Verify pattern is a SET before
12554 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12556 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12558 (vec_unpacks_lo_v4sf): Likewise.
12559 (vec_unpacks_float_hi_v4si): Likewise.
12560 (vec_unpacks_float_lo_v4si): Likewise.
12561 (vec_unpacku_float_hi_v4si): Likewise.
12562 (vec_unpacku_float_lo_v4si): Likewise.
12564 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12566 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12567 (vsx_concat_v2sf): Likewise.
12569 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12571 * config/aarch64/aarch64.md
12572 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12574 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12576 PR tree-optimization/58697
12577 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12578 estimated_loop_iterations_int.
12579 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12580 (get_max_loop_iterations_int): New. HWINT version of
12581 get_max_loop_iterations.
12582 * cfgloop.h: Add prototypes.
12583 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12584 * loop-unroll.c (decide_peel_once_rolling): Call
12585 get_estimated_loop_iterations_int.
12586 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12587 * tree-ssa-loop-niter.h: Tweak prototypes.
12589 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12591 * gengtype-parse.c (struct_field_seq): Ignore access-control
12592 keywords ("public:" etc).
12594 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12596 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12597 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12599 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12601 * config/arm/arm.opt (mlra): New option.
12602 * config/arm/arm.c (arm_lra_p): New function.
12603 (TARGET_LRA_P): Define.
12605 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12607 * tree-core.h (tree_code_name): Remove.
12608 * tree.h (get_tree_code_name): New prototype.
12609 * tree.c (tree_code_name): Make static.
12610 (get_tree_code_name): New function.
12611 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12612 tree_class_check_failed, tree_range_check_failed,
12613 tree_not_class_check_failed, omp_clause_check_failed,
12614 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12615 wrapper get_tree_code_name instead of calling tree_code_name directly.
12616 * tree-vrp.c (dump_asserts_for): Likewise.
12617 * tree-dump.c (dequeue_and_dump): Likewise.
12618 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12619 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12620 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12621 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12622 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12623 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12624 dump_gimple_omp_for): Likewise.
12625 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12626 * tree-ssa-pre.c (print_pre_expr): Likewise.
12627 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12628 * print-tree.c (print_node_brief, print_node): Likewise.
12629 * gimple.c (gimple_check_failed): Likewise.
12630 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12631 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12632 * config/mep/mep.c (mep_validate_vliw): Likewise.
12633 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12634 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12636 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12638 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12641 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12643 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12644 (MULTILIB_MATCHES): Add multilib for -march=v8.
12646 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12649 * optc-save-gen.awk: Add extra parameter to the save and restore
12651 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12652 * tree.c (build_optimization_node): New parameter. Add extra parameter
12653 to call to cl_optimization_save.
12654 (build_target_option_node): New parameter. Add extra parameter
12655 to call to cl_target_option_save.
12656 * tree.h (build_optimization_node): New parameter.
12657 (build_target_option_node): New parameter.
12658 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12659 build_optimization_node and build_target_option_node.
12660 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12661 (handle_pragma_push_options): Ditto.
12662 * toplev.c (process_options): Ditto.
12663 * opts.c (init_options_struct): Check for opts_set non-null.
12664 * target.def (target_option.save): New parameter.
12665 (target_option.restore): New parameter.
12666 * tm.texi: Generate.
12667 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12668 (ix86_pragma_target_parse): Ditto.
12669 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12671 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12672 to build_optimization_node and build_target_option_node.
12673 (rs6000_valid_attribute_p): Ditto.
12674 (rs6000_pragma_target_parse): Ditto.
12675 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12677 * config/i386/i386.h:
12678 TARGET_64BIT_P: New Macro
12679 TARGET_MMX_P: New Macro.
12680 TARGET_3DNOW_P: New Macro.
12681 TARGET_3DNOW_A_P: New Macro.
12682 TARGET_SSE_P: New Macro.
12683 TARGET_SSE2_P: New Macro.
12684 TARGET_SSE3_P: New Macro.
12685 TARGET_SSSE3_P: New Macro.
12686 TARGET_SSE4_1_P: New Macro.
12687 TARGET_SSE4_2_P: New Macro.
12688 TARGET_AVX_P: New Macro.
12689 TARGET_AVX2_P: New Macro.
12690 TARGET_AVX512F_P: New Macro.
12691 TARGET_AVX512PF_P: New Macro.
12692 TARGET_AVX512ER_P: New Macro.
12693 TARGET_AVX512CD_P: New Macro.
12694 TARGET_FMA_P: New Macro.
12695 TARGET_SSE4A_P: New Macro.
12696 TARGET_FMA4_P: New Macro.
12697 TARGET_XOP_P: New Macro.
12698 TARGET_LWP_P: New Macro.
12699 TARGET_ABM_P: New Macro.
12700 TARGET_BMI_P: New Macro.
12701 TARGET_BMI2_P: New Macro.
12702 TARGET_LZCNT_P: New Macro.
12703 TARGET_TBM_P: New Macro.
12704 TARGET_POPCNT_P: New Macro.
12705 TARGET_SAHF_P: New Macro.
12706 TARGET_MOVBE_P: New Macro.
12707 TARGET_CRC32_P: New Macro.
12708 TARGET_AES_P: New Macro.
12709 TARGET_PCLMUL_P: New Macro.
12710 TARGET_CMPXCHG16B_P: New Macro.
12711 TARGET_FSGSBASE_P: New Macro.
12712 TARGET_RDRND_P: New Macro.
12713 TARGET_F16C_P: New Macro.
12714 TARGET_RTM_P: New Macro.
12715 TARGET_HLE_P: New Macro.
12716 TARGET_RDSEED_P: New Macro.
12717 TARGET_PRFCHW_P: New Macro.
12718 TARGET_ADX_P: New Macro.
12719 TARGET_FXSR_P: New Macro.
12720 TARGET_XSAVE_P: New Macro.
12721 TARGET_XSAVEOPT_P: New Macro.
12722 TARGET_LP64_P: New Macro.
12723 TARGET_X32_P: New Macro.
12724 TARGET_FPMATH_DEFAULT_P: New Macro.
12725 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12726 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12728 Change ix86_tune_string to access opts->x_ix86_tune_string.
12729 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12730 Change ix86_arch_string to access opts->x_ix86_arch_string.
12731 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12732 Change ix86_pmode to access opts->x_ix86_pmode.
12733 Change ix86_abi to access opts->x_ix86_abi.
12734 Change ix86_cmodel to access opts->x_ix86_cmodel.
12735 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12736 Change ix86_isa_flags_explicit to access
12737 opts->x_ix86_isa_flags_explicit.
12738 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12739 Change ix86_regparm to access opts->x_ix86_regparm.
12740 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12741 Change ix86_preferred_stack_boundary_arg to access
12742 opts->x_ix86_preferred_stack_boundary_arg.
12743 Change ix86_force_align_arg_pointer to access
12744 opts->x_ix86_force_align_arg_pointer.
12745 Change ix86_incoming_stack_boundar_arg to access
12746 opts->x_ix86_incoming_stack_boundar_arg.
12747 Change ix86_fpmath to access opts->x_ix86_fpmath.
12748 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12749 Change ix86_recip_name to access opts->x_ix86_recip_name.
12750 Change ix86_stack_protector_guard to access
12751 opts->x_ix86_stack_protector_guard.
12752 Change ix86_tune_memcpy_strategy to access
12753 opts->x_ix86_tune_memcpy_strategy.
12754 Change ix86_tune_memset_strategy to access
12755 opts->x_ix86_tune_memset_strategy.
12756 Change global_options to access opts.
12757 Change global_options_set to access opts_set.
12758 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12759 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12760 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12761 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12762 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12763 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12764 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12765 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12766 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12767 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12768 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12769 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12770 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12771 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12772 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12773 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12774 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12775 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12776 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12777 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12778 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12779 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12780 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12781 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12782 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12783 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12784 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12785 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12786 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12787 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12788 Change TARGET_AES to TARGET_AES_P (opts->...).
12789 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12790 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12791 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12792 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12793 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12794 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12795 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12796 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12797 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12798 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12799 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12800 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12801 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12802 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12803 Change TARGET_X32 to TARGET_X32_P (opts->...).
12804 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12805 Change TARGET_FLOAT_RETURNS_IN_80387 to
12806 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12807 (ix86_function_specific_save): New parameter. Use opts-> fields
12808 to replace global fields.
12809 (ix86_function_specific_restore): Ditto.
12810 (ix86_valid_target_attribute_inner_p): New parameters.
12811 Fix recursive call.
12812 Fix call to ix86_handle_option and set_option.
12813 (ix86_valid_target_attribute_tree): New parameters.
12814 Change global_options to access opts.
12815 Change global_options_set to access opts_set.
12816 Fix call to ix86_valid_target_attribute_inner_p.
12817 Change ix86_tune_string to access opts->x_ix86_tune_string.
12818 Change ix86_arch_string to access opts->x_ix86_arch_string.
12819 Change ix86_fpmath to access opts->x_ix86_fpmath
12820 Fix call to ix86_option_override_internal.
12821 Fix call to ix86_add_new_builtins.
12822 Fix calls to build_optimization_node and build_target_option_node.
12823 (ix86_valid_target_attribute_p): Remove access to global_options.
12824 Use new gcc_options structure func_options.
12825 Fix call to ix86_valid_target_attribute_tree.
12826 Fix call to build_optimization_node.
12827 (get_builtin_code_for_version): Fix call to
12828 ix86_valid_target_attribute_tree.
12830 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12832 * Makefile.in (PICFLAG): New.
12833 (enable_host_shared): New.
12834 (INTERNAL_CFLAGS): Use PICFLAG.
12835 (LIBIBERTY): Use pic build of libiberty.a if configured with
12836 --enable-host-shared.
12837 * configure.ac: Add --enable-host-shared, setting up new
12839 * configure: Regenerate.
12840 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12841 (--enable-host-shared): New option.
12843 2013-10-15 Richard Biener <rguenther@suse.de>
12845 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12846 for built-in functions.
12848 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12850 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12851 (optimize_range_tests_1): New function,
12852 extracted from optimize_range_tests.
12853 (optimize_range_tests_xor): Similarly.
12854 (optimize_range_tests_diff): New function.
12855 (optimize_range_tests): Use optimize_range_tests_1.
12857 2013-10-15 Cong Hou <congh@google.com>
12859 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12860 requirement of the reduction pattern so that one operand of the
12861 reduction operation can come from outside of the loop.
12863 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12865 * config/arm/neon-schedgen.ml: Remove.
12866 * config/arm/cortex-a9-neon.md: Remove comment regarding
12869 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12871 * config/arm/types: Remove old neon types.
12873 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12875 * config/arm/cortex-a7.md
12876 (cortex_a7_neon_type): New.
12877 (cortex_a7_neon_mul): Update for new types.
12878 (cortex_a7_neon_mla): Likewise.
12879 (cortex_a7_neon): Likewise.
12881 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12883 * config/arm/cortex-a15-neon.md
12884 (cortex_a15_neon_type): New,
12886 (cortex_a15_neon_int_1): Remove.
12887 (cortex_a15_neon_int_2): Likewise.
12888 (cortex_a15_neon_int_3): Likewise.
12889 (cortex_a15_neon_int_4): Likewise.
12890 (cortex_a15_neon_int_5): Likewise.
12891 (cortex_a15_neon_vqneg_vqabs): Likewise.
12892 (cortex_a15_neon_vmov): Likewise.
12893 (cortex_a15_neon_vaba): Likewise.
12894 (cortex_a15_neon_vaba_qqq): Likewise.
12895 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12896 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12897 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12899 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12900 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12901 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12902 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12903 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12904 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12905 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12906 (cortex_a15_neon_shift_1): Likewise.
12907 (cortex_a15_neon_shift_2): Likewise.
12908 (cortex_a15_neon_shift_3): Likewise.
12909 (cortex_a15_neon_vshl_ddd): Likewise.
12910 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12911 (cortex_a15_neon_vsra_vrsra): Likewise.
12912 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12913 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12914 (cortex_a15_neon_bp_3cycle): Likewise.
12915 (cortex_a15_neon_ldm_2): Likewise.
12916 (cortex_a15_neon_stm_2): Likewise.
12917 (cortex_a15_neon_mcr): Likewise.
12918 (cortex_a15_neon_mrc): Likewise.
12919 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12920 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12921 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12922 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12923 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12924 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12925 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12926 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12927 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12928 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12929 (cortex_a15_neon_bp_simple): Likewise.
12930 (cortex_a15_neon_bp_2cycle): Likewise.
12931 (cortex_a15_neon_bp_3cycle): Likewise.
12932 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12933 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12934 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12935 (cortex_a15_neon_vld2_4_regs): Likewise.
12936 (cortex_a15_neon_vld3_vld4): Likewise.
12937 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12938 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12939 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12940 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12941 (cortex_a15_neon_vst3_vst4): Rename to...
12942 (cortex_a15_neon_vst4): This, update for new attributes.
12943 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12944 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12945 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12946 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12947 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12948 (cortex_a15_neon_ldm_2): Likewise.
12949 (cortex_a15_neon_stm_2): Likewise.
12950 (cortex_a15_neon_mcr): Likewise.
12951 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12952 (cortex_a15_neon_mrc): Likewise.
12953 (cortex_a15_neon_mrrc): Likewise.
12955 (cortex_a15_neon_abd): New.
12956 (cortex_a15_neon_abd_q): Likewise.
12957 (cortex_a15_neon_aba): Likewise.
12958 (cortex_a15_neon_aba_q): Likewise.
12959 (cortex_a15_neon_acc): Likewise.
12960 (cortex_a15_neon_acc_q): Likewise.
12961 (cortex_a15_neon_arith_basic): Likewise.
12962 (cortex_a15_neon_arith_complex): Likewise.
12963 (cortex_a15_neon_multiply): Likewise.
12964 (cortex_a15_neon_multiply_q): Likewise.
12965 (cortex_a15_neon_mla): Likewise.
12966 (cortex_a15_neon_mla_q): Likewise.
12967 (cortex_a15_neon_sat_mla_long): Likewise.
12968 (cortex_a15_neon_shift_acc): Likewise.
12969 (cortex_a15_neon_shift_imm_basic): Likewise.
12970 (cortex_a15_neon_shift_imm_complex): Likewise.
12971 (cortex_a15_neon_shift_reg_basic): Likewise.
12972 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12973 (cortex_a15_neon_shift_reg_complex): Likewise.
12974 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12975 (cortex_a15_neon_fp_negabs): Likewise
12976 (cortex_a15_neon_fp_arith): Likewise
12977 (cortex_a15_neon_fp_arith_q): Likewise
12978 (cortex_a15_neon_fp_cvt_int): Likewise
12979 (cortex_a15_neon_fp_cvt_int_q): Likewise
12980 (cortex_a15_neon_fp_cvt_16): Likewise
12981 (cortex_a15_neon_fp_mul): Likewise
12982 (cortex_a15_neon_fp_mul_q): Likewise
12983 (cortex_a15_neon_fp_mla): Likewise
12984 (cortex_a15_neon_fp_mla_q): Likewise
12985 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12986 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12987 (cortex_a15_neon_bitops): Likewise.
12988 (cortex_a15_neon_bitops_q): Likewise.
12989 (cortex_a15_neon_from_gp): Likewise.
12990 (cortex_a15_neon_from_gp_q): Likewise.
12991 (cortex_a15_neon_tbl3_tbl4): Likewise.
12992 (cortex_a15_neon_zip_q): Likewise.
12993 (cortex_a15_neon_to_gp): Likewise.
12994 (cortex_a15_neon_load_a): Likewise.
12995 (cortex_a15_neon_load_b): Likewise.
12996 (cortex_a15_neon_load_c): Likewise.
12997 (cortex_a15_neon_load_d): Likewise.
12998 (cortex_a15_neon_load_e): Likewise.
12999 (cortex_a15_neon_load_f): Likewise.
13000 (cortex_a15_neon_store_a): Likewise.
13001 (cortex_a15_neon_store_b): Likewise.
13002 (cortex_a15_neon_store_c): Likewise.
13003 (cortex_a15_neon_store_d): Likewise.
13004 (cortex_a15_neon_store_e): Likewise.
13005 (cortex_a15_neon_store_f): Likewise.
13006 (cortex_a15_neon_store_g): Likewise.
13007 (cortex_a15_neon_store_h): Likewise.
13008 (cortex_a15_vfp_to_from_gp): Likewise.
13010 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13012 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13014 (cortex_a9_neon_vshl_ddd): Remove.
13015 (cortex_a9_neon_vst3_vst4): Likewise.
13016 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13018 (cortex_a9_neon_bit_ops_q): New.
13020 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13021 (cortex_a9_neon_int_2): Likewise.
13022 (cortex_a9_neon_int_3): Likewise.
13023 (cortex_a9_neon_int_4): Likewise.
13024 (cortex_a9_neon_int_5): Likewise.
13025 (cortex_a9_neon_vqneg_vqabs): Likewise.
13026 (cortex_a9_neon_vmov): Likewise.
13027 (cortex_a9_neon_vaba): Likewise.
13028 (cortex_a9_neon_vaba_qqq): Likewise.
13029 (cortex_a9_neon_shift_1): Likewise.
13030 (cortex_a9_neon_shift_2): Likewise.
13031 (cortex_a9_neon_shift_3): Likewise.
13032 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13033 (cortex_a9_neon_vsra_vrsra): Likewise.
13034 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13035 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13036 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13038 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13039 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13040 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13042 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13043 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13044 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13045 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13046 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13047 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13048 (cortex_a9_neon_fp_vsum): Likewise.
13049 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13050 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13051 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13052 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13053 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13054 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13055 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13056 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13057 (cortex_a9_neon_bp_simple): Likewise.
13058 (cortex_a9_neon_bp_2cycle): Likewise.
13059 (cortex_a9_neon_bp_3cycle): Likewise.
13060 (cortex_a9_neon_ldr): Likewise.
13061 (cortex_a9_neon_str): Likewise.
13062 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13063 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13064 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13065 (cortex_a9_neon_vld2_4_regs): Likewise.
13066 (cortex_a9_neon_vld3_vld4): Likewise.
13067 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13068 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13069 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13070 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13071 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13072 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13073 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13074 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13075 (cortex_a9_neon_mcr): Likewise.
13076 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13077 (cortex_a9_neon_mrc): Likewise.
13078 (cortex_a9_neon_mrrc): Likewise.
13080 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13082 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13084 (cortex_a8_neon_vshl_ddd): Remove.
13085 (cortex_a8_neon_vst3_vst4): Likewise.
13086 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13088 (cortex_a8_neon_bit_ops_q): New.
13090 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13091 (cortex_a8_neon_int_2): Likewise..
13092 (cortex_a8_neon_int_3): Likewise.
13093 (cortex_a8_neon_int_5): Likewise.
13094 (cortex_a8_neon_vqneg_vqabs): Likewise.
13095 (cortex_a8_neon_int_4): Likewise.
13096 (cortex_a8_neon_vaba): Likewise.
13097 (cortex_a8_neon_vaba_qqq): Likewise.
13098 (cortex_a8_neon_shift_1): Likewise.
13099 (cortex_a8_neon_shift_2): Likewise.
13100 (cortex_a8_neon_shift_3): Likewise.
13101 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13102 (cortex_a8_neon_vsra_vrsra): Likewise.
13103 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13104 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13105 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13107 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13108 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13109 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13111 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13112 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13113 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13114 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13115 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13116 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13117 (cortex_a8_neon_fp_vsum): Likewise.
13118 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13119 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13120 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13121 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13122 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13123 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13124 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13125 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13126 (cortex_a8_neon_bp_simple): Likewise.
13127 (cortex_a8_neon_bp_2cycle): Likewise.
13128 (cortex_a8_neon_bp_3cycle): Likewise.
13129 (cortex_a8_neon_ldr): Likewise.
13130 (cortex_a8_neon_str): Likewise.
13131 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13132 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13133 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13134 (cortex_a8_neon_vld2_4_regs): Likewise.
13135 (cortex_a8_neon_vld3_vld4): Likewise.
13136 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13137 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13138 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13139 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13140 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13141 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13142 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13143 (cortex_a8_neon_mcr): Likewise.
13144 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13145 (cortex_a8_neon_mrc): Likewise.
13146 (cortex_a8_neon_mrrc): Likewise.
13148 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13150 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13152 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13153 (aarch64_simd_dup<mode>): Add "type" attribute.
13154 (aarch64_dup_lane<mode>): Likewise.
13155 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13156 (*aarch64_simd_mov<mode>): Likewise.
13157 (aarch64_simd_mov_from_<mode>low): Likewise.
13158 (aarch64_simd_mov_from_<mode>high): Likewise.
13159 (orn<mode>3): Likewise.
13160 (bic<mode>3): Likewise.
13161 (add<mode>3): Likewise.
13162 (sub<mode>3): Likewise.
13163 (mul<mode>3): Likewise.
13164 (*aarch64_mul3_elt<mode>): Likewise.
13165 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13166 (*aarch64_mul3_elt_to_128df): Likewise.
13167 (*aarch64_mul3_elt_to_64v2df): Likewise.
13168 (neg<mode>2): Likewise.
13169 (abs<mode>2): Likewise.
13170 (abd<mode>_3): Likewise.
13171 (aba<mode>_3): Likewise.
13172 (fabd<mode>_3): Likewise.
13173 (*fabd_scalar<mode>3): Likewise.
13174 (and<mode>3): Likewise.
13175 (ior<mode>3): Likewise.
13176 (xor<mode>3): Likewise.
13177 (one_cmpl<mode>2): Likewise.
13178 (aarch64_simd_vec_set<mode>): Likewise.
13179 (aarch64_simd_lshr<mode>): Likewise.
13180 (aarch64_simd_ashr<mode>): Likewise.
13181 (aarch64_simd_imm_shl<mode>): Likewise.
13182 (aarch64_simd_reg_sshl<mode): Likewise.
13183 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13184 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13185 (aarch64_simd_vec_setv2di): Likewise.
13186 (aarch64_simd_vec_set<mode>): Likewise.
13187 (aarch64_mla<mode>): Likewise.
13188 (*aarch64_mla_elt<mode>): Likewise.
13189 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13190 (aarch64_mls<mode>): Likewise.
13191 (*aarch64_mls_elt<mode>): Likewise.
13192 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13193 (<su><maxmin><mode>3): Likewise.
13194 (move_lo_quad_<mode>): Likewise.
13195 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13196 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13197 (vec_pack_trunc_<mode>): Likewise.
13198 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13199 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13200 (*aarch64_<su>mlal_lo<mode>): Likewise.
13201 (*aarch64_<su>mlal_hi<mode>): Likewise.
13202 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13203 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13204 (*aarch64_<su>mlal<mode>): Likewise.
13205 (*aarch64_<su>mlsl<mode>): Likewise.
13206 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13207 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13208 (add<mode>3): Likewise.
13209 (sub<mode>3): Likewise.
13210 (mul<mode>3): Likewise.
13211 (div<mode>3): Likewise.
13212 (neg<mode>2): Likewise.
13213 (abs<mode>2): Likewise.
13214 (fma<mode>4): Likewise.
13215 (*aarch64_fma4_elt<mode>): Likewise.
13216 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13217 (*aarch64_fma4_elt_to_128df): Likewise.
13218 (*aarch64_fma4_elt_to_64v2df): Likewise.
13219 (fnma<mode>4): Likewise.
13220 (*aarch64_fnma4_elt<mode>): Likewise.
13221 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13222 (*aarch64_fnma4_elt_to_128df): Likewise.
13223 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13224 (<frint_pattern><mode>2): Likewise.
13225 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13226 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13227 (vec_unpacks_lo_v4sf): Likewise.
13228 (aarch64_float_extend_lo_v2df): Likewise.
13229 (vec_unpacks_hi_v4sf): Likewise.
13230 (aarch64_float_truncate_lo_v2sf): Likewise.
13231 (aarch64_float_truncate_hi_v4sf): Likewise.
13232 (aarch64_vmls<mode>): Likewise.
13233 (<su><maxmin><mode>3): Likewise.
13234 (<maxmin_uns><mode>3): Likewise.
13235 (reduc_<sur>plus_<mode>): Likewise.
13236 (reduc_<sur>plus_v2di): Likewise.
13237 (reduc_<sur>plus_v2si): Likewise.
13238 (reduc_<sur>plus_<mode>): Likewise.
13239 (aarch64_addpv4sf): Likewise.
13240 (clz<mode>2): Likewise.
13241 (reduc_<maxmin_uns>_<mode>): Likewise.
13242 (reduc_<maxmin_uns>_v2di): Likewise.
13243 (reduc_<maxmin_uns>_v2si): Likewise.
13244 (reduc_<maxmin_uns>_<mode>): Likewise.
13245 (reduc_<maxmin_uns>_v4sf): Likewise.
13246 (aarch64_simd_bsl<mode>_internal): Likewise.
13247 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13248 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13249 (aarch64_get_lane<mode>): Likewise.
13250 (*aarch64_combinez<mode>): Likewise.
13251 (aarch64_combine<mode>): Likewise.
13252 (aarch64_simd_combine<mode>): Likewise.
13253 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13254 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13255 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13256 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13257 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13258 (aarch64_<sur>h<addsub><mode>): Likewise.
13259 (aarch64_<sur><addsub>hn<mode>): Likewise.
13260 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13261 (aarch64_pmul<mode>): Likewise.
13262 (aarch64_<su_optab><optab><mode>): Likewise.
13263 (aarch64_<sur>qadd<mode>): Likewise.
13264 (aarch64_sqmovun<mode>): Likewise.
13265 (aarch64_<sur>qmovn<mode>): Likewise.
13266 (aarch64_s<optab><mode>): Likewise.
13267 (aarch64_sq<r>dmulh<mode>): Likewise.
13268 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13269 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13270 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13271 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13272 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13273 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13274 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13275 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13276 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13277 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13278 (aarch64_sqdmull<mode>): Likewise.
13279 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13280 (aarch64_sqdmull_n<mode>): Likewise.
13281 (aarch64_sqdmull2<mode>_internal): Likewise.
13282 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13283 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13284 (aarch64_<sur>shl<mode>): Likewise.
13285 (aarch64_<sur>q<r>shl<mode>
13286 (aarch64_<sur>shll_n<mode>): Likewise.
13287 (aarch64_<sur>shll2_n<mode>): Likewise.
13288 (aarch64_<sur>shr_n<mode>): Likewise.
13289 (aarch64_<sur>sra_n<mode>): Likewise.
13290 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13291 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13292 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13293 (aarch64_cm<optab><mode>): Likewise.
13294 (aarch64_cm<optab>di): Likewise.
13295 (aarch64_cm<optab><mode>): Likewise.
13296 (aarch64_cm<optab>di): Likewise.
13297 (aarch64_cmtst<mode>): Likewise.
13298 (aarch64_cmtstdi): Likewise.
13299 (aarch64_cm<optab><mode>): Likewise.
13300 (*aarch64_fac<optab><mode>): Likewise.
13301 (aarch64_addp<mode>): Likewise.
13302 (aarch64_addpdi): Likewise.
13303 (sqrt<mode>2): Likewise.
13304 (vec_load_lanesoi<mode>): Likewise.
13305 (vec_store_lanesoi<mode>): Likewise.
13306 (vec_load_lanesci<mode>): Likewise.
13307 (vec_store_lanesci<mode>): Likewise.
13308 (vec_load_lanesxi<mode>): Likewise.
13309 (vec_store_lanesxi<mode>): Likewise.
13310 (*aarch64_mov<mode>): Likewise.
13311 (aarch64_ld2<mode>_dreg): Likewise.
13312 (aarch64_ld2<mode>_dreg): Likewise.
13313 (aarch64_ld3<mode>_dreg): Likewise.
13314 (aarch64_ld3<mode>_dreg): Likewise.
13315 (aarch64_ld4<mode>_dreg): Likewise.
13316 (aarch64_ld4<mode>_dreg): Likewise.
13317 (aarch64_tbl1<mode>): Likewise.
13318 (aarch64_tbl2v16qi): Likewise.
13319 (aarch64_combinev16qi): Likewise.
13320 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13321 (aarch64_st2<mode>_dreg): Likewise.
13322 (aarch64_st2<mode>_dreg): Likewise.
13323 (aarch64_st3<mode>_dreg): Likewise.
13324 (aarch64_st3<mode>_dreg): Likewise.
13325 (aarch64_st4<mode>_dreg): Likewise.
13326 (aarch64_st4<mode>_dreg): Likewise.
13327 (*aarch64_simd_ld1r<mode>): Likewise.
13328 (aarch64_frecpe<mode>): Likewise.
13329 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13330 (aarch64_frecps<mode>): Likewise.
13332 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13334 * config/arm/iterators.md (V_elem_ch): New.
13336 (VQH_type): Likewise.
13337 * config/arm/arm.md (is_neon_type): New.
13338 (conds): Use is_neon_type.
13339 (anddi3_insn): Update type attribute.
13340 (xordi3_insn): Likewise.
13341 (one_cmpldi2): Likewise.
13342 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13343 * config/arm/neon.md (neon_mov): Update type attribute.
13344 (*movmisalign<mode>_neon_store): Likewise.
13345 (*movmisalign<mode>_neon_load): Likewise.
13346 (vec_set<mode>_internal): Likewise.
13347 (vec_set<mode>_internal): Likewise.
13348 (vec_setv2di_internal): Likewise.
13349 (vec_extract<mode>): Likewise.
13350 (vec_extract<mode>): Likewise.
13351 (vec_extractv2di): Likewise.
13352 (*add<mode>3_neon): Likewise.
13353 (adddi3_neon): Likewise.
13354 (*sub<mode>3_neon): Likewise.
13355 (subdi3_neon): Likewise.
13356 (fma<VCVTF:mode>4): Likewise.
13357 (fma<VCVTF:mode>4_intrinsic): Likewise.
13358 (*fmsub<VCVTF:mode>4): Likewise.
13359 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13360 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13361 (ior<mode>3): Likewise.
13362 (and<mode>3): Likewise.
13363 (orn<mode>3_neon): Likewise.
13364 (orndi3_neon): Likewise.
13365 (bic<mode>3_neon): Likewise.
13366 (bicdi3_neon): Likewise.
13367 (xor<mode>3): Likewise.
13368 (one_cmpl<mode>2): Likewise.
13369 (abs<mode>2): Likewise.
13370 (neg<mode>2): Likewise.
13371 (negdi2_neon): Likewise.
13372 (*umin<mode>3_neon): Likewise.
13373 (*umax<mode>3_neon): Likewise.
13374 (*smin<mode>3_neon): Likewise.
13375 (*smax<mode>3_neon): Likewise.
13376 (vashl<mode>3): Likewise.
13377 (vashr<mode>3_imm): Likewise.
13378 (vlshr<mode>3_imm): Likewise.
13379 (ashl<mode>3_signed): Likewise.
13380 (ashl<mode>3_unsigned): Likewise.
13381 (neon_load_count): Likewise.
13382 (ashldi3_neon_noclobber): Likewise.
13383 (ashldi3_neon): Likewise.
13384 (signed_shift_di3_neon): Likewise.
13385 (unsigned_shift_di3_neon): Likewise.
13386 (ashrdi3_neon_imm_noclobber): Likewise.
13387 (lshrdi3_neon_imm_noclobber): Likewise.
13388 (<shift>di3_neon): Likewise.
13389 (widen_ssum<mode>3): Likewise.
13390 (widen_usum<mode>3): Likewise.
13391 (quad_halves_<code>v4si): Likewise.
13392 (quad_halves_<code>v4sf): Likewise.
13393 (quad_halves_<code>v8hi): Likewise.
13394 (quad_halves_<code>v16qi): Likewise.
13395 (reduc_splus_v2di): Likewise.
13396 (neon_vpadd_internal<mode>): Likewise.
13397 (neon_vpsmin<mode>): Likewise.
13398 (neon_vpsmax<mode>): Likewise.
13399 (neon_vpumin<mode>): Likewise.
13400 (neon_vpumax<mode>): Likewise.
13401 (*ss_add<mode>_neon): Likewise.
13402 (*us_add<mode>_neon): Likewise.
13403 (*ss_sub<mode>_neon): Likewise.
13404 (*us_sub<mode>_neon): Likewise.
13405 (neon_vadd<mode>_unspec): Likewise.
13406 (neon_vaddl<mode>): Likewise.
13407 (neon_vaddw<mode>): Likewise.
13408 (neon_vhadd<mode>): Likewise.
13409 (neon_vqadd<mode>): Likewise.
13410 (neon_vaddhn<mode>): Likewise.
13411 (neon_vmul<mode>): Likewise.
13412 (neon_vfms<VCVTF:mode>): Likewise.
13413 (neon_vmlal<mode>): Likewise.
13414 (neon_vmls<mode>): Likewise.
13415 (neon_vmlsl<mode>): Likewise.
13416 (neon_vqdmulh<mode>): Likewise.
13417 (neon_vqdmlal<mode>): Likewise.
13418 (neon_vqdmlsl<mode>): Likewise.
13419 (neon_vmull<mode>): Likewise.
13420 (neon_vqdmull<mode>): Likewise.
13421 (neon_vsub<mode>_unspec): Likewise.
13422 (neon_vsubl<mode>): Likewise.
13423 (neon_vsubw<mode>): Likewise.
13424 (neon_vqsub<mode>): Likewise.
13425 (neon_vhsub<mode>): Likewise.
13426 (neon_vsubhn<mode>): Likewise.
13427 (neon_vceq<mode>): Likewise.
13428 (neon_vcge<mode>): Likewise.
13429 (neon_vcgeu<mode>): Likewise.
13430 (neon_vcgt<mode>): Likewise.
13431 (neon_vcgtu<mode>): Likewise.
13432 (neon_vcle<mode>): Likewise.
13433 (neon_vclt<mode>): Likewise.
13434 (neon_vcage<mode>): Likewise.
13435 (neon_vcagt<mode>): Likewise.
13436 (neon_vtst<mode>): Likewise.
13437 (neon_vabd<mode>): Likewise.
13438 (neon_vabdl<mode>): Likewise.
13439 (neon_vaba<mode>): Likewise.
13440 (neon_vabal<mode>): Likewise.
13441 (neon_vmax<mode>): Likewise.
13442 (neon_vmin<mode>): Likewise.
13443 (neon_vpaddl<mode>): Likewise.
13444 (neon_vpadal<mode>): Likewise.
13445 (neon_vpmax<mode>): Likewise.
13446 (neon_vpmin<mode>): Likewise.
13447 (neon_vrecps<mode>): Likewise.
13448 (neon_vrsqrts<mode>): Likewise.
13449 (neon_vqabs<mode>): Likewise.
13450 (neon_vqneg<mode>): Likewise.
13451 (neon_vcls<mode>): Likewise.
13452 (clz<mode>2): Likewise.
13453 (popcount<mode>2): Likewise.
13454 (neon_vrecpe<mode>): Likewise.
13455 (neon_vrsqrte<mode>): Likewise.
13456 (neon_vget_lane<mode>_sext_internal): Likewise.
13457 (neon_vget_lane<mode>_zext_internal): Likewise.
13458 (neon_vdup_n<mode>): Likewise.
13459 (neon_vdup_n<mode>): Likewise.
13460 (neon_vdup_nv2di): Likewise.
13461 (neon_vdup_lane<mode>_interal): Likewise.
13462 (*neon_vswp<mode>): Likewise.
13463 (neon_vcombine<mode>): Likewise.
13464 (float<mode><V_cvtto>2): Likewise.
13465 (floatuns<mode><V_cvtto>2): Likewise.
13466 (fix_trunc<mode><V_cvtto>2): Likewise.
13467 (fixuns_trunc<mode><V_cvtto>2
13468 (neon_vcvt<mode>): Likewise.
13469 (neon_vcvt<mode>): Likewise.
13470 (neon_vcvtv4sfv4hf): Likewise.
13471 (neon_vcvtv4hfv4sf): Likewise.
13472 (neon_vcvt_n<mode>): Likewise.
13473 (neon_vcvt_n<mode>): Likewise.
13474 (neon_vmovn<mode>): Likewise.
13475 (neon_vqmovn<mode>): Likewise.
13476 (neon_vqmovun<mode>): Likewise.
13477 (neon_vmovl<mode>): Likewise.
13478 (neon_vmul_lane<mode>): Likewise.
13479 (neon_vmul_lane<mode>): Likewise.
13480 (neon_vmull_lane<mode>): Likewise.
13481 (neon_vqdmull_lane<mode>): Likewise.
13482 (neon_vqdmulh_lane<mode>): Likewise.
13483 (neon_vqdmulh_lane<mode>): Likewise.
13484 (neon_vmla_lane<mode>): Likewise.
13485 (neon_vmla_lane<mode>): Likewise.
13486 (neon_vmlal_lane<mode>): Likewise.
13487 (neon_vqdmlal_lane<mode>): Likewise.
13488 (neon_vmls_lane<mode>): Likewise.
13489 (neon_vmls_lane<mode>): Likewise.
13490 (neon_vmlsl_lane<mode>): Likewise.
13491 (neon_vqdmlsl_lane<mode>): Likewise.
13492 (neon_vext<mode>): Likewise.
13493 (neon_vrev64<mode>): Likewise.
13494 (neon_vrev32<mode>): Likewise.
13495 (neon_vrev16<mode>): Likewise.
13496 (neon_vbsl<mode>_internal): Likewise.
13497 (neon_vshl<mode>): Likewise.
13498 (neon_vqshl<mode>): Likewise.
13499 (neon_vshr_n<mode>): Likewise.
13500 (neon_vshrn_n<mode>): Likewise.
13501 (neon_vqshrn_n<mode>): Likewise.
13502 (neon_vqshrun_n<mode>): Likewise.
13503 (neon_vshl_n<mode>): Likewise.
13504 (neon_vqshl_n<mode>): Likewise.
13505 (neon_vqshlu_n<mode>): Likewise.
13506 (neon_vshll_n<mode>): Likewise.
13507 (neon_vsra_n<mode>): Likewise.
13508 (neon_vsri_n<mode>): Likewise.
13509 (neon_vsli_n<mode>): Likewise.
13510 (neon_vtbl1v8qi): Likewise.
13511 (neon_vtbl2v8qi): Likewise.
13512 (neon_vtbl3v8qi): Likewise.
13513 (neon_vtbl4v8qi): Likewise.
13514 (neon_vtbl1v16qi): Likewise.
13515 (neon_vtbl2v16qi): Likewise.
13516 (neon_vcombinev16qi): Likewise.
13517 (neon_vtbx1v8qi): Likewise.
13518 (neon_vtbx2v8qi): Likewise.
13519 (neon_vtbx3v8qi): Likewise.
13520 (neon_vtbx4v8qi): Likewise.
13521 (*neon_vtrn<mode>_insn): Likewise.
13522 (*neon_vzip<mode>_insn): Likewise.
13523 (*neon_vuzp<mode>_insn): Likewise.
13524 (neon_vld1<mode>): Likewise.
13525 (neon_vld1_lane<mode>): Likewise.
13526 (neon_vld1_lane<mode>): Likewise.
13527 (neon_vld1_dup<mode>): Likewise.
13528 (neon_vld1_dup<mode>): Likewise.
13529 (neon_vld1_dupv2di): Likewise.
13530 (neon_vst1<mode>): Likewise.
13531 (neon_vst1_lane<mode>): Likewise.
13532 (neon_vst1_lane<mode>): Likewise.
13533 (neon_vld2<mode>): Likewise.
13534 (neon_vld2<mode>): Likewise.
13535 (neon_vld2_lane<mode>): Likewise.
13536 (neon_vld2_lane<mode>): Likewise.
13537 (neon_vld2_dup<mode>): Likewise.
13538 (neon_vst2<mode>): Likewise.
13539 (neon_vst2<mode>): Likewise.
13540 (neon_vst2_lane<mode>): Likewise.
13541 (neon_vst2_lane<mode>): Likewise.
13542 (neon_vld3<mode>): Likewise.
13543 (neon_vld3qa<mode>): Likewise.
13544 (neon_vld3qb<mode>): Likewise.
13545 (neon_vld3_lane<mode>): Likewise.
13546 (neon_vld3_lane<mode>): Likewise.
13547 (neon_vld3_dup<mode>): Likewise.
13548 (neon_vst3<mode>): Likewise.
13549 (neon_vst3qa<mode>): Likewise.
13550 (neon_vst3qb<mode>): Likewise.
13551 (neon_vst3_lane<mode>): Likewise.
13552 (neon_vst3_lane<mode>): Likewise.
13553 (neon_vld4<mode>): Likewise.
13554 (neon_vld4qa<mode>): Likewise.
13555 (neon_vld4qb<mode>): Likewise.
13556 (neon_vld4_lane<mode>): Likewise.
13557 (neon_vld4_lane<mode>): Likewise.
13558 (neon_vld4_dup<mode>): Likewise.
13559 (neon_vst4<mode>): Likewise.
13560 (neon_vst4qa<mode>): Likewise.
13561 (neon_vst4qb<mode>): Likewise.
13562 (neon_vst4_lane<mode>): Likewise.
13563 (neon_vst4_lane<mode>): Likewise.
13564 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13565 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13566 (neon_vec_<US>mult_lo_<mode>): Likewise.
13567 (neon_vec_<US>mult_hi_<mode>): Likewise.
13568 (neon_vec_<US>shiftl_<mode>): Likewise.
13569 (neon_unpack<US>_<mode>): Likewise.
13570 (neon_vec_<US>mult_<mode>): Likewise.
13571 (vec_pack_trunc_<mode>): Likewise.
13572 (neon_vec_pack_trunc_<mode>): Likewise.
13573 (neon_vabd<mode>_2): Likewise.
13574 (neon_vabd<mode>_3): Likewise.
13576 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13578 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13579 (load_pair): Update type attribute.
13580 (store_pair): Update type attribute.
13581 * config/aarch64/iterators.md (q): New.
13583 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13585 * config/arm/types.md: Add new types for Neon insns.
13587 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13589 Sergey Lega <sergey.s.lega@intel.com>
13590 Anna Tikhonova <anna.tikhonova@intel.com>
13591 Ilya Tocar <ilya.tocar@intel.com>
13592 Andrey Turetskiy <andrey.turetskiy@intel.com>
13593 Ilya Verbin <ilya.verbin@intel.com>
13594 Kirill Yukhin <kirill.yukhin@intel.com>
13595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13597 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13598 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13599 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13600 (rcp14<mode>): New.
13601 (srcp14<mode>): Ditto.
13602 (rsqrt14<mode>): Ditto.
13603 (rsqrt14<mode>): Ditto.
13604 (avx512f_vmscalef<mode>): Ditto.
13605 (avx512f_scalef<mode>): Ditto.
13606 (avx512f_getexp<mode>): Ditto.
13607 (avx512f_sgetexp<mode>): Ditto.
13608 (avx512f_fixupimm<mode>): Ditto.
13609 (avx512f_sfixupimm<mode>): Ditto.
13610 (avx512f_rndscale<mode>): Ditto.
13611 (*avx512er_exp2<mode>): Ditto.
13612 (*avx512er_rcp28<mode>): Ditto.
13613 (avx512er_rsqrt28<mode>): Ditto.
13614 (avx512f_getmant<mode>): Ditto.
13615 (avx512f_getmant<mode>): Ditto.
13616 (avx512f_rndscale<mode>): Fix formatting.
13618 2013-10-15 Martin Jambor <mjambor@suse.cz>
13620 * ipa-utils.h (ipa_edge_within_scc): Declare.
13621 * ipa-cp.c (edge_within_scc): Moved...
13622 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13624 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13625 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13626 Sergey Lega <sergey.s.lega@intel.com>
13627 Anna Tikhonova <anna.tikhonova@intel.com>
13628 Ilya Tocar <ilya.tocar@intel.com>
13629 Andrey Turetskiy <andrey.turetskiy@intel.com>
13630 Ilya Verbin <ilya.verbin@intel.com>
13631 Kirill Yukhin <kirill.yukhin@intel.com>
13632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13634 * config/i386/predicates.md (const_8_to_15_operand): New.
13635 (const_16_to_31_operand): Ditto.
13636 * config/i386/sse.md (V8FI): New.
13638 (reduc_splus_v8df): Ditto.
13639 (reduc_splus_v16sf): Ditto.
13640 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13641 (vec_extract_hi_<mode>): Ditto.
13642 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13643 (vec_set_lo_<mode>): Ditto.
13644 (vec_set_hi_<mode>): Ditto.
13645 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13646 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13647 (avx512f_pshufd_1): Ditto.
13648 (avx512f_broadcast<mode>): Ditto.
13649 (avx512f_broadcast<mode>): Ditto.
13650 (define_split): Split vec_extract_lo into move.
13651 (ssequartermode): Ditto.
13652 (ssedoublemode): Extened with wider modes.
13653 (vec_extract_lo_<mode>): Ditto.
13655 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13656 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13657 Sergey Lega <sergey.s.lega@intel.com>
13658 Anna Tikhonova <anna.tikhonova@intel.com>
13659 Ilya Tocar <ilya.tocar@intel.com>
13660 Andrey Turetskiy <andrey.turetskiy@intel.com>
13661 Ilya Verbin <ilya.verbin@intel.com>
13662 Kirill Yukhin <kirill.yukhin@intel.com>
13663 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13665 * config/i386/predicates.md (register_or_constm1_operand): New.
13666 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13667 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13668 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13669 UNSPEC_SCATTER_PREFETCH
13671 (avx512f_ucmp<mode>3): Ditto.
13672 (avx512f_vternlog<mode>): Ditto.
13673 (avx512f_align<mode>): Ditto.
13674 (<shift_insn><mode>3): Ditto.
13675 (avx512f_<rotate>v<mode>): Ditto.
13676 (avx512f_<rotate><mode>): Ditto.
13677 (avx512f_eq<mode>3): Ditto.
13678 (avx512f_eq<mode>3_1): Ditto.
13679 (avx512f_gt<mode>3): Ditto.
13680 (avx512f_testm<mode>3): Ditto.
13681 (avx512f_testnm<mode>3): Ditto.
13682 (avx512pf_gatherpf<mode>): Ditto.
13683 (*avx512pf_gatherpf<mode>_mask): Ditto.
13684 (*avx512pf_gatherpf<mode>): Ditto.
13685 (avx512pf_scatterpf<mode>): Ditto.
13686 (*avx512pf_scatterpf<mode>_mask): Ditto.
13687 (*avx512pf_scatterpf<mode>): Ditto.
13688 (avx512f_vec_dup_gpr<mode>): Ditto.
13689 (clz<mode>2): Ditto.
13690 (conflict<mode>): Ditto.
13691 (REDUC_SMINMAX_MODE): Extened with wider modes.
13692 (reduc_<code>_<mode>): Ditto.
13693 (vlshr<mode>3): Ditto.
13694 (vashl<mode>3): Ditto.
13696 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13698 Sergey Lega <sergey.s.lega@intel.com>
13699 Anna Tikhonova <anna.tikhonova@intel.com>
13700 Ilya Tocar <ilya.tocar@intel.com>
13701 Andrey Turetskiy <andrey.turetskiy@intel.com>
13702 Ilya Verbin <ilya.verbin@intel.com>
13703 Kirill Yukhin <kirill.yukhin@intel.com>
13704 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13706 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13709 (avx512fmaskmode): Ditto.
13710 (bcstscalarsuff): Ditto.
13711 (avx512f_blendm<mode>): Ditto.
13712 (cmp_imm_predicate): Ditto.
13713 (avx512f_cmp<mode>3): Ditto.
13714 (avx512f_vec_dup<mode>): Ditto.
13715 (avx512f_vec_dup_mem<mode>): Ditto.
13716 (avx512f_vpermi2var<mode>3): Ditto.
13717 (avx512f_vpermt2var<mode>3): Ditto.
13718 (vec_init<mode>): Ditto.
13719 (avx512f_gathersi<mode>): Ditto.
13720 (*avx512f_gathersi<mode>): Ditto.
13721 (*avx512f_gathersi<mode>_2): Ditto.
13722 (avx512f_gatherdi<mode>): Ditto.
13723 (*avx512f_gatherdi<mode>): Ditto.
13724 (*avx512f_gatherdi<mode>_2): Ditto.
13725 (avx512f_scattersi<mode>): Ditto.
13726 (*avx512f_scattersi<mode>): Ditto.
13727 (avx512f_scatterdi<mode>): Ditto.
13728 (*avx512f_scatterdi<mode>): Ditto.
13729 (sseintprefix): Extened with wider modes.
13730 (VEC_GATHER_IDXSI): Ditto.
13731 (VEC_GATHER_IDXDI): Ditto.
13732 (VEC_GATHER_SRCDI): Ditto.
13734 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13735 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13737 * config/arm/t-aprofile: New file.
13738 * config.gcc: Handle --with-multilib-list option.
13740 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13742 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13745 2013-10-15 Richard Biener <rguenther@suse.de>
13747 * tree-loop-distribution.c (build_empty_rdg): Inline into
13749 (rdg_flag_vertex): Inline into single user.
13750 (rdg_flag_vertex_and_dependent): Likewise.
13751 (build_rdg_partition_for_vertex): Remove processed bitmap.
13752 (rdg_build_partitions): Simplify.
13754 2013-10-15 Richard Biener <rguenther@suse.de>
13756 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13757 Restructure forwarding through conversions and copies to
13758 avoid performing copy-propagation the wrong way. Adjust
13759 recursion invocations.
13760 (forward_propagate_addr_expr): Add argument stating if we
13761 are recursing from a single-use.
13762 (ssa_forward_propagate_and_combine): Adjust.
13764 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13766 * dumpfile.h (gcc::dump_manager): New class, to hold state
13767 relating to dumpfile management.
13768 (get_dump_file_name): Remove in favor of method of dump_manager.
13769 (dump_initialized_p): Likewise.
13770 (dump_start): Likewise.
13771 (dump_finish): Likewise.
13772 (dump_switch_p): Likewise.
13773 (dump_register): Likewise.
13774 (get_dump_file_info): Likewise.
13775 * context.c (gcc::context::context): Construct the dump_manager
13777 * context.h (gcc::context::get_dumps): New.
13778 (gcc::context::m_dumps): New.
13779 * coverage.c (coverage_init): Port to dump_manager API.
13780 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13781 (extra_dump_files_in_use): Likewise.
13782 (extra_dump_files_alloced): Likewise.
13783 (gcc::dump_manager::dump_manager): New.
13784 (dump_register): Convert to...
13785 (gcc::dump_manager::dump_register): ...method, replacing
13786 function-static next_dump with m_next_dump field.
13787 (get_dump_file_info): Convert to...
13788 (gcc::dump_manager::get_dump_file_info): ...method.
13789 (get_dump_file_name): Convert to...
13790 (gcc::dump_manager::get_dump_file_name): ...method.
13791 (dump_start): Convert to...
13792 (gcc::dump_manager::dump_start): ...method.
13793 (dump_finish): Convert to...
13794 (gcc::dump_manager::dump_finish): ...method.
13795 (dump_begin): Replace body with...
13796 (gcc::dump_manager::dump_begin): ...new method.
13797 (dump_phase_enabled_p): Convert to...
13798 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13799 (dump_phase_enabled_p): Convert to...
13800 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13801 (dump_initialized_p): Convert to...
13802 (gcc::dump_manager::dump_initialized_p): ...method.
13803 (dump_flag_name): Replace body with...
13804 (gcc::dump_manager::dump_flag_name): ...new method.
13805 (dump_enable_all): Convert to...
13806 (gcc::dump_manager::dump_enable_all): ...new method.
13807 (opt_info_enable_passes): Convert to...
13808 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13809 (dump_switch_p_1): Convert to...
13810 (gcc::dump_manager::dump_switch_p_1): ...new method.
13811 (dump_switch_p): Convert to...
13812 (gcc::dump_manager::dump_switch_p): ...new method.
13813 (opt_info_switch_p): Port to dump_manager API.
13814 (enable_rtl_dump_file): Likewise.
13815 * opts-global.c (handle_common_deferred_options): Port to new
13817 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13818 (pass_manager::register_one_dump_file): Likewise.
13819 (pass_manager::register_pass): Likewise.
13820 (pass_init_dump_file): Likewise.
13821 (pass_fini_dump_file): Likewise.
13822 * statistics.c (statistics_early_init): Likewise.
13824 2013-10-14 Richard Biener <rguenther@suse.de>
13826 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13827 iterative_hash_canonical_type, gimple_canonical_type_hash,
13828 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13829 gimple_register_canonical_type, print_gimple_types_stats,
13830 free_gimple_type_tables): Move to lto/lto.c
13831 (gt-gimple.h): Do not include.
13832 * gimple.h (gimple_register_canonical_type,
13833 print_gimple_types_stats, free_gimple_type_tables): Remove.
13834 * Makefile.in (GTFILES): Remove gimple.c.
13836 2013-10-14 Travis Snoozy <quandary@remstate.com>
13839 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13840 scanning for msp430x targets.
13842 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13845 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13846 (registers_ok_for_ldd_peep): Move around.
13847 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13848 * config/sparc/sparc.md (widening peepholes): Use it.
13850 2013-10-14 Richard Biener <rguenther@suse.de>
13852 PR middle-end/58712
13853 PR middle-end/55358
13854 * gimple.c (iterative_hash_canonical_type): Make sure to
13855 record the hash into the correct hashtable slot.
13857 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13859 PR rtl-optimization/58662
13860 * combine.c (try_combine): Take into account death nodes on I2 when
13861 splitting a PARALLEL of two independent SETs. Fix dump message.
13863 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13866 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13867 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13869 * config/sh/t-sh (sh_treg_combine.o): New entry.
13870 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13871 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13872 (register_sh_passes): New function. Register sh_treg_combine pass.
13873 (sh_option_override): Invoke it.
13874 (sh_canonicalize_comparison): Handle op0_preserve_value.
13875 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13876 opportunities. Canonicalize branch condition.
13877 (nott): Allow only if pseudos can be created for non-SH2A.
13879 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13882 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13883 (ix86_expand_movmem): Replace copy_addr_to_reg with
13884 ix86_copy_addr_to_reg.
13885 (ix86_expand_setmem): Likewise.
13887 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13889 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13890 provided by ix86_fp_compare_mode instead of CCFPUmode.
13892 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13894 * config/aarch64/arm_neon.h
13895 (vtbx<1,3>_<psu>8): Fix register constriants.
13897 2013-10-11 Jeff Law <law@redhat.com>
13899 PR tree-optimization/58640
13900 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13901 threading paths that cross over two loop entry points.
13903 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13905 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13906 handle vector float as well.
13907 (*vsx_le_perm_load_v4si): Likewise.
13908 (*vsx_le_perm_store_v2di): Likewise.
13909 (*vsx_le_perm_store_v4si): Likewise.
13911 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13913 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13914 directly to circumvent subtract from splat{31} workaround.
13915 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13917 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13918 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13919 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13920 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13921 separate big and little endian logic.
13922 (*altivec_vperm_<mode>_internal): New define_insn.
13923 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13924 separate big and little endian logic.
13925 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13926 (vec_permv16qi): Add little endian logic.
13928 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13930 * doc/extend.texi (returns_nonnull): Remove arguments.
13932 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13933 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13934 Sergey Lega <sergey.s.lega@intel.com>
13935 Anna Tikhonova <anna.tikhonova@intel.com>
13936 Ilya Tocar <ilya.tocar@intel.com>
13937 Andrey Turetskiy <andrey.turetskiy@intel.com>
13938 Ilya Verbin <ilya.verbin@intel.com>
13939 Kirill Yukhin <kirill.yukhin@intel.com>
13940 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13942 * config/i386/sse.md (VI48F_256_512): New.
13943 (avx2_permvar<mode>): Change to ...
13944 (<avx2_avx512f>_permvar<mode>): This.
13946 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13948 Sergey Lega <sergey.s.lega@intel.com>
13949 Anna Tikhonova <anna.tikhonova@intel.com>
13950 Ilya Tocar <ilya.tocar@intel.com>
13951 Andrey Turetskiy <andrey.turetskiy@intel.com>
13952 Ilya Verbin <ilya.verbin@intel.com>
13953 Kirill Yukhin <kirill.yukhin@intel.com>
13954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13956 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13957 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13958 * config/i386/sse.md (VI4_AVX): New.
13959 (sf2simodelower): Ditto.
13960 (sse2_cvtps2dq): Change to ...
13961 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13963 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13965 Sergey Lega <sergey.s.lega@intel.com>
13966 Anna Tikhonova <anna.tikhonova@intel.com>
13967 Ilya Tocar <ilya.tocar@intel.com>
13968 Andrey Turetskiy <andrey.turetskiy@intel.com>
13969 Ilya Verbin <ilya.verbin@intel.com>
13970 Kirill Yukhin <kirill.yukhin@intel.com>
13971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13973 * config/i386/sse.md (V_512): New.
13975 (vcond<V_512:mode><VF_512:mode>): Ditto.
13976 (vcond<V_512:mode><VI_512:mode>): Ditto.
13977 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13979 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13981 Sergey Lega <sergey.s.lega@intel.com>
13982 Anna Tikhonova <anna.tikhonova@intel.com>
13983 Ilya Tocar <ilya.tocar@intel.com>
13984 Andrey Turetskiy <andrey.turetskiy@intel.com>
13985 Ilya Verbin <ilya.verbin@intel.com>
13986 Kirill Yukhin <kirill.yukhin@intel.com>
13987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13989 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13990 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13992 (fma<mode>4): Removed condition.
13993 (fms<mode>4): Ditto.
13994 (fnma<mode>4): Ditto.
13995 (fnms<mode>4): Ditto.
13996 (fma4i_fmadd_<mode>): Ditto.
13997 (*fma_fmadd_<mode>): Ditto.
13998 (*fma_fmsub_<mode>): Ditto.
13999 (*fma_fnmadd_<mode>): Ditto.
14000 (*fma_fnmsub_<mode>): Ditto.
14001 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14002 (*fma_fmaddsub_<mode>): Ditto.
14003 (*fma_fmsubadd_<mode>): Ditto.
14004 (*fmai_fmadd_<mode>): Ditto.
14005 (*fmai_fmsub_<mode>): Ditto.
14006 (*fmai_fnmadd_<mode>): Ditto.
14007 (*fmai_fnmsub_<mode>): Ditto.
14009 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14011 Sergey Lega <sergey.s.lega@intel.com>
14012 Anna Tikhonova <anna.tikhonova@intel.com>
14013 Ilya Tocar <ilya.tocar@intel.com>
14014 Andrey Turetskiy <andrey.turetskiy@intel.com>
14015 Ilya Verbin <ilya.verbin@intel.com>
14016 Kirill Yukhin <kirill.yukhin@intel.com>
14017 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14019 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14020 (VI124_256): Changed to ...
14021 (VI124_256_48_512): This.
14022 (ssepackmode): Extended with wider modes.
14023 (<code><mode>3): Changed iterator.
14024 (*avx2_<code><mode>3): Ditto.
14025 (vec_pack_trunc_<mode>): Ditto.
14027 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14028 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14029 Sergey Lega <sergey.s.lega@intel.com>
14030 Anna Tikhonova <anna.tikhonova@intel.com>
14031 Ilya Tocar <ilya.tocar@intel.com>
14032 Andrey Turetskiy <andrey.turetskiy@intel.com>
14033 Ilya Verbin <ilya.verbin@intel.com>
14034 Kirill Yukhin <kirill.yukhin@intel.com>
14035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14037 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14038 (VI8F_256_512): Ditto.
14039 (abs<mode>2): Changed iterator.
14040 (avx2_perm<mode>): Changed to ...
14041 (<avx2_avx512f>_perm<mode>): This.
14042 (avx2_perm<mode>_1): Changed to ...
14043 (<avx2_avx512f>_perm<mode>_1): This.
14045 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14047 Sergey Lega <sergey.s.lega@intel.com>
14048 Anna Tikhonova <anna.tikhonova@intel.com>
14049 Ilya Tocar <ilya.tocar@intel.com>
14050 Andrey Turetskiy <andrey.turetskiy@intel.com>
14051 Ilya Verbin <ilya.verbin@intel.com>
14052 Kirill Yukhin <kirill.yukhin@intel.com>
14053 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14055 * config/i386/sse.md (VI48_AVX512F): New.
14056 (VI48_AVX2): Changed to ...
14057 (VI48_AVX2_48_AVX512F): This.
14058 (avx2_ashrv<mode>): Changed to ...
14059 (<avx2_avx512f>_ashrv<mode>): This.
14060 (avx2_<shift_insn>v<mode>): Changed to ...
14061 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14063 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14064 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14065 Sergey Lega <sergey.s.lega@intel.com>
14066 Anna Tikhonova <anna.tikhonova@intel.com>
14067 Ilya Tocar <ilya.tocar@intel.com>
14068 Andrey Turetskiy <andrey.turetskiy@intel.com>
14069 Ilya Verbin <ilya.verbin@intel.com>
14070 Kirill Yukhin <kirill.yukhin@intel.com>
14071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14073 * config/i386/sse.md (VI4_AVX512F): New.
14074 (VI8_AVX2_AVX512F): Ditto.
14075 (mul<mode>3): Extended with wider modes.
14076 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14077 (mul<mode>3): Ditto.
14078 (vec_widen_<s>mult_odd_<mode>): Ditto.
14080 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14081 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14082 Sergey Lega <sergey.s.lega@intel.com>
14083 Anna Tikhonova <anna.tikhonova@intel.com>
14084 Ilya Tocar <ilya.tocar@intel.com>
14085 Andrey Turetskiy <andrey.turetskiy@intel.com>
14086 Ilya Verbin <ilya.verbin@intel.com>
14087 Kirill Yukhin <kirill.yukhin@intel.com>
14088 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14090 * config/i386/sse.md (VI2_AVX512F): New.
14091 (VI124_AVX512F): Ditto.
14092 (sseunpackmode): Extended with wider modes.
14093 (sseunpackfltmode): Ditto.
14094 (vec_unpacks_float_hi_<mode>): Ditto.
14095 (vec_unpacks_float_lo_<mode>): Ditto.
14096 (vec_unpacku_float_hi_<mode>): Ditto.
14097 (vec_unpacku_float_lo_<mode>): Ditto.
14098 (vec_unpacks_lo_<mode>): Ditto.
14099 (vec_unpacks_hi_<mode>): Ditto.
14100 (vec_unpacku_lo_<mode>): Ditto.
14101 (vec_unpacku_hi_<mode>): Ditto.
14103 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14105 Sergey Lega <sergey.s.lega@intel.com>
14106 Anna Tikhonova <anna.tikhonova@intel.com>
14107 Ilya Tocar <ilya.tocar@intel.com>
14108 Andrey Turetskiy <andrey.turetskiy@intel.com>
14109 Ilya Verbin <ilya.verbin@intel.com>
14110 Kirill Yukhin <kirill.yukhin@intel.com>
14111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14113 * config/i386/i386.md (multdiv): New.
14114 (multdiv_mnemonic): Ditto.
14115 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14116 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14117 (<sse>_vmdiv<mode>3): Removed.
14119 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14121 Sergey Lega <sergey.s.lega@intel.com>
14122 Anna Tikhonova <anna.tikhonova@intel.com>
14123 Ilya Tocar <ilya.tocar@intel.com>
14124 Andrey Turetskiy <andrey.turetskiy@intel.com>
14125 Ilya Verbin <ilya.verbin@intel.com>
14126 Kirill Yukhin <kirill.yukhin@intel.com>
14127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14129 * config/i386/sse.md (V): Extended with wider modes.
14131 (ssehalfvecmode): Ditto.
14133 (ssepackfltmode): Ditto.
14134 (avx_vec_concat<mode>): Ditto.
14135 (V_256_512): New iterator.
14136 (VF2_512_256): Ditto.
14137 (si2dfmode): New attribute.
14138 (si2dfmodelower): Ditto.
14139 (sf2dfmode): Ditto.
14140 (concat_tg_mode): Ditto.
14141 (floatv4siv4df2): Changed to ...
14142 (float<si2dfmodelower><mode>2): This.
14143 (avx_cvtps2pd256): Changed to ...
14144 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14145 (vec_pack_trunc_v4df): Changed to ...
14146 (vec_pack_trunc_<mode>): This.
14147 (avx_vpermil<mode>): Changed to ...
14148 (<sse2_avx_avx512f>_vpermil<mode>): This.
14149 (<fixsuffix>fix_truncv8dfv8si2): New.
14150 (vec_pack_sfix_trunc_v8df): Ditto.
14151 (avx512f_rndscale<mode>): Ditto.
14152 (avx512f_roundpd512): Ditto.
14153 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14155 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14156 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14157 Sergey Lega <sergey.s.lega@intel.com>
14158 Anna Tikhonova <anna.tikhonova@intel.com>
14159 Ilya Tocar <ilya.tocar@intel.com>
14160 Andrey Turetskiy <andrey.turetskiy@intel.com>
14161 Ilya Verbin <ilya.verbin@intel.com>
14162 Kirill Yukhin <kirill.yukhin@intel.com>
14163 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14165 * config/i386/i386.md (any_fix): New iterator.
14166 (fixsuffix): New attribute.
14167 * config/i386/sse.md (VF1): Extened with wider modes.
14171 (sseintvecmodelower): Ditto.
14172 (ssescalarmode): Ditto.
14173 (ssescalarnum): Ditto.
14174 (VF1_128_256): New.
14175 (ssexmmmode): Ditto.
14176 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14177 (<sse>_rcp<mode>2): Change iterator.
14178 (rsqrt<mode>2): Ditto.
14179 (<sse>_rsqrt<mode>2): Ditto.
14180 (avx2_vec_dup<mode>): Ditto.
14181 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14182 (round<mode>2_sfix): Ditto.
14183 (avx2_pbroadcast<mode>): Ditto.
14184 (*andnot<mode>3): Handle XI mode.
14185 (*<code><mode>3): Ditto.
14186 (AVXTOSSEMODE): Removed.
14187 (avx_vpermil<mode>): Changed to ...
14188 (<sse2_avx_avx512f>_vpermil<mode>): This.
14190 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14192 Sergey Lega <sergey.s.lega@intel.com>
14193 Anna Tikhonova <anna.tikhonova@intel.com>
14194 Ilya Tocar <ilya.tocar@intel.com>
14195 Andrey Turetskiy <andrey.turetskiy@intel.com>
14196 Ilya Verbin <ilya.verbin@intel.com>
14197 Kirill Yukhin <kirill.yukhin@intel.com>
14198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14200 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14201 (<sse>_comi): Ditto.
14202 (<sse>_ucomi): Ditto.
14203 (sse_cvtss2siq_2): Ditto.
14204 (sse2_cvtsd2si): Ditto.
14205 (sse2_cvtsd2siq): Ditto.
14206 (sse2_cvttsd2si): Ditto.
14207 (sse2_cvttsd2siq): Ditto.
14208 (<shift_insn><mode>3): Ditto.
14209 (sse2_cvtsi2sdq): Update constraint and prefix.
14210 (sse_cvtsi2ss): Update prefix.
14211 (sse_cvtsi2ssq): Ditto.
14213 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14215 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14216 ignore internal calls.
14218 2013-10-11 Richard Biener <rguenther@suse.de>
14220 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14221 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14222 TREE_OVERFLOW is set.
14224 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14226 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14228 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14229 * gimple.h: Likewise.
14231 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14233 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14236 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14238 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14239 * configure: Regenerate.
14241 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14243 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14244 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14245 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14246 similarly pp_right_paren.
14247 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14248 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14249 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14250 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14252 (omp_declare_simd_clauses_equal,
14253 omp_remove_redundant_declare_simd_attrs): New functions.
14254 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14255 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14256 * tree.h (OMP_LOOP_CHECK): Define.
14257 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14258 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14259 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14260 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14261 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14262 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14263 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14264 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14265 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14266 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14267 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14268 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14269 (omp_remove_redundant_declare_simd_attrs): New prototype.
14270 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14271 GIMPLE_OMP_TEAMS): New codes.
14272 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14273 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14275 (target_nesting_level): New variable.
14276 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14277 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14278 for collapse > 1 static schedule unless ordered.
14279 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14280 (determine_parallel_type): Adjust get_ws_args_for caller.
14281 (install_var_field): Handle mask & 4 for double indirection.
14282 (scan_sharing_clauses): Ignore shared clause on teams construct.
14283 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14284 (create_omp_child_function): If inside target or declare target
14285 constructs, set "omp declare target" attribute on the child function.
14286 (find_combined_for): New function.
14287 (scan_omp_parallel): Handle combined loops.
14288 (scan_omp_target, scan_omp_teams): New functions.
14289 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14290 restrictions and set ctx->cancellable for cancellable constructs.
14291 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14292 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14293 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14294 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14295 (omp_clause_aligned_alignment): New function.
14296 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14297 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14298 on teams constructs. Handle user defined reductions and new
14299 OpenMP 4.0 clauses.
14300 (lower_reduction_clauses): Don't set placeholder to address of ref
14301 if it has already the right type.
14302 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14303 (expand_parallel_call): Use the new non-_start suffixed builtins,
14304 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14305 and GOMP_parallel_end after the call.
14306 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14307 (expand_omp_for_init_counts): Handle combined loops.
14308 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14310 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14311 end of cancellable loops.
14312 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14313 Likewise. Handle collapse > 1 loops.
14314 (expand_omp_simd): Handle combined loops.
14315 (expand_omp_for): Add inner_stmt argument, adjust callers of
14316 expand_omp_for* functions, use expand_omp_for_static*chunk even
14317 for collapse > 1 unless ordered.
14318 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14319 of cancellable sections.
14320 (expand_omp_single): Remove need_barrier variable, just rely on
14321 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14322 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14323 (expand_omp_atomic_load, expand_omp_atomic_store,
14324 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14325 (expand_omp_target): New function.
14326 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14327 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14328 (build_omp_regions_1): Immediately close region for
14329 GF_OMP_TARGET_KIND_UPDATE.
14330 (maybe_add_implicit_barrier_cancel): New function.
14331 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14333 (lower_omp_single): Likewise. Add clobber after the barrier.
14334 (lower_omp_taskgroup): New function.
14335 (lower_omp_for): Handle combined loops. Adjust
14336 lower_rec_input_clauses caller. Handle cancellation.
14337 (lower_depend_clauses): New function.
14338 (lower_omp_taskreg): Lower depend clauses. Adjust
14339 lower_rec_input_clauses caller. Add clobber after the call. Handle
14341 (lower_omp_target, lower_omp_teams): New functions.
14342 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14343 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14344 and GOMP_cancellation_point calls.
14345 (lower_omp): Fold stmts inside of target region.
14346 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14347 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14348 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14349 (BT_FN_VOID_OMPFN_PTR_UINT,
14350 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14351 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14352 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14353 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14354 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14355 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14356 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14357 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14358 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14359 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14360 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14361 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14362 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14363 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14364 BUILT_IN_GOMP_PARALLEL_END.
14365 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14366 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14367 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14368 GF_OMP_FOR_KIND_DISTRIBUTE.
14369 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14370 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14371 (dump_gimple_omp_return): Print lhs if it has any.
14372 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14373 gimple_omp_atomic_seq_cst_p.
14374 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14375 and GIMPLE_OMP_TEAMS.
14376 * langhooks.c (lhd_omp_mappable_type): New function.
14377 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14378 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14380 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14381 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14382 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14383 (struct gimplify_omp_ctx): Add combined_loop field.
14384 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14385 on stmts inside of target region.
14386 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14387 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14388 ORT_TARGET and ORT_TARGET_DATA.
14389 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14391 (omp_notice_threadprivate_variable): Complain about threadprivate
14392 variables in target region.
14393 (omp_notice_variable): Complain about vars with non-mappable type
14394 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14395 (omp_check_private): Ignore ORT_TARGET* regions.
14396 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14397 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14398 (find_combined_omp_for): New function.
14399 (gimplify_omp_for): Handle gimplification of combined loops.
14400 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14402 (gimplify_omp_target_update): New function.
14403 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14404 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14405 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14406 (gimplify_body): If fndecl has "omp declare target" attribute, add
14407 implicit ORT_TARGET context around it.
14408 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14409 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14410 * tree-nested.c (convert_nonlocal_reference_stmt,
14411 convert_local_reference_stmt, convert_gimple_call): Handle
14412 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14413 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14414 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14415 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14416 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14417 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14418 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14419 BUILT_IN_GOMP_LOOP_END_CANCEL,
14420 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14421 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14422 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14423 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14424 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14425 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14426 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14427 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14428 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14429 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14430 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14431 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14432 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14433 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14434 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14435 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14436 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14437 gimple_build_omp_teams): New functions.
14438 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14439 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14440 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14441 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14442 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14443 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14444 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14445 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14446 GF_OMP_ATOMIC_SEQ_CST): New.
14447 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14448 gimple_build_omp_teams): New prototypes.
14449 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14450 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14451 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14452 GIMPLE_OMP_SINGLE as end of range.
14453 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14454 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14455 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14456 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14457 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14458 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14459 gimple_omp_target_kind, gimple_omp_target_set_kind,
14460 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14461 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14462 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14463 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14464 gimple_omp_teams_set_clauses): New inlines.
14465 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14466 and GIMPLE_OMP_TASKGROUP.
14467 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14468 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14469 enum omp_clause_proc_bind_kind): New.
14470 (union omp_clause_subcode): Add depend_kind, map_kind and
14471 proc_bind_kind fields.
14472 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14473 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14474 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14475 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14476 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14478 2013-10-10 Teresa Johnson <tejohnson@google.com>
14480 * predict.c (tree_estimate_probability): Add new parameter
14481 for estimate_bb_frequencies.
14482 (estimate_bb_frequencies): Add new parameter to force estimation.
14483 (rebuild_frequencies): When max frequency in function is small,
14484 recompute counts from frequencies.
14485 * predict.h (estimate_bb_frequencies): New parameter.
14487 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14489 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14490 optimizations are disabled.
14492 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14494 * coverage.c (coverage_finish): Fix leak of da_file_name.
14496 2013-10-10 Jan Hubicka <jh@suse.cz>
14498 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14499 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14500 Bobcat and generic.
14502 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14504 PR middle-end/58670
14505 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14506 if any labels are in FALLTHRU_BB, use a special label emitted
14507 immediately after the asm goto insn rather than label_rtx
14509 (expand_asm_stmt): Adjust caller.
14510 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14511 edge if the last insn in predecessor is a jump with single successor,
14512 but it isn't simplejump_p.
14514 2013-10-10 Richard Biener <rguenther@suse.de>
14516 PR tree-optimization/58656
14517 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14519 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14521 * gimplify.c: Include expr.h and tm_p.h for targets with special
14522 va-arg padding requirements.
14524 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14526 * tree-flow.h: Move some prototypes to gimple.h.
14527 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14528 * gimple.h: Relocate some prototypes from tree-flow.h
14529 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14530 Move to gimplify.c.
14531 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14532 (build_va_arg_indirect_ref): Relocate and make static.
14533 (std_gimplify_va_arg_expr): Relocate here.
14534 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14535 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14537 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14539 * doc/md.texi: Document the mnemonic attribute.
14541 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14544 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14545 (set_attr_alternative x ...) when searching for user defined
14546 mnemonic attribute.
14548 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14550 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14552 2013-10-09 Easwaran Raman <eraman@google.com>
14554 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14555 * cfgexpand.c (defer_stack_allocation): ...use here
14556 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14558 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14560 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14561 (operand_equal_for_value_replacement): New function, extracted from
14562 value_replacement and enhanced to catch more cases.
14563 (value_replacement): Use operand_equal_for_value_replacement.
14565 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14567 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14568 get_max_loop_iterations.
14570 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14572 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14573 Place comment above function.
14575 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14577 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14578 are not related to tree-cfg.c.
14579 * tree-ssa-address.h: New file. Relocate prototypes.
14580 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14581 (addr_for_mem_ref): New. Combine call to get_address_description and
14582 return addr_for_mem_ref.
14583 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14584 * tree-ssa-live.h: Adjust prototypes.
14585 * passes.c: Include tree-ssa-live.h.
14586 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14587 * graphite.c (graphite_transform_loops): Make static.
14588 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14589 make_pass_graphite, pass_data_graphite_transforms,
14590 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14591 * ipa-pure-const.c (warn_function_noreturn): Make static.
14592 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14593 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14594 Relocate from tree-cfg.c
14595 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14597 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14598 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14599 Move to ipa-pure-const.c.
14600 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14601 Relocate from tree-optimize.c.
14602 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14603 make_pass_fixup_cfg): Move to tree-cfg.c.
14604 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14605 Relocate some prototypes.
14606 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14607 * tree-dump.c (dump_function_to_file): Remove prototype.
14608 Add tree-flow.h to the include file.
14609 * tree-dump.h: Remove prototype.
14610 * tree-parloops.h: New File. Add prototypes.
14611 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14612 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14613 from tree-ssa-loop.c.
14614 * tree-predcom.c (run_tree_predictive_commoning,
14615 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14616 Relocate here from tree-ssa-loop.c.
14617 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14618 ssa_name_values.release ().
14619 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14620 (ssa_name_values): Relocate from tree-flow.h.
14621 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14622 * tree-ssa-loop.c (run_tree_predictive_commoning,
14623 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14624 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14625 make_pass_graphite, pass_data_graphite_transforms,
14626 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14627 tree_parallelize_loops, pass_data_parallelize_loops,
14628 make_pass_parallelize_loops): Move to other files.
14629 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14631 * tree.h: Remove prototypes from tree-address.c.
14633 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14635 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14636 (struct int_tree_map): Move to tree-hasher.h
14637 (SCALE, LABEL, PERCENT): Move to gimple.h
14638 * tree-flow-inline.h: Delete. Move functions to other files.
14639 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14640 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14641 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14642 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14643 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14644 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14645 * tree-hasher.h: Don't include tree-flow.h.
14646 (struct int_tree_map): Relocate from tree-flow.h.
14647 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14648 tree-flow-inline.h and make static.
14649 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14650 tree-flow-inline.h.
14651 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14652 tree-flow-inline.h and make static.
14653 * tree.h (is_global_var, may_be_aliased): Relocate from
14654 tree-flow-inline.h.
14655 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14656 * value-prof.c: No longer include tree-flow-inline.h.
14657 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14659 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14661 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14662 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14663 (enum move_pos): Move to tree-ssa-loop-im.h
14664 * cfgloop.h: Move some prototypes.
14665 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14666 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14667 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14668 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14669 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14670 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14671 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14672 (enum move_pos): Relocate here.
14673 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14675 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14676 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14677 make_pass_lim): Relocate here from tree-ssa-loop.c.
14678 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14680 (loop_edge_to_cancel, unloop_loops): Make static.
14681 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14682 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14683 (tree_complete_unroll, gate_tree_complete_unroll,
14684 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14685 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14686 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14687 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14688 (stmt_invariant_in_loop_p): Remove unused function.
14689 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14690 * tree-ssa-loop-manip.h: New file. Add prototypes.
14691 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14692 (gcov_type_to_double_int): Move to cfgloop.h.
14693 (double_int_cmp, bound_index,
14694 estimate_numbers_of_iterations_loop): Make static.
14695 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14696 (max_loop_iterations): Factor out get_max_loop_iterations.
14697 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14699 * tree-ssa-loop-niter.h: New file. Add prototypes.
14700 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14701 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14702 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14703 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14704 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14705 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14706 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14707 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14708 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14709 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14710 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14711 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14712 pass_data_complete_unroll, make_pass_complete_unroll,
14713 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14714 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14715 tree-ssa-loop-ivcanon.c.
14716 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14717 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14718 tree-ssa-loop-prefetch.c.
14719 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14720 tree-ssa-loop-im.c.
14721 (get_lsm_tmp_name): Relocate and add suffix parameter.
14722 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14723 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14724 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14725 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14726 (get_estimated_loop_iterations): Factor out accessor from
14727 estimated_loop_iterations in tree-ssa-loop-niter.c.
14728 (get_max_loop_iterations): Factor out accessor from
14729 _max_loop_iterations in tree-ssa-niter.c.
14730 * loop-unroll.c (decide_unroll_constant_iterations,
14731 decide_unroll_runtime_iterations, decide_peel_simple,
14732 decide_unroll_stupid): Use new get_* accessors.
14734 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14736 PR tree-optimization/20318
14737 * doc/extend.texi (returns_nonnull): New function attribute.
14738 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14740 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14741 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14743 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14745 PR middle-end/58570
14746 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14747 false if both components are bitfields.
14749 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14751 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14752 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14753 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14754 * config/aarch64/aarch64.h
14755 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14756 * config/aarch64/aarch64-simd-builtins.def
14757 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14759 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14761 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14763 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14765 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14767 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14769 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14770 (vneg_f64): New intrinsic.
14771 (vneg_s8): Asm replaced with C.
14772 (vneg_s16): Likewise.
14773 (vneg_s32): Likewise.
14774 (vneg_s64): New intrinsic.
14775 (vnegq_f32): Asm replaced with C.
14776 (vnegq_f64): Likewise.
14777 (vnegq_s8): Likewise.
14778 (vnegq_s16): Likewise.
14779 (vnegq_s32): Likewise.
14780 (vnegq_s64): Likewise.
14782 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14784 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14786 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14788 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14789 packed stack special handling.
14790 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14791 back to fixed stack slots for FPRs saved due to stdarg.
14793 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14795 * config/s390/s390.c (s390_frame_info): Restructure function.
14797 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14799 * config/s390/s390.c (struct s390_frame_layout): New field
14801 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14802 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14803 regs_ever_clobbered to char*.
14804 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14805 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14806 (s390_register_info): Enable FPR save slots. Move/Copy some
14807 functionality into ...
14808 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14809 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14811 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14812 not imply a stack frame.
14813 (s390_init_frame_layout): Remove variable clobbered_regs.
14814 (s390_update_register_info): Remove function.
14815 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14816 cannot be used for register renaming.
14817 (s390_hard_regno_scratch_ok): New function.
14818 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14819 (s390_initial_elimination_offset): Change offset calculation of
14820 the return address pointer.
14821 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14822 (restore_gprs): Set frame related flag.
14823 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14824 (s390_emit_prologue): Call s390_register_info instead of
14825 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14826 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14827 (s390_optimize_prologue): Call s390_optimize_register_info.
14828 Try to remove also FPR slot save/restore INSNs. Remove frame
14829 related flags from restore INSNs.
14831 2013-10-08 DJ Delorie <dj@redhat.com>
14833 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14836 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14837 avoid conflict with the MI use of %c.
14838 * config/rl78/rl78-real.md: change %c to %C throughout.
14839 * config/rl78/rl78-virt.md: Likewise.
14841 2013-10-08 Jan Hubicka <jh@suse.cz>
14843 * config/i386/i386.c (ix86_option_override_internal): Switch
14844 to SSE math for -ffast-math when target ISA supports SSE2.
14846 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14848 * tree-flow.h: Remove some prototypes.
14849 * tree.h: Remove some protypes, add a couple.
14850 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14851 using_eh_for_cleanups_p): Add interface routines for front ends.
14852 * tree-eh.h: New file. Add protoptyes.
14853 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14854 (add_stmt_to_eh_lp_fn): Make static.
14855 (lower_try_finally): Use new using_eh_for_cleanups_p.
14856 * emit-rtl.c: Include tree-eh.h.
14857 * gimple.h: Include tree-eh.h.
14859 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14861 PR tree-optimization/58480
14862 * tree-vrp.c (infer_nonnull_range): New function.
14863 (infer_value_range): Call infer_nonnull_range.
14865 2013-10-08 Dehao Chen <dehao@google.com>
14867 PR tree-optimization/58619
14868 * tree-inline.c (copy_phis_for_bb): Combine location data
14871 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14874 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14875 RTX_FRAME_RELATED_P on INSN.
14877 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14879 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14880 (altivec_expand_vec_perm_const): Call it.
14882 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14884 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14885 sequences for LE VSX loads and stores at expand time.
14886 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14888 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14889 (rs6000_gen_le_vsx_permute): New.
14890 (rs6000_gen_le_vsx_load): New.
14891 (rs6000_gen_le_vsx_store): New.
14892 (rs6000_gen_le_vsx_move): New.
14893 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14894 (*vsx_le_perm_load_v4si): New.
14895 (*vsx_le_perm_load_v8hi): New.
14896 (*vsx_le_perm_load_v16qi): New.
14897 (*vsx_le_perm_store_v2di): New.
14898 (*vsx_le_perm_store_v4si): New.
14899 (*vsx_le_perm_store_v8hi): New.
14900 (*vsx_le_perm_store_v16qi): New.
14901 (*vsx_xxpermdi2_le_<mode>): New.
14902 (*vsx_xxpermdi4_le_<mode>): New.
14903 (*vsx_xxpermdi8_le_V8HI): New.
14904 (*vsx_xxpermdi16_le_V16QI): New.
14905 (*vsx_lxvd2x2_le_<mode>): New.
14906 (*vsx_lxvd2x4_le_<mode>): New.
14907 (*vsx_lxvd2x8_le_V8HI): New.
14908 (*vsx_lxvd2x16_le_V16QI): New.
14909 (*vsx_stxvd2x2_le_<mode>): New.
14910 (*vsx_stxvd2x4_le_<mode>): New.
14911 (*vsx_stxvd2x8_le_V8HI): New.
14912 (*vsx_stxvd2x16_le_V16QI): New.
14914 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14916 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14918 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14920 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14921 loop to work also for 31bit ABI.
14922 Save the stack pointer for frame_size > 0.
14924 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14926 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14927 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14928 constraint letters from expanders.
14929 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14930 retry count to general_operand.
14931 ("tabort"): Give operand 0 a mode.
14932 ("tabort_1"): Add mode and constraint letter for operand 0.
14933 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14935 2013-10-04 Jeff Law <law@redhat.com>
14937 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14939 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14941 (thread_across_edge): Here. Call it.
14943 2013-10-04 Cary Coutant <ccoutant@google.com>
14945 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14946 discarding a location list expression (or a piece of one).
14948 2013-10-03 Jan Hubicka <jh@suse.cz>
14950 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14951 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14952 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14954 2013-10-03 Jan Hubicka <jh@suse.cz>
14956 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14957 accumulate-outgoing-args when producing unwind info.
14959 2013-10-03 Wei Mi <wmi@google.com>
14961 * lra-constraints.c (insert_move_for_subreg): New function
14962 extracted from simplify_operand_subreg.
14963 (simplify_operand_subreg): Add reload for paradoxical subreg.
14965 2013-10-03 Rong Xu <xur@google.com>
14967 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14968 the candidate of builtin_expect such that we should fix the
14969 size/time estimation.
14970 (estimate_function_body_sizes): Do the acutally size/time fix-up
14971 for builtin_expect.
14973 2013-10-03 Rong Xu <xur@google.com>
14975 * predict.c (tree_predict_by_opcode): Get the probability
14976 for builtin_expect from param builtin_expect_probability.
14977 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14978 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14979 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14981 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14984 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14985 * calls.c (alloca_call_p): Use get_callee_fndecl.
14986 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14987 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14989 (vrp_visit_stmt): Remove duplicated code.
14991 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14993 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14994 ceildf2, btruncdf2, instead of vsx_* name.
14996 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14997 iterators to only do V2DF and V4SF here. Move the DF code to
14998 rs6000.md where it is combined with SF mode. Replace <VSv> with
14999 just 'v' since only vector operations are handled with these insns
15000 after moving the DF support to rs6000.md.
15001 (vsx_sub<mode>3): Likewise.
15002 (vsx_mul<mode>3): Likewise.
15003 (vsx_div<mode>3): Likewise.
15004 (vsx_fre<mode>2): Likewise.
15005 (vsx_neg<mode>2): Likewise.
15006 (vsx_abs<mode>2): Likewise.
15007 (vsx_nabs<mode>2): Likewise.
15008 (vsx_smax<mode>3): Likewise.
15009 (vsx_smin<mode>3): Likewise.
15010 (vsx_sqrt<mode>2): Likewise.
15011 (vsx_rsqrte<mode>2): Likewise.
15012 (vsx_fms<mode>4): Likewise.
15013 (vsx_nfma<mode>4): Likewise.
15014 (vsx_copysign<mode>3): Likewise.
15015 (vsx_btrunc<mode>2): Likewise.
15016 (vsx_floor<mode>2): Likewise.
15017 (vsx_ceil<mode>2): Likewise.
15018 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15019 (vsx_sminsf3): Likewise.
15020 (vsx_fmadf4): Likewise.
15021 (vsx_fmsdf4): Likewise.
15022 (vsx_nfmadf4): Likewise.
15023 (vsx_nfmsdf4): Likewise.
15024 (vsx_cmpdf_internal1): Likewise.
15026 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15027 simpler to select whether a target has SPE or traditional floating
15028 point support in iterators.
15029 (TARGET_DF_SPE): Likewise.
15030 (TARGET_SF_FPR): Likewise.
15031 (TARGET_DF_FPR): Likewise.
15032 (TARGET_SF_INSN): Macros to say whether floating point support
15033 exists for a given operation for expanders.
15034 (TARGET_DF_INSN): Likewise.
15036 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15037 combining of SF/DF mode operations, using both traditional and VSX
15045 (abs<mode>2): Combine SF/DF modes using traditional floating point
15046 instructions. Add support for using the upper DF registers with
15047 VSX support, and SF registers with power8-vector support. Update
15048 expanders for operations supported by both the SPE and traditional
15049 floating point units.
15050 (abs<mode>2_fpr): Likewise.
15051 (nabs<mode>2): Likewise.
15052 (nabs<mode>2_fpr): Likewise.
15053 (neg<mode>2): Likewise.
15054 (neg<mode>2_fpr): Likewise.
15055 (add<mode>3): Likewise.
15056 (add<mode>3_fpr): Likewise.
15057 (sub<mode>3): Likewise.
15058 (sub<mode>3_fpr): Likewise.
15059 (mul<mode>3): Likewise.
15060 (mul<mode>3_fpr): Likewise.
15061 (div<mode>3): Likewise.
15062 (div<mode>3_fpr): Likewise.
15063 (sqrt<mode>3): Likewise.
15064 (sqrt<mode>3_fpr): Likewise.
15065 (fre<Fs>): Likewise.
15066 (rsqrt<mode>2): Likewise.
15067 (cmp<mode>_fpr): Likewise.
15068 (smax<mode>3): Likewise.
15069 (smin<mode>3): Likewise.
15070 (smax<mode>3_vsx): Likewise.
15071 (smin<mode>3_vsx): Likewise.
15072 (negsf2): Delete SF operations that are merged with DF.
15073 (abssf2): Likewise.
15074 (addsf3): Likewise.
15075 (subsf3): Likewise.
15076 (mulsf3): Likewise.
15077 (divsf3): Likewise.
15079 (fmasf4_fpr): Likewise.
15080 (fmssf4_fpr): Likewise.
15081 (nfmasf4_fpr): Likewise.
15082 (nfmssf4_fpr): Likewise.
15083 (sqrtsf2): Likewise.
15084 (rsqrtsf_internal1): Likewise.
15085 (smaxsf3): Likewise.
15086 (sminsf3): Likewise.
15087 (cmpsf_internal1): Likewise.
15088 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15089 (negdf2): Delete DF operations that are merged with SF.
15090 (absdf2): Likewise.
15091 (nabsdf2): Likewise.
15092 (adddf3): Likewise.
15093 (subdf3): Likewise.
15094 (muldf3): Likewise.
15095 (divdf3): Likewise.
15097 (rsqrtdf_internal1): Likewise.
15098 (fmadf4_fpr): Likewise.
15099 (fmsdf4_fpr): Likewise.
15100 (nfmadf4_fpr): Likewise.
15101 (nfmsdf4_fpr): Likewise.
15102 (sqrtdf2): Likewise.
15103 (smaxdf3): Likewise.
15104 (smindf3): Likewise.
15105 (cmpdf_internal1): Likewise.
15106 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15107 (btrunc<mode>2): Delete separate expander, and combine with the
15108 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15109 (btrunc<mode>2_fpr): Likewise.
15110 (ceil<mode>2): Likewise.
15111 (ceil<mode>2_fpr): Likewise.
15112 (floor<mode>2): Likewise.
15113 (floor<mode>2_fpr): Likewise.
15114 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15115 Add support for using the upper registers with VSX and
15116 power8-vector. Move insns to be closer to the define_expands. On
15117 VSX systems, prefer the traditional form of FMA over the VSX
15118 version, since the traditional form allows the target not to
15119 overlap with the inputs.
15120 (fms<mode>4_fpr): Likewise.
15121 (nfma<mode>4_fpr): Likewise.
15122 (nfms<mode>4_fpr): Likewise.
15124 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15125 Richard Earnshaw <richard.earnshaw@arm.com>
15127 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15128 (struct mult_cost_table): Likewise.
15129 (struct mem_cost_table): Likewise.
15130 (struct fp_cost_table): Likewise.
15131 (struct vector_cost_table): Likewise.
15132 (cpu_cost_table): Likewise.
15133 * config/arm/arm.opt (mold-rts-costs): New option.
15134 (mnew-generic-costs): Likewise.
15135 * config/arm/arm.c (generic_extra_costs): New table.
15136 (cortexa15_extra_costs): Likewise.
15137 (arm_slowmul_tune): Use NULL as new costs.
15138 (arm_fastmul_tune): Likewise.
15139 (arm_strongarm_tune): Likewise.
15140 (arm_xscale_tune): Likewise.
15141 (arm_9e_tune): Likewise.
15142 (arm_v6t2_tune): Likewise.
15143 (arm_cortex_a5_tune): Likewise.
15144 (arm_cortex_a9_tune): Likewise.
15145 (arm_v6m_tune): Likewise.
15146 (arm_fa726te_tune): Likewise.
15147 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15148 (arm_cortex_tune): Use generict_extra_costs.
15149 (shifter_op_p): New function.
15150 (arm_unspec_cost): Likewise.
15151 (LIBCALL_COST): Define.
15152 (arm_new_rtx_costs): New function.
15153 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15154 table is available. Use old costs otherwise unless mnew-generic-costs
15156 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15157 (cpu_cost_table): Declare.
15159 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15162 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15163 (*subs_mul_imm_<mode>)
15164 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15165 (*sub_<shift>_<mode>)
15166 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15167 Remove k constraint.
15169 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15171 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15173 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15175 2013-10-02 Teresa Johnson <tejohnson@google.com>
15177 * predict.c (probably_never_executed): New function.
15178 (probably_never_executed_bb_p): Invoke probably_never_executed.
15179 (probably_never_executed_edge_p): Ditto.
15180 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15181 Treat profile insanities conservatively.
15183 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15185 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15187 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15189 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15190 use it. Use smaller increase for scratch. Don't increase reject
15191 for early clobber scratch.
15192 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15193 setting eliminated regs except setting fp from hfp.
15194 (lra_eliminate): Check lra_insn_recog_data on NULL.
15196 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15199 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15200 setting -mvsx-timode by default until the underlying problem is fixed.
15201 (RS6000_CPU, power7 defaults): Likewise.
15203 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15205 * config/x-linux (host-linux.o): Remove header dependencies.
15206 Use $(COMPILE) and $(POSTCOMPILE).
15207 * config/t-linux-android (linux-android.o): Ditto.
15209 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15211 * Makefile.in (expmed.o-warn): Remove.
15213 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15215 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15216 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15218 2013-10-02 Teresa Johnson <tejohnson@google.com>
15220 * dojump.c (do_jump_1): Divide probability between
15221 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15223 2013-10-02 Tom Tromey <tromey@redhat.com>
15225 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15227 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15229 * tree-flow.h: Remove some prototypes.
15230 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15231 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15232 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15233 mark_virtual_phi_result_for_renaming): Relocate here.
15234 * tree-into-ssa.h: Add prototypes.
15235 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15236 single_pred_before_succ_order.
15237 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15238 (nonfreeing_call_p) Move to gimple.c.
15239 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15241 * basic-block.h (single_pred_before_succ_order): Add prototype.
15242 * gimple.c (nonfreeing_call_p): Relocate here.
15243 * gimple.h: Add prototype.
15244 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15245 * tree-ssa-dom.h: New file. Relocate prototypes here.
15246 * tree-ssa.h: Include tree-ssa-dom.h.
15248 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15250 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15251 Use $(COMPILE) and $(POSTCOMPILE).
15253 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15255 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15257 * tree-flow.h: Remove some prototypes.
15258 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15259 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15260 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15261 propagate_tree_value*): Move from here to...
15262 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15263 propagate_tree_value*): Relocate here.
15264 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15265 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15266 * gimple-fold.c: Remove gimple-fold.h from include list.
15267 * tree-vrp.c: Remove gimple-fold.h from include list.
15268 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15269 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15270 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15271 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15272 * sese.c: Add tree-ssa-propagate.h to include list.
15274 2013-10-02 Richard Biener <rguenther@suse.de>
15276 * tree-loop-distribution.c: Include tree-vectorizer.h for
15277 find_loop_location.
15278 (enum partition_kind): Remove PKIND_REDUCTION.
15279 (struct partition_s): Remove has_writes member, add reduction_p member.
15280 (partition_alloc): Adjust.
15281 (partition_builtin_p): Likewise.
15282 (partition_has_writes): Remove.
15283 (partition_reduction_p): New function.
15284 (partition_merge_into): Likewise.
15285 (generate_code_for_partition): Commonize builtin partition
15287 (rdg_cannot_recompute_vertex_p): Remove.
15288 (already_processed_vertex_p): Likewise.
15289 (rdg_flag_vertex): Do not set has_writes.
15290 (classify_partition): Adjust.
15291 (rdg_build_partitions): Do not set has_writes, treat all
15292 partitions as useful.
15293 (distribute_loop): Record number of library calls generated. Adjust.
15294 (tree_loop_distribution): Report number of loops and library
15295 calls generated as opt-info.
15297 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15299 * tree-flow.h: Include new .h files. Move prototypes.
15300 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15301 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15302 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15303 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15304 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15305 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15306 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15307 * tree.h (get_ref_base_and_extent): Move prototype out.
15308 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15310 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15311 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15312 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15313 * tree-scalar-evolution.c: Include tree.h.
15314 * sese.c: Include tree.h.
15315 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15316 * dwarf2out.c: Include tree-dfa.h.
15317 * tree-chrec.c: Include tree.h.
15318 * tree-data-ref.c: Include tree.h.
15320 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15322 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15325 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15327 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15328 Use $(COMPILE) and $(POSTCOMPILE).
15329 (sol2-cxx.o): Likewise.
15330 (sol2-stubs.o): Likewise.
15331 (sol2.o): Likewise.
15332 * config/x-solaris (host-solaris.o): Likewise.
15334 * config/sparc/t-sparc (sparc.o): Remove.
15335 (sparc-c.o): Remove header dependencies.
15336 Use $(COMPILE) and $(POSTCOMPILE).
15337 * config/sparc/x-sparc: Likewise.
15339 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15341 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15342 * config/arc/arc700.md: Likewise.
15343 * config/arc/arc-modes.def: Likewise.
15344 * config/arc/arc-simd.h: Likewise.
15345 * config/arc/t-arc-uClibc: Likewise.
15346 * config/arc/t-arc-newlib: Likewise.
15348 2013-10-02 Renlin Li <renlin.li@arm.com>
15350 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15352 (aarch64_expand_epilogue): Likewise.
15354 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15355 Yufeng Zhang <yufeng.zhang@arm.com>
15357 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15359 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15360 'base_in' represent a conversion and legal_cast_p_1 holds; set
15361 'base_in' with the returned value from get_unwidened.
15363 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15365 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15366 plus_constant is not used.
15368 2013-10-01 Wei Mi <wmi@google.com>
15370 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15371 * config/i386/i386.md: Add define_peephole2 to
15372 break partial reg stall for cvtss2sd/cvtsd2ss.
15374 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15376 * config/arc/arc.c (pass_arc_ifcvt::clone):
15377 Update for ctxt_ -> m_ctxt change.
15379 2013-10-01 Jeff Law <law@redhat.com>
15381 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15382 outgoing_edge and intermediate_edge fields. Instead store the path.
15383 (redirection_data::hash): Hash on the last edge's destination index.
15384 (redirection_data::equal): Check the entire thread path.
15385 (lookup_redirectio_data): Corresponding changes.
15386 (create_edge_and_update_destination_phis): Likewise.
15387 (thread_single_edge): Likewise.
15389 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15390 Diego Novillo <dnovillo@google.com>
15392 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15393 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15394 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15395 versions of these patterns.
15397 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15398 (__builtin_arc_aligned): Likewise.
15400 * config/arc/arc.md: Expand adc_0 comment stating the intended
15401 purpose and why it isn't ready.
15402 Replace commented out call_value_via_label_mixed with a
15403 plain comment about bl_s.
15405 * config/arc/arc.c (stdio.h): Don't include directly.
15406 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15407 Remove if (1) condition.
15408 (arc_encode_section_info): Fix comment.
15410 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15412 * config/arc/arc.c (arc_conditional_register_usage):
15413 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15414 Also set reg_alloc_order for DMA config regs.
15416 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15417 Jeremy Bennett <jeremy.bennett@embecosm.com>
15419 * doc/install.texi (--with-cpu): Mention ARC.
15420 (arc-*-elf32): New paragraph.
15421 (arc-linux-uclibc): Likewise.
15422 * doc/md.texi (Machine Constraints): Add ARC part.
15423 * doc/invoke.texi: (menu): Add ARC Options.
15424 (Machine Dependent Options) <ARC Options>: Add synopsis.
15425 (node ARC Options): Add.
15426 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15427 (ARC Built-in Functions): New section defining
15428 generic ARC built-in functions.
15429 (ARC SIMD Built-in Functions): New section defining SIMD specific
15430 built-in functions.
15431 (Declaring Attributes of Functions): Extended
15432 description of short_call and long_call attributes for ARC and
15433 added index entries.
15435 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15436 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15437 Joern Rennecke <joern.rennecke@embecosm.com>
15438 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15439 Brendan Kehoe <brendan@zen.org>
15440 Michael Eager <eager@eagercon.com>
15441 Simon Cook <simon.cook@embecosm.com>
15442 Jeremy Bennett <jeremy.bennett@embecosm.com>
15444 * config/arc, common/config/arc: New directories.
15446 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15447 Brendan Kehoe <brendan@zen.org>
15448 Simon Cook <simon.cook@embecosm.com>
15450 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15452 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15454 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15455 * tree-ssa-coalesce.h: New. Move prototype to here.
15456 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15457 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15458 (gimple_can_coalesce_p): Move to...
15459 * gimple.c (gimple_can_coalesce_p): Here.
15461 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15463 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15464 (dump_decl_set): Move to gimple.c.
15465 * gimple.h: Don't include tree-ssa-operands.h.
15466 (dump_decl_set): Add prototype.
15467 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15468 Move to gimple-ssa.h.
15469 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15470 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15471 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15472 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15473 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15475 (dump_decl_set): Relocate here.
15476 * gimple-ssa.h: New file.
15477 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15478 Relocate from gimple.h.
15479 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15480 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15481 swap_tree_operands and remove non-ssa path.
15482 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15483 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15485 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15486 vect_is_simple_reduction_1): Use swap_ssa_operands.
15487 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15488 (enum need_phi_state): Move to tree-into-ssa.c.
15489 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15490 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15491 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15492 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15493 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15494 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15495 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15496 num_imm_uses): Move to ssa-iterators.h.
15497 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15498 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15500 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15501 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15502 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15503 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15504 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15505 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15506 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15507 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15508 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15509 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15510 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15511 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15512 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15513 (set_phi_nodes): Move to tree-phinodes.h.
15514 * tree-ssa-operands.h (enum ssa_op_iter_type,
15515 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15516 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15517 (dump_decl_set): Remove prototype.
15518 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15519 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15520 (set_phi_nodes): Relocate from tree-flow-inline.h.
15521 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15523 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15524 include list. Temporarily add gimple.h to include list.
15525 * ssa-iterators.h: New file.
15526 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15527 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15528 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15529 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15530 Relocate from tree-ssa-operands.h.
15531 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15532 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15533 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15534 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15535 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15536 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15537 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15538 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15539 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15540 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15541 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15542 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15543 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15544 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15545 Relocate from tree-flow-inline.h.
15546 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15548 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15551 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15552 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15553 Insert '\t' to output template.
15554 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15555 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15556 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15557 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15559 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15561 * doc/install.texi (Host/target specific installation notes for GCC):
15562 Put @anchor before @heading.
15563 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15564 Use @email for email addresses.
15566 2013-10-01 Jeff Law <law@redhat.com>
15568 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15569 a vec. Only delete the path if we create one without successfully
15570 registering a jump thread.
15571 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15573 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15574 (paths): New vector of jump threading paths.
15575 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15576 (THREAD_PATH): New accessor macro for the entire thread path.
15577 (lookup_redirection_data): Get intermediate and final outgoing edge
15578 from the thread path.
15579 (create_edge_and_update_destination_phis): Copy the threading path.
15580 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15581 jump threading path.
15582 (ssa_redirect_edges): Get edges and block types from the jump threading
15583 path. Free the path vector.
15584 (thread_block): Get edges from the jump threading path. Look at the
15585 entire path to see if we thread to a loop exit. If we cancel a jump
15586 thread request, then free the path vector.
15587 (thread_single_edge): Get edges and block types from the jump threading
15588 path. Free the path vector.
15589 (thread_through_loop_header): Get edges and block types from the jump
15590 threading path. Free the path vector.
15591 (mark_threaded_blocks): Iterate over the vector of paths and store
15592 the path on the appropriate edge. Get edges and block types from the
15593 jump threading path.
15594 (mark_threaded_blocks): Get edges and block types from the jump
15595 threading path. Free the path vector.
15596 (thread_through_all_blocks): Use the vector of paths rather than
15597 a vector of 3-edge sets.
15598 (register_jump_thread): Accept pointer to a path vector rather
15599 than the path vector itself. Store the path vector for later use.
15602 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15603 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15606 * config/s390/s390.c (s390_split_branches): Modify check for table
15608 (s390_chunkify_start): Rearrange table jump insn check in order to
15609 deal with compare and branch insns correctly.
15611 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15615 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15616 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15617 define_insn_and_split.
15618 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15619 (shiftsi3_compare): New pattern.
15620 (rrx): New pattern.
15621 * config/arm/unspecs.md (UNSPEC_RRX): New.
15623 2013-10-01 Alan Modra <amodra@gmail.com>
15625 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15626 casing inout operands.
15628 2013-10-01 Richard Biener <rguenther@suse.de>
15630 PR tree-optimization/58553
15631 * tree-loop-distribution.c (struct partition_s): Add niter member.
15632 (classify_partition): Populate niter member for the partition
15633 and properly identify whether the relevant store happens before
15634 or after the loop exit.
15635 (generate_memset_builtin): Use niter member from the partition.
15636 (generate_memcpy_builtin): Likewise.
15638 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15640 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15641 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15643 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15645 * basic-block.h (edge_list): Prefix member names with "m_".
15646 * context.h (context): Likewise.
15647 * domwalk.h (dom_walker): Likewise.
15648 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15649 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15650 * hash-table.h (hash_table): Likewise.
15651 * machmode.h (bit_field_mode_iterator): Likewise.
15652 * pass_manager.h (pass_list): Likewise.
15653 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15654 * tree-pass.h (pass_data): Likewise.
15655 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15656 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15657 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15658 * asan.c (pass_data_asan): Update accordingly.
15659 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15660 (control_dependences::control_dependences): Likewise.
15661 (control_dependences::~control_dependences): Likewise.
15662 (control_dependences::~control_dependences): Likewise.
15663 (control_dependences::get_edges_dependent_on): Likewise.
15664 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15665 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15666 * context.c (gcc::context::context): Likewise.
15667 * cprop.c (pass_rtl_cprop::clone): Likewise.
15668 * domwalk.c (dom_walker::walk): Likewise.
15669 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15670 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15671 * mode-switching.c (pass_mode_switching::clone): Likewise.
15672 * passes.c (opt_pass::opt_pass): Likewise.
15673 (pass_manager::pass_manager): Likewise.
15674 * predict.c (pass_strip_predict_hints::clone): Likewise.
15675 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15676 (pass_split_all_insns::clone): Likewise.
15677 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15679 (bit_field_mode_iterator::next_mode): Likewise.
15680 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15681 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15682 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15683 * tree-complex.c (pass_lower_complex::clone): Likewise.
15684 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15685 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15686 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15687 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15688 (pass_fold_builtins::clone): Likewise.
15689 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15690 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15691 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15692 (pass_cd_dce::clone): Likewise.
15693 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15694 (pass_phi_only_cprop::clone): Likewise.
15695 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15696 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15697 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15698 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15699 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15700 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15701 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15702 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15703 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15704 * tree-vrp.c (pass_vrp::clone): Likewise.
15705 * tsan.c (pass_tsan::clone): Likewise.
15707 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15709 PR middle-end/58564
15710 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15711 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15713 PR middle-end/58564
15714 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15715 optimization, punt if sign_bit_p looked through any zero extension.
15717 2013-09-30 Teresa Johnson <tejohnson@google.com>
15719 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15720 Update redirected out edge count in joiner case.
15721 (ssa_redirect_edges): Common the joiner and non-joiner cases
15722 so that joiner case gets profile updates.
15724 2013-09-30 Richard Biener <rguenther@suse.de>
15726 PR tree-optimization/58554
15727 * tree-loop-distribution.c (classify_partition): Require
15728 unconditionally executed stores for memcpy and memset recognition.
15729 (tree_loop_distribution): Calculate dominance info.
15731 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15733 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15734 (NO_PROFILE_COUNTERS): Likewise.
15735 (PROFILE_HOOK): Likewise.
15736 (FUNCTION_PROFILER): Likewise.
15737 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15739 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15741 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15742 calls and defines in TARGET_MACHO conditional.
15743 (load_macho_picbase_di): Likewise.
15744 (reload_macho_picbase): Likewise.
15745 (reload_macho_picbase_si): Likewise.
15746 (reload_macho_picbase_di): Likewise.
15747 (nonlocal_goto_receiver): Likewise.
15749 2013-09-30 Nick Clifton <nickc@redhat.com>
15751 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15752 that use the MSP430X ISA.
15753 (msp430_option_override): Scan -mmcu command line option for any
15754 MCU name that supports the MSP430X ISA.
15755 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15756 -mmcu options which enable the MSP430X ISA.
15758 2013-09-30 Richard Biener <rguenther@suse.de>
15760 PR middle-end/58532
15761 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15762 before looking for setjmp-like calls.
15764 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15767 * config/darwin-protos.h (machopic_get_function_picbase): New.
15768 * config/darwin.c (machopic_get_function_picbase): New.
15769 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15770 label for a new func. (load_macho_picbase_di): Likewise.
15771 (reload_macho_picbase): New expand.
15772 (reload_macho_picbase_si): New insn.
15773 (reload_macho_picbase_di): New insn.
15774 (nonlocal_goto_receiver): New define and split.
15775 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15776 (unspecv enum): Add UNSPECV_NLGR.
15778 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15780 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15781 that altivec registers are correctly sized on Darwin.
15783 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15785 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15786 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15787 * config/x-darwin (host-darwin.o): Likewise.
15788 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15789 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15790 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15792 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15794 * doc/invoke.texi: Fix usage of @tie{} command.
15796 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15798 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15800 2013-09-28 Jan Hubicka <jh@suse.cz>
15802 * config/i386/x86-tune.def: Add documentation for each of the options;
15805 2013-09-28 Jan Hubicka <jh@suse.cz>
15807 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15809 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15810 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15811 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15812 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15813 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15815 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15817 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15818 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15819 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15820 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15821 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15822 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15823 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15824 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15825 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15826 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15827 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15828 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15829 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15830 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15831 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15832 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15833 gimple.h, godump.c, graphite-clast-to-gimple.c,
15834 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15835 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15836 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15837 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15838 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15839 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15840 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15841 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15842 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15843 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15844 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15845 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15846 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15847 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15848 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15849 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15850 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15851 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15852 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15853 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15854 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15855 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15856 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15857 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15858 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15859 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15860 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15861 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15862 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15863 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15864 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15865 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15866 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15867 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15868 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15869 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15870 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15871 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15872 whitespace before "(".
15874 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15876 * expr.h (extract_bit_field): Remove packedp parameter.
15877 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15878 from forward declaration.
15879 (store_split_bit_field): Remove packedp arg from calls to
15880 extract_fixed_bit_field.
15881 (extract_bit_field_1): Remove packedp parameter and packedp
15882 argument from recursive calls and calls to extract_fixed_bit_field.
15883 (extract_bit_field): Remove packedp parameter and corresponding
15884 arg to extract_bit_field_1.
15885 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15887 (extract_split_bit_field): Remove packedp arg from call to
15888 extract_fixed_bit_field.
15889 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15890 (copy_blkmode_from_reg): Likewise.
15891 (copy_blkmode_to_reg): Likewise.
15892 (read_complex_part): Likewise.
15893 (store_field): Likewise.
15894 (expand_expr_real_1): Likewise.
15895 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15896 to extract_bit_field.
15897 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15898 call to extract_bit_field.
15899 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15900 call to extract_bit_field.
15901 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15902 and special packedp behavior from -fstrict-volatile-bitfields
15905 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15907 * lra-eliminations.c (init_elim_table): Guard value_p.
15909 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15911 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15912 DFmode, DImode, and SFmode in the upper VSX registers based on the
15913 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15914 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15915 of the VSX register handling.
15917 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15918 (f32_sv): Likewise.
15919 (zero_extendsidi2_lfiwzx): Add support for loading into the
15920 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15921 only do VSX memory options on Altivec registers.
15922 (extendsidi2_lfiwax): Likewise.
15923 (extendsfdf2_fpr): Likewise.
15924 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15925 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15926 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15927 (movdi_internal64): Likewise.
15929 2013-09-27 Xinliang David Li <davidxl@google.com>
15931 * opts.c (finish_options): Adjust parameters
15932 according to vect cost model.
15933 (common_handle_option): Set dynamic vect cost
15935 targhooks.c (default_add_stmt_cost): Compute stmt cost
15937 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15938 Use helper function.
15939 * tree-vectorizer.h (unlimited_cost_model): New function.
15940 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15941 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15943 (vect_enhance_data_refs_alignment): Ditto.
15944 * flag-types.h: New enum.
15945 * common/config/i386/i386-common.c (ix86_option_init_struct):
15946 No need to initialize vect_cost_model flag.
15947 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15950 2013-09-27 Diego Novillo <dnovillo@google.com>
15952 * gimple.h (enum ssa_mode): Remove.
15954 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15956 * cfgloop.h (number_of_loops): Fix typo in check for null.
15958 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15960 PR middle-end/58551
15961 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15962 are children of outermost saved_cfun's loop, and set it up to
15963 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15964 if loop != loop0 and SESE region contains bbs that belong to loop0.
15966 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15968 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15969 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15970 (set_address_segment, set_address_base, set_address_index)
15971 (set_address_disp): Accept the argument unconditionally.
15972 (baseness): Remove must_be_base_p and must_be_index_p checks.
15973 (decompose_normal_address): Classify as much as possible in the
15976 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15978 * cse.c (count_reg_usage): Handle INT_LIST.
15979 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15980 * reginfo.c (reg_scan_mark_refs): Likewise.
15981 * reload1.c (eliminate_regs_1): Likewise.
15983 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15985 PR middle-end/58547
15986 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15989 2013-09-27 Richard Biener <rguenther@suse.de>
15991 PR tree-optimization/58459
15992 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15993 restriction not propagating into loops.
15995 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15997 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15998 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15999 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16001 2013-09-26 Richard Biener <rguenther@suse.de>
16003 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16005 2013-09-26 Richard Biener <rguenther@suse.de>
16007 * alias.h (component_uses_parent_alias_set): Rename to ...
16008 (component_uses_parent_alias_set_from): ... this.
16009 * alias.c (component_uses_parent_alias_set): Rename to ...
16010 (component_uses_parent_alias_set_from): ... this and return
16011 the desired parent.
16012 (reference_alias_ptr_type_1): Use the result from
16013 component_uses_parent_alias_set_from instead of stripping
16014 components one at a time.
16015 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16017 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16019 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16020 Move prototypes to...
16021 * tree-ssa-ter.h: New File. Move prototypes here.
16022 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16023 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16024 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16025 from is_replaceable_p.
16026 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16027 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16028 (process_replaceable): Use ter_is_replaceable_p.
16029 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16030 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16031 newly refactored ssa_is_replaceable_p.
16032 * cfgexpand.c: Include tree-outof-ssa.h.
16033 * ssaexpand.h: Delete.
16035 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16037 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16038 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16040 (create_gimple_tmp): Delete.
16041 (get_expr_type, build_assign, build_type_cast): Move to...
16042 * gimple-builder.c: New File.
16043 (get_expr_type): Relocate from gimple.c.
16044 (build_assign, build_type_cast): Change to only create ssanames.
16045 * gimple.h: Move prototypes to...
16046 * gimple-builder.h: New File. Here.
16047 * tree-ssa.h: And here.
16048 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16049 count_uses_and_derefs): Relocate from gimple.c.
16050 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16051 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16052 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16053 gimple_replace_ssa_lhs.
16054 * asan.c: Include gimple-builder.h.
16055 * Makefile.in: Add gimple-builder.o.
16057 2013-09-26 Richard Biener <rguenther@suse.de>
16059 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16060 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16061 (loe_visit_block): Use gcc_checking_assert.
16062 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16063 gimple_assign_ssa_name_copy_p.
16064 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16067 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16069 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16070 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16072 2013-09-26 Richard Biener <rguenther@suse.de>
16074 PR tree-optimization/58539
16075 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16076 the fact that debug statements are not taking part in loop-closed
16079 2013-09-26 Nick Clifton <nickc@redhat.com>
16081 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16082 time warning message.
16083 (msp430_print_operand_raw): Delete unused letter parameter.
16084 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16085 (msp430_print_operand_address): New function.
16086 (msp430_print_operand): Move address printing code from here to
16088 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16090 (zero_extendpsisi2): Likewise.
16091 (extendpsisi2): New pattern.
16092 (andneghi3): New pattern.
16094 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16096 * config/aarch64/aarch64.opt (mlra): New option.
16097 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16098 (TARGET_LRA_P): Define.
16100 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16102 * expr.c (expand_assignment): Remove obsolete comment.
16104 2013-09-25 Jeff Law <law@redhat.com>
16106 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16107 tree-ssa-threadupdate.h.
16108 (register_jump_thread): Similarly.
16109 * tree-ssa-threadupdate.h: New header file.
16110 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16111 * tree-vrp.c: Likewise.
16112 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16113 (thread_around_empty_blocks): Change type of path vector argument to
16114 an edge,type pair from just an edge. Initialize both elements when
16115 appending to a jump threading path. Tweak references to elements
16117 (thread_across_edge): Similarly. Release memory for the elements
16119 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16120 (dump_jump_thread_path): New function broken out from
16121 register_jump_thread.
16122 (register_jump_thread): Use dump_jump_thread_path. Change type of
16123 path vector entries. Search the path for NULL edges and dump
16124 the path if one is found. Tweak the conversion of path to 3-edge
16125 form to use the block copy type information embedded in the path.
16127 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16129 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16131 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16132 Vladimir Makarov <vmakarov@redhat.com>
16134 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16135 from the least significant bit.
16136 (strip_address_mutations): Add bitfield operations handling.
16137 (must_be_index_p): Add shifting and rotate operations handling.
16138 (set_address_base): Use must_be_base_p predicate.
16139 (set_address_index): Use must_be_index_p predicate.
16141 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16143 Sergey Lega <sergey.s.lega@intel.com>
16144 Anna Tikhonova <anna.tikhonova@intel.com>
16145 Ilya Tocar <ilya.tocar@intel.com>
16146 Andrey Turetskiy <andrey.turetskiy@intel.com>
16147 Ilya Verbin <ilya.verbin@intel.com>
16148 Kirill Yukhin <kirill.yukhin@intel.com>
16149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16151 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16153 (ix86_expand_vector_move_misalign): Support new unaligned load and
16154 stores and use new names.
16155 (CODE_FOR_sse2_storedqu): Rename to ...
16156 (CODE_FOR_sse2_storedquv16qi): ... this.
16157 (CODE_FOR_sse2_loaddqu): Rename to ...
16158 (CODE_FOR_sse2_loaddquv16qi): ... this.
16159 (CODE_FOR_avx_loaddqu256): Rename to ...
16160 (CODE_FOR_avx_loaddquv32qi): ... this.
16161 (CODE_FOR_avx_storedqu256): Rename to ...
16162 (CODE_FOR_avx_storedquv32qi): ... this.
16163 * config/i386/i386.md (fpint_logic): New.
16164 * config/i386/sse.md (VMOVE): Extend for AVX512.
16168 (VI_UNALIGNED_LOADSTORE): Ditto.
16169 (sse2_avx_avx512f): Ditto.
16170 (sse2_avx2): Extend for AVX512.
16171 (sse4_1_avx2): Ditto.
16172 (avx2_avx512f): New.
16173 (sse): Extend for AVX512.
16176 (avxsizesuffix): Ditto.
16177 (sseintvecmode): Ditto.
16178 (ssePSmode): Ditto.
16179 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16180 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16181 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16182 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16183 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16184 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16185 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16186 (STORENT_MODE): Extend for AVX512.
16187 (*absneg<mode>2): Replace constraint "x" with "v".
16188 (*mul<mode>3): Ditto.
16189 (*ieee_smin<mode>3): Ditto.
16190 (*ieee_smax<mode>3): Ditto.
16191 (avx_cmp<mode>3): Replace VF with VF_128_256.
16192 (*<sse>_maskcmp<mode>3_comm): Ditto.
16193 (<sse>_maskcmp<mode>3): Ditto.
16194 (<sse>_andnot<mode>3): Extend for AVX512.
16195 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16196 (<code><mode>3, fpint_logic): New.
16197 (*<code><mode>3): Extend for AVX512.
16198 (avx512flogicsuff): New.
16199 (avx512f_<logic><mode>): Ditto.
16200 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16202 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16203 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16204 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16205 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16206 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16207 (xop_vpermil2<mode>3): Ditto.
16208 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16209 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16210 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16211 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16213 2013-09-25 Tom Tromey <tromey@redhat.com>
16215 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16216 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16217 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16218 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16219 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16220 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16221 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16222 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16223 (GRAPHITE_HTAB_H): Remove.
16225 2013-09-25 Tom Tromey <tromey@redhat.com>
16227 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16229 2013-09-25 Tom Tromey <tromey@redhat.com>
16231 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16233 2013-09-25 Tom Tromey <tromey@redhat.com>
16235 * config/i386/t-i386 (i386.o): Remove.
16236 (i386-c.o): Use COMPILE and POSTCOMPILE.
16238 2013-09-25 Tom Tromey <tromey@redhat.com>
16240 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16242 2013-09-25 Tom Tromey <tromey@redhat.com>
16244 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16245 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16246 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16247 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16248 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16249 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16250 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16251 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16252 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16253 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16254 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16255 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16256 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16257 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16258 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16259 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16260 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16261 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16262 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16263 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16264 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16265 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16266 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16267 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16268 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16269 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16270 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16271 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16272 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16273 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16274 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16275 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16276 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16277 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16278 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16279 (graphite-clast-to-gimple.o, graphite-dependences.o)
16280 (graphite-interchange.o, graphite-poly.o)
16281 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16282 (graphite-optimize-isl.o, tree-vect-loop.o)
16283 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16284 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16285 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16286 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16287 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16288 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16289 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16290 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16291 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16292 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16293 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16294 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16295 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16296 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16297 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16298 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16299 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16300 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16301 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16302 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16303 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16304 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16305 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16306 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16307 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16308 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16309 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16310 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16311 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16312 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16313 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16314 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16315 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16316 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16317 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16318 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16319 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16320 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16321 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16322 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16323 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16324 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16325 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16326 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16327 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16328 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16329 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16330 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16331 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16332 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16333 (gcov-dump.o): Remove.
16334 (default-c.o): Use COMPILE and POSTCOMPILE.
16335 (CFLAGS-gcc.o): New variable.
16336 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16338 2013-09-25 Tom Tromey <tromey@redhat.com>
16340 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16341 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16342 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16343 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16344 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16345 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16346 (c-family/array-notation-common.o, c-family/stub-objc.o)
16347 (c-family/c-ubsan.o): Remove.
16349 2013-09-25 Tom Tromey <tromey@redhat.com>
16351 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16353 2013-09-25 Tom Tromey <tromey@redhat.com>
16355 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16356 to add -DENABLE_SHARED_LIBGCC.
16357 (gcc.o): Don't use subshell.
16359 2013-09-25 Tom Tromey <tromey@redhat.com>
16361 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16362 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16363 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16364 * configure, config.in: Rebuild.
16366 2013-09-25 Tom Tromey <tromey@redhat.com>
16368 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16369 (COMPILE, POSTCOMPILE): New variables.
16370 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16371 (DEPFILES): New variable.
16372 Include ".Po" files.
16373 * configure.ac: Add checks for dependency checking.
16374 * configure, aclocal.m4: Regenerate.
16376 2013-09-25 Tom Tromey <tromey@redhat.com>
16378 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16379 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16381 2013-09-25 Tom Tromey <tromey@redhat.com>
16383 * Makefile.in (generated_files): Add options.h,
16384 target-hooks-def.h, insn-opinit.h,
16385 common/common-target-hooks-def.h, pass-instances.def,
16386 c-family/c-target-hooks-def.h.
16388 2013-09-25 Jeff Law <law@redhat.com>
16390 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16391 than foo[foo.length () - 1] to access last member in a vec.
16392 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16394 2013-09-25 Richard Biener <rguenther@suse.de>
16396 PR middle-end/58521
16397 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16399 2013-09-25 Jan Hubicka <jh@suse.cz>
16401 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16404 2013-09-25 Marek Polacek <polacek@redhat.com>
16407 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16408 when determining the type name.
16410 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16412 * config/sh/sh.md: Fix formatting.
16414 2013-09-24 Xinliang David Li <davidxl@google.com>
16416 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16417 max peel iterations parameter.
16418 * param.def: New parameter.
16419 * doc/invoke.texi: Document New parameter.
16421 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16423 * gimple-pretty-print.c: Various whitespace tweaks.
16424 * tree-core.h: Likewise.
16425 * tree-pretty-print.c: Likewise.
16426 * tree-ssa-alias.c: Likewise.
16427 * tree-ssa-copy.c: Likewise.
16428 * tree-ssanames.c: Likewise.
16429 * tree-ssanames.h: Likewise.
16430 * tree-vrp.c: Likewise.
16432 2013-09-24 Alan Modra <amodra@gmail.com>
16434 PR middle-end/57134
16435 PR middle-end/57586
16436 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16437 for output operands that disallow regs. Don't use EXPAND_WRITE on
16440 2013-09-24 Richard Biener <rguenther@suse.de>
16442 PR middle-end/58513
16443 * tree.c (reference_alias_ptr_type): Move ...
16444 * alias.c (reference_alias_ptr_type): ... here and implement
16445 in terms of the new reference_alias_ptr_type_1.
16446 (ref_all_alias_ptr_type_p): New helper.
16447 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16448 use ref_all_alias_ptr_type_p.
16449 (get_deref_alias_set): Add flag_strict_aliasing check here.
16450 (reference_alias_ptr_type_1): New function, split out from ...
16451 (get_alias_set): ... here.
16452 (alias_ptr_types_compatible_p): New function.
16453 * alias.h (reference_alias_ptr_type): Declare.
16454 (alias_ptr_types_compatible_p): Likewise.
16455 * tree.h (reference_alias_ptr_type): Remove.
16456 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16457 to compare MEM_REF alias types.
16459 2013-09-24 Richard Biener <rguenther@suse.de>
16461 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16463 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16465 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16466 reload helper function arrays into a single array reg_addr.
16467 (reload_fpr_gpr): Likewise.
16468 (reload_gpr_vsx): Likewise.
16469 (reload_vsx_gpr): Likewise.
16470 (struct rs6000_reg_addr): Likewise.
16471 (reg_addr): Likewise.
16472 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16473 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16474 (rs6000_init_hard_regno_mode_ok): Likewise.
16475 (rs6000_secondary_reload_direct_move): Likewise.
16476 (rs6000_secondary_reload): Likewise.
16478 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16479 constraints: wu, ww, and wy. Repurpose wv constraint added during
16480 power8 changes. Put wg constraint in alphabetical order.
16482 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16483 for future work to add ISA 2.07 VSX single precision support.
16484 (-mvsx-scalar-double): Change default from -1 to 1, update
16485 documentation comment.
16486 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16487 (-mupper-regs-df): New debug switch to control whether DF values
16488 can go in the traditional Altivec registers.
16489 (-mupper-regs-sf): New debug switch to control whether SF values
16490 can go in the traditional Altivec registers.
16492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16493 and wy constraints.
16494 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16495 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16496 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16497 (rs6000_debug_legitimate_address_p): Print if we are running
16498 before, during, or after reload.
16499 (rs6000_secondary_reload): Add a comment.
16500 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16502 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16503 constraints. Update documentation string.
16504 (wd constraint): Likewise.
16505 (wf constraint): Likewise.
16506 (wg constraint): Likewise.
16507 (wn constraint): Likewise.
16508 (ws constraint): Likewise.
16509 (wt constraint): Likewise.
16510 (wx constraint): Likewise.
16511 (wz constraint): Likewise.
16512 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16514 (ww constraint): Likewise.
16515 (wy constraint): Likewise.
16516 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16517 in the previous submissions.
16518 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16520 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16522 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16523 (REG_BR_PROB): Say that the probability is stored in an int_list.
16524 * reg-notes.def: Update commentary to mention INT_LIST.
16525 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16526 (INT_LIST): New rtx.
16527 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16528 * rtlanal.c (int_reg_note_p): New function.
16529 (alloc_reg_note): Assert that the note does not have an int argument.
16530 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16531 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16532 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16533 rather than an INSN_LIST. Handle INT_LIST.
16534 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16535 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16536 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16537 Manipulate them as ints rather than rtxes.
16538 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16539 * regmove.c (copy_src_to_dest): Likewise.
16540 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16542 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16543 into the cases that need it.
16544 * config/arm/arm.c (arm_unwind_emit): Likewise.
16546 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16547 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16548 * loop-doloop.c (add_test, doloop_modify): Likewise.
16549 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16550 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16551 * predict.c (combine_predictions_for_insn): Likewise.
16552 * print-rtl.c (print_rtx): Handle INT_LIST.
16553 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16554 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16555 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16556 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16557 (ix86_split_fp_branch, predict_jump): Likewise.
16558 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16559 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16560 * config/spu/spu.c (ea_load_store_inline): Likewise.
16562 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16563 value of a REG_BR_PROB note.
16564 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16565 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16566 * emit-rtl.c (try_split): Likewise.
16567 * predict.c (br_prob_note_reliable_p): Likewise.
16568 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16569 * reorg.c (mostly_true_jump): Likewise.
16570 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16571 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16572 * config/i386/i386.c (ix86_print_operand): Likewise.
16573 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16574 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16575 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16576 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16577 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16578 * config/sparc/sparc.c (output_cbranch): Likewise.
16579 * config/spu/spu.c (get_branch_target): Likewise.
16580 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16581 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16583 2013-09-23 Jan Hubicka <jh@suse.cz>
16585 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16587 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16588 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16590 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16591 (gimple_fold_call): Dump inconsistent devirtualizations; add
16592 sanity check for type based devirtualizations.
16593 * ipa-prop.c: Include ipa-utils.h
16594 (ipa_intraprocedural_devirtualization): Add sanity check.
16595 (try_make_edge_direct_virtual_call): Likewise.
16597 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16599 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16600 assignment statements.
16602 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16604 * gimple-pretty-print.c (dump_ssaname_info): New function.
16605 (dump_gimple_phi): Call it.
16606 (pp_gimple_stmt_1): Likewise.
16607 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16608 (range_info_def): Declare.
16609 * tree-pretty-print.c (pp_double_int): New function.
16610 (dump_generic_node): Call it.
16611 * tree-pretty-print.h (pp_double_int): Declare.
16612 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16613 * tree-ssanames.h (range_info_def): New structure.
16614 (value_range_type): Move definition here.
16615 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16617 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16619 (set_range_info): New function.
16620 (get_range_info): Likewise.
16621 (duplicate_ssa_name_range_info): Likewise.
16622 (duplicate_ssa_name_fn): Check pointer type and call
16623 duplicate_ssa_name_range_info.
16624 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16625 * tree-vrp.c (value_range_type): Remove definition, now in
16627 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16628 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16629 (SSA_NAME_RANGE_INFO): New macro.
16631 2013-09-23 Richard Biener <rguenther@suse.de>
16633 PR tree-optimization/58464
16634 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16635 (phi_trans_add): Change to add conditionally on being not present.
16636 (phi_translate_1): Remove recursion detection here.
16637 (phi_translate): Pre-seed the cache with NULL to catch
16638 recursion here in a more generic way.
16639 (bitmap_find_leader): Adjust comment.
16640 (get_representative_for): Dump value-numbers.
16641 (create_expression_by_pieces): Likewise.
16642 (insert_into_preds_of_block): Likewise.
16644 2013-09-23 Christian Bruel <christian.bruel@st.com>
16647 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16648 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16650 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16653 2013-09-20 Renlin Li <renlin.li@arm.com>
16655 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16657 (aarch64_expand_epilogue): Likewise.
16658 (aarch64_legitimize_reload_address): Likewise.
16660 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16662 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16663 NULL_TREE before pushing them onto the vector. Likewise for labels.
16665 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16667 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16668 comparison operators when -fno-trapping-math is in effect.
16669 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16670 comparison operators in TFmode and assert that unsupported operators
16672 (ia64_print_operand): Likewise.
16674 2013-09-21 Jan Hubicka <jh@suse.cz>
16676 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16677 (sse_typeless_stores): Enable for core
16678 (sse_load0_by_pxor): Likewise.
16679 (four_jump_limit): Disable for core.
16680 (pad_returns): Likewise.
16681 (avoid_vector_decode): Likewise.
16682 (fuse_cmp_and_branch): Enable for cores.
16683 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16685 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16687 PR middle-end/56791
16688 * config/pa/pa.c (pa_option_override): Disable auto increment and
16689 decrement instructions until reload is completed.
16691 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16692 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16693 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16695 2013-09-20 DJ Delorie <dj@redhat.com>
16696 Nick Clifton <nickc@redhat.com>
16698 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16699 (need_to_save): Save bank 0 on interrupts.
16700 (characterize_address): Strip far address wrappers.
16701 (rl78_as_legitimate_address): Likewise.
16702 (transcode_memory_rtx): Likewise.
16703 (rl78_peep_movhi_p): Disable this peephole after devirt.
16704 (rl78_propogate_register_origins): Forget all origins when a
16706 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16707 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16709 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16710 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16711 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16713 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16715 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16717 * config/pa/pa.md: In "scc" insn patterns, change output template to
16718 handle const0_rtx in reg_or_0_operand operands.
16720 2013-09-20 Martin Husemann <martin@NetBSD.org>
16723 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16724 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16726 2013-09-20 Richard Biener <rguenther@suse.de>
16728 PR middle-end/58484
16729 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16730 remembering SSA name version and block index.
16731 (new_scev_info_str): Adjust.
16732 (hash_scev_info): Likewise. Also hash the block index.
16733 (eq_scev_info): Adjust.
16734 (find_var_scev_info): Likewise.
16735 (struct instantiate_cache_entry): Remove.
16736 (struct instantiate_cache_type): Use a htab to map name, block
16738 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16739 (get_instantiated_value_entry): Likewise.
16740 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16741 (instantiate_scev_name): Adjust.
16743 2013-09-20 Jeff Law <law@redhat.com>
16745 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16747 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16749 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16750 Call aarch64_simd_expand_args to update op[argc].
16752 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16754 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16757 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16759 * gengtype.c (file_rules): Added rule for *.cc files.
16760 (get_output_file_with_visibility): Give fatal message when no
16763 2013-09-20 Renlin Li <renlin.li@arm.com>
16765 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16766 (aarch64_expand_epilogue): Likewise.
16767 (aarch64_legitimize_reload_address): Likewise.
16769 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16771 PR middle-end/57748
16772 * expr.c (expand_assignment): Remove misalignp code path.
16774 2013-09-20 Marek Polacek <polacek@redhat.com>
16777 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16778 TYPE_PRECISION. Add asserts.
16780 2013-09-20 Richard Biener <rguenther@suse.de>
16782 PR tree-optimization/58453
16783 * tree-loop-distribution.c (distribute_loop): Apply the cost
16784 model for -ftree-loop-distribute-patterns, too.
16786 2013-09-20 Richard Biener <rguenther@suse.de>
16788 PR middle-end/58473
16789 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16790 make type comparison less strict.
16792 2013-09-20 Alan Modra <amodra@gmail.com>
16794 * configure: Regenerate.
16795 * aclocal.m4: Regenerate.
16797 2013-09-20 Marek Polacek <polacek@redhat.com>
16800 * doc/extend.texi: Document that attribute used is meant to be used
16801 on variables with static storage duration.
16803 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16805 PR tree-optimization/58472
16806 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16807 simd_lane_access set inv_p = false.
16808 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16809 the simduid magic VAR_DECL.
16811 2013-09-19 Jan Hubicka <jh@suse.cz>
16813 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16815 2013-09-17 Jeff Law <law@redhat.com>
16817 * tree-ssa-dom.c (record_temporary_equivalences): New function
16818 split out of dom_opt_dom_walker::after_dom_children.
16819 (dom_opt_dom_walker::thread_across_edge): Move common code
16820 in here from dom_opt_dom_walker::after_dom_children.
16821 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16823 2013-09-19 Jan Hubicka <jh@suse.cz>
16825 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16826 (TARGET_GENERIC): Use PROCESOR_GENERIC
16827 (enum processor_type): Unify generic32 and 64.
16828 * i386.md (cpu): Likewise.
16829 * x86-tune.def (use_leave): Enable for generic32.
16830 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16831 * athlon.md: Change generic64 to generic in all occurences.
16832 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16833 (ix86_target_macros_internal): Likewise.
16834 * driver-i386.c (host_detect_local_cpu): Likewise.
16835 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16837 (generic_memcpy, generic_memset, generic_cost): This one.
16838 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16839 (m_GENERIC32, m_GENERIC64): Remove.
16840 (m_GENERIC): Turn into one flag.
16841 (processor_target): Unify generic tunnings.
16842 (ix86_option_override_internal): Replace generic32/64 by generic.
16843 (ix86_issue_rate): Likewise.
16844 (ix86_adjust_cost): Likewise.
16846 2013-09-19 Jan Hubicka <jh@suse.cz>
16848 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16849 of speculative flag.
16851 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16853 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16854 GOMP_sections_start, even if !exit_reachable.
16856 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16858 * lra-constraints.c (need_for_all_save_p): Use macro
16859 HARD_REGNO_CALL_PART_CLOBBERED.
16860 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16861 set up pseudo conflict hard regs.
16863 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16866 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16869 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16871 PR rtl-optimization/58438
16872 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16873 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16874 from previous subpasses.
16876 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16878 * arm.c (arm_get_frame_offsets): Validate architecture supports
16879 LDRD/STRD before accepting the tuning preference.
16880 (arm_expand_prologue): Likewise.
16881 (arm_expand_epilogue): Likewise.
16883 2013-09-18 Richard Biener <rguenther@suse.de>
16885 PR tree-optimization/58417
16886 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16887 have chrecs with symbols defined in the loop as operands.
16888 (chrec_fold_multiply): Likewise.
16889 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16890 parameters before folding binary operations.
16891 (struct instantiate_cache_entry_hasher): Remove.
16892 (struct instantiate_cache_type): Use a pointer-map.
16893 (instantiate_cache_type::instantiate_cache_type): New function.
16894 (instantiate_cache_type::get): Likewise.
16895 (instantiate_cache_type::set): Likewise.
16896 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16897 (get_instantiated_value_entry): Likewise.
16898 (global_cache): New global.
16899 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16900 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16901 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16902 (instantiate_scev_name): Adjust.
16903 (instantiate_scev): Construct global instead of local cache.
16904 (resolve_mixers): Likewise.
16906 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16907 Paolo Carlini <paolo.carlini@oracle.com>
16910 * doc/implement-cxx.texi: Fix references to the C++ standards.
16912 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16914 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16915 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16916 simd_lane_access drs, update also DR_ALIGNED_TO.
16918 2013-09-18 Marek Polacek <polacek@redhat.com>
16921 * doc/extend.texi: Document no_sanitize_undefined attribute.
16922 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16923 no_sanitize_undefined attribute.
16925 2013-09-18 Nick Clifton <nickc@redhat.com>
16927 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16928 (ASM_DECLARE_FUNCTION_NAME): Define.
16930 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16932 * compare-elim.c (find_comparison_dom_walker): New class
16933 (find_comparisons_in_bb): Rename to
16934 find_comparison_dom_walker::before_dom_children
16935 (find_comparisons): Adjust
16936 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16938 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16939 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16940 (init_walk_dominator_tree): Remove declaration.
16941 (fini_walk_dominator_tree): Remove declaration.
16942 * fwprop.c (single_def_use_dom_walker): New class
16943 (single_def_use_enter_block): Convert to
16944 single_def_use_dom_walker::before_dom_children.
16945 (single_def_use_leave_block): Convert to
16946 single_def_use_dom_walker::after_dom_children.
16947 (build_single_def_use_links): Adjust.
16948 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16950 (find_candidates_in_block): Convert to
16951 find_candidates_dom_walker::before_dom_children.
16952 (execute_strength_reduction): Adjust.
16953 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16954 (sese_dom_walker): New class.
16955 (sese_dom_walker::sese_dom_walker): New constructor.
16956 (sese_dom_walker::~sese_dom_walker): New destructor.
16957 (build_sese_conditions_before): Convert to
16958 sese_dom_walker::before_dom_children.
16959 (build_sese_conditions_after): Convert to
16960 sese_dom_walker::after_dom_children.
16961 (build_poly_scop): Adjust
16962 * tree-into-ssa.c (rewrite_dom_walker): New class
16963 (rewrite_enter_block): Convert to
16964 rewrite_dom_walker::before_dom_children.
16965 (rewrite_leave_block): Convert to
16966 rewrite_dom_walker::after_dom_children.
16967 (rewrite_update_dom_walker): New class.
16968 (rewrite_update_enter_block): Convert to
16969 rewrite_update_dom_walker::before_dom_children.
16970 (rewrite_update_leave_block): Convert to
16971 rewrite_update_dom_walker::after_dom_children.
16972 (rewrite_blocks, rewrite_into_ssa): Adjust.
16973 (mark_def_dom_walker): New class.
16974 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16975 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16976 (mark_def_sites_blocks): Convert to
16977 mark_def_dom_walker::before_dom_children.
16978 (mark_def_site_blocks): Remove.
16979 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16980 (tree_ssa_dominator_optimize): Adjust.
16981 (dom_thread_across_edge): Convert to method
16982 dom_opt_dom_walker::thread_across_edge.
16983 (dom_opt_enter_block): Convert to member function
16984 dom_opt_dom_walker::before_dom_children.
16985 (dom_opt_leave_block): Convert to member function
16986 dom_opt_dom_walker::after_dom_children.
16987 * tree-ssa-dse.c (dse_dom_walker): New class.
16988 (dse_enter_block): Convert to member function
16989 dse_dom_walker::before_dom_children.
16990 (tree_ssa_dse): Adjust.
16991 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16992 (determine_invariantness_stmt): Convert to method
16993 invariantness_dom_walker::before_dom_children.
16994 (determine_invariantness): Remove
16995 (move_computations_dom_walker): New class.
16996 (move_computations_stmt): Convert to method
16997 move_computations_dom_walker::before_dom_children.
16998 (move_computations, tree_ssa_lim): Adjust.
16999 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17000 (nt_init_block): Convert to method
17001 notrappping_dom_walker::before_dom_children.
17002 (nt_fini_block): Convert to method
17003 method nontrapping_dom_walker::after_dom_children.
17004 (get_non_trapping): Adjust.
17005 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17006 (eliminate_bb): Convert to method
17007 eliminate_dom_walker::before_dom_children.
17008 (eliminate_leave_block): Convert to method
17009 eliminate_dom_walker::after_dom_children.
17010 (eliminate): Adjust.
17011 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17012 (strlen_enter_block): Convert to method
17013 strlen_dom_walker::before_dom_children.
17014 (strlen_leave_block): Convert to method
17015 method strlen_dom_walker::after_dom_children.
17016 (tree_ssa_strlen): Adjust.
17017 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17018 (tree_ssa_uncprop): Adjust.
17019 (uncprop_leave_block): Convert to method
17020 uncprop_dom_walker::after_dom_children.
17021 (uncprop_leave_block): Convert to method
17022 uncprop_dom_walker::before_dom_children.
17024 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17026 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17027 branch in same basic block. Check both src and dest of the move insn.
17029 2013-09-17 Nick Clifton <nickc@redhat.com>
17031 * config/rl78/rl78-real.md (bf): New pattern.
17033 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17034 (rl78_print_operand): Do not put a # before a %B.
17035 * config/rl78/rl78.opt: Tweak doc strings.
17037 2013-09-17 DJ Delorie <dj@redhat.com>
17039 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17040 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17041 (rl78_option_override): Likewise, if -mallregs.
17042 (is_virtual_register): Likewise.
17043 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17044 (REGNO_OK_FOR_BASE_P): Likewise.
17045 * config/rl78/rl78.opt (-mallregs): New.
17047 2013-09-17 Nick Clifton <nickc@redhat.com>
17049 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17050 For interrupt functions: save all call clobbered registers if the
17051 interrupt handler is not a leaf function.
17052 (rl78_expand_prologue): Always recompute the frame information.
17053 For interrupt functions: only select bank 0 if one of the bank 0
17054 registers is going to be psuhed.
17056 2013-09-17 DJ Delorie <dj@redhat.com>
17058 * config/rl78/constraints.md: For each W* constraint, rename to C*
17059 and create a W* constraint that checks for an optional ES: prefix
17061 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17062 (es_addr): New. Used to wrap far addresses.
17063 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17064 (rl78_es_base): New.
17065 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17066 wrapped far addresses.
17067 (rl78_print_operand_1): Unwrap far addresses before processing.
17068 (rl78_lo16): Wrap far addresses in unspecs.
17069 (rl78_es_addr): New.
17070 (rl78_es_base): New.
17071 (insn_ok_now): Check for not-yet-wrapped far addresses.
17072 (transcode_memory_rtx): Properly re-wrap far addresses.
17074 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17076 * config/sparc/t-rtems: Add leon3 multilibs.
17078 2013-09-17 Cong Hou <congh@google.com>
17080 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17081 when checking the dot production pattern. The type of rhs operand
17082 of multiply is now checked correctly.
17084 2013-09-17 Jeff Law <law@redhat.com>
17086 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17087 edge implied equivalences into successor phis.
17088 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17089 here from tree-ssa-threadedge.c.
17090 (mark_threaded_blocks): When threading through a joiner, if both
17091 successors of the joiner's clone reach the same block, verify the
17092 PHI arguments are equal. If not, cancel the jump threading request.
17093 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17094 tree-ssa-threadupdate.c
17095 (thread_across_edge): Don't check PHI argument equality when
17096 threading through joiner block here.
17098 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17100 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17101 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17102 (warn_uninit, warn_uninitialized_vars,
17103 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17104 Move to tree-ssa-uninit.c.
17105 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17106 (has_undefined_value_p): New. Pass dependant parts of
17107 ssa_undefined_value_p.
17108 (uninit_undefined_value_p): Use has_undefined_value_p.
17109 (warn_uninit, warn_uninitialized_vars,
17110 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17111 Move from tree-ssa.c.
17112 * tree-ssa.h: Adjust prototypes.
17114 2013-09-17 Jan Hubicka <jh@suse.cz>
17116 PR middle-end/58332
17117 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17118 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17119 FUNCTION_NOT_OPTIMIZED.
17120 * ipa-inline-analysis.c (compute_inline_parameters): Function
17121 not optimized is not inlinable unless it is alwaysinline.
17122 (inline_analyze_function): Force calls in not optimized
17123 function not inlinable.
17125 2013-09-17 Jan Hubicka <jh@suse.cz>
17127 PR middle-end/58329
17128 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17130 * ipa.c (function_and_variable_visibility): Likewise.
17131 * ipa-profile.c (ipa_profile): Likewise.
17133 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17136 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17137 attribute, and don't inline the resolver in this case.
17139 2013-09-17 Teresa Johnson <tejohnson@google.com>
17141 * coverage.c (get_coverage_counts): Add missing newline.
17143 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17145 PR tree-optimization/58088
17146 * fold-const.c (mask_with_trailing_zeros): New function.
17147 (fold_binary_loc): Make sure we don't recurse infinitely
17148 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17149 Use mask_with_trailing_zeros where appropriate.
17151 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17153 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17154 of 'prev' var to get better distance estimation.
17156 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17158 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17159 * tree-inline.c (is_parameter_of): New predicate.
17160 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17161 a parameter has been remapped.
17162 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17163 (optimize_inline_calls): Initialize transform_parameter.
17164 (copy_gimple_seq_and_replace_locals): Likewise.
17165 (tree_function_versioning): Likewise.
17166 (maybe_inline_call_in_expr): Likewise.
17168 2013-09-17 Nick Clifton <nickc@redhat.com>
17170 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17171 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17172 interrupt handlers.
17173 (is_attr_func): New function.
17174 (msp430_is_interrupt_func): New function.
17175 (is_naked_func): New function.
17176 (is_reentrant_func): New function.
17177 (is_critical_func): New function.
17178 (msp430_start_function): Add annotations for function attributes.
17179 (msp430_attr): New function.
17180 (msp430_attribute_table): New.
17181 (msp430_function_section): New function.
17182 (TARGET_ASM_FUNCTION_SECTION): Define.
17183 (msp430_builtin): New enum.
17184 (msp430_init_builtins): New function.
17185 (msp430_builtin_devl): New function.
17186 (msp430_expand_builtin): New function.
17187 (TARGET_INIT_BUILTINS): Define.
17188 (TARGET_EXPAND_BUILTINS): Define.
17189 (TARGET_BUILTIN_DECL): Define.
17190 (msp430_expand_prologue): Add support for naked, interrupt,
17191 critical and reentrant functions.
17192 (msp430_expand_epilogue): Likewise.
17193 (msp430_print_operand): Handle 'O' character.
17194 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17196 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17197 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17198 (pushm): Use a 'n' rather than an 'i' constraint.
17199 (msp_return): Add generation of the interrupt return instruction.
17200 (disable_interrupts): New pattern.
17201 (enable_interrupts): New pattern.
17202 (push_intr_state): New pattern.
17203 (pop_intr_state): New pattern.
17204 (bic_SR): New pattern.
17205 (bis_SR): New pattern.
17206 * doc/extend.texi: Document MSP430 function attributes and builtin
17209 2013-09-17 Richard Biener <rguenther@suse.de>
17211 PR tree-optimization/58432
17212 * tree-loop-distribution.c (tree_loop_distribution): Also
17213 scan PHIs for outside loop uses and seed a partition from them.
17215 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17217 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17218 (restructure_reference): Call backtrace_base_for_ref.
17220 2013-09-17 Alan Modra <amodra@gmail.com>
17223 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17226 2013-09-16 DJ Delorie <dj@redhat.com>
17228 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17229 vregs location for RL78/G10.
17230 (rl78_expand_prologue): Avoid SEL on G10.
17231 (rl78_expand_epilogue): Likewise.
17232 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17233 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17234 __RL78_G10__ when appropriate.
17235 (ASM_SPEC): Pass -mg10 along to the assembler.
17236 * config/rl78/rl78.md (sel_rb): Disable for G10.
17237 * config/rl78/rl78.opt: Add -mg10 option.
17238 * config/rl78/t-rl78: Add -mg10 multilib.
17240 2013-09-16 Xinliang David Li <davidxl@google.com>
17242 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17243 * omp-low.c (omp_max_vf): Ditto.
17244 (expand_omp_simd): Ditto.
17245 * tree-vectorizer.c (vectorize_loops): Ditto.
17246 (gate_vect_slp): Ditto.
17247 (gate_increase_alignment): Ditto.
17248 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17249 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17250 (gate_tree_vectorize): Name change.
17251 (tree_vectorize): Ditto.
17252 (pass_vectorize::gate): Call new function.
17253 (pass_vectorize::execute): Ditto.
17254 * opts.c: O3 default setting change.
17255 (finish_options): Check new flag.
17256 * doc/invoke.texi: Document new flags.
17257 * common.opt: New flags.
17259 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17261 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17262 (Condition Code): Don't reference it.
17263 * doc/tm.texi: Regenerate.
17265 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17267 PR middle-end/58418
17268 * lra-constraints.c (undo_optional_reloads): Consider all optional
17269 reload even if it did not get a hard reg.
17271 2013-09-16 Teresa Johnson <tejohnson@google.com>
17273 * dumpfile.c (dump_loc): Remove newline emission.
17274 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17275 emission to dump_printf_loc calls where missing.
17276 (vect_mark_for_runtime_alias_test): Ditto.
17277 (vect_analyze_data_ref_dependence): Ditto.
17278 (vect_analyze_data_ref_dependences): Ditto.
17279 (vect_slp_analyze_data_ref_dependence): Ditto.
17280 (vect_slp_analyze_data_ref_dependences): Ditto.
17281 (vect_compute_data_ref_alignment): Ditto.
17282 (vect_update_misalignment_for_peel): Ditto.
17283 (vect_verify_datarefs_alignment): Ditto.
17284 (vector_alignment_reachable_p): Ditto.
17285 (vect_get_data_access_cost): Ditto.
17286 (vect_enhance_data_refs_alignment): Ditto.
17287 (vect_find_same_alignment_drs): Ditto.
17288 (vect_analyze_data_refs_alignment): Ditto.
17289 (vect_analyze_group_access): Ditto.
17290 (vect_analyze_data_ref_access): Ditto.
17291 (vect_analyze_data_ref_accesses): Ditto.
17292 (vect_prune_runtime_alias_test_list): Ditto.
17293 (vect_analyze_data_refs): Ditto.
17294 (vect_create_addr_base_for_vector_ref): Ditto.
17295 (vect_create_data_ref_ptr): Ditto.
17296 (vect_grouped_store_supported): Ditto.
17297 (vect_grouped_load_supported): Ditto.
17298 * value-prof.c (check_counter): Ditto.
17299 (check_ic_target): Ditto.
17300 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17301 (vect_recog_widen_mult_pattern): Ditto.
17302 (vect_recog_widen_sum_pattern): Ditto.
17303 (vect_recog_over_widening_pattern): Ditto.
17304 (vect_recog_widen_shift_pattern): Ditto.
17305 (vect_recog_rotate_pattern): Ditto.
17306 (vect_recog_vector_vector_shift_pattern): Ditto.
17307 (vect_recog_divmod_pattern): Ditto.
17308 (vect_recog_mixed_size_cond_pattern): Ditto.
17309 (vect_recog_bool_pattern): Ditto.
17310 (vect_pattern_recog_1): Ditto.
17311 (vect_pattern_recog): Ditto.
17312 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17313 (vect_is_simple_iv_evolution): Ditto.
17314 (vect_analyze_scalar_cycles_1): Ditto.
17315 (vect_get_loop_niters): Ditto.
17316 (vect_analyze_loop_1): Ditto.
17317 (vect_analyze_loop_form): Ditto.
17318 (vect_analyze_loop_operations): Ditto.
17319 (vect_analyze_loop_2): Ditto.
17320 (vect_analyze_loop): Ditto.
17321 (report_vect_op): Ditto.
17322 (vect_is_slp_reduction): Ditto.
17323 (vect_is_simple_reduction_1): Ditto.
17324 (vect_get_known_peeling_cost): Ditto.
17325 (vect_estimate_min_profitable_iters): Ditto.
17326 (vect_model_reduction_cost): Ditto.
17327 (vect_model_induction_cost): Ditto.
17328 (get_initial_def_for_induction): Ditto.
17329 (vect_create_epilog_for_reduction): Ditto.
17330 (vectorizable_reduction): Ditto.
17331 (vectorizable_induction): Ditto.
17332 (vectorizable_live_operation): Ditto.
17333 (vect_loop_kill_debug_uses): Ditto.
17334 (vect_transform_loop): Ditto.
17335 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17336 (vect_stmt_relevant_p): Ditto.
17337 (process_use): Ditto.
17338 (vect_mark_stmts_to_be_vectorized): Ditto.
17339 (vect_model_simple_cost): Ditto.
17340 (vect_model_promotion_demotion_cost): Ditto.
17341 (vect_model_store_cost): Ditto.
17342 (vect_get_store_cost): Ditto.
17343 (vect_model_load_cost): Ditto.
17344 (vect_get_load_cost): Ditto.
17345 (vect_init_vector_1): Ditto.
17346 (vect_get_vec_def_for_operand): Ditto.
17347 (vect_finish_stmt_generation): Ditto.
17348 (vectorizable_call): Ditto.
17349 (vectorizable_conversion): Ditto.
17350 (vectorizable_assignment): Ditto.
17351 (vectorizable_shift): Ditto.
17352 (vectorizable_operation): Ditto.
17353 (vectorizable_store): Ditto.
17354 (vectorizable_load): Ditto.
17355 (vectorizable_condition): Ditto.
17356 (vect_analyze_stmt): Ditto.
17357 (vect_transform_stmt): Ditto.
17358 (vect_is_simple_use): Ditto.
17359 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17360 (vect_can_advance_ivs_p): Ditto.
17361 (vect_update_ivs_after_vectorizer): Ditto.
17362 (vect_do_peeling_for_loop_bound): Ditto.
17363 (vect_gen_niters_for_prolog_loop): Ditto.
17364 (vect_update_inits_of_drs): Ditto.
17365 (vect_create_cond_for_alias_checks): Ditto.
17366 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17367 (vect_build_slp_tree_1): Ditto.
17368 (vect_supported_load_permutation_p): Ditto.
17369 (vect_analyze_slp_instance): Ditto.
17370 (vect_analyze_slp): Ditto.
17371 (vect_make_slp_decision): Ditto.
17372 (vect_detect_hybrid_slp): Ditto.
17373 (vect_bb_vectorization_profitable_p): Ditto.
17374 (vect_slp_analyze_bb_1): Ditto.
17375 (vect_update_slp_costs_according_to_vf): Ditto.
17376 (vect_get_mask_element): Ditto.
17377 (vect_transform_slp_perm_load): Ditto.
17378 (vect_schedule_slp_instance): Ditto.
17379 (vect_schedule_slp): Ditto.
17380 (vect_slp_transform_bb): Ditto.
17381 * profile.c (read_profile_edge_counts): Ditto.
17382 (compute_branch_probabilities): Ditto.
17383 * coverage.c (get_coverage_counts): Ditto.
17385 2013-09-16 Diego Novillo <dnovillo@google.com>
17387 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17389 2013-09-16 Jan Hubicka <jh@suse.cz>
17391 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17392 abstract functions; for static functions check the presence of body.
17394 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17396 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17397 * config/aarch64/aarch64-simd.md
17398 (aarch64_mla_elt<mode>): New.
17399 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17400 (aarch64_mls_elt<mode>): Likewise.
17401 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17402 (aarch64_fma4_elt<mode>): Likewise.
17403 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17404 (aarch64_fma4_elt_to_128v2df): Likewise.
17405 (aarch64_fma4_elt_to_64df): Likewise.
17406 (fnma<mode>4): Likewise.
17407 (aarch64_fnma4_elt<mode>): Likewise.
17408 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17409 (aarch64_fnma4_elt_to_128v2df): Likewise.
17410 (aarch64_fnma4_elt_to_64df): Likewise.
17411 * config/aarch64/iterators.md (VDQSF): New.
17412 * config/aarch64/arm_neon.h
17413 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17414 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17416 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17418 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17419 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17420 (aarch64_mul3_elt_to_128df): Likewise.
17421 (aarch64_mul3_elt_to_64v2df): Likewise.
17422 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17424 (VMUL_CHANGE_NLANES) Likewise.
17427 * config/aarch64/arm_neon.h
17428 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17430 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17432 * config/aarch64/arm_neon.h
17433 (vcvtx_high_f32_f64): Fix parameters.
17435 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17436 Uros Bizjak <ubizjak@gmail.com>
17438 * config/alpha.c: Include tree-ssanames.h.
17440 2013-09-16 Richard Biener <rguenther@suse.de>
17442 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17443 (dot_rdg_1): Handle control_dd.
17444 (create_edge_for_control_dependence): New function.
17445 (create_rdg_edges): Add control dependences if asked for.
17446 (build_rdg): Likewise.
17447 (generate_loops_for_partition): If there are not necessary
17448 control stmts remove all their dependencies.
17449 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17450 (distribute_loop): Pass on control dependences.
17451 (tree_loop_distribution): Compute control dependences and remove
17452 restriction on number of loop nodes.
17454 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17456 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17457 for internal calls.
17459 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17461 * cse.c (try_const_anchors): Punt on CC modes.
17463 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17465 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17467 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17470 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17471 calls to word_mode.
17473 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17476 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17478 (darwin_objc1_section): Likewise.
17479 (darwin_file_end): Emit Image Info section when required.
17481 2013-09-14 Jan Hubicka <jh@suse.cz>
17483 * tree-into-ssa.c (gate_into_ssa): New.
17484 (pass_data_build_ssa): Use it.
17485 * cgraph.h (expand_thunk): Update prototype.
17486 * cgraphunit.c (analyze_function): Expand thunks early.
17487 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17488 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17489 set lowered flag; do not add new function.
17490 (assemble_thunks_and_aliases): Update.
17491 * tree-ssa.c (gate_init_datastructures): New gate.
17492 (pass_data_init_datastructures): Use it.
17494 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17497 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17498 xmm register set described in the psABI.
17500 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17502 * dwarf2out.c (should_emit_struct_debug): Add check
17503 for type_decl variable is not NULL.
17505 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17507 * config.gcc: Use new winnt-c.c target hooks
17508 * config/t-winnt: New file
17509 * config/winnt-c.c: New file
17510 * doc/tm.texi.in: Document new hook
17511 * doc/tm.texi: Regenerated
17513 2013-09-13 Jan Hubicka <jh@suse.cz>
17515 PR middle-end/58094
17516 * ipa-inline.c (check_callers): New function.
17517 (check_caller_edge): Remove.
17518 (want_inline_function_to_all_callers_p): Also permit alises that are
17520 (inline_to_all_callers): Terminate the walk when devirtualization
17521 introduce new calls.
17523 2013-09-13 Jan Hubicka <jh@suse.cz>
17525 * ipa-inline-analysis.c (struct growth_data): Add node.
17526 (do_estimate_growth_1): Fix detection of recursion.
17528 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17530 PR tree-optimization/58392
17531 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17532 to avoid shadowing of outer loop variable. If
17533 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17534 replace_by_duplicate_decl simduid of loops that have it set and
17535 set dest_cfun->has_simduid_loops and/or
17536 dest_cfun->has_force_vect_loops.
17537 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17538 instead of maybe_lookup_decl.
17539 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17540 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17541 call. Copy over force_vect and copy and remap simduid. Set
17542 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17543 (copy_cfg_body): Remove blocks_to_copy argument. Use
17544 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17545 caller. Don't set cfun->has_simduid_loops and/or
17546 cfun->has_force_vect_loops here.
17547 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17549 (expand_call_inline, tree_function_versioning): Adjust copy_body
17552 2013-09-13 Martin Jambor <mjambor@suse.cz>
17555 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17556 the assert if the edge was a speculative one.
17558 2013-09-13 Richard Biener <rguenther@suse.de>
17560 * tree-data-ref.h (known_dependences_p): Move here ...
17561 * tree-loop-distribution.c (known_dependences_p): ... from here.
17562 (dump_rdg_component, debug_rdg_component): Remove.
17563 (dump_rdg): Adjust.
17564 (generate_loops_for_partition): Use gimple_uid instead of
17565 relying on matching stmt visit order.
17566 (rdg_build_partitions): Take starting stmt vector.
17567 (ldist_gen): Merge into ...
17568 (distribute_loop): ... this function. Do not compute starting
17570 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17572 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17574 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17575 Set type attribute correctly. Set predicable_short_it attribute.
17576 (cmpsi_shiftsi): Remove %? from output template.
17578 2013-09-13 Richard Biener <rguenther@suse.de>
17580 * tree-loop-distribution.c (struct rdg_component,
17581 rdg_defs_used_in_other_loops_p, free_rdg_components,
17582 rdg_build_components): Remove.
17583 (stmts_from_loop): Do not record virtual PHIs.
17584 (generate_loops_for_partition): Skip virtual PHIs.
17585 (build_rdg_partition_for_component): Rename to ...
17586 (build_rdg_partition_for_vertex): ... this and adjust.
17587 (rdg_build_partitions): Take a vector of starting vertices
17588 instead of components. Remove unnecessary leftover handling.
17589 (ldist_gen): Do not build components or record other stores.
17590 (distribute_loop): Do not distribute loops containing stmts
17593 2013-09-13 Christian Bruel <christian.bruel@st.com>
17596 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17598 2013-09-13 Kai Tietz <ktietz@redhat.com>
17600 * config.gcc: Separate cases for mingw and cygwin targets,
17601 and add 64-bit cygwin target case.
17603 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17604 dll-export inline-functions.
17605 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17607 2013-09-13 Jeff Law <law@redhat.com>
17609 PR middle-end/58387
17611 2013-09-06 Jeff Law <law@redhat.com>
17613 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17614 edge implied equivalences into successor phis.
17616 2013-09-12 DJ Delorie <dj@redhat.com>
17618 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17621 2013-09-12 Brooks Moses <bmoses@google.com>
17624 * Makefile.in: Do not install driver binaries in $(target)/bin.
17626 2013-09-12 DJ Delorie <dj@redhat.com>
17628 * config/rl78/rl78.opt (mrelax): New.
17629 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17630 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17632 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17634 (rl78_expand_epilogue): Likewise.
17636 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17638 PR middle-end/58335
17639 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17640 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17641 pointer elimination with using remove_reg_equal_offset_note.
17643 2013-09-12 DJ Delorie <dj@redhat.com>
17645 * config/msp430/: New port.
17646 * config.gcc (msp430): Added.
17647 * doc/invoke.texi: Document MSP430 options.
17648 * doc/install.texi: Document msp430-elf
17649 * doc/md.texi: Document msp430-elf
17650 * doc/contrib.texi: Document msp430-elf
17652 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17655 2013-09-12 Martin Jambor <mjambor@suse.cz>
17658 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17659 reference descriptor is NULL.
17660 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17663 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17665 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17666 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17667 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17668 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17669 make_temp_ssa_name): move to tree-ssanames.h
17670 * tree-ssa-alias.h: Move prototype.
17671 * tree-ssa.h: Include tree-ssanames.h.
17672 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17673 * tree-ssanames.h: New. Move items from tree-flow*.h
17674 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17676 2013-09-12 Richard Biener <rguenther@suse.de>
17678 PR tree-optimization/58404
17679 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17680 propagate non-invariant addresses into dereferences wrapped
17681 in component references.
17683 2013-09-12 Richard Biener <rguenther@suse.de>
17685 PR tree-optimization/58402
17686 * passes.def: Move pass_late_warn_uninitialized later.
17688 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17690 * tree-ssa.h: New. Move content from tree-flow.h and
17691 tree-flow-inline.h.
17692 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17693 Move prototypes belonging to tree-ssa.c.
17694 * tree-flow-inline.h (redirect_edge_var_map_def,
17695 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17697 * gimple.h: Adjust prototypes.
17698 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17700 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17701 * tree.h: Move prototype to tree-ssa.h.
17702 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17703 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17704 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17705 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17706 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17707 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17708 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17709 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17710 graphite-blocking.c, graphite-clast-to-gimple.c,
17711 graphite-dependences.c, graphite-interchange.c,
17712 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17713 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17714 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17715 ipa-reference.c, ipa-split.c, ipa-utils.c,
17716 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17717 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17718 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17719 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17720 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17721 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17722 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17723 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17724 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17725 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17726 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17727 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17728 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17729 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17730 value-prof.c, var-tracking.c,
17731 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17733 2013-09-12 Richard Biener <rguenther@suse.de>
17735 PR tree-optimization/58396
17736 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17737 (build_rdg): Take a loop-nest parameter, fix memleaks.
17738 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17740 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17742 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17745 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17747 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17748 The FMA instruction names should have a 'v' prefix.
17750 2013-09-12 Richard Biener <rguenther@suse.de>
17752 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17753 (dot_rdg): Use popen instead of system in optional code.
17754 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17755 (already_processed_vertex_p): Adjust.
17756 (has_anti_or_output_dependence, predecessor_has_mem_write,
17757 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17758 rdg_flag_uses): Remove.
17759 (rdg_flag_vertex): Simplify.
17760 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17762 (build_rdg_partition_for_component): Process the first vertex
17763 of a component only.
17764 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17766 2013-09-12 Alan Modra <amodra@gmail.com>
17768 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17770 2013-09-11 DJ Delorie <dj@redhat.com>
17771 Nick Clifton <nickc@redhat.com>
17773 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17774 (rl78_stack_based_mem): New.
17775 * config/rl78/constraints.md (Iv08): New.
17784 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17786 (movsi): Change from expand to insn-and-split.
17787 (ashrsi3): Clobber AX.
17791 * config/rl78/rl78.md (CC_REG): Fix.
17792 (addsi3): Allow memory and immediate operands.
17793 (addsi3_internal): Split into...
17794 (addsi3_internal_virt): ...new, and ...
17795 (addsi3_internal_real): ...new.
17797 (subsi3_internal_virt): New.
17798 (subsi3_internal_real): New.
17799 (mulsi3): Add memory operand.
17800 (mulsi3_rl78): Likewise.
17801 (mulsi3_g13): Likewise.
17802 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17803 (cbranchqi4_real): Add more constraint options.
17804 (cbranchhi4_real): Expand pattern.
17805 (cbranchhi4_real_signed): New.
17806 (cbranchhi4_real_inverted): New.
17807 (cbranchsi4_real_lt): New.
17808 (cbranchsi4_real_ge): New.
17809 (cbranchsi4_real_signed): New.
17810 (cbranchsi4_real): New.
17812 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17814 (lshrsi3_virt): Likewise.
17815 (ashlsi3_virt): Likewise.
17816 (cbranchqi4_virt_signed): New.
17817 (cbranchhi4_virt_signed): New.
17818 (cbranchsi4_virt): New.
17819 * config/rl78/rl78.c: Whitespace fixes throughout.
17820 (move_elim_pass): New.
17821 (pass_data_rl78_move_elim): New.
17822 (pass_rl78_move_elim): New.
17823 (make_pass_rl78_move_elim): New.
17824 (rl78_devirt_info): Run devirt earlier.
17825 (rl78_move_elim_info): New.
17826 (rl78_asm_file_start): Register it.
17827 (rl78_split_movsi): New.
17828 (rl78_as_legitimate_address): Allow virtual base registers when
17830 (rl78_addr_space_convert): Remove spurious debug stuff.
17831 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17832 (rl78_print_operand): More cases for not printing '#'.
17833 (rl78_expand_compare): Remove most of the logic.
17834 (content_memory): New.
17835 (clear_content_memory): New.
17836 (get_content_index): New.
17837 (get_content_name): New.
17838 (display_content_memory): New.
17839 (update_content): New.
17840 (record_content): New.
17841 (already_contains): New.
17842 (insn_ok_now): Re-recog insns with virtual registers.
17843 (add_postponed_content_update): New.
17844 (process_postponed_content_update): New.
17845 (gen_and_emit_move): New.
17846 (transcode_memory_rtx): Record new location content.
17847 Use gen_and_emit_move.
17848 (force_into_acc): New.
17849 (move_to_acc): Use gen_and_emit_move.
17850 (move_from_acc): Likewise.
17851 (move_acc_to_reg): Likewise.
17852 (move_to_x): Likewise.
17853 (move_to_hl): Likewise.
17854 (move_to_de): Likewise.
17855 (rl78_alloc_physical_registers_op1): Record location content.
17856 (has_constraint): New.
17857 (rl78_alloc_physical_registers_op2): Record location content.
17858 Optimize use of HL.
17859 (rl78_alloc_physical_registers_ro1): Likewise.
17860 (rl78_alloc_physical_registers_cmp): Likewise.
17861 (rl78_alloc_physical_registers_umul): Likewise.
17862 (rl78_alloc_address_registers_macax): New.
17863 (rl78_alloc_physical_registers): Initialize and set location
17864 content memory as needed.
17865 (rl78_reorg): Make sure split2 is called.
17866 (rl78_rtx_costs): New.
17868 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17870 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17871 for (not (neg ...)) and (neg (not ...)) cases.
17873 2013-09-11 Richard Biener <rguenther@suse.de>
17875 PR middle-end/58377
17876 * passes.def: Split critical edges before late uninit warning passes.
17877 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17879 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17881 PR tree-optimization/58385
17882 * fold-const.c (build_range_check): If both low and high are NULL,
17883 use omit_one_operand_loc to preserve exp side-effects.
17885 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17887 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17889 2013-09-11 Richard Biener <rguenther@suse.de>
17891 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17892 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17893 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17894 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17895 stmts_from_loop, known_dependences_p, build_empty_rdg,
17896 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17897 * tree-loop-distribution.c: ... here.
17898 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17899 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17900 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17901 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17902 * tree-loop-distribution.c: ... here.
17903 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17904 (struct partition_s): Add loops member.
17905 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17906 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17907 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17909 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17910 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17911 Sergey Lega <sergey.s.lega@intel.com>
17912 Anna Tikhonova <anna.tikhonova@intel.com>
17913 Ilya Tocar <ilya.tocar@intel.com>
17914 Andrey Turetskiy <andrey.turetskiy@intel.com>
17915 Ilya Verbin <ilya.verbin@intel.com>
17916 Kirill Yukhin <kirill.yukhin@intel.com>
17917 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17919 * config/i386/constraints.md (k): New.
17921 * config/i386/i386.c (const regclass_map): Add new mask registers.
17922 (dbx_register_map): Ditto.
17923 (dbx64_register_map): Ditto.
17924 (svr4_dbx_register_map): Ditto.
17925 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17927 (ix86_preferred_reload_class): Disable constants for mask registers.
17928 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17929 (ix86_hard_regno_mode_ok): Support new mask registers.
17930 (x86_order_regs_for_local_alloc): Ditto.
17931 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17932 (FIXED_REGISTERS): Add new mask registers.
17933 (CALL_USED_REGISTERS): Ditto.
17934 (REG_ALLOC_ORDER): Ditto.
17935 (VALID_MASK_REG_MODE): New.
17936 (FIRST_MASK_REG): Ditto.
17937 (LAST_MASK_REG): Ditto.
17938 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17939 (MAYBE_MASK_CLASS_P): New.
17940 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17941 (REG_CLASS_CONTENTS): Ditto.
17942 (MASK_REGNO_P): New.
17943 (ANY_MASK_REG_P): Ditto.
17944 (HI_REGISTER_NAMES): Add new mask registers.
17945 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17946 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17948 (attribute "type"): Add mskmov, msklog.
17949 (attribute "length_immediate"): Support them.
17950 (attribute "memory"): Ditto.
17951 (attribute "prefix_0f"): Ditto.
17952 (*movhi_internal): Support new mask registers.
17953 (*movqi_internal): Ditto.
17954 (define_split): Split out clobber pattern is a logic
17955 insn on mask registers.
17956 (*k<logic><mode>): New.
17957 (*andhi_1): Extend to support mask regs.
17958 (*andqi_1): Extend to support mask regs.
17959 (kandn<mode>): New.
17960 (define_split): Split and-not to and and not if operands
17962 (*<code><mode>_1): Separate HI mode to new pattern...
17963 (*<code>hi_1): This.
17964 (*<code>qi_1): Extend to support mask regs.
17965 (kxnor<mode>): New.
17966 (kortestzhi): Ditto.
17967 (kortestchi): Ditto.
17969 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17970 (*one_cmplhi2_1): ...Here, now with mask registers support.
17971 (*one_cmplqi2_1): Support new mask registers.
17972 (HI/QImode arithmetics splitter): Don't split if mask registers
17974 (HI/QImode not splitter): Ditto.
17975 * config/i386/predicated.md (mask_reg_operand): New.
17976 (general_reg_operand): Ditto.
17978 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17980 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17981 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17983 2013-09-10 Jeff Law <law@redhat.com>
17985 PR tree-optimization/58380
17986 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17987 of threading through a buried loop header.
17989 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17990 return value for single successor case.
17992 2013-09-10 Jan Hubicka <jh@suse.cz>
17994 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17996 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17999 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18000 support conditional execution.
18001 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18003 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18005 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18007 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18008 Check destination too to check move insn.
18009 (undo_optional_reloads): Add check that the original peudo did not
18010 changed its allocation and the optional reload was inherited on last
18011 inheritance pass. Break loop after deciding to keep optional reload.
18012 (lra_undo_inheritance): Add check that inherited pseudo still in
18015 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18017 * config/aarch64/aarch64.md (generic_sched): New.
18018 * config/aarch64/aarch64-generic.md (load): Make conditional
18019 on generic_sched attribute.
18020 (nonload): Likewise.
18022 2013-09-10 Jan Hubicka <jh@suse.cz>
18024 * lto-cgraph.c: Include ipa-utils.h.
18025 (compute_ltrans_boundary): Also add possible targets into the boundary.
18027 2013-09-10 Jan Hubicka <jh@suse.cz>
18029 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18030 VAR_DECL of vtable rather than full expression.
18032 2013-09-10 Jan Hubicka <jh@suse.cz>
18033 Paolo Carlini <paolo.carlini@oracle.com>
18035 * cgraphunit.c (analyze_functions): Save input_location, set it
18036 to UNKNOWN_LOCATION and restore it at the end.
18038 2013-09-10 Martin Jambor <mjambor@suse.cz>
18040 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18041 represented by a thunk.
18043 2013-09-10 Jeff Law <law@redhat.com>
18045 PR tree-optimization/58343
18046 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18047 jump threading requests through loop headers buried in the middle
18048 of a jump threading path.
18050 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18051 in return value/type.
18053 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18055 PR rtl-optimization/58365
18056 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18057 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18060 2013-09-10 Richard Biener <rguenther@suse.de>
18062 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18063 * tree-data-ref.c (create_rdg_vertices): Collect all data
18064 references, signal failure to the caller, use data-ref API.
18065 (build_rdg): Compute data references only once. Maintain lifetime
18066 of data references and data dependences from within RDG.
18067 (free_rdg): Free dependence relations.
18068 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18069 inventing extra dependences.
18070 (distribute_loop): Update for RDG API changes.
18072 2013-09-10 Kai Tietz <ktietz@redhat.com>
18074 * doc/invoke.texi (fms-extensions): Document changed
18075 behavior for ms-abi targets.
18076 * config/i386/i386.c (ix86_option_override_internal):
18077 Set default value of option -fms-extension for ms-abi targets.
18079 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18081 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18083 2013-09-10 Alan Modra <amodra@gmail.com>
18086 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18088 2013-09-10 Alan Modra <amodra@gmail.com>
18090 * config/rs6000/predicates.md (add_cint_operand): New.
18091 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18092 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18093 using add_cint_operand.
18094 (largetoc_high_plus_aix): Likewise.
18096 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18098 PR tree-optimization/58364
18099 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18100 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18101 the current range can't be an unconditional true or false.
18103 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18105 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18107 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18109 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18111 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18114 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18116 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18118 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18119 NO_REGS for immediate that can't be moved directly into FP_REGS.
18121 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18123 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18124 comparison with negated operand.
18125 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18128 2013-09-09 Richard Biener <rguenther@suse.de>
18130 PR middle-end/58326
18131 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18132 of a subloop record all its block as affecting loop-closed SSA form.
18134 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18136 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18137 of an rtx/bitpos pair.
18138 (store_fixed_bit_field): Update accordingly.
18140 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18142 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18144 * builtins.c (expand_errno_check): Likewise.
18145 * dwarf2cfi.c (init_return_column_size): Likewise.
18146 * except.c (sjlj_mark_call_sites): Likewise.
18147 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18148 * lra-constraints.c (emit_inc): Likewise.
18149 * ree.c (combine_set_extension): Likewise.
18150 * regmove.c (fixup_match_2): Likewise.
18151 * reload1.c (inc_for_reload): Likewise.
18153 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18155 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18156 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18157 Use gen_int_mode with the mode of the associated simplify_* call.
18158 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18159 * expmed.c (expand_shift_1): Likewise.
18160 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18161 * loop-iv.c (iv_number_of_iterations): Likewise.
18162 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18163 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18165 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18167 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18168 of the associated expand_* call.
18169 (asan_emit_stack_protection): Likewise.
18170 * builtins.c (round_trampoline_addr): Likewise.
18171 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18172 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18173 (emit_store_flag): Likewise.
18174 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18175 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18177 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18178 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18179 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18180 * modulo-sched.c (generate_prolog_epilog): Likewise.
18181 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18182 (expand_ctz, expand_ffs, expand_unop): Likewise.
18184 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18186 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18187 of the associated gen_rtx_* call.
18188 * caller-save.c (init_caller_save): Likewise.
18189 * combine.c (find_split_point, make_extraction): Likewise.
18190 (make_compound_operation): Likewise.
18191 * dwarf2out.c (mem_loc_descriptor): Likewise.
18192 * explow.c (plus_constant, probe_stack_range): Likewise.
18193 * expmed.c (expand_mult_const): Likewise.
18194 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18195 * reload1.c (init_reload): Likewise.
18196 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18197 * var-tracking.c (adjust_mems): Likewise.
18198 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18199 rather than gen_rtx_fmt_ee.
18201 2013-09-09 Jan Hubicka <jh@suse.cz>
18203 PR middle-end/58294
18204 * value-prof.c (gimple_ic): Copy also abnormal edges.
18206 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18208 * asan.c (asan_shadow_cst): Use gen_int_mode.
18210 2013-09-08 Jan Hubicka <jh@suse.cz>
18212 * ipa-profile.c: Add toplevel comment.
18213 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18214 (contains_hot_call_p): New function.
18215 (ipa_propagate_frequency): Set frequencies based on counts when
18217 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18218 profile; do not tamper with profile after inlining if it is read.
18220 2013-09-08 Jan Hubicka <jh@suse.cz>
18222 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18225 2013-09-08 Jan Hubicka <jh@suse.cz>
18227 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18228 summary generation.
18230 2013-09-08 Jeff Law <law@redhat.com>
18233 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18236 2013-09-08 Andi Kleen <ak@linux.intel.com>
18238 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18240 2013-09-08 Jan Hubicka <jh@suse.cz>
18242 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18244 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18246 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18247 for non-debug insns.
18248 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18249 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18250 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18253 2013-09-08 Jan Hubicka <jh@suse.cz>
18255 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18256 targets and devirtualize to BUILT_IN_UNREACHABLE.
18257 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18258 * ipa.c (walk_polymorphic_call_targets): New function.
18259 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18260 functions; use the new timevar.
18261 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18262 was removed from the program.
18263 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18264 not consider it in the walk when its vtable is dead.
18265 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18267 (devirt_variable_node_removal_hook): New function.
18268 (possible_polymorphic_call_targets): Also register
18269 devirt_variable_node_removal_hook.
18270 (ipa_devirt): Do not do non-speculative devirtualization.
18271 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18273 2013-09-08 Jan Hubicka <jh@suse.cz>
18275 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18276 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18277 varpool_remove_variable_insertion_hook): Declare.
18278 * varpool.c (varpool_node_hook_list): New structure.
18279 (first_varpool_node_removal_hook,
18280 first_varpool_variable_insertion_hook): New variables.
18281 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18282 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18283 varpool_remove_variable_insertion_hook,
18284 varpool_call_variable_insertion_hooks): New functions.
18285 (varpool_remove_node): Use it.
18287 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18290 * diagnostic.c (diagnostic_build_prefix): When s.file is
18291 "<built-in>" don't output line and column numbers.
18293 2013-09-06 Jan Hubicka <jh@suse.cz>
18295 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18296 * lto-streamer-out.c: Stream thunks, too.
18297 * lto-streamer-in.c (input_function): Pop cfun here
18298 (lto_read_body): Instead of here.
18300 2013-09-06 Caroline Tice <cmtice@google.com>
18302 * doc/install.texi: Add documentation for the --enable-vtable-verify
18303 and the --disable-libvtv configure options.
18305 2013-09-06 Jeff Law <law@redhat.com>
18307 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18308 edge implied equivalences into successor phis.
18310 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18312 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18314 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18316 * resource.c (mark_target_live_regs): Compute resources taking
18317 into account if a call is predicated or not.
18319 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18321 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18322 the compiler in the function names.
18324 2013-09-06 Jan Hubicka <jh@suse.cz>
18326 PR middle-end/58094
18327 * ipa-inline.c (has_caller_p): New function.
18328 (want_inline_function_to_all_callers_p): Use it.
18329 (sum_callers, inline_to_all_callers): Break out from ...
18330 (ipa_inline): ... here.
18332 2013-09-06 Jan Hubicka <jh@suse.cz>
18334 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18335 only when AVX is enabled.
18337 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18339 * config/aarch64/aarch64.md
18340 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18341 is fpsimd_<load/store>2.
18342 (load_pair<mode>): Likewise.
18343 (store_pair<mode>): Likewise.
18345 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18347 * config/arm/types.md (type): Add "mrs" type.
18348 * config/aarch64/aarch64.md
18349 (aarch64_load_tp_hard): Make type "mrs".
18350 * config/arm/arm.md
18351 (load_tp_hard): Make type "mrs".
18352 * config/arm/cortex-a15.md: Update with new attributes.
18353 * config/arm/cortex-a5.md: Update with new attributes.
18354 * config/arm/cortex-a53.md: Update with new attributes.
18355 * config/arm/cortex-a7.md: Update with new attributes.
18356 * config/arm/cortex-a8.md: Update with new attributes.
18357 * config/arm/cortex-a9.md: Update with new attributes.
18358 * config/arm/cortex-m4.md: Update with new attributes.
18359 * config/arm/cortex-r4.md: Update with new attributes.
18360 * config/arm/fa526.md: Update with new attributes.
18361 * config/arm/fa606te.md: Update with new attributes.
18362 * config/arm/fa626te.md: Update with new attributes.
18363 * config/arm/fa726te.md: Update with new attributes.
18365 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18367 * config/aarch64/aarch64.md
18368 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18369 (*movtf_aarch64): Likewise.
18370 * config/arm/arm.md
18371 (thumb1_movdi_insn): Use "multiple" for type where more than one
18372 instruction is used for a move.
18373 (*arm32_movhf): Likewise.
18374 (*thumb_movdf_insn): Likewise.
18376 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18378 * config/arm/types.md (type): Rename fcpys to fmov.
18379 * config/arm/vfp.md
18380 (*arm_movsi_vfp): Rename type fcpys as fmov.
18381 (*thumb2_movsi_vfp): Likewise
18382 (*movhf_vfp_neon): Likewise
18383 (*movhf_vfp): Likewise
18384 (*movsf_vfp): Likewise
18385 (*thumb2_movsf_vfp): Likewise
18386 (*movsfcc_vfp): Likewise
18387 (*thumb2_movsfcc_vfp): Likewise
18388 * config/aarch64/aarch64-simd.md
18389 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18390 * config/aarch64/aarch64.md
18391 (*movsi_aarch64): Replace type mov_reg with fmovs.
18392 (*movdi_aarch64): Likewise
18393 (*movsf_aarch64): Likewise
18394 (*movdf_aarch64): Likewise
18396 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18397 * config/arm/iwmmxt.md
18398 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18399 * config/arm/arm1020e.md: Update with new attributes.
18400 * config/arm/cortex-a15-neon.md: Update with new attributes.
18401 * config/arm/cortex-a5.md: Update with new attributes.
18402 * config/arm/cortex-a53.md: Update with new attributes.
18403 * config/arm/cortex-a7.md: Update with new attributes.
18404 * config/arm/cortex-a8-neon.md: Update with new attributes.
18405 * config/arm/cortex-a9.md: Update with new attributes.
18406 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18407 * config/arm/cortex-r4f.md: Update with new attributes.
18408 * config/arm/marvell-pj4.md: Update with new attributes.
18409 * config/arm/vfp11.md: Update with new attributes.
18411 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18413 * config/aarch64/aarch64.md
18414 (*madd<mode>): Fix type attribute.
18415 (*maddsi_uxtw): Likewise.
18416 (*msub<mode>): Likewise.
18417 (*msubsi_uxtw): Likewise.
18418 (<su_optab>maddsidi4): Likewise.
18419 (<su_optab>msubsidi4): Likewise.
18421 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18423 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18424 * config/arm/arm.md (core_cycles): Remove fdiv.
18425 * config/arm/vfp.md:
18426 (*sqrtsf2_vfp): Update for attribute changes.
18427 (*sqrtdf2_vfp): Likewise.
18428 * config/aarch64/aarch64.md:
18429 (sqrt<mode>2): Update for attribute changes.
18430 * config/arm/arm1020e.md: Update with new attributes.
18431 * config/arm/cortex-a15-neon.md: Update with new attributes.
18432 * config/arm/cortex-a5.md: Update with new attributes.
18433 * config/arm/cortex-a53.md: Update with new attributes.
18434 * config/arm/cortex-a7.md: Update with new attributes.
18435 * config/arm/cortex-a8-neon.md: Update with new attributes.
18436 * config/arm/cortex-a9.md: Update with new attributes.
18437 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18438 * config/arm/cortex-r4f.md: Update with new attributes.
18439 * config/arm/marvell-pj4.md: Update with new attributes.
18440 * config/arm/vfp11.md: Update with new attributes.
18442 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18444 * config/arm/types.md
18445 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18446 * config/aarch64/aarch64.md
18447 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18449 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18450 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18451 (float<GPI:mode><GPF:mode>2): Likewise.
18452 * config/arm/vfp.md
18453 (*truncsisf2_vfp): Update with new attributes.
18454 (*truncsidf2_vfp): Likewise.
18455 (fixuns_truncsfsi2): Likewise.
18456 (fixuns_truncdfsi2): Likewise.
18457 (*floatsisf2_vfp): Likewise.
18458 (*floatsidf2_vfp): Likewise.
18459 (floatunssisf2): Likewise.
18460 (floatunssidf2): Likewise.
18461 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18462 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18463 * config/arm/arm1020e.md: Update with new attributes.
18464 * config/arm/cortex-a15-neon.md: Update with new attributes.
18465 * config/arm/cortex-a5.md: Update with new attributes.
18466 * config/arm/cortex-a53.md: Update with new attributes.
18467 * config/arm/cortex-a7.md: Update with new attributes.
18468 * config/arm/cortex-a8-neon.md: Update with new attributes.
18469 * config/arm/cortex-a9.md: Update with new attributes.
18470 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18471 * config/arm/cortex-r4f.md: Update with new attributes.
18472 * config/arm/marvell-pj4.md: Update with new attributes.
18473 * config/arm/vfp11.md: Update with new attributes.
18475 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18477 * config/aarch64/arm_neon.h
18478 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18479 (vqtbx<1,2,3,4><q>_s8): Likewise.
18481 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18483 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18484 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18485 (add<mode>3): Add type attribute.
18486 (add<mode>3): Likewise.
18487 (usadd<mode>3): Likewise.
18488 (ssadd<mode>3): Likewise.
18489 (sub<mode>3): Likewise.
18490 (sub<mode>3): Likewise.
18491 (ussub<mode>3): Likewise.
18492 (sssub<mode>3): Likewise.
18493 (ssmulsa3): Likewise.
18494 (usmulusa3): Likewise.
18495 (arm_usatsihi): Likewise.
18496 * config/arm/vfp.md
18497 (*movdi_vfp): Add types for all instructions.
18498 (*movdi_vfp_cortexa8): Likewise.
18499 (*movhf_vfp_neon): Likewise.
18500 (*movhf_vfp): Likewise.
18501 (*movdf_vfp): Likewise.
18502 (*thumb2_movdf_vfp): Likewise.
18503 (*thumb2_movdfcc_vfp): Likewise.
18504 * config/arm/arm.md: Add type attribute to all insn patterns.
18505 (*thumb1_adddi3): Add type attribute.
18506 (*arm_adddi3): Likewise.
18507 (*adddi_sesidi_di): Likewise.
18508 (*adddi_zesidi_di): Likewise.
18509 (*thumb1_addsi3): Likewise.
18510 (addsi3_compare0): Likewise.
18511 (*addsi3_compare0_scratch): Likewise.
18512 (*compare_negsi_si): Likewise.
18513 (cmpsi2_addneg): Likewise.
18514 (*addsi3_carryin_<optab>): Likewise.
18515 (*addsi3_carryin_alt2_<optab>): Likewise.
18516 (*addsi3_carryin_clobercc_<optab>): Likewise.
18517 (*subsi3_carryin): Likewise.
18518 (*subsi3_carryin_const): Likewise.
18519 (*subsi3_carryin_compare): Likewise.
18520 (*subsi3_carryin_compare_const): Likewise.
18521 (*arm_subdi3): Likewise.
18522 (*thumb_subdi3): Likewise.
18523 (*subdi_di_zesidi): Likewise.
18524 (*subdi_di_sesidi): Likewise.
18525 (*subdi_zesidi_di): Likewise.
18526 (*subdi_sesidi_di): Likewise.
18527 (*subdi_zesidi_ze): Likewise.
18528 (thumb1_subsi3_insn): Likewise.
18529 (*arm_subsi3_insn): Likewise.
18530 (*anddi3_insn): Likewise.
18531 (*anddi_zesidi_di): Likewise.
18532 (*anddi_sesdi_di): Likewise.
18533 (*ne_zeroextracts): Likewise.
18534 (*ne_zeroextracts): Likewise.
18535 (*ite_ne_zeroextr): Likewise.
18536 (*ite_ne_zeroextr): Likewise.
18537 (*anddi_notdi_di): Likewise.
18538 (*anddi_notzesidi): Likewise.
18539 (*anddi_notsesidi): Likewise.
18540 (andsi_notsi_si): Likewise.
18541 (thumb1_bicsi3): Likewise.
18542 (*iordi3_insn): Likewise.
18543 (*iordi_zesidi_di): Likewise.
18544 (*iordi_sesidi_di): Likewise.
18545 (*thumb1_iorsi3_insn): Likewise.
18546 (*xordi3_insn): Likewise.
18547 (*xordi_zesidi_di): Likewise.
18548 (*xordi_sesidi_di): Likewise.
18549 (*arm_xorsi3): Likewise.
18550 (*andsi_iorsi3_no): Likewise.
18551 (*smax_0): Likewise.
18552 (*smax_m1): Likewise.
18553 (*arm_smax_insn): Likewise.
18554 (*smin_0): Likewise.
18555 (*arm_smin_insn): Likewise.
18556 (*arm_umaxsi3): Likewise.
18557 (*arm_uminsi3): Likewise.
18558 (*minmax_arithsi): Likewise.
18559 (*minmax_arithsi_): Likewise.
18560 (*satsi_<SAT:code>): Likewise.
18561 (arm_ashldi3_1bit): Likewise.
18562 (arm_ashrdi3_1bit): Likewise.
18563 (arm_lshrdi3_1bit): Likewise.
18564 (*arm_negdi2): Likewise.
18565 (*thumb1_negdi2): Likewise.
18566 (*arm_negsi2): Likewise.
18567 (*thumb1_negsi2): Likewise.
18568 (*negdi_extendsid): Likewise.
18569 (*negdi_zero_extend): Likewise.
18570 (*arm_abssi2): Likewise.
18571 (*thumb1_abssi2): Likewise.
18572 (*arm_neg_abssi2): Likewise.
18573 (*thumb1_neg_abss): Likewise.
18574 (one_cmpldi2): Likewise.
18575 (extend<mode>di2): Likewise.
18576 (*compareqi_eq0): Likewise.
18577 (*arm_extendhisi2addsi): Likewise.
18578 (*arm_movdi): Likewise.
18579 (*thumb1_movdi_insn): Likewise.
18580 (*arm_movt): Likewise.
18581 (*thumb1_movsi_insn): Likewise.
18582 (pic_add_dot_plus_four): Likewise.
18583 (pic_add_dot_plus_eight): Likewise.
18584 (tls_load_dot_plus_eight): Likewise.
18585 (*thumb1_movhi_insn): Likewise.
18586 (*thumb1_movsf_insn): Likewise.
18587 (*movdf_soft_insn): Likewise.
18588 (*thumb_movdf_insn): Likewise.
18589 (cbranchsi4_insn): Likewise.
18590 (cbranchsi4_scratch): Likewise.
18591 (*negated_cbranchsi4): Likewise.
18592 (*tbit_cbranch): Likewise.
18593 (*tlobits_cbranch): Likewise.
18594 (*tstsi3_cbranch): Likewise.
18595 (*cbranchne_decr1): Likewise.
18596 (*addsi3_cbranch): Likewise.
18597 (*addsi3_cbranch_scratch): Likewise.
18598 (*arm_cmpdi_insn): Likewise.
18599 (*arm_cmpdi_unsig): Likewise.
18600 (*arm_cmpdi_zero): Likewise.
18601 (*thumb_cmpdi_zero): Likewise.
18602 (*deleted_compare): Likewise.
18603 (*mov_scc): Likewise.
18604 (*mov_negscc): Likewise.
18605 (*mov_notscc): Likewise.
18606 (*cstoresi_eq0_thumb1_insn): Likewise.
18607 (cstoresi_nltu_thumb1): Likewise.
18608 (cstoresi_ltu_thu): Likewise.
18609 (thumb1_addsi3_addgeu): Likewise.
18610 (*arm_jump): Likewise.
18611 (*thumb_jump): Likewise.
18612 (*check_arch2): Likewise.
18613 (arm_casesi_internal): Likewise.
18614 (thumb1_casesi_dispatch): Likewise.
18615 (*arm_indirect_jump): Likewise.
18616 (*thumb1_indirect_jump): Likewise.
18618 (*and_scc): Likewise.
18619 (*ior_scc): Likewise.
18620 (*compare_scc): Likewise.
18621 (*cond_move): Likewise.
18622 (*cond_arith): Likewise.
18623 (*cond_sub): Likewise.
18624 (*cmp_ite0): Likewise.
18625 (*cmp_ite1): Likewise.
18626 (*cmp_and): Likewise.
18627 (*cmp_ior): Likewise.
18628 (*ior_scc_scc): Likewise.
18629 (*ior_scc_scc_cmp): Likewise.
18630 (*and_scc_scc): Likewise.
18631 (*and_scc_scc_cmp): Likewise.
18632 (*and_scc_scc_nod): Likewise.
18633 (*negscc): Likewise.
18634 (movcond_addsi): Likewise.
18635 (movcond): Likewise.
18636 (*ifcompare_plus_move): Likewise.
18637 (*if_plus_move): Likewise.
18638 (*ifcompare_move_plus): Likewise.
18639 (*if_move_plus): Likewise.
18640 (*ifcompare_arith_arith): Likewise.
18641 (*if_arith_arith): Likewise.
18642 (*ifcompare_arith_move): Likewise.
18643 (*if_arith_move): Likewise.
18644 (*ifcompare_move_arith): Likewise.
18645 (*if_move_arith): Likewise.
18646 (*ifcompare_move_not): Likewise.
18647 (*if_move_not): Likewise.
18648 (*ifcompare_not_move): Likewise.
18649 (*if_not_move): Likewise.
18650 (*ifcompare_shift_move): Likewise.
18651 (*if_shift_move): Likewise.
18652 (*ifcompare_move_shift): Likewise.
18653 (*if_move_shift): Likewise.
18654 (*ifcompare_shift_shift): Likewise.
18655 (*ifcompare_not_arith): Likewise.
18656 (*ifcompare_arith_not): Likewise.
18657 (*if_arith_not): Likewise.
18658 (*ifcompare_neg_move): Likewise.
18659 (*if_neg_move): Likewise.
18660 (*ifcompare_move_neg): Likewise.
18661 (*if_move_neg): Likewise.
18662 (prologue_thumb1_interwork): Likewise.
18663 (*cond_move_not): Likewise.
18664 (*sign_extract_onebit): Likewise.
18665 (*not_signextract_onebit): Likewise.
18666 (stack_tie): Likewise.
18667 (align_4): Likewise.
18668 (align_8): Likewise.
18669 (consttable_end): Likewise.
18670 (consttable_1): Likewise.
18671 (consttable_2): Likewise.
18672 (consttable_4): Likewise.
18673 (consttable_8): Likewise.
18674 (consttable_16): Likewise.
18675 (*thumb1_tablejump): Likewise.
18676 (prefetch): Likewise.
18677 (force_register_use): Likewise.
18678 (thumb_eh_return): Likewise.
18679 (load_tp_hard): Likewise.
18680 (load_tp_soft): Likewise.
18681 (tlscall): Likewise.
18682 (*arm_movtas_ze): Likewise.
18683 (*arm_rev): Likewise.
18684 (*arm_revsh): Likewise.
18685 (*arm_rev16): Likewise.
18686 * config/arm/thumb2.md
18687 (*thumb2_smaxsi3): Likewise.
18688 (*thumb2_sminsi3): Likewise.
18689 (*thumb32_umaxsi3): Likewise.
18690 (*thumb2_uminsi3): Likewise.
18691 (*thumb2_negdi2): Likewise.
18692 (*thumb2_abssi2): Likewise.
18693 (*thumb2_neg_abss): Likewise.
18694 (*thumb2_movsi_insn): Likewise.
18695 (tls_load_dot_plus_four): Likewise.
18696 (*thumb2_movhi_insn): Likewise.
18697 (*thumb2_mov_scc): Likewise.
18698 (*thumb2_mov_negs): Likewise.
18699 (*thumb2_mov_negs): Likewise.
18700 (*thumb2_mov_nots): Likewise.
18701 (*thumb2_mov_nots): Likewise.
18702 (*thumb2_movsicc_): Likewise.
18703 (*thumb2_movsfcc_soft_insn): Likewise.
18704 (*thumb2_indirect_jump): Likewise.
18705 (*thumb2_and_scc): Likewise.
18706 (*thumb2_ior_scc): Likewise.
18707 (*thumb2_ior_scc_strict_it): Likewise.
18708 (*thumb2_cond_move): Likewise.
18709 (*thumb2_cond_arith): Likewise.
18710 (*thumb2_cond_ari): Likewise.
18711 (*thumb2_cond_sub): Likewise.
18712 (*thumb2_negscc): Likewise.
18713 (*thumb2_movcond): Likewise.
18714 (thumb2_casesi_internal): Likewise.
18715 (thumb2_casesi_internal_pic): Likewise.
18716 (*thumb2_alusi3_short): Likewise.
18717 (*thumb2_mov<mode>_shortim): Likewise.
18718 (*thumb2_addsi_short): Likewise.
18719 (*thumb2_subsi_short): Likewise.
18720 (thumb2_addsi3_compare0): Likewise.
18721 (*thumb2_cbz): Likewise.
18722 (*thumb2_cbnz): Likewise.
18723 (*thumb2_one_cmplsi2_short): Likewise.
18724 (*thumb2_negsi2_short): Likewise.
18725 (*orsi_notsi_si): Likewise.
18726 * config/arm/arm1020e.md: Update with new attributes.
18727 * config/arm/arm1026ejs.md: Update with new attributes.
18728 * config/arm/arm1136jfs.md: Update with new attributes.
18729 * config/arm/arm926ejs.md: Update with new attributes.
18730 * config/arm/cortex-a15.md: Update with new attributes.
18731 * config/arm/cortex-a5.md: Update with new attributes.
18732 * config/arm/cortex-a53.md: Update with new attributes.
18733 * config/arm/cortex-a7.md: Update with new attributes.
18734 * config/arm/cortex-a8.md: Update with new attributes.
18735 * config/arm/cortex-a9.md: Update with new attributes.
18736 * config/arm/cortex-m4.md: Update with new attributes.
18737 * config/arm/cortex-r4.md: Update with new attributes.
18738 * config/arm/fa526.md: Update with new attributes.
18739 * config/arm/fa606te.md: Update with new attributes.
18740 * config/arm/fa626te.md: Update with new attributes.
18741 * config/arm/fa726te.md: Update with new attributes.
18743 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18745 * config/aarch64/aarch64-simd.md
18746 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18747 <vwx> iterator to ensure correct register choice.
18748 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18749 (aarch64_sqdmull_n<mode>): Likewise.
18750 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18751 * config/aarch64/arm_neon.h
18752 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18753 (vml<as><q>_n_<su>16): Likewise.
18754 (vml<as>l_high_lane<q>_<su>16): Likewise.
18755 (vml<as>l_high_n_<su>16): Likewise.
18756 (vml<as>l_lane<q>_<su>16): Likewise.
18757 (vml<as>l_n_<su>16): Likewise.
18758 (vmul<q>_lane<q>_<su>16): Likewise.
18759 (vmul<q>_n_<su>16): Likewise.
18760 (vmull_lane<q>_<su>16): Likewise.
18761 (vmull_n_<su>16): Likewise.
18762 (vmull_high_lane<q>_<su>16): Likewise.
18763 (vmull_high_n_<su>16): Likewise.
18764 (vqrdmulh<q>_n_s16): Likewise.
18766 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18768 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18769 have the correct lane parameter.
18771 2013-09-06 Richard Biener <rguenther@suse.de>
18773 * cfganal.c (control_dependences::~control_dependences):
18774 Properly free all of the vector.
18776 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18779 * config/i386/i386.c (ix86_conditional_register_usage):
18780 Proper initialize extended SSE registers.
18782 2013-09-06 Jan Hubicka <jh@suse.cz>
18784 PR tree-optimization/58311
18785 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18787 2013-09-06 Jan Hubicka <jh@suse.cz>
18789 * Makefile.in (tree-sra.o): Update dependencies.
18790 * tree-sra.c: Include ipa-utils.h
18791 (scan_function): Use recursive_call_p.
18792 (has_caller_p): New function.
18793 (cgraph_for_node_and_aliases): Count also callers of aliases.
18795 2013-09-06 Jan Hubicka <jh@suse.cz>
18797 PR middle-end/58094
18798 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18799 * tree-tailcall.c: Include ipa-utils.h.
18800 (find_tail_calls): Use it.
18801 * ipa-pure-const.c (check_call): Likewise.
18802 * ipa-utils.c (recursive_call_p): New function.
18803 * ipa-utils.h (recursive_call_p): Dclare.
18804 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18805 (symtab_semantically_equivalent_p): New function.
18806 * Makefile.in (tree-tailcall.o): Update dependencies.
18808 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18810 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18811 non-inlinable part.
18813 2013-09-06 Richard Biener <rguenther@suse.de>
18815 * lto-streamer.h (lto_global_var_decls): Remove.
18816 * Makefile.in (OBJS): Remove lto-symtab.o.
18817 (lto-symtab.o): Remove.
18818 (GTFILES): Remove lto-symtab.c
18819 * lto-symtab.c: Move to lto/
18821 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18823 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18824 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18825 (UNSPEC_FPINT_RINT): New constant definitions.
18826 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18827 definition with 2 attributes.
18828 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18829 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18832 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18834 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18835 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18836 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18837 attribute to "z196_alone".
18838 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18841 2013-09-06 Richard Biener <rguenther@suse.de>
18843 * basic-block.h (class control_dependences): New.
18844 * tree-ssa-dce.c (control_dependence_map): Remove.
18846 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18847 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18848 find_pdom, find_control_dependence, find_all_control_dependences):
18850 (mark_control_dependent_edges_necessary,
18851 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18852 tree_dce_done, perform_tree_ssa_dce): Adjust.
18853 * cfganal.c (set_control_dependence_map_bit,
18854 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18855 find_all_control_dependences): Move from tree-ssa-dce.c and
18856 implement as methods of control_dependences class.
18857 (control_dependences::control_dependences): New.
18858 (control_dependences::~control_dependences): Likewise.
18859 (control_dependences::get_edges_dependent_on): Likewise.
18860 (control_dependences::get_edge): Likewise.
18862 2013-09-04 Jan Hubicka <jh@suse.cz>
18864 * tree.c (types_same_for_odr): Drop overactive check.
18865 * ipa-devirt.c (hash_type_name): Likewise.
18867 2013-09-04 Jan Hubicka <jh@suse.cz>
18869 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18870 (analyze_functions): ... here.
18872 2013-09-04 Jan Hubicka <jh@suse.cz>
18874 PR middle-end/58201
18875 * cgraphunit.c (analyze_functions): Clear AUX fields
18876 after processing; initialize assembler name has.
18878 2013-09-05 Jeff Law <law@redhat.com>
18880 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18881 from thread_around_empty_block. Record threading path into PATH.
18882 Recurse if threading through the initial block is successful.
18883 (thread_across_edge): Corresponding changes to slightly simplify.
18885 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18887 * config/aarch64/aarch64.md
18888 (type): Remove frecpe, frecps, frecpx.
18889 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18890 fix to be a TARGET_SIMD instruction.
18891 (aarch64_frecps): Remove.
18892 * config/aarch64/aarch64-simd.md
18893 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18894 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18896 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18897 Sofiane Naci <sofiane.naci@arm.com>
18899 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18900 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18901 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18902 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18903 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18904 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18905 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18906 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18907 into "clz, "rbit". Rename "shift" to "shift_imm".
18908 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18909 changes. Update for attribute changes all occurrences of arlo_* and
18911 * config/arm/arm-fixed.md: Update for attribute changes
18912 all occurrences of arlo_* types.
18913 * config/arm/thumb2.md: Update for attribute changes all occurrences
18915 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18916 (cortexa7_older_only): Likewise.
18917 (cortexa7_younger): Likewise.
18918 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18919 (1020alu_shift_op): Likewise.
18920 (1020alu_shift_reg_op): Likewise.
18921 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18922 (alu_shift_op): Likewise.
18923 (alu_shift_reg_op): Likewise.
18924 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18925 (11_alu_shift_op): Likewise.
18926 (11_alu_shift_reg_op): Likewise.
18927 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18928 (9_alu_shift_reg_op): Likewise.
18929 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18931 (cortex_a15_alu_shift): Likewise.
18932 (cortex_a15_alu_shift_reg): Likewise.
18933 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18935 (cortex_a5_alu_shift): Likewise.
18936 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18938 (cortex_a53_alu_shift): Likewise.
18939 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18941 (cortex_a7_alu_reg): Likewise.
18942 (cortex_a7_alu_shift): Likewise.
18943 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18945 (cortex_a8_alu_shift): Likewise.
18946 (cortex_a8_alu_shift_reg): Likewise.
18947 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18948 (cortex_a9_dp_shift): Likewise.
18949 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18951 * config/arm/cortex-r4.md
18952 (cortex_r4_alu): Update for attribute changes.
18953 (cortex_r4_mov): Likewise.
18954 (cortex_r4_alu_shift_reg): Likewise.
18955 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18956 (526_alu_shift_op): Likewise.
18957 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18958 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18959 (626te_alu_shift_op): Likewise.
18960 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18961 (726te_alu_shift_op): Likewise.
18962 (726te_alu_shift_reg_op): Likewise.
18963 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18964 (mp626_alu_shift_op): Likewise.
18965 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18966 (pj4_alu_conds): Likewise.
18967 (pj4_shift): Likewise.
18968 (pj4_shift_conds): Likewise.
18969 (pj4_alu_shift): Likewise.
18970 (pj4_alu_shift_conds): Likewise.
18971 * config/aarch64/aarch64.md: Update for attribute change
18972 all occurrences of arlo_* and shift* types.
18974 2013-09-05 Mike Stump <mikestump@comcast.net>
18976 * tree.h: Move documentation for tree_function_decl to tree-core.h
18977 with the declaration.
18979 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18982 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18983 looking for widest mode.
18985 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18987 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18989 2013-09-05 Richard Biener <rguenther@suse.de>
18991 PR tree-optimization/58137
18992 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18993 Do not create vectors of pointers.
18994 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18995 types for the components of the vector initializer.
18996 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18997 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18999 2013-09-05 Martin Jambor <mjambor@suse.cz>
19001 * ipa-prop.c (remove_described_reference): Accept missing references,
19002 return false if that hppens, otherwise return true.
19003 (cgraph_node_for_jfunc): New function.
19004 (try_decrement_rdesc_refcount): Likewise.
19005 (try_make_edge_direct_simple_call): Use them.
19006 (ipa_edge_removal_hook): Remove references from rdescs.
19007 (ipa_edge_duplication_hook): Clone rdescs and their references
19008 when the new edge has the same caller as the old one.
19009 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19010 reference before removing any edges.
19012 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19014 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19016 * thumb2.md (thumb2_storewb_parisi): New pattern.
19018 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19020 * config/aarch64/aarch64-option-extensions.def: Add
19021 AARCH64_OPT_EXTENSION of 'crc'.
19022 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19023 (AARCH64_ISA_CRC): Ditto.
19024 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19025 description of the CRC extension.
19027 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19029 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19030 * config/rs6000/linux.h: Ditto.
19031 * alpha/linux.h: Ditto.
19032 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19033 no_c99_libc_has_function.
19034 * config/c6x/uclinux-elf.h: Ditto.
19035 * config/lm32/uclinux-elf.h: Ditto.
19036 * config/m68k/uclinux.h: Ditto.
19037 * config/moxie/uclinux.h: Ditto.
19038 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19039 (crisv32-*-linux*, cris-*-linux*): Ditto.
19040 * config/bfin/bfin.c: Include "tm_p.h".
19042 2013-09-05 Richard Biener <rguenther@suse.de>
19044 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19045 check for a definition without a basic-block.
19047 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19048 Sofiane Naci <sofiane.naci@arm.com>
19050 * config/aarch64/aarch64.md
19051 (*movti_aarch64): Rename r_2_f and f_2_r.
19052 (*movsf_aarch64): Likewise.
19053 (*movdf_aarch64): Likewise.
19054 (*movtf_aarch64): Likewise.
19055 (aarch64_movdi_<mode>low): Likewise.
19056 (aarch64_movdi_<mode>high): Likewise.
19057 (aarch64_mov<mode>high_di): Likewise.
19058 (aarch64_mov<mode>low_di): Likewise.
19059 (aarch64_movtilow_tilow): Likewise.
19060 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19061 values to config/arm/types.md
19062 (attribute "conds"): Update for attribute change.
19063 (anddi3_insn): Likewise.
19064 (iordi3_insn): Likewise.
19065 (xordi3_insn): Likewise.
19066 (one_cmpldi2): Likewise.
19067 * config/arm/types.md (type): Add Neon types.
19068 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19069 use "type" attribute.
19070 (movmisalign<mode>_neon_store): Likewise.
19071 (movmisalign<mode>_neon_load): Likewise.
19072 (vec_set<mode>_internal): Likewise.
19073 (vec_setv2di_internal): Likewise.
19074 (vec_extract<mode>): Likewise.
19075 (vec_extractv2di): Likewise.
19076 (add<mode>3_neon): Likewise.
19077 (adddi3_neon): Likewise.
19078 (sub<mode>3_neon): Likewise.
19079 (subdi3_neon): Likewise.
19080 (mul<mode>3_neon): Likewise.
19081 (mul<mode>3add<mode>_neon): Likewise.
19082 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19083 (fma<VCVTF:mode>4)): Likewise.
19084 (fma<VCVTF:mode>4_intrinsic): Likewise.
19085 (fmsub<VCVTF:mode>4)): Likewise.
19086 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19087 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19088 (ior<mode>3): Likewise.
19089 (and<mode>3): Likewise.
19090 (anddi3_neon): Likewise.
19091 (orn<mode>3_neon): Likewise.
19092 (orndi3_neon): Likewise.
19093 (bic<mode>3_neon): Likewise.
19094 (bicdi3_neon): Likewise.
19095 (xor<mode>3): Likewise.
19096 (one_cmpl<mode>2): Likewise.
19097 (abs<mode>2): Likewise.
19098 (neg<mode>2): Likewise.
19099 (umin<mode>3_neon): Likewise.
19100 (umax<mode>3_neon): Likewise.
19101 (smin<mode>3_neon): Likewise.
19102 (smax<mode>3_neon): Likewise.
19103 (vashl<mode>3): Likewise.
19104 (vashr<mode>3_imm): Likewise.
19105 (vlshr<mode>3_imm): Likewise.
19106 (ashl<mode>3_signed): Likewise.
19107 (ashl<mode>3_unsigned): Likewise.
19108 (neon_load_count): Likewise.
19109 (ashldi3_neon_noclobber): Likewise.
19110 (signed_shift_di3_neon): Likewise.
19111 (unsigned_shift_di3_neon): Likewise.
19112 (ashrdi3_neon_imm_noclobber): Likewise.
19113 (lshrdi3_neon_imm_noclobber): Likewise.
19114 (widen_ssum<mode>3): Likewise.
19115 (widen_usum<mode>3): Likewise.
19116 (quad_halves_<code>v4si): Likewise.
19117 (quad_halves_<code>v4sf): Likewise.
19118 (quad_halves_<code>v8hi): Likewise.
19119 (quad_halves_<code>v16qi): Likewise.
19120 (reduc_splus_v2di): Likewise.
19121 (neon_vpadd_internal<mode>): Likewise.
19122 (neon_vpsmin<mode>): Likewise.
19123 (neon_vpsmax<mode>): Likewise.
19124 (neon_vpumin<mode>): Likewise.
19125 (neon_vpumax<mode>): Likewise.
19126 (ss_add<mode>_neon): Likewise.
19127 (us_add<mode>_neon): Likewise.
19128 (ss_sub<mode>_neon): Likewise.
19129 (us_sub<mode>_neon): Likewise.
19130 (neon_vadd<mode>_unspec): Likewise.
19131 (neon_vaddl<mode>): Likewise.
19132 (neon_vaddw<mode>): Likewise.
19133 (neon_vhadd<mode>): Likewise.
19134 (neon_vqadd<mode>): Likewise.
19135 (neon_vaddhn<mode>): Likewise.
19136 (neon_vmul<mode>): Likewise.
19137 (neon_vmla<mode>): Likewise.
19138 (neon_vmlal<mode>): Likewise.
19139 (neon_vmls<mode>): Likewise.
19140 (neon_vmlsl<mode>): Likewise.
19141 (neon_vqdmulh<mode>): Likewise.
19142 (neon_vqdmlal<mode>): Likewise.
19143 (neon_vqdmlsl<mode>): Likewise.
19144 (neon_vmull<mode>): Likewise.
19145 (neon_vqdmull<mode>): Likewise.
19146 (neon_vsub<mode>_unspec): Likewise.
19147 (neon_vsubl<mode>): Likewise.
19148 (neon_vsubw<mode>): Likewise.
19149 (neon_vqsub<mode>): Likewise.
19150 (neon_vhsub<mode>): Likewise.
19151 (neon_vsubhn<mode>): Likewise.
19152 (neon_vceq<mode>): Likewise.
19153 (neon_vcge<mode>): Likewise.
19154 (neon_vcgeu<mode>): Likewise.
19155 (neon_vcgt<mode>): Likewise.
19156 (neon_vcgtu<mode>): Likewise.
19157 (neon_vcle<mode>): Likewise.
19158 (neon_vclt<mode>): Likewise.
19159 (neon_vcage<mode>): Likewise.
19160 (neon_vcagt<mode>): Likewise.
19161 (neon_vtst<mode>): Likewise.
19162 (neon_vabd<mode>): Likewise.
19163 (neon_vabdl<mode>): Likewise.
19164 (neon_vaba<mode>): Likewise.
19165 (neon_vabal<mode>): Likewise.
19166 (neon_vmax<mode>): Likewise.
19167 (neon_vmin<mode>): Likewise.
19168 (neon_vpaddl<mode>): Likewise.
19169 (neon_vpadal<mode>): Likewise.
19170 (neon_vpmax<mode>): Likewise.
19171 (neon_vpmin<mode>): Likewise.
19172 (neon_vrecps<mode>): Likewise.
19173 (neon_vrsqrts<mode>): Likewise.
19174 (neon_vqabs<mode>): Likewise.
19175 (neon_vqneg<mode>): Likewise.
19176 (neon_vcls<mode>): Likewise.
19177 (clz<mode>2): Likewise.
19178 (popcount<mode>2): Likewise.
19179 (neon_vrecpe): Likewise.
19180 (neon_vrsqrte): Likewise.
19181 (neon_vget_lane<mode>_sext_internal): Likewise.
19182 (neon_vget_lane<mode>_zext_internal): Likewise.
19183 (neon_vdup_n<mode>): Likewise.
19184 (neon_vdup_nv2di): Likewise.
19185 (neon_vdpu_lane<mode>_internal): Likewise.
19186 (neon_vswp<mode>): Likewise.
19187 (float<mode><V_cvtto>2): Likewise.
19188 (floatuns<mode><V_cvtto>2): Likewise.
19189 (fix_trunc<mode><V_cvtto>)2): Likewise
19190 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19191 (neon_vcvt<mode>): Likewise.
19192 (neon_vcvtv4sfv4hf): Likewise.
19193 (neon_vcvtv4hfv4sf): Likewise.
19194 (neon_vcvt_n<mode>): Likewise.
19195 (neon_vmovn<mode>): Likewise.
19196 (neon_vqmovn<mode>): Likewise.
19197 (neon_vqmovun<mode>): Likewise.
19198 (neon_vmovl<mode>): Likewise.
19199 (neon_vmul_lane<mode>): Likewise.
19200 (neon_vmull_lane<mode>): Likewise.
19201 (neon_vqdmull_lane<mode>): Likewise.
19202 (neon_vqdmulh_lane<mode>): Likewise.
19203 (neon_vmla_lane<mode>): Likewise.
19204 (neon_vmlal_lane<mode>): Likewise.
19205 (neon_vqdmlal_lane<mode>): Likewise.
19206 (neon_vmls_lane<mode>): Likewise.
19207 (neon_vmlsl_lane<mode>): Likewise.
19208 (neon_vqdmlsl_lane<mode>): Likewise.
19209 (neon_vext<mode>): Likewise.
19210 (neon_vrev64<mode>): Likewise.
19211 (neon_vrev32<mode>): Likewise.
19212 (neon_vrev16<mode>): Likewise.
19213 (neon_vbsl<mode>_internal): Likewise.
19214 (neon_vshl<mode>): Likewise.
19215 (neon_vqshl<mode>): Likewise.
19216 (neon_vshr_n<mode>): Likewise.
19217 (neon_vshrn_n<mode>): Likewise.
19218 (neon_vqshrn_n<mode>): Likewise.
19219 (neon_vqshrun_n<mode>): Likewise.
19220 (neon_vshl_n<mode>): Likewise.
19221 (neon_vqshl_n<mode>): Likewise.
19222 (neon_vqshlu_n<mode>): Likewise.
19223 (neon_vshll_n<mode>): Likewise.
19224 (neon_vsra_n<mode>): Likewise.
19225 (neon_vsri_n<mode>): Likewise.
19226 (neon_vsli_n<mode>): Likewise.
19227 (neon_vtbl1v8qi): Likewise.
19228 (neon_vtbl2v8qi): Likewise.
19229 (neon_vtbl3v8qi): Likewise.
19230 (neon_vtbl4v8qi): Likewise.
19231 (neon_vtbx1v8qi): Likewise.
19232 (neon_vtbx2v8qi): Likewise.
19233 (neon_vtbx3v8qi): Likewise.
19234 (neon_vtbx4v8qi): Likewise.
19235 (neon_vtrn<mode>_internal): Likewise.
19236 (neon_vzip<mode>_internal): Likewise.
19237 (neon_vuzp<mode>_internal): Likewise.
19238 (neon_vld1<mode>): Likewise.
19239 (neon_vld1_lane<mode>): Likewise.
19240 (neon_vld1_dup<mode>): Likewise.
19241 (neon_vld1_dupv2di): Likewise.
19242 (neon_vst1<mode>): Likewise.
19243 (neon_vst1_lane<mode>): Likewise.
19244 (neon_vld2<mode>): Likewise.
19245 (neon_vld2_lane<mode>): Likewise.
19246 (neon_vld2_dup<mode>): Likewise.
19247 (neon_vst2<mode>): Likewise.
19248 (neon_vst2_lane<mode>): Likewise.
19249 (neon_vld3<mode>): Likewise.
19250 (neon_vld3qa<mode>): Likewise.
19251 (neon_vld3qb<mode>): Likewise.
19252 (neon_vld3_lane<mode>): Likewise.
19253 (neon_vld3_dup<mode>): Likewise.
19254 (neon_vst3<mode>): Likewise.
19255 (neon_vst3qa<mode>): Likewise.
19256 (neon_vst3qb<mode>): Likewise.
19257 (neon_vst3_lane<mode>): Likewise.
19258 (neon_vld4<mode>): Likewise.
19259 (neon_vld4qa<mode>): Likewise.
19260 (neon_vld4qb<mode>): Likewise.
19261 (neon_vld4_lane<mode>): Likewise.
19262 (neon_vld4_dup<mode>): Likewise.
19263 (neon_vst4<mode>): Likewise.
19264 (neon_vst4qa<mode>): Likewise.
19265 (neon_vst4qb<mode>): Likewise.
19266 (neon_vst4_lane<mode>): Likewise.
19267 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19268 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19269 (neon_vec_<US>mult_lo_<mode>): Likewise.
19270 (neon_vec_<US>mult_hi_<mode>): Likewise.
19271 (neon_vec_<US>shiftl_<mode>): Likewise.
19272 (neon_unpack<US>_<mode>): Likewise.
19273 (neon_vec_<US>mult_<mode>): Likewise.
19274 (vec_pack_trunc_<mode>): Likewise.
19275 (neon_vec_pack_trunk_<mode>): Likewise.
19276 (neon_vabd<mode>_2): Likewise.
19277 (neon_vabd<mode>_3): Likewise.
19278 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19279 (thumb2_movsi_vfp): Likewise.
19280 (movdi_vfp): Likewise.
19281 (movdi_vfp_cortexa8): Likewise.
19282 (movhf_vfp_neon): Likewise.
19283 (movhf_vfp): Likewiwse.
19284 (movsf_vfp): Likewiwse.
19285 (thumb2_movsf_vfp): Likewiwse.
19286 (movdf_vfp): Likewise.
19287 (thumb2_movdf_vfp): Likewise.
19288 (movsfcc_vfp): Likewise.
19289 (thumb2_movsfcc_vfp): Likewise.
19290 (movdfcc_vfp): Likewise.
19291 (thumb2_movdfcc_vfp): Likewise.
19292 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19293 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19294 (v10_v2c): Likewise.
19295 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19297 (cortex_a15_neon_int_2): Likewise.
19298 (cortex_a15_neon_int_3): Likewise.
19299 (cortex_a15_neon_int_4): Likewise.
19300 (cortex_a15_neon_int_5): Likewise.
19301 (cortex_a15_neon_vqneg_vqabs): Likewise.
19302 (cortex_a15_neon_vmov): Likewise.
19303 (cortex_a15_neon_vaba): Likewise.
19304 (cortex_a15_neon_vaba_qqq): Likewise.
19305 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19306 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19307 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19308 scalar_64_32_long_scalar): Likewise.
19309 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19310 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19311 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19312 lotype_qdd_64_32_long): Likewise.
19313 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19314 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19315 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19316 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19317 (cortex_a15_neon_shift_1): Likewise.
19318 (cortex_a15_neon_shift_2): Likewise.
19319 (cortex_a15_neon_shift_3): Likewise.
19320 (cortex_a15_neon_vshl_ddd): Likewise.
19321 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19322 (cortex_a15_neon_vsra_vrsra): Likewise.
19323 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19324 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19325 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19326 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19327 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19328 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19329 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19330 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19331 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19332 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19333 (cortex_a15_neon_bp_simple): Likewise.
19334 (cortex_a15_neon_bp_2cycle): Likewise.
19335 (cortex_a15_neon_bp_3cycle): Likewise.
19336 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19337 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19338 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19339 (cortex_a15_neon_vld2_4_regs): Likewise.
19340 (cortex_a15_neon_vld3_vld4): Likewise.
19341 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19342 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19343 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19344 (cortex_a15_neon_vst3_vst4): Likewise.
19345 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19346 (cortex_a15_neon_vld3_vld4_lane" 10
19347 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19348 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19349 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19350 (cortex_a15_neon_ldm_2): Likewise.0
19351 (cortex_a15_neon_stm_2): Likewise.
19352 (cortex_a15_neon_mcr): Likewise.
19353 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19354 (cortex_a15_neon_mrc): Likewise.
19355 (cortex_a15_neon_mrrc): Likewise.
19356 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19358 (cortex_a15_alu_shift): Likewise.
19359 (cortex_a15_alu_shift_reg): Likewise.
19360 (cortex_a15_mult32): Likewise.
19361 (cortex_a15_mult64): Likewise.
19362 (cortex_a15_block): Likewise.
19363 (cortex_a15_branch): Likewise.
19364 (cortex_a15_load1): Likewise.
19365 (cortex_a15_load3): Likewise.
19366 (cortex_a15_store1): Likewise.
19367 (cortex_a15_store3): Likewise.
19368 (cortex_a15_call): Likewise.
19369 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19370 (cortex_a5_f2r): Likewise.
19371 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19373 (cortex_a53_f2r): Likewise.
19374 * config/arm/cortex-a7.md
19375 (cortex_a7_branch): Update for attribute change.
19376 (cortex_a7_call): Likewise.
19377 (cortex_a7_alu_imm): Likewise.
19378 (cortex_a7_alu_reg): Likewise.
19379 (cortex_a7_alu_shift): Likewise.
19380 (cortex_a7_mul): Likewise.
19381 (cortex_a7_load1): Likewise.
19382 (cortex_a7_store1): Likewise.
19383 (cortex_a7_load2): Likewise.
19384 (cortex_a7_store2): Likewise.
19385 (cortex_a7_load3): Likewise.
19386 (cortex_a7_store3): Likewise.
19387 (cortex_a7_load4): Likewise.
19388 (cortex_a7_store4): Likewise.
19389 (cortex_a7_fpalu): Likewise.
19390 (cortex_a7_fconst): Likewise.
19391 (cortex_a7_fpmuls): Likewise.
19392 (cortex_a7_neon_mul): Likewise.
19393 (cortex_a7_fpmacs): Likewise.
19394 (cortex_a7_neon_mla: Likewise.
19395 (cortex_a7_fpmuld: Likewise.
19396 (cortex_a7_fpmacd: Likewise.
19397 (cortex_a7_fpfmad: Likewise.
19398 (cortex_a7_fdivs: Likewise.
19399 (cortex_a7_fdivd: Likewise.
19400 (cortex_a7_r2f: Likewise.
19401 (cortex_a7_f2r: Likewise.
19402 (cortex_a7_f_flags: Likewise.
19403 (cortex_a7_f_loads: Likewise.
19404 (cortex_a7_f_loadd: Likewise.
19405 (cortex_a7_f_stores: Likewise.
19406 (cortex_a7_f_stored: Likewise.
19407 (cortex_a7_neon): Likewise.
19408 * config/arm/cortex-a8-neon.md
19409 (cortex_a8_neon_mrc): Update for attribute change.
19410 (cortex_a8_neon_mrrc): Likewise.
19411 (cortex_a8_neon_int_1): Likewise.
19412 (cortex_a8_neon_int_2): Likewise.
19413 (cortex_a8_neon_int_3): Likewise.
19414 (cortex_a8_neon_int_4): Likewise.
19415 (cortex_a8_neon_int_5): Likewise.
19416 (cortex_a8_neon_vqneg_vqabs): Likewise.
19417 (cortex_a8_neon_vmov): Likewise.
19418 (cortex_a8_neon_vaba): Likewise.
19419 (cortex_a8_neon_vaba_qqq): Likewise.
19420 (cortex_a8_neon_vsma): Likewise.
19421 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19422 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19423 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19424 long_scalar): Likewise.
19425 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19426 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19427 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19428 long_scalar_qdd_64_32_long): Likewise.
19429 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19430 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19431 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19432 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19433 (cortex_a8_neon_shift_1): Likewise.
19434 (cortex_a8_neon_shift_2): Likewise.
19435 (cortex_a8_neon_shift_3): Likewise.
19436 (cortex_a8_neon_vshl_ddd): Likewise.
19437 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19438 (cortex_a8_neon_vsra_vrsra): Likewise.
19439 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19440 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19441 (cortex_a8_neon_fp_vsum): Likewise.
19442 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19443 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19444 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19445 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19446 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19447 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19448 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19449 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19450 (cortex_a8_neon_bp_simple): Likewise.
19451 (cortex_a8_neon_bp_2cycle): Likewise.
19452 (cortex_a8_neon_bp_3cycle): Likewise.
19453 (cortex_a8_neon_ldr): Likewise.
19454 (cortex_a8_neon_str): Likewise.
19455 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19456 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19457 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19458 (cortex_a8_neon_vld2_4_regs): Likewise.
19459 (cortex_a8_neon_vld3_vld4): Likewise.
19460 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19461 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19462 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19463 (cortex_a8_neon_vst3_vst4): Likewise.
19464 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19465 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19466 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19467 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19468 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19469 (cortex_a8_neon_mcr): Likewise.
19470 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19471 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19472 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19474 (ca9_neon_mrrc): Likewise.
19475 (cortex_a9_neon_int_1): Likewise.
19476 (cortex_a9_neon_int_2): Likewise.
19477 (cortex_a9_neon_int_3): Likewise.
19478 (cortex_a9_neon_int_4): Likewise.
19479 (cortex_a9_neon_int_5): Likewise.
19480 (cortex_a9_neon_vqneg_vqabs): Likewise.
19481 (cortex_a9_neon_vmov): Likewise.
19482 (cortex_a9_neon_vaba): Likewise.
19483 (cortex_a9_neon_vaba_qqq): Likewise.
19484 (cortex_a9_neon_vsma): Likewise.
19485 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19486 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19487 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19488 long_scalar): Likewise.
19489 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19490 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19491 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19492 long_scalar_qdd_64_32_long): Likewise.
19493 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19494 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19495 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19496 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19497 (cortex_a9_neon_shift_1): Likewise.
19498 (cortex_a9_neon_shift_2): Likewise.
19499 (cortex_a9_neon_shift_3): Likewise.
19500 (cortex_a9_neon_vshl_ddd): Likewise.
19501 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19502 (cortex_a9_neon_vsra_vrsra): Likewise.
19503 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19504 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19505 (cortex_a9_neon_fp_vsum): Likewise.
19506 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19507 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19508 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19509 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19510 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19511 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19512 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19513 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19514 (cortex_a9_neon_bp_simple): Likewise.
19515 (cortex_a9_neon_bp_2cycle): Likewise.
19516 (cortex_a9_neon_bp_3cycle): Likewise.
19517 (cortex_a9_neon_ldr): Likewise.
19518 (cortex_a9_neon_str): Likewise.
19519 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19520 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19521 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19522 (cortex_a9_neon_vld2_4_regs): Likewise.
19523 (cortex_a9_neon_vld3_vld4): Likewise.
19524 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19525 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19526 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19527 (cortex_a9_neon_vst3_vst4): Likewise.
19528 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19529 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19530 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19531 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19532 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19533 (cortex_a9_neon_mcr): Likewise.
19534 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19535 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19536 (cortex_a9_fps): Likewise.
19537 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19539 (cortex_m4_fmuls): Likewise.
19540 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19542 (cortex_r4_mrc): Likewise.
19543 * config/arm/iterators.md: Update comment referring to neon_type.
19544 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19545 (iwmmxt_movsi_insn): Likewise.
19546 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19548 (pj4_core_to_vfp): Likewise.
19549 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19551 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19552 (vfp_fstore): Likewise.
19553 * doc/md.texi: Change references to neon_type to refer to type.
19555 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19557 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19559 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19561 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19562 lglobl if not weak.
19564 2013-09-04 Easwaran Raman <eraman@google.com>
19566 PR middle-end/57370
19567 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19568 (build_and_add_sum): Use it.
19569 (appears_later_in_bb): Simplify code.
19571 2013-09-04 Teresa Johnson <tejohnson@google.com>
19573 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19575 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19577 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19579 2013-09-04 Jan Hubicka <jh@suse.cz>
19581 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19582 * ipa-devirt.c: Include diganostic.h
19583 (odr_type_d): Add types and types_set.
19584 (hash_type_name): Work for types with vtables during LTO.
19585 (odr_hasher::remove): Fix comment; destroy types_set.
19586 (add_type_duplicate): New function,
19587 (get_odr_type): Use it.
19588 (dump_type_inheritance_graph): Dump type duplicates.
19589 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19591 * tree.c (types_same_for_odr): Give exact answers on types with
19594 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19596 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19597 explaining their differences.
19599 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19601 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19603 2013-09-03 Jeff Law <law@redhat.com>
19605 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19606 when not threading through a joiner block. Pass joiner/no joiner
19607 state to register_jump_thread.
19608 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19609 state from argument rather than implying on path length.
19610 Dump the entire jump thread path into debugging dump.
19611 * tree-flow.h (register_jump_thread): Update prototype.
19613 2013-08-29 Xinliang David Li <davidxl@google.com>
19615 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19616 Remove a trivial gcc_assert.
19618 2013-08-29 Xinliang David Li <davidxl@google.com>
19620 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19621 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19622 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19623 Delay base decl alignment adjustment.
19624 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19625 * tree-vectorizer.h: New data structure.
19626 (set_dr_misalignment): New function.
19627 (dr_misalignment): Ditto.
19628 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19629 (vectorizable_load): Ditto.
19630 (ensure_base_align): New function.
19631 (vectorize_loops): Add dbg_cnt support.
19632 (execute_vect_slp): Ditto.
19633 * dbgcnt.def: New debug counter.
19634 * Makefile: New dependency.
19636 2013-09-03 Meador Inge <meadori@codesourcery.com>
19640 2013-08-30 Meador Inge <meadori@codesourcery.com>
19642 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19644 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19646 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19647 function descriptor.
19649 2013-09-03 Richard Biener <rguenther@suse.de>
19651 * tree-affine.c (add_elt_to_tree): Fix association issue,
19652 avoid useless converts and make sure to always return a
19653 properly typed result.
19655 2013-09-03 Richard Biener <rguenther@suse.de>
19657 PR middle-end/57656
19658 * fold-const.c (negate_expr_p): Fix division case.
19659 (negate_expr): Likewise.
19661 2013-09-03 Richard Biener <rguenther@suse.de>
19664 * tree-streamer-out.c: Include tm.h.
19665 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19667 2013-09-03 Jan Hubicka <jh@suse.cz>
19669 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19671 2013-09-03 Alan Modra <amodra@gmail.com>
19673 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19674 multilibs to big-endian target and vice versa.
19675 * config/rs6000/t-linux64: Use := assignment on all vars.
19676 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19677 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19678 * config/rs6000/t-linux64le: New file.
19679 * config/rs6000/t-linux64bele: New file.
19680 * config/rs6000/t-linux64lebe: New file.
19682 2013-09-02 Jan Hubicka <jh@suse.cz>
19684 * ipa-inline-transform.c (inline_transform): Do not
19685 optimize_inline_calls when not optimizing.
19687 2013-09-02 Jan Hubicka <jh@suse.cz>
19689 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19690 duplicated nodes for assembler names.
19691 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19692 hard registers from assembler name hash.
19694 2013-09-02 Jan Hubicka <jh@suse.cz>
19696 * ipa-split.c (execute_split_functions): Split externally visible
19697 functions called once.
19699 2013-09-02 Martin Jambor <mjambor@suse.cz>
19702 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19703 linked list. When finding the correct duplicate, also consider also
19704 the caller in additon to its inlined_to node.
19706 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19708 * config/aarch64/aarch64-simd-builtins.def
19709 (dup_lane_scalar): Remove.
19710 * config/aarch64/aarch64-simd.md
19711 (aarch64_simd_dup): Add 'w->w' alternative.
19712 (aarch64_dup_lane<mode>): Allow for VALL.
19713 (aarch64_dup_lane_scalar<mode>): Remove.
19714 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19715 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19716 (aarch64_get_lane_unsigned<mode>): Likewise.
19717 (aarch64_get_lane<mode>): Likewise.
19718 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19719 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19720 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19721 (VCON): Change container of V2SF.
19722 (vswap_width_name): Likewise.
19723 * config/aarch64/arm_neon.h
19724 (__aarch64_vdup_lane_any): New.
19725 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19726 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19727 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19729 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19731 PR middle-end/56382
19732 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19733 the source or the destination is a single hard register.
19735 2013-09-02 Richard Biener <rguenther@suse.de>
19737 PR middle-end/57511
19738 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19741 2013-09-02 Richard Biener <rguenther@suse.de>
19743 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19744 arithmetic to sizetype.
19746 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19748 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19749 Find auto-increment use both before and after candidate.
19751 2013-09-02 Marek Polacek <polacek@redhat.com>
19753 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19755 2013-09-01 Jan Hubicka <jh@suse.cz>
19757 * Makefile.in: Add ipa-profile.o
19758 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19759 * cgraph.c (struct cgraph_propagate_frequency_data,
19760 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19761 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19762 * cgraph.h (cgraph_propagate_frequency): Remove.
19763 * ipa-inline-analysis.c: Include ipa-utils.h;
19764 drop duplicated cfgloop.h.
19765 (inline_update_callee_summaries): Update.
19766 * ipa-profile.c: New file.
19767 * ipa-utils.h (ipa_propagate_frequency): Declare.
19768 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19769 data-streamer.h, value-prof.h.
19770 (symtab_remove_unreachable_nodes): Update profile.
19771 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19772 account_time_size, cmp_counts, dump_histogram,
19773 ipa_profile_generate_summary, ipa_profile_write_summary,
19774 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19775 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19776 Move to ipa-profile.c.
19778 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19780 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19782 2013-09-01 Jan Hubicka <jh@suse.cz>
19784 * common.opt (fdevirtualize-speculatively): New function.
19785 * invoke.texi (fdevirtualize-speculatively): Document.
19786 * ipa-devirt.c: Include ipa-inline.h
19787 (likely_target_p): New function.
19788 (ipa_devirt): New function.
19789 (gate_ipa_devirt): New function.
19790 (pass_data_ipa_devirt): New static var.
19791 (pass_ipa_devirt): Likewise.
19792 (make_pass_ipa_devirt): New function.
19793 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19794 (common_handle_option): Disable devirtualization when
19795 value range profiling is available.
19796 * passes.def (pass_ipa_devirt): Add.
19797 * timever.def (TV_IPA_DEVIRT): New timevar.
19798 * tree-pass.h (make_pass_ipa_devirt):
19800 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19802 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19803 include sanitize(undefined).
19805 2013-08-31 Diego Novillo <dnovillo@google.com>
19807 * Makefile.in (TREE_CORE_H): Define.
19809 (GTFILES): Add tree-core.h.
19810 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19812 * tree-core.h: New file.
19813 Move all data structures, enum, typedefs, global
19814 declarations and constants from ...
19815 * tree.h: ... here.
19817 2013-08-31 Jan Hubicka <jh@suse.cz>
19819 * bulitins.c (expand_builtin): Do not early exit for gcov
19820 instrumented functions.
19822 2013-08-31 Marek Polacek <polacek@redhat.com>
19824 * ubsan.c: Include tm_p.h.
19826 2013-08-31 Jan Hubicka <jh@suse.cz>
19828 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19831 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19832 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19833 * tree-cfg.c (verify_gimple_label): ... here.
19834 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19835 (ipa_merge_profiles): New function.
19836 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19837 (lto_input_function_body): Likewise.
19838 * ipa-utils.h (ipa_merge_profiles): Declare.
19839 * lto-streamer.h (lto_input_function_body): Update prototype.
19840 (emit_label_in_global_context_p): Remove.
19841 * lto-symtab.c: Include ipa-utils.h
19842 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19844 2013-08-31 Jan Hubicka <jh@suse.cz>
19846 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19848 2013-08-31 Jan Hubicka <jh@suse.cz>
19850 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19852 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19854 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19855 "cmp" RTX before signed_comparison_operator check to account
19856 for "code" changes.
19858 2013-08-30 Jan Hubicka <jh@suse.cz>
19860 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19861 (detect_type_change_1): Rename to ...
19862 (detect_type_change): ... this one; early return on non-polymorphic
19864 (detect_type_change_ssa): Add comp_type parameter; update
19865 use of detect_type_change.
19866 (compute_complex_assign_jump_func): Add param_type parameter;
19867 update use of detect_type_change_ssa.
19868 (compute_complex_ancestor_jump_func): Likewise.
19869 (ipa_get_callee_param_type): New function.
19870 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19871 update calls to the jump function computation functions.
19873 2013-08-30 Teresa Johnson <tejohnson@google.com>
19874 Steven Bosscher <steven@gcc.gnu.org>
19876 * cfgrtl.c (fixup_new_cold_bb): New routine.
19877 (commit_edge_insertions): Invoke fixup_partitions.
19878 (find_partition_fixes): New routine.
19879 (fixup_partitions): Ditto.
19880 (verify_hot_cold_block_grouping): Update comments.
19881 (rtl_verify_edges): Invoke find_partition_fixes.
19882 (rtl_verify_bb_pointers): Update comments.
19883 (rtl_verify_bb_layout): Ditto.
19884 * basic-block.h (probably_never_executed_edge_p): Declare.
19885 (fixup_partitions): Ditto.
19886 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19887 * bb-reorder.c (sanitize_hot_paths): New function.
19888 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19889 sanitize_hot_paths.
19890 * predict.c (probably_never_executed_edge_p): New routine.
19891 * cfg.c (check_bb_profile): Add partition insanity warnings.
19893 2013-08-30 Meador Inge <meadori@codesourcery.com>
19895 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19897 2013-08-30 Marek Polacek <polacek@redhat.com>
19899 * Makefile.in (ubsan.o): Add.
19900 (c-family/c-ubsan.o): Add.
19901 (builtins.o): Add ubsan.h dependency.
19902 * ubsan.h: New file.
19903 * ubsan.c: New file.
19904 * common.opt: Add -fsanitize=undefined option.
19905 (flag_sanitize): Add variable.
19906 (fsanitize=): Add option. Add Driver.
19907 (fsanitize=thread): Remove option.
19908 (fsanitize=address): Likewise.
19909 (static-libubsan): New option.
19910 * doc/invoke.texi: Document the new flag and -static-libubsan.
19911 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19912 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19913 * builtin-attrs.def (ATTR_COLD): Define.
19914 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19915 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19916 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19917 * flag-types.h (sanitize_code): New enum.
19918 * opts.c (common_handle_option): Parse command line arguments
19919 of -fsanitize=. Add -fsanitize=unreachable option.
19920 * varasm.c (get_variable_section): Adjust.
19921 (assemble_noswitch_variable): Likewise.
19922 (assemble_variable): Likewise.
19923 (output_constant_def_contents): Likewise.
19924 (categorize_decl_for_section): Likewise.
19925 (place_block_symbol): Likewise.
19926 (output_object_block): Likewise.
19927 * builtins.def: Likewise.
19928 * toplev.c (compile_file): Likewise.
19929 (process_options): Likewise.
19930 * cppbuiltin.c: Likewise.
19931 * tsan.c (tsan_pass): Likewise.
19932 (tsan_gate): Likewise.
19933 (tsan_gate_O0): Likewise.
19934 * cfgexpand.c (partition_stack_vars): Likewise.
19935 (expand_stack_vars): Likewise.
19936 (defer_stack_allocation): Likewise.
19937 (expand_used_vars): Likewise.
19938 * cfgcleanup.c (old_insns_match_p): Likewise.
19939 * asan.c (asan_finish_file): Likewise.
19940 (asan_instrument): Likewise.
19941 (gate_asan): Likewise.
19942 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19943 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19944 (asan_global_struct): Use pointer_sized_int_node instead
19945 calling build_nonstandard_integer_type.
19946 (initialize_sanitizer_builtins): Likewise.
19947 (asan_finish_file): Likewise.
19948 * gcc.c: Document %{%:function(args):X}.
19949 (static_spec_functions): Add sanitize.
19950 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19951 store funcval != NULL there.
19952 (do_spec_1): Adjust handle_spec_function caller.
19953 (handle_braces): Allow %:function(args) as condition.
19954 (sanitize_spec_function): New function.
19955 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19956 (LIBUBSAN_SPEC): Likewise.
19957 (LIBUBSAN_EARLY_SPEC): Likewise.
19958 (SANITIZER_SPEC): Handle libubsan.
19959 (SANITIZER_EARLY_SPEC): Likewise.
19960 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19961 instead of fsanitize=address.
19962 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19963 instead of fsanitize=address*.
19964 * builtins.c: Include ubsan.h.
19965 (fold_builtin_0): Instrument __builtin_unreachable.
19966 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19967 instead of flag_asan.
19968 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19969 (pointer_sized_int_node): Define.
19970 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19972 2013-08-30 Mike Stump <mikestump@comcast.net>
19974 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19977 2013-08-29 Jan Hubicka <jh@suse.cz>
19979 * cgraph.c (cgraph_function_body_availability): Handle weakref
19981 * passes.def: Remove pass_fixup_cfg.
19982 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19983 track when we need to remove functions.
19984 (gate_ipa_inline): Execute inlining always; add comment why.
19985 (pass_data_ipa_inline): Remove TODO_remove_functions.
19986 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19987 do not produce summaries.
19988 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19989 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19990 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19991 constant pool and vtable.
19993 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19995 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19996 New arm_neon.h's internal macros to specify 64-bit constants.
19997 Avoid using stdint.h's macros.
19999 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20001 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20002 before applying REG_P.
20004 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20006 PR tree-optimization/58277
20007 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20008 after seeing too many stmts with vdef in between dombb and current
20009 bb, invalidate everything.
20011 2013-08-30 Richard Biener <rguenther@suse.de>
20013 * fold-const.c (fold_single_bit_test): Fix overflow test.
20015 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20017 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20018 and which can live in a register, always retrieve the value on entry.
20019 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20020 passed by invisible reference specially.
20021 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20022 (vt_add_function_parameter): Correctly deal with a parameter passed by
20023 invisible reference.
20025 2013-08-30 Jan Hubicka <jh@suse.cz>
20027 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20029 2013-08-30 Richard Biener <rguenther@suse.de>
20031 PR tree-optimization/58228
20032 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20033 allow invariant loads in nested loop vectorization.
20035 2013-08-30 Richard Biener <rguenther@suse.de>
20037 PR tree-optimization/58223
20038 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20039 (has_anti_or_output_dependence): ... this and adjust to also
20040 look for output dependences.
20041 (mark_nodes_having_upstream_mem_writes): Adjust.
20042 (rdg_flag_uses): Likewise.
20044 2013-08-30 Richard Biener <rguenther@suse.de>
20046 PR tree-optimization/58010
20047 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20048 assert that we have a loop-closed PHI.
20050 2013-08-29 Jan Hubicka <jh@suse.cz>
20052 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20053 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20054 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20055 (lto_free_function_in_decl_state_for_node): New function.
20057 2013-08-29 Xinliang David Li <davidxl@google.com>
20059 * loop-unroll.c (report_unroll_peel): Minor message change.
20060 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20061 Emit alignment peeling message with default -fopt-info.
20062 (vect_loop_versioning): Emit loop version info message.
20063 * tree-vectorizer.c (vectorize_loops): Minor message change.
20064 (execute_vect_slp): Ditto.
20066 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20068 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20069 of the clone from the DECL_NAME of the original function.
20071 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20073 * passes.c (register_pass): Add overload.
20074 * tree-pass.h (register_pass): Forward declare it. Add comment.
20076 2013-08-29 Jan Hubicka <jh@suse.cz>
20078 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20079 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20080 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20081 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20082 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20083 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20084 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20085 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20087 2013-08-29 Teresa Johnson <tejohnson@google.com>
20089 * dumpfile.c (dump_loc): Output column number.
20090 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20091 * doc/invoke.texi: Document optall -fopt-info flag.
20092 * profile.c (read_profile_edge_counts): Use new dump framework.
20093 (compute_branch_probabilities): Ditto.
20094 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20095 when pass not in any opt group.
20096 * pass_manager.h (pass_manager::get_pass_profile): New method.
20097 * value-prof.c (check_counter): Use new dump framework.
20098 (check_ic_target): Ditto.
20099 * coverage.c (get_coverage_counts): Ditto.
20100 (coverage_init): Setup new dump framework.
20102 2013-08-29 Richard Biener <rguenther@suse.de>
20104 PR tree-optimization/58246
20105 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20106 handle the dominance check inside a basic-block.
20108 2013-08-29 Richard Biener <rguenther@suse.de>
20110 PR middle-end/57287
20111 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20112 of default defs that appear in abnormal PHI nodes.
20114 2013-08-29 Richard Biener <rguenther@suse.de>
20116 PR tree-optimization/57685
20117 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20118 single-use operands to avoid exponential complexity.
20120 2013-08-28 Dehao Chen <dehao@google.com>
20122 * ipa-inline.c (edge_badness): Fix integer underflow.
20124 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20126 * gtm-builtins.def (_ITM_free): Declare leaf.
20128 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20131 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20132 (*tls_local_dynamic_base_64_largepic): Likewise.
20133 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20134 Remove predicate from call operand.
20135 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20136 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20138 2013-08-28 Jeff Law <law@redhat.com>
20140 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20141 checks for the number of predecessors and successors allowed.
20142 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20143 which require copying a joiner block if there is a request which
20144 is a subpath that requires no joiner block copying.
20146 2013-08-28 Jan Hubicka <jh@suse.cz>
20148 * lto-streamer-out.c (DFS_write_tree_body): Drop
20149 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20150 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20151 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20152 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20153 Do not read DECL_ERROR_ISSUED.
20154 (unpack_ts_decl_with_vis_value_fields): Do not read
20156 (lto_input_ts_binfo_tree_pointers): Do not read
20157 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20158 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20159 write DECL_ERROR_ISSUED..
20160 (pack_ts_decl_with_vis_value_fields): Do not write
20162 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20163 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20164 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20165 * tree.h (tree_decl_common): Update comment.
20166 (DECL_ERROR_ISSUED): Remove.
20168 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20170 PR middle-end/58257
20171 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20173 2013-08-28 Jan Hubicka <jh@suse.cz>
20175 * builtins.def (free): Declare leaf.
20177 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20179 * gdbhooks.py: New.
20180 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20181 * configure: Regenerate.
20183 2013-08-27 Martin Jambor <mjambor@suse.cz>
20185 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20186 (ipa_ancestor_jf_data): Likewise.
20187 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20188 (ipa_get_jf_pass_through_type_preserved): New function.
20189 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20190 (ipa_get_jf_ancestor_type_preserved): New function.
20191 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20192 (ipa_get_jf_ancestor_result): Likewise.
20193 (propagate_vals_accross_pass_through): Use
20194 ipa_get_jf_pass_through_result to do all the value mappings.
20195 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20196 type_preserved flag.
20197 (ipa_set_jf_cst_copy): New function.
20198 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20199 (ipa_set_jf_arith_pass_through): Likewise.
20200 (ipa_set_ancestor_jf): Likewise.
20201 (compute_complex_assign_jump_func): Set type_preserved instead of
20203 (ipa_compute_jump_functions_for_edge): Likewise.
20204 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20205 (update_jump_functions_after_inlining): Update type_preserved.
20206 Explicitely create jump functions when combining one with pass_through.
20207 (ipa_write_jump_function): Stream the type_preserved flags.
20208 (ipa_read_jump_function): Likewise.
20210 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20211 Aldy Hernandez <aldyh@redhat.com>
20213 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20214 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20215 * function.h (struct function): Add has_force_vect_loops and
20217 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20218 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20220 * gimple.def: Update CLAUSES comments.
20221 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20222 (gimple_build_omp_for): Add argument to prototype.
20223 (gimple_omp_for_kind): New.
20224 (gimple_omp_for_set_kind): New.
20225 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20226 GOVD_DATA_SHARE_CLASS.
20227 (enum omp_region_type): Add ORT_SIMD.
20228 (gimple_add_tmp_var): Handle ORT_SIMD.
20229 (gimplify_var_or_parm_decl): Same.
20230 (is_gimple_stmt): Same.
20231 (omp_firstprivatize_variable): Same.
20232 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20233 (omp_notice_variable): Handle ORT_SIMD.
20234 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20235 (omp_check_private): Handle ORT_SIMD.
20236 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20237 OMP_CLAUSE_SAFELEN.
20238 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20239 Handle OMP_CLAUSE_LASTPRIVATE.
20240 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20241 OMP_CLAUSE_SAFELEN.
20242 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20243 (gimplify_expr): Handle OMP_SIMD.
20244 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20245 (expand_GOMP_SIMD_VF): New.
20246 (expand_GOMP_SIMD_LAST_LANE): New.
20247 * internal-fn.def (GOMP_SIMD_LANE): New.
20248 (GOMP_SIMD_VF): New.
20249 (GOMP_SIMD_LAST_LANE): New.
20250 * omp-low.c: Include target.h.
20251 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20252 OMP_CLAUSE_SAFELEN.
20253 (check_omp_nesting_restrictions): Same.
20255 (lower_rec_simd_input_clauses): New.
20256 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20258 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20259 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20260 (expand_omp_build_assign): New.
20261 (expand_omp_for_init_counts): New.
20262 (expand_omp_for_init_vars): New.
20263 (extract_omp_for_update_vars): New.
20264 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20265 and rewrite accordingly.
20266 (expand_omp_simd): New.
20267 (expand_omp_for): Use expand_omp_simd.
20268 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20269 (lower_omp_for): Do not lower the body.
20270 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20271 in their own loops.
20272 * tree-flow.h (find_omp_clause): Remove prototype.
20273 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20274 forcing vectorization of the loop, or if flag_tree_vectorize.
20275 (gate_tree_if_conversion): Similarly.
20276 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20277 gimple_build_omp_for.
20278 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20279 * tree-parloops (create_parallel_loop): Pass kind argument to
20280 gimple_build_omp_for.
20281 * tree-pretty-print.c (dump_omp_clause): Add cases for
20282 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20283 OMP_CLAUSE__SIMDUID_.
20284 (dump_generic_node): Handle OMP_SIMD.
20285 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20286 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20287 unroll OMP_SIMD loops here.
20288 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20289 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20291 (vect_analyze_data_refs): Handle simd loops.
20292 * tree-vect-loop.c (vectorizable_live_operation): Handle
20294 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20295 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20296 (vectorizable_load): Same.
20297 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20298 (struct simduid_to_vf): New.
20299 (simduid_to_vf::hash): New.
20300 (simduid_to-vf::equal): New.
20301 (struct simd_array_to_simduid): New.
20302 (simd_array_to_simduid::hash): New.
20303 (simd_array_to_simduid::equal): New.
20304 (adjust_simduid_builtins): New.
20305 (struct note_simd_array_uses_struct): New.
20306 (note_simd_array_uses_cb): New.
20307 (note_simd_array_uses): New.
20308 (vectorize_loops): Handle simd hints and adjust simd builtins
20310 * tree-vectorizer.h (struct _stmt_vec_info): Add
20311 simd_lane_access_p field.
20312 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20313 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20314 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20315 (omp_clause_code_name): Same.
20316 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20317 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20318 * tree.def (OMP_SIMD): New entry.
20319 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20320 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20321 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20322 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20323 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20324 (OMP_CLAUSE_LINEAR_STEP): New.
20325 (OMP_CLAUSE_SAFELEN_EXPR): New.
20326 (OMP_CLAUSE__SIMDUID__DECL): New.
20327 (find_omp_clause): New prototype.
20329 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20331 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20332 Haswell processor detection.
20334 2013-08-27 Christian Widmer <shadow@umbrox.de>
20337 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20338 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20339 AVX2 capable processors.
20341 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20343 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20344 of vget_low_* with implementations in terms of other intrinsics.
20346 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20348 PR middle-end/57219
20349 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20350 values to -1, 0 and 1.
20352 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20354 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20355 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20356 (<optab><mode>3_insn): Remove.
20357 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20358 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20359 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20360 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20361 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20362 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20363 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20364 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20365 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20366 (ror<mode>3_insn): Likewise.
20367 * config/aarch64/predicates.md (aarch64_simd_register): New.
20369 2013-08-27 Richard Biener <rguenther@suse.de>
20371 PR tree-optimization/57521
20372 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20373 one edge is non-critical.
20374 (find_phi_replacement_condition): Make sure to use a non-critical
20375 edge. Cleanup and remove old bug workarounds.
20376 (bb_postdominates_preds): Remove.
20377 (if_convertible_loop_p_1): Do not compute post-dominators.
20378 (combine_blocks): Do not free post-dominators.
20379 (main_tree_if_conversion): Likewise.
20380 (pass_data_if_conversion): Add TODO_verify_ssa.
20382 2013-08-27 DJ Delorie <dj@redhat.com>
20384 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20386 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20388 * function.c (assign_parm_find_data_types): Set passed_mode and
20389 nominal_mode to the TYPE_MODE of nominal_type for the built
20390 pointer type in case of the struct-pass-by-reference.
20392 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20394 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20395 (UINT16_TYPE): Change default to "unsigned int".
20397 * config/avr/avr.opt (mfract-convert-truncate): New option.
20398 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20399 is set, round negative fractional integers according to n1169
20400 when converting to integer types.
20402 2013-08-26 Jan Hubicka <jh@suse.cz>
20404 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20405 methods can not be called indirectly when their address is not taken.
20407 2013-08-26 Jan Hubicka <jh@suse.cz>
20409 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20412 2013-08-26 Jan Hubicka <jh@suse.cz>
20414 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20417 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20419 * reload.c (find_valid_class): Allow classes that do not include
20420 FIRST_PSEUDO_REGISTER - 1.
20422 2013-08-26 Jan Hubicka <jh@suse.cz>
20424 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20425 fix edge count/frequency when speculation failed; fix type check
20426 for the direct call.
20428 2013-08-26 Jan Hubicka <jh@suse.cz>
20430 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20432 2013-08-26 Jan Hubicka <jh@suse.cz>
20434 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20435 to be changed by edge redirection.
20437 2013-08-26 Jan Hubicka <jh@suse.cz>
20439 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20440 formating; add sanity check.
20441 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20442 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20443 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20444 (resolve_noninline_speculation): Update callee keys, too.
20446 2013-08-26 Jan Hubicka <jh@suse.cz>
20448 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20449 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20451 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20453 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20456 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20458 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20459 (x86_64_elf_select_section): Ditto.
20460 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20462 (ix86_pass_by_reference): Ditto.
20463 (output_set_got): Ditto.
20464 (ix86_unary_operator_ok): Ditto.
20465 (ix86_expand_builtin): Ditto.
20467 2013-08-23 Jan Hubicka <jh@suse.cz>
20469 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20471 2013-08-23 Jan Hubicka <jh@suse.cz>
20473 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20474 (tree_decl_with_vis): Add FINAL field.
20476 2013-08-23 Jeff Law <law@redhat.com>
20478 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20479 the debugging dump when the expression is fully redundant.
20481 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20483 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20484 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20485 * pretty-print.c (pp_formatted_text_data): Likewise.
20486 (pp_write_text_to_stream): Likewise.
20487 (pp_write_text_as_dot_label_to_stream): Likewise.
20488 (pp_append_r): Likewise.
20489 (pp_format): Likewise.
20490 (pp_flush): Likewise.
20491 (pp_clear_output_area): Likewise.
20492 (pp_append_text): Likewise.
20493 (pp_formatted_text): Likewise.
20494 (pp_remaining_character_count_for_line): Likewise.
20495 (pp_newline): Likewise.
20496 (pp_character): Likewise.
20497 (output_buffer::~output_buffer): Define.
20498 (pretty_printer::~pretty_printer): Destruct output buffer.
20499 * pretty-print.h (output_buffer::~output_buffer): Declare.
20500 (pretty_printer::~pretty_printer): Declare virtual.
20502 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20505 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20506 HOST_WIDE_INT_M1U): New macros.
20507 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20508 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20509 unsigned -1 for lshift.
20510 * cse.c (cse_insn): Likewise.
20511 * double-int.c (rshift_double, lshift_double): Likewise.
20512 * builtins.c (fold_builtin_bitop): Likewise.
20513 * combine.c (force_to_mode): Likewise.
20514 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20515 * simplify-rtx.c (simplify_const_unary_operation,
20516 simplify_const_binary_operation): Likewise.
20517 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20518 check_va_list_escapes): Likewise.
20519 * rtlanal.c (nonzero_bits1): Likewise.
20520 * expmed.c (expand_smod_pow2): Likewise.
20521 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20523 2013-08-23 Jan Hubicka <jh@suse.cz>
20525 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20526 as having address taken.
20528 2013-08-23 Jan Hubicka <jh@suse.cz>
20530 * ipa-utils.h (method_class_type): Declare.
20531 * ipa-devirt.c (method_class_type): Export.
20533 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20534 do not walk base classes of anonymous types.
20536 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20538 PR rtl-optimization/58220
20539 PR regression/58221
20540 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20541 handle SEQUENCE insns properly.
20543 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20545 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20547 (pp_newline_and_indent): Likewise.
20548 (pp_separate_with): Likewise.
20549 * pretty-print.c (pp_newline_and_flush): Define.
20550 (pp_newline_and_indent): Likewise.
20551 (pp_separate_with): Likewise.
20553 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20556 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20557 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20559 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20561 * config/i386/predicates.md (ext_sse_reg_operand): New.
20562 * config/i386/i386.md (*movti_internal): Use
20563 predicate to determine if EVEX is needed.
20564 (*movsi_internal): Ditto.
20565 (*movdf_internal): Ditto.
20566 (*movsf_internal): Ditto.
20567 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20569 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20571 PR tree-optimization/58209
20572 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20573 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20574 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20575 emit POINTER_PLUS_EXPR.
20576 (create_tailcall_accumulator): For pointer result type accumulate in
20579 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20581 * configure.ac: Add backslashes missing from the last change.
20582 * configure: Regenerate.
20584 2013-08-22 Jan Hubicka <jh@susue.cz>
20586 * ipa.c (function_and_variable_visibility): First remember function
20587 was global and then make it local.
20589 2013-08-22 Julian Brown <julian@codesourcery.com>
20591 * configure.ac: Add aarch64 to list of arches which use "nop" in
20593 * configure: Regenerate.
20595 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20597 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20598 gnu_libc_has_function.
20599 * config/s390/tpf.h: Likewise.
20601 2013-08-22 Jan Hubicka <jh@susue.cz>
20603 * timevar.c (validate_phases): Add cast.
20605 2013-08-22 Jan Hubicka <jh@susue.cz>
20607 * timevar.c (validate_phases): Use size_t for memory.
20608 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20610 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20612 * pretty-print.h (output_buffer::output_buffer): Declare.
20613 (pretty_printer::pretty_printer): Likewise.
20614 (pp_construct): Remove.
20615 * pretty-print.c (output_buffer::output_buffer): Define.
20616 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20617 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20618 (print_gimple_expr): Likewise.
20619 (print_gimple_seq): Likewise.
20620 (gimple_dump_bb): Likewise.
20621 * sched-vis.c (dump_value_slim): Likewise.
20622 (dump_insn_slim): Likewise.
20623 (dump_rtl_slim): Likewise.
20624 (str_pattern_slim): Likewise.
20625 * tree-mudflap.c (mf_varname_tree): Likewise.
20626 * graph.c (print_graph_cfg): Likewise.
20627 (start_graph_dump): Likewise.
20628 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20630 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20631 pretty printer initialization.
20632 * coretypes.h (diagnostic_context): Remove superflous type alias
20634 (pretty_printer): Likewise. Declare directly as a class.
20635 (pretty_print_info): Remove declaration as class.
20636 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20637 and pp_clear_output_area.
20638 (asan_add_global): Likewise.
20640 2013-08-22 Jan Hubicka <jh@suse.cz>
20642 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20643 * ipa-utils.h (update_type_inheritance_graph): Declare.
20644 (possible_polymorphic_call_target_p): Declare.
20645 (possible_polymorphic_call_target_p): New.
20646 * ipa-devirt.c: Update toplevel comments.
20647 (cached_polymorphic_call_targets): Move up.
20648 (odr_type_d): Move ID down.
20649 (polymorphic_type_binfo_p): Update comment.
20650 (odr_hasher::remove): Likewise;
20651 (get_odr_type): Set anonymous_namespace.
20652 (dump_odr_type): Dump it.
20653 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20654 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20655 (record_binfo): Add comment.
20656 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20658 (devirt_node_removal_hook): Do not iCE when cache is freed.
20659 (possible_polymorphic_call_target_p): New predicate.
20660 (update_type_inheritance_graph): New function.
20662 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20664 Sergey Lega <sergey.s.lega@intel.com>
20665 Anna Tikhonova <anna.tikhonova@intel.com>
20666 Ilya Tocar <ilya.tocar@intel.com>
20667 Andrey Turetskiy <andrey.turetskiy@intel.com>
20668 Ilya Verbin <ilya.verbin@intel.com>
20669 Kirill Yukhin <kirill.yukhin@intel.com>
20670 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20672 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20673 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20674 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20675 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20676 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20677 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20678 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20679 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20680 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20681 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20682 OPT_mavx512pf, OPT_mavx512er cases.
20683 * config/i386/constraints.md (v): New constraint.
20684 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20685 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20686 (bit_AVX512CD): New.
20687 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20688 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20689 * config/i386/i386-c.c (ix86_target_macros_internal):
20690 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20692 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20693 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20694 * config/i386/i386.c (regclass_map, dbx_register_map)
20695 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20696 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20697 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20698 -mavx512pf options.
20699 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20700 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20701 -mavx512pf options. Fix formatting.
20702 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20703 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20704 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20705 -mavx512cd, -mavx512pf options.
20706 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20707 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20708 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20710 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20711 (ix86_set_reg_reg_cost): Ditto.
20712 (x86_order_regs_for_local_alloc): Ditto.
20713 (MAX_VECT_LEN): Extend to 64-byte.
20714 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20715 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20716 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20717 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20718 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20719 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20720 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20721 (SSE_REG_MODE_P): Support new modes.
20722 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20723 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20724 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20725 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20726 (REG_CLASS_CONTENTS): Add new registers.
20727 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20728 (EXT_REX_SSE_REGNO_P): New.
20729 (HI_REGISTER_NAMES): Add new registers.
20730 * config/i386/i386.md: Define constants for new registers.
20731 (mode): Add new 512-bit modes.
20732 (prefix): Support evex prefix.
20733 (isa): Support avx512f, noavx512f, fma_avx512f.
20734 (ssemodesuffix): Add new 512-bit modes.
20736 (*movxi_internal_avx512f): Ditto.
20737 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20739 (*movsi_internal): Likewise.
20740 (*movdf_internal): Likewise.
20741 (*movsf_internal): Likewise.
20742 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20743 (<code><mode>3): Likewise.
20744 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20746 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20747 with the new constraint "v".
20748 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20750 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20751 with the new constraint "v".
20752 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20753 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20754 (*<plusminus_insn><mode>3): Likewise.
20755 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20756 (*mul<mode>3): Likewise.
20757 (<sse>_vmmul<mode>3): Likewise.
20758 (<sse>_div<mode>3): Likewise.
20759 (<sse>_vmdiv<mode>3): Likewise.
20760 (<sse>_sqrt<mode>2): Likewise.
20761 (<sse>_vmsqrt<mode>2): Likewise.
20762 (*<code><mode>3_finite): Likewise.
20763 (*<code><mode>3) <smaxmin>: Likewise.
20764 (<sse>_vm<code><mode>3): Likewise.
20765 (*<code><mode>3) <any_logic>: Likewise.
20766 (*fma_fmadd_<mode>): Likewise.
20767 (*fma_fmsub_<mode>): Likewise.
20768 (*fma_fnmadd_<mode>): Likewise.
20769 (*fma_fnmsub_<mode>): Likewise.
20770 (*fma_fmaddsub_<mode>): Likewise.
20771 (*fma_fmsubadd_<mode>): Likewise.
20772 (*fmai_fmadd_<mode>): Likewise.
20773 (*fmai_fmsub_<mode>): Likewise.
20774 (*fmai_fnmadd_<mode>): Likewise.
20775 (*fmai_fnmsub_<mode>): Likewise.
20776 (sse_cvtsi2ss): Likewise.
20777 (sse_cvtsi2ssq): Likewise.
20778 (sse_cvtss2si): Likewise.
20779 (sse_cvtss2si_2): Likewise.
20780 (sse_cvtss2siq): Likewise.
20781 (sse_cvtss2siq_2): Likewise.
20782 (sse_cvttss2si): Likewise.
20783 (sse_cvtss2siq_2): Likewise.
20784 (float<sseintvecmodelower><mode>2): Likewise.
20785 (sse2_cvtsd2si_2): Likewise.
20786 (sse2_cvtsd2siq_2): Likewise.
20787 (*<plusminus_insn><mode>3): Likewise.
20788 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20789 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20790 (ashr<mode>3): Likewise.
20791 (<shift_insn><mode>3): Likewise.
20792 (avx2_<code><mode>3): Likewise.
20793 (*avx2_<code><mode>3): Likewise.
20794 (*andnot<mode>3): Likewise.
20795 (*<code><mode>3) <any_logic>: Likewise.
20796 (abs<mode>2): Likewise.
20797 (avx2_permvar<mode>): Likewise.
20798 (avx2_perm<mode>_1): Likewise.
20799 (*avx_vpermilp<mode>): Likewise.
20800 (avx_vpermilvar<mode>3): Likewise.
20801 (avx2_ashrv<mode>): Likewise.
20802 (avx2_<shift_insn>v<mode>): Likewise.
20803 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20805 * doc/rtl.texi: Document XImode.
20807 2013-08-21 Jeff Law <law@redhat.com>
20809 * tree-flow.h (register_jump_thread): Pass vector of edges
20810 instead of each important edge.
20811 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20812 thread path into a vector and pass that to register_jump_thread.
20813 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20814 passed in edge vector to the current 3-edge form.
20817 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20819 * dce.c (fini_dce): Call df_analyze again just in case
20820 delete_unmarked_insns removed anything.
20822 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20824 * reload.h (struct reg_equivs): Rename to ..
20825 (struct reg_equivs_s): .. this.
20827 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20829 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20831 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20833 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20835 2013-08-21 Jeff Law <law@redhat.com>
20837 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20838 simplify assignments too. If the RHS collapses to a singleton
20839 range, then return the value for the range.
20841 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20843 * config/i386/sse.md (V16): Rename to...
20845 (mov<mode>): Update iterator name.
20846 (*mov<mode>_internal): Ditto.
20847 (push<mode>1): Ditto.
20848 (movmisalign<mode>): Ditto.
20850 2013-08-20 Jan Hubicka <jh@suse.cz>
20853 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20854 entry for direct edges.
20855 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20857 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20859 Revert my last two changes, r201865 and r201864:
20862 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20864 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20865 instances can own GC refs.
20867 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20868 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20869 (gcc::context::gt_pch_nx): Likewise.
20870 (gcc::context::gt_pch_nx): Likewise.
20871 * ggc.h (gt_ggc_mx <T>): New.
20872 (gt_pch_nx_with_op <T>): New.
20873 (gt_pch_nx <T>): New.
20874 * passes.c (opt_pass::gt_ggc_mx): New.
20875 (opt_pass::gt_pch_nx): New.
20876 (opt_pass::gt_pch_nx_with_op): New.
20877 (pass_manager::gt_ggc_mx): New.
20878 (pass_manager::gt_pch_nx): New.
20879 (pass_manager::gt_pch_nx_with_op): New.
20880 (pass_manager::operator new): Use
20881 ggc_internal_cleared_alloc_stat rather than xcalloc.
20882 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20883 (pass_manager::gt_ggc_mx): New.
20884 (pass_manager::gt_pch_nx): New.
20885 (pass_manager::gt_pch_nx_with_op): New.
20886 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20887 (opt_pass::operator new): New.
20888 (opt_pass::gt_ggc_mx): New.
20889 (opt_pass::gt_pch_nx): New.
20890 (opt_pass::gt_pch_nx_with_op): New.
20893 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20895 * Makefile.in (GTFILES): Add context.h.
20896 * context.c (gcc::context::operator new): New.
20897 (gcc::context::gt_ggc_mx): New.
20898 (gcc::context::gt_pch_nx): New.
20899 (gcc::context::gt_pch_nx): New.
20900 * context.h (gcc::context): Add GTY((user)) marking.
20901 (gcc::context::operator new): New.
20902 (gcc::context::gt_ggc_mx): New.
20903 (gcc::context::gt_pch_nx): New.
20904 (gcc::context::gt_pch_nx): New.
20905 (g): Add GTY marking.
20906 (gt_ggc_mx (gcc::context *)): New.
20907 (gt_pch_nx (gcc::context *)): New.
20908 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20909 void *cookie)): New.
20910 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20912 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20914 * dce.c (fini_dce): Call df_analyze again just in case
20915 delete_unmarked_insns removed anything.
20917 2013-08-20 Teresa Johnson <tejohnson@google.com>
20919 PR rtl-optimizations/57451
20920 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20921 from crossing split section boundaries.
20923 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20925 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20926 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20927 with MULTLIB_DEFAULTS.
20929 2013-08-20 Nick Clifton <nickc@redhat.com>
20931 * target.def (narrow_volatile_bitfield): Note that the default
20932 value is false, not !TARGET_STRICT_ALIGN.
20933 * doc/tm.texi: Regenerate.
20935 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20937 Fix LIB_SPEC for systems without libpthread.
20939 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20940 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20942 * config/i386/linux-common.h: Likewise.
20943 * config/mips/linux-common.h: Likewise.
20945 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20947 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20950 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20952 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20953 instances can own GC refs.
20955 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20956 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20957 (gcc::context::gt_pch_nx): Likewise.
20958 (gcc::context::gt_pch_nx): Likewise.
20959 * ggc.h (gt_ggc_mx <T>): New.
20960 (gt_pch_nx_with_op <T>): New.
20961 (gt_pch_nx <T>): New.
20962 * passes.c (opt_pass::gt_ggc_mx): New.
20963 (opt_pass::gt_pch_nx): New.
20964 (opt_pass::gt_pch_nx_with_op): New.
20965 (pass_manager::gt_ggc_mx): New.
20966 (pass_manager::gt_pch_nx): New.
20967 (pass_manager::gt_pch_nx_with_op): New.
20968 (pass_manager::operator new): Use
20969 ggc_internal_cleared_alloc_stat rather than xcalloc.
20970 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20971 (pass_manager::gt_ggc_mx): New.
20972 (pass_manager::gt_pch_nx): New.
20973 (pass_manager::gt_pch_nx_with_op): New.
20974 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20975 (opt_pass::operator new): New.
20976 (opt_pass::gt_ggc_mx): New.
20977 (opt_pass::gt_pch_nx): New.
20978 (opt_pass::gt_pch_nx_with_op): New.
20980 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20982 * Makefile.in (GTFILES): Add context.h.
20983 * context.c (gcc::context::operator new): New.
20984 (gcc::context::gt_ggc_mx): New.
20985 (gcc::context::gt_pch_nx): New.
20986 (gcc::context::gt_pch_nx): New.
20987 * context.h (gcc::context): Add GTY((user)) marking.
20988 (gcc::context::operator new): New.
20989 (gcc::context::gt_ggc_mx): New.
20990 (gcc::context::gt_pch_nx): New.
20991 (gcc::context::gt_pch_nx): New.
20992 (g): Add GTY marking.
20993 (gt_ggc_mx (gcc::context *)): New.
20994 (gt_pch_nx (gcc::context *)): New.
20995 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20996 void *cookie)): New.
20997 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20999 2013-08-20 Alan Modra <amodra@gmail.com>
21002 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21003 (rs6000_emit_epilogue): Likewise.
21005 2013-08-19 Dehao Chen <dehao@google.com>
21007 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21009 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21010 Jakub Jelinek <jakub@redhat.com>
21012 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21013 (BUILT_IN_FABSD64): Likewise.
21014 (BUILT_IN_FABSD128): Likewise.
21015 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21016 (fold_builtin_1): Likewise.
21017 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21018 destination and source operands.
21019 (*abstd2_fpr): Likewise.
21020 (*nabstd2_fpr): Likewise.
21022 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21024 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21027 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21029 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21032 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21034 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21035 * builtins.c (default_libc_has_function): New.
21036 (gnu_libc_has_function): Ditto.
21037 (no_c99_libc_has_function): Ditto.
21038 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21039 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21040 (fold_builtin_sincos): Likewise.
21041 (fold_builtin_cexp): Likewise.
21042 * builtins.def (DEF_C94_BUILTIN): Likewise.
21043 (DEF_C99_BUILTIN): Likewise.
21044 (DEF_C99_C90RES_BUILTIN): Likewise.
21045 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21046 definitions to using this define.
21047 * config/darwin-protos.h (darwin_libc_has_function): New.
21048 * config/darwin.c (darwin_libc_has_function): Ditto.
21049 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21050 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21051 * config/darwin.h: Ditto.
21052 * config/elfos.h: Ditto.
21053 * config/freebsd.h: Ditto.
21054 * config/i386/cygming.h: Ditto.
21055 * config/i386/djgpp.h: Ditto.
21056 * config/i386/i386-interix.h: Ditto.
21057 * config/microblaze/microblaze.h: Ditto.
21058 * config/mmix/mmix.h: Ditto.
21059 * config/gnu-user.h: Ditto.
21060 * config/ia64/hpux.h: Ditto.
21061 * config/pa/pa-hpux.h: Ditto.
21062 * config/pdp11/pdp11.h: Ditto.
21063 * config/picochip/picochip.h: Ditto.
21064 * config/linux.h: Ditto.
21065 * config/netbsd.h: Ditto.
21066 * config/openbsd.h: Ditto.
21067 * config/rs6000/aix43.h: Ditto.
21068 * config/rs6000/aix51.h: Ditto.
21069 * config/rs6000/aix52.h: Ditto.
21070 * config/rs6000/aix53.h: Ditto.
21071 * config/rs6000/aix61.h: Ditto.
21072 * config/rs6000/darwin.h: Ditto.
21073 * config/rs6000/linux.h: Ditto.
21074 * config/rs6000/linux64.h: Ditto.
21075 * config/s390/tpf.h: Ditto.
21076 * config/sol2-10.h: Ditto.
21077 * config/sol2.h: Ditto.
21078 * config/vms/vms.h: Ditto.
21079 * config/vxworks.h: Ditto.
21080 * config/linux-android.c (linux_android_libc_has_function):
21081 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21082 * config/linux-protos.h (linux_android_libc_has_function):
21084 * config/i386/i386.c (ix86_libc_has_function): New.
21085 * config/i386/i386-protos.h
21086 (ix86_libc_has_function): New declaration.
21087 * config/i386/i386.md
21088 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21089 ("isinf<mode>2): Likewise.
21090 * convert.c (convert_to_integer): Using new target hook
21091 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21092 TARGET_C99_FUNCTIONS.
21093 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21094 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21095 * coretypes.h (function_class): New enum for different
21096 classes of functions.
21097 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21098 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21099 (TARGET_HAS_SINCOS): Likewise.
21100 (TARGET_LIBC_HAS_FUNCTION): New.
21101 * doc/tm.texi: Regenerated.
21102 * targhooks.h (default_libc_has_function): New declaration.
21103 (no_c99_libc_has_function): Ditto.
21104 (gnu_libc_has_function): Ditto.
21105 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21106 and TARGET_HAS_SINCOS.
21108 2013-08-18 Jan Hubicka <jh@suse.cz>
21110 * Makeifle-in (ipa-devirt.o): New.
21111 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21112 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21113 (analyze_functions): Look into possible targets of polymorphic call.
21114 * dumpfile.c (dump_files): Add type-inheritance dump.
21115 * dumpfile.h (TDI_inheritance): New.
21116 * ipa-devirt.c: New file.
21117 * ipa-utils.h (odr_type_d): Forward declare.
21118 (odr_type): New type.
21119 (build_type_inheritance_graph): Declare.
21120 (possible_polymorphic_call_targets): Declare and introduce inline
21121 variant when only edge is pased.
21122 (dump_possible_polymorphic_call_targets): Likewise.
21123 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21124 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21125 (types_same_for_odr): ... here.
21126 * tree.h (type_in_anonymous_namespace_p): Declare.
21128 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21130 PR tree-optimization/58006
21131 * tree-parloops.c (take_address_of): Don't ICE if get_name
21133 (eliminate_local_variables_stmt): Remove clobber stmts.
21135 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21137 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21138 error message is issued for an alias to undefined symbol.
21140 2013-08-18 Jan Hubicka <jh@suse.cz>
21142 * cgraph.c (cgraph_create_indirect_edge): Discover
21143 polymorphic calls and record basic info into indirect_info.
21144 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21145 devirtualization, ignore objc function calls.
21146 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21147 call with no parm index info.
21148 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21149 * tree.c (virtual_method_call_p): New function.
21150 * tree.h (virtual_method_call_p): Declare.
21152 2013-08-16 Jan Hubicka <jh@suse.cz>
21154 PR middle-end/58179
21155 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21157 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21159 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21162 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21164 * gengtype.c (type_for_name): Add special-case support for
21165 locating types within the "gcc::" namespace.
21166 (open_base_files): Emit a "using namespace gcc" directive.
21168 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21171 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21172 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21174 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21175 array instead of each individual operand as a separate argument.
21176 (emit_fusion_gpr_load): Likewise.
21177 (expand_fusion_gpr_load): Add new function declaration.
21179 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21180 signature to have the operands passed as an array, instead of as
21181 separate arguments. Allow ZERO_EXTEND to be in the memory
21182 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21183 depend on the register live/dead flags when peepholes are run.
21184 (expand_fusion_gpr_load): New function to be called from the
21185 peephole2 pass, to change the register that addis sets to be the
21187 (emit_fusion_gpr_load): Change the calling signature to have the
21188 operands passed as an array, instead of as separate arguments.
21189 Allow ZERO_EXTEND to be in the memory address, and also
21190 SIGN_EXTEND if -mpower8-fusion-sign.
21192 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21193 unspec enumeration.
21194 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21195 adjust the register addis loads up in the peephole2 pass. Do not
21196 depend on the register live/dead state when the peephole pass is done.
21198 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21200 * gengtype.c (create_user_defined_type): Ensure that the kind
21201 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21202 declaration is seen before the GTY((user)) marking.
21204 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21207 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21209 2013-08-16 Jan Hubicka <jh@suse.cz>
21211 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21212 arugment expected_type.
21213 (gimple_fold_call): Use it.
21214 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21215 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21216 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21217 (try_make_edge_direct_virtual_call): Likewise.
21218 * tree.c (obj_type_ref_class): New.
21219 * tree.h (obj_type_ref_class): Use it.
21221 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21223 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21224 (rtl_slim_pp): Likewise.
21225 (init_rtl_slim_pretty_print): Likewise.
21226 (dump_value_slim): Don't call it. Use local pretty printer.
21227 (dump_insn_slim): Likewise.
21228 (dump_rtl_slim): Likewise.
21229 (str_pattern_slim): Likewise.
21230 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21233 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21235 PR tree-optimization/58164
21236 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21237 walk gimple_goto_dest of GIMPLE_GOTO.
21239 PR tree-optimization/58165
21240 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21241 bi_call must be the last stmt in a bb, don't split_block, instead
21242 use fallthru edge from it and give up if there is none.
21243 Release conds vector when returning early.
21245 2013-08-14 Xinliang David Li <davidxl@google.com>
21247 * config/i386/i386.c (ix86_option_override_internal):
21248 Remove unused variable and field.
21250 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21253 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21254 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21255 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21256 and Linux, correct BLKmode alignment when 128-bit alignment is
21257 required and compatibility flag is not set.
21258 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21259 for zero-size arguments when compatibility flag is not set.
21261 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21263 PR tree-optimization/58145
21264 * tree-sra.c (build_ref_for_offset): If prev_base has
21265 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21267 2013-08-14 Xinliang David Li <davidxl@google.com>
21269 * config/i386/i386.c (ix86_option_override_internal):
21270 Fix uninitialized variable error.
21272 2013-08-14 Xinliang David Li <davidxl@google.com>
21274 * config/i386/i386.opt: Define two new options.
21275 * config/i386/x86-tune.def: Add arch selector field in macros.
21276 * config/i386/i386.h: Adjust macro definition.
21277 * config/i386/i386.c (ix86_option_override_internal):
21279 (parse_mtune_ctrl_str): New function.
21280 (set_ix86_tune_features): New function.
21281 (ix86_function_specific_restore): Call the new helper function.
21283 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21285 PR rtl-optimization/57662
21286 * sel-sched.c (code_motion_process_successors): When the current insn
21287 is removed after the recursive traversal, break from the loop.
21288 Add comments and debug printouts.
21290 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21291 Alexandre Oliva <aoliva@redhat.com>
21294 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21295 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21296 there also UNSPEC_PLTOFF.
21298 2013-08-14 Marek Polacek <polacek@redhat.com>
21300 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21301 NUM_CONDITIONS bit positions.
21303 2013-08-13 Cary Coutant <ccoutant@google.com>
21305 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21306 (attr_checksum): Hash vector contents instead of pointer.
21307 (attr_checksum_ordered): Likewise.
21309 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21311 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21312 when Pmode != word_mode. Add length_address attribute.
21313 (sse3_monitor_<mode>): Merge from sse3_monitor and
21314 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21315 Pmode != word_mode. Update insn length attribute.
21316 * config/i386/i386.c (ix86_option_override_internal): Update
21317 ix86_gen_monitor selection for merged sse3_monitor insn.
21319 2013-08-13 Julian Brown <julian@codesourcery.com>
21321 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21322 perform invalid legitimization on greater-than-word-size modes for
21323 TARGET_E500_DOUBLE.
21325 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21327 * ira.c (setup_class_translate_array): Use aclass instead of cl
21328 for classes not fully covered by allocno classes.
21330 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21332 PR tree-optimization/57661
21333 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21334 * tree-inline.c (tree_function_versioning): Initialize it.
21335 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21336 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21337 that is not being copied.
21340 * asan.c (instrument_strlen_call): Fix typo in comment.
21341 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21343 2013-08-13 Steve Ellcey <sellcey@mips.com>
21345 * config/mips/mips.md (prefetch): Use lw instead of ld on
21346 loongson in 32bit mode.
21348 2013-08-13 Nick Clifton <nickc@redhat.com>
21350 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21352 2013-08-13 Jan Hubicka <jh@suse.cz>
21354 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21355 introduced edge; fix typo in sanity check.
21356 (cgraph_resolve_speculation): Export; improve diagnostic.
21357 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21358 speculation at type mismatch.
21359 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21360 (cgraph_resolve_speculation): Declare.
21361 (symtab_can_be_discarded): New function.
21362 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21363 * ipa-inline-transform.c (speculation_removed): New global var.
21364 (clone_inlined_nodes): See if speculation can be removed.
21365 (inline_call): If speculations was removed, we growths may not match.
21366 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21367 (speculation_useful_p): New function.
21368 (resolve_noninline_speculation): New function.
21369 (inline_small_functions): Resolve useless speculations.
21370 * ipa-inline.h (speculation_useful_p): Declare
21371 * ipa.c (can_replace_by_local_alias): Simplify.
21372 (ipa_profile): Produce speculative calls in non-lto, too;
21373 add simple cost model; produce local aliases.
21375 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21377 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21380 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21382 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21384 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21386 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21387 iterator instead of X87MODEF.
21389 2013-08-12 Perez Read <netfirewall@gmail.com>
21392 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21393 operand 0 for intel asm alternative.
21394 (*movabs<mode>_2): Ditto for operand 1.
21396 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21398 * config/aarch64/arm_none.h
21399 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21401 2013-08-12 Nick Clifton <nickc@redhat.com>
21403 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21405 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21407 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21408 expand for QI/HImode operand to produce more effictive code for
21409 unsigned char(short) --> float(double) conversion.
21411 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21413 * doc/invoke.texi: Mention that -ftls-model does not force the final
21416 2013-08-12 Marek Polacek <polacek@redhat.com>
21417 Marc Glisse <marc.glisse@inria.fr>
21419 PR tree-optimization/57980
21420 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21421 when creating -1 constant.
21423 2013-08-10 Jan Hubicka <jh@suse.cz>
21425 Workaround binutils PR14342.
21426 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21427 (gimple_init_edge_profiler): Likewise.
21428 (gimple_gen_ic_func_profiler): Likewise.
21430 2013-08-09 Jan Hubicka <jh@suse.cz>
21432 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21434 2013-08-09 Xinliang David Li <davidxl@google.com>
21436 * config/i386/stringop.def: New file.
21437 * config/i386/stringop.opt: New file.
21438 * config/i386/i386-opts.h: Include stringopt.def.
21439 * config/i386/i386.opt: Include stringopt.opt.
21440 * config/i386/i386.c (ix86_option_override_internal):
21441 Override default size based stringop inline strategies with options.
21442 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21445 2013-08-09 Jan Hubicka <jh@suse.cz>
21447 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21449 2013-08-09 Jan Hubicka <jh@suse.cz>
21451 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21453 (dump_cgraph_node): Dump profile-id.
21454 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21455 and common_target_probability.
21456 * lto-cgraph.c (lto_output_edge): Stream common targets.
21457 (lto_output_node): Stream profile ids.
21458 (input_node): Stream profile ids.
21459 (input_edge): Stream common targets.
21460 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21461 * ipa.c: Include value-prof.h
21462 (ipa_profile_generate_summary): Turn indirect call statement histograms
21463 into common targets.
21464 (ipa_profile): Turn common targets into speculative edges.
21466 2013-08-09 Jan Hubicka <jh@suse.cz>
21468 * cgraph.h (cgraph_node): Add profile_id.
21469 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21470 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21471 (del_node_map): Update.
21472 (find_func_by_funcdef_no): Replace by ...
21473 (find_func_by_profile_id): ... this one.
21474 (gimple_ic_transform): Do not remove useful histograms when
21475 speculation is not done; dump info when indirect call removal
21477 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21478 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21479 (__gcov_indirect_call_profiler_v2): .. this one.
21480 * profile.h (init_node_map): Update.
21481 * coverage.c (coverage_compute_profile_id): New function.
21482 * coverage.h (coverage_compute_profile_id): Declare.
21483 * tree-profile.c (init_ic_make_global_vars): Make
21484 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21485 (gimple_init_edge_profiler): Update prototype of
21486 __gcov_indirect_call_profiler.
21487 (gimple_gen_ic_func_profiler): Simplify.
21488 (tree_profiling): Use init_node_map
21490 2013-08-09 Jan Hubicka <jh@suse.cz>
21492 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21493 non-speculative refs.
21494 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21495 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21496 (cgraph_set_call_stmt): Likewise.
21497 (cgraph_create_edge_1): Fix release checking compilatoin;
21498 clear lto_stmt_uid.
21499 (cgraph_free_edge): Free indirect info.
21500 (cgraph_turn_edge_to_speculative): New function.
21501 (cgraph_speculative_call_info): New function.
21502 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21503 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21504 (dump_cgraph_node): Dump speculation.
21505 (verify_edge_count_and_frequency): Accept speculative edges.
21506 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21507 (verify_cgraph_node): Handle speculation.
21508 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21509 (cgraph_set_call_stmt): Update prototype.
21510 (cgraph_make_edge_direct): Update prototype.
21511 (cgraph_speculative_call_info): Declare.
21512 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21513 to change; update call of ipa_find_references.
21514 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21515 lto_stmt_uid and speculative flags.
21516 (ipa_dump_references): Dump speculation.
21517 (ipa_clone_references): Clone speculative flag.
21518 (ipa_clone_referring): Likewise.
21519 (ipa_clone_ref): New function.
21520 (ipa_find_reference): Look into lto_stmt_uids
21521 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21522 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21523 (ipa_find_reference): Update declaration.
21524 (ipa_clone_ref): Declare.
21525 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21526 stream speculative flag.
21527 (lto_output_ref): Stream statements uids and speculation.
21528 (input_ref): Likewise.
21529 (input_edge): Stream speuclation.
21530 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21531 (cgraph_set_call_stmt_including_clones): Handle speculation.
21532 * ipa-inline.c (heap_edge_removal_hook): New function.
21533 (inline_small_functions): Register it.
21534 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21535 also initialize refs.
21536 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21538 (try_make_edge_direct_simple_call): Likewise.
21539 (try_make_edge_direct_simple_call): Likewise.
21540 (update_indirect_edges_after_inlining): Likewise.
21541 (remove_described_reference): Look proper lto_stmt_uid.
21542 (propagate_controlled_uses): Likewise.
21543 (propagate_controlled_uses): Liekwise.
21544 * tree-inline.c (copy_bb): Copy speculative edges.
21545 (redirect_all_calls): New function.
21546 (copy_cfg_body): Do redirection after loop info is updated.
21547 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21549 2013-08-09 Jan Hubicka <jh@suse.cz>
21551 * lto-streamer-out.c (output_function): Renumber PHIs.
21552 * lto-streamer-in.c (input_function): Likewise.
21554 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21556 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21557 (get_lane_unsigned): Likewise.
21558 (dup_lane_scalar): Likewise.
21559 (get_lane): enable for VALL.
21560 * config/aarch64/aarch64-simd.md
21561 (aarch64_dup_lane_scalar<mode>): Remove.
21562 (aarch64_get_lane_signed<mode>): Likewise.
21563 (aarch64_get_lane_unsigned<mode>): Likewise.
21564 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21565 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21566 (aarch64_get_lane<mode>): Enable for all vector modes.
21567 (aarch64_get_lanedi): Remove misleading constraints.
21568 * config/aarch64/arm_neon.h
21569 (__aarch64_vget_lane_any): Define.
21570 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21571 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21572 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21573 * config/aarch64/iterators.md (VDQQH): New.
21574 (VDQQHS): Likewise.
21575 (vwcore): Likewise.
21577 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21579 * configure.ac: Add GAS check for LEON instructions on SPARC.
21580 * configure: Regenerate.
21581 * config.in: Likewise.
21582 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21584 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21585 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21587 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21588 (AS_LEON_FLAG): New macro.
21589 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21590 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21591 Deal with LEON and LEON3 for the memory model.
21592 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21593 (atomic_compare_and_swap<mode>_1): Likewise.
21594 (*atomic_compare_and_swap<mode>_1): Likewise.
21596 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21598 * config/arm/neon.md (vcond): Fix floating-point vector
21599 comparisons against 0.
21601 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21603 * lra-constraints.c (emit_spill_move): Remove assert.
21604 (process_alt_operands): Add more debugging
21605 output. Increase reject for spilling into memory. Decrease
21606 reject for reloading scratch.
21607 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21609 2013-08-08 Steve Ellcey <sellcey@mips.com>
21611 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21612 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21613 micromips incompatible. Add nan2008.
21614 (MULTILIB_DIRNAMES): Add nan2008.
21615 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21616 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21617 and micromips incompatible. Add nan2008.
21618 (MULTILIB_DIRNAMES): Add nan2008.
21619 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21621 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21623 PR rtl-optimization/58079
21624 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21625 simplify_comparison has widened a comparison with an integer.
21627 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21629 * config/arm/neon.md (movmisalign<mode>): Disable when we
21630 don't allow unaligned accesses.
21631 (*movmisalign<mode>_neon_store): Likewise.
21632 (*movmisalign<mode>_neon_load): Likewise.
21633 (*movmisalign<mode>_neon_store): Likewise.
21634 (*movmisalign<mode>_neon_load): Likewise.
21636 2013-08-08 Jan Hubicka <jh@suse.cz>
21638 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21639 (make_pass_rebuild_cgraph_edges): Also clear references.
21640 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21641 * ipa-inline-transform.c (inline_transform): Remove all references
21643 * cgraphunit.c (expand_function): Remove all references after
21645 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21646 (ipa_find_reference): Rewrite to iterator.
21647 (remove_stmt_references): Likewise.
21648 (ipa_clear_stmts_in_references): New function.
21649 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21650 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21652 * ipa-split.c (split_function): Remove references in split function.
21654 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21657 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21658 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21660 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21663 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21664 suggested mode for the assignment isn't compatible with the
21665 registers required.
21667 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21670 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21672 2013-08-07 Xinliang David Li <davidxl@google.com>
21674 * config/i386/i386.opt: New option -mtune-ctrl=.
21675 * config/i386/x86-tune.def: New file.
21676 * config/i386/i386.h: include x86-tune.def.
21677 * config/i386/i386.c (ix86_option_override_internal):
21678 Parsing -mtune-ctrl= option and set tune features.
21680 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21683 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21684 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21687 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21689 * rtl.h (update_alignments): Declare.
21690 * final.c (grow_label_align): New function extracted from...
21691 (shorten_branches): ...here. Call it.
21692 (update_alignments): New function.
21693 * reorg.c (sibling_labels): New variable.
21694 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21695 the new label along with it onto the sibling_labels vector.
21696 (fill_simple_delay_slots): Adjust call to get_label_before.
21697 (fill_slots_from_thread): Likewise.
21698 (relax_delay_slots): Likewise.
21699 (make_return_insns): Likewise.
21700 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21702 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21704 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21705 document its semantics.
21706 (diagnostic_report_diagnostic): Adjust accordingly.
21708 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21710 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21711 (sparc_option_override): ...and port to new C++ pass API.
21712 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21714 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21716 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21718 2013-08-06 Caroline Tice <cmtice@google.com>
21720 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21721 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21722 * tree-pass.h: Add pass_vtable_verify.
21723 * varasm.c (assemble_variable): Add code to properly set the comdat
21724 section and name for the .vtable_map_vars section.
21725 (assemble_vtyv_preinit_initializer): New function.
21726 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21728 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21729 * vtable-verify.c: New file.
21730 * vtable-verify.h: New file.
21731 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21732 initialiation levels.
21733 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21734 * passes.def: Insert pass_vtable_verify.
21735 * aclocal.m4: Reorder includes.
21736 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21737 -fvtv-counts options.
21738 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21739 as appropriate, if -fvtable-verify=... is used.
21740 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21741 -fvtable-verify=... is used.
21742 * Makefile.in (OBJS): Add vtable-verify.o to list.
21743 (vtable-verify.o): Add new build rule.
21744 (GTFILES): Add vtable-verify.c to list.
21745 * common.opt (fvtable-verify=): New flag.
21746 (vtv_priority): Values for fvtable-verify= flag.
21747 (fvtv-counts): New flag.
21748 (fvtv-debug): New flag.
21749 * tree.h (save_vtable_map_decl): New extern function decl.
21751 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21753 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21754 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21755 (pass_data_rl78_devirt): ...new pass_data instance and...
21756 (make_pass_rl78_devirt): ...new function.
21757 (rl78_asm_file_start): Port pass registration to new C++ API.
21759 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21761 * coretypes.h (rtl_opt_pass): Add.
21762 (gcc::context): Add.
21763 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21764 (epiphany_init): Port to new C++ pass API.
21765 (epiphany_optimize_mode_switching): Likewise.
21766 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21767 (pass_manager::get_pass_mode_switching): New.
21768 (pass_manager::get_pass_peephole2): New.
21769 * mode-switching.c (pass_mode_switching): Add clone method.
21770 * recog.c (pass_peephole2): Add clone method.
21771 (pass_split_all_insns): Add clone method.
21773 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21775 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21776 (mips_option_override): ...here, porting to new C++ API for passes.
21778 2013-08-06 Jan Hubicka <jh@suse.cz>
21780 * cgraph.c (cgraph_get_body): New function based on lto.c
21782 * cgraph.h (cgraph_get_body): Declare.
21783 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21785 * cgraphunit.c (expand_function): Get body prior expanding.
21786 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21787 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21789 * passes.c (do_per_function_toporder): Get body.
21790 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21791 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21793 2013-08-06 Martin Jambor <mjambor@suse.cz>
21796 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21797 is not re-finalized. Rename second parameter to no_collect.
21799 2013-08-06 Martin Jambor <mjambor@suse.cz>
21801 PR middle-end/58041
21802 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21803 MEM_REF has proper alignment information.
21805 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21808 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21810 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21811 rtx (*) (rtx, ...) with insn_gen_fn.
21812 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21813 insn_gen_fn::stored_funcptr. Add initializer braces.
21815 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21817 Rewrite how instances of passes are cloned to remove assumptions
21818 about their sizes (thus allowing pass subclasses to have
21819 additional data fields, albeit non-GC-managed ones at this point).
21821 * passes.c (make_pass_instance): Now that passes have clone
21822 methods, rewrite this function to eliminate XNEW and memcpy
21823 calls that used hardcoded sizes. Since this function no longer
21824 creates pass instances, rename it to...
21825 (add_pass_instance): ...this. Document the old way that passes were
21826 numbered and flagged, and rework this function to continue using it.
21827 (next_pass_1): Add an initial_pass argument for use by
21829 (position_pass): When adding multiple instances of a pass, use
21830 the pass's clone method, rather than relying on the XNEW/memcpy
21831 within the former make_pass_instance (now add_pass_instance).
21832 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21833 the initial instance of the current pass within the pass manager.
21835 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21837 This is the automated part of the conversion of passes from C
21838 structs to C++ classes.
21840 Patch autogenerated by refactor_passes.py from
21841 https://github.com/davidmalcolm/gcc-refactoring-scripts
21842 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21844 * asan.c (pass_asan): Convert from a global struct to a subclass of
21845 gimple_opt_pass along with...
21846 (pass_data_asan): ...new pass_data instance and...
21847 (make_pass_asan): ...new function.
21848 (pass_asan_O0): Convert from a global struct to a subclass of
21849 gimple_opt_pass along with...
21850 (pass_data_asan_O0): ...new pass_data instance and...
21851 (make_pass_asan_O0): ...new function.
21852 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21853 subclass of rtl_opt_pass along with...
21854 (pass_data_inc_dec): ...new pass_data instance and...
21855 (make_pass_inc_dec): ...new function.
21856 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21857 a subclass of rtl_opt_pass along with...
21858 (pass_data_reorder_blocks): ...new pass_data instance and...
21859 (make_pass_reorder_blocks): ...new function.
21860 (pass_duplicate_computed_gotos): Convert from a global struct to a
21861 subclass of rtl_opt_pass along with...
21862 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21863 (make_pass_duplicate_computed_gotos): ...new function.
21864 (pass_partition_blocks): Convert from a global struct to a subclass of
21865 rtl_opt_pass along with...
21866 (pass_data_partition_blocks): ...new pass_data instance and...
21867 (make_pass_partition_blocks): ...new function.
21868 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21869 struct to a subclass of rtl_opt_pass along with...
21870 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21872 (make_pass_branch_target_load_optimize1): ...new function.
21873 (pass_branch_target_load_optimize2): Convert from a global struct to a
21874 subclass of rtl_opt_pass along with...
21875 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21877 (make_pass_branch_target_load_optimize2): ...new function.
21878 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21879 of rtl_opt_pass along with...
21880 (pass_data_jump): ...new pass_data instance and...
21881 (make_pass_jump): ...new function.
21882 (pass_jump2): Convert from a global struct to a subclass of
21883 rtl_opt_pass along with...
21884 (pass_data_jump2): ...new pass_data instance and...
21885 (make_pass_jump2): ...new function.
21886 * cfgexpand.c (pass_expand): Convert from a global struct to a
21887 subclass of rtl_opt_pass along with...
21888 (pass_data_expand): ...new pass_data instance and...
21889 (make_pass_expand): ...new function.
21890 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21891 of rtl_opt_pass along with...
21892 (pass_data_free_cfg): ...new pass_data instance and...
21893 (make_pass_free_cfg): ...new function.
21894 (pass_into_cfg_layout_mode): Convert from a global struct to a
21895 subclass of rtl_opt_pass along with...
21896 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21897 (make_pass_into_cfg_layout_mode): ...new function.
21898 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21899 subclass of rtl_opt_pass along with...
21900 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21901 (make_pass_outof_cfg_layout_mode): ...new function.
21902 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21903 struct to a subclass of gimple_opt_pass along with...
21904 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21905 (make_pass_build_cgraph_edges): ...new function.
21906 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21907 subclass of gimple_opt_pass along with...
21908 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21909 (make_pass_rebuild_cgraph_edges): ...new function.
21910 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21911 subclass of gimple_opt_pass along with...
21912 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21914 (make_pass_remove_cgraph_callee_edges): ...new function.
21915 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21916 struct to a subclass of rtl_opt_pass along with...
21917 (pass_data_stack_adjustments): ...new pass_data instance and...
21918 (make_pass_stack_adjustments): ...new function.
21919 * combine.c (pass_combine): Convert from a global struct to a subclass
21920 of rtl_opt_pass along with...
21921 (pass_data_combine): ...new pass_data instance and...
21922 (make_pass_combine): ...new function.
21923 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21924 global struct to a subclass of rtl_opt_pass along with...
21925 (pass_data_compare_elim_after_reload): ...new pass_data instance
21927 (make_pass_compare_elim_after_reload): ...new function.
21928 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21929 of rtl_opt_pass along with...
21930 (pass_data_rtl_cprop): ...new pass_data instance and...
21931 (make_pass_rtl_cprop): ...new function.
21932 * cse.c (pass_cse): Convert from a global struct to a subclass of
21933 rtl_opt_pass along with...
21934 (pass_data_cse): ...new pass_data instance and...
21935 (make_pass_cse): ...new function.
21936 (pass_cse2): Convert from a global struct to a subclass of
21937 rtl_opt_pass along with...
21938 (pass_data_cse2): ...new pass_data instance and...
21939 (make_pass_cse2): ...new function.
21940 (pass_cse_after_global_opts): Convert from a global struct to a
21941 subclass of rtl_opt_pass along with...
21942 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21943 (make_pass_cse_after_global_opts): ...new function.
21944 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21945 of rtl_opt_pass along with...
21946 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21947 (make_pass_ud_rtl_dce): ...new function.
21948 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21949 rtl_opt_pass along with...
21950 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21951 (make_pass_fast_rtl_dce): ...new function.
21952 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21953 a subclass of rtl_opt_pass along with...
21954 (pass_data_df_initialize_opt): ...new pass_data instance and...
21955 (make_pass_df_initialize_opt): ...new function.
21956 (pass_df_initialize_no_opt): Convert from a global struct to a
21957 subclass of rtl_opt_pass along with...
21958 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21959 (make_pass_df_initialize_no_opt): ...new function.
21960 (pass_df_finish): Convert from a global struct to a subclass of
21961 rtl_opt_pass along with...
21962 (pass_data_df_finish): ...new pass_data instance and...
21963 (make_pass_df_finish): ...new function.
21964 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21965 rtl_opt_pass along with...
21966 (pass_data_rtl_dse1): ...new pass_data instance and...
21967 (make_pass_rtl_dse1): ...new function.
21968 (pass_rtl_dse2): Convert from a global struct to a subclass of
21969 rtl_opt_pass along with...
21970 (pass_data_rtl_dse2): ...new pass_data instance and...
21971 (make_pass_rtl_dse2): ...new function.
21972 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21973 subclass of rtl_opt_pass along with...
21974 (pass_data_dwarf2_frame): ...new pass_data instance and...
21975 (make_pass_dwarf2_frame): ...new function.
21976 * except.c (pass_set_nothrow_function_flags): Convert from a global
21977 struct to a subclass of rtl_opt_pass along with...
21978 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21980 (make_pass_set_nothrow_function_flags): ...new function.
21981 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21982 subclass of rtl_opt_pass along with...
21983 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21985 (make_pass_convert_to_eh_region_ranges): ...new function.
21986 * final.c (pass_compute_alignments): Convert from a global struct to a
21987 subclass of rtl_opt_pass along with...
21988 (pass_data_compute_alignments): ...new pass_data instance and...
21989 (make_pass_compute_alignments): ...new function.
21990 (pass_final): Convert from a global struct to a subclass of
21991 rtl_opt_pass along with...
21992 (pass_data_final): ...new pass_data instance and...
21993 (make_pass_final): ...new function.
21994 (pass_shorten_branches): Convert from a global struct to a subclass of
21995 rtl_opt_pass along with...
21996 (pass_data_shorten_branches): ...new pass_data instance and...
21997 (make_pass_shorten_branches): ...new function.
21998 (pass_clean_state): Convert from a global struct to a subclass of
21999 rtl_opt_pass along with...
22000 (pass_data_clean_state): ...new pass_data instance and...
22001 (make_pass_clean_state): ...new function.
22002 * function.c (pass_instantiate_virtual_regs): Convert from a global
22003 struct to a subclass of rtl_opt_pass along with...
22004 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22005 (make_pass_instantiate_virtual_regs): ...new function.
22006 (pass_leaf_regs): Convert from a global struct to a subclass of
22007 rtl_opt_pass along with...
22008 (pass_data_leaf_regs): ...new pass_data instance and...
22009 (make_pass_leaf_regs): ...new function.
22010 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22011 subclass of rtl_opt_pass along with...
22012 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22014 (make_pass_thread_prologue_and_epilogue): ...new function.
22015 (pass_match_asm_constraints): Convert from a global struct to a
22016 subclass of rtl_opt_pass along with...
22017 (pass_data_match_asm_constraints): ...new pass_data instance and...
22018 (make_pass_match_asm_constraints): ...new function.
22019 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22020 subclass of rtl_opt_pass along with...
22021 (pass_data_rtl_fwprop): ...new pass_data instance and...
22022 (make_pass_rtl_fwprop): ...new function.
22023 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22024 rtl_opt_pass along with...
22025 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22026 (make_pass_rtl_fwprop_addr): ...new function.
22027 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22028 rtl_opt_pass along with...
22029 (pass_data_rtl_pre): ...new pass_data instance and...
22030 (make_pass_rtl_pre): ...new function.
22031 (pass_rtl_hoist): Convert from a global struct to a subclass of
22032 rtl_opt_pass along with...
22033 (pass_data_rtl_hoist): ...new pass_data instance and...
22034 (make_pass_rtl_hoist): ...new function.
22035 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22036 subclass of gimple_opt_pass along with...
22037 (pass_data_lower_cf): ...new pass_data instance and...
22038 (make_pass_lower_cf): ...new function.
22039 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22040 from a global struct to a subclass of gimple_opt_pass along with...
22041 (pass_data_strength_reduction): ...new pass_data instance and...
22042 (make_pass_strength_reduction): ...new function.
22043 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22044 of rtl_opt_pass along with...
22045 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22046 (make_pass_rtl_ifcvt): ...new function.
22047 (pass_if_after_combine): Convert from a global struct to a subclass of
22048 rtl_opt_pass along with...
22049 (pass_data_if_after_combine): ...new pass_data instance and...
22050 (make_pass_if_after_combine): ...new function.
22051 (pass_if_after_reload): Convert from a global struct to a subclass of
22052 rtl_opt_pass along with...
22053 (pass_data_if_after_reload): ...new pass_data instance and...
22054 (make_pass_if_after_reload): ...new function.
22055 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22056 a subclass of rtl_opt_pass along with...
22057 (pass_data_initialize_regs): ...new pass_data instance and...
22058 (make_pass_initialize_regs): ...new function.
22059 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22060 of ipa_opt_pass_d along with...
22061 (pass_data_ipa_cp): ...new pass_data instance and...
22062 (make_pass_ipa_cp): ...new function.
22063 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22064 global struct to a subclass of gimple_opt_pass along with...
22065 (pass_data_inline_parameters): ...new pass_data instance and...
22066 (make_pass_inline_parameters): ...new function.
22067 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22068 subclass of gimple_opt_pass along with...
22069 (pass_data_early_inline): ...new pass_data instance and...
22070 (make_pass_early_inline): ...new function.
22071 (pass_ipa_inline): Convert from a global struct to a subclass of
22072 ipa_opt_pass_d along with...
22073 (pass_data_ipa_inline): ...new pass_data instance and...
22074 (make_pass_ipa_inline): ...new function.
22075 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22076 struct to a subclass of gimple_opt_pass along with...
22077 (pass_data_local_pure_const): ...new pass_data instance and...
22078 (make_pass_local_pure_const): ...new function.
22079 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22080 ipa_opt_pass_d along with...
22081 (pass_data_ipa_pure_const): ...new pass_data instance and...
22082 (make_pass_ipa_pure_const): ...new function.
22083 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22084 to a subclass of ipa_opt_pass_d along with...
22085 (pass_data_ipa_reference): ...new pass_data instance and...
22086 (make_pass_ipa_reference): ...new function.
22087 * ipa-split.c (pass_split_functions): Convert from a global struct to
22088 a subclass of gimple_opt_pass along with...
22089 (pass_data_split_functions): ...new pass_data instance and...
22090 (make_pass_split_functions): ...new function.
22091 (pass_feedback_split_functions): Convert from a global struct to a
22092 subclass of gimple_opt_pass along with...
22093 (pass_data_feedback_split_functions): ...new pass_data instance and...
22094 (make_pass_feedback_split_functions): ...new function.
22095 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22096 global struct to a subclass of simple_ipa_opt_pass along with...
22097 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22099 (make_pass_ipa_function_and_variable_visibility): ...new function.
22100 (pass_ipa_free_inline_summary): Convert from a global struct to a
22101 subclass of simple_ipa_opt_pass along with...
22102 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22103 (make_pass_ipa_free_inline_summary): ...new function.
22104 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22105 subclass of ipa_opt_pass_d along with...
22106 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22108 (make_pass_ipa_whole_program_visibility): ...new function.
22109 (pass_ipa_profile): Convert from a global struct to a subclass of
22110 ipa_opt_pass_d along with...
22111 (pass_data_ipa_profile): ...new pass_data instance and...
22112 (make_pass_ipa_profile): ...new function.
22113 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22114 ipa_opt_pass_d along with...
22115 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22116 (make_pass_ipa_cdtor_merge): ...new function.
22117 * ira.c (pass_ira): Convert from a global struct to a subclass of
22118 rtl_opt_pass along with...
22119 (pass_data_ira): ...new pass_data instance and...
22120 (make_pass_ira): ...new function.
22121 (pass_reload): Convert from a global struct to a subclass of
22122 rtl_opt_pass along with...
22123 (pass_data_reload): ...new pass_data instance and...
22124 (make_pass_reload): ...new function.
22125 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22126 subclass of rtl_opt_pass along with...
22127 (pass_data_cleanup_barriers): ...new pass_data instance and...
22128 (make_pass_cleanup_barriers): ...new function.
22129 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22130 of rtl_opt_pass along with...
22131 (pass_data_loop2): ...new pass_data instance and...
22132 (make_pass_loop2): ...new function.
22133 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22134 rtl_opt_pass along with...
22135 (pass_data_rtl_loop_init): ...new pass_data instance and...
22136 (make_pass_rtl_loop_init): ...new function.
22137 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22138 rtl_opt_pass along with...
22139 (pass_data_rtl_loop_done): ...new pass_data instance and...
22140 (make_pass_rtl_loop_done): ...new function.
22141 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22142 subclass of rtl_opt_pass along with...
22143 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22144 (make_pass_rtl_move_loop_invariants): ...new function.
22145 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22146 rtl_opt_pass along with...
22147 (pass_data_rtl_unswitch): ...new pass_data instance and...
22148 (make_pass_rtl_unswitch): ...new function.
22149 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22150 subclass of rtl_opt_pass along with...
22151 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22153 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22154 (pass_rtl_doloop): Convert from a global struct to a subclass of
22155 rtl_opt_pass along with...
22156 (pass_data_rtl_doloop): ...new pass_data instance and...
22157 (make_pass_rtl_doloop): ...new function.
22158 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22159 a subclass of rtl_opt_pass along with...
22160 (pass_data_lower_subreg): ...new pass_data instance and...
22161 (make_pass_lower_subreg): ...new function.
22162 (pass_lower_subreg2): Convert from a global struct to a subclass of
22163 rtl_opt_pass along with...
22164 (pass_data_lower_subreg2): ...new pass_data instance and...
22165 (make_pass_lower_subreg2): ...new function.
22166 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22167 struct to a subclass of ipa_opt_pass_d along with...
22168 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22169 (make_pass_ipa_lto_gimple_out): ...new function.
22170 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22171 of ipa_opt_pass_d along with...
22172 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22173 (make_pass_ipa_lto_finish_out): ...new function.
22174 * mode-switching.c (pass_mode_switching): Convert from a global struct
22175 to a subclass of rtl_opt_pass along with...
22176 (pass_data_mode_switching): ...new pass_data instance and...
22177 (make_pass_mode_switching): ...new function.
22178 * modulo-sched.c (pass_sms): Convert from a global struct to a
22179 subclass of rtl_opt_pass along with...
22180 (pass_data_sms): ...new pass_data instance and...
22181 (make_pass_sms): ...new function.
22182 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22183 subclass of gimple_opt_pass along with...
22184 (pass_data_expand_omp): ...new pass_data instance and...
22185 (make_pass_expand_omp): ...new function.
22186 (pass_lower_omp): Convert from a global struct to a subclass of
22187 gimple_opt_pass along with...
22188 (pass_data_lower_omp): ...new pass_data instance and...
22189 (make_pass_lower_omp): ...new function.
22190 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22191 of gimple_opt_pass along with...
22192 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22193 (make_pass_diagnose_omp_blocks): ...new function.
22194 * passes.c (pass_early_local_passes): Convert from a global struct to
22195 a subclass of simple_ipa_opt_pass along with...
22196 (pass_data_early_local_passes): ...new pass_data instance and...
22197 (make_pass_early_local_passes): ...new function.
22198 (pass_all_early_optimizations): Convert from a global struct to a
22199 subclass of gimple_opt_pass along with...
22200 (pass_data_all_early_optimizations): ...new pass_data instance and...
22201 (make_pass_all_early_optimizations): ...new function.
22202 (pass_all_optimizations): Convert from a global struct to a subclass
22203 of gimple_opt_pass along with...
22204 (pass_data_all_optimizations): ...new pass_data instance and...
22205 (make_pass_all_optimizations): ...new function.
22206 (pass_all_optimizations_g): Convert from a global struct to a subclass
22207 of gimple_opt_pass along with...
22208 (pass_data_all_optimizations_g): ...new pass_data instance and...
22209 (make_pass_all_optimizations_g): ...new function.
22210 (pass_rest_of_compilation): Convert from a global struct to a subclass
22211 of rtl_opt_pass along with...
22212 (pass_data_rest_of_compilation): ...new pass_data instance and...
22213 (make_pass_rest_of_compilation): ...new function.
22214 (pass_postreload): Convert from a global struct to a subclass of
22215 rtl_opt_pass along with...
22216 (pass_data_postreload): ...new pass_data instance and...
22217 (make_pass_postreload): ...new function.
22218 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22219 subclass of rtl_opt_pass along with...
22220 (pass_data_gcse2): ...new pass_data instance and...
22221 (make_pass_gcse2): ...new function.
22222 * postreload.c (pass_postreload_cse): Convert from a global struct to
22223 a subclass of rtl_opt_pass along with...
22224 (pass_data_postreload_cse): ...new pass_data instance and...
22225 (make_pass_postreload_cse): ...new function.
22226 * predict.c (pass_profile): Convert from a global struct to a subclass
22227 of gimple_opt_pass along with...
22228 (pass_data_profile): ...new pass_data instance and...
22229 (make_pass_profile): ...new function.
22230 (pass_strip_predict_hints): Convert from a global struct to a subclass
22231 of gimple_opt_pass along with...
22232 (pass_data_strip_predict_hints): ...new pass_data instance and...
22233 (make_pass_strip_predict_hints): ...new function.
22234 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22235 of rtl_opt_pass along with...
22236 (pass_data_peephole2): ...new pass_data instance and...
22237 (make_pass_peephole2): ...new function.
22238 (pass_split_all_insns): Convert from a global struct to a subclass of
22239 rtl_opt_pass along with...
22240 (pass_data_split_all_insns): ...new pass_data instance and...
22241 (make_pass_split_all_insns): ...new function.
22242 (pass_split_after_reload): Convert from a global struct to a subclass
22243 of rtl_opt_pass along with...
22244 (pass_data_split_after_reload): ...new pass_data instance and...
22245 (make_pass_split_after_reload): ...new function.
22246 (pass_split_before_regstack): Convert from a global struct to a
22247 subclass of rtl_opt_pass along with...
22248 (pass_data_split_before_regstack): ...new pass_data instance and...
22249 (make_pass_split_before_regstack): ...new function.
22250 (pass_split_before_sched2): Convert from a global struct to a subclass
22251 of rtl_opt_pass along with...
22252 (pass_data_split_before_sched2): ...new pass_data instance and...
22253 (make_pass_split_before_sched2): ...new function.
22254 (pass_split_for_shorten_branches): Convert from a global struct to a
22255 subclass of rtl_opt_pass along with...
22256 (pass_data_split_for_shorten_branches): ...new pass_data instance
22258 (make_pass_split_for_shorten_branches): ...new function.
22259 * ree.c (pass_ree): Convert from a global struct to a subclass of
22260 rtl_opt_pass along with...
22261 (pass_data_ree): ...new pass_data instance and...
22262 (make_pass_ree): ...new function.
22263 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22264 subclass of rtl_opt_pass along with...
22265 (pass_data_stack_regs): ...new pass_data instance and...
22266 (make_pass_stack_regs): ...new function.
22267 (pass_stack_regs_run): Convert from a global struct to a subclass of
22268 rtl_opt_pass along with...
22269 (pass_data_stack_regs_run): ...new pass_data instance and...
22270 (make_pass_stack_regs_run): ...new function.
22271 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22272 subclass of rtl_opt_pass along with...
22273 (pass_data_cprop_hardreg): ...new pass_data instance and...
22274 (make_pass_cprop_hardreg): ...new function.
22275 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22276 subclass of rtl_opt_pass along with...
22277 (pass_data_reginfo_init): ...new pass_data instance and...
22278 (make_pass_reginfo_init): ...new function.
22279 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22280 of rtl_opt_pass along with...
22281 (pass_data_regmove): ...new pass_data instance and...
22282 (make_pass_regmove): ...new function.
22283 * regrename.c (pass_regrename): Convert from a global struct to a
22284 subclass of rtl_opt_pass along with...
22285 (pass_data_regrename): ...new pass_data instance and...
22286 (make_pass_regrename): ...new function.
22287 * reorg.c (pass_delay_slots): Convert from a global struct to a
22288 subclass of rtl_opt_pass along with...
22289 (pass_data_delay_slots): ...new pass_data instance and...
22290 (make_pass_delay_slots): ...new function.
22291 (pass_machine_reorg): Convert from a global struct to a subclass of
22292 rtl_opt_pass along with...
22293 (pass_data_machine_reorg): ...new pass_data instance and...
22294 (make_pass_machine_reorg): ...new function.
22295 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22296 of rtl_opt_pass along with...
22297 (pass_data_sched): ...new pass_data instance and...
22298 (make_pass_sched): ...new function.
22299 (pass_sched2): Convert from a global struct to a subclass of
22300 rtl_opt_pass along with...
22301 (pass_data_sched2): ...new pass_data instance and...
22302 (make_pass_sched2): ...new function.
22303 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22304 to a subclass of rtl_opt_pass along with...
22305 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22306 (make_pass_stack_ptr_mod): ...new function.
22307 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22308 to a subclass of rtl_opt_pass along with...
22309 (pass_data_rtl_store_motion): ...new pass_data instance and...
22310 (make_pass_rtl_store_motion): ...new function.
22311 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22312 of gimple_opt_pass along with...
22313 (pass_data_tracer): ...new pass_data instance and...
22314 (make_pass_tracer): ...new function.
22315 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22316 to a subclass of gimple_opt_pass along with...
22317 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22318 (make_pass_diagnose_tm_blocks): ...new function.
22319 (pass_lower_tm): Convert from a global struct to a subclass of
22320 gimple_opt_pass along with...
22321 (pass_data_lower_tm): ...new pass_data instance and...
22322 (make_pass_lower_tm): ...new function.
22323 (pass_tm_init): Convert from a global struct to a subclass of
22324 gimple_opt_pass along with...
22325 (pass_data_tm_init): ...new pass_data instance and...
22326 (make_pass_tm_init): ...new function.
22327 (pass_tm_mark): Convert from a global struct to a subclass of
22328 gimple_opt_pass along with...
22329 (pass_data_tm_mark): ...new pass_data instance and...
22330 (make_pass_tm_mark): ...new function.
22331 (pass_tm_edges): Convert from a global struct to a subclass of
22332 gimple_opt_pass along with...
22333 (pass_data_tm_edges): ...new pass_data instance and...
22334 (make_pass_tm_edges): ...new function.
22335 (pass_tm_memopt): Convert from a global struct to a subclass of
22336 gimple_opt_pass along with...
22337 (pass_data_tm_memopt): ...new pass_data instance and...
22338 (make_pass_tm_memopt): ...new function.
22339 (pass_ipa_tm): Convert from a global struct to a subclass of
22340 simple_ipa_opt_pass along with...
22341 (pass_data_ipa_tm): ...new pass_data instance and...
22342 (make_pass_ipa_tm): ...new function.
22343 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22344 subclass of gimple_opt_pass along with...
22345 (pass_data_call_cdce): ...new pass_data instance and...
22346 (make_pass_call_cdce): ...new function.
22347 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22348 subclass of gimple_opt_pass along with...
22349 (pass_data_build_cfg): ...new pass_data instance and...
22350 (make_pass_build_cfg): ...new function.
22351 (pass_split_crit_edges): Convert from a global struct to a subclass of
22352 gimple_opt_pass along with...
22353 (pass_data_split_crit_edges): ...new pass_data instance and...
22354 (make_pass_split_crit_edges): ...new function.
22355 (pass_warn_function_return): Convert from a global struct to a
22356 subclass of gimple_opt_pass along with...
22357 (pass_data_warn_function_return): ...new pass_data instance and...
22358 (make_pass_warn_function_return): ...new function.
22359 (pass_warn_function_noreturn): Convert from a global struct to a
22360 subclass of gimple_opt_pass along with...
22361 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22362 (make_pass_warn_function_noreturn): ...new function.
22363 (pass_warn_unused_result): Convert from a global struct to a subclass
22364 of gimple_opt_pass along with...
22365 (pass_data_warn_unused_result): ...new pass_data instance and...
22366 (make_pass_warn_unused_result): ...new function.
22367 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22368 a subclass of gimple_opt_pass along with...
22369 (pass_data_merge_phi): ...new pass_data instance and...
22370 (make_pass_merge_phi): ...new function.
22371 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22372 a subclass of gimple_opt_pass along with...
22373 (pass_data_lower_complex): ...new pass_data instance and...
22374 (make_pass_lower_complex): ...new function.
22375 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22376 gimple_opt_pass along with...
22377 (pass_data_lower_complex_O0): ...new pass_data instance and...
22378 (make_pass_lower_complex_O0): ...new function.
22379 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22380 subclass of gimple_opt_pass along with...
22381 (pass_data_lower_eh): ...new pass_data instance and...
22382 (make_pass_lower_eh): ...new function.
22383 (pass_refactor_eh): Convert from a global struct to a subclass of
22384 gimple_opt_pass along with...
22385 (pass_data_refactor_eh): ...new pass_data instance and...
22386 (make_pass_refactor_eh): ...new function.
22387 (pass_lower_resx): Convert from a global struct to a subclass of
22388 gimple_opt_pass along with...
22389 (pass_data_lower_resx): ...new pass_data instance and...
22390 (make_pass_lower_resx): ...new function.
22391 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22392 of gimple_opt_pass along with...
22393 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22394 (make_pass_lower_eh_dispatch): ...new function.
22395 (pass_cleanup_eh): Convert from a global struct to a subclass of
22396 gimple_opt_pass along with...
22397 (pass_data_cleanup_eh): ...new pass_data instance and...
22398 (make_pass_cleanup_eh): ...new function.
22399 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22400 to a subclass of simple_ipa_opt_pass along with...
22401 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22402 (make_pass_ipa_lower_emutls): ...new function.
22403 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22404 a subclass of gimple_opt_pass along with...
22405 (pass_data_if_conversion): ...new pass_data instance and...
22406 (make_pass_if_conversion): ...new function.
22407 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22408 subclass of gimple_opt_pass along with...
22409 (pass_data_build_ssa): ...new pass_data instance and...
22410 (make_pass_build_ssa): ...new function.
22411 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22412 global struct to a subclass of gimple_opt_pass along with...
22413 (pass_data_loop_distribution): ...new pass_data instance and...
22414 (make_pass_loop_distribution): ...new function.
22415 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22416 subclass of gimple_opt_pass along with...
22417 (pass_data_mudflap_1): ...new pass_data instance and...
22418 (make_pass_mudflap_1): ...new function.
22419 (pass_mudflap_2): Convert from a global struct to a subclass of
22420 gimple_opt_pass along with...
22421 (pass_data_mudflap_2): ...new pass_data instance and...
22422 (make_pass_mudflap_2): ...new function.
22423 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22424 subclass of gimple_opt_pass along with...
22425 (pass_data_mudflap_1): ...new pass_data instance and...
22426 (make_pass_mudflap_1): ...new function.
22427 (pass_mudflap_2): Convert from a global struct to a subclass of
22428 gimple_opt_pass along with...
22429 (pass_data_mudflap_2): ...new pass_data instance and...
22430 (make_pass_mudflap_2): ...new function.
22431 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22432 gimple_opt_pass along with...
22433 (pass_data_nrv): ...new pass_data instance and...
22434 (make_pass_nrv): ...new function.
22435 (pass_return_slot): Convert from a global struct to a subclass of
22436 gimple_opt_pass along with...
22437 (pass_data_return_slot): ...new pass_data instance and...
22438 (make_pass_return_slot): ...new function.
22439 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22440 to a subclass of gimple_opt_pass along with...
22441 (pass_data_object_sizes): ...new pass_data instance and...
22442 (make_pass_object_sizes): ...new function.
22443 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22444 global struct to a subclass of gimple_opt_pass along with...
22445 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22447 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22448 (pass_fixup_cfg): Convert from a global struct to a subclass of
22449 gimple_opt_pass along with...
22450 (pass_data_fixup_cfg): ...new pass_data instance and...
22451 (make_pass_fixup_cfg): ...new function.
22452 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22453 (make_pass_mudflap_1): ...new function.
22454 (pass_mudflap_2): Replace declaration with that of...
22455 (make_pass_mudflap_2): ...new function.
22456 (pass_asan): Replace declaration with that of...
22457 (make_pass_asan): ...new function.
22458 (pass_asan_O0): Replace declaration with that of...
22459 (make_pass_asan_O0): ...new function.
22460 (pass_tsan): Replace declaration with that of...
22461 (make_pass_tsan): ...new function.
22462 (pass_tsan_O0): Replace declaration with that of...
22463 (make_pass_tsan_O0): ...new function.
22464 (pass_lower_cf): Replace declaration with that of...
22465 (make_pass_lower_cf): ...new function.
22466 (pass_refactor_eh): Replace declaration with that of...
22467 (make_pass_refactor_eh): ...new function.
22468 (pass_lower_eh): Replace declaration with that of...
22469 (make_pass_lower_eh): ...new function.
22470 (pass_lower_eh_dispatch): Replace declaration with that of...
22471 (make_pass_lower_eh_dispatch): ...new function.
22472 (pass_lower_resx): Replace declaration with that of...
22473 (make_pass_lower_resx): ...new function.
22474 (pass_build_cfg): Replace declaration with that of...
22475 (make_pass_build_cfg): ...new function.
22476 (pass_early_tree_profile): Replace declaration with that of...
22477 (make_pass_early_tree_profile): ...new function.
22478 (pass_cleanup_eh): Replace declaration with that of...
22479 (make_pass_cleanup_eh): ...new function.
22480 (pass_sra): Replace declaration with that of...
22481 (make_pass_sra): ...new function.
22482 (pass_sra_early): Replace declaration with that of...
22483 (make_pass_sra_early): ...new function.
22484 (pass_early_ipa_sra): Replace declaration with that of...
22485 (make_pass_early_ipa_sra): ...new function.
22486 (pass_tail_recursion): Replace declaration with that of...
22487 (make_pass_tail_recursion): ...new function.
22488 (pass_tail_calls): Replace declaration with that of...
22489 (make_pass_tail_calls): ...new function.
22490 (pass_tree_loop): Replace declaration with that of...
22491 (make_pass_tree_loop): ...new function.
22492 (pass_tree_loop_init): Replace declaration with that of...
22493 (make_pass_tree_loop_init): ...new function.
22494 (pass_lim): Replace declaration with that of...
22495 (make_pass_lim): ...new function.
22496 (pass_tree_unswitch): Replace declaration with that of...
22497 (make_pass_tree_unswitch): ...new function.
22498 (pass_predcom): Replace declaration with that of...
22499 (make_pass_predcom): ...new function.
22500 (pass_iv_canon): Replace declaration with that of...
22501 (make_pass_iv_canon): ...new function.
22502 (pass_scev_cprop): Replace declaration with that of...
22503 (make_pass_scev_cprop): ...new function.
22504 (pass_empty_loop): Replace declaration with that of...
22505 (make_pass_empty_loop): ...new function.
22506 (pass_record_bounds): Replace declaration with that of...
22507 (make_pass_record_bounds): ...new function.
22508 (pass_graphite): Replace declaration with that of...
22509 (make_pass_graphite): ...new function.
22510 (pass_graphite_transforms): Replace declaration with that of...
22511 (make_pass_graphite_transforms): ...new function.
22512 (pass_if_conversion): Replace declaration with that of...
22513 (make_pass_if_conversion): ...new function.
22514 (pass_loop_distribution): Replace declaration with that of...
22515 (make_pass_loop_distribution): ...new function.
22516 (pass_vectorize): Replace declaration with that of...
22517 (make_pass_vectorize): ...new function.
22518 (pass_slp_vectorize): Replace declaration with that of...
22519 (make_pass_slp_vectorize): ...new function.
22520 (pass_complete_unroll): Replace declaration with that of...
22521 (make_pass_complete_unroll): ...new function.
22522 (pass_complete_unrolli): Replace declaration with that of...
22523 (make_pass_complete_unrolli): ...new function.
22524 (pass_parallelize_loops): Replace declaration with that of...
22525 (make_pass_parallelize_loops): ...new function.
22526 (pass_loop_prefetch): Replace declaration with that of...
22527 (make_pass_loop_prefetch): ...new function.
22528 (pass_iv_optimize): Replace declaration with that of...
22529 (make_pass_iv_optimize): ...new function.
22530 (pass_tree_loop_done): Replace declaration with that of...
22531 (make_pass_tree_loop_done): ...new function.
22532 (pass_ch): Replace declaration with that of...
22533 (make_pass_ch): ...new function.
22534 (pass_ccp): Replace declaration with that of...
22535 (make_pass_ccp): ...new function.
22536 (pass_phi_only_cprop): Replace declaration with that of...
22537 (make_pass_phi_only_cprop): ...new function.
22538 (pass_build_ssa): Replace declaration with that of...
22539 (make_pass_build_ssa): ...new function.
22540 (pass_build_alias): Replace declaration with that of...
22541 (make_pass_build_alias): ...new function.
22542 (pass_build_ealias): Replace declaration with that of...
22543 (make_pass_build_ealias): ...new function.
22544 (pass_dominator): Replace declaration with that of...
22545 (make_pass_dominator): ...new function.
22546 (pass_dce): Replace declaration with that of...
22547 (make_pass_dce): ...new function.
22548 (pass_dce_loop): Replace declaration with that of...
22549 (make_pass_dce_loop): ...new function.
22550 (pass_cd_dce): Replace declaration with that of...
22551 (make_pass_cd_dce): ...new function.
22552 (pass_call_cdce): Replace declaration with that of...
22553 (make_pass_call_cdce): ...new function.
22554 (pass_merge_phi): Replace declaration with that of...
22555 (make_pass_merge_phi): ...new function.
22556 (pass_split_crit_edges): Replace declaration with that of...
22557 (make_pass_split_crit_edges): ...new function.
22558 (pass_pre): Replace declaration with that of...
22559 (make_pass_pre): ...new function.
22560 (pass_profile): Replace declaration with that of...
22561 (make_pass_profile): ...new function.
22562 (pass_strip_predict_hints): Replace declaration with that of...
22563 (make_pass_strip_predict_hints): ...new function.
22564 (pass_lower_complex_O0): Replace declaration with that of...
22565 (make_pass_lower_complex_O0): ...new function.
22566 (pass_lower_complex): Replace declaration with that of...
22567 (make_pass_lower_complex): ...new function.
22568 (pass_lower_vector): Replace declaration with that of...
22569 (make_pass_lower_vector): ...new function.
22570 (pass_lower_vector_ssa): Replace declaration with that of...
22571 (make_pass_lower_vector_ssa): ...new function.
22572 (pass_lower_omp): Replace declaration with that of...
22573 (make_pass_lower_omp): ...new function.
22574 (pass_diagnose_omp_blocks): Replace declaration with that of...
22575 (make_pass_diagnose_omp_blocks): ...new function.
22576 (pass_expand_omp): Replace declaration with that of...
22577 (make_pass_expand_omp): ...new function.
22578 (pass_expand_omp_ssa): Replace declaration with that of...
22579 (make_pass_expand_omp_ssa): ...new function.
22580 (pass_object_sizes): Replace declaration with that of...
22581 (make_pass_object_sizes): ...new function.
22582 (pass_strlen): Replace declaration with that of...
22583 (make_pass_strlen): ...new function.
22584 (pass_fold_builtins): Replace declaration with that of...
22585 (make_pass_fold_builtins): ...new function.
22586 (pass_stdarg): Replace declaration with that of...
22587 (make_pass_stdarg): ...new function.
22588 (pass_early_warn_uninitialized): Replace declaration with that of...
22589 (make_pass_early_warn_uninitialized): ...new function.
22590 (pass_late_warn_uninitialized): Replace declaration with that of...
22591 (make_pass_late_warn_uninitialized): ...new function.
22592 (pass_cse_reciprocals): Replace declaration with that of...
22593 (make_pass_cse_reciprocals): ...new function.
22594 (pass_cse_sincos): Replace declaration with that of...
22595 (make_pass_cse_sincos): ...new function.
22596 (pass_optimize_bswap): Replace declaration with that of...
22597 (make_pass_optimize_bswap): ...new function.
22598 (pass_optimize_widening_mul): Replace declaration with that of...
22599 (make_pass_optimize_widening_mul): ...new function.
22600 (pass_warn_function_return): Replace declaration with that of...
22601 (make_pass_warn_function_return): ...new function.
22602 (pass_warn_function_noreturn): Replace declaration with that of...
22603 (make_pass_warn_function_noreturn): ...new function.
22604 (pass_cselim): Replace declaration with that of...
22605 (make_pass_cselim): ...new function.
22606 (pass_phiopt): Replace declaration with that of...
22607 (make_pass_phiopt): ...new function.
22608 (pass_forwprop): Replace declaration with that of...
22609 (make_pass_forwprop): ...new function.
22610 (pass_phiprop): Replace declaration with that of...
22611 (make_pass_phiprop): ...new function.
22612 (pass_tree_ifcombine): Replace declaration with that of...
22613 (make_pass_tree_ifcombine): ...new function.
22614 (pass_dse): Replace declaration with that of...
22615 (make_pass_dse): ...new function.
22616 (pass_nrv): Replace declaration with that of...
22617 (make_pass_nrv): ...new function.
22618 (pass_rename_ssa_copies): Replace declaration with that of...
22619 (make_pass_rename_ssa_copies): ...new function.
22620 (pass_sink_code): Replace declaration with that of...
22621 (make_pass_sink_code): ...new function.
22622 (pass_fre): Replace declaration with that of...
22623 (make_pass_fre): ...new function.
22624 (pass_check_data_deps): Replace declaration with that of...
22625 (make_pass_check_data_deps): ...new function.
22626 (pass_copy_prop): Replace declaration with that of...
22627 (make_pass_copy_prop): ...new function.
22628 (pass_vrp): Replace declaration with that of...
22629 (make_pass_vrp): ...new function.
22630 (pass_uncprop): Replace declaration with that of...
22631 (make_pass_uncprop): ...new function.
22632 (pass_return_slot): Replace declaration with that of...
22633 (make_pass_return_slot): ...new function.
22634 (pass_reassoc): Replace declaration with that of...
22635 (make_pass_reassoc): ...new function.
22636 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22637 (make_pass_rebuild_cgraph_edges): ...new function.
22638 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22639 (make_pass_remove_cgraph_callee_edges): ...new function.
22640 (pass_build_cgraph_edges): Replace declaration with that of...
22641 (make_pass_build_cgraph_edges): ...new function.
22642 (pass_local_pure_const): Replace declaration with that of...
22643 (make_pass_local_pure_const): ...new function.
22644 (pass_tracer): Replace declaration with that of...
22645 (make_pass_tracer): ...new function.
22646 (pass_warn_unused_result): Replace declaration with that of...
22647 (make_pass_warn_unused_result): ...new function.
22648 (pass_diagnose_tm_blocks): Replace declaration with that of...
22649 (make_pass_diagnose_tm_blocks): ...new function.
22650 (pass_lower_tm): Replace declaration with that of...
22651 (make_pass_lower_tm): ...new function.
22652 (pass_tm_init): Replace declaration with that of...
22653 (make_pass_tm_init): ...new function.
22654 (pass_tm_mark): Replace declaration with that of...
22655 (make_pass_tm_mark): ...new function.
22656 (pass_tm_memopt): Replace declaration with that of...
22657 (make_pass_tm_memopt): ...new function.
22658 (pass_tm_edges): Replace declaration with that of...
22659 (make_pass_tm_edges): ...new function.
22660 (pass_split_functions): Replace declaration with that of...
22661 (make_pass_split_functions): ...new function.
22662 (pass_feedback_split_functions): Replace declaration with that of...
22663 (make_pass_feedback_split_functions): ...new function.
22664 (pass_strength_reduction): Replace declaration with that of...
22665 (make_pass_strength_reduction): ...new function.
22666 (pass_ipa_lower_emutls): Replace declaration with that of...
22667 (make_pass_ipa_lower_emutls): ...new function.
22668 (pass_ipa_function_and_variable_visibility): Replace declaration with
22670 (make_pass_ipa_function_and_variable_visibility): ...new function.
22671 (pass_ipa_tree_profile): Replace declaration with that of...
22672 (make_pass_ipa_tree_profile): ...new function.
22673 (pass_early_local_passes): Replace declaration with that of...
22674 (make_pass_early_local_passes): ...new function.
22675 (pass_ipa_whole_program_visibility): Replace declaration with that
22677 (make_pass_ipa_whole_program_visibility): ...new function.
22678 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22679 (make_pass_ipa_lto_gimple_out): ...new function.
22680 (pass_ipa_increase_alignment): Replace declaration with that of...
22681 (make_pass_ipa_increase_alignment): ...new function.
22682 (pass_ipa_inline): Replace declaration with that of...
22683 (make_pass_ipa_inline): ...new function.
22684 (pass_ipa_free_lang_data): Replace declaration with that of...
22685 (make_pass_ipa_free_lang_data): ...new function.
22686 (pass_ipa_free_inline_summary): Replace declaration with that of...
22687 (make_pass_ipa_free_inline_summary): ...new function.
22688 (pass_ipa_cp): Replace declaration with that of...
22689 (make_pass_ipa_cp): ...new function.
22690 (pass_ipa_reference): Replace declaration with that of...
22691 (make_pass_ipa_reference): ...new function.
22692 (pass_ipa_pure_const): Replace declaration with that of...
22693 (make_pass_ipa_pure_const): ...new function.
22694 (pass_ipa_pta): Replace declaration with that of...
22695 (make_pass_ipa_pta): ...new function.
22696 (pass_ipa_lto_finish_out): Replace declaration with that of...
22697 (make_pass_ipa_lto_finish_out): ...new function.
22698 (pass_ipa_tm): Replace declaration with that of...
22699 (make_pass_ipa_tm): ...new function.
22700 (pass_ipa_profile): Replace declaration with that of...
22701 (make_pass_ipa_profile): ...new function.
22702 (pass_ipa_cdtor_merge): Replace declaration with that of...
22703 (make_pass_ipa_cdtor_merge): ...new function.
22704 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22706 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22707 (pass_init_datastructures): Replace declaration with that of...
22708 (make_pass_init_datastructures): ...new function.
22709 (pass_fixup_cfg): Replace declaration with that of...
22710 (make_pass_fixup_cfg): ...new function.
22711 (pass_expand): Replace declaration with that of...
22712 (make_pass_expand): ...new function.
22713 (pass_instantiate_virtual_regs): Replace declaration with that of...
22714 (make_pass_instantiate_virtual_regs): ...new function.
22715 (pass_rtl_fwprop): Replace declaration with that of...
22716 (make_pass_rtl_fwprop): ...new function.
22717 (pass_rtl_fwprop_addr): Replace declaration with that of...
22718 (make_pass_rtl_fwprop_addr): ...new function.
22719 (pass_jump): Replace declaration with that of...
22720 (make_pass_jump): ...new function.
22721 (pass_jump2): Replace declaration with that of...
22722 (make_pass_jump2): ...new function.
22723 (pass_lower_subreg): Replace declaration with that of...
22724 (make_pass_lower_subreg): ...new function.
22725 (pass_cse): Replace declaration with that of...
22726 (make_pass_cse): ...new function.
22727 (pass_fast_rtl_dce): Replace declaration with that of...
22728 (make_pass_fast_rtl_dce): ...new function.
22729 (pass_ud_rtl_dce): Replace declaration with that of...
22730 (make_pass_ud_rtl_dce): ...new function.
22731 (pass_rtl_dce): Replace declaration with that of...
22732 (make_pass_rtl_dce): ...new function.
22733 (pass_rtl_dse1): Replace declaration with that of...
22734 (make_pass_rtl_dse1): ...new function.
22735 (pass_rtl_dse2): Replace declaration with that of...
22736 (make_pass_rtl_dse2): ...new function.
22737 (pass_rtl_dse3): Replace declaration with that of...
22738 (make_pass_rtl_dse3): ...new function.
22739 (pass_rtl_cprop): Replace declaration with that of...
22740 (make_pass_rtl_cprop): ...new function.
22741 (pass_rtl_pre): Replace declaration with that of...
22742 (make_pass_rtl_pre): ...new function.
22743 (pass_rtl_hoist): Replace declaration with that of...
22744 (make_pass_rtl_hoist): ...new function.
22745 (pass_rtl_store_motion): Replace declaration with that of...
22746 (make_pass_rtl_store_motion): ...new function.
22747 (pass_cse_after_global_opts): Replace declaration with that of...
22748 (make_pass_cse_after_global_opts): ...new function.
22749 (pass_rtl_ifcvt): Replace declaration with that of...
22750 (make_pass_rtl_ifcvt): ...new function.
22751 (pass_into_cfg_layout_mode): Replace declaration with that of...
22752 (make_pass_into_cfg_layout_mode): ...new function.
22753 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22754 (make_pass_outof_cfg_layout_mode): ...new function.
22755 (pass_loop2): Replace declaration with that of...
22756 (make_pass_loop2): ...new function.
22757 (pass_rtl_loop_init): Replace declaration with that of...
22758 (make_pass_rtl_loop_init): ...new function.
22759 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22760 (make_pass_rtl_move_loop_invariants): ...new function.
22761 (pass_rtl_unswitch): Replace declaration with that of...
22762 (make_pass_rtl_unswitch): ...new function.
22763 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22764 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22765 (pass_rtl_doloop): Replace declaration with that of...
22766 (make_pass_rtl_doloop): ...new function.
22767 (pass_rtl_loop_done): Replace declaration with that of...
22768 (make_pass_rtl_loop_done): ...new function.
22769 (pass_web): Replace declaration with that of...
22770 (make_pass_web): ...new function.
22771 (pass_cse2): Replace declaration with that of...
22772 (make_pass_cse2): ...new function.
22773 (pass_df_initialize_opt): Replace declaration with that of...
22774 (make_pass_df_initialize_opt): ...new function.
22775 (pass_df_initialize_no_opt): Replace declaration with that of...
22776 (make_pass_df_initialize_no_opt): ...new function.
22777 (pass_reginfo_init): Replace declaration with that of...
22778 (make_pass_reginfo_init): ...new function.
22779 (pass_inc_dec): Replace declaration with that of...
22780 (make_pass_inc_dec): ...new function.
22781 (pass_stack_ptr_mod): Replace declaration with that of...
22782 (make_pass_stack_ptr_mod): ...new function.
22783 (pass_initialize_regs): Replace declaration with that of...
22784 (make_pass_initialize_regs): ...new function.
22785 (pass_combine): Replace declaration with that of...
22786 (make_pass_combine): ...new function.
22787 (pass_if_after_combine): Replace declaration with that of...
22788 (make_pass_if_after_combine): ...new function.
22789 (pass_ree): Replace declaration with that of...
22790 (make_pass_ree): ...new function.
22791 (pass_partition_blocks): Replace declaration with that of...
22792 (make_pass_partition_blocks): ...new function.
22793 (pass_match_asm_constraints): Replace declaration with that of...
22794 (make_pass_match_asm_constraints): ...new function.
22795 (pass_regmove): Replace declaration with that of...
22796 (make_pass_regmove): ...new function.
22797 (pass_split_all_insns): Replace declaration with that of...
22798 (make_pass_split_all_insns): ...new function.
22799 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22800 (make_pass_fast_rtl_byte_dce): ...new function.
22801 (pass_lower_subreg2): Replace declaration with that of...
22802 (make_pass_lower_subreg2): ...new function.
22803 (pass_mode_switching): Replace declaration with that of...
22804 (make_pass_mode_switching): ...new function.
22805 (pass_sms): Replace declaration with that of...
22806 (make_pass_sms): ...new function.
22807 (pass_sched): Replace declaration with that of...
22808 (make_pass_sched): ...new function.
22809 (pass_ira): Replace declaration with that of...
22810 (make_pass_ira): ...new function.
22811 (pass_reload): Replace declaration with that of...
22812 (make_pass_reload): ...new function.
22813 (pass_clean_state): Replace declaration with that of...
22814 (make_pass_clean_state): ...new function.
22815 (pass_branch_prob): Replace declaration with that of...
22816 (make_pass_branch_prob): ...new function.
22817 (pass_value_profile_transformations): Replace declaration with that
22819 (make_pass_value_profile_transformations): ...new function.
22820 (pass_postreload_cse): Replace declaration with that of...
22821 (make_pass_postreload_cse): ...new function.
22822 (pass_gcse2): Replace declaration with that of...
22823 (make_pass_gcse2): ...new function.
22824 (pass_split_after_reload): Replace declaration with that of...
22825 (make_pass_split_after_reload): ...new function.
22826 (pass_branch_target_load_optimize1): Replace declaration with that
22828 (make_pass_branch_target_load_optimize1): ...new function.
22829 (pass_thread_prologue_and_epilogue): Replace declaration with that
22831 (make_pass_thread_prologue_and_epilogue): ...new function.
22832 (pass_stack_adjustments): Replace declaration with that of...
22833 (make_pass_stack_adjustments): ...new function.
22834 (pass_peephole2): Replace declaration with that of...
22835 (make_pass_peephole2): ...new function.
22836 (pass_if_after_reload): Replace declaration with that of...
22837 (make_pass_if_after_reload): ...new function.
22838 (pass_regrename): Replace declaration with that of...
22839 (make_pass_regrename): ...new function.
22840 (pass_cprop_hardreg): Replace declaration with that of...
22841 (make_pass_cprop_hardreg): ...new function.
22842 (pass_reorder_blocks): Replace declaration with that of...
22843 (make_pass_reorder_blocks): ...new function.
22844 (pass_branch_target_load_optimize2): Replace declaration with that
22846 (make_pass_branch_target_load_optimize2): ...new function.
22847 (pass_leaf_regs): Replace declaration with that of...
22848 (make_pass_leaf_regs): ...new function.
22849 (pass_split_before_sched2): Replace declaration with that of...
22850 (make_pass_split_before_sched2): ...new function.
22851 (pass_compare_elim_after_reload): Replace declaration with that of...
22852 (make_pass_compare_elim_after_reload): ...new function.
22853 (pass_sched2): Replace declaration with that of...
22854 (make_pass_sched2): ...new function.
22855 (pass_stack_regs): Replace declaration with that of...
22856 (make_pass_stack_regs): ...new function.
22857 (pass_stack_regs_run): Replace declaration with that of...
22858 (make_pass_stack_regs_run): ...new function.
22859 (pass_df_finish): Replace declaration with that of...
22860 (make_pass_df_finish): ...new function.
22861 (pass_compute_alignments): Replace declaration with that of...
22862 (make_pass_compute_alignments): ...new function.
22863 (pass_duplicate_computed_gotos): Replace declaration with that of...
22864 (make_pass_duplicate_computed_gotos): ...new function.
22865 (pass_variable_tracking): Replace declaration with that of...
22866 (make_pass_variable_tracking): ...new function.
22867 (pass_free_cfg): Replace declaration with that of...
22868 (make_pass_free_cfg): ...new function.
22869 (pass_machine_reorg): Replace declaration with that of...
22870 (make_pass_machine_reorg): ...new function.
22871 (pass_cleanup_barriers): Replace declaration with that of...
22872 (make_pass_cleanup_barriers): ...new function.
22873 (pass_delay_slots): Replace declaration with that of...
22874 (make_pass_delay_slots): ...new function.
22875 (pass_split_for_shorten_branches): Replace declaration with that of...
22876 (make_pass_split_for_shorten_branches): ...new function.
22877 (pass_split_before_regstack): Replace declaration with that of...
22878 (make_pass_split_before_regstack): ...new function.
22879 (pass_convert_to_eh_region_ranges): Replace declaration with that
22881 (make_pass_convert_to_eh_region_ranges): ...new function.
22882 (pass_shorten_branches): Replace declaration with that of...
22883 (make_pass_shorten_branches): ...new function.
22884 (pass_set_nothrow_function_flags): Replace declaration with that of...
22885 (make_pass_set_nothrow_function_flags): ...new function.
22886 (pass_dwarf2_frame): Replace declaration with that of...
22887 (make_pass_dwarf2_frame): ...new function.
22888 (pass_final): Replace declaration with that of...
22889 (make_pass_final): ...new function.
22890 (pass_rtl_seqabstr): Replace declaration with that of...
22891 (make_pass_rtl_seqabstr): ...new function.
22892 (pass_release_ssa_names): Replace declaration with that of...
22893 (make_pass_release_ssa_names): ...new function.
22894 (pass_early_inline): Replace declaration with that of...
22895 (make_pass_early_inline): ...new function.
22896 (pass_inline_parameters): Replace declaration with that of...
22897 (make_pass_inline_parameters): ...new function.
22898 (pass_update_address_taken): Replace declaration with that of...
22899 (make_pass_update_address_taken): ...new function.
22900 (pass_convert_switch): Replace declaration with that of...
22901 (make_pass_convert_switch): ...new function.
22902 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22903 to a subclass of simple_ipa_opt_pass along with...
22904 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22905 (make_pass_ipa_tree_profile): ...new function.
22906 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22907 subclass of gimple_opt_pass along with...
22908 (pass_data_sra_early): ...new pass_data instance and...
22909 (make_pass_sra_early): ...new function.
22910 (pass_sra): Convert from a global struct to a subclass of
22911 gimple_opt_pass along with...
22912 (pass_data_sra): ...new pass_data instance and...
22913 (make_pass_sra): ...new function.
22914 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22915 gimple_opt_pass along with...
22916 (pass_data_early_ipa_sra): ...new pass_data instance and...
22917 (make_pass_early_ipa_sra): ...new function.
22918 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22919 subclass of gimple_opt_pass along with...
22920 (pass_data_ccp): ...new pass_data instance and...
22921 (make_pass_ccp): ...new function.
22922 (pass_fold_builtins): Convert from a global struct to a subclass of
22923 gimple_opt_pass along with...
22924 (pass_data_fold_builtins): ...new pass_data instance and...
22925 (make_pass_fold_builtins): ...new function.
22926 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22927 subclass of gimple_opt_pass along with...
22928 (pass_data_copy_prop): ...new pass_data instance and...
22929 (make_pass_copy_prop): ...new function.
22930 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22931 global struct to a subclass of gimple_opt_pass along with...
22932 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22933 (make_pass_rename_ssa_copies): ...new function.
22934 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22935 subclass of gimple_opt_pass along with...
22936 (pass_data_dce): ...new pass_data instance and...
22937 (make_pass_dce): ...new function.
22938 (pass_dce_loop): Convert from a global struct to a subclass of
22939 gimple_opt_pass along with...
22940 (pass_data_dce_loop): ...new pass_data instance and...
22941 (make_pass_dce_loop): ...new function.
22942 (pass_cd_dce): Convert from a global struct to a subclass of
22943 gimple_opt_pass along with...
22944 (pass_data_cd_dce): ...new pass_data instance and...
22945 (make_pass_cd_dce): ...new function.
22946 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22947 subclass of gimple_opt_pass along with...
22948 (pass_data_dominator): ...new pass_data instance and...
22949 (make_pass_dominator): ...new function.
22950 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22951 gimple_opt_pass along with...
22952 (pass_data_phi_only_cprop): ...new pass_data instance and...
22953 (make_pass_phi_only_cprop): ...new function.
22954 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22955 subclass of gimple_opt_pass along with...
22956 (pass_data_dse): ...new pass_data instance and...
22957 (make_pass_dse): ...new function.
22958 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22959 a subclass of gimple_opt_pass along with...
22960 (pass_data_forwprop): ...new pass_data instance and...
22961 (make_pass_forwprop): ...new function.
22962 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22963 struct to a subclass of gimple_opt_pass along with...
22964 (pass_data_tree_ifcombine): ...new pass_data instance and...
22965 (make_pass_tree_ifcombine): ...new function.
22966 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22967 subclass of gimple_opt_pass along with...
22968 (pass_data_ch): ...new pass_data instance and...
22969 (make_pass_ch): ...new function.
22970 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22971 subclass of gimple_opt_pass along with...
22972 (pass_data_tree_loop): ...new pass_data instance and...
22973 (make_pass_tree_loop): ...new function.
22974 (pass_tree_loop_init): Convert from a global struct to a subclass of
22975 gimple_opt_pass along with...
22976 (pass_data_tree_loop_init): ...new pass_data instance and...
22977 (make_pass_tree_loop_init): ...new function.
22978 (pass_lim): Convert from a global struct to a subclass of
22979 gimple_opt_pass along with...
22980 (pass_data_lim): ...new pass_data instance and...
22981 (make_pass_lim): ...new function.
22982 (pass_tree_unswitch): Convert from a global struct to a subclass of
22983 gimple_opt_pass along with...
22984 (pass_data_tree_unswitch): ...new pass_data instance and...
22985 (make_pass_tree_unswitch): ...new function.
22986 (pass_predcom): Convert from a global struct to a subclass of
22987 gimple_opt_pass along with...
22988 (pass_data_predcom): ...new pass_data instance and...
22989 (make_pass_predcom): ...new function.
22990 (pass_vectorize): Convert from a global struct to a subclass of
22991 gimple_opt_pass along with...
22992 (pass_data_vectorize): ...new pass_data instance and...
22993 (make_pass_vectorize): ...new function.
22994 (pass_graphite): Convert from a global struct to a subclass of
22995 gimple_opt_pass along with...
22996 (pass_data_graphite): ...new pass_data instance and...
22997 (make_pass_graphite): ...new function.
22998 (pass_graphite_transforms): Convert from a global struct to a subclass
22999 of gimple_opt_pass along with...
23000 (pass_data_graphite_transforms): ...new pass_data instance and...
23001 (make_pass_graphite_transforms): ...new function.
23002 (pass_check_data_deps): Convert from a global struct to a subclass of
23003 gimple_opt_pass along with...
23004 (pass_data_check_data_deps): ...new pass_data instance and...
23005 (make_pass_check_data_deps): ...new function.
23006 (pass_iv_canon): Convert from a global struct to a subclass of
23007 gimple_opt_pass along with...
23008 (pass_data_iv_canon): ...new pass_data instance and...
23009 (make_pass_iv_canon): ...new function.
23010 (pass_scev_cprop): Convert from a global struct to a subclass of
23011 gimple_opt_pass along with...
23012 (pass_data_scev_cprop): ...new pass_data instance and...
23013 (make_pass_scev_cprop): ...new function.
23014 (pass_record_bounds): Convert from a global struct to a subclass of
23015 gimple_opt_pass along with...
23016 (pass_data_record_bounds): ...new pass_data instance and...
23017 (make_pass_record_bounds): ...new function.
23018 (pass_complete_unroll): Convert from a global struct to a subclass of
23019 gimple_opt_pass along with...
23020 (pass_data_complete_unroll): ...new pass_data instance and...
23021 (make_pass_complete_unroll): ...new function.
23022 (pass_complete_unrolli): Convert from a global struct to a subclass of
23023 gimple_opt_pass along with...
23024 (pass_data_complete_unrolli): ...new pass_data instance and...
23025 (make_pass_complete_unrolli): ...new function.
23026 (pass_parallelize_loops): Convert from a global struct to a subclass
23027 of gimple_opt_pass along with...
23028 (pass_data_parallelize_loops): ...new pass_data instance and...
23029 (make_pass_parallelize_loops): ...new function.
23030 (pass_loop_prefetch): Convert from a global struct to a subclass of
23031 gimple_opt_pass along with...
23032 (pass_data_loop_prefetch): ...new pass_data instance and...
23033 (make_pass_loop_prefetch): ...new function.
23034 (pass_iv_optimize): Convert from a global struct to a subclass of
23035 gimple_opt_pass along with...
23036 (pass_data_iv_optimize): ...new pass_data instance and...
23037 (make_pass_iv_optimize): ...new function.
23038 (pass_tree_loop_done): Convert from a global struct to a subclass of
23039 gimple_opt_pass along with...
23040 (pass_data_tree_loop_done): ...new pass_data instance and...
23041 (make_pass_tree_loop_done): ...new function.
23042 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23043 struct to a subclass of gimple_opt_pass along with...
23044 (pass_data_cse_reciprocals): ...new pass_data instance and...
23045 (make_pass_cse_reciprocals): ...new function.
23046 (pass_cse_sincos): Convert from a global struct to a subclass of
23047 gimple_opt_pass along with...
23048 (pass_data_cse_sincos): ...new pass_data instance and...
23049 (make_pass_cse_sincos): ...new function.
23050 (pass_optimize_bswap): Convert from a global struct to a subclass of
23051 gimple_opt_pass along with...
23052 (pass_data_optimize_bswap): ...new pass_data instance and...
23053 (make_pass_optimize_bswap): ...new function.
23054 (pass_optimize_widening_mul): Convert from a global struct to a
23055 subclass of gimple_opt_pass along with...
23056 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23057 (make_pass_optimize_widening_mul): ...new function.
23058 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23059 subclass of gimple_opt_pass along with...
23060 (pass_data_phiopt): ...new pass_data instance and...
23061 (make_pass_phiopt): ...new function.
23062 (pass_cselim): Convert from a global struct to a subclass of
23063 gimple_opt_pass along with...
23064 (pass_data_cselim): ...new pass_data instance and...
23065 (make_pass_cselim): ...new function.
23066 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23067 subclass of gimple_opt_pass along with...
23068 (pass_data_phiprop): ...new pass_data instance and...
23069 (make_pass_phiprop): ...new function.
23070 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23071 subclass of gimple_opt_pass along with...
23072 (pass_data_pre): ...new pass_data instance and...
23073 (make_pass_pre): ...new function.
23074 (pass_fre): Convert from a global struct to a subclass of
23075 gimple_opt_pass along with...
23076 (pass_data_fre): ...new pass_data instance and...
23077 (make_pass_fre): ...new function.
23078 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23079 subclass of gimple_opt_pass along with...
23080 (pass_data_reassoc): ...new pass_data instance and...
23081 (make_pass_reassoc): ...new function.
23082 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23083 subclass of gimple_opt_pass along with...
23084 (pass_data_sink_code): ...new pass_data instance and...
23085 (make_pass_sink_code): ...new function.
23086 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23087 subclass of gimple_opt_pass along with...
23088 (pass_data_strlen): ...new pass_data instance and...
23089 (make_pass_strlen): ...new function.
23090 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23091 struct to a subclass of gimple_opt_pass along with...
23092 (pass_data_build_alias): ...new pass_data instance and...
23093 (make_pass_build_alias): ...new function.
23094 (pass_build_ealias): Convert from a global struct to a subclass of
23095 gimple_opt_pass along with...
23096 (pass_data_build_ealias): ...new pass_data instance and...
23097 (make_pass_build_ealias): ...new function.
23098 (pass_ipa_pta): Convert from a global struct to a subclass of
23099 simple_ipa_opt_pass along with...
23100 (pass_data_ipa_pta): ...new pass_data instance and...
23101 (make_pass_ipa_pta): ...new function.
23102 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23103 subclass of gimple_opt_pass along with...
23104 (pass_data_uncprop): ...new pass_data instance and...
23105 (make_pass_uncprop): ...new function.
23106 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23107 global struct to a subclass of gimple_opt_pass along with...
23108 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23109 (make_pass_late_warn_uninitialized): ...new function.
23110 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23111 to a subclass of gimple_opt_pass along with...
23112 (pass_data_init_datastructures): ...new pass_data instance and...
23113 (make_pass_init_datastructures): ...new function.
23114 (pass_early_warn_uninitialized): Convert from a global struct to a
23115 subclass of gimple_opt_pass along with...
23116 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23117 (make_pass_early_warn_uninitialized): ...new function.
23118 (pass_update_address_taken): Convert from a global struct to a
23119 subclass of gimple_opt_pass along with...
23120 (pass_data_update_address_taken): ...new pass_data instance and...
23121 (make_pass_update_address_taken): ...new function.
23122 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23123 struct to a subclass of gimple_opt_pass along with...
23124 (pass_data_release_ssa_names): ...new pass_data instance and...
23125 (make_pass_release_ssa_names): ...new function.
23126 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23127 subclass of gimple_opt_pass along with...
23128 (pass_data_stdarg): ...new pass_data instance and...
23129 (make_pass_stdarg): ...new function.
23130 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23131 global struct to a subclass of gimple_opt_pass along with...
23132 (pass_data_convert_switch): ...new pass_data instance and...
23133 (make_pass_convert_switch): ...new function.
23134 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23135 to a subclass of gimple_opt_pass along with...
23136 (pass_data_tail_recursion): ...new pass_data instance and...
23137 (make_pass_tail_recursion): ...new function.
23138 (pass_tail_calls): Convert from a global struct to a subclass of
23139 gimple_opt_pass along with...
23140 (pass_data_tail_calls): ...new pass_data instance and...
23141 (make_pass_tail_calls): ...new function.
23142 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23143 struct to a subclass of gimple_opt_pass along with...
23144 (pass_data_lower_vector): ...new pass_data instance and...
23145 (make_pass_lower_vector): ...new function.
23146 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23147 gimple_opt_pass along with...
23148 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23149 (make_pass_lower_vector_ssa): ...new function.
23150 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23151 to a subclass of gimple_opt_pass along with...
23152 (pass_data_slp_vectorize): ...new pass_data instance and...
23153 (make_pass_slp_vectorize): ...new function.
23154 (pass_ipa_increase_alignment): Convert from a global struct to a
23155 subclass of simple_ipa_opt_pass along with...
23156 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23157 (make_pass_ipa_increase_alignment): ...new function.
23158 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23159 gimple_opt_pass along with...
23160 (pass_data_vrp): ...new pass_data instance and...
23161 (make_pass_vrp): ...new function.
23162 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23163 subclass of simple_ipa_opt_pass along with...
23164 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23165 (make_pass_ipa_free_lang_data): ...new function.
23166 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23167 gimple_opt_pass along with...
23168 (pass_data_tsan): ...new pass_data instance and...
23169 (make_pass_tsan): ...new function.
23170 (pass_tsan_O0): Convert from a global struct to a subclass of
23171 gimple_opt_pass along with...
23172 (pass_data_tsan_O0): ...new pass_data instance and...
23173 (make_pass_tsan_O0): ...new function.
23174 * var-tracking.c (pass_variable_tracking): Convert from a global
23175 struct to a subclass of rtl_opt_pass along with...
23176 (pass_data_variable_tracking): ...new pass_data instance and...
23177 (make_pass_variable_tracking): ...new function.
23178 * web.c (pass_web): Convert from a global struct to a subclass of
23179 rtl_opt_pass along with...
23180 (pass_data_web): ...new pass_data instance and...
23181 (make_pass_web): ...new function.
23182 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23183 declaration with that of...
23184 (make_pass_mode_switch_use): ...new function.
23185 (pass_resolve_sw_modes): Replace declaration with that of...
23186 (make_pass_resolve_sw_modes): ...new function.
23187 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23188 from a global struct to a subclass of rtl_opt_pass along with...
23189 (pass_data_mode_switch_use): ...new pass_data instance and...
23190 (make_pass_mode_switch_use): ...new function.
23191 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23192 from a global struct to a subclass of rtl_opt_pass along with...
23193 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23194 (make_pass_resolve_sw_modes): ...new function.
23195 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23196 struct to a subclass of rtl_opt_pass along with...
23197 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23198 (make_pass_insert_vzeroupper): ...new function.
23199 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23200 global struct to a subclass of rtl_opt_pass along with...
23201 (pass_data_work_around_errata): ...new pass_data instance and...
23202 (make_pass_work_around_errata): ...new function.
23203 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23204 struct to a subclass of rtl_opt_pass along with...
23205 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23206 (make_pass_mips_machine_reorg2): ...new function.
23208 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23210 * passes.c (pass_manager::operator new): New.
23212 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23214 Handwritten part of conversion of passes to C++ classes.
23216 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23217 (toplev.o): Add dep on PASS_MANAGER_H.
23218 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23219 of early local pases to reflect this moving from a global to a
23220 member of gcc::pass_manager.
23221 (cgraph_add_new_function): Likewise.
23222 * lto-cgraph.c (lto_output_node): Update for conversion of
23223 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23224 * passes.c (opt_pass::clone): New.
23225 (opt_pass::gate): New.
23226 (opt_pass::execute): New.
23227 (opt_pass::opt_pass): New.
23228 (pass_manager::execute_early_local_passes): New.
23229 (pass_manager::execute_pass_mode_switching): new.
23230 (finish_optimization_passes): Convert to...
23231 (pass_manager::finish_optimization_passes): ...this.
23232 (finish_optimization_passes): Update for conversion of passes to
23234 (register_dump_files_1): Use has_gate since we cannot portably
23235 check a vtable entry against NULL.
23236 (dump_one_pass): Likewise.
23237 (ipa_write_summaries_2): Likewise.
23238 (ipa_write_optimization_summaries_1): Likewise.
23239 (ipa_read_summaries_1): Likewise.
23240 (ipa_read_optimization_summaries_1): Likewise.
23241 (execute_ipa_stmt_fixups): Likewise.
23242 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23243 pass-creation functions rather than wiring up globals, and
23244 storing the results in fields of pass_manager generated using
23245 pass-instances.def.
23246 (pass_manager::dump_profile_report): Update for conversion of
23247 passes to C++ classes.
23248 (pass_manager::execute_ipa_summary_passes): Likewise.
23249 (execute_one_ipa_transform_pass): Likewise.
23250 (execute_one_pass): Use has_gate and has_execute since we cannot
23251 portably check a vtable entry against NULL.
23252 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23253 (pass_manager): Use pass-instances.def to add fields for the
23254 various pass instances.
23255 * toplev.c (finalize): Update for move of
23256 finish_optimization_passes to a method of gcc::pass_manager.
23257 * toplev.h (finish_optimization_passes): Move to method of class
23259 * tree-pass.h (struct pass_data): New.
23260 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23261 (opt_pass::gate): Convert to virtual function.
23262 (opt_pass::~opt_pass): New.
23263 (opt_pass::clone): New.
23264 (opt_pass::execute): Convert to virtual function.
23265 (opt_pass::opt_pass): New.
23266 (opt_pass::ctxt_): new.
23267 (gimple_opt_pass): Convert to subclass of opt_pass.
23268 (gimple_opt_pass::gimple_opt_pass): New.
23269 (rtl_opt_pass): Convert to subclass of opt_pass.
23270 (rtl_opt_pass::rtl_opt_pass): New.
23271 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23272 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23273 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23274 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23275 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23276 invocation of pass_mode_switching to reflect this moving from a
23277 global to a member of gcc::pass_manager.
23278 (ix86_option_override): Rework how pass_insert_vzeroupper is
23279 added to the pass_manager to reflect autogenerated changes.
23280 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23282 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23284 PR rtl-optimization/57708
23285 * recog.c (peep2_find_free_register): Validate all regs in a
23288 2013-08-05 Jan Hubicka <jh@suse.cz>
23291 * cgraph.c (verify_cgraph_node): Accept local flags from other
23293 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23294 (function_and_variable_visibility): Likewise.
23295 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23297 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23299 * graph.c (init_graph_slim_pretty_print): Remove.
23300 (print_graph_cfg): Do not call it. Use local pretty printer.
23301 (start_graph_dump): Likewise.
23303 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23305 * gimple-pretty-print.c (buffer): Remove.
23306 (initialized): Likewise.
23307 (maybe_init_pretty_print): Likewise.
23308 (print_gimple_stmt): Do not call it. Use non-static local
23309 pretty_printer variable.
23310 (print_gimple_expr): Likewise.
23311 (print_gimple_seq): Likewise.
23312 (gimple_dump_bb): Likewise.
23314 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23316 * asan.c (asan_pp): Remove.
23317 (asan_pp_initialized): Likewise.
23318 (asan_pp_initialize): Likewise.
23319 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23320 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23321 (asan_add_global): Likewise.
23323 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23325 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23326 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23327 * pretty-print.c (pp_formatted_text_data): Likewise.
23328 (pp_indent): Rename from pp_base_indent.
23329 (pp_format): Rename from pp_base_format.
23330 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23331 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23332 (pp_flush): Rename from pp_base_flush.
23333 (pp_set_line_maximum_length): Rename from
23334 pp_base_set_line_maximum_length.
23335 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23336 (pp_set_prefix): Rename from pp_base_set_prefix.
23337 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23338 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23339 (pp_append_text): Rename from pp_base_append_text.
23340 (pp_formatted_text): Rename from pp_base_formatted_text.
23341 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23342 (pp_remaining_character_count_for_line): Rename from
23343 pp_base_remaining_character_count_for_line.
23344 (pp_newline): Rename from pp_base_newline.
23345 (pp_character): Rename from pp_base_character.
23346 (pp_string): Rename from pp_base_string.
23347 (pp_maybe_space): Rename from pp_base_maybe_space.
23348 * asan.c (asan_pp_string): Adjust.
23349 (asan_emit_stack_protection): Likewise.
23350 (asan_add_global): Likewise.
23351 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23352 * tree-mudflap.c (mf_varname_tree): Likewise.
23353 * tree-pretty-print.c (pp_tree_identifier): Rename from
23354 pp_base_tree_identifier.
23355 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23356 Declare as function.
23358 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23360 * pretty-print.h (pp_bar_bar): New.
23361 (pp_ampersand_ampersand): Likewise.
23362 (pp_less_equal): Likewise.
23363 (pp_greater_equal): Likewise.
23364 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23365 printer functions instead of pp_string or operators and punctuators.
23366 (dump_gimple_call): Likewise.
23367 (dump_gimple_omp_for): Likewise.
23368 (dump_gimple_transaction): Likewise.
23369 (dump_gimple_phi): Likewise.
23370 (pp_gimple_stmt_1): Likewise.
23371 * sched-vis.c (print_insn): Likewise.
23372 * tree-mudflap.c (mf_varname_tree): Likewise.
23373 * tree-pretty-print.c (dump_block_node): Likewise.
23374 (dump_generic_node): Likewise.
23376 2013-08-02 Jan Hubicka <jh@suse.cz>
23378 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23380 * lto-streamer-out.c (tree_is_indexable): Results decls and
23381 parm decls are not indexable.
23382 (DFS_write_tree_body): Do not follow args and results.
23383 (hash_tree): Likewise.
23384 (output_functions): Rearrange so struct function is needed
23385 only when real body is output; be able to also ouptut abstract
23386 functions; output DECL_ARGUMENTS and DECL_RESULT.
23387 (lto_output): When not in WPA, ale store abstract functions.
23388 (write_symbol): Do not care about RESULT_DECL.
23389 (output_symbol_p): Handle correctly sbtract decls.
23390 * lto-streamer-in.c (input_function): Rearrange so struct
23391 function can be NULL at entry; allow streaming of
23392 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23393 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23394 sanity check during LTO.
23395 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23396 RESULT_DECl and DECL_ARGUMENTS.
23397 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23400 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23402 * pretty-print.h (pp_underscore): New.
23404 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23405 printer functions instead of pp_character.
23406 (dump_binary_rhs): Likewise.
23407 (dump_ternary_rhs): Likewise.
23408 (dump_gimple_call_args): Likewise.
23409 (pp_points_to_solution): Likewise.
23410 (dump_gimple_call): Likewise.
23411 (dump_gimple_switch): Likewise.
23412 (dump_gimple_cond): Likewise.
23413 (dump_gimple_bind): Likewise.
23414 (dump_gimple_try): Likewise.
23415 (dump_gimple_omp_for): Likewise.
23416 (dump_gimple_omp_continue): Likewise.
23417 (dump_gimple_omp_single): Likewise.
23418 (dump_gimple_omp_sections): Likewise.
23419 (dump_gimple_omp_block): Likewise.
23420 (dump_gimple_omp_critical): Likewise.
23421 (dump_gimple_transaction): Likewise.
23422 (dump_gimple_asm): Likewise.
23423 (dump_gimple_phi): Likewise.
23424 (dump_gimple_omp_parallel): Likewise.
23425 (dump_gimple_omp_task): Likewise.
23426 (dump_gimple_omp_atomic_load): Likewise.
23427 (dump_gimple_omp_atomic_store): Likewise.
23428 (dump_gimple_mem_ops): Likewise.
23429 (pp_gimple_stmt_1): Likewise.
23430 (pp_cfg_jump): Likewise.
23431 (dump_implicit_edges): Likewise.
23432 (gimple_dump_bb_for_graph): Likewise.
23433 * graph.c (draw_cfg_node): Likewise.
23434 * langhooks.c (lhd_print_error_function): Likewise.
23435 * sched-vis.c (print_exp): Likewise.
23436 (print_value): Likewise.
23437 (print_pattern): Likewise.
23438 (print_insn): Likewise.
23439 (rtl_dump_bb_for_graph): Likewise.
23440 * tree-pretty-print.c (dump_function_declaration): Likewise.
23441 (dump_array_domain): Likewise.
23442 (dump_omp_clause): Likewise.
23443 (dump_location): Likewise.
23444 (dump_generic_node): Likewise.
23445 (print_struct_decl): Likewise.
23446 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23448 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23450 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23451 candidate table when replacing a candidate statement.
23452 (replace_rhs_if_not_dup): Likewise.
23453 (replace_one_candidate): Likewise.
23455 2013-08-02 Jan Hubicka <jh@suse.cz>
23456 Martin Liska <marxin.liska@gmail.com>
23458 * cgraphunit.c (add_new_function): Fix logic when adding from
23460 (assemble_thunk): Rename to ...
23461 (expand_thunk); .. this one; export; get it working with
23462 general functions; make produced gimple valid.
23463 * cgraph.h (expand_thunk): Declare.
23465 2013-08-02 Jan Hubicka <jh@suse.cz>
23467 * ipa-cp.c (gather_context_independent_values): Use
23468 ipa_get_param_move_cost.
23469 (get_replacement_map): Remove PARAM; move parameter folding
23471 (create_specialized_node): Update.
23472 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23473 assert that we have gimple body; update move_cost.
23474 (count_formal_params): Assert that we have gimple body.
23475 (ipa_dump_param): New function.
23476 (ipa_alloc_node_params): Break out from ...
23477 (ipa_initialize_node_params): ... here.
23478 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23479 (ipa_write_node_info): Stream move costs.
23480 (ipa_read_node_info): Read move costs.
23481 (ipa_update_after_lto_read): Do not recompute node params.
23482 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23483 (ipa_get_param): Check we are not in WPA.
23484 (ipa_get_param_move_cost): New.
23485 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23486 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23487 parm numbers to be present.
23489 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23491 PR rtl-optimization/58048
23492 * lra-constraints.c (process_alt_operands): Don't check asm
23493 operand on register.
23495 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23497 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23498 the implied StoreLoad barrier for atomic operations if before.
23500 2013-08-02 Jan Hubicka <jh@suse.cz>
23501 Martin Liska <marxin.liska@gmail.com>
23503 * cgraph.c (cgraph_function_body_availability): Do not check
23505 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23506 symtab_node_availability): Declare.
23507 * ipa.c (can_replace_by_local_alias): New.
23508 (function_and_variable_visibility): Use it.
23509 * symtab.c (symtab_for_node_and_aliases,
23510 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23512 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23514 PR rtl-optimization/57963
23515 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23516 (lra_constraints): Use them.
23518 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23520 * config/arm/types.md (define_attr "type"): Add "load_acq"
23522 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23524 (cortex_a53_store1): Likewise.
23526 2013-08-01 Jan Hubicka <jh@suse.cz>
23528 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23529 partitions are not needed.
23531 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23533 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23534 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23535 MAYBE_NON_Q_CLASS_P where appropriate.
23537 2013-08-01 Jan Hubicka <jh@suse.cz>
23539 * cgraph.h (release_function_body): Declare.
23540 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23541 of unused delcarations.
23543 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23545 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23546 RTL form when subtracting a constant.
23548 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23550 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23551 Generate canonical plus rtx with negated immediate instead of minus
23553 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23555 2013-08-01 Jan Hubicka <jh@suse.cz>
23557 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23558 (cgraph_release_function_body): Likewise.
23559 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23560 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23561 to used_as_abstract_origin.
23562 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23563 symbols used as abstract origins.
23564 * cgraphunit.c (analyze_functions): Update.
23565 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23566 used_as_abstract_origin.
23567 * tree-inline.c (tree_function_versioning): Update
23568 used_as_abstract_origin; be ready for DECL_RESULT and
23569 DECL_ARGUMENTS to be NULL.
23571 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23572 for abstract functions.
23573 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23576 2013-08-01 Jan Hubicka <jh@suse.cz>
23578 * profile.c (compute_value_histograms): Fix thinko.
23580 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23582 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23583 aarch-common-protos.h to extra_headers.
23584 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23585 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23586 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23588 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23590 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23591 Include "../arm/types.md". Define "type" attribute for all patterns.
23592 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23595 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23597 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23598 to support power8 load fusion.
23599 (fusion_gpr_mem_load): Likewise.
23601 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23603 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23604 declarations for power8 load fusion.
23605 (emit_fusion_gpr_load): Likewise.
23607 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23608 tuning for power8, turn on fusion mode by default. Turn on sign
23609 extending fusion mode if normal fusion mode is on, and we are at
23611 (fusion_gpr_load_p): New function, return true if we can fuse an
23612 addis instruction with a dependent load to a GPR.
23613 (emit_fusion_gpr_load): Emit the instructions for power8 load
23616 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23617 (VSX load fusion peepholes): New peepholes to fuse together an
23618 addi instruction with a VSX load instruction.
23620 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23621 peepholes to fuse an addis instruction with a load to a GPR base
23622 register. If we are supporting sign extending fusions, convert
23623 sign extending loads to zero extending loads and add an explicit
23626 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23628 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23629 aarch-common-protos.h to extra_headers.
23630 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23631 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23632 (arm_early_store_addr_dep): Likewise.
23633 (arm_no_early_alu_shift_dep): Likewise.
23634 (arm_no_early_alu_shift_value_dep): Likewise.
23635 (arm_no_early_mul_dep): Likewise.
23636 (arm_no_early_store_addr_dep): Likewise.
23637 (arm_mac_accumulator_is_mul_result): Likewise.
23638 (arm_mac_accumulator_is_result): Likewise.
23639 * config/arm/aarch-common.c: ... here. New file.
23640 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23642 (arm_early_store_addr_dep): Likewise.
23643 (arm_no_early_alu_shift_dep): Likewise.
23644 (arm_no_early_alu_shift_value_dep): Likewise.
23645 (arm_no_early_mul_dep): Likewise.
23646 (arm_no_early_store_addr_dep): Likewise.
23647 (arm_mac_accumulator_is_mul_result): Likewise.
23648 (arm_mac_accumulator_is_result): Likewise.
23649 * config/arm/aarch-common-protos.h: ... here. New file.
23650 * config/arm/t-arm (aarch-common.o): Define.
23652 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23654 * config/arm/arm.md: Include new file "types.md".
23655 (define_attr "type"): Move from here to ...
23656 (define_attr "mul32"): Likewise.
23657 (define_attr "mul64"): Likewise.
23658 * config/arm/types.md: ... here. New file.
23660 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23662 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23663 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23665 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23667 * gen-pass-instances.awk: Fix offset of substr().
23669 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23671 * Makefile.in (pass-instances.def): New.
23672 (passes.o): Replace dependency on passes.def with one on
23675 * gen-pass-instances.awk: New.
23677 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23678 rather than passes.def, updating local definition of NEXT_PASS
23679 macro to add an extra NUM parameter (currently unused).
23681 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23683 * Makefile.in (PASS_MANAGER_H): New.
23684 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23685 (passes.o): Likewise.
23686 (statistics.o): Likewise.
23687 (cgraphunit.o): Likewise.
23688 (context.o): Depend on PASS_MANAGER_H.
23690 * pass_manager.h: New.
23692 * cgraphunit.c (cgraph_add_new_function): Update for moves
23693 of globals to fields of pass_manager.
23694 (analyze_function): Likewise.
23695 (expand_function): Likewise.
23696 (ipa_passes): Likewise.
23697 (compile): Likewise.
23699 * context.c (context::context): New.
23700 * context.h (context::context): New.
23701 (context::get_passes): New.
23702 (context::passes_): New.
23704 * lto-cgraph.c (input_node): Update for moves of globals to
23705 fields of pass_manager.
23707 * passes.c (all_passes): Remove, in favor of a field of the
23708 same name within the new class pass_manager.
23709 (all_small_ipa_passes): Likewise.
23710 (all_lowering_passes): Likewise.
23711 (all_regular_ipa_passes): Likewise.
23712 (all_late_ipa_passes): Likewise.
23713 (all_lto_gen_passes): Likewise.
23714 (passes_by_id): Likewise.
23715 (passes_by_id_size): Likewise.
23716 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23717 the new class pass_manager.
23718 (set_pass_for_id): Convert to...
23719 (pass_manager::set_pass_for_id): ...method.
23720 (get_pass_for_id): Convert to...
23721 (pass_manager::get_pass_for_id): ...method.
23722 (register_one_dump_file): Move body of implementation into...
23723 (pass_manager::register_one_dump_file): ...here.
23724 (register_dump_files_1): Convert to...
23725 (pass_manager::register_dump_files_1): ...method.
23726 (register_dump_files): Convert to...
23727 (pass_manager::register_dump_files): ...method.
23728 (create_pass_tab): Update for moves of globals to fields of
23730 (dump_passes): Move body of implementation into...
23731 (pass_manager::dump_passes): ...here.
23732 (register_pass): Move body of implementation into...
23733 (pass_manager::register_pass): ...here.
23734 (init_optimization_passes): Convert into...
23735 (pass_manager::pass_manager): ...constructor for new
23736 pass_manager class, and initialize the pass_lists array.
23737 (check_profile_consistency): Update for moves of globals to
23738 fields of pass_manager.
23739 (dump_profile_report): Move body of implementation into...
23740 (pass_manager::dump_profile_report): ...here.
23741 (ipa_write_summaries_1): Update for moves of pass lists from
23742 being globals to fields of pass_manager.
23743 (ipa_write_optimization_summaries): Likewise.
23744 (ipa_read_summaries): Likewise.
23745 (ipa_read_optimization_summaries): Likewise.
23746 (execute_all_ipa_stmt_fixups): Likewise.
23748 * statistics.c (statistics_fini): Update for moves of globals to
23749 fields of pass_manager.
23751 * toplev.c (general_init): Replace call to
23752 init_optimization_passes with construction of the pass_manager
23755 * tree-pass.h (all_passes): Remove, in favor of a field of the
23756 same name within the new class pass_manager.
23757 (all_small_ipa_passes): Likewise.
23758 (all_lowering_passes): Likewise.
23759 (all_regular_ipa_passes): Likewise.
23760 (all_lto_gen_passes): Likewise.
23761 (all_late_ipa_passes): Likewise.
23762 (passes_by_id): Likewise.
23763 (passes_by_id_size): Likewise.
23764 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23765 the new class pass_manager.
23766 (get_pass_for_id): Remove.
23768 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23770 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23773 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23775 * arm.md (mulhi3): New expand pattern.
23777 2013-07-30 Jan Hubicka <jh@suse.cz>
23778 Martin Liska <marxin.liska@gmail.com>
23780 * profile.c (compute_value_histograms): Do not ICE when
23781 there is mismatch only on some counters.
23783 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23785 PR rtl-optimization/57637
23786 * function.c (move_insn_for_shrink_wrap): Also check the
23787 GEN set of the LIVE problem for the liveness analysis
23788 if it exists, otherwise give up.
23790 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23792 PR tree-optimization/57993
23793 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23794 replaced statement in the candidate table.
23795 (phi_add_costs): Return infinite cost when the hidden basis does
23796 not dominate all phis on which the candidate is dependent.
23797 (replace_one_candidate): Record replaced statement in the
23800 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23802 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23803 (ashlv2si3): New expander.
23804 (*ashlv2si3_i): New define_insn_and_split.
23805 * predicates.md (float_operation): Allow patterns with three
23806 basic sub-patterns.
23808 PR rtl-optimization/58021
23809 * mode-switching.c (create_pre_exit): Always split off preceding
23810 insns if we are not at the basic block head.
23812 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23814 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23815 (UCLIBC_DYNAMIC_LINKER): New macro.
23816 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23818 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23819 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23821 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23822 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23823 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23824 for SF and DF modes. Use ieee_quad_format for TF mode.
23825 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23826 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23827 (mips_option_override): Handle `-mnan=legacy'.
23828 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23829 `-mabs=2008' and `-mnan=2008'.
23830 (OPTION_DEFAULT_SPECS): Add "nan" default.
23831 (ASM_SPEC): Handle `-mnan='.
23832 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23833 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23834 comment accordingly.
23835 (neg<mode>2): Likewise.
23836 * config/mips/mips.opt (mabs, mnan): New options.
23837 * doc/install.texi (Configuration): Document `--with-nan=' option.
23838 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23840 (MIPS Options): Document them.
23841 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23842 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23843 * configure: Regenerate.
23844 * config.in: Regenerate.
23846 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23848 * config/i386/i386.md (float post-reload splitters): Do not check
23849 for subregs of SSE registers.
23851 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23852 H.J. Lu <hongjiu.lu@intel.com>
23856 * config/i386/i386.md (post-reload splitter
23857 to avoid partial SSE reg dependency stalls): New pattern.
23859 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23861 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23863 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23865 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23866 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23868 2013-07-26 Cary Coutant <ccoutant@google.com>
23870 * dwarf2out.c (die_checksum_ordered): Don't include template
23871 instantiations in signature.
23872 (is_template_parameter): New function.
23873 (is_template_instantiation): New function.
23874 (generate_skeleton_bottom_up): Don't include template instantiations
23876 (generate_skeleton): Likewise.
23877 (break_out_comdat_types): Move recursive call to break out nested
23879 (prune_unused_types_mark_generic_parms_dies): Call
23880 is_template_parameter.
23882 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23884 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23885 uses vector registers.
23886 * config/aarch64/iterators.md: Add attributes rtn and vas.
23888 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23889 Richard Earnshaw <richard.earnshaw@arm.com>
23891 * combine.c (simplify_comparison): Re-canonicalize operands
23893 * config/arm/arm.md (movcond_addsi): New splitter.
23895 2013-07-25 Sterling Augustine <saugustine@google.com>
23897 * dwarf2out.c (size_of_pubnames): Move code to...
23898 (include_pubname_in_output): ...here. New.
23899 (want_pubnames): Rearrange.
23900 (output_pubnames): Call include_pubname_in_output. Move assertion.
23902 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23904 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23906 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23909 * doc/extend.texi: Remove obsolete builtins. Fix
23910 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23912 2013-07-25 Jan Hubicka <jh@suse.cz>
23914 * cgraph.c (release_function_body): Break out from ...
23915 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23916 and DECL_ARGUMENTS.
23917 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23918 old_tree in the map.
23919 (create_specialized_node): Update.
23920 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23922 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23923 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23924 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23925 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23928 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23930 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23931 addsi3_carryin_alt2_<optab>): Correct output template.
23933 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23935 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23936 Adjust for arm_restrict_it.
23937 Remove trailing whitespace.
23939 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23941 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23942 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23944 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23946 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23948 PR rtl-optimization/57960
23949 * lra-constraints.c (process_alt_operands): Use the right mode
23950 when checking strict_low.
23952 2013-07-25 Jan Hubicka <jh@suse.cz>
23954 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23955 * cgraph.c (cgraph_remove_node): Do not release function body
23956 when in cgraph streaming.
23957 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23958 in other partitions are not considered reachable; fix handling of
23961 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23963 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23965 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23970 * config/arm/arm.md ("*sibcall_insn): Replace use of
23971 Ss with US. Adjust output for v5 and v4t.
23972 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23974 * config/arm/constraints.md ("Ss"): Rename to US.
23976 2013-07-25 Terry Guo <terry.guo@arm.com>
23978 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23979 shift_add/shift_sub0/shift_sub1 RTXs.
23981 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23982 Anton Blanchard <anton@au1.ibm.com>
23984 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23985 (altivec_vpks<VI_char>ss): Likewise.
23986 (altivec_vpks<VI_char>us): Likewise.
23987 (altivec_vpku<VI_char>us): Likewise.
23988 (altivec_vpku<VI_char>um): Likewise.
23990 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23992 Introduce context class.
23994 * Makefile.in (CONTEXT_H): New.
23995 (OBJS): Add context.o.
23996 (toplev.o): Add CONTEXT_H to dependencies.
23999 * toplev.c (general_init): Create the singleton gcc::context instance.
24005 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24007 PR rtl-optimization/57968
24008 * mode-switching.c (create_pre_exit): Allow instructions that
24009 don't set a return register to need a non-exit mode.
24011 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24012 Anton Blanchard <anton@au1.ibm.com>
24014 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24015 operands to vperm for little endian.
24016 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24017 of lvsl to create the control mask for a vperm for little endian.
24019 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24020 Anton Blanchard <anton@au1.ibm.com>
24022 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24023 two operands for little-endian.
24025 2013-07-23 Steve Ellcey <sellcey@mips.com>
24027 * config/mips/mips.c (mips_case_values_threshold): New.
24028 (TARGET_CASE_VALUES_THRESHOLD): Define.
24030 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24031 Anton Blanchard <anton@au1.ibm.com>
24033 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24034 selection of field for vector splat in little endian mode.
24036 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24038 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24039 expanders to rs6000.md.
24040 (ior<mode>3): Likewise.
24041 (and<mode>3): Likewise.
24042 (one_cmpl<mode>2): Likewise.
24043 (nor<mode>3): Likewise.
24044 (andc<mode>3): Likewise.
24045 (eqv<mode>3): Likewise.
24046 (nand<mode>3): Likewise.
24047 (orc<mode>3): Likewise.
24049 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24052 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24053 to split multi-word logical operations.
24054 (rs6000_split_logical_di): Likewise.
24055 (rs6000_split_logical): Likewise.
24057 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24058 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24059 and allow TImode operations in 32-bit.
24060 (vsx_and<mode>3_64bit): Likewise.
24061 (vsx_ior<mode>3_32bit): Likewise.
24062 (vsx_ior<mode>3_64bit): Likewise.
24063 (vsx_xor<mode>3_32bit): Likewise.
24064 (vsx_xor<mode>3_64bit): Likewise.
24065 (vsx_one_cmpl<mode>2_32bit): Likewise.
24066 (vsx_one_cmpl<mode>2_64bit): Likewise.
24067 (vsx_nor<mode>3_32bit): Likewise.
24068 (vsx_nor<mode>3_64bit): Likewise.
24069 (vsx_andc<mode>3_32bit): Likewise.
24070 (vsx_andc<mode>3_64bit): Likewise.
24071 (vsx_eqv<mode>3_32bit): Likewise.
24072 (vsx_eqv<mode>3_64bit): Likewise.
24073 (vsx_nand<mode>3_32bit): Likewise.
24074 (vsx_nand<mode>3_64bit): Likewise.
24075 (vsx_orc<mode>3_32bit): Likewise.
24076 (vsx_orc<mode>3_64bit): Likewise.
24078 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24079 logical types in GPRs.
24081 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24082 logical insns to rs6000.md, and allow TImode operations in
24084 (altivec_ior<mode>3): Likewise.
24085 (altivec_xor<mode>3): Likewise.
24086 (altivec_one_cmpl<mode>2): Likewise.
24087 (altivec_nor<mode>3): Likewise.
24088 (altivec_andc<mode>3): Likewise.
24090 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24091 attributes for moving the 128-bit logical operations into
24093 (BOOL_REGS_OUTPUT): Likewise.
24094 (BOOL_REGS_OP1): Likewise.
24095 (BOOL_REGS_OP2): Likewise.
24096 (BOOL_REGS_UNARY): Likewise.
24097 (BOOL_REGS_AND_CR0): Likewise.
24098 (one_cmpl<mode>2): Add support for DI logical operations on
24099 32-bit, splitting the operations to 32-bit.
24100 (anddi3): Likewise.
24101 (iordi3): Likewise.
24102 (xordi3): Likewise.
24103 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24104 changes to combine the 32/64-bit code, allow logical operations on
24105 TI mode in 32-bit, and to use similar match_operator patterns like
24106 scalar mode uses. Combine the Altivec and VSX code for logical
24107 operations, and move it here.
24108 (ior<mode>3, 128-bit types): Likewise.
24109 (xor<mode>3, 128-bit types): Likewise.
24110 (one_cmpl<mode>3, 128-bit types): Likewise.
24111 (nor<mode>3, 128-bit types): Likewise.
24112 (andc<mode>3, 128-bit types): Likewise.
24113 (eqv<mode>3, 128-bit types): Likewise.
24114 (nand<mode>3, 128-bit types): Likewise.
24115 (orc<mode>3, 128-bit types): Likewise.
24116 (and<mode>3_internal): Likewise.
24117 (bool<mode>3_internal): Likewise.
24118 (boolc<mode>3_internal1): Likewise.
24119 (boolc<mode>3_internal2): Likewise.
24120 (boolcc<mode>3_internal1): Likewise.
24121 (boolcc<mode>3_internal2): Likewise.
24122 (eqv<mode>3_internal1): Likewise.
24123 (eqv<mode>3_internal2): Likewise.
24124 (one_cmpl1<mode>3_internal): Likewise.
24126 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24128 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24129 Rename flag_stack_usage to flag_stack_usage_info.
24131 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24133 * config/microblaze/sync.md: New file.
24134 * config/microblaze/microblaze.md: Include sync.md
24135 * config/microblaze/microblaze.c: Add print_operand 'y'.
24136 * config/microblaze/constraints.md: Add memory_contraint
24137 'Q' which is a single register.
24139 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24141 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24143 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24145 * reload.c (find_reloads): Exit loop once we find this operand
24146 cannot be reloaded somehow for this alternative.
24148 * reload.c (find_reloads): Exit loop once we find a hard register.
24150 * rtlanal.c (computed_jump_p): Exit loop once we find label
24153 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24155 * cfgloopmanip.c (remove_path): Exit loop after setting
24158 * gensupport.c (subst_dup): Avoid loop if code is not
24159 MATCH_DUP nor MATCH_OP_DUP.
24161 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24163 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24165 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24167 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24168 true for SP_REGNUM if mode == ptr_mode.
24169 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24170 with value R0_REGNUM + 31.
24172 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24174 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24175 pad pointer-typed argument downward.
24177 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24179 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24180 and __ILP32__ when the ILP32 model is in use.
24182 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24184 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24185 (aarch64_load_symref_appropriately): In the case of
24186 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24187 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24188 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24189 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24190 if 'mode' doesn't equal to 'ptr_mode'.
24191 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24192 'vcall_offset'; change to call aarch64_emit_move differently depending
24193 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24194 to calculate the upper bound of 'vcall_offset'.
24195 (aarch64_cannot_force_const_mem): Change to also return true if
24197 (aarch64_legitimize_reload_address): In the case of large
24198 displacements, add new local variable 'xmode' and an assertion
24199 based on it; change to use 'xmode' to generate the new rtx and
24201 (aarch64_asm_trampoline_template): Change to generate the template
24202 differently depending on TARGET_ILP32 or not; change to use
24203 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24204 (aarch64_trampoline_size): Removed.
24205 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24206 and replace immediate literals with it. Change to use 'ptr_mode'
24207 instead of 'DImode' and call convert_memory_address if the mode
24208 of 'fnaddr' doesn't equal to 'ptr_mode'.
24209 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24211 (aarch64_elf_asm_destructor): Likewise.
24212 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24213 on TARGET_ILP32 instead of aarch64_trampoline_size.
24214 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24215 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24216 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24217 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24218 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24219 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24220 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24221 depending on the value of 'mode'.
24222 (add_losym_<mode>): New.
24223 (ldr_got_small_<mode>): New, based on ldr_got_small.
24224 (ldr_got_small): Remove.
24225 (ldr_got_small_sidi): New.
24226 * config/aarch64/iterators.md (P): New.
24227 (PTR): Change to 'ptr_mode' in the condition.
24229 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24231 * config.gcc (aarch64*-*-*): Support --with-abi.
24232 (aarch64*-*-elf): Support --with-multilib-list.
24233 (aarch64*-*-linux*): Likewise.
24234 (supported_defaults): Add abi to aarch64*-*-*.
24235 * configure.ac: Mention AArch64 for --with-multilib-list.
24236 * configure: Re-generated.
24237 * config/aarch64/biarchilp32.h: New file.
24238 * config/aarch64/biarchlp64.h: New file.
24239 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24241 (MULTILIB_DEFAULTS): Ditto.
24242 (DRIVER_SELF_SPECS): Ditto.
24243 (ASM_SPEC): Update to also substitute -mabi.
24244 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24245 file whose name depends on -mabi= and -mbig-endian.
24246 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24248 (POINTER_SIZE): New define.
24249 (POINTERS_EXTEND_UNSIGNED): Ditto.
24250 (enum aarch64_abi_type): New enumeration tag.
24251 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24252 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24253 (TARGET_ILP32): New define.
24254 * config/aarch64/aarch64.opt (mabi): New.
24255 (aarch64_abi): New.
24256 (ilp32, lp64): New values for -mabi.
24257 * config/aarch64/t-aarch64 (comma): New define.
24258 (MULTILIB_OPTIONS): Ditto.
24259 (MULTILIB_DIRNAMES): Ditto.
24260 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24261 * doc/invoke.texi: Document -mabi for AArch64.
24263 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24265 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24267 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24268 Anton Blanchard <anton@au1.ibm.com>
24270 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24271 endianness when selecting field to splat.
24273 2013-07-22 Eric Christopher <echristo@gmail.com>
24275 * dwarf2out.c (die_odr_checksum): New function to use
24276 CHECKSUM_ macros and ULEB128 for DIE tag.
24277 (generate_type_signature): Use.
24279 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24281 * config.gcc (sparc*-*-*): Accept leon3 processor.
24282 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24283 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24284 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24285 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24286 (mfix-ut699): Adjust comment.
24287 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24288 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24289 (CPP_CPU_SPEC): Likewise.
24290 (ASM_CPU_SPEC): Likewise.
24291 * config/sparc/sparc.c (leon3_cost): New constant.
24292 (sparc_option_override): Add leon3 support.
24293 (mem_ref): New function.
24294 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24295 (sparc_do_work_around_errata): Look into the instruction in the delay
24296 slot and adjust accordingly. Add fix for the data cache nullify issues
24297 of the UT699. Change insertion position for the NOP.
24298 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24299 (leon3_load): New reservation.
24300 (leon_store): Bump latency to 2.
24301 (grfpu): New automaton.
24302 (grfpu_alu): New unit.
24303 (grfpu_ds): Likewise.
24304 (leon_fp_alu): Adjust.
24305 (leon_fp_mult): Delete.
24306 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24307 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24308 * config/sparc/sparc.md (cpu): Add leon3.
24309 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24310 (swapsi): Likewise.
24311 (atomic_test_and_set): Likewise.
24312 (ldstub): Likewise.
24314 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24316 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24317 default for R5900 targets.
24318 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24319 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24320 * config/mips/mips.c (mips_option_override): Report an error for
24321 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24322 for -march=r5900 -mhard-float.
24324 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24326 * df-problems.c (can_move_insns_across): Exit loop once we
24327 find a non-fixed, non-global register.
24329 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24332 * omega.c (omega_eliminate_red): Break after setting red_found.
24333 (omega_problem_has_red_equations): Similarly after setting found.
24334 (omega_query_variable): Similarly after setting coupled.
24336 2013-07-22 Marek Polacek <polacek@redhat.com>
24338 * gimplify.c: Don't include gimple.h twice.
24340 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24342 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24343 instead of TARGET_THUMB1.
24344 (Pz): New constraint.
24345 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24347 (compare_negsi_si): Likewise.
24348 (compare_addsi2_op0): Likewise.
24349 (compare_addsi2_op1): Likewise.
24350 (addsi3_carryin_<optab>): Likewise.
24351 (addsi3_carryin_alt2_<optab>): Likewise.
24352 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24353 for arm_restrict_it.
24354 (subsi3_carryin): Likewise.
24355 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24356 (minmax_arithsi): Disable for arm_restrict_it.
24357 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24358 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24359 (satsi_<SAT:code>_shift): Likewise.
24360 (arm_shiftsi3): Add alternative for 16-bit encoding.
24361 (arm32_movhf): Disable for arm_restrict_it.
24362 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24363 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24365 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24367 * config/arm/arm.md (attribute "insn"): Delete.
24368 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24369 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24370 (not_shiftsi): Update for attribute change.
24371 (not_shiftsi_compare0): Likewise.
24372 (not_shiftsi_compare0_scratch): Likewise.
24373 (arm_one_cmplsi2): Likewise.
24374 (thumb1_one_cmplsi2): Likewise.
24375 (notsi_compare0): Likewise.
24376 (notsi_compare0_scratch): Likewise.
24377 (thumb1_movdi_insn): Likewise.
24378 (arm_movsi_insn): Likewise.
24379 (movhi_insn_arch4): Likewise.
24380 (movhi_bytes): Likewise.
24381 (arm_movqi_insn): Likewise.
24382 (thumb1_movqi_insn): Likewise.
24383 (arm32_movhf): Likewise.
24384 (thumb1_movhf): Likewise.
24385 (arm_movsf_soft_insn): Likewise.
24386 (thumb1_movsf_insn): Likewise.
24387 (thumb_movdf_insn): Likewise.
24388 (movsicc_insn): Likewise.
24389 (movsfcc_soft_insn): Likewise.
24390 (and_scc): Likewise.
24391 (cond_move): Likewise.
24392 (if_move_not): Likewise.
24393 (if_not_move): Likewise.
24394 (if_shift_move): Likewise.
24395 (if_move_shift): Likewise.
24396 (if_shift_shift): Likewise.
24397 (if_not_arith): Likewise.
24398 (if_arith_not): Likewise.
24399 (cond_move_not): Likewise.
24400 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24401 (neon_mov<mode>): Likewise.
24402 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24403 (thumb2_movsi_vfp): Likewise.
24404 (movsf_vfp): Likewise.
24405 (thumb2_movsf_vfp): Likewise.
24406 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24408 (cortexa7_older_only): Likewise.
24409 (cortexa7_younger): Likewise.
24410 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24411 (1020alu_shift_op): Likewise.
24412 (1020alu_shift_reg_op): Likewise.
24413 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24414 (alu_shift_op): Likewise.
24415 (alu_shift_reg_op): Likewise.
24416 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24417 (11_alu_shift_op): Likewise.
24418 (11_alu_shift_reg_op): Likewise.
24419 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24420 (9_alu_shift_reg_op): Likewise.
24421 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24423 (cortex_a15_alu_shift): Likewise.
24424 (cortex_a15_alu_shift_reg): Likewise.
24425 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24426 (cortex_a5_alu_shift): Likewise.
24427 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24429 (cortex_a53_alu_shift): Likewise.
24430 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24432 (cortex_a7_alu_reg): Likewise.
24433 (cortex_a7_alu_shift): Likewise.
24434 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24435 (cortex_a8_alu_shift): Likewise.
24436 (cortex_a8_alu_shift_reg): Likewise.
24437 (cortex_a8_mov): Likewise.
24438 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24439 (cortex_a9_dp_shift): Likewise.
24440 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24441 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24442 (cortex_r4_mov): Likewise.
24443 (cortex_r4_alu_shift): Likewise.
24444 (cortex_r4_alu_shift_reg): Likewise.
24445 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24446 (526_alu_shift_op): Likewise.
24447 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24448 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24449 (626te_alu_shift_op): Likewise.
24450 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24451 (726te_alu_op): Likewise.
24452 (726te_alu_shift_op): Likewise.
24453 (726te_alu_shift_reg_op): Likewise.
24454 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24455 (mp626_alu_shift_op): Likewise.
24456 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24457 (pj4_alu_e1_conds): Likewise.
24458 (pj4_alu): Likewise.
24459 (pj4_alu_conds): Likewise.
24460 (pj4_shift): Likewise.
24461 (pj4_shift_conds): Likewise.
24462 (pj4_alu_shift): Likewise.
24463 (pj4_alu_shift_conds): Likewise.
24465 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24467 * config/arm/predicates.md (shiftable_operator_strict_it):
24469 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24470 Disable cond_exec version for arm_restrict_it.
24471 (thumb2_smaxsi3): Convert to generate cond_exec.
24472 (thumb2_sminsi3): Likewise.
24473 (thumb32_umaxsi3): Likewise.
24474 (thumb2_uminsi3): Likewise.
24475 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24476 (thumb2_neg_abssi2): Likewise.
24477 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24478 (thumb2_movsicc_insn): Adjust alternatives.
24479 (thumb2_mov_negscc): Disable for arm_restrict_it.
24480 (thumb2_mov_negscc_strict_it): New pattern.
24481 (thumb2_mov_notscc_strict_it): New pattern.
24482 (thumb2_mov_notscc): Disable for arm_restrict_it.
24483 (thumb2_ior_scc): Likewise.
24484 (thumb2_ior_scc_strict_it): New pattern.
24485 (thumb2_cond_move): Adjust for arm_restrict_it.
24486 (thumb2_cond_arith): Disable for arm_restrict_it.
24487 (thumb2_cond_arith_strict_it): New pattern.
24488 (thumb2_cond_sub): Adjust for arm_restrict_it.
24489 (thumb2_movcond): Likewise.
24490 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24491 (thumb2_zero_extendhisi2_v6): Likewise.
24492 (thumb2_zero_extendqisi2_v6): Likewise.
24493 (orsi_notsi_si): Likewise.
24494 (orsi_not_shiftsi_si): Likewise.
24496 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24498 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24499 instruction sequence is 1 byte shorter.
24501 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24503 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24504 it is not needed after split.
24506 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24509 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24510 second label for nonlocal goto receivers. Don't output pic base labels
24511 unless we're producing PIC; mark that action unreachable().
24512 (ix86_save_reg): If the function contains a nonlocal label, save the
24514 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24515 * config/darwin.c (emitted_pic_label_num): New GTY.
24516 (update_pic_label_number_if_needed): New.
24517 (machopic_output_function_base_name): Adjust for nonlocal receiver
24519 (machopic_should_output_picbase_label): New.
24520 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24521 (nonlocal_goto_receiver): New insn and split.
24523 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24525 * config/aarch64/aarch64-builtins.c
24526 (aarch64_fold_builtin): Fold abs in all modes.
24527 * config/aarch64/aarch64-simd-builtins.def
24528 (abs): Enable for all modes.
24529 * config/aarch64/arm_neon.h
24530 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24531 (vabs_f64): Add missing intrinsic.
24533 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24535 * config/aarch64/arm_neon.h (vabs_s64): New function
24537 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24540 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24541 * config/avr/avr.md (adjust_len): Add `round'.
24542 * config/avr/avr-protos.h (avr_out_round): New prototype.
24543 (avr_out_plus): Add `out_label' argument.
24544 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24545 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24546 Handle the case where `insn' is just a pattern.
24547 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24548 (avr_out_round): New function.
24549 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24551 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24553 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24554 Add check for flag_stack_usage to handle -fstack-usage support
24556 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24559 interaction for new Power8 flags and VSX.
24561 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24563 PR middle-end/57698
24564 * tree-inline.c (expand_call_inline): Emit errors during
24565 early_inlining only if optimization is not turned on.
24567 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24571 * passes.c (init_optimization_passes): Move the construction of
24572 the pass hierarchy into a new passes.def file.
24574 * Makefile.in (passes.o): Add dependency on passes.def.
24576 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24578 * passes.c (init_optimization_passes): Introduce macros for
24579 constructing the tree of passes (INSERT_PASSES_AFTER,
24580 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24581 TERMINATE_PASS_LIST).
24583 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24584 Wei Mi <wmi@google.com>
24586 PR rtl-optimization/57878
24587 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24589 (reload_pseudo_compare_func): Check nregs first for reload
24592 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24594 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24596 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24598 * read-rtl.c (validate_const_int): Once an invalid character is
24599 seen, quit the loop.
24601 * gengtype.c (write_roots): Similarly once we find the "deletable"
24602 or "if_marked" option.
24604 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24606 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24607 "xtab" and "sat". Move value "clz" from here to ...
24608 (attriubte "type"): ... here.
24609 (satsi_<SAT:code>): Delete "insn" attribute.
24610 (satsi_<SAT:code>_shift): Likewise.
24611 (arm_zero_extendqisi2addsi): Likewise.
24612 (arm_extendqisi2addsi): Likewise.
24613 (clzsi2): Update for attribute changes.
24614 (rbitsi2): Likewise.
24615 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24617 (arm_usatsihi): Likewise.
24618 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24620 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24622 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24623 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24624 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24625 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24626 in alphabetical order.
24627 (attribute "core_cycles"): Update for attribute changes.
24628 (arm_addsi3): Likewise.
24629 (addsi3_compare0): Likewise.
24630 (addsi3_compare0_scratch): Likewise.
24631 (addsi3_compare_op1): Likewise.
24632 (addsi3_compare_op2): Likewise.
24633 (compare_addsi2_op0): Likewise.
24634 (compare_addsi2_op1): Likewise.
24635 (addsi3_carryin_shift_<optab>): Likewise.
24636 (subsi3_carryin_shift): Likewise.
24637 (rsbsi3_carryin_shift): Likewise.
24638 (arm_subsi3_insn): Likewise.
24639 (subsi3_compare0): Likewise.
24640 (subsi3_compare): Likewise.
24641 (arm_andsi3_insn): Likewise.
24642 (thumb1_andsi3_insn): Likewise.
24643 (andsi3_compare0): Likewise.
24644 (andsi3_compare0_scratch): Likewise.
24645 (zeroextractsi_compare0_scratch
24646 (andsi_not_shiftsi_si): Likewise.
24647 (iorsi3_insn): Likewise.
24648 (iorsi3_compare0): Likewise.
24649 (iorsi3_compare0_scratch): Likewise.
24650 (arm_xorsi3): Likewise.
24651 (thumb1_xorsi3_insn): Likewise.
24652 (xorsi3_compare0): Likewise.
24653 (xorsi3_compare0_scratch): Likewise.
24654 (satsi_<SAT:code>_shift): Likewise.
24656 (arm_shiftsi3): Likewise.
24657 (shiftsi3_compare0): Likewise.
24658 (not_shiftsi): Likewise.
24659 (not_shiftsi_compare0): Likewise.
24660 (not_shiftsi_compare0_scratch): Likewise.
24661 (arm_one_cmplsi2): Likewise.
24662 (thumb_one_complsi2): Likewise.
24663 (notsi_compare0): Likewise.
24664 (notsi_compare0_scratch): Likewise.
24665 (thumb1_zero_extendhisi2): Likewise.
24666 (arm_zero_extendhisi2): Likewise.
24667 (arm_zero_extendhisi2_v6): Likewise.
24668 (arm_zero_extendhisi2addsi): Likewise.
24669 (thumb1_zero_extendqisi2): Likewise.
24670 (thumb1_zero_extendqisi2_v6): Likewise.
24671 (arm_zero_extendqisi2): Likewise.
24672 (arm_zero_extendqisi2_v6): Likewise.
24673 (arm_zero_extendqisi2addsi): Likewise.
24674 (thumb1_extendhisi2): Likewise.
24675 (arm_extendhisi2): Likewise.
24676 (arm_extendhisi2_v6): Likewise.
24677 (arm_extendqisi): Likewise.
24678 (arm_extendqisi_v6): Likewise.
24679 (arm_extendqisi2addsi): Likewise.
24680 (thumb1_extendqisi2): Likewise.
24681 (thumb1_movdi_insn): Likewise.
24682 (arm_movsi_insn): Likewise.
24683 (movsi_compare0): Likewise.
24684 (movhi_insn_arch4): Likewise.
24685 (movhi_bytes): Likewise.
24686 (arm_movqi_insn): Likewise.
24687 (thumb1_movqi_insn): Likewise.
24688 (arm32_movhf): Likewise.
24689 (thumb1_movhf): Likewise.
24690 (arm_movsf_soft_insn): Likewise.
24691 (thumb1_movsf_insn): Likewise.
24692 (movdf_soft_insn): Likewise.
24693 (thumb_movdf_insn): Likewise.
24694 (arm_cmpsi_insn): Likewise.
24695 (cmpsi_shiftsi): Likewise.
24696 (cmpsi_shiftsi_swp): Likewise.
24697 (arm_cmpsi_negshiftsi_si): Likewise.
24698 (movsicc_insn): Likewise.
24699 (movsfcc_soft_insn): Likewise.
24700 (arith_shiftsi): Likewise.
24701 (arith_shiftsi_compare0
24702 (arith_shiftsi_compare0_scratch
24703 (sub_shiftsi): Likewise.
24704 (sub_shiftsi_compare0
24705 (sub_shiftsi_compare0_scratch
24706 (and_scc): Likewise.
24707 (cond_move): Likewise.
24708 (if_plus_move): Likewise.
24709 (if_move_plus): Likewise.
24710 (if_move_not): Likewise.
24711 (if_not_move): Likewise.
24712 (if_shift_move): Likewise.
24713 (if_move_shift): Likewise.
24714 (if_shift_shift): Likewise.
24715 (if_not_arith): Likewise.
24716 (if_arith_not): Likewise.
24717 (cond_move_not): Likewise.
24718 (thumb1_ashlsi3): Set type attribute.
24719 (thumb1_ashrsi3): Likewise.
24720 (thumb1_lshrsi3): Likewise.
24721 (thumb1_rotrsi3): Likewise.
24722 (shiftsi3_compare0_scratch): Likewise.
24723 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24724 (neon_mov<mode>): Likewise.
24725 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24727 (thumb2_movsi_insn): Likewise.
24728 (thumb2_cmpsi_neg_shiftsi): Likewise.
24729 (thumb2_extendqisi_v6): Likewise.
24730 (thumb2_zero_extendhisi2_v6): Likewise.
24731 (thumb2_zero_extendqisi2_v6): Likewise.
24732 (thumb2_shiftsi3_short): Likewise.
24733 (thumb2_addsi3_compare0_scratch): Likewise.
24734 (orsi_not_shiftsi_si): Likewise.
24735 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24736 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24738 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24739 (1020alu_shift_op): Likewise.
24740 (1020alu_shift_reg_op): Likewise.
24741 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24742 (alu_shift_op): Likewise.
24743 (alu_shift_reg_op): Likewise.
24744 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24745 (11_alu_shift_op): Likewise.
24746 (11_alu_shift_reg_op): Likewise.
24747 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24748 (9_alu_shift_reg_op): Likewise.
24749 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24751 (cortex_a15_alu_shift): Likewise.
24752 (cortex_a15_alu_shift_reg): Likewise.
24753 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24755 (cortex_a5_alu_shift): Likewise.
24756 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24758 (cortex_a53_alu_shift): Likewise.
24759 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24761 (cortex_a7_alu_reg): Likewise.
24762 (cortex_a7_alu_shift): Likewise.
24763 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24765 (cortex_a8_alu_shift): Likewise.
24766 (cortex_a8_alu_shift_reg): Likewise.
24767 (cortex_a8_mov): Likewise.
24768 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24769 (cortex_a9_dp_shift): Likewise.
24770 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24772 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24774 (cortex_r4_mov): Likewise.
24775 (cortex_r4_alu_shift): Likewise.
24776 (cortex_r4_alu_shift_reg): Likewise.
24777 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24778 (526_alu_shift_op): Likewise.
24779 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24780 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24781 (626te_alu_shift_op): Likewise.
24782 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24783 (726te_alu_op): Likewise.
24784 (726te_alu_shift_op): Likewise.
24785 (726te_alu_shift_reg_op): Likewise.
24786 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24787 (mp626_alu_shift_op): Likewise.
24788 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24789 (pj4_alu_e1_conds): Likewise.
24790 (pj4_alu): Likewise.
24791 (pj4_alu_conds): Likewise.
24792 (pj4_shift): Likewise.
24793 (pj4_shift_conds): Likewise.
24794 (pj4_alu_shift): Likewise.
24795 (pj4_alu_shift_conds): Likewise.
24796 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24798 (cortexa7_older_only): Likewise.
24799 (cortexa7_younger): Likewise.
24801 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24803 * ipa-pure-const.c (generate_summary): Rename to...
24804 (pure_const_generate_summary): ... this.
24806 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24808 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24810 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24813 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24816 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24818 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24819 enabled without -march=zEC12.
24820 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24823 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24825 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24826 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24827 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24828 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24829 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24830 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24831 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24833 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24834 and ISA_HAS_NMADD3_NMSUB3.
24835 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24836 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24837 (nmsub4<mode>, nmsub3<mode>): Likewise.
24838 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24840 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24842 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24843 TARGET_MIPS5400 checking.
24845 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24846 Peter Bergner <bergner@vnet.ibm.com>
24848 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24849 registers in the comment.
24850 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24851 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24852 rather than FIRST_PSEUDO_REGISTERS.
24854 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24856 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24857 enable extra ISA flags with TARGET_HTM.
24859 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24861 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24864 2013-07-15 Cong Hou <congh@google.com>
24866 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24867 in compare function for sorting.
24869 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24871 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24872 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24873 * config/rs6000/rs6000.opt: Add -mhtm option.
24874 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24875 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24876 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24877 __HTM__ if the HTM instructions are available.
24878 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24879 htm_spr_reg_operand): New define_predicates.
24880 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24881 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24883 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24884 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24885 HTM builtin functions.
24886 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24887 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24888 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24889 (rs6000_builtin_mask_calculate): Likewise.
24890 (rs6000_option_override_internal): Likewise.
24891 (bdesc_htm): Add new HTM builtin support.
24892 (htm_spr_num): New function.
24893 (htm_spr_regno): Likewise.
24894 (rs6000_htm_spr_icode): Likewise.
24895 (htm_expand_builtin): Likewise.
24896 (htm_init_builtins): Likewise.
24897 (rs6000_expand_builtin): Add support for HTM builtin functions.
24898 (rs6000_init_builtins): Likewise.
24899 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24901 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24902 (TARGET_HTM, MASK_HTM): Define macros.
24903 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24904 (FIXED_REGISTERS): Likewise.
24905 (CALL_USED_REGISTERS): Likewise.
24906 (CALL_REALLY_USED_REGISTERS): Likewise.
24907 (REG_ALLOC_ORDER): Likewise.
24908 (enum reg_class): Likewise.
24909 (REG_CLASS_NAMES): Likewise.
24910 (REG_CLASS_CONTENTS): Likewise.
24911 (REGISTER_NAMES): Likewise.
24912 (ADDITIONAL_REGISTER_NAMES): Likewise.
24913 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24914 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24915 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24916 * config/rs6000/htm.md: New file.
24917 * config/rs6000/htmintrin.h: New file.
24918 * config/rs6000/htmxlintrin.h: New file.
24920 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24922 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24923 Define SYMBOL_TINY_GOT, update comment.
24924 * config/aarch64/aarch64.c
24925 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24926 (aarch64_expand_mov_immediate): Likewise.
24927 (aarch64_print_operand): Likewise.
24928 (aarch64_classify_symbol): Likewise.
24929 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24930 (ldr_got_tiny): Define.
24932 2013-07-13 Tobias Grosser <tobias@grosser.es>
24934 PR tree-optimization/54094
24935 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24936 scheduling dimension for the parallelism check from the polyhedral
24937 information in the AST.
24938 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24941 2013-07-13 Jason Merrill <jason@redhat.com>
24943 * print-tree.c (debug_vec_tree): Use debug_raw.
24944 (debug_raw (vec<tree, va_gc> &)): New.
24945 (debug_raw (vec<tree, va_gc> *)): New.
24946 * tree.h: Declare them.
24948 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24950 * ifcvt.c (ifcvt_after_combine): New static variable.
24951 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24953 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24954 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24955 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24957 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24959 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24961 2013-07-12 Michael Matz <matz@suse.de>
24963 PR middle-end/55771
24964 * convert.c (convert_to_real): Reject non-float inner types.
24966 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24968 * config/aarch64/aarch64-protos.h
24969 (aarch64_simd_immediate_valid_for_move): Remove.
24970 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24971 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24973 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24975 2013-07-11 Steve Ellcey <sellcey@mips.com>
24977 * config/mips/mips.c (mips_conditional_register_usage): Do not
24978 use t[0-7] registers in MIPS16 mode when optimizing for size.
24980 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24982 * config/i386/i386.c (dispatch_function_versions): Fix array
24983 indexing of function_version_info to match actual_versions.
24985 2013-07-11 Teresa Johnson <tejohnson@google.com>
24987 * vec.h (struct va_gc): Move release out-of-line.
24988 (va_gc::release): Call ggc_free on released vec.
24990 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24992 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24993 Require GOT register as additional operand in UNSPEC.
24994 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24995 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24996 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24997 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24998 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24999 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25000 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25002 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25005 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25006 name seen by assembler/linker rather if available.
25008 2013-07-11 Andreas Schwab <schwab@suse.de>
25010 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25012 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25014 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25016 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25018 * doc/tm.texi.in: Move hook documentation to ....
25019 * target.def: ... here.
25021 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25022 text on @hook line.
25023 * doc/tm.texi: Regenerate.
25025 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25028 * doc/invoke.texi: Document -Wconditionally-supported.
25030 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25033 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25036 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25039 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25040 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25041 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25042 Remove duplicate devices.
25043 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25044 * config/avr/t-multilib: Regenerate.
25045 * config/avr/avr-tables.opt: Regenerate.
25046 * doc/avr-mmcu.texi: Regenerate.
25048 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25051 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25053 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25055 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25056 the cost of MULT when optimizing for size.
25058 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25060 * config/cr16/cr16-protos.h: Don't include target.h.
25062 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25064 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25065 adjust register size for TDmode and TFmode for VSX registers.
25067 2013-07-08 Kai Tietz <ktietz@redhat.com>
25070 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25071 hook_bool_const_tree_true.
25073 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25075 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25076 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25077 * config/s390/s390.md: Define FPR*_REGNUM constants.
25078 Fix FPR2_REGNUM constant (18 -> 17).
25079 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25080 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25081 ("trunc<BFP:mode><DFP_ALL:mode>2")
25082 ("trunc<DFP_ALL:mode><BFP:mode>2")
25083 ("*extend<BFP:mode><DFP_ALL:mode>2")
25084 ("*extend<DFP_ALL:mode><BFP:mode>2")
25085 ("extend<BFP:mode><DFP_ALL:mode>2")
25086 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25089 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25091 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25093 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25095 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25096 and cfun_fpr_bit_p to cfun_fpr_save_p.
25097 (s390_frame_area, s390_register_info, s390_frame_info)
25098 (s390_emit_prologue, s390_emit_epilogue)
25099 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25101 * config/s390/s390.h: Define *_REGNUM macros for floating point
25104 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25106 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25108 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25110 PR rtl-optimization/57786
25111 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25112 and break out of the loop when it is set to false.
25114 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25117 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25118 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25119 (const_int 63)) 0)).
25120 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25121 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25122 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25124 PR rtl-optimization/57829
25125 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25126 mask bits outside of mode are just sign-extension from mode to HWI.
25128 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25130 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25131 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25132 adjust_address instead of change_address to keep info about alignment.
25133 (emit_strmov): Remove.
25134 (emit_memmov): New function.
25135 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25136 (expand_movmem_epilogue): Likewise and return updated rtx for
25138 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25139 destination and source.
25140 (decide_alignment): Refactor, handle vector_loop.
25141 (ix86_expand_movmem): Likewise.
25142 (ix86_expand_setmem): Likewise.
25143 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25145 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25147 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25148 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25150 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25152 * config/i386/sse.md (sse_movlhps): Change alternative 3
25153 of operand 2 to "m".
25155 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25158 * config/i386/sse.md (iptr): New mode attribute.
25159 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25160 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25161 (<sse>_vmmul<mode>3): Ditto.
25162 (<sse>_vmdiv<mode>3): Ditto.
25163 (sse_vmrcpv4sf2): Ditto.
25164 (<sse>_vmsqrt<mode>2): Ditto.
25165 (sse_vmrsqrtv4sf2): Ditto.
25166 (<sse>_vm<code><mode>3): Ditto.
25167 (avx_vmcmp<mode>3): Ditto.
25168 (<sse>_vmmaskcmp<mode>3): Ditto.
25169 (<sse>_comi): Ditto.
25170 (<sse>_ucomi): Ditto.
25171 (*xop_vmfrcz_<mode>): Ditto.
25172 (*fmai_fmadd_<mode>): Ditto.
25173 (*fmai_fmsub_<mode>): Ditto.
25174 (*fmai_fnmadd_<mode>): Ditto.
25175 (*fmai_fnmsub_<mode>): Ditto.
25176 (*fma4i_vmfmadd_<mode>): Ditto.
25177 (*fma4i_vmfmsub_<mode>): Ditto.
25178 (*fma4i_vmfnmadd_<mode>): Ditto.
25179 (*fma4i_vmfnmsub_<mode>): Ditto.
25180 (*xop_vmfrcz_<mode>): Ditto.
25181 (sse_cvtps2pi): Ditto.
25182 (sse_cvttps2pi): Ditto.
25183 (sse_cvtss2si): Ditto.
25184 (sse_cvtss2si_2): Ditto.
25185 (sse_cvtss2siq_2): Ditto.
25186 (sse_cvttss2si): Ditto.
25187 (sse_cvttss2siq): Ditto.
25188 (sse_cvtsd2si): Ditto.
25189 (sse_cvtsd2si_2): Ditto.
25190 (sse_cvtsd2siq_2): Ditto.
25191 (sse_cvttsd2si): Ditto.
25192 (sse_cvttsd2siq): Ditto.
25193 (sse_cvtsd2ss): Ditto.
25194 (sse_cvtss2sd): Ditto.
25195 (avx2_pbroadcast<mode>): Ditto.
25196 (avx2_pbroadcast<mode>_1): Ditto.
25197 (*avx_vperm_broadcast_v4sf): Ditto.
25199 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25200 (sse_movlhps): Ditto.
25201 (sse_storehps): Ditto.
25202 (sse_loadhps): Ditto.
25203 (sse_storelps): Ditto.
25204 (sse_loadlps): Ditto.
25205 (*vec_concatv4sf): Ditto.
25206 (*vec_interleave_highv2df): Ditto.
25207 (*vec_interleave_lowv2df): Ditto.
25208 (*vec_extractv2df_1_sse): Ditto.
25209 (*vec_extractv2df_0_sse): Ditto.
25210 (sse2_storelpd): Ditto.
25211 (sse2_loadlpd): Ditto.
25212 (sse2_movsd): Ditto.
25213 (*vec_concatv4si): Ditto.
25214 (vec_concatv2di): Ditto.
25216 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25217 for Intel asm dialect.
25218 (mmx_punpcklwd): Ditto.
25219 (mmx_punpckldq): Ditto.
25221 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25222 for intel assembler dialect.
25224 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25227 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25228 for BUILT_IN_C{LZ,LRSB}*.
25229 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25230 * tree-vrp.c (extract_range_basic): Handle
25231 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25232 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25233 fall thru to code calling set_value*.
25234 * builtins.c (expand_builtin): Remove *IMAX cases.
25235 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25236 if width is bigger than 2*HWI.
25238 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25240 PR rtl-optimization/55342
25241 * lra-int.h (lra_subreg_reload_pseudos): New.
25242 * lra.c: Add undoing optional reloads to the block diagram.
25243 (lra_subreg_reload_pseudos): New.
25244 (lra_optional_reload_pseudos): Change comments.
25245 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25246 lra_optional_reload_pseudos after undo transformations.
25247 * lra-assigns.c (pseudo_prefix_title): New.
25248 (lra_setup_reg_renumber): Use it.
25249 (spill_for): Ditto. Check subreg reload pseudos too.
25250 (assign_by_spills): Consider subreg reload pseudos too.
25251 * lra-constraints.c (simplify_operand_subreg): Use
25252 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25253 (curr_insn_transform): Recognize and do optional reloads.
25254 (undo_optional_reloads): New.
25255 (lra_undo_inheritance): Call undo_optional_reloads.
25257 2013-07-05 Thomas Quinot <quinot@adacore.com>
25259 * tree-complex.c (expand_complex_operations_1): Fix typo.
25261 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25263 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25264 (tune_params): New member 'const vec_costs'.
25265 * config/aarch64/aarch64.c (generic_vector_cost): New.
25266 (generic_tunings): New member 'generic_vector_cost'.
25267 (aarch64_builtin_vectorization_cost): New.
25268 (aarch64_add_stmt_cost): New.
25269 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25270 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25272 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25275 * config/i386/predicates.md (vsib_address_operand): Disallow
25276 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25278 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25280 PR middle-end/55030
25281 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25282 expand_builtin_setjmp_receiver.
25283 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25284 with NULL for the label parameter.
25285 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25286 the frame-pointer. Adjust comments.
25287 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25288 only if LABEL is non-NULL.
25290 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25292 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25293 (ARM_ABI_AAPCS64): Ditto.
25295 (ARM_DEFAULT_ABI): Ditto.
25297 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25299 * config/aarch64/aarch64-builtins.c
25300 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25301 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25303 * config/aarch64/aarch64-simd.md
25304 (aarch64_ld1<VALL:mode>): New.
25305 (aarch64_st1<VALL:mode>): Likewise.
25306 * config/aarch64/arm_neon.h
25307 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25309 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25311 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25313 (ix86_option_override_internal):Turn on all -mavx target flags by
25314 default as they are dependent on AVX anyway.
25316 2013-07-02 Cary Coutant <ccoutant@google.com>
25318 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25319 deterministic hash.
25320 (loc_checksum_ordered): Likewise.
25321 (hash_loc_operands): Remove inline keyword.
25323 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25325 PR tree-optimization/57741
25326 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25327 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25328 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25329 Allow REAL_CST step_exprs if flag_associative_math.
25330 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25332 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25334 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25336 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25338 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25340 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25342 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25344 (iorsi3_insn): Likewise.
25345 (arm_xorsi3): Likewise.
25347 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25349 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25351 (attribute "type"): ... here, and prefix with "wmmx_".
25352 (attribute "core_cycles"): Update for attribute changes.
25353 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25354 (tbcstv4hi): Likewise.
25355 (tbcstv2si): Likewise.
25356 (iwmmxt_iordi3): Likewise.
25357 (iwmmxt_xordi3): Likewise.
25358 (iwmmxt_anddi3): Likewise.
25359 (iwmmxt_nanddi3): Likewise.
25360 (iwmmxt_arm_movdi): Likewise.
25361 (iwmmxt_movsi_insn): Likewise.
25362 (mov<mode>_internal): Likewise.
25363 (and<mode>3_iwmmxt): Likewise.
25364 (ior<mode>3_iwmmxt): Likewise.
25365 (xor<mode>3_iwmmxt): Likewise.
25366 (add<mode>3_iwmmxt): Likewise.
25367 (ssaddv8qi3): Likewise.
25368 (ssaddv4hi3): Likewise.
25369 (ssaddv2si3): Likewise.
25370 (usaddv8qi3): Likewise.
25371 (usaddv4hi3): Likewise.
25372 (usaddv2si3): Likewise.
25373 (sub<mode>3_iwmmxt): Likewise.
25374 (sssubv8qi3): Likewise.
25375 (sssubv4hi3): Likewise.
25376 (sssubv2si3): Likewise.
25377 (ussubv8qi3): Likewise.
25378 (ussubv4hi3): Likewise.
25379 (ussubv2si3): Likewise.
25380 (mulv4hi3_iwmmxt): Likewise.
25381 (smulv4hi3_highpart): Likewise.
25382 (umulv4hi3_highpart): Likewise.
25383 (iwmmxt_wmacs): Likewise.
25384 (iwmmxt_wmacsz): Likewise.
25385 (iwmmxt_wmacu): Likewise.
25386 (iwmmxt_wmacuz): Likewise.
25387 (iwmmxt_clrdi): Likewise.
25388 (iwmmxt_clrv8qi): Likewise.
25389 (iwmmxt_clr4hi): Likewise.
25390 (iwmmxt_clr2si): Likewise.
25391 (iwmmxt_uavgrndv8qi3): Likewise.
25392 (iwmmxt_uavgrndv4hi3): Likewise.
25393 (iwmmxt_uavgv8qi3): Likewise.
25394 (iwmmxt_uavgv4hi3): Likewise.
25395 (iwmmxt_tinsrb): Likewise.
25396 (iwmmxt_tinsrh): Likewise.
25397 (iwmmxt_tinsrw): Likewise.
25398 (iwmmxt_textrmub): Likewise.
25399 (iwmmxt_textrmsb): Likewise.
25400 (iwmmxt_textrmuh): Likewise.
25401 (iwmmxt_textrmsh): Likewise.
25402 (iwmmxt_textrmw): Likewise.
25403 (iwmxxt_wshufh): Likewise.
25404 (eqv8qi3): Likewise.
25405 (eqv4hi3): Likewise.
25406 (eqv2si3): Likewise.
25407 (gtuv8qi3): Likewise.
25408 (gtuv4hi3): Likewise.
25409 (gtuv2si3): Likewise.
25410 (gtv8qi3): Likewise.
25411 (gtv4hi3): Likewise.
25412 (gtv2si3): Likewise.
25413 (smax<mode>3_iwmmxt): Likewise.
25414 (umax<mode>3_iwmmxt): Likewise.
25415 (smin<mode>3_iwmmxt): Likewise.
25416 (umin<mode>3_iwmmxt): Likewise.
25417 (iwmmxt_wpackhss): Likewise.
25418 (iwmmxt_wpackwss): Likewise.
25419 (iwmmxt_wpackdss): Likewise.
25420 (iwmmxt_wpackhus): Likewise.
25421 (iwmmxt_wpackwus): Likewise.
25422 (iwmmxt_wpackdus): Likewise.
25423 (iwmmxt_wunpckihb): Likewise.
25424 (iwmmxt_wunpckihh): Likewise.
25425 (iwmmxt_wunpckihw): Likewise.
25426 (iwmmxt_wunpckilb): Likewise.
25427 (iwmmxt_wunpckilh): Likewise.
25428 (iwmmxt_wunpckilw): Likewise.
25429 (iwmmxt_wunpckehub): Likewise.
25430 (iwmmxt_wunpckehuh): Likewise.
25431 (iwmmxt_wunpckehuw): Likewise.
25432 (iwmmxt_wunpckehsb): Likewise.
25433 (iwmmxt_wunpckehsh): Likewise.
25434 (iwmmxt_wunpckehsw): Likewise.
25435 (iwmmxt_wunpckelub): Likewise.
25436 (iwmmxt_wunpckeluh): Likewise.
25437 (iwmmxt_wunpckeluw): Likewise.
25438 (iwmmxt_wunpckelsb): Likewise.
25439 (iwmmxt_wunpckelsh): Likewise.
25440 (iwmmxt_wunpckelsw): Likewise.
25441 (ror<mode>3): Likewise.
25442 (ashr<mode>3_iwmmxt): Likewise.
25443 (lshr<mode>3_iwmmxt): Likewise.
25444 (ashl<mode>3_iwmmxt): Likewise.
25445 (ror<mode>3_di): Likewise.
25446 (ashr<mode>3_di): Likewise.
25447 (lshr<mode>3_di): Likewise.
25448 (ashl<mode>3_di): Likewise.
25449 (iwmmxt_wmadds): Likewise.
25450 (iwmmxt_wmaddu): Likewise.
25451 (iwmmxt_tmia): Likewise.
25452 (iwmmxt_tmiaph): Likewise.
25453 (iwmmxt_tmiabb): Likewise.
25454 (iwmmxt_tmiatb): Likewise.
25455 (iwmmxt_tmiabt): Likewise.
25456 (iwmmxt_tmiatt): Likewise.
25457 (iwmmxt_tmovmskb): Likewise.
25458 (iwmmxt_tmovmskh): Likewise.
25459 (iwmmxt_tmovmskw): Likewise.
25460 (iwmmxt_waccb): Likewise.
25461 (iwmmxt_wacch): Likewise.
25462 (iwmmxt_waccw): Likewise.
25463 (iwmmxt_waligni): Likewise.
25464 (iwmmxt_walignr): Likewise.
25465 (iwmmxt_walignr0): Likewise.
25466 (iwmmxt_walignr1): Likewise.
25467 (iwmmxt_walignr2): Likewise.
25468 (iwmmxt_walignr3): Likewise.
25469 (iwmmxt_wsadb): Likewise.
25470 (iwmmxt_wsadh): Likewise.
25471 (iwmmxt_wsadbz): Likewise.
25472 (iwmmxt_wsadhz): Likewise.
25473 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25474 (iwmmxt_wabsdiffb): Likewise.
25475 (iwmmxt_wabsdiffh): Likewise.
25476 (iwmmxt_wabsdiffw): Likewise.
25477 (iwmmxt_waddsubhx): Likewise
25478 (iwmmxt_wsubaddhx): Likewise.
25479 (addc<mode>3): Likewise.
25480 (iwmmxt_avg4): Likewise.
25481 (iwmmxt_avg4r): Likewise.
25482 (iwmmxt_wmaddsx): Likewise.
25483 (iwmmxt_wmaddux): Likewise.
25484 (iwmmxt_wmaddsn): Likewise.
25485 (iwmmxt_wmaddun): Likewise.
25486 (iwmmxt_wmulwsm): Likewise.
25487 (iwmmxt_wmulwum): Likewise.
25488 (iwmmxt_wmulsmr): Likewise.
25489 (iwmmxt_wmulumr): Likewise.
25490 (iwmmxt_wmulwsmr): Likewise.
25491 (iwmmxt_wmulwumr): Likewise.
25492 (iwmmxt_wmulwl): Likewise.
25493 (iwmmxt_wqmulm): Likewise.
25494 (iwmmxt_wqmulwm): Likewise.
25495 (iwmmxt_wqmulmr): Likewise.
25496 (iwmmxt_wqmulwmr): Likewise.
25497 (iwmmxt_waddbhusm): Likewise.
25498 (iwmmxt_waddbhusl): Likewise.
25499 (iwmmxt_wqmiabb): Likewise.
25500 (iwmmxt_wqmiabt): Likewise.
25501 (iwmmxt_wqmiatb): Likewise.
25502 (iwmmxt_wqmiatt): Likewise.
25503 (iwmmxt_wqmiabbn): Likewise.
25504 (iwmmxt_wqmiabtn): Likewise.
25505 (iwmmxt_wqmiatbn): Likewise.
25506 (iwmmxt_wqmiattn): Likewise.
25507 (iwmmxt_wmiabb): Likewise.
25508 (iwmmxt_wmiabt): Likewise.
25509 (iwmmxt_wmiatb): Likewise.
25510 (iwmmxt_wmiatt): Likewise.
25511 (iwmmxt_wmiabbn): Likewise.
25512 (iwmmxt_wmiabtn): Likewise.
25513 (iwmmxt_wmiatbn): Likewise.
25514 (iwmmxt_wmiattn): Likewise.
25515 (iwmmxt_wmiawbb): Likewise.
25516 (iwmmxt_wmiawbt): Likewise.
25517 (iwmmxt_wmiawtb): Likewise.
25518 (iwmmxt_wmiawtt): Likewise.
25519 (iwmmxt_wmiawbbn): Likewise.
25520 (iwmmxt_wmiawbtn): Likewise.
25521 (iwmmxt_wmiawtbn): Likewise.
25522 (iwmmxt_wmiawttn): Likewise.
25523 (iwmmxt_wmerge): Likewise.
25524 (iwmmxt_tandc<mode>3): Likewise.
25525 (iwmmxt_torc<mode>3): Likewise.
25526 (iwmmxt_torvsc<mode>3): Likewise.
25527 (iwmmxt_textrc<mode>3): Likewise.
25528 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25529 (wmmxt_pack): Likewise.
25530 (wmmxt_mult_c1): Likewise.
25531 (wmmxt_mult_c2): Likewise.
25532 (wmmxt_alu_c1): Likewise.
25533 (wmmxt_alu_c2): Likewise.
25534 (wmmxt_alu_c3): Likewise.
25535 (wmmxt_transfer_c1): Likewise.
25536 (wmmxt_transfer_c2): Likewise.
25537 (wmmxt_transfer_c3): Likewise.
25538 (marvell_f_iwmmxt_wstr): Likewise.
25539 (marvell_f_iwmmxt_wldr): Likewise.
25541 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25543 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25545 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25548 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25549 * lra-constraints.c (need_for_split_p): Check call used hard regs
25550 living through calls.
25552 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25553 call used regs for call insn.
25555 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25558 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25559 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25561 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25563 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25565 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25567 * lra-constraints.c (need_for_split_p): Check call used hard regs
25568 living through calls.
25570 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25573 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25574 to tie with any other modes. Eliminate Altivec vector mode tests,
25575 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25576 code, to return 0 if testing MODE2 for a condition, if we've
25577 already tested MODE1 for the same condition.
25579 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25581 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25584 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25586 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25587 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25589 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25591 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25593 (aarch64_symbolic_constant_p): Remove.
25594 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25595 static. Fix line length and white space.
25596 (aarch64_symbolic_constant_p): Remove.
25597 * config/aarch64/predicates.md (aarch64_valid_symref):
25598 Use aarch64_classify_symbol_expression.
25600 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25602 * config/arm/constraints.md (Ts): New constraint.
25603 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25605 (compare_scc): Use "Ts" constraint for operand 0.
25606 (ior_scc_scc): Likewise.
25607 (and_scc_scc): Likewise.
25608 (and_scc_scc_nodom): Likewise.
25609 (ior_scc_scc_cmp): Likewise for operand 7.
25610 (and_scc_scc_cmp): Likewise.
25611 * config/arm/thumb2.md (thumb2_movsi_insn):
25612 Add alternatives for 16-bit encodings.
25613 (thumb2_movhi_insn): Likewise.
25614 (thumb2_movsicc_insn): Likewise.
25615 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25616 (thumb2_negscc): Use "Ts" constraint.
25617 Move mvn instruction outside cond_exec block.
25618 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25619 for 16-bit encodings.
25621 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25623 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25625 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25626 (mulsi3subsi): Likewise.
25627 (mulsidi3adddi): Likewise.
25628 (mulsidi3_v6): Likewise.
25629 (umulsidi3_v6): Likewise.
25630 (umulsidi3adddi_v6): Likewise.
25631 (smulsi3_highpart_v6): Likewise.
25632 (umulsi3_highpart_v6): Likewise.
25633 (mulhisi3tb): Likewise.
25634 (mulhisi3bt): Likewise.
25635 (mulhisi3tt): Likewise.
25636 (maddhisi4): Likewise.
25637 (maddhisi4tb): Likewise.
25638 (maddhisi4tt): Likewise.
25639 (maddhidi4): Likewise.
25640 (maddhidi4tb): Likewise.
25641 (maddhidi4tt): Likewise.
25642 (zeroextractsi_compare0_scratch): Likewise.
25643 (insv_zero): Likewise.
25644 (insv_t2): Likewise.
25645 (anddi_notzesidi_di): Likewise.
25646 (anddi_notsesidi_di): Likewise.
25647 (andsi_notsi_si): Likewise.
25648 (iordi_zesidi_di): Likewise.
25649 (xordi_zesidi_di): Likewise.
25650 (andsi_iorsi3_notsi): Likewise.
25651 (smax_0): Likewise.
25652 (smax_m1): Likewise.
25653 (smin_0): Likewise.
25654 (not_shiftsi): Likewise.
25655 (unaligned_loadsi): Likewise.
25656 (unaligned_loadhis): Likewise.
25657 (unaligned_loadhiu): Likewise.
25658 (unaligned_storesi): Likewise.
25659 (unaligned_storehi): Likewise.
25660 (extv_reg): Likewise.
25661 (extzv_t2): Likewise.
25662 (divsi3): Likewise.
25663 (udivsi3): Likewise.
25664 (arm_zero_extendhisi2addsi): Likewise.
25665 (arm_zero_extendqisi2addsi): Likewise.
25666 (compareqi_eq0): Likewise.
25667 (arm_extendhisi2_v6): Likewise.
25668 (arm_extendqisi2addsi): Likewise.
25669 (arm_movt): Likewise.
25670 (thumb2_ldrd): Likewise.
25671 (thumb2_ldrd_base): Likewise.
25672 (thumb2_ldrd_base_neg): Likewise.
25673 (thumb2_strd): Likewise.
25674 (thumb2_strd_base): Likewise.
25675 (thumb2_strd_base_neg): Likewise.
25676 (arm_negsi2): Add alternative for 16-bit encoding.
25677 (arm_one_cmplsi2): Likewise.
25679 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25681 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25682 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25683 (movdfcc): Likewise.
25684 * config/arm/vfp.md (*thumb2_movsf_vfp):
25685 Disable predication for arm_restrict_it.
25686 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25687 (*thumb2_movdfcc_vfp): Likewise.
25688 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25689 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25690 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25691 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25692 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25693 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25694 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25695 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25696 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25697 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25698 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25699 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25700 Disable predication for arm_restrict_it.
25702 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25704 * config/i386/bmiintrin.h (_bextr_u32): New.
25705 (_bextr_u64): Ditto.
25707 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25709 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25710 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25711 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25712 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25713 * config/mips/n32-elf.h: ...this new file.
25715 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25718 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25719 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25721 2013-06-27 Catherine Moore <clm@codesourcery.com>
25723 * config/mips/mips-tables.opt: Regenerate.
25724 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25725 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25726 * doc/invoke.texi: Add -m14kc.
25728 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25731 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25732 constraints of operand 1 and 2.
25735 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25736 to match RTL canonicalization. Swap predicates and
25737 constraints of operand 1 and 2.
25739 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25741 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25742 Process OP_INOUT regs for splitting too.
25744 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25746 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25747 decl before the loop, initialize to NULL.
25748 (vectorizable_load): Initialize ptr_incr to NULL.
25750 2013-06-27 Martin Jambor <mjambor@suse.cz>
25753 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25754 * ipa-ref.c (ipa_maybe_record_reference): New function.
25755 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25756 * ipa-cp.c (create_specialized_node): Record potential references from
25758 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25760 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25762 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25763 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25764 'mode' to force_reg.
25765 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25766 (aarch64_expand_mov_immediate): Likewise.
25768 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25770 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25771 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25773 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25775 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25776 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25777 (struct machine_function): Add tbegin_p.
25778 (s390_canonicalize_comparison): Fold CC mode compares to
25779 conditional jump if possible.
25780 (s390_emit_jump): Return the emitted jump.
25781 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25782 Handle CCRAWmode compares.
25783 (s390_option_override): Default to -mhtm if available.
25784 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25785 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25786 FPRs instead of df_regs_ever_live_p.
25787 (s390_optimize_nonescaping_tx): New function.
25788 (s390_init_frame_layout): Extend clobbered_regs array to cover
25790 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25791 (s390_expand_tbegin): New function.
25792 (enum s390_builtin): New enum definition.
25793 (code_for_builtin): New array definition.
25794 (s390_init_builtins): New function.
25795 (s390_expand_builtin): New function.
25796 (TARGET_INIT_BUILTINS): Define.
25797 (TARGET_EXPAND_BUILTIN): Define.
25798 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25799 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25800 (s390_alc_comparison): Likewise.
25801 * config/s390/s390-modes.def: Add CCRAWmode.
25802 * config/s390/s390.h (processor_flags): Add PF_TX.
25803 (TARGET_CPU_HTM): Define macro.
25804 (TARGET_HTM): Define macro.
25805 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25806 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25807 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25808 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25809 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25810 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25811 ("*cc_to_int"): Move up.
25812 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25813 constants other than 0.
25814 ("*ccraw_to_int"): New insn and splitter definition.
25815 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25816 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25817 ("tx_assist"): New expander.
25818 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25819 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25820 * config/s390/s390.opt: Add -mhtm option.
25821 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25822 * config/s390/htmxlintrin.h: New file.
25823 * config/s390/htmintrin.h: New file.
25824 * config/s390/s390intrin.h: New file.
25825 * doc/extend.texi: Document htm builtins.
25826 * config.gcc: Add the new header files to extra_headers.
25828 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25830 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25831 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25833 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25834 Pat Haugen <pthaugen@us.ibm.com>
25835 Peter Bergner <bergner@vnet.ibm.com>
25837 * config/rs6000/power8.md: New.
25838 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25839 setting for power8 entry.
25840 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25841 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25842 test for Power4/Power5 only.
25843 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25845 (force_new_group): Adjust comment.
25846 * config/rs6000/rs6000.md: Include power8.md.
25848 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25850 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25851 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25853 (tune_params): Update comment.
25854 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25855 (arm_max_conditional_execute): New function.
25856 (thumb2_final_prescan_insn): Use max_insn_skipped and
25857 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25859 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25861 PR tree-optimization/57705
25862 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25863 SSA_NAME step, provided that it is not defined inside the loop.
25864 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25865 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25867 2013-06-25 Martin Jambor <mjambor@suse.cz>
25869 PR middle-end/57670
25870 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25871 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25873 (ipa_note_param_call): Initialize member_ptr flag.
25874 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25875 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25876 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25877 (ipa_read_indirect_edge_info): Likewise.
25879 2013-06-25 Richard Biener <rguenther@suse.de>
25881 PR middle-end/56977
25882 * passes.c (init_optimization_passes): Move pass_fold_builtins
25883 and pass_dce earlier with -Og.
25885 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25887 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25888 <BIT_FIELD_REF>: Remove trailing TAB.
25889 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25892 2013-06-24 Martin Jambor <mjambor@suse.cz>
25894 PR tree-optimization/57358
25895 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25896 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25897 (ipa_analyze_params_uses): Generate pessimistic info when true.
25899 2013-06-24 Martin Jambor <mjambor@suse.cz>
25901 PR tree-optimization/57539
25902 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25903 global.inlined_to of the new node to it. All callers changed.
25904 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25905 inlining_into, pass it to cgraph_clone_node.
25906 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25907 ipa_free_edge_args_substructures.
25908 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25909 rdesc linked list. Do not assert rdesc edges have inlined caller.
25910 Assert we have found an rdesc in the rdesc list.
25912 2013-06-24 Richard Biener <rguenther@suse.de>
25914 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25915 (pointer_set_lookup): Declare.
25916 (class pointer_map): New template class implementing a
25917 generic pointer to T map.
25918 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25919 pointer_map<T>::contains, pointer_map<T>::insert,
25920 pointer_map<T>::traverse): New functions.
25921 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25922 (pointer_set_lookup): New function.
25923 (pointer_set_contains): Use pointer_set_lookup.
25924 (pointer_set_insert): Likewise.
25925 (insert_aux): Remove.
25926 (struct pointer_map_t): Embed a pointer_set_t.
25927 (pointer_map_create): Adjust.
25928 (pointer_map_destroy): Likewise.
25929 (pointer_map_contains): Likewise.
25930 (pointer_map_insert): Likewise.
25931 (pointer_map_traverse): Likewise.
25932 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25933 pointer_map<unsigned> instead of a pointer_map_t.
25934 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25935 (streamer_tree_cache_lookup): Likewise.
25936 (streamer_tree_cache_create): Likewise.
25937 (streamer_tree_cache_delete): Likewise.
25938 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25939 pointer_map<unsigned> instead of a pointer_map_t.
25940 (lto_init_tree_ref_encoder): Adjust.
25941 (lto_destroy_tree_ref_encoder): Likewise.
25942 * lto-section-out.c (lto_output_decl_index): Likewise.
25943 (lto_record_function_out_decl_state): Likewise.
25944 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25946 2013-06-24 Richard Biener <rguenther@suse.de>
25948 PR tree-optimization/57488
25949 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25951 2013-06-24 Alan Modra <amodra@gmail.com>
25953 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25954 (gen_easy_altivec_constant): Likewise.
25955 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25956 easy_vector_constant_msb): Likewise.
25958 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25961 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25962 add missing return true.
25964 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25967 * config/sh/predicates.md (general_extend_operand): Invoke
25968 general_movsrc_operand for memory operands.
25969 (general_movsrc_operand): Allow reg+reg addressing, do not use
25970 general_operand for memory operands.
25972 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25974 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25975 when current target options does not apply.
25976 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25977 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25978 * config/i386/bmiintrin.h: Pass appropriate target
25979 attributes to header.
25980 * config/i386/mmintrin.h: Ditto.
25981 * config/i386/nmmintrin.h: Ditto.
25982 * config/i386/avx2intrin.h: Ditto.
25983 * config/i386/fxsrintrin.h: Ditto.
25984 * config/i386/tbmintrin.h: Ditto.
25985 * config/i386/xsaveintrin.h: Ditto.
25986 * config/i386/f16cintrin.h: Ditto.
25987 * config/i386/xtestintrin.h: Ditto.
25988 * config/i386/xsaveoptintrin.h: Ditto.
25989 * config/i386/bmi2intrin.h: Ditto.
25990 * config/i386/lzcntintrin.h: Ditto.
25991 * config/i386/smmintrin.h: Ditto.
25992 * config/i386/wmmintrin.h: Ditto.
25993 * config/i386/x86intrin.h: Remove all header include guards.
25994 * config/i386/prfchwintrin.h: Ditto.
25995 * config/i386/pmmintrin.h: Ditto.
25996 * config/i386/tmmintrin.h: Ditto.
25997 * config/i386/xmmintrin.h: Ditto.
25998 * config/i386/popcntintrin.h: Ditto.
25999 * config/i386/rdseedintrin.h: Ditto.
26000 * config/i386/ammintrin.h: Ditto.
26001 * config/i386/emmintrin.h: Ditto.
26002 * config/i386/immintrin.h: Remove all header include guards.
26003 * config/i386/fma4intrin.h: Ditto.
26004 * config/i386/lwpintrin.h: Ditto.
26005 * config/i386/xopintrin.h: Ditto.
26006 * config/i386/ia32intrin.h: Ditto.
26007 * config/i386/avxintrin.h: Ditto.
26008 * config/i386/rtmintrin.h: Ditto.
26009 * config/i386/fmaintrin.h: Ditto.
26010 * config/i386/mm3dnow.h: Ditto.
26012 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26014 * common/config/i386/i386-common.c: Handle LZCNT.
26016 2013-06-22 Andi Kleen <ak@linux.intel.com>
26018 * doc/extend.texi: Use __atomic_store_n instead of
26019 __atomic_store in HLE example.
26021 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26023 * config/sh/sh.c: Remove <cstdlib> workaround.
26025 2013-06-21 Andi Kleen <ak@linux.intel.com>
26027 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26029 2013-06-21 Andi Kleen <ak@linux.intel.com>
26031 * doc/extend.texi: Document that __atomic_clear and
26032 __atomic_test_and_set should only be used with bool.
26034 2013-06-20 Jan Hubicka <jh@suse.cz>
26036 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26037 types_same_for_odr.
26038 * tree.c (decls_same_for_odr): New function.
26039 (same_for_edr): New function.
26040 (types_same_for_odr): New function.
26041 (get_binfo_at_offset): Use it.
26042 * tree.h (types_same_for_odr): Declare.
26044 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26045 Jason Merrill <jason@redhat.com>
26047 * system.h: Include <cstdlib> as well as <stdlib.h>.
26049 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26052 * config/i386/i386.c (construct_container): Report error if
26053 long double is used with disabled x87 float returns.
26055 2013-06-20 Jan Hubicka <jh@suse.cz>
26057 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26059 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26061 PR rtl-optimization/57425
26062 PR rtl-optimization/57569
26063 * alias.c (write_dependence_p): Remove parameters mem_mode and
26064 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26065 Changed all callers.
26066 (canon_anti_dependence): Get comments and semantics in sync.
26067 Add parameter mem_canonicalized. Changed all callers.
26068 * rtl.h (canon_anti_dependence): Update prototype.
26070 2013-06-20 Richard Biener <rguenther@suse.de>
26072 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26073 byte case, inline streamer_read_uchar and defer section
26076 2013-06-20 Richard Biener <rguenther@suse.de>
26078 PR tree-optimization/57584
26079 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26080 SSA names into the expanded expression that take part in
26081 abnormal coalescing.
26083 2013-06-19 Sharad Singhai <singhai@google.com>
26085 * gcov.c (print_usage): Handle new option.
26086 (process_args): Ditto.
26087 (get_gcov_intermediate_filename): New function.
26088 (output_intermediate_file): New function.
26089 (output_gcov_file): New function
26090 (generate_results): Handle new option.
26091 (release_function): Relase demangled name.
26092 (read_graph_file): Handle demangled name.
26093 (output_lines): Ditto.
26094 * doc/gcov.texi: Document gcov intermediate format.
26096 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26099 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26100 (lra_emit_add): Use the functions. Add comment about Y as an
26103 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26106 * collect2.c (collect_atexit): New.
26107 (collect_exit): Delete.
26108 (main): Register collect_atexit with atexit.
26109 (collect_wait): Change collect_exit to exit.
26111 * collect2.h (collect_exit): Delete.
26112 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26114 2013-06-19 Wei Mi <wmi@google.com>
26116 PR rtl-optimization/57518
26117 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26118 if regno is used in paradoxical subreg.
26119 (update_equiv_regs): Check pdx_subregs[regno] before
26120 set a reg to be equivalent with a mem.
26122 2013-06-19 Matthias Klose <doko@ubuntu.com>
26125 * file-find.h (find_a_file): Add a mode parameter.
26126 * file-find.c (find_a_file): Likewise.
26127 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26128 with X_OK for the executables.
26129 * collect2.c (main): Call find_a_file with X_OK.
26131 2013-06-19 Steve Ellcey <sellcey@mips.com>
26134 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26135 Use NEXT_INSN instead of next_real_insn.
26137 2013-06-19 Jan Hubicka <jh@suse.cz>
26139 * cgraph.h (const_value_known_p): Replace by ...
26140 (ctor_for_folding): .. this one.
26141 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26142 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26143 * expr.c (expand_expr_real_1): Likewise.
26144 (string_constant): Likewise.
26145 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26146 * ipa.c (process_references): Likewise.
26147 (symtab_remove_unreachable_nodes): Likewise.
26148 * ipa-inline-analysis.c (param_change_prob): Likewise.
26149 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26150 (get_base_constructor): Likwise.
26151 * varpool.c (varpool_remove_node): Likewise.
26152 (varpool_remove_initializer): LIkewise.
26153 (dump_varpool_node): LIkwise.
26154 (const_value_known_p): Rewrite to ...
26155 (ctor_for_folding): ... this one.
26157 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26160 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26161 PERSONALITY in $PATH derived prefixes.
26163 2013-06-19 Jeff Law <law@redhat.com>
26165 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26168 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26169 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26172 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26174 * config/arm/vfp.md: Move VFP instruction classification documentation
26176 * config/arm/arm.md: ... here. Update instruction classification
26179 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26181 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26182 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26183 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26185 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26188 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26189 with NEXT_INSN. Use tablejump_p to check for jump table data
26192 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26195 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26196 that now in C++ the value is correct per the C++ standards.
26198 2013-06-19 Richard Biener <rguenther@suse.de>
26200 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26201 for global context.
26203 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26206 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26209 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26210 with next_active_insn.
26212 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26214 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26215 functions are inlined during failures to flag an error.
26216 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26217 in early inline pass.
26219 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26221 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26224 2013-06-18 Julian Brown <julian@codesourcery.com>
26226 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26227 Permit virtual register pre-reload if !strict.
26228 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26230 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26232 * config/arm/neon.md (movmisalign<mode>): Use
26233 neon_perm_struct_or_reg_operand instead of
26234 neon_struct_or_register_operand.
26235 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26236 neon_permissive_struct_operand instead of neon_struct_operand.
26237 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26238 neon_vector_mem_operand.
26239 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26240 neon_vector_mem_operand.
26241 (neon_permissive_struct_operand): New.
26242 (neon_struct_or_register_operand): Rename to...
26243 (neon_perm_struct_or_reg_operand): This. Adjust call to
26244 neon_vector_mem_operand.
26246 2013-06-18 Richard Biener <rguenther@suse.de>
26248 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26249 * lto-streamer.h: Include pointer-set.h.
26250 (struct lto_decl_slot): Remove.
26251 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26252 Remove next_index entry.
26253 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26254 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26255 (lto_init_tree_ref_encoder): Adjust.
26256 (lto_destroy_tree_ref_encoder): Likewise.
26257 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26258 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26259 (lto_output_decl_index): Adjust.
26260 (lto_new_out_decl_state): Likewise.
26261 (lto_record_function_out_decl_state): Likewise.
26262 * lto-streamer-out.c (copy_function): Likewise.
26264 2013-06-18 Richard Biener <rguenther@suse.de>
26266 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26267 * cgraphunit.c: Include cfgloop.h.
26268 (init_lowered_empty_function): Initialize the loop tree.
26269 (assemble_thunk): Insert new BBs into loops.
26271 2013-06-18 Richard Biener <rguenther@suse.de>
26273 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26274 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26275 the map from cache entry to cache index optional.
26276 (streamer_tree_cache_replace_tree): Adjust accordingly.
26277 (streamer_tree_cache_append): Likewise.
26278 (streamer_tree_cache_delete): Likewise.
26279 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26280 streamer cache map from cache entry to cache index.
26281 * lto-streamer-out.c (create_output_block): Adjust.
26283 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26285 * config/arm/arm.md (attribute "insn"): Move multiplication and
26286 division attributes to...
26287 (attribute "type"): ... here. Remove mult.
26288 (attribute "mul32"): New attribute.
26289 (attribute "mul64"): Add umaal.
26290 (*arm_mulsi3): Update attributes.
26291 (*arm_mulsi3_v6): Likewise.
26292 (*thumb_mulsi3): Likewise.
26293 (*thumb_mulsi3_v6): Likewise.
26294 (*mulsi3_compare0): Likewise.
26295 (*mulsi3_compare0_v6): Likewise.
26296 (*mulsi_compare0_scratch): Likewise.
26297 (*mulsi_compare0_scratch_v6): Likewise.
26298 (*mulsi3addsi): Likewise.
26299 (*mulsi3addsi_v6): Likewise.
26300 (*mulsi3addsi_compare0): Likewise.
26301 (*mulsi3addsi_compare0_v6): Likewise.
26302 (*mulsi3addsi_compare0_scratch): Likewise.
26303 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26304 (*mulsi3subsi): Likewise.
26305 (*mulsidi3adddi): Likewise.
26306 (*mulsi3addsi_v6): Likewise.
26307 (*mulsidi3adddi_v6): Likewise.
26308 (*mulsidi3_nov6): Likewise.
26309 (*mulsidi3_v6): Likewise.
26310 (*umulsidi3_nov6): Likewise.
26311 (*umulsidi3_v6): Likewise.
26312 (*umulsidi3adddi): Likewise.
26313 (*umulsidi3adddi_v6): Likewise.
26314 (*smulsi3_highpart_nov6): Likewise.
26315 (*smulsi3_highpart_v6): Likewise.
26316 (*umulsi3_highpart_nov6): Likewise.
26317 (*umulsi3_highpart_v6): Likewise.
26318 (mulhisi3): Likewise.
26319 (*mulhisi3tb): Likewise.
26320 (*mulhisi3bt): Likewise.
26321 (*mulhisi3tt): Likewise.
26322 (maddhisi4): Likewise.
26323 (*maddhisi4tb): Likewise.
26324 (*maddhisi4tt): Likewise.
26325 (maddhidi4): Likewise.
26326 (*maddhidi4tb): Likewise.
26327 (*maddhidi4tt): Likewise.
26328 (divsi3): Likewise.
26329 (udivsi3): Likewise.
26330 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26331 (thumb2_mulsi_short_compare0): Likewise.
26332 (thumb2_mulsi_short_compare0_scratch): Likewise.
26333 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26334 (1020mult2): Likewise.
26335 (1020mult3): Likewise.
26336 (1020mult4): Likewise.
26337 (1020mult5): Likewise.
26338 (1020mult6): Likewise.
26339 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26341 (cortex_a15_mult64): Likewise.
26342 (cortex_a15_sdiv): Likewise.
26343 (cortex_a15_udiv): Likewise.
26344 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26350 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26351 (pj4_ir_div): Likewise.
26352 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26353 (11_mult2): Likewise.
26354 (11_mult3): Likewise.
26355 (11_mult4): Likewise.
26356 (11_mult5): Likewise.
26357 (11_mult6): Likewise.
26358 (11_mult7): Likewise.
26359 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26360 (cortex_a8_mla): Likewise.
26361 (cortex_a8_mull): Likewise.
26362 (cortex_a8_smulwy): Likewise.
26363 (cortex_a8_smlald): Likewise.
26364 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26365 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26366 (cortex_r4_mul_3): Likewise.
26367 (cortex_r4_mla_4): Likewise.
26368 (cortex_r4_mla_3): Likewise.
26369 (cortex_r4_smlald): Likewise.
26370 (cortex_r4_mull): Likewise.
26371 (cortex_r4_sdiv): Likewise.
26372 (cortex_r4_udiv): Likewise.
26373 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26374 (cortex_a7_idiv): Likewise.
26375 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26376 (9_mult2): Likewise.
26377 (9_mult3): Likewise.
26378 (9_mult4): Likewise.
26379 (9_mult5): Likewise.
26380 (9_mult6): Likewise.
26381 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26382 (cortex_a53_sdiv): Likewise.
26383 (cortex_a53_udiv): Likewise.
26384 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26385 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26386 (mp626_mult2): Likewise.
26387 (mp626_mult3): Likewise.
26388 (mp626_mult4): Likewise.
26389 * config/arm/fa526.md (526_mult1): Update attribute change.
26390 (526_mult2): Likewise.
26391 * config/arm/arm-generic.md (mult): Update attribute change.
26392 (mult_ldsched_strongarm): Likewise.
26393 (mult_ldsched): Likewise.
26394 (multi_cycle): Likewise.
26395 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26396 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26397 (606te_mult2): Likewise.
26398 (606te_mult3): Likewise.
26399 (606te_mult4): Likewise.
26400 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26401 (cortex_a9_mac16): Likewise.
26402 (cortex_a9_multiply): Likewise.
26403 (cortex_a9_mac): Likewise.
26404 (cortex_a9_multiply_long): Likewise.
26405 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26406 (626te_mult2): Likewise.
26407 (626te_mult3): Likewise.
26408 (626te_mult4): Likewise.
26410 2013-06-18 Richard Biener <rguenther@suse.de>
26413 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26415 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26418 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26419 with next_active_insn.
26421 2013-06-18 Alan Modra <amodra@gmail.com>
26423 * config/rs6000/rs6000.h (enum data_align): New.
26424 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26425 (DATA_ABI_ALIGNMENT): Define.
26426 (CONSTANT_ALIGNMENT): Correct comment.
26427 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26428 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26430 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26432 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26433 ATTRIBUTE_UNUSED marking.
26435 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26437 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26438 alternative and update.
26439 (aarch64_dup_lanedi): Delete.
26440 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26441 * config/aarch64/aarch64-simd-builtins.def: Update.
26443 2013-06-17 Richard Biener <rguenther@suse.de>
26445 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26446 (lto_input_scc): Declare.
26447 (lto_input_tree_1): Likewise.
26448 (struct lto_stats_d): Add num_tree_bodies_output and
26449 num_pickle_refs_output.
26450 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26451 (lto_read_tree_1): Split out from ...
26452 (lto_read_tree): ... this.
26453 (lto_input_scc): New function.
26454 (lto_input_tree_1): Split out from ...
26455 (lto_input_tree): ... this. Handle LTO_tree_scc.
26456 (lto_data_in_create): Create the streamer cache without hashes.
26457 * lto-streamer-out.c (create_output_block): Create the streamer
26458 cache with hashes when not doing WPA.
26459 (lto_write_tree_1): Split out from ...
26460 (lto_write_tree): ... this.
26461 (get_symbol_initial_value): New function.
26462 (lto_output_tree_1): Split out from ...
26463 (lto_output_tree): ... this. Write trees as series of SCCs
26464 using a DFS walk via DFS_write_tree.
26465 (struct sccs, struct scc_entry): New types.
26466 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26467 (DFS_write_tree_body): New function.
26468 (DFS_write_tree): Likewise.
26469 (hash_tree): Likewise.
26470 (scc_entry_compare): Likewise.
26471 (hash_scc): Likewise.
26472 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26473 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26474 TREE_CHAIN as regular reference.
26475 (streamer_read_integer_cst): Remove.
26476 (streamer_get_pickled_tree): Adjust.
26477 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26478 of DECL_EXTERNALs in BLOCK_VARS for now.
26479 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26481 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26482 Add hash value argument and record that if hashes are recorded
26484 (streamer_tree_cache_insert_1): Adjust.
26485 (streamer_tree_cache_insert): Likewise.
26486 (streamer_tree_cache_insert_at): Rename to ...
26487 (streamer_tree_cache_replace_tree): ... this and adjust.
26488 (streamer_tree_cache_append): Adjust.
26489 (record_common_node): Likewise.
26490 (streamer_tree_cache_create): Add argument whether to
26491 record hash values together with trees.
26492 (streamer_tree_cache_delete): Adjust.
26493 * tree-streamer.h (struct streamer_tree_cache_d): Add
26495 (streamer_read_integer_cst): Remove.
26496 (streamer_tree_cache_insert): Adjust.
26497 (streamer_tree_cache_append): Likewise.
26498 (streamer_tree_cache_insert_at): Rename to ...
26499 (streamer_tree_cache_replace_tree): ... this and adjust.
26500 (streamer_tree_cache_create): Add argument whether to record hashes.
26501 (streamer_tree_cache_get): Rename to ...
26502 (streamer_tree_cache_get_tree): ... this.
26503 (streamer_tree_cache_get_hash): New function.
26504 * tree.c (cache_integer_cst): New function.
26505 * tree.h (cache_integer_cst): Declare.
26506 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26507 * lto-symtab.c (lto_varpool_replace_node): Only release
26508 DECL_INITIAL of non-prevailing decls.
26509 * varpool.c (varpool_remove_initializer): Do not release
26510 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26512 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26514 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26515 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26516 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26517 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26518 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26519 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26520 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26521 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26522 instead of TARGET_64BIT.
26523 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26524 Require ISA_HAS_<D>DIV.
26526 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26528 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26529 (mips*-*-linux*): Move default with_llsc setting to where other
26531 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26533 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26534 Likewise. Remove default with_tune setting. Move default float
26535 setting to its own block. Handle with_llsc in the same block as above.
26537 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26539 PR rtl-optimization/57425
26540 PR rtl-optimization/57569
26541 * alias.c (write_dependence_p): Add new parameters mem_mode,
26542 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26543 Changed all callers.
26544 (canon_anti_dependence): New function.
26545 * cse.c (check_dependence): Use canon_anti_dependence.
26546 * cselib.c (cselib_invalidate_mem): Likewise.
26547 * rtl.h (canon_anti_dependence): Declare.
26549 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26551 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26552 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26553 ".set mips3" for 64-bit targets.
26555 2013-06-15 Dehao Chen <dehao@google.com>
26557 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26558 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26559 (gimple_check_call_args): Likewise.
26560 * value-prof.c (check_ic_target): Likewise.
26561 * ipa-inline.c (early_inliner): Likewise.
26562 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26563 * cgraph.c (cgraph_create_edge_1): Likewise.
26564 (cgraph_make_edge_direct): Likewise.
26566 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26569 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26570 rs6000_output_move_128bit to handle emitting quad memory
26571 operations. Set attribute length to 8 bytes.
26573 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26575 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26577 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26578 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26579 (aarch64_<su>mlsl<mode>): Likewise.
26581 2013-06-14 Mike Stump <mikestump@comcast.net>
26583 * Makefile.in (TARGET_H): Add insn-codes.h.
26585 2013-06-14 Alan Modra <amodra@gmail.com>
26587 PR middle-end/57134
26588 PR middle-end/57586
26589 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26590 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26591 bitfield expansion when EXPAND_MEMORY.
26592 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26594 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26596 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26597 test for clearing quad memory on 32-bit later.
26599 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26601 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26602 (fold_negate_expr): Likewise.
26603 (fold_real_zero_addition_p): Handle vectors.
26604 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26606 2013-06-14 Alan Modra <amodra@gmail.com>
26608 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26610 2013-06-13 Jan Hubicka <jh@suse.cz>
26612 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26613 Local comdats are not externally visible.
26614 * symtab.c (dump_symtab_base): Dump externally visible.
26615 (verify_symtab_base): Verify back links in the symtab hash.
26617 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26619 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26620 CONVERT_EXPR as equal nodes.
26622 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26624 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26626 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26628 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26629 Generalize to complex and vector.
26630 * tree.c (build_all_ones_cst): New function.
26631 * tree.h (build_all_ones_cst): Declare it.
26633 2013-06-13 Alan Modra <amodra@gmail.com>
26635 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26636 * config/rs6000/rs6000.md (signbittf2): New insn.
26637 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26638 (abstf2_internal, cmptf_internal2): Likewise.
26639 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26641 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26642 Pat Haugen <pthaugen@us.ibm.com>
26643 Peter Bergner <bergner@vnet.ibm.com>
26645 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26646 power8 byte, half-word, and quad-word atomic instructions.
26647 (emit_store_conditional): Likewise.
26648 (rs6000_expand_atomic_compare_and_swap): Likewise.
26649 (rs6000_expand_atomic_op): Likewise.
26651 * config/rs6000/sync.md (larx): Add new modes for power8.
26653 (AINT): New mode iterator to include TImode as well as normal
26654 integer modes on power8.
26655 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26656 that VSX registers are not considered. Use AINT mode iterator
26657 instead of INT1 to allow inclusion of quad word atomic operations
26659 (load_locked<mode>): Likewise.
26660 (store_conditional<mode>): Likewise.
26661 (atomic_compare_and_swap<mode>): Likewise.
26662 (atomic_exchange<mode>): Likewise.
26663 (atomic_nand<mode>): Likewise.
26664 (atomic_fetch_<fetchop_name><mode>): Likewise.
26665 (atomic_nand_fetch<mode>): Likewise.
26666 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26668 (ATOMIC): On power8, add QImode, HImode modes.
26669 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26670 modes that promote to SImode.
26671 (load_lockedti): Convert TImode arguments to PTImode, so that we
26672 get a guaranteed even/odd register pair.
26673 (load_lockedpti): Likewise.
26674 (store_conditionalti): Likewise.
26675 (store_conditionalpti): Likewise.
26677 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26678 atomic load/store instructions.
26681 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26683 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26685 (insn_count): New attribute, with most cases extracted from...
26686 (length): ...here. Redefine most cases in terms of insn_count.
26687 (single_insn): Delete.
26688 (can_delay): Use insn_count to check for single instructions.
26689 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26690 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26691 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26692 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26693 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26694 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26695 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26696 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26697 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26698 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26699 rather than "length".
26700 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26701 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26702 Use "insn_count" rather than "length".
26703 * config/mips/mips-dsp.md
26704 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26705 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26708 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26710 PR tree-optimization/57361
26711 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26713 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26715 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26717 (aarch64_simd_combine<mode>): New instruction expansion.
26718 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26719 function prototype.
26720 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26721 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26723 2013-06-12 Jan Hubicka <jh@suse.cz>
26725 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26726 decl has when in streaming stage.
26727 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26728 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26730 2013-06-12 Roland Stigge <stigge@antcom.de>
26733 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26735 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26737 PR tree-optimization/57537
26738 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26739 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26741 2013-06-12 Richard Biener <rguenther@suse.de>
26743 * data-streamer.h (streamer_write_char_stream): CSE
26744 obs->current_pointer.
26745 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26746 streamer_write_char_stream manually and optimize the resulting loop.
26747 (streamer_write_hwi_stream): Likewise.
26749 2013-06-12 Jan Hubicka <jh@suse.cz>
26751 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26752 * cgraph.h (varpool_create_empty_node): Declare.
26753 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26755 * symtab.c (symtab_unregister_node): Be lax about missin entries
26757 (symtab_get_node): Update comment.
26758 * varpool.c (varpool_create_empty_node): Break out from ...
26759 (varpool_node_for_decl): ... here.
26760 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26762 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26764 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26765 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26766 part. Use straight-line flow at the end.
26767 <COMPONENT_REF>: Remove superfluous else.
26768 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26770 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26773 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26774 target hook even for !TREE_PUBLIC decls. If no resolution info
26775 is available, return false for common and external decls.
26777 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26779 * config/rl78/constraints.md (U): New constraint.
26780 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26783 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26786 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26787 to allow returning address to AT_PLATFORM name.
26789 2013-06-11 Jan Hubicka <jh@suse.cz>
26791 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26792 * cgraph.h (symtab_node_base): Add weakref flag.
26793 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26794 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26795 (output_weakrefs): Use weakref flag.
26796 * fold-const.c (simple_operand_p): Handle WEAK.
26797 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26798 * ipa.c (varpool_externally_visible_p): Drop weakref.
26799 (function_and_variable_visibility): Update comment; fix weakref
26800 sanity checks; do not clear DECL_WEAK on them.
26801 * lto-cgraph.c (lto_output_node): update.
26802 (lto_output_varpool_node): Update.
26803 (input_overwrite_node): Update.
26804 (input_node): Update.
26805 (input_varpool_node): Update.
26806 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26807 (lto_symtab_merge_symbols): Add sanity check.
26808 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26809 * passes.c (rest_of_decl_compilation): Set static flag, too.
26810 * symtab.c (dump_symtab_base): Dump weakref.
26811 (verify_symtab_base): Sanity check weakrefs.
26812 (symtab_make_decl_local): Remove duplicated code.
26813 (symtab_alias_ultimate_target): Simplify.
26814 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26816 2013-06-11 Tom de Vries <tom@codesourcery.com>
26818 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26819 sequence_vect == NULL.
26821 2013-06-11 DJ Delorie <dj@redhat.com>
26823 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26824 (rl78_unwind_word_mode): New.
26826 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26828 * final.c (debug_prefix_maps): Make static.
26830 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26832 * function.c (initial_trampoline): Remove stray copy.
26834 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26836 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26838 2013-06-11 Martin Jambor <mjambor@suse.cz>
26840 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26841 within bounds at the beginning of the function.
26843 2013-06-11 Alan Modra <amodra@gmail.com>
26845 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26847 (get_named_section): Don't NULL !DECL_P decl.
26849 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26851 * doc/invoke.texi (core-avx2): Document.
26853 (atom): Updated with MOVBE.
26855 2013-06-11 Richard Biener <rguenther@suse.de>
26857 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26859 2013-06-11 Anton Blanchard <anton@samba.org>
26861 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26862 correct shift value in little-endian mode.
26864 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26867 * varasm.c (get_variable_align): Move #endif to the right place.
26869 2013-06-10 Cary Coutant <ccoutant@google.com>
26871 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26872 for hash so that hash table traversal order is deterministic.
26874 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26875 Pat Haugen <pthaugen@us.ibm.com>
26876 Peter Bergner <bergner@vnet.ibm.com>
26878 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26879 of vectors in GPRS if they are direct moves or quad word load or
26882 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26884 (direct_move_p): Likewise.
26885 (quad_load_store_p): Likewise.
26887 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26888 classes into bins based on the physical register type.
26889 (reg_class_to_reg_type): Likewise.
26890 (IS_STD_REG_TYPE): Likewise.
26891 (IS_FP_VECT_REG_TYPE): Likewise.
26892 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26893 use direct move instructions.
26894 (reload_gpr_vsx): Likewise.
26895 (reload_vsx_gpr): Likewise.
26896 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26897 information that is a simplification of register classes. Also
26898 precalculate direct move reload helpers.
26899 (direct_move_p): New function to return true if the operation can
26900 be done as a direct move instruciton.
26901 (quad_load_store_p): New function to return true if the operation
26902 is a quad memory operation.
26903 (rs6000_legitimize_address): If quad memory, only allow register
26904 indirect for TImode addresses.
26905 (rs6000_legitimate_address_p): Likewise.
26906 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26907 (rs6000_reload_register_type): Likewise.
26908 (register_to_reg_type): Return register type.
26909 (rs6000_secondary_reload_simple_move): New helper function for
26910 secondary reload and secondary memory needed to identify anything
26911 that is a simple move, and does not need reloading.
26912 (rs6000_secondary_reload_direct_move): New helper function for
26913 secondary reload to identify cases that can be done with several
26914 instructions via the direct move instructions.
26915 (rs6000_secondary_reload_move): New helper function for secondary
26916 reload to identify moves between register types that can be done.
26917 (rs6000_secondary_reload): Add support for quad memory operations
26918 and for direct move.
26919 (rs6000_secondary_memory_needed): Likewise.
26920 (rs6000_debug_secondary_memory_needed): Change argument names.
26921 (rs6000_output_move_128bit): New function to return the move to
26922 use for 128-bit moves, including knowing about the various
26923 limitations of quad memory operations.
26925 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26926 memory operations. call rs6000_output_move_128bit for the actual
26927 instruciton(s) to generate.
26928 (vsx_movti_64bit): Likewise.
26930 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26931 (UNSPEC_P8V_MTVSRWZ): Likewise.
26932 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26933 (UNSPEC_P8V_MTVSRD): Likewise.
26934 (UNSPEC_P8V_XXPERMDI): Likewise.
26935 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26936 (UNSPEC_FUSION_GPR): Likewise.
26937 (FMOVE128_GPR): New iterator for direct move.
26938 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26939 (f32_sv): Likewise.
26940 (f32_dm): Likewise.
26941 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26942 loads and direct move instructions.
26943 (zero_extendsidi2_lfiwzx): Likewise.
26944 (extendsidi2_lfiwax): Likewise.
26945 (extendsidi2_nocell): Likewise.
26946 (floatsi<mode>2_lfiwax): Likewise.
26947 (lfiwax): Likewise.
26948 (floatunssi<mode>2_lfiwzx): Likewise.
26949 (lfiwzx): Likewise.
26950 (fix_trunc<mode>_stfiwx): Likewise.
26951 (fixuns_trunc<mode>_stfiwx): Likewise.
26952 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26953 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26954 (parity<mode>2_cmpb): Set length/type attr.
26955 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26956 for 'mr.' to fast_compare.
26957 (bpermd_<mode>): Change type attr to popcnt.
26958 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26959 (p8_mtvsrwz_1): Likewise.
26960 (p8_mtvsrwz_2): Likewise.
26961 (reload_fpr_from_gpr<mode>): Likewise.
26962 (p8_mtvsrd_1): Likewise.
26963 (p8_mtvsrd_2): Likewise.
26964 (p8_xxpermdi_<mode>): Likewise.
26965 (reload_vsx_from_gpr<mode>): Likewise.
26966 (reload_vsx_from_gprsf): Likewise.
26967 (p8_mfvsrd_3_<mode>): LIkewise.
26968 (reload_gpr_from_vsx<mode>): Likewise.
26969 (reload_gpr_from_vsxsf): Likewise.
26970 (p8_mfvsrd_4_disf): Likewise.
26971 (multi-word GPR splits): Do not split direct moves or quad memory
26974 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26976 * tree-into-ssa.c (interesting_blocks): Make static.
26978 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26981 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26982 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26983 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26984 (get_variable_align): New function.
26985 (get_variable_section, emit_bss, emit_common,
26986 assemble_variable_contents, place_block_symbol): Use
26987 get_variable_align instead of DECL_ALIGN.
26988 (assemble_noswitch_variable): Add align argument, use it
26989 instead of DECL_ALIGN.
26990 (assemble_variable): Adjust caller. Use get_variable_align
26991 instead of DECL_ALIGN.
26992 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26994 (DATA_ABI_ALIGNMENT): Define.
26995 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26996 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26997 opt is false, only return the psABI mandated alignment increase.
26998 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26999 (DATA_ABI_ALIGNMENT): ... this.
27000 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27001 (DATA_ABI_ALIGNMENT): ... this.
27002 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27003 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27004 (DATA_ABI_ALIGNMENT): ... this.
27005 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27006 * doc/tm.texi: Regenerated.
27008 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27010 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27011 cmp_code to construct REG_EQUAL note.
27013 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27016 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27017 that operands[2] doesn't overlap with operands[0].
27019 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27020 Jan Hubicka <jh@suse.cz>
27022 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27023 hack to mark symbols as used.
27025 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27027 PR rtl-optimization/57559
27028 * lra-constraints.c (process_alt_operands): Don't discourage
27029 memory with known offset for offsetable memory constraint.
27030 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27032 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27034 * varasm.c (struct oc_local_state): Reorder fields.
27035 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27036 and adjust accordingly.
27037 (output_constructor): Reorder initialization code and adjust call to
27038 output_constructor_bitfield.
27040 2013-06-07 Jan Hubicka <jh@suse.cz>
27042 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27044 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27046 * tree-object-size.c (unknown): Make const.
27048 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27050 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27051 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27052 for last alternative in the cpu_facility attribute.
27054 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27057 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27058 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27059 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27060 * config/arm/constraints.md (Dg): New constraint.
27061 * config/arm/neon.md (xordi3_neon): Remove.
27062 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27063 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27065 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27067 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27068 Clean up alternatives.
27070 2013-06-07 Alan Modra <amodra@gmail.com>
27072 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27075 2013-06-07 Alan Modra <amodra@gmail.com>
27077 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27079 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27081 * config/arm/constraints.md (Df): New constraint.
27082 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27083 Correct length attribute for last two alternatives.
27085 2013-06-07 Alan Modra <amodra@gmail.com>
27087 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27088 override user -mfp-in-toc.
27089 (offsettable_ok_by_alignment): Consider just the current access
27090 rather than the whole object, unless BLKmode. Handle
27091 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27092 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27093 for -mcmodel=medium.
27094 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27095 override user -mfp-in-toc or -msum-in-toc. Default to
27096 -mno-fp-in-toc for -mcmodel=medium.
27098 2013-06-06 DJ Delorie <dj@redhat.com>
27100 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27101 TARGET_VALID_POINTER_MODE.
27103 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27104 Pat Haugen <pthaugen@us.ibm.com>
27105 Peter Bergner <bergner@vnet.ibm.com>
27107 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27108 Document new power8 builtins.
27110 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27111 condition code register, to allow 128-bit logical operations to be
27112 done in the VSX or GPR registers.
27113 (nor<mode>3): Use the canonical form for nor.
27114 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27115 vclz*, and vpopcnt* vector instructions.
27116 (nand<mode>3): Likewise.
27117 (orc<mode>3): Likewise.
27118 (clz<mode>2): LIkewise.
27119 (popcount<mode>2): Likewise.
27121 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27122 that only the GPRs are recognized.
27124 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27125 support for new power8 builtins.
27127 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27129 (xscvdpspn): Likewise.
27135 (vpopcnt): Likewise.
27136 (vpopcntb): Likewise.
27137 (vpopcnth): Likewise.
27138 (vpopcntw): Likewise.
27139 (vpopcntd): Likewise.
27141 (vmrgew): Likewise.
27142 (vmrgow): Likewise.
27144 (eqv_v16qi3): Likewise.
27145 (eqv_v8hi3): Likewise.
27146 (eqv_v4si3): Likewise.
27147 (eqv_v2di3): Likewise.
27148 (eqv_v4sf3): Likewise.
27149 (eqv_v2df3): Likewise.
27151 (nand_v16qi3): Likewise.
27152 (nand_v8hi3): Likewise.
27153 (nand_v4si3): Likewise.
27154 (nand_v2di3): Likewise.
27155 (nand_v4sf3): Likewise.
27156 (nand_v2df3): Likewise.
27158 (orc_v16qi3): Likewise.
27159 (orc_v8hi3): Likewise.
27160 (orc_v4si3): Likewise.
27161 (orc_v2di3): Likewise.
27162 (orc_v4sf3): Likewise.
27163 (orc_v2df3): Likewise.
27165 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27166 allow power8 quad mode in 64-bit.
27167 (rs6000_builtin_vectorized_function): Add support to vectorize
27168 ISA 2.07 count leading zeros, population count builtins.
27169 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27170 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27171 (builtin_function_type): Add vgbbd builtin function which takes an
27173 (altivec_expand_vec_perm_const): Add support for new power8 merge
27176 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27177 that does not include TImdoe for use with 32-bit.
27178 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27180 (UNSPEC_VSX_CVDPSPN): Likewise.
27181 (vsx_xscvdpspn): Likewise.
27182 (vsx_xscvspdpn): Likewise.
27183 (vsx_xscvdpspn_scalar): Likewise.
27184 (vsx_xscvspdpn_directmove): Likewise.
27185 (vsx_and<mode>3): Split logical operations into 32-bit and
27186 64-bit. Add support to do logical operations on TImode as well as
27187 VSX vector types. Allow logical operations to be done in either
27188 VSX registers or in general purpose registers in 64-bit mode. Add
27189 splitters if GPRs were used. For AND, add clobber of CCmode to
27190 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27192 (vsx_and<mode>3_32bit): Likewise.
27193 (vsx_and<mode>3_64bit): Likewise.
27194 (vsx_ior<mode>3): Likewise.
27195 (vsx_ior<mode>3_32bit): Likewise.
27196 (vsx_ior<mode>3_64bit): Likewise.
27197 (vsx_xor<mode>3): Likewise.
27198 (vsx_xor<mode>3_32bit): Likewise.
27199 (vsx_xor<mode>3_64bit): Likewise.
27200 (vsx_one_cmpl<mode>2): Likewise.
27201 (vsx_one_cmpl<mode>2_32bit): Likewise.
27202 (vsx_one_cmpl<mode>2_64bit): Likewise.
27203 (vsx_nor<mode>3): Likewise.
27204 (vsx_nor<mode>3_32bit): Likewise.
27205 (vsx_nor<mode>3_64bit): Likewise.
27206 (vsx_andc<mode>3): Likewise.
27207 (vsx_andc<mode>3_32bit): Likewise.
27208 (vsx_andc<mode>3_64bit): Likewise.
27209 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27210 and xxlorc instructions.
27211 (vsx_eqv<mode>3_64bit): Likewise.
27212 (vsx_nand<mode>3_32bit): Likewise.
27213 (vsx_nand<mode>3_64bit): Likewise.
27214 (vsx_orc<mode>3_32bit): Likewise.
27215 (vsx_orc<mode>3_64bit): Likewise.
27217 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27219 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27221 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27222 (p8_vmrgow): Likewise.
27223 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27224 GPRs to be split under VSX.
27225 (p8v_clz<mode>2): Add power8 count leading zero support.
27226 (p8v_popcount<mode>2): Add power8 population count support.
27227 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27230 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27233 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27235 (vec_nand): Likewise.
27236 (vec_vclz): Likewise.
27237 (vec_vclzb): Likewise.
27238 (vec_vclzd): Likewise.
27239 (vec_vclzh): Likewise.
27240 (vec_vclzw): Likewise.
27241 (vec_vgbbd): Likewise.
27242 (vec_vmrgew): Likewise.
27243 (vec_vmrgow): Likewise.
27244 (vec_vpopcnt): Likewise.
27245 (vec_vpopcntb): Likewise.
27246 (vec_vpopcntd): Likewise.
27247 (vec_vpopcnth): Likewise.
27248 (vec_vpopcntw): Likewise.
27250 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27252 PR rtl-optimization/57468
27253 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27256 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27258 PR rtl-optimization/57459
27259 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27260 type when setting live regs.
27262 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27264 * config/s390/s390.opt (mlra): New option.
27265 * config/s390/s390.c (s390_decompose_address): Check displacement
27266 for all registers for LRA.
27267 (s390_secondary_reload): Don't used secondary reloads for LRA.
27268 (s390_lra_p): New function.
27269 (TARGET_LRA_P): Define.
27270 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27271 of attribute cpu_facility to zarch for the last alternative.
27272 (*cmpmem_short): Ditto.
27274 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27276 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27277 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27278 (arm_expand_prologue): Likewise.
27280 2013-06-06 Teresa Johnson <tejohnson@google.com>
27283 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27284 as this is now done by redirect_edge_and_branch_force.
27285 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27286 barriers, and fix interaction with splitting.
27287 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27288 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27289 reflect changes made in the routine.
27290 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27291 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27292 since this is called in cfglayout mode, and replace partition fixup
27293 with assert as that is now done by force_nonfallthru_and_redirect.
27294 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27295 already be marked with region crossing note.
27296 (insert_section_boundary_note): Make non-static, gate on flag
27297 has_bb_partition, rewrite to also check for multiple partitions.
27298 (rest_of_handle_reorder_blocks): Remove call to
27299 insert_section_boundary_note, now done later during free_cfg.
27300 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27301 * bb-reorder.h (insert_section_boundary_note): Declare.
27302 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27303 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27304 invoke insert_section_boundary_note.
27305 (try_redirect_by_replacing_jump): Remove unnecessary
27306 check for region crossing note.
27307 (fixup_partition_crossing): New function.
27308 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27309 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27310 in non-cfglayout mode.
27311 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27312 remove old code that tried to do this. Emit barrier correctly
27313 when we are in cfglayout mode.
27314 (last_bb_in_partition): New function.
27315 (rtl_split_edge): Correctly fixup partition boundaries.
27316 (commit_one_edge_insertion): Remove old code that tried to
27317 fixup region crossing edge since this is now handled in
27318 split_block, and set up insertion point correctly since
27319 block may now end in a jump.
27320 (verify_hot_cold_block_grouping): Guard against checking when not in
27321 linearized RTL mode.
27322 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27324 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27325 rtl_verify_flow_info, so not called in cfglayout mode.
27326 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27327 (fixup_reorder_chain): Remove old code that attempted to fixup region
27328 crossing note as this is now handled in force_nonfallthru_and_redirect.
27329 (duplicate_insn_chain): Don't duplicate switch section notes.
27330 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27332 * basic-block.h (emit_barrier_after_bb): Declare.
27334 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27336 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27337 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27338 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27340 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27342 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27344 * config/arm/ldmstm.md: Regenerate.
27346 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27348 * config/arm/sync.md (atomic_loaddi_1):
27349 Disable predication for arm_restrict_it.
27350 (arm_load_exclusive<mode>): Likewise.
27351 (arm_load_exclusivesi): Likewise.
27352 (arm_load_exclusivedi): Likewise.
27353 (arm_load_acquire_exclusive<mode>): Likewise.
27354 (arm_load_acquire_exclusivesi): Likewise.
27355 (arm_load_acquire_exclusivedi): Likewise.
27356 (arm_store_exclusive<mode>): Likewise.
27357 (arm_store_exclusive<mode>): Likewise.
27358 (arm_store_release_exclusivedi): Likewise.
27359 (arm_store_release_exclusive<mode>): Likewise.
27361 2013-06-06 Richard Biener <rguenther@suse.de>
27363 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27365 (lto_tag_is_tree_code_p): Adjust.
27366 (lto_tag_is_gimple_code_p): Likewise.
27367 (lto_gimple_code_to_tag): Likewise.
27368 (lto_tag_to_gimple_code): Likewise.
27369 (lto_tree_code_to_tag): Likewise.
27370 (lto_tag_to_tree_code): Likewise.
27371 * data-streamer.h (streamer_write_hwi_in_range): Use
27372 uhwi streaming to stream the normalized range.
27373 (streamer_read_hwi_in_range): Likewise.
27375 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27377 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27378 (predicable_short_it): Likewise.
27379 (predicated): Likewise.
27380 (enabled): Handle above.
27381 (define_cond_exec): Set predicated attribute to yes.
27383 2013-06-05 Mike Stump <mikestump@comcast.net>
27385 * gdbinit.in (__FUNCTION__): Add.
27387 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27389 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27390 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27392 2013-06-05 Jan Hubicka <jh@suse.cz>
27394 * varasm.c (mark_decl_referenced): Revert the removal until targets
27397 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27399 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27400 instead of mark_decl_referenced.
27402 2013-06-05 Jan Hubicka <jh@suse.cz>
27404 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27405 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27406 and symtab_used_from_object_file_p.
27407 (cgraph_make_node_local_1): Clear forced_by_abi.
27408 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27409 * cgraph.h (symtab_node_base): Add forced_by_abi.
27410 (decide_is_variable_needed): Remove.
27411 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27412 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27413 (decide_is_symbol_needed): ... this one; handle symbols in general;
27414 always analyze virtuals; honnor forced_by_abi.
27415 (cgraph_finalize_function): Update.
27416 (varpool_finalize_decl): Update.
27417 (symbol_defined_and_needed): Remove.
27418 (analyze_functions): Update.
27419 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27420 output_refs, input_overwrite_node): Handle forced_by_abi.
27421 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27422 (address_taken_from_non_vtable_p): ... this one.
27423 (comdat_can_be_unshared_p_1): New function.
27424 (cgraph_comdat_can_be_unshared_p): Rename to ...
27425 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27426 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27427 (function_and_variable_visibility): Clear forced_by_abi as needed.
27428 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27429 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27430 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27431 * varpool.c (decide_is_variable_needed): Remove.
27433 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27435 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27436 (arm_option_override): Override arm_restrict_it where appropriate.
27437 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27438 * config/arm/arm.opt (mrestrict-it): New command-line option.
27439 * doc/invoke.texi: Document -mrestrict-it.
27441 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27443 * tsan.c (tsan_atomic_table): Make const.
27445 2013-06-05 Richard Biener <rguenther@suse.de>
27447 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27448 index associated with the tree we are supposed to replace.
27449 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27450 TREE_ASM_WRITTEN as zero for everything but SSA names.
27452 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27454 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27456 2013-06-04 Jan Hubicka <jh@suse.cz>
27458 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27459 (input_node, input_varpool_node): Handle correctly external same
27461 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27462 nodes at ltrans stage.
27464 2013-06-04 Jan Hubicka <jh@suse.cz>
27466 * ipa-inline.c (update_caller_keys): Fix availability test.
27467 (update_callee_keys): Likewise.
27468 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27469 to follow ELF standard.
27471 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27473 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27474 (mips64r5900el-*-elf*): New configurations.
27475 * config/mips/mips-cpus.def (r5900): New processor.
27476 * config/mips/mips-tables.opt: Regenerate.
27477 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27478 (mips_issue_rate): Handle PROCESSOR_R5900.
27479 (mips_reorg_process_insns): Force reorder mode for the R5900.
27480 * config/mips/mips.h (TARGET_MIPS5900): Define.
27481 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27483 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27485 * config/mips/mips.md (processor): Add r5900.
27486 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27488 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27490 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27491 into function to generate MOVI instruction.
27492 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27493 (aarch64_preferred_simd_mode): Turn into wrapper.
27494 (aarch64_output_scalar_simd_mov_immediate): New function.
27495 * config/aarch64/aarch64-protos.h: Add prototype for above.
27497 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27499 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27500 element_char member.
27501 (sizetochar): Return signed char.
27502 (aarch64_simd_valid_immediate): Remove elchar and other
27503 unnecessary variables.
27504 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27505 Calculate element_char as required.
27506 * config/aarch64/aarch64-protos.h: Update and move prototype
27507 for aarch64_output_simd_mov_immediate.
27508 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27511 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27513 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27514 information completed by aarch64_simd_valid_immediate.
27515 (aarch64_legitimate_constant_p): Update arguments.
27516 (aarch64_simd_valid_immediate): Work with struct rather than many
27518 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27519 (aarch64_simd_make_constant): Update arguments.
27520 (aarch64_output_simd_mov_immediate): Work with struct rather than
27521 many pointers. Output immediate directly rather than as operand.
27522 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27524 * config/aarch64/constraints.md (Dn): Update arguments.
27526 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27528 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27530 (aarch64_simd_immediate_valid_for_move): Remove.
27531 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27532 (aarch64_simd_make_constant): Update call.
27533 (aarch64_output_simd_mov_immediate): Update call.
27534 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27536 * config/aarch64/constraints.md (Dn): Update call.
27538 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27540 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27541 return type to bool for prototype.
27542 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27543 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27544 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27546 2013-06-04 Catherine Moore <clm@codesourcery.com>
27548 * config/mips/mips.opt (meva): New.
27549 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27550 (ASM_SPEC): Handle -meva.
27551 * doc/invoke.texi (meva): Document.
27553 2013-06-04 Alan Modra <amodra@gmail.com>
27555 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27558 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27560 * rtl.def: Add extra fourth optional field to define_cond_exec.
27561 * gensupport.c (process_one_cond_exec): Process attributes from
27563 * doc/md.texi: Document fourth field in define_cond_exec.
27565 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27567 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27568 out the processing order as in store_bit_field_1.
27570 2013-06-04 Jan Hubicka <jh@suse.cz>
27572 PR middle-end/57500
27573 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27574 non-VAR_DECL node if it does not exist yet.
27576 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27578 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27579 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27580 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27581 target_cpu_default setting.
27583 2013-06-03 Teresa Johnson <tejohnson@google.com>
27585 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27586 default to -fopt-info=optimized instead of all.
27587 * doc/invoke.texi: Ditto.
27588 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27589 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27590 (execute_vect_slp): Emit BB vectorization success under
27591 MSG_OPTIMIZED_LOCATIONS.
27592 * tree-vect-slp.c (vect_slp_transform_bb): Change
27593 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27594 * tree-vect-loop.c (vect_transform_loop): Ditto.
27596 2013-06-03 Jason Merrill <jason@redhat.com>
27599 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27600 Use TARGET_EXPR for C++.
27602 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27604 PR rtl-optimization/57268
27605 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27606 if DEBUG_INSN_P (insn).
27609 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27611 PR rtl-optimization/57268
27612 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27613 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27615 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27617 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27618 (ix86_avoid_lea_for_addr): Likewise.
27619 (exact_dependency_1): Likewise.
27620 (ix86_adjust_cost): Likewise.
27621 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27623 (do_reorder_for_imul): Fix typo, formatting and
27624 !reload_completed check removed.
27625 (ix86_sched_reorder): Fix typo and formatting.
27626 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27629 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27631 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27633 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27635 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27636 <STRING_CST>: Likewise.
27637 <VECTOR_CST>: Likewise.
27639 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27640 Mikael Morin <mikael@gcc.gnu.org>
27642 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27643 * config.in: Regenerated.
27644 * configure: Regenerated.
27646 2013-06-01 Jan Hubicka <jh@suse.cz>
27648 PR middle-end/57366
27649 * cgraphunit.c (compile): When weakref is not supported,
27650 set up transparent aliases before final output pass.
27651 * varasm.c (assemble_alias): Do not try to do it here.
27653 2013-06-01 Jan Hubicka <jh@suse.cz>
27655 PR middle-end/57467
27656 * passes.c (for_per_function): Skip unanalyzed functions.
27658 2013-06-01 Jan Hubicka <jh@suse.cz>
27660 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27661 (lto_symtab_merge_symbols_1): ... this one.
27662 (lto_symtab_merge_cgraph_nodes): Rename to ...
27663 (lto_symtab_merge_symbols): ... this one; simplify.
27664 * cgraph.c (same_body_aliases_done): Rename to ...
27665 (cpp_implicit_aliases_done): ... this one.
27666 (cgraph_create_function_alias): Update.
27667 (cgraph_same_body_alias): Update.
27668 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27669 (verify_edge_corresponds_to_fndecl): Simplify.
27670 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27671 (cgraph_node): Remove same_body_alias.
27672 (varpool_node): Remove alias_of and extra_name_alias.
27673 (same_body_aliases_done): Rename to ..
27674 (cpp_implicit_aliases_done): ... this one.
27675 (symtab_alias_ultimate_target): Add default parameter.
27676 (symtab_resolve_alias): New function.
27677 (fixup_same_cpp_alias_visibility): Declare.
27678 (cgraph_function_node): Add default parameter.
27679 (cgraph_node_asm_name): Likewise.
27680 (cgraph_function_or_thunk_node): Add default parameter; do
27681 not ICE when it is NULL.
27682 (varpool_variable_node): Likewise.
27683 * tree-emutls.c (create_emultls_var): Update.
27684 (ipa_lower_emutls): Update.
27685 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27686 (cgraph_reset_node): Reset alias info.
27687 (cgraph_finalize_function): Update.
27688 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27689 (analyze_function): Simplify.
27690 (cgraph_process_same_body_aliases): Simplify.
27691 (analyze_functions): Fixup same body aliases.
27692 (handle_alias_pairs): Simplify.
27693 (assemble_thunk): Update.
27694 (assemble_thunks_and_aliases): Update.
27695 (output_weakrefs): Rewrite.
27696 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27697 (lto_output_varpool_node): Likewise.
27698 (compute_ltrans_boundary): Remve assert.
27699 (get_alias_symbol): New functoin.
27700 (input_node): Rewrite alias handling.
27701 (input_varpool_node): Likewise.
27702 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27703 * ipa.c (process_references): Handle weakrefs correctly.
27704 (symtab_remove_unreachable_nodes): Likewise.
27705 * trans-mem.c (get_cg_data): Update.
27706 (ipa_tm_create_version_alias): Update.
27707 (ipa_tm_execute): Update.
27708 * symtab.c (dump_symtab_base): Dump aliases.
27709 (verify_symtab_base): Verify aliases.
27710 (symtab_node_availability): New function.
27711 (symtab_alias_ultimate_target): Simplify.
27712 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27713 handle all the fixup cases.
27714 (symtab_resolve_alias): New function.
27715 * passes.c (ipa_write_summaries): Handle weakrefs.
27716 * varpool.c (varpool_analyze_node): Simplify.
27717 (assemble_aliases): Update.
27718 (varpool_create_variable_alias): Simplify.
27719 (varpool_extra_name_alias): Simplify.
27720 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27721 (lto_symtab_merge_symbols): ... this one.
27723 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27726 PR rtl-optimization/57268
27727 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27728 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27730 2013-06-01 Tobias Burnus <burnus@net-b.de>
27732 Partially reverted:
27733 2013-05-31 Tobias Burnus <burnus@net-b.de>
27735 PR middle-end/57073
27736 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27739 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27741 PR rtl-optimization/57268
27742 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27743 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27745 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27747 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27748 unordered comparison operators when -fno-trapping-math is in effect
27750 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27751 and implement unordered comparison operators properly on the e500.
27753 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27755 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27756 for constant scalar integers.
27757 (simplify_relational_operation_1): Likewise.
27759 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27761 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27762 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27765 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27766 Igor Zamyatin <igor.zamyatin@intel.com>
27768 Silvermont (SLM) architecture performance tuning.
27769 * config/i386/i386.h (enum ix86_tune_indices): Add
27770 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27771 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27773 * config/i386/i386.c (initial_ix86_tune_features)
27774 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27775 (ix86_lea_outperforms): Handle Silvermont tuning.
27776 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27778 (ix86_use_lea_for_mov): Likewise.
27779 (ix86_avoid_lea_for_addr): Likewise.
27780 (ix86_lea_for_add_ok): Likewise.
27781 (exact_dependency_1): New function.
27782 (exact_store_load_dependency): Likewise.
27783 (ix86_adjust_cost): Handle Silvermont tuning.
27784 (do_reoder_for_imul): Likewise.
27785 (swap_top_of_ready_list): New function.
27786 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27788 * config/i386/i386.md (peepholes that split memory operand in fp
27791 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27793 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27794 Remove un-necessary braces.
27796 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27798 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27799 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27801 2013-05-31 Tobias Burnus <burnus@net-b.de>
27803 PR middle-end/57073
27804 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27806 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27809 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27810 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27811 * config/arm/neon.md (iordi3_neon): Remove.
27812 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27813 * config/arm/predicates.md (imm_for_neon_logic_operand):
27814 Move to earlier in the file.
27815 (neon_logic_op2): Likewise.
27816 (arm_iordi_operand_neon): New predicate.
27818 2013-05-31 Richard Biener <rguenther@suse.de>
27820 PR tree-optimization/57478
27821 PR tree-optimization/57453
27822 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27825 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27827 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27828 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27830 2013-05-30 Tobias Burnus <burnus@net-b.de>
27831 Thomas Koenig <tkoenig@gcc.gnu.org>
27833 PR middle-end/57073
27834 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27835 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27837 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27839 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27841 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27843 * target.def (register_usage_leveling_p): New hook.
27844 * targhooks.c (default_register_usage_leveling_p): New.
27845 * targhooks.h (default_register_usage_leveling_p): New prototype.
27846 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27847 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27848 * doc/tm.texi: Update.
27849 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27851 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27853 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27854 (*insv_reg<mode>): New define_insn.
27856 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27858 PR rtl-optimization/57439
27859 * postreload.c (move2add_valid_value_p): Check that we have
27860 a zero subreg_regno_offset when accessing the register in
27861 the requested mode.
27863 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27864 Igor Zamyatin <igor.zamyatin@intel.com>
27866 Silvermont (SLM) architecture pipeline model, tuning and
27868 * config.gcc: Add slm config options and target.
27870 * config/i386/slm.md: New.
27872 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27874 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27876 (ix86_target_macros_internal): Likewise.
27878 * config/i386/i386.c (slm_cost): New cost.
27879 (m_SLM): New macro flag.
27880 (initial_ix86_tune_features): Set m_SLM.
27881 (x86_accumulate_outgoing_args): Likewise.
27882 (x86_arch_always_fancy_math_387): Likewise.
27883 (processor_target_table): Add slm cost.
27884 (cpu_names): Add slm cpu name.
27885 (x86_option_override_internal): Set SLM ISA.
27886 (ix86_issue_rate): New case PROCESSOR_SLM.
27887 (ia32_multipass_dfa_lookahead): Likewise.
27888 (fold_builtin_cpu): Add slm.
27890 * config/i386/i386.h (TARGET_SLM): New target macro.
27891 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27892 (processor_type): Add PROCESSOR_SLM.
27894 * config/i386/i386.md (cpu): Add new value "slm".
27895 (slm.md): Include slm.md.
27897 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27898 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27900 * config/arm/arm-protos.h: Add and update function protos.
27901 * config/arm/arm.c (use_simple_return_p): New added.
27902 (thumb2_expand_return): Check simple_return flag.
27903 * config/arm/arm.md: Add simple_return and conditional simple_return.
27904 * config/arm/iterators.md: Add iterator for return and simple_return.
27906 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27908 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27909 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27910 (arm_emit_vfp_multi_reg_pop): Likewise.
27911 (thumb2_emit_ldrd_pop): Likewise.
27912 (arm_expand_epilogue): Add misc REG_CFA notes.
27913 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27915 2013-05-29 Lawrence Crowl <crowl@google.com>
27917 * config/arm/t-arm: Update for below.
27919 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27920 Change type to hash_table. Update dependent calls and types.
27922 * config/i386/t-cygming: Update for below.
27924 * config/i386/t-interix: Update for below.
27926 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27927 Change type to hash_table. Update dependent calls and types.
27928 (i386_find_on_wrapper_list::wrappers): Likewise.
27930 * config/ia64/t-ia64: Update for below.
27932 * config/ia64/ia64.c (bundle_state_table):
27933 Change type to hash_table. Update dependent calls and types.
27935 * config/mips/mips.c (mips_reorg_process_insns::htab):
27936 Change type to hash_table. Update dependent calls and types.
27938 * config/sol2.c (solaris_comdat_htab):
27939 Change type to hash_table. Update dependent calls and types.
27941 * config/t-sol2: Update for above.
27943 2013-05-29 Teresa Johnson <tejohnson@google.com>
27945 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27946 functions are not yet marked as defined.
27948 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27949 Pat Haugen <pthaugen@us.ibm.com>
27950 Peter Bergner <bergner@vnet.ibm.com>
27952 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27956 (vrotl<mode>3): Likewise.
27957 (vashl<mode>3): Likewise.
27958 (vlshr<mode>3): Likewise.
27959 (vashr<mode>3): Likewise.
27961 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27962 support for power8 V2DI builtins.
27964 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27965 power8 V2DI builtins.
27966 (vupkhsw): Likewise.
27967 (vupklsw): Likewise.
27968 (vaddudm): Likewise.
27969 (vminsd): Likewise.
27970 (vmaxsd): Likewise.
27971 (vminud): Likewise.
27972 (vmaxud): Likewise.
27973 (vpkudum): Likewise.
27974 (vpksdss): Likewise.
27975 (vpkudus): Likewise.
27976 (vpksdus): Likewise.
27981 (vsubudm): Likewise.
27982 (vcmpequd): Likewise.
27983 (vcmpgtsd): Likewise.
27984 (vcmpgtud): Likewise.
27985 (vcmpequd_p): Likewise.
27986 (vcmpgtsd_p): Likewise.
27987 (vcmpgtud_p): Likewise.
27988 (vupkhsw): Likewise.
27989 (vupklsw): Likewise.
27990 (vaddudm): Likewise.
27991 (vmaxsd): Likewise.
27992 (vmaxud): Likewise.
27993 (vminsd): Likewise.
27994 (vminud): Likewise.
27995 (vpksdss): Likewise.
27996 (vpksdus): Likewise.
27997 (vpkudum): Likewise.
27998 (vpkudus): Likewise.
28003 (vsubudm): Likewise.
28005 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28006 support for power8 V2DI instructions.
28008 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28009 power8 V2DI instructions. Combine pack and unpack insns to use an
28010 iterator for each mode. Check whether a particular mode supports
28011 Altivec instructions instead of just checking TARGET_ALTIVEC.
28012 (UNSPEC_VPKUWUM): Likewise.
28013 (UNSPEC_VPKSHSS): Likewise.
28014 (UNSPEC_VPKSWSS): Likewise.
28015 (UNSPEC_VPKUHUS): Likewise.
28016 (UNSPEC_VPKSHUS): Likewise.
28017 (UNSPEC_VPKUWUS): Likewise.
28018 (UNSPEC_VPKSWUS): Likewise.
28019 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28020 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28021 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28022 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28023 (UNSPEC_VUPKHSB): Likewise.
28024 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28025 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28026 (UNSPEC_VUPKHSH): Likewise.
28027 (UNSPEC_VUPKLSB): Likewise.
28028 (UNSPEC_VUPKLSH): Likewise.
28030 (VI_char): Likewise.
28031 (VI_scalar): Likewise.
28032 (VI_unit): Likewise.
28034 (VP_small): Likewise.
28035 (VP_small_lc): Likewise.
28036 (VU_char): Likewise.
28037 (add<mode>3): Likewise.
28038 (altivec_vaddcuw): Likewise.
28039 (altivec_vaddu<VI_char>s): Likewise.
28040 (altivec_vadds<VI_char>s): Likewise.
28041 (sub<mode>3): Likewise.
28042 (altivec_vsubcuw): Likewise.
28043 (altivec_vsubu<VI_char>s): Likewise.
28044 (altivec_vsubs<VI_char>s): Likewise.
28045 (altivec_vavgs<VI_char>): Likewise.
28046 (altivec_vcmpbfp): Likewise.
28047 (altivec_eq<mode>): Likewise.
28048 (altivec_gt<mode>): Likewise.
28049 (altivec_gtu<mode>): Likewise.
28050 (umax<mode>3): Likewise.
28051 (smax<mode>3): Likewise.
28052 (umin<mode>3): Likewise.
28053 (smin<mode>3): Likewise.
28054 (altivec_vpkuhum): Likewise.
28055 (altivec_vpkuwum): Likewise.
28056 (altivec_vpkshss): Likewise.
28057 (altivec_vpkswss): Likewise.
28058 (altivec_vpkuhus): Likewise.
28059 (altivec_vpkshus): Likewise.
28060 (altivec_vpkuwus): Likewise.
28061 (altivec_vpkswus): Likewise.
28062 (altivec_vpks<VI_char>ss): Likewise.
28063 (altivec_vpks<VI_char>us): Likewise.
28064 (altivec_vpku<VI_char>us): Likewise.
28065 (altivec_vpku<VI_char>um): Likewise.
28066 (altivec_vrl<VI_char>): Likewise.
28067 (altivec_vsl<VI_char>): Likewise.
28068 (altivec_vsr<VI_char>): Likewise.
28069 (altivec_vsra<VI_char>): Likewise.
28070 (altivec_vsldoi_<mode>): Likewise.
28071 (altivec_vupkhsb): Likewise.
28072 (altivec_vupkhs<VU_char>): Likewise.
28073 (altivec_vupkls<VU_char>): Likewise.
28074 (altivec_vupkhsh): Likewise.
28075 (altivec_vupklsb): Likewise.
28076 (altivec_vupklsh): Likewise.
28077 (altivec_vcmpequ<VI_char>_p): Likewise.
28078 (altivec_vcmpgts<VI_char>_p): Likewise.
28079 (altivec_vcmpgtu<VI_char>_p): Likewise.
28080 (abs<mode>2): Likewise.
28081 (vec_unpacks_hi_v16qi): Likewise.
28082 (vec_unpacks_hi_v8hi): Likewise.
28083 (vec_unpacks_lo_v16qi): Likewise.
28084 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28085 (vec_unpacks_lo_v8hi): Likewise.
28086 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28087 (vec_pack_trunc_v8h): Likewise.
28088 (vec_pack_trunc_v4si): Likewise.
28089 (vec_pack_trunc_<mode>): Likewise.
28091 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28093 (vec_vmaxsd): Likewise.
28094 (vec_vmaxud): Likewise.
28095 (vec_vminsd): Likewise.
28096 (vec_vminud): Likewise.
28097 (vec_vpksdss): Likewise.
28098 (vec_vpksdus): Likewise.
28099 (vec_vpkudum): Likewise.
28100 (vec_vpkudus): Likewise.
28101 (vec_vrld): Likewise.
28102 (vec_vsld): Likewise.
28103 (vec_vsrad): Likewise.
28104 (vec_vsrd): Likewise.
28105 (vec_vsubudm): Likewise.
28106 (vec_vupkhsw): Likewise.
28107 (vec_vupklsw): Likewise.
28109 2013-05-29 Jan Hubicka <jh@suse.cz>
28111 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28112 flags; reorder rest of fields in more consistent way.
28113 (varpool_node): Remove analyzed, finalized and alias.
28114 (cgraph_ndoe): Likewise.
28115 (symtab_alias_ultimate_target): New function.
28116 (cgraph_function_node): Move offline.
28117 (cgraph_reset_node): Declare.
28118 (cgraph_comdat_can_be_unshared_p): Remove.
28119 (varpool_remove_initializer): Declare.
28120 (varpool_first_defined_variable, varpool_next_defined_variable
28121 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28122 (cgraph_function_with_gimple_body_p): Update.
28123 (varpool_all_refs_explicit_p): Update.
28124 (symtab_alias_target): New function.
28125 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28126 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28127 (cgraph_function_or_thunk_node): Simplify using
28128 symtab_alias_ultimate_target.
28129 (varpool_variable_node): Likewise.
28130 * cgraph.c (cgraph_create_function_alias): Update.
28131 (cgraph_add_thunk): Update.
28132 (cgraph_remove_node): Update.
28133 (dump_cgraph_node): Do not dump removed flags.
28134 (cgraph_function_body_availability): Update.
28135 (cgraph_propagate_frequency): Update.
28136 (verify_cgraph_node): Check sanity of local flag.
28137 (cgraph_function_node): Move here from cgraph.h; revamp for
28138 cgraph_function_or_thunk_node.
28139 * lto-symtab.c (lto_varpool_replace_node): Update.
28140 (lto_symtab_resolve_can_prevail_p): Update.
28141 (lto_symtab_merge_cgraph_nodes): Update.
28142 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28143 propagate_constants_accross_call, devirtualization_time_bonus,
28144 ipcp_propagate_stage): Update.
28145 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28146 * ipa-inline-transform.c (clone_inlined_nodes,
28147 preserve_function_body_p): Update.
28148 * ipa-reference.c (propagate): Update.
28149 (write_node_summary_p): Update.
28150 * toplev.c (wrapup_global_declaration_2): Update.
28151 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28152 (analyze_function) ... this one.
28153 (cgraph_process_new_functions): Update.
28154 (cgraph_reset_node): Export.
28155 (cgraph_finalize_function): Update.
28156 (cgraph_add_new_function): Update.
28157 (process_function_and_variable_attributes): Update.
28158 (varpool_finalize_decl): Update.
28159 (symbol_finalized): Remove.
28160 (symbol_finalized_and_needed): Rename to ...
28161 (symbol_defined_and_needed): ... update.
28162 (cgraph_analyze_functions): Update.
28163 (handle_alias_pairs): Update.
28164 (mark_functions_to_output): Update.
28165 (assemble_thunk): Update.
28166 (output_in_order): Update.
28167 (output_weakrefs): Update.
28168 (finalize_compilation_unit): Update.
28169 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28170 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28171 input_node, input_varpool_node): Update.
28172 * dbxout.c (dbxout_expand_expr): Update.
28173 * cgraphclones.c (cgraph_clone_node): Update.
28174 (cgraph_copy_node_for_versioning): Update.
28175 (cgraph_materialize_clone): Update.
28176 (cgraph_materialize_all_clones): Update.
28177 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28178 propagate_pure_const, propagate_nothrow): Update.
28179 * lto-streamer-out.c (lto_output, write_symbol): Update.
28180 * ipa-utils.c (ipa_reverse_postorder): Update.
28181 * ipa-inline.c (can_inline_edge_p): Update.
28182 (update_caller_keys, ipa_inline): Update.
28183 * dwarf2out.c (reference_to_unused,
28184 premark_types_used_by_global_vars_helper): Update.
28185 * tree-eh.c (tree_could_trap_p): Update.
28186 * ipa-split.c (consider_split, execute_split_functions): Update.
28187 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28188 has_addr_references_p): Update; move ahead in file for better
28190 (process_references): Simplify.
28191 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28192 bodies are removed.
28193 (cgraph_comdat_can_be_unshared_p): Make static.
28194 (cgraph_externally_visible_p): Update.
28195 (varpool_externally_visible_p): Update.
28196 (function_and_variable_visibility): Update.
28197 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28198 ipa_tm_mark_force_output_node): Update.
28199 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28200 estimate_edge_devirt_benefit, inline_generate_summary,
28201 inline_write_summary): Update.
28202 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28203 * ipa-prop.c (ipa_compute_jump_functions): Update.
28204 (ipa_print_node_params, ipa_prop_read_section,
28205 ipa_update_after_lto_read, read_replacements_section): Update.
28206 * varasm.c (mark_decl_referenced): Update.
28207 (assemble_alias, dump_tm_clone_pairs): Update.
28208 * tree-inline.c (copy_bb): Update.
28209 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28211 * symtab.c (dump_symtab_base): Print new flags.
28212 (verify_symtab_base): Verify new flags.
28213 (symtab_alias_ultimate_target): New function.
28214 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28215 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28217 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28219 * i386.c (ix86_get_function_versions_dispatcher,
28220 ix86_generate_version_dispatcher_body): Update.
28221 (fold_builtin_cpu): Use varpool_add_new_variable.
28222 * varpool.c (varpool_remove_initializer): Break out from ...
28223 (varpool_remove_node): ... this one.
28224 (dump_varpool_node, varpool_node_for_asm,
28225 cgraph_variable_initializer_availability, varpool_analyze_node,
28226 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28227 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28230 2013-05-29 Jan Hubicka <jh@suse.cz>
28232 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28234 2013-05-29 Easwaran Raman <eraman@google.com>
28236 PR tree-optimization/57442
28237 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28238 when control exits the main loop.
28240 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28242 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28244 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28245 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28246 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28249 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28251 PR tree-optimization/57441
28252 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28253 Don't limit size of incr_vec to number of candidates.
28255 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28257 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28258 and mips16 directories.
28259 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28260 (MULTILIB_DIRNAMES): Ditto.
28261 (MULTILIB_EXCEPTIONS): Add new exceptions.
28262 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28263 (MULTILIB_DIRNAMES): Ditto.
28264 (MULTILIB_EXCEPTIONS): Add new exceptions.
28266 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28267 Marcus Shawcroft <marcus.shawcroft@arm.com>
28269 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28270 SYMBOL_TINY_ABSOLUTE.
28271 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28272 SYMBOL_TINY_ABSOLUTE.
28273 (aarch64_expand_mov_immediate): Likewise.
28274 (aarch64_classify_symbol): Likewise.
28275 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28276 Permit SYMBOL_TINY_ABSOLUTE.
28277 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28279 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28280 Marcus Shawcroft <marcus.shawcroft@arm.com>
28282 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28283 Refactor if/switch. Replace gcc_assert with if.
28285 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28287 * config/i386/i386.c (initial_ix86_tune_features): Enable
28288 FP Reassociation for AMD bdver1 and bdver2.
28290 2013-05-29 Martin Jambor <mjambor@suse.cz>
28292 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28293 and IMAGPART_EXPR do not occur within other handled_components.
28295 2013-05-29 Richard Biener <rguenther@suse.de>
28297 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28298 access on whether the use is in the BB we currently try to
28300 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28301 vectorize to vect_bb_slp_scalar_cost.
28303 2013-05-29 Richard Biener <rguenther@suse.de>
28305 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28306 computing scalar cost offsetted by stmts that are kept live
28308 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28309 for computation of scalar cost.
28311 2013-05-28 Steve Ellcey <sellcey@mips.com>
28313 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28315 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28317 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28318 array notation built-in reduction functions.
28319 * doc/passes.texi (Passes): Added documentation about changes done
28321 * doc/invoke.texi (C Dialect Options): Added documentation about
28322 the -fcilkplus flag.
28323 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28324 (BUILTINS_DEF): Depend on cilkplus.def.
28325 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28326 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28327 * cilkplus.def: New file.
28329 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28331 PR rtl-optimization/57439
28332 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28334 2013-05-28 Easwaran Raman <eraman@google.com>
28336 PR tree-optimization/57337
28337 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28338 (find_insert_point): Correctly identify the insertion point
28339 when two statements with the same UID is compared.
28341 2013-05-28 Richard Biener <rguenther@suse.de>
28343 PR tree-optimization/56787
28344 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28345 from the list of data references.
28346 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28348 (vect_analyze_loop_operations): Likewise.
28349 (vect_transform_loop): Remove clobbers.
28351 2013-05-28 Martin Jambor <mjambor@suse.cz>
28353 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28354 and REALPART_EXPRs have scalar type.
28356 2013-05-28 Richard Biener <rguenther@suse.de>
28358 PR tree-optimization/57411
28359 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28361 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28362 virtual operand propagation.
28364 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28366 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28367 destination register for bmasksi_vis.
28368 (vector_init_bshuffle): Likewise.
28369 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28371 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28373 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28374 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28375 mode if the instruction isn't available in the original mode.
28376 * config/sparc/sparc.opt (mfix-ut699): New option.
28377 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28378 (divdf3): Turn into expander.
28379 (divdf3_nofix): New insn.
28380 (divdf3_fix): Likewise.
28381 (divsf3): Disable if -mfix-ut699.
28382 (sqrtdf2): Turn into expander.
28383 (sqrtdf2_nofix): New insn.
28384 (sqrtdf2_fix): Likewise.
28385 (sqrtsf2): Disable if -mfix-ut699.
28387 2013-05-27 Richard Biener <rguenther@suse.de>
28389 PR middle-end/57412
28390 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28391 block for the new loop.
28393 2013-05-27 Richard Biener <rguenther@suse.de>
28395 PR tree-optimization/57343
28396 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28397 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28398 (number_of_iterations_cond): Do not build the folded tree.
28400 2013-05-27 Richard Biener <rguenther@suse.de>
28403 PR middle-end/57381
28404 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28405 OEP_CONSTANT_ADDRESS_OF retained.
28407 PR tree-optimization/57417
28408 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28409 for unchanged base.
28410 (set_ssa_val_to): Compare addresses using
28411 get_addr_base_and_unit_offset.
28413 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28415 PR rtl-optimization/56833
28416 * postreload.c (move2add_record_mode): New function.
28417 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28418 (move2add_use_add2_insn): Use move2add_record_sym_value.
28419 (move2add_use_add3_insn): Likewise.
28420 (reload_cse_move2add): Use move2add_valid_value_p and
28421 move2add_record_mode. Invalidate call-clobbered and REG_INC
28422 affected regs by setting reg_mode to VOIDmode.
28423 (move2add_note_store): Don't pretend the inside of a SUBREG is
28424 the actual destination. Invalidate single/leading registers by
28425 setting reg_mode to VOIDmode.
28426 Use move2add_record_sym_value, move2add_valid_value_p and
28427 move2add_record_mode.
28429 2013-05-27 Richard Biener <rguenther@suse.de>
28431 PR tree-optimization/57396
28432 * tree-affine.c (double_int_constant_multiple_p): Properly
28433 return false for val == 0 and div != 0.
28435 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28437 * config/mips/mips.h: Use #elif in preprocessor conditions.
28439 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28442 * config/mips/constraints.md (kl): New constraint.
28443 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28444 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28445 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28446 from LO for MIPS16.
28447 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28449 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28452 * config/mips/mips.c (mips_can_inline_p): New function.
28453 (TARGET_CAN_INLINE_P): Define.
28455 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28457 * sched-int.h (ds_t, dw_t): Make unsigned int.
28458 Fix documentation that describes how all the ds_t bits are used.
28459 Reserve the last bit for delayed-branch scheduling.
28460 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28461 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28462 (gen_dep_weak_1): Remove prototype.
28463 * sched-deps.c (get_dep_weak_1): Make static.
28464 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28465 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28466 * doc/tm.texi: Regenerate.
28467 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28469 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28472 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28474 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28475 Sandra Loosemore <sandra@codesourcery.com>
28477 * config.gcc (powerpc-*): Allow native for with-cpu.
28479 2013-05-24 Jeff Law <law@redhat.com>
28481 PR tree-optimization/57124
28482 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28483 conversion feeding a condition if the range has an overflow
28484 if -fstrict-overflow. Add warnings for when we do make the
28487 2013-05-24 Dehao Chen <dehao@google.com>
28489 * tree-cfg.c (locus_discrim_map): Fix the typo.
28490 (locus_discrim_hasher): Likewise.
28491 (locus_discrim_hasher::hash): Likewise.
28492 (locus_discrim_hasher::equal): Likewise.
28494 2013-05-24 Martin Jambor <mjambor@suse.cz>
28496 PR tree-optimization/57294
28497 * cgraph.h (ipa_record_stmt_references): Declare.
28498 * cgraphbuild.c (ipa_record_stmt_references): New function.
28499 (build_cgraph_edges): Use ipa_record_stmt_references.
28500 (rebuild_cgraph_edges): Likewise.
28501 (cgraph_rebuild_references): Likewise.
28502 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28503 associated with the old statement and build references from the
28504 newly built statements.
28505 * ipa-ref.c (ipa_remove_stmt_references): New function.
28506 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28508 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28510 * lra-constraints.c (emit_spill_move): Use smaller mode for
28512 (check_and_process_move): Consider mem-reg moves for secondary
28514 (curr_insn_transform): Don't lose insns emitted before for
28515 secondary memory moves.
28516 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28517 reg set up in the current insn.
28519 2013-05-24 Dehao Chen <dehao@google.com>
28521 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28523 (locus_descrim_hasher::equal): Likewise.
28524 (build_gimple_cfg): New discriminator assignment algorithm.
28525 (make_edges): Likewise.
28526 (next_discriminator_for_locus): Likewise.
28527 (same_line_p): Likewise.
28528 (assign_discriminators): Likewise.
28529 (make_cond_expr_edges): Likewise.
28530 (make_gimple_switch_edges): Likewise.
28531 (make_goto_expr_edges): Likewise.
28532 (make_gimple_asm_edges): Likewise.
28534 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28536 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28537 X format specifier to only display bottom 16 bits.
28538 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28539 immediate to match for operand 2, since it will be masked.
28541 2013-05-24 Richard Biener <rguenther@suse.de>
28543 PR tree-optimization/57287
28544 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28545 all SSA names that occur in abnormal PHIs.
28547 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28550 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28551 that index is not negative.
28553 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28555 PR rtl-optimization/55177
28556 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28557 (simplify_byte_swapping_operation): New.
28558 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28559 (simplify_relational_operation_1): Deal with BSWAP.
28561 2013-05-23 Richard Henderson <rth@redhat.com>
28564 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28565 (ix86_reorg): Call it.
28567 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28570 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28571 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28572 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28574 2013-05-23 Christian Bruel <christian.bruel@st.com>
28577 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28579 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28580 Marcus Shawcroft <marcus.shawcroft@arm.com>
28582 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28583 * config/aarch64/constraints.md (Usa): Remove.
28584 * doc/md.texi (AArch64 Usa): Remove.
28586 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28587 Marcus Shawcroft <marcus.shawcroft@arm.com>
28589 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28590 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28591 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28592 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28594 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28596 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28597 instruction (AdvSIMD).
28598 * config/aarch64/aarch64-builtins.c
28599 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28600 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28602 2013-05-23 Martin Jambor <mjambor@suse.cz>
28604 PR middle-end/57347
28605 * tree.h (contains_bitfld_component_ref_p): Declare.
28606 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28607 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28609 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28610 not access a bit-field. Assert all final offsets are byte-aligned.
28612 2013-05-23 Richard Biener <rguenther@suse.de>
28614 PR tree-optimization/57380
28615 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28616 least one invariant or re-used load.
28617 * passes.c (init_optimization_passes): Move pass_phiprop before
28620 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28622 * config/aarch64/aarch64-simd.md
28623 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28625 2013-05-23 Richard Biener <rguenther@suse.de>
28627 PR middle-end/57381
28628 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28629 OEP_CONSTANT_ADDRESS_OF retained.
28631 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28633 PR middle-end/57344
28634 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28635 don't lower unit. Handle unit not being always BITS_PER_WORD.
28637 2013-05-23 Richard Biener <rguenther@suse.de>
28639 PR rtl-optimization/57341
28640 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28641 instead of true_dependence.
28643 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28645 * bb-reorder.c (branch_threshold): Make const.
28646 (exec_threshold): Ditto.
28648 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28649 Pat Haugen <pthaugen@us.ibm.com>
28650 Peter Bergner <bergner@vnet.ibm.com>
28652 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28653 documentation for the power8 crypto builtins.
28655 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28657 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28658 macros for defining power8 builtin functions.
28659 (BU_P8V_AV_2): Likewise.
28660 (BU_P8V_AV_P): Likewise.
28661 (BU_P8V_VSX_1): Likewise.
28662 (BU_P8V_OVERLOAD_1): Likewise.
28663 (BU_P8V_OVERLOAD_2): Likewise.
28664 (BU_CRYPTO_1): Likewise.
28665 (BU_CRYPTO_2): Likewise.
28666 (BU_CRYPTO_3): Likewise.
28667 (BU_CRYPTO_OVERLOAD_1): Likewise.
28668 (BU_CRYPTO_OVERLOAD_2): Likewise.
28669 (XSCVSPDP): Fix typo, point to the correct instruction.
28670 (VCIPHER): Add power8 crypto builtins.
28671 (VCIPHERLAST): Likewise.
28672 (VNCIPHER): Likewise.
28673 (VNCIPHERLAST): Likewise.
28674 (VPMSUMB): Likewise.
28675 (VPMSUMH): Likewise.
28676 (VPMSUMW): Likewise.
28677 (VPERMXOR_V2DI): Likewise.
28678 (VPERMXOR_V4SI: Likewise.
28679 (VPERMXOR_V8HI: Likewise.
28680 (VPERMXOR_V16QI: Likewise.
28681 (VSHASIGMAW): Likewise.
28682 (VSHASIGMAD): Likewise.
28683 (VPMSUM): Likewise.
28684 (VPERMXOR): Likewise.
28685 (VSHASIGMA): Likewise.
28687 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28688 __CRYPTO__ if the crypto instructions are available.
28689 (altivec_overloaded_builtins): Add support for overloaded power8
28692 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28693 support for power8 crypto builtins.
28694 (builtin_function_type): Likewise.
28695 (altivec_init_builtins): Add support for builtins that take vector
28696 long long (V2DI) arguments.
28698 * config/rs6000/crypto.md: New file, define power8 crypto
28701 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28702 Pat Haugen <pthaugen@us.ibm.com>
28703 Peter Bergner <bergner@vnet.ibm.com>
28705 * doc/invoke.texi (Option Summary): Add power8 options.
28706 (RS/6000 and PowerPC Options): Likewise.
28708 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28709 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28710 wm, wn, wr documentation.
28712 * config/rs6000/constraints.md (wm): New constraint for VSX
28713 registers if direct move instructions are enabled.
28714 (wn): New constraint for no registers.
28715 (wq): New constraint for quad word even GPR registers.
28716 (wr): New constraint if 64-bit instructions are enabled.
28717 (wv): New constraint if power8 vector instructions are enabled.
28718 (wQ): New constraint for quad word memory locations.
28720 * config/rs6000/predicates.md (const_0_to_15_operand): New
28721 constraint for 0..15 for crypto instructions.
28722 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28723 as GPR and floating point registers.
28724 (int_reg_operand): New predicate to match only GPR registers.
28725 (base_reg_operand): New predicate to match base registers.
28726 (quad_int_reg_operand): New predicate to match even GPR registers
28727 for quad memory operations.
28728 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28729 operations in both GPR and VSX registers.
28730 (quad_memory_operand): New predicate for quad memory operations.
28731 (reg_or_indexed_operand): New predicate for direct move support.
28733 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28734 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28735 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28736 (POWERPC_MASKS): Add power8 options.
28737 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28740 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28741 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28743 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28744 (-mpower8-fusion): New power8 options.
28745 (-mpower8-fusion-sign): Likewise.
28746 (-mpower8-vector): Likewise.
28747 (-mcrypto): Likewise.
28748 (-mdirect-move): Likewise.
28749 (-mquad-memory): Likewise.
28751 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28752 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28754 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28755 (rs6000_debug_vector_unit): Add p8_vector.
28756 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28757 definitions. Also print fusion state.
28758 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28759 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28760 (rs6000_option_override_internal): Add support for power8.
28761 (rs6000_common_init_builtins): Add debugging for skipped builtins
28762 if -mdebug=builtin.
28763 (rs6000_adjust_cost): Add power8 support.
28764 (rs6000_issue_rate): Likewise.
28765 (insn_must_be_first_in_group): Likewise.
28766 (insn_must_be_last_in_group): Likewise.
28767 (force_new_group): Likewise.
28768 (rs6000_register_move_cost): Likewise.
28769 (rs6000_opt_masks): Likewise.
28771 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28772 power8 capable assembler, default to power7 options.
28773 (TARGET_DIRECT_MOVE): Likewise.
28774 (TARGET_CRYPTO): Likewise.
28775 (TARGET_P8_VECTOR): Likewise.
28776 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28777 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28778 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28779 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28780 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28781 (TARGET_XSCVDPSPN): Likewise.
28782 (TARGET_XSCVSPDPN): Likewsie.
28783 (TARGET_SYNC_HI_QI): Likewise.
28784 (TARGET_SYNC_TI): Likewise.
28785 (MASK_CRYPTO): Likewise.
28786 (MASK_DIRECT_MOVE): Likewise.
28787 (MASK_P8_FUSION): Likewise.
28788 (MASK_P8_VECTOR): Likewise.
28789 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28790 temporary used by some of the direct move instructions to get two FP
28791 temporary registers does not force creation of a stack frame.
28792 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28793 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28794 that any VSX registers are tieable, even if they are also an
28795 Altivec vector mode.
28796 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28797 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28798 (RS6000_BTM_CRYPTO): Likewise.
28799 (RS6000_BTM_COMMON): Likewise.
28801 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28802 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28803 (enum rs6000_vector): Add power8 vector support.
28805 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28809 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28810 (any_sibcall_could_use_r3): this and handle indirect calls.
28811 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28813 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28815 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28817 2013-05-22 Richard Biener <rguenther@suse.de>
28819 PR middle-end/57349
28820 * profile.c (branch_prob): Do not split blocks that are
28821 abnormally receiving from ECF_RETURNS_TWICE functions.
28823 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28825 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28826 address mode. Move pointer mode initialization to the same place.
28828 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28830 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28831 while it has any effect.
28833 2013-05-21 Easwaran Raman <eraman@google.com>
28835 PR tree-optimization/57322
28836 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28837 UID of the statement added to the BB to be 1.
28839 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28841 PR tree-optimization/57331
28842 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28843 of conversion from pointer type to integral type with integer.
28845 2013-05-21 Martin Jambor <mjambor@suse.cz>
28848 * ipa-prop.c (ipa_read_node_info): Process param_used and
28849 controlled_uses in the same order as when writing.
28851 2013-05-21 Magnus Granberg <baldrick@free.fr>
28854 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28856 2013-05-21 Richard Biener <rguenther@suse.de>
28858 PR tree-optimization/57318
28859 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28860 estimate stmts with side-effects as likely eliminated.
28862 2013-05-21 Richard Biener <rguenther@suse.de>
28864 PR tree-optimization/57330
28865 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28866 preserve the call stmts fntype.
28868 2013-05-21 Richard Biener <rguenther@suse.de>
28870 PR tree-optimization/57303
28871 * tree-ssa-sink.c (statement_sink_location): Improve killing
28872 stmt detection and properly handle self-assignments.
28874 2013-05-21 Christian Bruel <christian.bruel@st.com>
28876 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28877 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28878 registers. Set register size out of the PARALLEL loop.
28880 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28883 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28884 (*fmasf4, *fmasf4_media): New insns.
28886 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28888 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28889 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28890 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28891 (mips_idiv_insns): Update the comments to say that the returned
28892 instruction counts are in units of BASE_INSN_LENGTH.
28893 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28894 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28895 using 2 rather than 4 as the length of indirect MIPS16 and
28896 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28897 length of a NOP. Don't divide MIPS16 lengths by 2.
28898 (mips16_split_long_branches): Assume a branch is long if the
28899 length is greater than 4 rather than 8.
28900 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28901 rather than multiplying them by 2. Multiply instruction counts
28902 by BASE_INSN_LENGTH rather than 4.
28903 (*jump_mips16, tls_get_tp_mips16_<mode>)
28904 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28906 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28908 * config/mips/mips.md (extended_mips16): Remove branch case.
28909 (length): Remove duplicated extended_mips16 test.
28911 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28913 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28915 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28917 * recog.h (Recog_data): Rename to...
28918 (recog_data_d): ...this.
28919 (recog_data): Update accordingly.
28920 * recog.c (recog_data): Likewise.
28921 * reload.c (save_recog_data): Likewise.
28922 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28923 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28925 2013-05-17 Julian Brown <julian@codesourcery.com>
28927 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28928 found in a REG_EQUAL note, invalidate it.
28930 2013-05-17 Easwaran Raman <eraman@google.com>
28932 * tree-ssa-reassoc.c (find_insert_point): New function.
28933 (insert_stmt_after): Likewise.
28934 (get_def_stmt): Likewise.
28935 (ensure_ops_are_available): Likewise.
28936 (not_dominated_by): Likewise.
28937 (rewrite_expr_tree): Do not move statements beyond what is
28938 necessary. Remove call to swap_ops_for_binary_stmt...
28939 (reassociate_bb): ... and move it here.
28940 (build_and_add_sum): Assign UIDs for new statements.
28941 (linearize_expr): Likewise.
28942 (do_reassoc): Renumber gimple statement UIDs.
28944 2013-05-17 Jan Hubicka <jh@suse.cz>
28946 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28948 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28949 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28951 (output_weakrefs): Update.
28953 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28954 Martin Jambor <mjambor@suse.cz>
28956 PR middle-end/57276
28957 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28958 value that corresponds to the given aggval is found in values vector.
28960 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28962 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28963 sse, sse2, sse3, ssse3 and sse4a flags to options.
28965 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28967 * gengtype-state.c: (s_expr_writer): New class, to handle
28968 prettifying of output layout of s-expressions.
28969 (state_writer): New class, to write out gtype.state.
28970 (state_written_type_count): Move this variable into member data of
28972 (s_expr_writer::s_expr_writer): New code: constructor for new class
28973 (state_writer::state_writer(): ditto
28974 (s_expr_writer::write_new_line): New function
28975 (s_expr_writer::write_any_indent): ditto
28976 (s_expr_writer::begin_s_expr): ditto
28977 (s_expr_writer::end_s_expr): ditto
28978 (write_state_fileloc): convert to method of state_writer...
28979 (state_writer:: write_state_fileloc): ...and use methods of
28980 s_expr_writer to write indentation into the gtype.state output file
28981 to visually represent the hierarchical structure of the list
28983 (write_state_fields): ditto, renaming to...
28984 (state_writer::write_state_fields)
28985 (write_state_a_string): ditto, renaming to...
28986 (state_writer::write_state_a_string)
28987 (write_state_string_option): ditto, renaming to...
28988 (state_writer::write_state_string_option)
28989 (write_state_type_option): ditto, renaming to...
28990 (state_writer::write_state_type_option)
28991 (write_state_nested_option): ditto, renaming to...
28992 (state_writer::write_state_nested_option)
28993 (write_state_option): ditto, renaming to...
28994 (state_writer::write_state_option)
28995 (write_state_options): ditto, renaming to...
28996 (state_writer::write_state_options)
28997 (write_state_lang_bitmap): ditto, renaming to...
28998 (state_writer::write_state_lang_bitmap)
28999 (write_state_version): ditto, renaming to...
29000 (state_writer::write_state_version)
29001 (write_state_scalar_type): ditto, renaming to...
29002 (state_writer::write_state_scalar_type)
29003 (write_state_string_type): ditto, renaming to...
29004 (state_writer::write_state_string_type)
29005 (write_state_undefined_type): ditto, renaming to...
29006 (state_writer::write_state_undefined_type)
29007 (write_state_struct_union_type): ditto, renaming to...
29008 (state_writer::write_state_struct_union_type)
29009 (write_state_struct_type): ditto, renaming to...
29010 (state_writer::write_state_struct_type)
29011 (write_state_user_struct_type): ditto, renaming to...
29012 (state_writer::write_state_user_struct_type)
29013 (write_state_lang_struct_type): ditto, renaming to...
29014 (state_writer::write_state_lang_struct_type)
29015 (write_state_param_struct_type): ditto, renaming to...
29016 (state_writer::write_state_param_struct_type)
29017 (write_state_pointer_type): ditto, renaming to...
29018 (state_writer::write_state_pointer_type)
29019 (write_state_array_type): ditto, renaming to...
29020 (state_writer::write_state_array_type)
29021 (write_state_gc_used): ditto, renaming to...
29022 (state_writer::write_state_gc_used)
29023 (write_state_common_type_content): ditto, renaming to...
29024 (state_writer::write_state_common_type_content)
29025 (write_state_type): ditto, renaming to...
29026 (state_writer::write_state_type)
29027 (write_state_pair_list): ditto, renaming to...
29028 (state_writer::write_state_pair_list)
29029 (write_state_pair): ditto, renaming to...
29030 (state_writer::write_state_pair)
29031 (write_state_typedefs): ditto, renaming to...
29032 (state_writer::write_state_typedefs)
29033 (write_state_structures): ditto, renaming to...
29034 (state_writer::write_state_structures)
29035 (write_state_param_structs): ditto, renaming to...
29036 (state_writer::write_state_param_structs)
29037 (write_state_variables): ditto, renaming to...
29038 (state_writer::write_state_variables)
29039 (write_state_srcdir): ditto, renaming to...
29040 (state_writer::write_state_srcdir)
29041 (write_state_files_list): ditto, renaming to...
29042 (state_writer::write_state_files_list)
29043 (write_state_languages): ditto, renaming to...
29044 (state_writer::write_state_languages)
29045 (write_state): create a state_writer instance and use it when
29046 writing out the state file
29048 2013-05-17 Mike Stump <mikestump@comcast.net>
29050 PR rtl-optimization/57304
29051 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29052 accessing DF_REF_REAL_LOC.
29054 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29056 PR rtl-optimization/57281
29057 PR rtl-optimization/57300
29058 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29059 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29060 what the other splitter did if the registers are dead.
29062 2013-05-17 Richard Biener <rguenther@suse.de>
29064 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29067 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29069 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29072 2013-05-17 Marek Polacek <polacek@redhat.com>
29074 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29075 length when doing non-zero store of storing '\0' to '\0'.
29077 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29079 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29080 vect_external_def oprnd1 with loop_vinfo, try to emit
29081 optional cast, negation and and stmts on the loop preheader
29082 edge instead of into the pattern def seq.
29084 PR tree-optimization/57051
29085 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29086 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29088 2013-05-16 Nick Clifton <nickc@redhat.com>
29090 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29091 (rl78_is_naked_func): New function.
29092 (rl78_expand_prologue): Skip prologue generation for naked functions.
29093 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29094 * doc/extend.texi (naked): Add RL78 to the list of processors
29095 that supports this attribute.
29097 2013-05-16 Jeff Law <law@redhat.com>
29099 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29101 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29103 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29104 cache parameters using detect_caches_amd also for CYRIX,
29105 NSC and TM2 signatures.
29107 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29108 Dzianis Kahanovich <mahatma@eu.by>
29112 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29113 VIA/Centaur processors and determine their cache parameters
29114 using detect_caches_amd.
29116 2013-05-16 Teresa Johnson <tejohnson@google.com>
29118 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29119 (rtl_verify_edges): New function.
29120 (rtl_verify_bb_insns): Ditto.
29121 (rtl_verify_bb_pointers): Ditto.
29122 (rtl_verify_bb_insn_chain): Ditto.
29123 (rtl_verify_fallthru): Ditto.
29124 (rtl_verify_bb_layout): Ditto.
29125 (rtl_verify_flow_info_1): Outline checks into new functions.
29126 (rtl_verify_flow_info): Ditto.
29128 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29130 * cfghooks.c (copy_bbs): Add update_dominance argument.
29131 * cfghooks.h (copy_bbs): Update prototype.
29132 * tree-cfg.c (gimple_duplicate_sese_region):
29133 Add update_dominance argument.
29134 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29135 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29136 gimple_duplicate_sese_region call.
29137 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29138 Update copy_bbs call.
29139 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29140 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29142 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29144 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29145 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29146 vect_recog_rotate_pattern.
29147 (vect_recog_rotate_pattern): New function.
29149 2013-05-16 Jason Merrill <jason@redhat.com>
29151 * Makefile.in (LLINKER): New variable.
29152 (mostlyclean): Remove link mutex.
29153 * configure.ac: Handle --enable-link-mutex.
29154 * lock-and-run.sh: New script.
29156 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29159 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29162 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29164 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29166 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29168 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29169 * config/arm/arm.c (next_consecutive_mem): New function.
29170 (gen_movmem_ldrd_strd): Likewise.
29171 * config/arm/arm.md (movmemqi): Update condition and code.
29172 (unaligned_loaddi, unaligned_storedi): New patterns.
29174 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29176 * config.gcc: Obsolete *-*-solaris2.9*.
29177 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29179 2013-05-16 Richard Biener <rguenther@suse.de>
29181 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29182 earlier, after GRAPHITE transforms and IV canonicalization.
29184 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29186 * omp-low.c (extract_omp_for_data): For collapsed loops,
29187 if at least one of the loops is known at compile time to
29188 iterate zero times, set count to 0.
29189 (expand_omp_regimplify_p): New function.
29190 (expand_omp_for_generic): For collapsed loops, if at least
29191 one of the loops isn't known to iterate at least once,
29192 add runtime check with setting count to 0.
29193 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29194 For unsigned types if it isn't known at compile time that
29195 the loop will iterate at least once, add runtime check to bypass
29196 the whole loop if initial condition isn't true.
29198 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29200 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29202 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29204 PR middle-end/57286
29205 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29206 transformations to avoid an infinite loop.
29208 2013-05-16 Marek Polacek <polacek@redhat.com>
29210 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29212 2013-05-15 Leif Ekblad <leif@rdos.net>
29214 * config/i386/i386.c (ix86_decompose_address): Use
29215 DEFAULT_TLS_SEG_REG to access TLS segment register.
29216 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29217 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29218 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29220 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29223 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29224 sibling calls to functions that would normally be lazily bound,
29225 unless $gp is call-clobbered.
29227 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29229 * config/i386/i386.c (ix86_option_override_internal): Update
29230 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29231 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29232 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29233 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29235 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29237 2013-05-15 Andreas Schwab <schwab@suse.de>
29239 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29240 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29243 2013-05-15 Teresa Johnson <tejohnson@google.com>
29245 * loop-unroll.c (report_unroll_peel): Check decision before
29246 emitting unroll/peel message.
29248 2013-05-15 Teresa Johnson <tejohnson@google.com>
29250 * function.h (has_bb_partition): New rtl_data flag.
29251 (bb_reorder_complete): Ditto.
29252 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29253 instead of flag_reorder_blocks_and_partition.
29254 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29255 with some enhancements.
29256 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29257 * bb-reorder.c (connect_traces): Check for has_bb_partition
29258 instead of flag_reorder_blocks_and_partition.
29259 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29260 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29261 verify_hot_cold_block_grouping.
29262 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29264 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29267 * config/arm/predicates.md (call_insn_operand): New predicate.
29268 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29269 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29270 if insn is not a tail call.
29271 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29273 * config/arm/arm.h (enum reg_class): New caller save register class.
29274 (REG_CLASS_NAMES): Likewise.
29275 (REG_CLASS_CONTENTS): Likewise.
29276 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29279 2013-05-15 Richard Biener <rguenther@suse.de>
29281 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29282 of MSG_OPTIMIZED_LOCATIONS.
29283 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29284 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29286 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29287 of MSG_OPTIMIZED_LOCATIONS.
29288 (execute_vect_slp): Likewise.
29289 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29290 (vect_create_cond_for_alias_checks): Likewise.
29291 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29292 (vect_recog_widen_mult_pattern): Likewise.
29293 (vect_recog_widen_sum_pattern): Likewise.
29294 (vect_recog_over_widening_pattern): Likewise.
29295 (vect_recog_widen_shift_pattern): Likewise.
29296 (vect_recog_vector_vector_shift_pattern): Likewise.
29297 (vect_recog_divmod_pattern): Likewise.
29298 (vect_recog_mixed_size_cond_pattern): Likewise.
29299 (vect_recog_bool_pattern): Likewise.
29300 (vect_pattern_recog_1): Likewise.
29302 2013-05-15 Martin Jambor <mjambor@suse.cz>
29304 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29305 non-functions to builtin_unreachable.
29306 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29307 correct when new direct edges were discovered.
29309 2013-05-15 Martin Jambor <mjambor@suse.cz>
29311 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29312 header, print symbol order instead of node uid, print more information
29313 about indirect edge targets.
29314 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29316 (ipa_make_edge_direct_to_target): Likewise.
29317 (remove_described_reference): Likewise.
29318 (propagate_controlled_uses): Likewise.
29319 (ipa_print_node_params): Also print symbol order.
29320 (ipcp_transform_function): Print symbol order instead of node uids.
29321 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29322 (cgraph_get_create_real_symbol_node): Likewise.
29323 * ipa-cp.c (print_lattice): Likewise.
29324 (print_all_lattices): Likewise.
29325 (determine_versionability): Likewise.
29326 (initialize_node_lattices): Likewise.
29327 (estimate_local_effects): Likewise.
29328 (update_profiling_info): Likewise.
29329 (create_specialized_node): Likewise.
29330 (perhaps_add_new_callers): Likewise.
29331 (decide_about_value): Likewise.
29332 (decide_whether_version_node): Likewise.
29333 (identify_dead_nodes): Likewise.
29334 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29335 (dump_inline_summary): Likewise.
29336 (estimate_node_size_and_time): Likewise.
29337 (inline_analyze_function): Likewise.
29338 * ipa-inline.c (report_inline_failed_reason): Likewise.
29339 (want_early_inline_function_p): Likewise.
29340 (edge_badness): Likewise.
29341 (update_edge_key): Likewise.
29342 (inline_small_functions): Likewise. Add dumping of order to two other
29344 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29345 instead of node uids.
29346 (propagate_pure_const): Likewise.
29347 (propagate_pure_const): Likewise.
29348 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29349 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29350 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29352 * tree-pretty-print.c (dump_function_header): Likewise.
29353 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29354 Print symbol order instead of node uids.
29356 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29358 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29359 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29361 2013-05-15 Richard Biener <rguenther@suse.de>
29363 PR tree-optimization/57275
29364 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29365 return value for fail to do runtime alias checks for gather loads.
29367 2013-05-15 Jan Hubicka <jh@suse.cz>
29371 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29372 weakrefs are not external.
29373 (lto_symtab_merge_decls): Fix thinko when dealing with
29374 non-lto_symtab decls.
29375 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29376 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29377 * varpool.c (dump_varpool_node): Dump more flags.
29379 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29381 * config/i386/i386.c (processor_alias_table): Add instruction
29382 FSGSBASE for AMD bdver3 architecture.
29384 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29386 * tree.c (warn_deprecated_use): Print file:line using locus color.
29387 * diagnostic.c (diagnostic_report_current_module): Print file:line
29388 and file:line:column using locus color.
29390 2013-05-14 Mike Stump <mikestump@comcast.net>
29392 * gdbinit.in: Add __null.
29394 2013-05-14 Mike Stump <mikestump@comcast.net>
29396 * recog.h: Rename struct recog_data to Recog_data.
29397 * recog.c: Likewise.
29398 * reload.c (can_reload_into): Likewise.
29399 * config/picochip/picochip.c: Likewise.
29401 2013-05-14 Mike Stump <mikestump@comcast.net>
29403 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29405 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29407 * resource.h (struct resources): Remove unch_memory member.
29408 (CLEAR_RESOURCE): Don't clear unch_memory.
29409 * resource.c (mark_referenced_resources): Don't set it.
29410 (mark_set_resources): Likewise.
29411 (mark_target_live_regs): Don't clear it.
29412 (init_resource_info): Likewise.
29413 * reorg.c (resource_conflicts_p): Don't compare it.
29414 (redundant_insn): Don't set it.
29416 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29418 * emit-rtl.c (next_label): Remove unused function.
29419 (skip_consecutive_labels, link_cc0_insns): Move to ...
29420 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29421 only place where these functions are used, and make them static.
29423 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29425 * fold-const.c (fold_negate_expr): Handle vectors.
29426 (fold_truth_not_expr): Make it static.
29427 (fold_invert_truthvalue): New static function.
29428 (invert_truthvalue_loc): Handle vectors. Do not call
29429 fold_truth_not_expr directly.
29430 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29431 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29432 (fold_comparison): Handle vector constants.
29433 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29434 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29435 * tree.h (fold_truth_not_expr): Remove declaration.
29437 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29439 * config/aarch64/aarch64-simd.md
29440 (aarch64_vcond_internal<mode>): Rename to...
29441 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29442 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29443 float modes. Clarify all iterator modes.
29444 (vcond<mode><mode>): Use new name for vcond expanders.
29445 (vcond<v_cmp_result><mode>): Likewise.
29446 (vcondu<mode><mode>: Likewise.
29447 * config/aarch64/iterators.md (VDQF_COND): New.
29449 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29452 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29453 variable for the shift amount. Check that we shift by non-negative
29456 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29459 * config/arm/arm.h (EPILOGUE_USES): Only return true
29460 for LR_REGNUM after epilogue_completed.
29462 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29464 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29465 is error_mark_node.
29467 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29470 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29471 and Solaris 11+/x86 with gld.
29472 * configure: Regenerate.
29474 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29476 * expmed.c (expand_shift_1): Canonicalize rotates by
29477 constant bitsize / 2 to bitsize - 1.
29478 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29479 case ROTATERT>: Likewise.
29482 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29484 * config/i386/i386.md (rotateinv): New code attr.
29485 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29486 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29487 roll $31, %eax, etc.
29489 2013-05-14 Richard Biener <rguenther@suse.de>
29491 PR middle-end/57235
29492 * tree-eh.c (sink_clobbers): Give up for successors with
29493 multiple predecessors and no virtual uses.
29495 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29497 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29498 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29500 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29502 PR middle-end/57251
29503 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29504 the case when both op0 and op1 have VOIDmode.
29506 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29508 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29509 in multiply-accumulate mode.
29511 2013-05-13 Guozhi Wei <carrot@google.com>
29513 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29515 2013-05-13 Kai Tietz <ktietz@redhat.com>
29518 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29519 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29520 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29521 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29522 (ix86_expand_prologue): Likewise.
29523 (ix86_expand_split_stack_prologue): Likewise.
29524 (legitimate_pic_address_disp_p): Likewise.
29525 (legitimize_pic_address): Likewise.
29526 (legitimize_tls_address): Likewise.
29527 (legitimize_pe_coff_symbol): Likewise.
29528 (output_pic_addr_const): Likewise.
29529 (construct_plt_address): Likewise.
29530 (ix86_expand_call): Likewise.
29531 (x86_output_mi_thunk): Likewise.
29532 (x86_function_profiler): Likewise.
29534 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29536 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29537 similar switch cases.
29538 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29539 (aarch64_simd_mov_to_<mode>low): Delete.
29540 (aarch64_simd_mov_to_<mode>high): Delete.
29541 (move_lo_quad_<mode>): Add w<-r alternative.
29542 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29543 (aarch64_simd_mov_from_*): Update type attribute.
29544 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29547 2013-05-13 Jan Hubicka <jh@suse.cz>
29549 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29550 * config/i386/i386.c (ix86_compute_frame_layout,
29551 ix86_expand_epilogue, emit_i387_cw_initialization,
29552 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29553 ix86_local_alignment): Fix use of size/speed predicates.
29555 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29557 PR tree-optimization/45216
29558 PR tree-optimization/57157
29559 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29560 the (-Y) & (B - 1) variant if OP is |.
29561 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29562 return shifted. Use (-op1) & (prec - 1) as other_amount
29563 instead of prec - op1.
29565 2013-05-13 Martin Jambor <mjambor@suse.cz>
29567 PR middle-end/42371
29568 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29569 (ipa_constant_data): New type.
29570 (ipa_jump_func): Use ipa_constant_data to hold information about
29571 constant jump functions.
29572 (ipa_get_jf_constant): Adjust to jump function type changes.
29573 (ipa_get_jf_constant_rdesc): New function.
29574 (ipa_param_descriptor): New field controlled_uses.
29575 (ipa_get_controlled_uses): New function.
29576 (ipa_set_controlled_uses): Likewise.
29577 * ipa-ref.h (ipa_find_reference): Declare.
29578 * ipa-prop.c (ipa_cst_ref_desc): New type.
29579 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29581 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29582 New parameter cs. Adjust all callers.
29583 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29584 (remove_described_reference): New function.
29585 (jfunc_rdesc_usable): Likewise.
29586 (try_make_edge_direct_simple_call): Decrement controlled use count,
29587 attempt to remove reference if it hits zero.
29588 (combine_controlled_uses_counters): New function.
29589 (propagate_controlled_uses): Likewise.
29590 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29591 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29592 (ipa_print_node_params): Print described use counter.
29593 (ipa_write_jump_function): Adjust to jump function type changes.
29594 (ipa_read_jump_function): New parameter CS, pass it to
29595 ipa_set_jf_constant. Adjust caller.
29596 (ipa_write_node_info): Stream controlled use count
29597 (ipa_read_node_info): Likewise.
29598 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29600 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29601 count. Remove cloning-added reference if it reaches zero.
29602 * ipa-ref.c (ipa_find_reference): New function.
29604 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29606 * config/i386/i386.c (processor_target_table): Modified default
29607 alignment values for AMD BD and BT architectures.
29609 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29611 * tree-vect-generic.c (uniform_vector_p): Move ...
29612 * tree.c (uniform_vector_p): ... here.
29613 * tree.h (uniform_vector_p): Declare it.
29614 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29617 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29619 PR tree-optimization/57230
29620 * tree-ssa-strlen.c (handle_char_store): Record length for
29621 array store from STRING_CST.
29623 PR tree-optimization/57230
29624 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29627 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29629 * config/epiphany/epiphany.c (epiphany_init): Check size of
29630 NUM_MODES_FOR_MODE_SWITCHING.
29631 (epiphany_expand_prologue):
29632 Remove CONFIG_REGNUM initial value handling code.
29633 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29634 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29635 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29636 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29637 Don't return 1 for FP_MODE_NONE.
29638 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29639 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29640 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29641 * config/epiphany/epiphany.md (save_config): New pattern.
29643 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29645 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29647 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29649 * config/i386/i386.md (memory): Handle sseishft1.
29650 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29651 (*vec_extractv2di_1): Ditto.
29653 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29655 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29658 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29660 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29661 Add mthumb/march=armv7-a multilib.
29662 Add mthumb/march=armv7-r multilib.
29663 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29665 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29667 * config/v850/t-rtems: Add more multilibs.
29669 2013-05-10 Richard Biener <rguenther@suse.de>
29671 PR tree-optimization/57214
29672 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29673 not propagate from SSA names that occur in abnormal PHI nodes.
29675 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29677 * stor-layout.c (element_precision): New function.
29678 * machmode.h (element_precision): Declare it.
29679 * tree.c (build_minus_one_cst): New function.
29680 (element_precision): Likewise.
29681 * tree.h (build_minus_one_cst): Declare new function.
29682 (element_precision): Likewise.
29683 * fold-const.c (operand_equal_p): Use element_precision.
29684 (fold_binary_loc): Handle vector types.
29685 * convert.c (convert_to_integer): Use element_precision.
29686 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29689 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29691 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29692 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29693 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29694 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29695 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29696 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29697 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29698 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29699 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29700 (Uuw8): New constraints.
29701 (Usb4): Move into alphabetical order.
29702 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29703 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29704 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29705 previously unnamed patterns.
29706 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29707 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29708 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29709 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29710 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29711 of specific lengths.
29713 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29715 * config/i386/i386.md (rotateinv): New code attr.
29716 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29717 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29718 roll $31, %eax, etc.
29720 PR tree-optimization/45216
29721 PR tree-optimization/57157
29722 * tree-ssa-forwprop.c (simplify_rotate): New function.
29723 (ssa_forward_propagate_and_combine): Call it.
29725 2013-05-10 Richard Biener <rguenther@suse.de>
29727 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29728 disable peeling when we version for aliasing.
29729 (vector_alignment_reachable_p): Honor explicit user alignment.
29730 (vect_supportable_dr_alignment): Likewise.
29731 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29732 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29733 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29734 then peeling to arrange for the cost-model check to come first.
29736 2013-05-10 Alan Modra <amodra@gmail.com>
29738 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29739 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29740 * configure: Regenerate.
29742 2013-05-10 Alan Modra <amodra@gmail.com>
29745 * varasm.c (default_elf_select_section): Move !DECL_P check..
29746 (get_named_section): ..to here before calling get_section_name.
29748 (default_section_type_flags): Add DECL_P check.
29749 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29750 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29752 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29754 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29755 When using gen_stack_adjust_str with a register offset, add a
29756 REG_FRAME_RELATED_EXPR note.
29758 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29760 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29761 (*vec_extractv4si_zext_mem): Ditto.
29762 (*vec_extractv2di): Add 0->x and x->x alternatives.
29763 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29764 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29766 2013-05-09 Jason Merrill <jason@redhat.com>
29768 N3639 C++1y VLA support
29769 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29772 * tree.c (build_constructor_va): New.
29773 * tree.h: Declare it.
29775 2013-05-09 Martin Jambor <mjambor@suse.cz>
29778 * gimple-fold.c (canonicalize_constructor_val): Call
29779 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29781 2013-05-09 Jan Hubicka <jh@suse.cz>
29782 Richard Biener <rguenther@suse.de>
29785 * symtab.c (symtab_make_decl_local): Do not add private names.
29787 2013-05-09 Jan Hubicka <jh@suse.cz>
29790 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29791 (unlink_from_assembler_name_hash): Likewise.
29792 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29793 symtab_unregister_node, symtab_initialize_asm_name_hash,
29794 change_decl_assembler_name): Update.
29796 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29798 * config/aarch64/aarch64.md: New movtf split.
29799 (*movtf_aarch64): Update.
29800 (aarch64_movdi_tilow): Handle TF modes and rename to
29801 aarch64_movdi_<mode>low.
29802 (aarch64_movdi_tihigh): Handle TF modes and rename to
29803 aarch64_movdi_<mode>high
29804 (aarch64_movtihigh_di): Handle TF modes and rename to
29805 aarch64_mov<mode>high_di
29806 (aarch64_movtilow_di): Handle TF modes and rename to
29807 aarch64_mov<mode>low_di
29808 (aarch64_movtilow_tilow): Remove spurious whitespace.
29809 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29811 (aarch64_print_operand): Update.
29813 2013-05-09 Alan Modra <amodra@gmail.com>
29815 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29817 * configure: Regenerate.
29819 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29821 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29822 splitter preparation statements.
29823 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29824 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29827 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29829 * gimple-ssa-strength-reduction.c (count_candidates): Change
29830 return value to int.
29831 (analyze_candidates_and_replace): Change type of length to int.
29833 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29835 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29836 (*vec_extract<mode>): Use VI12_128 mode iterator.
29837 (*vec_extract<mode>_mem): Ditto.
29838 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29841 2013-05-08 Diego Novillo <dnovillo@google.com>
29846 2012-08-17 Diego Novillo <dnovillo@google.com>
29849 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29850 * config.in: Regenerate.
29851 * configure: Regenerate.
29852 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29854 2013-05-08 Jan Hubicka <jh@suse.cz>
29857 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29858 * cgraph.h (symtab_node_base): Add unique_name.
29859 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29860 input_overwrite_node, input_varpool_node): Stream unique_name.
29861 * cgraphclones.c (cgraph_create_virtual_clone,
29862 cgraph_function_versioning): Set unique_name.
29863 * ipa.c (function_and_variable_visibility): Set unique_name.
29865 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29867 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29868 (alloc_cand_and_find_basis): Restrict conditional candidate
29869 processing to CAND_MULTs.
29871 2013-05-08 Jan Hubicka <jh@suse.cz>
29874 lto-symtab.c (lto_symtab_symbol_p): New function.
29875 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29876 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29877 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29878 Skip static symbols.
29880 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29882 PR tree-optimization/57200
29883 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29884 Only call inform if the preceding warning_at returns true.
29886 2013-05-07 Han Shen <shenhan@google.com>
29888 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29889 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29890 * common.opt (fstack-protector-strong): New option.
29891 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29892 * doc/invoke.texi (Optimization Options): Document
29893 "-fstack-protector-strong".
29894 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29896 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29898 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29900 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29902 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29903 it is not lhs of the insn.
29904 (setup_reg_equiv): Remove insn having equiv memory which it is not
29906 * lra-constraints.c (process_address): Try to improve generation
29907 code for address base + disp.
29908 (lra_constraints): Make correct the code for checking insn setting
29909 up backward equivalence. Remove insn only if it is in the init
29911 * lra-eliminations.c (update_reg_eliminate): Change return value.
29912 (lra_eliminate): Use the result.
29914 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29916 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29917 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29918 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29919 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29920 register target operands.
29921 (*vec_extractv8hi_sse2): New pattern.
29922 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29923 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29924 (*vec_extract<mode>_mem): New insn and split pattern.
29926 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29928 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29929 (TARGET_ASAN_SHADOW_OFFSET): Define.
29930 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29931 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29933 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29935 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29936 (incr_vec_index): Return -1 if increment not found.
29937 (create_add_on_incoming_edge): Assert if increment not found.
29938 (record_increment): Limit number of increments recorded.
29939 (all_phi_incrs_profitable): Return false if an increment not found.
29940 (replace_profitable_candidates): Don't process increments that were
29942 (analyze_candidates_and_replace): Limit size of incr_vec.
29944 2013-05-07 Richard Biener <rguenther@suse.de>
29946 * calls.c (special_function_p): setjmp-like functions are leaf.
29947 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29948 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29950 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29952 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29953 (aarch64_simd_mov<mode>): New expander.
29954 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29955 (aarch64_simd_mov_to_<mode>high): Likewise.
29956 (aarch64_simd_mov_from_<mode>low): Likewise.
29957 (aarch64_simd_mov_from_<mode>high): Likewise.
29958 (aarch64_dup_lane<mode>): Update.
29959 (aarch64_dup_lanedi): New instruction pattern.
29960 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29961 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29963 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29965 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29966 (replace_mult_candidate): Remove unnecessary argument; remove
29967 unnecessary parameter from call to introduce_cast_before_cand.
29968 (replace_unconditional_candidate): Remove unnecessary parameter
29969 from call to replace_mult_candidate.
29970 (replace_conditional_candidate): Likewise.
29971 (insert_initializers): Use make_temp_ssa_name.
29972 (introduce_cast_before_cand): Remove unnecessary argument; use
29973 make_temp_ssa_name.
29974 (replace_one_candidate): Remove unnecessary argument; remove
29975 unnecessary parameter from calls to introduce_cast_before_cand.
29976 (replace_profitable_candidates): Remove unnecessary parameters
29977 from calls to replace_one_candidate.
29979 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29981 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29982 phi def as possibly hiding a basis for a CAND_ADD whose operands
29983 have been commuted in the analysis.
29984 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29986 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29988 * config/aarch64/aarch64.md
29989 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29990 shift value between 0-4.
29992 2013-05-07 Richard Biener <rguenther@suse.de>
29994 * double-int.h (rshift): New overload.
29995 * double-int.c (rshift): New function.
29996 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29997 (create_reference_ops_from_ref): Remove.
29998 (vn_reference_insert): Use shared ops for constructing the
29999 reference and copy it.
30001 2013-05-07 Richard Biener <rguenther@suse.de>
30003 PR middle-end/57190
30004 * tree-eh.c (sink_clobbers): Properly propagate
30005 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30007 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30009 PR tree-optimization/57149
30010 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30011 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30012 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30013 uninit_undefined_value_p instead of ssa_undefined_value_p.
30016 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30017 for modifier == EXPAND_INITIALIZER.
30019 2013-05-07 Anton Blanchard <anton@samba.org>
30021 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30022 for powerpc64 little endian.
30023 * configure: Regenerate.
30025 2013-05-06 Graham Stott <grahams@btinternet.com>
30027 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30028 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30029 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30030 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30032 2013-05-06 Graham Stott <grahams@btinternet.com>
30034 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30035 codes which allow non-lvalues.
30037 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30039 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30040 components are all 1s.
30041 (integer_minus_onep): New function.
30042 * tree.h (integer_minus_onep): Declare it.
30043 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30044 integer_minus_onep instead of integer_all_onesp.
30046 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30049 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30050 variations of these patterns.
30052 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30054 * config/i386/i386.md (isa): Add x64_sse4 member.
30055 (enabled): Handle x64_sse4.
30056 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30057 instruction for 64bit SSE4_1 targets. Update insn attributes.
30058 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30059 instruction for SSE4_1 targets. Update insn attributes.
30060 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30061 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30062 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30064 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30065 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30066 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30068 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30071 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30073 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30075 * final.c (do_assembler_dialects): Don't handle curly braces and
30076 vertical bar escaped by % as dialect delimiters.
30077 (output_asm_insn): Print curly braces and vertical bar if escaped
30078 by % and ASSEMBLER_DIALECT defined.
30079 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30080 * doc/tm.texi: Regenerated.
30082 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30084 * config/mips/mips.c: Include tree-pass.h.
30085 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30086 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30087 (pass_mips_machine_reorg2): New machine specific pass.
30088 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30089 (mips_option_override): Register the new pass.
30090 * rtl.h (cleanup_barriers): Remove prototype.
30091 (dbr_schedule): Likewise.
30092 * jump.c (cleanup_barriers): Make static.
30093 * reorg.c (dbr_schedule): Likewise.
30095 2013-05-06 Richard Biener <rguenther@suse.de>
30097 PR tree-optimization/57185
30098 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30099 SSA names properly.
30101 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30104 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30105 between "first_arg" and "insn", not "last" and "insn".
30107 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30109 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30110 (find_candidates_in_block): Re-enable slsr_process_phi.
30111 (create_phi_basis): Fix double counting of candidate adjustment.
30113 2013-05-06 Richard Biener <rguenther@suse.de>
30115 PR middle-end/57147
30116 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30117 the edge is also fallthru, preserve it and just clear the
30119 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30120 also complex, preserve that and just clear the fallthru flag.
30121 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30122 update virtual operands.
30124 2013-05-06 Alan Modra <amodra@gmail.com>
30126 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30127 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30128 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30129 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30130 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30131 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30133 2013-05-06 Alan Modra <amodra@gmail.com>
30135 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30136 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30137 (DEFAULT_ASM_ENDIAN): Define.
30138 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30139 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30140 Update -K PIC clause from sysv4.h.
30141 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30142 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30144 2013-05-06 Alan Modra <amodra@gmail.com>
30146 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30147 twice for little-endian.
30148 (ashrdi3_no_power, ashrdi3): Support little-endian.
30150 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30153 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30154 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30156 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30157 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30158 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30161 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30162 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30164 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30165 * config/pa/pa.opt: Make mbig-switch a no-op.
30166 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30167 (CASE_VECTOR_MODE): Always return SImode.
30168 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30169 for the !TARGET_BIG_SWITCH case.
30170 * config/pa/pa-linux.h: Likewise.
30171 * config/pa/pa-openbsd.h: Likewise.
30172 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30173 * config/pa/pa.md (short_jump): Remove define_insn.
30174 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30175 (casesi0): Remove define_insn.
30176 (type): Remove btable_branch.
30177 (pa_combine_type): Likewise.
30178 (in_nullified_branch_delay): Likewise.
30179 (in_call_delay): Likewise.
30180 (define_delay): Likewise.
30181 (define_insn_reservation "Z3"): Likewise.
30182 (define_insn_reservation "Z4"): Likewise.
30183 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30184 (pa_adjust_insn_length): Remove adjustment for btable branches.
30185 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30188 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30190 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30191 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30192 Add m->r,x alternatives.
30193 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30194 splitters using SWI48x mode iterator.
30195 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30196 TARGET_64BIT. Add m->x alternative.
30197 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30198 Add o->x alternative. Enable for TARGET_SSE.
30199 (sse_storeq): Remove expander.
30200 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30201 with memory input operand.
30202 (*vec_extractv2di_1 splitter): New.
30203 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30204 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30206 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30208 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30209 (INT_LOWPART): Delete.
30210 (extract_MB): Adjust.
30211 (extract_ME): Adjust.
30212 (print_operand): Adjust.
30214 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30216 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30217 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30218 (reg_or_logical_cint_operand, easy_fp_constant,
30219 logical_const_operand): Delete "CONST_DOUBLE" case.
30220 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30221 "HOST_BITS_PER_WIDE_INT == 64" test.
30222 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30223 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30224 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30225 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30227 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30228 CONST_DOUBLE DImode/VOIDmode case.
30229 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30230 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30231 CONST_DOUBLE VOIDmode case.
30232 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30233 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30234 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30235 Delete CONST_DOUBLE case.
30236 (splitters for mov FMOVE64 const_double): Delete
30237 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30238 "HOST_BITS_PER_WIDE_INT >= 64" test.
30239 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30241 (mov DI const_double): Delete.
30243 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30245 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30246 on op shows all bits zero in mode of a lowpart subreg, return zero.
30248 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30251 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30252 to save TFmode registers and DImode to save TImode registers for
30253 caller save operations.
30254 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30255 mark being partially clobbered since they only use the first
30258 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30259 and TDmode only use the upper 64-bits of each VSX register.
30261 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30263 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30264 (find_candidates_in_block): Disable slsr_process_phi.
30266 2013-05-03 Guozhi Wei <carrot@google.com>
30268 * coverage.c (coverage_obj_init): Move the construction of gcov
30270 (build_init_ctor): ... here.
30272 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30274 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30275 (slsr_cand_d): Redefine def_phi.
30276 (stride_status, phi_adjust_status, count_phis_status): New enums.
30277 (find_phi_def): New.
30278 (find_basis_for_base_expr): New.
30279 (find_basis_for_candidate): Handle hidden bases.
30280 (alloc_cand_and_find_basis): Handle phi candidates.
30281 (slsr_process_phi): New.
30282 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30283 (create_mul_imm_cand): Likewise.
30284 (create_add_ssa_cand): Exclude phi base candidates.
30285 (create_add_imm_cand): Likewise.
30286 (slsr_process_cast): Likewise.
30287 (slsr_process_copy): Likewise.
30288 (find_candidates_in_block): Handle phi candidates.
30289 (dump_candidate): Likewise.
30290 (unconditional_cands): Delete.
30291 (unconditional_cands_with_known_stride_p): Delete.
30292 (phi_dependent_cand_p): New.
30293 (cand_increment): Handle phi-dependent candidates.
30294 (replace_dependent): Delete.
30295 (replace_mult_candidate): New.
30296 (replace_unconditional_candidate): New.
30297 (incr_vec_index): Move to avoid forward reference.
30298 (create_add_on_incoming_edge): New.
30299 (create_phi_basis): New.
30300 (replace_dependents): Delete.
30301 (replace_conditional_candidate): New.
30302 (phi_add_costs): New.
30303 (replace_uncond_cands_and_profitable_phis): New.
30304 (record_increment): Handle phi adjustments.
30305 (record_phi_increments): New.
30306 (record_increments): Handle phi adjustments.
30307 (phi_incr_cost): New.
30308 (lowest_cost_path): Handle phis.
30309 (total_savings): Likewise.
30310 (analyze_increments): Likewise.
30311 (ncd_with_phi): New.
30312 (ncd_of_cand_and_phis): New.
30313 (nearest_common_dominator_for_cands): Handle phi increments.
30314 (all_phi_incrs_profitable): New.
30315 (replace_profitable_candidates): Handle phi-dependent candidates.
30316 (analyze_candidates_and_replace): Likewise.
30318 2013-05-03 Teresa Johnson <tejohnson@google.com>
30321 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30322 do not exceed REG_BR_PROB_BASE.
30324 2013-05-03 Jeff Law <law@redhat.com>
30326 PR tree-optimization/57144
30327 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30328 operand of the condition will bit into the new type when eliminating
30329 a cast feeding a condition.
30331 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30333 PR rtl-optimization/57130
30334 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30335 of COMPARE as in_code to the recursive call if needed.
30337 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30339 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30340 (enabled): Handle new members.
30341 * config/i386/sse.md (*vec_concatv2si): Merge from
30342 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30343 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30345 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30347 PR tree-optimization/57027
30348 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30349 for fnms opportunity, check we got the prerequisite kind
30350 of tree / gimple before using accessor functions.
30352 2013-05-03 Richard Biener <rguenther@suse.de>
30354 * double-int.h (lshift): New overload without precision
30355 and arith argument.
30356 (operator *=, operator +=, operator -=): Move ...
30357 * double-int.c (operator *=, operator +=, operator -=): ... here
30358 and implement more efficiently.
30359 (mul_double_with_sign): Remove.
30360 (lshift_double): Adjust to take unsinged shift argument, push
30361 dispatching code to callers.
30362 (mul_double_wide_with_sign): Add early out for callers that
30363 are not interested in high parts or overflow.
30364 (lshift): New function.
30365 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30366 dispatch code here.
30367 (lrotate, rrotate): Use logical shifts.
30368 * expr.c (get_inner_reference): Use lshift.
30369 * fixed-value.c (do_fixed_divide): Likewise.
30370 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30371 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30372 (indirect_refs_may_alias_p): Likewise.
30373 (stmt_kills_ref_p_1): Likewise.
30375 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30377 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30379 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30381 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30382 scalar form of FABD instruction.
30384 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30386 * lra-constraints.c (process_alt_operands): Add checking alt
30387 number to choose the best alternative.
30389 2013-05-02 Richard Biener <rguenther@suse.de>
30391 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30392 bitmap and its handling.
30393 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30395 2013-05-02 Richard Biener <rguenther@suse.de>
30397 PR middle-end/57140
30398 * tree-inline.c (copy_loops): Properly handle removed loops.
30399 (copy_cfg_body): Mark destination loops for fixup if source
30400 loops needed fixup.
30402 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30405 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30406 generating simple_return for naked functions.
30408 2013-05-02 Martin Jambor <mjambor@suse.cz>
30410 PR middle-end/56988
30411 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30412 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30414 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30415 ipa_agg_replacement_value structures.
30416 (known_aggs_to_agg_replacement_list): Likewise.
30417 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30418 (read_agg_replacement_chain): Likewise.
30419 (ipcp_transform_function): Also check that by_ref flags match.
30421 2013-05-02 Richard Biener <rguenther@suse.de>
30423 * graphds.h (struct graph): Add obstack member.
30424 * graphds.c (new_graph): Initialize obstack and allocate
30426 (add_edge): Allocate edge from the obstack.
30427 (free_graph): Free the obstack instead of all edges and vertices.
30429 2013-05-02 Teresa Johnson <tejohnson@google.com>
30431 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30433 * cfg.c (update_bb_profile_for_threading): Ditto.
30434 * tree-inline.c (copy_bb): Ditto.
30435 (copy_edges_for_bb): Ditto.
30436 (initialize_cfun): Ditto.
30437 (copy_cfg_body): Ditto.
30438 (expand_call_inline): Ditto.
30439 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30440 (estimate_node_size_and_time): Ditto.
30441 (inline_merge_summary): Ditto.
30442 * cgraphclones.c (cgraph_clone_edge): Ditto.
30443 (cgraph_clone_node): Ditto.
30444 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30445 (compute_trg_info): Ditto.
30447 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30449 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30450 S reg when fp attribute set.
30451 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30453 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30455 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30457 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30458 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30459 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30461 2013-05-02 Richard Biener <rguenther@suse.de>
30463 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30464 (struct instantiate_cache_entry): New type.
30465 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30466 (struct instantiate_cache_type): New type.
30467 (set_instantiated_value, get_instantiated_value): Remove.
30468 (get_instantiated_value_entry): New function.
30469 (instantiate_scev_name): Use the new cache and adjust.
30470 (instantiate_scev_poly): Adjust.
30471 (instantiate_scev_binary): Likewise.
30472 (instantiate_array_ref): Likewise.
30473 (instantiate_scev_convert): Likewise.
30474 (instantiate_scev_not): Likewise.
30475 (instantiate_scev_3): Likewise.
30476 (instantiate_scev_2): Likewise.
30477 (instantiate_scev_r): Likewise.
30478 (instantiate_scev): Likewise.
30479 (resolve_mixers): Likewise.
30481 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30484 * lra-constraints.c (best_small_class_operands_num): Remove.
30485 (process_alt_operands): Remove small_class_operands_num. Take
30486 small classes operands into losers and only if the operand is not
30487 matched. Modify debugging output.
30488 (curr_insn_transform): Remove best_small_class_operands_num.
30491 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30493 * config/aarch64/aarch64-builtins.c
30494 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30495 * config/aarch64/aarch64-simd-builtins.def
30496 (reduc_splus_): Add new modes.
30497 (reduc_uplus_): New.
30498 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30499 (reduc_uplus_v4sf): Likewise.
30500 (reduc_splus_v4sf): Likewise.
30501 (aarch64_addv<mode>): Likewise.
30502 (reduc_uplus_<mode>): Likewise.
30503 (reduc_splus_<mode>): Likewise.
30504 (aarch64_addvv2di): Likewise.
30505 (reduc_uplus_v2di): Likewise.
30506 (reduc_splus_v2di): Likewise.
30507 (aarch64_addvv2si): Likewise.
30508 (reduc_uplus_v2si): Likewise.
30509 (reduc_splus_v2si): Likewise.
30510 (reduc_<sur>plus_<mode>): New.
30511 (reduc_<sur>plus_v2di): Likewise.
30512 (reduc_<sur>plus_v2si): Likewise.
30513 (reduc_<sur>plus_v4sf): Likewise.
30514 (aarch64_addpv4sf): Likewise.
30515 * config/aarch64/arm_neon.h
30516 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30517 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30518 add UNSPEC_SADDV, UNSPEC_UADDV.
30520 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30522 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30524 * config/aarch64/arm_neon.h
30525 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30527 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30529 * config/aarch64/aarch64-builtins
30530 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30532 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30534 * config/aarch64/aarch64-simd-builtins.def
30535 (reduc_smax_): New.
30536 (reduc_smin_): Likewise.
30537 (reduc_umax_): Likewise.
30538 (reduc_umin_): Likewise.
30539 (reduc_smax_nan_): Likewise.
30540 (reduc_smin_nan_): Likewise.
30543 (smax): Update for V2SF, V4SF and V2DF modes.
30546 (smin_nan): Likewise.
30547 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30548 (<su><maxmin><mode>3): ...This, refactor.
30549 (s<maxmin><mode>3): New.
30550 (<maxmin_uns><mode>3): Likewise.
30551 (reduc_<maxmin_uns>_<mode>): Refactor.
30552 (reduc_<maxmin_uns>_v4sf): Likewise.
30553 (reduc_<maxmin_uns>_v2si): Likewise.
30554 (aarch64_<fmaxmin><mode>: Remove.
30555 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30557 (vmin<q>_f<32,64>): Likewise.
30558 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30560 (su): Add mappings for smax, smin, umax, umin.
30562 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30563 (FMAXMIN): Rename as...
30564 (FMAXMIN_UNS): ...This.
30566 (fmaxminv): Likewise.
30567 (fmaxmin): Likewise.
30569 (maxmin_uns_op): Likewise.
30571 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30573 * config/aarch64/arm_neon.h
30574 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30575 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30576 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30578 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30580 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30581 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30583 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30585 * config/aarch64/aarch64-simd.md
30586 (vcond<mode>_internal): Handle special cases for constant masks.
30587 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30588 (vcondu<mode><mode>): Likewise.
30589 (vcond<v_cmp_result><mode>): New.
30591 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30593 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30594 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30595 * config/aarch64/aarch64-simd-builtins.def
30596 (cmeq): Update to BUILTIN_VALLDI.
30601 * config/aarch64/arm_neon.h
30602 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30603 to builtins or C as appropriate.
30605 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30607 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30609 (cmhi): Rename to...
30611 * config/aarch64/aarch64-simd.md
30612 (simd_mode): Add SF.
30613 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30614 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30615 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30616 (cstore<mode>_neg): ...This.
30617 * config/aarch64/iterators.md
30619 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30620 (COMPARISONS): New.
30621 (UCOMPARISONS): Likewise.
30622 (optab): Add missing comparisons.
30628 (VCMP_S): Likewise.
30629 (VCMP_U): Likewise.
30630 (V_cmp_result): Add DF, SF modes.
30631 (v_cmp_result): Likewise.
30633 (vmtype): Likewise.
30634 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30636 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30638 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30639 define_insn to define_insn_and_split.
30640 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30641 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30642 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30643 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30644 (thumb2_negscc): Likewise.
30646 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30648 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30650 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30652 * config/arm/thumb2.md: Remove trailing whitespaces.
30654 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30656 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30657 Use gen_int_mode rather than GEN_INT.
30659 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30661 * value-prof.c (stream_in_histogram_value): Remove the strayed
30664 2013-04-30 Richard Biener <rguenther@suse.de>
30666 PR middle-end/57122
30667 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30669 2013-04-30 Richard Biener <rguenther@suse.de>
30671 PR middle-end/57107
30672 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30674 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30676 PR rtl-optimization/56957
30677 PR rtl-optimization/57105
30678 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30679 variable. Use just INSN_UID for determining whether an insn
30680 should be only disconnected from the insn stream.
30681 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30683 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30685 PR tree-optimization/57104
30686 * tsan.c (instrument_expr): Don't instrument accesses to
30687 DECL_HARD_REGISTER VAR_DECLs.
30689 2013-04-30 Richard Biener <rguenther@suse.de>
30691 * function.h (loops_for_fn): New inline function.
30692 (set_loops_for_fn): Likewise.
30693 * cfgloop.h (place_new_loop): Add struct function parameter.
30694 (get_loop): Likewise.
30695 (get_loops): Likewise.
30696 (number_of_loops): Likewise.
30697 (fel_next): Adjust.
30698 (fel_init): Likewise.
30699 * cfg.c (get_loop_copy): Adjust.
30700 * cfgloop.c (flow_loops_dump): Likewise.
30701 (record_loop_exits): Likewise.
30702 (verify_loop_structure): Likewise.
30703 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30704 (estimate_reg_pressure_cost): Likewise.
30705 (mark_loop_exit_edges): Likewise.
30706 * cfgloopmanip.c (place_new_loop): Likewise.
30707 (add_loop): Likewise.
30708 (duplicate_loop): Likewise.
30709 * graph.c (draw_cfg_nodes): Likewise.
30710 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30711 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30712 (extract_affine_chrec): Likewise.
30713 (build_scop_iteration_domain): Likewise.
30714 * graphite.c (graphite_initialize): Likewise.
30715 * ira-build.c (create_loop_tree_nodes): Likewise.
30716 (more_one_region_p): Likewise.
30717 (rebuild_regno_allocno_maps): Likewise.
30718 (mark_loops_for_removal): Likewise.
30719 (mark_all_loops_for_removal): Likewise.
30720 (remove_unnecessary_regions): Likewise.
30721 (ira_build): Likewise.
30722 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30723 * loop-init.c (fix_loop_structure): Likewise.
30724 (gate_rtl_move_loop_invariants): Likewise.
30725 (gate_rtl_unswitch): Likewise.
30726 (gate_rtl_unroll_and_peel_loops): Likewise.
30727 (rtl_doloop): Likewise.
30728 * lto-streamer-in.c (input_cfg): Likewise.
30729 * lto-streamer-out.c (output_cfg): Likewise.
30730 * modulo-sched.c (sms_schedule): Likewise.
30731 * predict.c (tree_estimate_probability): Likewise.
30732 (tree_estimate_probability_driver): Likewise.
30733 (estimate_loops): Likewise.
30734 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30735 (move_sese_region_to_fn): Likewise.
30736 (debug_loop_num): Likewise.
30737 * tree-chrec.c (chrec_evaluate): Likewise.
30738 (hide_evolution_in_other_loops_than_loop): Likewise.
30739 (chrec_component_in_loop_num): Likewise.
30740 (reset_evolution_in_loop): Likewise.
30741 (evolution_function_is_invariant_rec_p): Likewise.
30742 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30743 * tree-inline.c (copy_loops): Likewise.
30744 (copy_cfg_body): Likewise.
30745 (tree_function_versioning): Likewise.
30746 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30747 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30749 (add_to_evolution_1): Likewise.
30750 (scev_const_prop): Likewise.
30751 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30752 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30753 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30754 (tree_ssa_lim_initialize): Likewise.
30755 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30756 (verify_loop_closed_ssa): Likewise.
30757 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30758 (tree_ssa_loop_im): Likewise.
30759 (tree_ssa_loop_unswitch): Likewise.
30760 (tree_vectorize): Likewise.
30761 (check_data_deps): Likewise.
30762 (tree_ssa_loop_ivcanon): Likewise.
30763 (tree_ssa_loop_bounds): Likewise.
30764 (tree_complete_unroll): Likewise.
30765 (tree_complete_unroll_inner): Likewise.
30766 (tree_parallelize_loops): Likewise.
30767 (tree_ssa_loop_prefetch): Likewise.
30768 (tree_ssa_loop_ivopts): Likewise.
30769 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30770 * tree-vectorizer.c (vectorize_loops): Likewise.
30772 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30774 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30775 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30776 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30777 with EABI_LINK_SPEC.
30779 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30782 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30785 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30788 * lra-constraints.c (process_alt_operands): Discourage a bit more
30789 using memory for pseudos. Print cost dump for alternatives.
30790 Modify cost values for conflicts with early clobbers.
30791 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30793 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30796 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30798 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30800 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30801 from/to S register.
30802 (movdi_aarch64): Support LDR/STR from/to D register.
30804 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30806 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30807 or higher by default.
30809 2013-04-29 Richard Biener <rguenther@suse.de>
30811 PR middle-end/57075
30812 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30813 even if not adding abnormal edges for calls that can make
30816 2013-04-29 Richard Biener <rguenther@suse.de>
30818 PR middle-end/57103
30819 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30821 (move_stmt_r): Remove redundant checking.
30823 2013-04-29 Teresa Johnson <tejohnson@google.com>
30826 * basic-block.h (apply_scale): New function.
30827 (apply_probability): Use apply_scale.
30828 * gimple-streamer-in.c (input_bb): Ditto.
30829 * lto-streamer-in.c (input_cfg): Ditto.
30830 * lto-cgraph.c (merge_profile_summaries): Ditto.
30831 * tree-optimize.c (execute_fixup_cfg): Ditto.
30832 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30833 (copy_edges_for_bb): Ditto.
30834 (copy_cfg_body): Ditto.
30836 2013-04-29 Tom de Vries <tom@codesourcery.com>
30838 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30839 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30840 (tail_merge_optimize): Handle current_loops == NULL.
30842 2013-04-26 Jeff Law <law@redhat.com>
30844 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30845 (simplify_cond_using_ranges): Generalize code to simplify
30846 COND_EXPRs where one argument is a constant and the other
30847 is an SSA_NAME created by an integral type conversion.
30849 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30851 * config/arm/arm.md (store_minmaxsi): Use only when
30852 optimize_insn_for_size_p.
30854 2013-04-29 Christian Bruel <christian.bruel@st.com>
30857 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30859 2013-04-29 Richard Biener <rguenther@suse.de>
30861 PR middle-end/57089
30862 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30863 loop tree make sure to schedule a fixup for the child as well.
30864 (expand_omp_for_generic): Properly add loops.
30865 (expand_omp_for_static_nochunk): Likewise.
30866 (expand_omp_for_static_chunk): Likewise.
30867 (expand_omp_for): For the degenerate case fixup loops.
30868 (expand_omp_sections): Fix default bb placement in loops.
30869 (expand_omp_atomic_pipeline): Properly add loops.
30871 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30873 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30875 2013-04-29 Tom de Vries <tom@codesourcery.com>
30877 * tree-ssa-tail-merge.c: Update header comment.
30879 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30881 * config/aarch64/arm_neon.h
30882 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30883 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30884 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30885 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30886 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30887 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30888 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30889 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30891 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30893 * config/aarch64/aarch64-simd.md
30894 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30895 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30896 fix_trunc, fixuns_trunc.
30897 (ftrunc<VDQF:mode>2): New.
30898 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30899 (fix_trunc_optab): New.
30901 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30903 * config/aarch64/aarch64-builtins.c
30904 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30905 iceilf, lround, iroundf.
30907 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30910 * config/i386/i386.h (enum ix86_tune_indices)
30911 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30912 New, split from X86_TUNE_INTER_UNIT_MOVES.
30913 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30914 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30915 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30916 (TARGET_INTER_UNIT_MOVES): Remove.
30917 * config/i386/i386.c (initial_ix86_tune_features): Update.
30918 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30919 (ix86_expand_convert_uns_didf_sse): Use
30920 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30921 (ix86_expand_vector_init_one_nonzero): Ditto.
30922 (ix86_expand_vector_init_interleave): Ditto.
30923 (inline_secondary_memory_needed): Return true for moves from SSE class
30924 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30925 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30926 * config/i386/constraints.md (Yi, Ym): Depend on
30927 TARGET_INTER_UNIT_MOVES_TO_VEC.
30928 (Yj, Yn): New constraints.
30929 * config/i386/i386.md (*movdi_internal): Change constraints of
30930 operand 1 from Yi to Yj and from Ym to Yn.
30931 (*movsi_internal): Ditto.
30932 (*movdf_internal): Ditto.
30933 (*movsf_internal): Ditto.
30934 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30935 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30936 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30937 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30938 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30939 * config/i386/sse.md (movdi_to_sse): Ditto.
30940 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30941 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30942 TARGET_INTER_UNIT_MOVES.
30943 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30944 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30945 instead of TARGET_INTER_UNIT_MOVES.
30946 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30947 operand 1 from Yi to Yj and from Ym to Yn.
30949 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30951 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30952 (float_truncate_hi_): Likewise.
30953 (float_extend_lo_): Likewise.
30954 (float_truncate_lo_): Likewise.
30955 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30956 (aarch64_float_extend_lo_v2df): Likewise.
30957 (vec_unpacks_hi_v4sf): Likewise.
30958 (aarch64_float_truncate_lo_v2sf): Likewise.
30959 (aarch64_float_truncate_hi_v4sf): Likewise.
30960 (vec_pack_trunc_v2df): Likewise.
30961 (vec_pack_trunc_df): Likewise.
30963 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30965 * config/aarch64/aarch64-builtins.c
30966 (aarch64_fold_builtin): Fold float conversions.
30967 * config/aarch64/aarch64-simd-builtins.def
30968 (floatv2si, floatv4si, floatv2di): New.
30969 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30970 * config/aarch64/aarch64-simd.md
30971 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30972 * config/aarch64/iterators.md (FLOATUORS): New.
30973 (optab): Add float, floatuns.
30974 (su_optab): Likewise.
30976 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30978 * config/aarch64/aarch64-builtins.c
30979 (aarch64_builtin_vectorized_function): Use new names for
30981 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30982 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30983 (fcvtzu): Split as...
30984 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30985 (fcvtas): Split as...
30986 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30987 (fcvtau): Split as...
30988 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30989 (fcvtps): Split as...
30990 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30991 (fcvtpu): Split as...
30992 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30993 (fcvtms): Split as...
30994 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30995 (fcvtmu): Split as...
30996 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30997 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30998 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30999 (lfrintnusf, lfrintnudf): Likewise.
31000 * config/aarch64/aarch64-simd.md
31001 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31003 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31004 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31005 (fcvt_pattern): Likewise.
31007 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31009 * config/aarch64/aarch64-simd.md
31010 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31011 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31013 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31015 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31016 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31017 (vrnd<a,m,n,p>_f32): Implement using builtins.
31018 (vrnd<i,x><q>_f<32, 64>): New.
31020 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31022 * config/aarch64/aarch64-builtins.c
31023 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31024 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31025 (frintz): Rename to...
31027 (frintp): Rename to...
31029 (frintm): Rename to...
31031 (frinti): Rename to...
31032 (nearbyint): ...this.
31033 (frintx): Rename to...
31035 (frinta): Rename to...
31037 * config/aarch64/aarch64-simd.md
31038 (aarch64_frint<frint_suffix><mode>): Delete.
31039 (<frint_pattern><mode>2): Convert to insn.
31040 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31041 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31042 (frint_pattern): Likewise.
31043 (frint_suffix): Likewise.
31045 2013-04-29 Richard Biener <rguenther@suse.de>
31047 PR tree-optimization/57081
31048 * loop-init.c: Include tree-flow.h.
31049 (loop_optimizer_finalize): Free number of iteration estimates.
31050 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31052 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31054 PR tree-optimization/57083
31055 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31056 non-singleton shift count range, zero extend low_bound for uns case.
31058 * config/i386/predicates.md (general_vector_operand): New predicate.
31059 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31060 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31061 if they aren't nonimmediate operands. If their original values
31062 satisfy const_vector_equal_evenodd_p, don't shift them.
31063 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31064 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31065 if not nonimmediate_operand.
31066 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31067 instead of register_operand.
31068 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31070 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31072 * stor-layout.c (finalize_size_functions): Allocate a structure and
31073 reset cfun before dumping the functions.
31075 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31077 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31080 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31081 use xop_pmacsdqh if uns_p.
31082 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31083 the immediate rotate count.
31085 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31087 * rtl.h (struct rtx_def): Add comment for field jump.
31088 (LRA_SUBREG_P): New macro.
31089 * recog.c (register_operand): Check LRA_SUBREG_P.
31090 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31092 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31093 (lra_final_code_change): Skip subreg change for operators.
31094 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31095 if there are no operand changes.
31096 * lra-constraints.c (curr_insn_set): New.
31097 (match_reload): Set LRA_SUBREG_P.
31098 (emit_spill_move): Ditto.
31099 (check_and_process_move): Use curr_insn_set. Process only single
31100 set insns. Don't initialize sec_mem_p and change_p.
31101 (simplify_operand_subreg): Use LRA_SUBREG_P.
31102 (reg_in_class_p): New function.
31103 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31104 of #ifdef. Add code to remove cycling.
31105 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31106 non-null disp. Reload inner instead of disp when base and index
31107 are null. Try to put lo_sum into register.
31108 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31109 (check_and_process_move): Move code for move cost check to
31110 simple_move_p. Remove equiv_substitution.
31111 (simple_move_p): New function.
31112 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31113 curr_insn_set. Call check_and_process_move only for single set
31114 insns. Use the new function. Move call of check_and_process_move
31115 after operand equiv substitution and address process.
31117 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31120 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31121 with nonlocal goto receivers or returns twice calls, ignore
31122 unininitialized values from abnormal edges to nl goto receiver
31123 or returns twice call.
31125 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31127 PR tree-optimization/57051
31128 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31129 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31132 2013-04-26 Richard Biener <rguenther@suse.de>
31134 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31135 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31136 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31137 (fixup_loop_arrays_after_move): New function.
31138 (move_sese_region_to_fn): Properly outline the loop tree parts
31139 of the SESE region.
31141 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31143 * config/i386/i386.md (type, unit): Fix long lines.
31145 2013-04-26 Richard Biener <rguenther@suse.de>
31147 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31148 (lto-streamer-out.o): Likewise.
31149 * cfgloop.c (init_loops_structure): Export, add struct function
31150 argument and adjust.
31151 (flow_loops_find): Adjust.
31152 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31153 (init_loops_structure): Declare.
31154 * lto-streamer-in.c: Include cfgloop.h.
31155 (input_cfg): Input the loop tree.
31156 * lto-streamer-out.c: Include cfgloop.h.
31157 (output_cfg): Output the loop tree.
31158 (output_struct_function_base): Do not drop PROP_loops.
31160 2013-03-26 Richard Biener <rguenther@suse.de>
31162 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31163 (pass_build_cfg): Provide PROP_loops.
31164 (move_sese_region_to_fn): Remove loops that are outlined into fn
31166 * tree-inline.c: Include cfgloop.h.
31167 (initialize_cfun): Do not drop PROP_loops.
31168 (copy_loops): New function.
31169 (copy_cfg_body): Copy loop structure.
31170 (tree_function_versioning): Initialize destination loop tree.
31171 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31172 (pass_parallelize_loops): Do IL verification.
31173 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31174 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31175 the CFG make sure we fixup loops as well.
31176 * tree-ssa-tail-merge.c: Include cfgloop.h.
31177 (replace_block_by): When merging loop latches mark loops for fixup.
31178 * lto-streamer-out.c (output_struct_function_base): Drop
31179 PROP_loops for now.
31180 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31181 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31182 * ipa-split.c: Include cfgloop.h.
31183 (split_function): Add the new return block to the loop tree root.
31184 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31185 whether we have removed the forwarder block.
31186 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31187 * cfgloop.h (place_new_loop): Declare.
31188 * cfgloopmanip.c (place_new_loop): Export.
31189 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31190 (tree-switch-conversion.o): Likewise.
31191 (tree-complex.o): Likewise.
31192 (tree-inline.o): Likewise.
31193 (tree-ssa-tailmerge.o): Likewise.
31194 (ipa-split.o): Likewise.
31195 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31196 (tree-ssa-copy.o): Likewise.
31197 * tree-switch-conversion.c: Include cfgloop.h
31198 (process_switch): If we emit a bit-test cascade, schedule loops
31200 * tree-complex.c: Include cfgloop.h.
31201 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31202 * asan.c: Include cfgloop.h.
31203 (create_cond_insert_point): Properly add new basic-blocks to
31204 loops, schedule loop fixup.
31205 * cfgloop.c (verify_loop_structure): Check that looks are not
31207 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31209 (expand_omp_for_generic): Likewise.
31210 (expand_omp_sections): Likewise.
31211 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31212 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31213 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31214 is initialized, not when loops are present.
31215 * tree-parloops.c (parallelize_loops): Remove checking here.
31216 * passes.c (init_optimization_passes): Schedule a copy-propagation
31217 pass before complete unrolling of inner loops.
31219 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31221 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31222 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31223 (colorize_init): Add argument to _WIN32 version.
31224 * toplev.c: Include diagnostic-color.h.
31225 (process_options): Default to -fdiagnostics-color=auto if
31226 GCC_COLORS env var is in the environment.
31227 * common.opt (fdiagnostics-color=): Add Var and Init.
31228 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31229 env var is in the environment, the default is auto rather than never.
31231 * diagnostic.h (file_name_as_prefix): Add context argument.
31232 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31233 the string as locus.
31234 * langhooks.c (lhd_print_error_function): Adjust caller.
31236 2013-04-25 Lawrence Crowl <crowl@google.com>
31238 * var-tracking.c (shared_hash_def::htab):
31239 Change type to hash_table. Update dependent calls and types.
31241 2013-04-25 Lawrence Crowl <crowl@google.com>
31243 * Makefile.in: Update as needed below.
31245 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31246 Move declaration to after the type's method definitons.
31248 * attribs.c (htab_t scoped_attributes::attribute_hash):
31249 Change type to hash_table. Update dependent calls and types.
31251 * bitmap.c (htab_t bitmap_desc_hash):
31252 Change type to hash_table. Update dependent calls and types.
31254 * cselib.c (htab_t cselib_hash_table):
31255 Change type to hash_table. Update dependent calls and types.
31257 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31258 (hash_string_slot_node): Move implementation into lto-streamer.h
31259 struct string_slot_hasher.
31260 (eq_string_slot_node): Likewise.
31262 * data-streamer-out.c: Update output_block::string_hash_table
31263 dependent calls and types.
31265 * dwarf2cfi.c (htab_t trace_index):
31266 Change type to hash_table. Update dependent calls and types.
31268 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31269 Change type to hash_table. Update dependent calls and types.
31270 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31271 (htab_t optimize_external_refs::map): Likewise.
31272 (htab_t output_comp_unit::extern_map): Likewise.
31273 (htab_t output_comdat_type_unit::extern_map): Likewise.
31274 (htab_t output_macinfo::macinfo_htab): Likewise.
31275 (htab_t optimize_location_lists::htab): Likewise.
31276 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31278 * except.c (htab_t ehspec_hash_type):
31279 Change type to hash_table. Update dependent calls and types.
31280 (assign_filter_values::ttypes): Likewise.
31281 (assign_filter_values::ehspec): Likewise.
31282 (sjlj_assign_call_site_values::ar_hash): Likewise.
31283 (convert_to_eh_region_ranges::ar_hash): Likewise.
31285 * gcse.c (htab_t pre_ldst_table):
31286 Change type to hash_table. Update dependent calls and types.
31288 * ggc-common.c (htab_t saving_htab):
31289 Change type to hash_table. Update dependent calls and types.
31290 (htab_t loc_hash): Likewise.
31291 (htab_t ptr_hash): Likewise.
31292 (call_count): Rename ggc_call_count.
31293 (call_alloc): Rename ggc_call_alloc.
31294 (loc_descriptor): Rename make_loc_descriptor.
31295 (add_statistics): Rename ggc_add_statistics.
31297 * ggc-common.c (saving_htab):
31298 Change type to hash_table. Update dependent calls and types.
31300 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31301 (push_gimplify_context): Likewise.
31302 (pop_gimplify_context): Likewise.
31303 (struct gimple_temp_hash_elt): Added.
31304 (struct gimplify_hasher): Likewise.
31305 (struct gimplify_ctx.temp_htab):
31306 Change type to hash_table. Update dependent calls and types.
31308 * gimple-fold.c: Include gimplify-ctx.h.
31310 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31311 Change type to hash_table. Update dependent calls and types.
31312 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31313 avoid potential global name collision.
31315 * gimplify.c: Include gimplify-ctx.h.
31316 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31317 (htab_t gimplify_ctx::temp_htab):
31318 Update dependent calls and types for new type hash_table.
31319 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31320 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31322 * gimplify-ctx.h: New.
31323 (struct gimple_temp_hash_elt): Move from gimplify.c.
31324 (class gimplify_hasher): New.
31325 (struct gimplify_ctx): Move from gimple.h.
31326 (htab_t gimplify_ctx::temp_htab):
31327 Change type to hash_table. Update dependent calls and types.
31329 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31330 (htab_t ivs_params::newivs_index):
31331 Change type to hash_table. Update dependent calls and types.
31332 (htab_t ivs_params::params_index): Likewise.
31333 (htab_t print_generated_program::params_index): Likewise.
31334 (htab_t gloog::newivs_index): Likewise.
31335 (htab_t gloog::params_index): Likewise.
31337 * graphite.c: Include graphite-htab.h.
31338 4htab_t graphite_transform_loops::bb_pbb_mapping):
31339 Change type to hash_table. Update dependent calls and types.
31341 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31342 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31343 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31345 * graphite-dependences.c: Include graphite-htab.h.
31346 (loop_is_parallel_p): Change hash table type of parameter.
31348 * graphite-htab.h: New.
31349 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31350 (extern find_pbb_via_hash): Move from graphite-poly.h.
31351 (extern loop_is_parallel_p): Move from graphite-poly.h.
31352 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31354 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31355 (extern loop_is_parallel_p): Move to graphite-htab.h.
31356 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31358 * haifa-sched.c (htab_t delay_htab):
31359 Change type to hash_table. Update dependent calls and types.
31360 (htab_t delay_htab_i2): Likewise.
31362 * ira-color.c (htab_t allocno_hard_regs_htab):
31363 Change type to hash_table. Update dependent calls and types.
31365 * ira-costs.c (htab_t cost_classes_htab):
31366 Change type to hash_table. Update dependent calls and types.
31368 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31369 Change type to hash_table. Update dependent calls and types.
31371 * loop-iv.c (htab_t bivs):
31372 Change type to hash_table. Update dependent calls and types.
31374 * loop-unroll.c (htab_t opt_info::insns_to_split):
31375 Change type to hash_table. Update dependent calls and types.
31376 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31378 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31379 (struct string_slot_hasher): New.
31380 (htab_t output_block::string_hash_table):
31381 Change type to hash_table. Update dependent calls and types.
31383 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31384 (htab_t file_name_hash_table):
31385 Change type to hash_table. Update dependent calls and types.
31387 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31390 * lto-streamer.c (htab_t tree_htab):
31391 Change type to hash_table. Update dependent calls and types.
31393 * omp-low.c: Include gimplify-ctx.h.
31395 * passes.c (htab_t name_to_pass_map):
31396 Change type to hash_table. Update dependent calls and types.
31397 (pass_traverse): Rename to passes_pass_traverse.
31399 * plugin.c (htab_t event_tab):
31400 Change type to hash_table. Update dependent calls and types.
31402 * postreload-gcse.c (htab_t expr_table):
31403 Change type to hash_table. Update dependent calls and types.
31404 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31406 * sese.c (debug_rename_map_1): Make extern.
31407 (htab_t copy_bb_and_scalar_dependences::rename_map):
31408 Change type to hash_table. Update dependent calls and types.
31410 * sese.h (extern debug_rename_map): Move to .c file.
31412 * store-motion.c (htab_t store_motion_mems_table):
31413 Change type to hash_table. Update dependent calls and types.
31415 * trans-mem.c (htab_t tm_new_mem_hash):
31416 Change type to hash_table. Update dependent calls and types.
31418 * tree-browser.c (htab_t TB_up_ht):
31419 Change type to hash_table. Update dependent calls and types.
31421 * tree-cfg.c (htab_t discriminator_per_locus):
31422 Change type to hash_table. Update dependent calls and types.
31424 * tree-complex.c: Include tree-hasher.h
31425 (htab_t complex_variable_components):
31426 Change type to hash_table. Update dependent calls and types.
31428 * tree-eh.c (htab_t finally_tree):
31429 Change type to hash_table. Update dependent calls and types.
31431 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31432 struct int_tree_hasher.
31433 (extern int_tree_map_eq): Likewise.
31434 (uid_decl_map_hash): Removed.
31435 (extern decl_tree_map_eq): Likewise.
31437 * tree-hasher.h: New.
31438 (struct int_tree_hasher): New.
31439 (typedef int_tree_htab_type): New.
31441 * tree-inline.c: Include gimplify-ctx.h.
31443 * tree-mudflap.c: Include gimplify-ctx.h.
31445 * tree-parloops.c: Include tree-hasher.h.
31446 (htab_t eliminate_local_variables_stmt::decl_address):
31447 Change type to hash_table. Update dependent calls and types.
31448 (htab_t separate_decls_in_region::decl_copies): Likewise.
31450 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31451 Change type to hash_table. Update dependent calls and types.
31453 * tree-sra.c (candidates):
31454 Change type to hash_table. Update dependent calls and types.
31456 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31458 (int_tree_map_hash): Likewise.
31460 * tree-ssa-dom.c (htab_t avail_exprs):
31461 Change type to hash_table. Update dependent calls and types.
31463 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31464 Change type to hash_table. Update dependent calls and types.
31466 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31467 Change type to hash_table. Update dependent calls and types.
31469 * tree-ssa-phiopt.c (seen_ssa_names):
31470 Change type to hash_table. Update dependent calls and types.
31472 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31473 Change type to hash_table. Update dependent calls and types.
31475 * tree-ssa-uncprop.c (equiv):
31476 Change type to hash_table. Update dependent calls and types.
31478 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31480 PR rtl-optimization/57003
31481 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31482 call note_stores with kill_clobbered_value callback again after
31483 killing regs_invalidated_by_call.
31485 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31487 * config/aarch64/aarch64-simd.md
31488 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31489 (aarch64_simd_bsl<mode>): Likewise.
31490 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31492 2013-04-25 Marek Polacek <polacek@redhat.com>
31494 PR tree-optimization/57066
31495 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31497 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31499 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31501 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31503 * config/aarch64/aarch64-builtins.c
31504 (aarch64_fold_builtin): New.
31505 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31506 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31507 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31508 * config/aarch64/arm_neon.h
31509 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31511 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31512 Tejas Belagod <tejas.belagod@arm.com>
31514 * config/aarch64/aarch64-builtins.c
31515 (aarch64_gimple_fold_builtin): New.
31516 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31517 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31518 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31519 (addvv4sf): Update.
31520 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31522 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31524 * config/aarch64/aarch64.md
31525 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31527 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31529 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31530 (*ngcsi_uxtw): New pattern.
31532 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31533 Julian Brown <julian@codesourcery.com>
31535 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31536 (TB_DREG): Add T_V4HF.
31537 (v4hf_UP): New macro.
31538 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31539 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31540 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31542 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31543 (arm_vector_mode_supported_p): Handle V4HF.
31544 (arm_mangle_map): Handle V4HFmode.
31545 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31546 * config/arm/arm_neon_builtins.def: Add entries for
31547 vcvtv4hfv4sf, vcvtv4sfv4hf.
31548 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31549 (neon_vcvtv4hfv4sf): Likewise.
31550 * config/arm/neon-gen.ml: Handle half-precision floating point
31552 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31553 * config/arm/arm_neon.h: Regenerate.
31554 * config/arm/neon.ml (type elts): Add F16.
31555 (type vectype): Add T_float16x4, T_floatHF.
31556 (type vecmode): Add V4HF.
31557 (type features): Add Requires_FP_bit feature.
31558 (elt_width): Handle F16.
31559 (elt_class): Likewise.
31560 (elt_of_class_width): Likewise.
31561 (mode_of_elt): Refactor.
31562 (type_for_elt): Handle F16, fix error messages.
31563 (vectype_size): Handle T_float16x4.
31564 (vcvt_sh): New function.
31565 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31566 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31567 (string_of_mode): Handle V4HF.
31568 * doc/arm-neon-intrinsics.texi: Regenerate.
31570 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31572 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31573 format specifier in 'X' case.
31575 2013-04-25 Alan Modra <amodra@gmail.com>
31578 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31579 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31580 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31581 Repeat for many other rotate/shift and mask patterns using subregs.
31582 Name lshiftrt insns.
31583 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31584 on WORDS_BIG_ENDIAN.
31586 2013-04-25 Alan Modra <amodra@gmail.com>
31588 * config.gcc: Support little-endian powerpc-linux targets.
31589 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31590 (LINK_OS_LINUX_SPEC): Define.
31591 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31592 Preserve MASK_LITTLE_ENDIAN.
31593 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31594 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31595 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31596 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31597 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31598 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31599 Correct fp word order for little-endian. Don't shift toc entries
31600 smaller than a word for little-endian.
31601 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31602 (bswapdi2 splits): Correct low-part subreg for little-endian.
31603 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31604 low/high where such is correct only for be.
31605 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31606 little-endian for -mcall-aixdesc.
31608 2013-04-25 Alan Modra <amodra@gmail.com>
31610 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31611 replace_equiv_address_nv.
31613 2013-04-25 Alan Modra <amodra@gmail.com>
31615 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31617 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31620 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31621 * rtl.h (struct rtx_def): ...
31623 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31625 PR rtl-optimizations/57046
31626 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31627 for multi-reg splits.
31629 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31631 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31633 2013-04-24 Sterling Augustine <saugustine@google.com>
31635 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31636 (comp_dir_string, debug_str_dwo_section): New.
31637 (DEBUG_STR_DWO_SECTION): Rename to ...
31638 (DEBUG_DWO_STR_SECTION): ... this.
31639 (DEBUG_NORM_STR_SECTION): Delete.
31640 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31641 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31642 (find_AT_string): Move most logic to ...
31643 (find_AT_string_in_table): ... here. New.
31644 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31645 add_skeleton_AT_string. Delete logic.
31646 (output_skeleton_debug_sections): Remove call to
31647 add_top_level_skeleton_die_attrs.
31648 (add_comp_dir_attribute): Move logic to comp_dir_string.
31649 (dwarf2out_init): Initialize debug_str_dwo_section.
31650 (output_indirect_string): Call find_string_form.
31651 (output_indirect_strings): Rewrite.
31652 (prune_unused_types): Empty skeleton_debug_str_hash.
31653 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31654 (dwarf2out_finish): Call output_indirect_strings.
31656 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31658 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31660 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31662 * rtl.h (struct rtx_def): Add comment for field jump.
31663 (LRA_SUBREG_P): New macro.
31664 * recog.c (register_operand): Check LRA_SUBREG_P.
31665 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31667 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31668 (lra_final_code_change): Skip subreg change for operators.
31669 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31670 if there are no operand changes.
31671 * lra-constraints.c (curr_insn_set): New.
31672 (match_reload): Set LRA_SUBREG_P.
31673 (emit_spill_move): Ditto.
31674 (check_and_process_move): Use curr_insn_set. Process only single
31675 set insns. Don't initialize sec_mem_p and change_p.
31676 (simplify_operand_subreg): Use LRA_SUBREG_P.
31677 (reg_in_class_p): New function.
31678 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31679 of #ifdef. Add code to remove cycling.
31680 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31681 non-null disp. Reload inner instead of disp when base and index
31682 are null. Try to put lo_sum into register.
31683 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31684 (check_and_process_move): Move code for move cost check to
31685 simple_move_p. Remove equiv_substitution.
31686 (simple_move_p): New function.
31687 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31688 curr_insn_set. Call check_and_process_move only for single set
31689 insns. Use the new function. Move call of check_and_process_move
31690 after operand equiv substitution and address process.
31692 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31694 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31695 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31696 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31698 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31700 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31702 2013-04-24 Marek Polacek <polacek@redhat.com>
31704 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31705 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31706 (select_loops_exit_conditions): Likewise.
31707 (number_of_iterations_for_all_loops): Likewise.
31708 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31709 (scev_analysis): Likewise.
31711 2013-04-02 Catherine Moore <clm@codesourcery.com>
31712 Chao-ying Fu <fu@mips.com>
31714 * config/mips/micromips.md (jraddiusp): New pattern.
31715 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31716 instruction if possible.
31718 2013-04-24 Alan Modra <amodra@gmail.com>
31720 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31722 2013-04-24 Julian Brown <julian@codesourcery.com>
31723 Chung-Lin Tang <cltang@codesourcery.com>
31725 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31726 dependency behavior in enumeration type DIE generation. Add TODO note
31727 to comments about future DW_FORM_sdata/udata re-work of related code.
31729 2013-04-23 Lawrence Crowl <crowl@google.com>
31731 * Makefile.in: Update as needed below.
31733 * hash-table.h (class hash_table):
31734 Correct many methods with parameter types compare_type to the correct
31735 value_type. (Correct code was unlikely to notice the change.)
31736 (hash_table::elements_with_deleted) New.
31737 (class hashtable::iterator): New.
31738 (hashtable::begin()): New.
31739 (hashtable::end()): New.
31740 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31742 * statistics.c (statistics_hashes):
31743 Change type to hash_table. Update dependent calls and types.
31745 * tree-into-ssa.c (var_infos):
31746 Change type to hash_table. Update dependent calls and types.
31748 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31749 Change type to hash_table. Update dependent calls and types.
31751 * tree-ssa-loop-im.c (struct mem_ref.refs):
31752 Change type to hash_table. Update dependent calls and types.
31754 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31755 Change type to hash_table. Update dependent calls and types.
31757 * tree-ssa-sccvn.c (vn_tables_s::nary):
31758 Change type to hash_table. Update dependent calls and types.
31759 (vn_tables_s::phis): Likewise.
31760 (vn_tables_s::references): Likewise.
31762 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31763 (vn_reference_eq): Update parameter and return types.
31765 * tree-ssa-structalias.c (pointer_equiv_class_table):
31766 Change type to hash_table. Update dependent calls and types.
31767 (location_equiv_class_table): Likewise.
31769 * tree-vect-data-refs.c: Consequential changes for making
31770 peeling a hash_table.
31772 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31773 (destroy_loop_vec_info): Dependent hash_table update.
31775 * tree-vectorizer.h (peeling_htab):
31776 Change type to hash_table. Update dependent calls and types.
31778 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31780 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31781 to check the register content is equal or not.
31782 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31783 to assign register content record.
31784 * lra-eliminations.c (update_reg_eliminate): Use
31785 lra_update_reg_val_offset to update register content offset.
31786 * lra-int.h (struct lra_reg): Add offset member.
31787 (lra_reg_val_equal_p): New static inline function.
31788 (lra_update_reg_val_offset): New static inline function.
31789 (lra_assign_reg_val): New static inline function.
31790 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31791 to assign register content record.
31792 (initialize_lra_reg_info_element): Initial offset to zero.
31794 2013-04-23 Catherine Moore <clm@codesourcery.com>
31796 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31797 operands. Record compression.
31799 2013-04-23 Xinliang David Li <davidxl@google.com>
31801 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31803 2013-04-23 Richard Biener <rguenther@suse.de>
31805 PR middle-end/57036
31806 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31807 parameter, only add abnormal goto edges from the copied body
31808 if the call could perform abnormal gotos.
31809 (copy_cfg_body): Adjust.
31811 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31813 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31815 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31817 * coretypes.h (gimple_stmt_iterator): Add struct to make
31820 2013-04-23 Richard Biener <rguenther@suse.de>
31822 PR tree-optimization/57026
31823 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31824 from SSA names occuring in abnormal PHI nodes.
31826 2013-04-22 Andi Kleen <ak@linux.intel.com>
31828 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31830 2013-04-22 Andi Kleen <ak@linux.intel.com>
31832 * lto/lto.c (print_lto_report_1): Declare early.
31833 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31835 2013-04-22 Andi Kleen <ak@linux.intel.com>
31837 * common.opt (-flto-report-wpa): Add.
31838 * doc/invoke.texi (-flto-report-wpa): Add.
31839 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31842 2013-04-22 Xinliang David Li <davidxl@google.com>
31844 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31845 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31846 * Makefile.in: New dependency
31848 David Daney <ddaney.cavm@gmail.com>
31850 * configure.ac (gcc_cv_as_micromips_support): Use the
31851 --fatal-warnings option.
31852 * configure: Regenerate.
31854 2013-04-22 Marek Polacek <polacek@redhat.com>
31857 * tsan.c (instrument_expr): Don't instrument expression
31858 in case its size is zero.
31860 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31864 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31866 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31868 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31870 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31871 (gimple_stmt_iterator): New typedef.
31872 * gimple.h (gimple_stmt_iterator): Rename to...
31873 (gimple_stmt_iterator_d): ... This.
31874 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31875 trees be valid for GIMPLE and GENERIC.
31876 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31877 * gimple-fold.c (gimple_fold_call): Call target hook
31878 gimple_fold_builtin.
31879 * hooks.c (hook_bool_gsiptr_false): New.
31880 * hooks.h (hook_bool_gsiptr_false): New.
31881 * target.def (fold_stmt): New.
31882 * doc/tm.texi: Regenerate.
31884 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31887 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31888 a set sp if no stack realignment.
31890 2013-04-22 Nick Clifton <nickc@redhat.com>
31892 * config.gcc (tilegx-linux): Extend extra_objs rather than
31894 (tilepro-linux): Likewise.
31896 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31898 * config/aarch64/aarch64-builtins.c
31900 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31901 (VAR<1-12>): Add MAP parameter.
31902 (BUILTIN_*): Likewise.
31903 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31904 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31905 (aarch64_ushl_n<mode>): Likewise.
31906 (aarch64_sshr_n<mode>): Likewise.
31907 (aarch64_ushr_n<mode>): Likewise.
31908 (aarch64_<maxmin><mode>): Likewise.
31909 (aarch64_sqrt<mode>): Likewise.
31910 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31911 (vshr<q>_n_*): Likewise.
31913 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31915 * config/aarch64/aarch64-builtins.c
31916 (aarch64_simd_builtin_type_mode): Handle SF types.
31918 (BUILTIN_GPF): Define.
31919 (aarch64_init_simd_builtins): Handle SF types.
31920 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31921 (frecps): Likewise.
31922 (frecpx): Likewise.
31923 * config/aarch64/aarch64-simd.md
31924 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31925 (aarch64_frecpe<mode>): New.
31926 (aarch64_frecps<mode>): Likewise.
31927 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31928 (v8type): Add frecp<esx>.
31929 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31930 (aarch64_frecps<mode>): Likewise.
31931 * config/aarch64/iterators.md (FRECP): New.
31932 (frecp_suffix): Likewise.
31933 * config/aarch64/arm_neon.h
31934 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31936 2013-04-22 Christian Bruel <christian.bruel@st.com>
31939 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31940 (REG_CLASS_NAMES): Idem.
31941 (REG_CLASS_CONTENTS): Idem.
31942 (REGCLASS_HAS_FP_REG): Idem.
31943 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31944 (sh_conditional_register_usage): Idem.
31946 2013-04-21 Jeff Law <law@redhat.com>
31948 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31949 (ssa_forward_propagate_and_combine): Use it.
31951 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31953 * lra.c: Update the flow chart diagram.
31955 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31957 PR rtl-optimization/56847
31958 * lra-constraints.c (process_alt_operands): Discourage alternative
31959 with non-matche doffsettable memory constraint fro memory with
31962 2013-04-19 Richard Biener <rguenther@suse.de>
31964 PR tree-optimization/56982
31965 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31967 * gimplify.c (gimplify_call_expr): Notice special calls.
31968 (gimplify_modify_expr): Likewise.
31969 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31970 abnormal control flow receivers.
31971 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31972 in the same way as cfun->has_nonlocal_labels.
31973 (gimple_purge_dead_abnormal_call_edges): Likewise.
31974 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31975 receivers start a basic-block.
31977 2013-04-19 Richard Biener <rguenther@suse.de>
31979 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31981 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31982 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31983 (SLP_TREE_LOAD_PERMUTATION): Add.
31984 (vect_transform_slp_perm_load): Adjust prototype.
31985 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31986 (vect_free_slp_instance): Likewise.
31987 (vect_create_new_slp_node): Likewise.
31988 (vect_supported_slp_permutation_p): Remove.
31989 (vect_slp_rearrange_stmts): Adjust.
31990 (vect_supported_load_permutation_p): Likewise. Inline
31991 vect_supported_slp_permutation_p here.
31992 (vect_analyze_slp_instance): Compute load permutations per
31993 slp node instead of per instance.
31994 (vect_get_slp_defs): Adjust.
31995 (vect_transform_slp_perm_load): Likewise.
31996 (vect_schedule_slp_instance): Remove redundant code.
31997 (vect_schedule_slp): Remove hack for PR56270, add it ...
31998 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31999 CSE loads for SLP. Adjust.
32001 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32003 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32004 spelling in two comments.
32006 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32009 * config/arm/arm.c (load_multiple_sequence): Require SP
32010 as base register for loads if SP is in the register list.
32012 2013-04-19 Martin Jambor <mjambor@suse.cz>
32014 PR tree-optimization/56718
32015 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32016 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32017 and made public. Adjusted all callers.
32018 (ipa_intraprocedural_devirtualization): New function.
32019 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32020 (ipa_intraprocedural_devirtualization): Likewise.
32021 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32023 2013-04-19 Richard Biener <rguenther@suse.de>
32025 PR tree-optimization/57000
32026 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32028 2013-04-19 Terry Guo <terry.guo@arm.com>
32030 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32032 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32033 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32034 (cortex_m4_fmacs): Use new reservations.
32035 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32037 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32039 PR rtl-optimization/56999
32040 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32042 (lra_coalesce): Remove split_origin_bitmap and related code.
32043 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32044 ranges if necessary.
32046 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32048 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32050 (ix86_expand_call): Remove clobbered_registers array and use
32051 x86_64_ms_sysv_extra_clobbered_registers instead.
32052 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32054 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32056 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32057 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32058 (*call_value_rex64_ms_sysv): Ditto.
32060 2013-04-18 Cary Coutant <ccoutant@google.com>
32062 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32063 parent instead of die_mark.
32065 2013-04-18 Diego Novillo <dnovillo@google.com>
32067 * gimple.c (create_gimple_tmp): New.
32068 (get_expr_type): New.
32069 (build_assign): New.
32070 (build_type_cast): New.
32071 * gimple.h (enum ssa_mode): Define.
32072 (gimple_seq_set_location): New.
32073 * asan.c (build_check_stmt): Change some gimple_build_* calls
32074 to use build_assign and build_type_cast.
32076 2013-04-18 Richard Biener <rguenther@suse.de>
32078 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32079 handle negative step. Remove redundant checks.
32080 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32081 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32082 for negative step and grouped loads fail to vectorize.
32084 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32086 * emit-rtl.c (reset_insn_used_flags): New function.
32087 (reset_all_used_flags): Use it.
32088 (verify_insn_sharing): New function.
32089 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32091 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32093 PR tree-optimization/56984
32094 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32095 and (x >> M) >= N don't register any assertion if N << M is the
32098 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32100 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32101 do not delete_insn insns that have not yet been emitted, only
32102 unlink them with remove_insn.
32103 * df-scan.c (df_insn_delete): Revert r197492.
32105 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32107 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32108 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32110 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32112 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32113 define_insn_and_split.
32114 (and_scc,ior_scc,negscc): Likewise.
32115 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32117 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32119 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32120 can benefit from using a sequence of LDRD instructions in epilogue
32121 instead of a single LDM instruction.
32123 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32126 * doc/extend.texi: Fix typo.
32128 2013-04-17 Richard Biener <rguenther@suse.de>
32130 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32131 (vect_build_slp_tree): ... here.
32132 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32133 match. Remove special-casing of mismatched complex loads.
32134 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32135 re-try the match with swapped commutative operands.
32136 (vect_supported_load_permutation_p): Remove special-casing of
32137 mismatched complex loads.
32138 (vect_analyze_slp_instance): Adjust.
32140 2013-04-17 Richard Biener <rguenther@suse.de>
32142 PR rtl-optimization/56921
32143 * cfgloop.h (struct loop): Add simple_loop_desc member.
32144 (struct niter_desc): Mark with GTY(()).
32145 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32146 * loop-iv.c (get_simple_loop_desc): Likewise.
32147 (free_simple_loop_desc): Likewise.
32150 2013-04-16 Richard Biener <rguenther@suse.de>
32152 PR rtl-optimization/56921
32153 * loop-init.c (pass_rtl_move_loop_invariants): Add
32154 TODO_do_not_ggc_collect to todo_flags_finish.
32155 (pass_rtl_unswitch): Same.
32156 (pass_rtl_unroll_and_peel_loops): Same.
32157 (pass_rtl_doloop): Same.
32159 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32161 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32162 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32163 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32165 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32166 * tree-streamer.c (record_common_node): Adjust reference in comment.
32168 2013-04-17 Terry Guo <terry.guo@arm.com>
32170 * config/arm/cortex-m4.md: Add a new bypass.
32172 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32174 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32176 (*subs_<optab><mode>_multp2): New pattern.
32177 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32178 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32180 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32182 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32183 (*subs_mul_imm_<mode>): New pattern.
32185 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32188 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32189 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32190 (vsx_movti_32bit): Change j->wa to O->wa.
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-16 Greta Yorsh <Greta.Yorsh@arm.com>
32203 * config/arm/arm.c (emit_multi_reg_push): New declaration
32204 for an existing function.
32205 (arm_emit_strd_push): New function.
32206 (arm_expand_prologue): Used here.
32207 (arm_emit_ldrd_pop): New function.
32208 (arm_expand_epilogue): Used here.
32209 (arm_get_frame_offsets): Update condition.
32210 (arm_emit_multi_reg_pop): Add a special case for load of a single
32211 register with writeback.
32213 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32215 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32218 2013-04-16 Richard Biener <rguenther@suse.de>
32220 PR tree-optimization/56756
32221 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32222 (first_mem_ref_loc): New.
32223 (execute_sm): Place the load temporarily before a previous
32224 access instead of in the latch edge to ensure its SSA dependencies
32225 are defined at points dominating the load.
32227 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32229 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32230 correct fix by moving header and footer insn to the footer of
32231 the merged basic block. Clear BB_END of the merged-away block.
32233 PR middle-end/43631
32234 * emit-rtl.c (make_note_raw): New function.
32235 (link_insn_into_chain): New static inline function.
32236 (add_insn): Use it.
32237 (add_insn_before, add_insn_after): Factor insn chain linking code...
32238 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32239 using link_insn_into_chain.
32240 (note_outside_basic_block_p): New helper function for emit_note_after
32241 and emit_note_before.
32242 (emit_note_after): Use nobb variant of add_insn_after if the note
32243 should not be contained in a basic block.
32244 (emit_note_before): Use nobb variant of add_insn_before if the note
32245 should not be contained in a basic block.
32246 (emit_note_copy): Use make_note_raw.
32247 (emit_note): Likewise.
32248 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32249 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32250 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32251 the moved barrier the tail of the basic block it follows.
32252 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32254 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32256 PR tree-optimization/56962
32257 * gimple-ssa-strength-reduction.c (record_increment): Only set
32258 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32259 either rhs1 or rhs2 is equal to c->base_expr.
32261 2013-04-15 Richard Biener <rguenther@suse.de>
32263 PR tree-optimization/56933
32264 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32266 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32267 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32268 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32269 dependence check ...
32270 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32272 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32273 GROUP_READ_WRITE_DEPENDENCE.
32275 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32277 * emit-rtl.c (reset_all_used_flags): New function.
32278 (verify_rtl_sharing): Call reset_all_used_flags before and after
32279 performing the checks.
32281 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32283 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32284 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32285 * config/arm/constraints.md (De): New constraint.
32286 * config/arm/neon.md (anddi3_neon): Delete.
32287 (neon_vand<mode>): Expand to standard anddi3 pattern.
32288 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32289 Move earlier in the file.
32290 (neon_inv_logic_op2): Likewise.
32291 (arm_anddi_operand_neon): New predicate.
32293 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32295 * configure.ac (gcc_cv_ld_as_needed): Set
32296 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32297 Use -z ignore, -z record on *-*-solaris2*.
32298 (HAVE_LD_AS_NEEDED): Update comment.
32299 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32300 * configure: Regenerate.
32301 * config.in: Regenerate.
32302 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32303 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32304 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32305 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32306 equivalents. Fix markup.
32307 * doc/tm.texi: Regenerate.
32309 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32311 * config/i386/i386.opt: New option mstack-protector-guard=.
32312 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32313 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32314 TARGET_SSP_TLS_GUARD.
32315 * config/i386/i386.c (ix86_option_override_internal): Set
32316 ix86_stack_protector_guard.
32317 * config/i386/i386.md (stack_protect_set): Enable for
32318 TARGET_SSP_TLS_GUARD only.
32319 (stack_protect_set_<mode>): Ditto.
32320 (stack_protect_test): Ditto.
32321 (stack_protect_test_<mode>): Ditto.
32322 * doc/invoke.texi (i386 Option): Document.
32324 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32327 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32328 (S_MODES): Set H_MODE bit.
32329 (SF_MODES): Set only S_MODE and SF_MODE bits.
32330 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32331 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32332 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32333 <MODE_FLOAT>: Likewise.
32335 2013-04-15 Joey Ye <joey.ye@arm.com>
32337 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32339 2013-04-15 Joey Ye <joey.ye@arm.com>
32341 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32343 (thumb_far_jump_used_p): Count instruction size and set
32346 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32348 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32349 * resource.c (mark_target_live_regs): Reformat conditional block.
32351 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32353 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32354 notes, they are emitted only just before final.
32355 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32357 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32359 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32360 * cfgrtl.c (delete_insn): Call it here instead.
32361 * lra-spills.c (lra_final_code_change): Use delete_insn.
32362 * haifa-sched.c (sched_remove_insn): Likewise.
32363 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32364 returning to the nop pool.
32365 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32366 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32368 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32370 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32371 * doc/tm.texi: Regenerated.
32373 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32375 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32378 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32380 * df-core.c (df_find_def): Compare register numbers.
32381 (df_find_use): Likewise.
32383 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32386 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32387 lra_in_progress for return.
32389 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32391 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32392 define_insn into define_insn_and_split and emit movsicc patterns.
32394 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32396 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32398 2013-04-12 Richard Biener <rguenther@suse.de>
32400 * tree-pass.h (TODO_do_not_ggc_collect): New.
32401 * passes.c (execute_one_ipa_transform_pass): Honor
32402 TODO_do_not_ggc_collect.
32403 (execute_one_pass): Likewise.
32406 2013-04-10 Richard Biener <rguenther@suse.de>
32408 * passes.c (init_optimization_passes): Remove reload pass.
32409 * ira.c (do_reload): Merge into ...
32411 (rest_of_handle_reload): Remove.
32412 (pass_reload): Likewise.
32413 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32414 of reload for vzeroupper pass placement.
32416 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32418 PR tree-optimization/56918
32419 PR tree-optimization/56920
32420 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32421 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32422 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32423 use wide_mul_with_sign method.
32425 2013-04-12 Richard Biener <rguenther@suse.de>
32427 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32428 not be considered a gimple constant.
32430 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32432 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32433 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32436 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32437 Jakub Jelinek <jakub@redhat.com>
32439 * opts.c: Include diagnostic-color.h.
32440 (common_handle_option): Handle OPT_fdiagnostics_color_.
32441 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32442 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32443 (diagnostic-color.o): New.
32444 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32445 (diagnostic_color_rule): New enum.
32446 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32447 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32448 the location string.
32449 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32450 either NULL, or color kind.
32451 * diagnostic-color.c: New file.
32452 * diagnostic-color.h: New file.
32453 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32455 * doc/invoke.texi (-fdiagnostics-color): Document.
32456 * pretty-print.h (pp_show_color): Define.
32457 (struct pretty_print_info): Add show_color field.
32458 * diagnostic.c: Include diagnostic-color.h.
32459 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32460 macros. Colorize error:, warning: etc. strings and also the location
32462 (diagnostic_show_locus): Colorize the caret line.
32463 * pretty-print.c: Include diagnostic-color.h.
32464 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32465 inside of %< %> quotes or quoted through q format modifier.
32467 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32469 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32471 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32473 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32474 code in CC_NZ mode.
32475 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32478 2013-04-11 Marek Polacek <polacek@redhat.com>
32480 PR tree-optimization/48184
32481 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32483 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32485 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32486 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32487 (skip_simple_arithmetic): Tidy up.
32488 * tree.h (skip_simple_constant_arithmetic): Declare.
32490 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32492 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32494 2013-04-11 Richard Biener <rguenther@suse.de>
32496 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32497 generate vector constants.
32499 2013-04-11 Richard Biener <rguenther@suse.de>
32501 PR tree-optimization/56878
32502 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32503 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32505 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32506 Prefer to align the DR with the most invariant base address.
32508 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32510 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32513 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32515 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32516 floating-point vector comparisons against 0.
32518 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32520 PR tree-optimization/56899
32521 * fold-const.c (extract_muldiv_1): Apply distributive law
32522 only if TYPE_OVERFLOW_WRAPS (ctype).
32524 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32527 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32528 loading has side effect.
32530 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32532 * config/sparc/sparc.c: Include tree-pass.h.
32533 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32534 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32535 head of file. Change return type. Split off gate function.
32536 (sparc_gate_work_around_errata): New function.
32537 (pass_work_around_errata): New pass definition.
32538 (insert_pass_work_around_errata) New pass insert definition to
32539 insert pass_work_around_errata just after delayed-branch scheduling.
32540 (sparc_option_override): Insert the pass.
32541 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32543 2013-04-10 David S. Miller <davem@davemloft.net>
32545 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32546 or -mcpu=hypersparc.
32548 * target.def (cstore_mode): New hook.
32549 * target.h: Include insn-codes.h
32550 * targhooks.c: Likewise.
32551 (default_cstore_mode): New function.
32552 * targhooks.h: Declare it.
32553 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32554 * doc/tm.texi: Rebuild.
32555 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32556 target hook, rather than inspecting the insn_data.
32557 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32558 (TARGET_CSTORE_MODE): Redefine.
32559 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32561 * config/sparc/predicates.md (cstore_result_operand): New special
32563 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32564 Use it for operand 0.
32565 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32566 (*snesi_special): Likewise.
32567 (*snesi_zero): Likewise.
32568 (*seqsi_zero): Likewise.
32569 (*sltu_insn): Likewise.
32570 (*sgeu_insn): Likewise.
32571 (*seqdi_special): Make operand 0 and comparison operation be of
32573 (*snedi_special): Likewise.
32574 (*snedi_special_vis3): Likewise.
32575 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32576 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32577 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32578 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32579 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32580 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32581 (*sltu_extend_sp64): Likewise.
32582 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32583 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32584 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32585 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32586 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32588 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32590 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32591 (aarch64_start_file): Use the new function.
32593 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32594 Jason Merrill <jason@redhat.com>
32596 * common.opt: Add -gdwarf.
32597 * opts.c (common_handle_option): Handle it.
32598 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32600 2013-04-10 Richard Biener <rguenther@suse.de>
32602 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32603 (execute_one_ipa_transform_pass): But unconditionally here.
32604 (execute_one_pass): And here.
32605 (init_optimization_passes): Remove reload pass.
32606 * tree-pass.h (TODO_ggc_collect): Remove.
32607 (pass_reload): Likewise.
32608 * ira.c (do_reload): Merge into ...
32610 (rest_of_handle_reload): Remove.
32611 (pass_reload): Likewise.
32612 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32613 of reload for vzeroupper pass placement.
32614 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32615 and todo_flags_finish of all passes.
32617 2013-04-10 Richard Biener <rguenther@suse.de>
32619 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32620 first_const_oprnd field, rename first_def_type to first_op_type.
32621 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32622 (vect_get_and_check_slp_defs): Always use the type of the
32623 operand. Allow mixed vect_external_def, vect_constant_def types.
32624 (vect_get_constant_vectors): Handle mixed vect_external_def,
32625 vect_constant_def types.
32627 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32629 PR tree-optimization/55524
32630 * tree-ssa-math-opts.c
32631 (convert_mult_to_fma): Don't use an fms construct
32632 when we don't have an fms operation, but fnma, and it looks
32633 likely that we'll be able to use the latter.
32635 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32637 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32639 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32640 inline fail caused by overwritable functions.
32642 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32644 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32645 unnecessary bits in the constant power of two case.
32647 2013-04-10 Richard Biener <rguenther@suse.de>
32649 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32650 broken code swapping operands.
32651 (vect_build_slp_tree): Do not compute load permutations here.
32652 (vect_analyze_slp_instance): Compute load permutations here,
32653 after building the SLP tree.
32655 2013-04-09 Christian Bruel <christian.bruel@st.com>
32657 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32658 of next/prev_real_insn.
32660 2013-04-09 Jan Hubicka <jh@suse.cz>
32662 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32663 Drop aliased parameter.
32664 (function_and_variable_visibility): Do not handle alias pairs.
32665 * cgraph.c (varpool_externally_visible_p): Update prototype.
32666 * varpool.c (varpool_add_new_variable): Update.
32668 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32670 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32672 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32674 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32676 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32678 2013-04-09 Marek Polacek <polacek@redhat.com>
32680 PR tree-optimization/48762
32681 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32683 2013-04-09 Richard Biener <rguenther@suse.de>
32685 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32687 (vect_build_slp_tree): Likewise.
32688 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32689 calculating the cost of a SLP instance.
32690 (vect_analyze_slp_instance): Use it from here, after building
32693 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32695 PR middle-end/56883
32696 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32697 expand_omp_for_static_chunk): Use simple_p = true in
32698 force_gimple_operand_gsi calls when assigning to addressable decls.
32700 2013-04-09 Jeff Law <law@redhat.com>
32702 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32703 when the boolean was created by converting a wider object which
32704 had a boolean range.
32706 2013-04-09 Richard Biener <rguenther@suse.de>
32708 * tree-vectorizer.h (slp_void_p): Remove.
32709 (slp_tree): Typedef before _slp_tree declaration.
32710 (struct _slp_tree): Use a vector of slp_tree as children.
32711 (vect_get_place_in_interleaving_chain): Remove.
32712 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32714 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32716 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32717 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32718 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32719 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32720 Use slp_node instead of slp_void_p and adjust.
32722 2013-04-09 Richard Biener <rguenther@suse.de>
32724 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32725 work that is not necessary.
32727 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32729 PR tree-optimization/56854
32730 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32731 forward into clobber stmts if it would change MEM_REF lhs into
32734 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32736 * tree.c (type_hash_lookup, type_hash_add): Make static.
32737 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32739 2013-04-09 Richard Biener <rguenther@suse.de>
32741 * tree.h (unsave_expr_now): Remove.
32742 * tree-inline.c (mark_local_for_remap_r): Remove.
32743 (unsave_expr_1): Likewise.
32744 (unsave_r): Likewise.
32745 (unsave_expr_now): Likewise.
32746 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32747 (propagate_tree_value): Likewise.
32749 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32751 * doc/rtl.texi (sequence): Rewrite documentation to match the
32752 current use of SEQUENCE rtl objects.
32753 * rtl.def (SEQUENCE): Likewise.
32755 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32756 Update documentation.
32757 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32758 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32760 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32762 2013-04-08 Teresa Johnson <tejohnson@google.com>
32764 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32765 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32767 (estimate_edge_size_and_time): Add comment to suggest using rounding
32769 (estimate_node_size_and_time): Ditto.
32770 (remap_edge_change_prob): Use helper rounding divide methods.
32771 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32772 (gimple_mod_pow2_value_transform): Ditto.
32773 (gimple_mod_subtract_transform): Ditto.
32774 (gimple_ic_transform): Ditto.
32775 (gimple_stringops_transform): Ditto.
32776 * stmt.c (conditional_probability): Ditto.
32777 (emit_case_dispatch_table): Ditto.
32778 * lto-cgraph.c (merge_profile_summaries): Ditto.
32779 * tree-optimize.c (execute_fixup_cfg): Ditto.
32780 * cfgcleanup.c (try_forward_edges): Ditto.
32781 * cfgloopmanip.c (scale_loop_profile): Ditto.
32783 (duplicate_loop_to_header_edge): Ditto.
32784 (lv_adjust_loop_entry_edge): Ditto.
32785 * tree-vect-loop.c (vect_transform_loop): Ditto.
32786 * profile.c (compute_branch_probabilities): Ditto.
32787 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32788 * lto-streamer-in.c (input_cfg): Ditto.
32789 * gimple-streamer-in.c (input_bb): Ditto.
32790 * ipa-cp.c (update_profiling_info): Ditto.
32791 (update_specialized_profile): Ditto.
32792 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32793 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32795 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32796 (compute_trg_info): Ditto.
32797 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32798 (purge_dead_edges): Ditto.
32799 * loop-unswitch.c (unswitch_loop): Ditto.
32800 * cgraphclones.c (cgraph_clone_edge): Ditto.
32801 (cgraph_clone_node): Ditto.
32802 * tree-inline.c (copy_bb): Ditto.
32803 (copy_edges_for_bb): Ditto.
32804 (initialize_cfun): Ditto.
32805 (copy_cfg_body): Ditto.
32806 (expand_call_inline): Ditto.
32808 2013-04-08 Kai Tietz <ktietz@redhat.com>
32810 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32811 TARGET_CYGWIN64 by TARGET_64BIT.
32813 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32815 * config/epiphany/epiphany.md (GPR_1): New constant.
32816 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32817 * config/epiphany/epiphany.c (gen_compare_reg):
32818 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32819 is already in place.
32820 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32821 Don't require being called during rtl expansion; If y operlaps r0,
32823 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32824 (epiphany_expand_epilogue): Likewise.
32826 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32827 Don't use CC_FPmode for ORDERED / UNORDERED.
32828 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32830 * config/epiphany/constraints.md (CnL): New constraint.
32831 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32832 * config/epiphany/predicates.md (add_operand): Allow 1024.
32834 * config/epiphany/epiphany.md (logical_op): New code iterator.
32835 (op_mnc): New code attribute.
32836 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32837 (mov_f+1, mov_f+2): New peephole2 patterns.
32839 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32840 (cstoresi4): Also allow re-use of zero result when doing a NE
32841 comparison to a non-zero operand.
32842 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32844 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32845 Use gen_addsi3_i / gen_subsi3_i.
32847 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32851 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32852 contain anything but clobbers, at most one __builtin_stack_restore,
32853 optionally debug stmts and final resx, and if it has at least one
32854 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32855 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32856 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32857 which isn't defaut definition, remove them.
32858 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32859 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32860 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32861 with MEM_REF LHS with SSA_NAME address.
32863 2013-04-08 Jeff Law <law@redhat.com>
32865 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32867 2013-04-08 Richard Biener <rguenther@suse.de>
32869 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32871 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32872 determined vector type.
32873 (vect_analyze_data_refs): Likewise.
32874 (vect_get_new_vect_var): Adjust.
32875 (vect_create_destination_var): Preserve SSA name versions.
32876 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32877 not dump anything here.
32879 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32881 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32882 Add member lr_slot_known.
32883 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32885 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32886 Remove code that sets lr_slot_offset according to what a previous
32887 version of epiphany_emit_save_restore used to do.
32888 (epiphany_emit_save_restore): When doing an lr save or restore,
32889 set/verify lr_slot_known and lr_slot_offset.
32891 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32894 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32897 2013-04-08 Richard Biener <rguenther@suse.de>
32899 * alias.c (find_base_term): Fix thinko in previous change.
32901 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32903 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32904 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32905 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32906 if possible to compute val.
32907 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32908 For QImode integers don't require anything about precision. Use
32909 const_with_all_bytes_same to find out if the constant doesn't have
32910 repeated bytes in it.
32912 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32914 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32917 2013-04-08 Marek Polacek <polacek@redhat.com>
32919 PR rtl-optimization/48182
32920 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32923 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32926 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32927 nuses, make sure we have a label.
32929 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32932 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32933 (rs6000_emit_swdiv_low_precision): Remove.
32934 (rs6000_emit_swdiv): Rewrite to handle between one and four
32935 iterations of Newton-Raphson generally; modify required number of
32936 iterations for some cases.
32937 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32939 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32941 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32942 set-but-unused variable.
32944 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32945 basic blocks of released function bodies garbage-collectable.
32947 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32948 (struct rtl_opt_pass): Add TODO_df_finish.
32950 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32952 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32954 * config/arm/constraints.md (q): New constraint.
32955 * config/arm/ldrdstrd.md: New file.
32956 * config/arm/arm.md (ldrdstrd.md) New include.
32957 (arm_movdi): Use "q" instead of "r" constraint
32958 for double-word memory access.
32959 (movdf_soft_insn): Likewise.
32960 * config/arm/vfp.md (movdi_vfp): Likewise.
32961 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32962 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32963 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32964 (mem_ok_for_ldrd_strd): Likewise.
32965 (output_move_double): Update assertion.
32967 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32969 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32971 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32973 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32974 define_insn_and_split.
32975 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32977 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32979 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32980 define_insn_and_split.
32981 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32982 (shiftsi3_compare): New pattern.
32983 (rrx): New pattern.
32984 * config/arm/unspecs.md (UNSPEC_RRX): New.
32986 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32988 * config/arm/arm.md (negdi_extendsidi): New pattern.
32989 (negdi_zero_extendsidi): Likewise.
32991 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32993 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32994 define_insn_and_split.
32995 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32996 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32998 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33000 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33001 define_insn_and_split.
33002 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33003 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33005 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33007 * config/arm/arm.md (subsi3_carryin): New pattern.
33008 (subsi3_carryin_const): Likewise.
33009 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33010 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33012 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33014 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33016 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33018 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33019 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33021 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33023 * config/arm/arm.c (arm_expand_builtin): Change fcode
33024 type to unsigned int.
33026 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33028 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33030 2013-04-04 Ian Lance Taylor <iant@google.com>
33032 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33035 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33037 PR middle-end/56729
33038 * df-scan.c (df_insn_delete): Disable failing assert.
33040 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33042 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33043 New function prototype.
33044 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33045 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33046 (arm_builtin_vectorized_function): New function.
33048 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33050 * config/arm/arm_neon_builtins.def: New file.
33051 * config/arm/arm.c (neon_builtin_data): Move contents to
33052 arm_neon_builtins.def.
33053 (enum arm_builtins): Include neon builtin definitions.
33054 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33055 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33057 2013-04-04 Marek Polacek <polacek@redhat.com>
33059 PR tree-optimization/48186
33060 * predict.c (maybe_hot_frequency_p): Return false if
33061 HOT_BB_FREQUENCY_FRACTION is 0.
33062 (cgraph_maybe_hot_edge_p): Likewise.
33064 2013-04-04 Richard Biener <rguenther@suse.de>
33066 PR tree-optimization/56826
33067 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33070 2013-04-04 Richard Biener <rguenther@suse.de>
33072 PR tree-optimization/56213
33073 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33074 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33076 2013-04-04 Richard Biener <rguenther@suse.de>
33078 PR tree-optimization/56837
33079 * tree-loop-distribution.c (classify_partition): For non-zero
33080 values require that the value has the same precision as its
33081 mode to be useful as memset value.
33083 2013-04-03 Nick Clifton <nickc@redhat.com>
33085 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33086 (fmssf4): Use fmsf.s on E3V5 architectures.
33087 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33088 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33090 2013-04-03 Jeff Law <law@redhat.com>
33092 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33093 (lra-eliminations.o): Likewise.
33095 2013-04-03 Teresa Johnson <tejohnson@google.com>
33097 * gcov-io.c (compute_working_sets): Moved most of body of old
33098 compute_working_sets here from profile.c.
33099 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33100 (gcov_working_set_t): Moved typedef here from basic-block.h
33101 (compute_working_set): Declare.
33102 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33103 (get_working_sets): Renamed from compute_working_set,
33104 replace most of body with call to new compute_working_sets.
33105 (get_exec_counts): Replace call to compute_working_sets
33106 to get_working_sets.
33107 * profile.h (get_working_sets): Renamed from compute_working_set.
33108 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33109 to get_working_sets.
33110 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33111 * gcov-dump.c (dump_working_sets): New function.
33113 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33115 * hwint.c (sext_hwi, zext_hwi): New functions.
33116 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33117 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33118 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33119 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33120 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33121 (sext_hwi, zext_hwi): New functions.
33123 2013-04-03 Jeff Law <law@redhat.com>
33125 PR tree-optimization/56799
33126 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33127 back test for widening conversion erroneously dropped in prior change.
33129 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33132 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33133 instead of next_real_insn.
33135 2013-04-03 Marek Polacek <polacek@redhat.com>
33138 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33140 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33143 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33145 (thumb1_output_casesi): Likewise.
33146 (thumb2_output_casesi): Likewise.
33148 2013-04-03 Richard Biener <rguenther@suse.de>
33150 PR tree-optimization/56817
33151 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33153 (tree_unroll_loops_completely_1): ... new function to manually
33154 walk the loop tree, properly defering outer loops of unrolled
33155 loops to later iterations.
33157 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33159 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33160 (vectorizable_load): Likewise.
33161 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33162 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33164 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33166 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33169 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33171 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33173 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33175 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33177 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33179 PR tree-optimization/56790
33180 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33183 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33185 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33187 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33188 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33191 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33194 * tree.h (force_folding_builtin_constant_p): New decl.
33195 * builtins.c (force_folding_builtin_constant_p): New variable.
33196 (fold_builtin_constant_p): Fold immediately also if
33197 force_folding_builtin_constant_p.
33199 2013-04-03 Richard Biener <rguenther@suse.de>
33201 PR tree-optimization/56812
33202 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33203 DRs of the same interleaving chain are independent.
33205 2013-04-02 Jason Merrill <jason@redhat.com>
33207 * gdbinit.in (pbb): Use debug fn.
33209 2013-04-02 Lawrence Crowl <crowl@google.com>
33211 * sese.h (struct ivtype_map_elt_s): Remove unused.
33212 (extern debug_ivtype_map): Remove unused.
33213 (extern eq_ivtype_map_elts): Remove unused.
33214 * sese.c (debug_ivtype_map): Removed unused.
33215 (debug_ivtype_map_1): Removed unused.
33216 (debug_ivtype_elt): Remove unused.
33217 (eq_ivtype_map_elts): Remove unused.
33219 2013-04-02 Kai Tietz <ktietz@redhat.com>
33222 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33223 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33224 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33226 (legitimize_pe_coff_symbol): Likewise.
33227 (is_imported_p): New helper-function.
33228 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33229 for Windows x64 targets.
33230 (ix86_expand_prologue): Optimize for pe-coff targets.
33231 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33232 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33233 medium/large code-model.
33234 (legitimize_pic_address): Likewise.
33235 (legitimize_tls_address): Likewise.
33236 (ix86_expand_call): Likewise.
33237 (x86_output_mi_thunk): Likewise.
33238 (get_dllimport_decl): Add new beimport argument.
33239 (construct_plt_address): Don't assert for x64 pe-coff targets.
33240 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33242 (SYMBOL_FLAG_STUBVAR): New macro.
33243 (SYMBOL_REF_STUBVAR_P): Likewise.
33244 * config/i386/winnt.c (stub_list): New structure.
33245 (stub_head): New local variable.
33246 (i386_pe_record_stub): New function.
33247 (i386_pe_file_end): Emit refptr-stubs.
33249 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33251 PR rtl-optimization/56745
33252 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33253 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33256 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33257 and both of them are MEM_REFs, just compare first argument for
33258 equality and attempt to deal even with differing offsets.
33261 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33262 of gimple_clobber_p to be MEM_REF.
33263 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33264 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33265 after gimplification.
33266 * asan.c (get_mem_ref_of_assignment): Don't instrument
33267 gimple_clobber_p stmts.
33268 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33269 gimple_clobber_p stmt if they have MEM_REF lhs and
33270 are dead because of another gimple_clobber_p stmt.
33271 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33272 gimple_clobber_p stmts like debug stmts.
33273 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33274 that refer to unused VAR_DECLs or uninitialized values.
33275 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33276 gimple_clobber_p stmts if they refer to removed parameters.
33277 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33280 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33282 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33283 using SWI48 mode attribute.
33285 2013-04-02 Wei Mi <wmi@google.com>
33287 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33288 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33289 *<rotate_insn><mode>3_mask in i386.md.
33291 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33293 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33295 2013-04-02 Richard Biener <rguenther@suse.de>
33297 PR tree-optimization/56778
33298 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33299 Runtime alias tests are not supported for gather loads.
33300 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33301 stmts referenced from SSA operands before updating SSA form.
33303 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33304 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33306 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33307 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33308 * config/arm/cortex-a53.md: New file.
33309 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33310 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33311 * config/arm/arm.c (arm_issue_rate): Likewise.
33312 * config/arm/arm-tune.md: Regenerate
33313 * config/arm/arm-tables.opt: Regenerate.
33314 * config/arm/arm-cores.def: Add cortex-a53.
33316 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33318 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33321 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33323 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33324 scalar load/store operations using B/H registers.
33325 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33327 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33329 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33331 * config/aarch64/aarch64.c
33332 (aarch64_simd_scalar_immediate_valid_for_move): New.
33333 * config/aarch64/aarch64-protos.h
33334 (aarch64_simd_scalar_immediate_valid_for_move): New.
33335 * config/aarch64/constraints.md (Dh, Dq): New.
33336 * config/aarch64/iterators.md (hq): New.
33338 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33340 * reorg.c (get_branch_condition): Deal with conditional returns.
33341 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33343 2013-04-01 Wei Mi <wmi@google.com>
33345 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33346 Truncate operand 2 using %b asm operand modifier.
33347 (*<shift_insn><mode>3_mask): Ditto.
33348 (*<rotate_insn><mode>3_mask): Ditto.
33350 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33352 PR middle-end/56798
33353 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33355 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33357 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33359 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33361 2013-03-30 Lawrence Crowl <crowl@google.com>
33363 * dse.c (clear_alias_sets): Remove never set.
33364 (disqualified_clear_alias_sets): Remove never set.
33365 (clear_alias_mode_pool): Remove never set.
33366 (dse_step0): Remove condition that is never true.
33367 (canon_address): Remove condition that is never true.
33368 (dse_step7): Remove condition that is never true.
33369 (rest_of_handle_dse): Remove condition that is never true.
33370 (rest_of_handle_dse::did_global): Remove never read from above.
33371 (dse_step2_spill): Remove never called from above.
33372 (dse_step5_spill): Remove never called from above.
33374 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33376 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33377 JUMP_TABLE_DATA changes.
33378 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33379 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33380 (Insns) <jump_table_data>: New entry.
33381 * doc/tm.texi: Regenerate.
33383 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33385 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33386 for table jump at the end of a basic block using tablejump_p.
33387 * targhooks.c (default_invalid_within_doloop): Likewise.
33388 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33389 target hook implementation that is identical to the default hook.
33390 (rs6000_invalid_within_doloop): Remove.
33392 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33393 unused variable from tablejump_p call.
33395 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33396 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33397 (INSN_DELETED_P): Likewise.
33398 (emit_jump_table_data): New prototype.
33399 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33400 after 4th as unused.
33401 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33402 * sched-vis.c (print_insn): Likewise.
33403 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33404 insn for compatibility with back ends that use next_active_insn to
33405 identify jump table data.
33406 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33407 (remove_insn): Likewise.
33408 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33410 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33411 (emit_jump_table_data): New function.
33413 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33414 basic block, a JUMP_TABLE_DATA never is.
33415 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33416 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33417 off from code handling real insns.
33418 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33419 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33420 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33421 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33422 is not a NONDEBUG_INSN_P.
33423 * ira-costs.c (scan_one_insn): Likewise.
33424 * jump.c (mark_all_labels): Likewise.
33425 (mark_jump_label_1): Likewise.
33426 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33427 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33429 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33430 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33431 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33432 JUMP_TABLE_DATA_P insns.
33433 (calculate_elim_costs_all_insns): Likewise.
33434 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33435 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33436 (delete_output_reload): Code style fixups.
33437 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33438 insn flags on this non-insn.
33439 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33440 as scheduling barriers, for pre-change compatibility.
33441 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33442 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33444 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33445 redundant JUMP_TABLE_DATA_P test.
33446 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33447 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33448 (frv_for_each_packet): Likewise.
33449 * config/i386/i386.c (min_insn_size): Likewise.
33450 (ix86_avoid_jump_mispredicts): Likewise.
33451 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33452 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33453 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33454 (mips16_insn_length): Robustify.
33455 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33456 (mips16_split_long_branches): Likewise.
33457 * config/pa/pa.c (pa_combine_instructions): Likewise.
33458 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33459 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33460 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33461 as contributing to pool range lengths.
33462 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33463 Remove redundant JUMP_TABLE_DATA_P test.
33464 (sh_loop_align): Likewise.
33465 (split_branches): Likewise.
33466 (sh_insn_length_adjustment): Likewise.
33467 * config/spu/spu.c (get_branch_target): Likewise.
33469 2013-03-29 Jan Hubicka <jh@suse.cz>
33471 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33472 gcov streaming; stream hot bb threshold to ltrans.
33473 * predict.c (get_hot_bb_threshold): Break out from ....
33474 (maybe_hot_count_p): ... here.
33475 (set_hot_bb_threshold): New function.
33476 * lto-section-in.c (lto_section_name): Add profile.
33477 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33478 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33479 and data-streamer.h
33480 (histogram_entry): New structure.
33481 (histogram, histogram_pool): New global vars.
33482 (histogram_hash): New structure.
33483 (histogram_hash::hash): New method.
33484 (histogram_hash::equal): Likewise.
33485 (account_time_size): New function.
33486 (cmp_counts): New function.
33487 (dump_histogram): New function.
33488 (ipa_profile_generate_summary): New function.
33489 (ipa_profile_write_summary): New function.
33490 (ipa_profile_read_summary): New function.
33491 (ipa_profile): Decide on threshold.
33492 (pass_ipa_profile): Add ipa_profile_write_summary and
33493 ipa_profile_read_summary.
33494 * Makefile.in (ipa.o): Update dependencies.
33495 * lto-streamer.h (LTO_section_ipa_profile): New section.
33497 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33499 * tree.h (VAR_P): New.
33501 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33504 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33506 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33508 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33509 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33510 (control_flow_insn_p): Likewise.
33511 * cfgrtl.c (duplicate_insn_chain): Likewise.
33512 * final.c (get_attr_length_1): Likewise.
33513 (shorten_branches): Likewise.
33514 (final_scan_insn): Likewise.
33515 * function.c (instantiate_virtual_regs): Likewise.
33516 * gcse.c (insert_insn_end_basic_block): Likewise.
33517 * ira-costs.c (scan_one_insn): Likewise.
33518 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33519 * lra.c (check_rtl): Likewise.
33520 * reload1.c (elimination_costs_in_insn): Likewise.
33521 * reorg.c (follow_jumps): Likewise.
33523 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33524 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33525 (thumb_far_jump_used_p): Likewise.
33526 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33527 (workaround_speculation): Likewise.
33528 (add_sched_insns_for_speculation): Likewise.
33529 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33530 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33531 (frv_for_each_packet): Likewise.
33532 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33533 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33534 (final_emit_insn_group_barriers): Likewise.
33535 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33536 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33537 (mips16_insn_length): Likewise.
33538 * config/pa/pa.c (pa_reorg): Likewise.
33539 (pa_combine_instructions): Likewise.
33540 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33541 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33542 (sh_reorg): Likewise.
33543 (split_branches): Likewise.
33544 * config/spu/spu.c (get_branch_target): Likewise.
33546 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33549 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33551 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33552 Fix declaration name.
33554 2013-03-28 Lawrence Crowl <crowl@google.com>
33556 * graphds.h (struct graph.indicies): Remove unused.
33557 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33558 (SCOP_ORIGINAL_PDDRS): Remove unused.
33559 * sese.h (extern insert_loop_close_phis): Removed unused.
33560 (extern insert_guard_phis): Removed unused.
33561 (extern ivtype_map_elt_info): Removed unused.
33562 (new_ivtype_map_elt): Removed unused.
33563 * sese.c (ivtype_map_elt_info): Removed unused.
33565 2013-03-28 Lawrence Crowl <crowl@google.com>
33567 * Makefile.in: Add several missing include dependences.
33569 (test-dump.o): New. This object is not added to any executable,
33570 but is present for ad-hoc testing.
33572 (debug (const bitmap_head_def &)): New.
33573 (debug (const bitmap_head_def *)): New.
33575 (extern debug (const bitmap_head_def &)): New.
33576 (extern debug (const bitmap_head_def *)): New.
33578 (debug (edge_def &)): New.
33579 (debug (edge_def *)): New.
33581 (debug (basic_block_def &)): New.
33582 (debug (basic_block_def *)): New.
33584 (dump_node (const_tree, int, FILE *)): Correct source file.
33586 (debug (die_struct &)): New.
33587 (debug (die_struct *)): New.
33589 (extern debug (die_struct &)): New.
33590 (extern debug (die_struct *)): New.
33591 * gimple-pretty-print.c
33592 (debug (gimple_statement_d &)): New.
33593 (debug (gimple_statement_d *)): New.
33594 * gimple-pretty-print.h
33595 (extern debug (gimple_statement_d &)): New.
33596 (extern debug (gimple_statement_d *)): New.
33598 (debug (ira_allocno_copy &)): New.
33599 (debug (ira_allocno_copy *)): New.
33600 (debug (ira_allocno &)): New.
33601 (debug (ira_allocno *)): New.
33603 (extern debug (ira_allocno_copy &)): New.
33604 (extern debug (ira_allocno_copy *)): New.
33605 (extern debug (ira_allocno &)): New.
33606 (extern debug (ira_allocno *)): New.
33608 (debug (live_range &)): New.
33609 (debug (live_range *)): New.
33611 (debug (lra_live_range &)): New.
33612 (debug (lra_live_range *)): New.
33614 (debug (lra_live_range &)): New.
33615 (debug (lra_live_range *)): New.
33617 (debug (omega_pb_d &)): New.
33618 (debug (omega_pb_d *)): New.
33620 (extern debug (omega_pb_d &)): New.
33621 (extern debug (omega_pb_d *)): New.
33623 (debug (const rtx_def &)): New.
33624 (debug (const rtx_def *)): New.
33626 (debug_tree (tree): Move within file.
33627 (debug_raw (const tree_node &)): New.
33628 (debug_raw (const tree_node *)): New.
33629 (dump_tree_via_hooks (const tree_node *, int)): New.
33630 (debug (const tree_node &)): New.
33631 (debug (const tree_node *)): New.
33632 (debug_verbose (const tree_node &)): New.
33633 (debug_verbose (const tree_node *)): New.
33634 (debug_head (const tree_node &)): New.
33635 (debug_head (const tree_node *)): New.
33636 (debug_body (const tree_node &)): New.
33637 (debug_body (const tree_node *)): New.
33638 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33639 (debug (vec<tree, va_gc> &)): New.
33640 (debug (vec<tree, va_gc> *)): New.
33642 (extern debug (const rtx_def &)): New.
33643 (extern debug (const rtx_def *)): New.
33645 (debug_raw (simple_bitmap_def &)): New.
33646 (debug_raw (simple_bitmap_def *)): New.
33647 (debug (simple_bitmap_def &)): New.
33648 (debug (simple_bitmap_def *)): New.
33650 (extern debug (simple_bitmap_def &)): New.
33651 (extern debug (simple_bitmap_def *)): New.
33652 (extern debug_raw (simple_bitmap_def &)): New.
33653 (extern debug_raw (simple_bitmap_def *)): New.
33655 (debug (vinsn_def &)): New.
33656 (debug (vinsn_def *)): New.
33657 (debug_verbose (vinsn_def &)): New.
33658 (debug_verbose (vinsn_def *)): New.
33659 (debug (expr_def &)): New.
33660 (debug (expr_def *)): New.
33661 (debug_verbose (expr_def &)): New.
33662 (debug_verbose (expr_def *)): New.
33663 (debug (vec<rtx> &)): New.
33664 (debug (vec<rtx> *)): New.
33666 (extern debug (vinsn_def &)): New.
33667 (extern debug (vinsn_def *)): New.
33668 (extern debug_verbose (vinsn_def &)): New.
33669 (extern debug_verbose (vinsn_def *)): New.
33670 (extern debug (expr_def &)): New.
33671 (extern debug (expr_def *)): New.
33672 (extern debug_verbose (expr_def &)): New.
33673 (extern debug_verbose (expr_def *)): New.
33674 (extern debug (vec<rtx> &)): New.
33675 (extern debug (vec<rtx> *)): New.
33677 (_list_iter_cond_expr): Make inline instead of static.
33679 (debug (sreal &)): New.
33680 (debug (sreal *)): New.
33682 (extern debug (sreal &)): New.
33683 (extern debug (sreal *)): New.
33685 (extern debug_raw (const tree_node &)): New.
33686 (extern debug_raw (const tree_node *)): New.
33687 (extern debug (const tree_node &)): New.
33688 (extern debug (const tree_node *)): New.
33689 (extern debug_verbose (const tree_node &)): New.
33690 (extern debug_verbose (const tree_node *)): New.
33691 (extern debug_head (const tree_node &)): New.
33692 (extern debug_head (const tree_node *)): New.
33693 (extern debug_body (const tree_node &)): New.
33694 (extern debug_body (const tree_node *)): New.
33695 (extern debug (vec<tree, va_gc> &)): New.
33696 (extern debug (vec<tree, va_gc> *)): New.
33698 (debug (struct loop &)): New.
33699 (debug (struct loop *)): New.
33700 (debug_verbose (struct loop &)): New.
33701 (debug_verbose (struct loop *)): New.
33702 * tree-dump.c: Add header dependence.
33704 (extern debug (struct loop &)): New.
33705 (extern debug (struct loop *)): New.
33706 (extern debug_verbose (struct loop &)): New.
33707 (extern debug_verbose (struct loop *)): New.
33709 (debug (data_reference &)): New.
33710 (debug (data_reference *)): New.
33711 (debug (vec<data_reference_p> &)): New.
33712 (debug (vec<data_reference_p> *)): New.
33713 (debug (vec<ddr_p> &)): New.
33714 (debug (vec<ddr_p> *)): New.
33716 (extern debug (data_reference &)): New.
33717 (extern debug (data_reference *)): New.
33718 (extern debug (vec<data_reference_p> &)): New.
33719 (extern debug (vec<data_reference_p> *)): New.
33720 (extern debug (vec<ddr_p> &)): New.
33721 (extern debug (vec<ddr_p> *)): New.
33723 (debug (pt_solution &)): New.
33724 (debug (pt_solution *)): New.
33726 (extern debug (pt_solution &)): New.
33727 (extern debug (pt_solution *)): New.
33729 (debug (_var_map &)): New.
33730 (debug (_var_map *)): New.
33731 (debug (tree_live_info_d &)): New.
33732 (debug (tree_live_info_d *)): New.
33734 (extern debug (_var_map &)): New.
33735 (extern debug (_var_map *)): New.
33736 (extern debug (tree_live_info_d &)): New.
33737 (extern debug (tree_live_info_d *)): New.
33739 2013-03-28 Jan Hubicka <jh@suse.cz>
33741 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33743 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33745 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33746 record only when desired or required.
33748 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33750 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33751 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33753 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33755 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33756 (*andsi3_compare0_uxtw): New pattern.
33757 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33758 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33760 2013-03-28 Jan Hubicka <jh@suse.cz>
33762 * data-streamer-in.c (streamer_read_gcov_count): New function.
33763 * gimple-streamer-out.c: Include value-prof.h.
33764 (output_gimple_stmt): Output histogram.
33765 (output_bb): Use streamer_write_gcov_count.
33766 * value-prof.c: Include data-streamer.h
33767 (dump_histogram_value): Add HIST_TYPE_MAX.
33768 (stream_out_histogram_value): New function.
33769 (stream_in_histogram_value): New function.
33770 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33771 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33772 * data-streamer-out.c (streamer_write_gcov_count): New function.
33773 (streamer_write_gcov_count_stream): New function.
33774 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33775 (lto_output_node): Likewise.
33776 (input_node, input_edge): Likewise.
33777 * lto-streamer-out.c (output_cfg): Update streaming.
33778 * lto-streamer-in.c (input_cfg): Likewise.
33779 * data-streamer.h (streamer_write_gcov_count,
33780 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33781 * gimple-streamer-in.c: Include value-prof.h
33782 (input_gimple_stmt): Input histograms.
33783 (input_bb): Update profile streaming.
33785 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33787 * genmodes.c (emit_max_int): New function.
33788 (emit_insn_modes_h): Added call to emit_max_function.
33789 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33791 * machmode.def: Fixed comment.
33793 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33795 * combine.c (try_combine): Removed useless assert.
33796 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33798 2013-03-28 Marek Polacek <polacek@redhat.com>
33799 Richard Biener <rguenther@suse.de>
33801 PR tree-optimization/56695
33802 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33803 build signed result of a vector comparison.
33804 * tree-cfg.c (verify_gimple_comparison): Check that a result
33805 of a vector comparison has signed type.
33807 2013-03-28 Richard Biener <rguenther@suse.de>
33809 PR tree-optimization/37021
33810 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33811 do not restrict gaps between groups.
33812 * tree-vect-stmts.c (vectorizable_load): Properly account for
33813 a gap between groups.
33815 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33817 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33818 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33821 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33823 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33824 * doc/extend.texi (Named Address Spaces): Ditto.
33825 (Variable Attributes): Ditto.
33827 2013-03-27 Kai Tietz <ktietz@redhat.com>
33829 * config.build: Add support for cygwin x64 target.
33830 * config.gcc: Likewise.
33831 * config.host: Likewise.
33832 * configure.ac: Likewise
33833 * configure: Regenerated.
33835 2013-03-27 Kai Tietz <ktietz@redhat.com>
33837 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33838 * config/i386/t-cygwin-w64: New file.
33839 * config/i386/cygwin-w64.h: New file.
33840 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33841 and add support for x64-cygwin target.
33842 (CPP_SPEC): Likewise.
33843 (CXX_WRAP_SPEC_LIST): Undefine before define.
33844 (LIBGCJ_SONAME): Use 15 as version.
33846 2013-03-27 Richard Biener <rguenther@suse.de>
33848 PR tree-optimization/56716
33849 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33850 dumping for ref nodes.
33852 2013-03-27 Martin Jambor <mjambor@suse.cz>
33854 PR tree-optimization/55334
33855 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33856 restricted pointers to arrays.
33858 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33860 * Makefile.in (.SUFFIXES): Add .cc.
33861 (.c.o): Apply same recipe for implicit rule .cc.o.
33863 2013-03-27 Richard Biener <rguenther@suse.de>
33865 PR tree-optimization/37021
33866 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33867 REALPART/IMAGPART_EXPRs around the supported refs.
33868 * tree-ssa-structalias.c (find_func_aliases): Assume that
33869 floating-point values are not used to transfer pointers.
33871 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33873 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33874 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33875 * doc/tm.texi: Regenerate.
33876 * targhooks.h (default_has_ifunc_p): New.
33877 * targhooks.c (default_has_ifunc_p): Ditto.
33878 * config/linux-protos.h: New file.
33879 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33880 hook for linux which disables support of indirect functions in android.
33881 * config/linux-android.c: New file.
33882 * config/t-linux-android.c: Ditto.
33883 * config.gcc: Added new object file linux-android.o.
33884 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33885 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33886 * varasm.c (do_assemble_alias): Likewise.
33887 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33888 doesn't support indirect functions.
33889 * configure: Regenerate.
33891 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33894 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33895 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33898 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33900 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33902 2013-03-27 Terry Guo <terry.guo@arm.com>
33904 * config/arm/arm-cores.def: Added core cortex-r7.
33905 * config/arm/arm-tune.md: Regenerated.
33906 * config/arm/arm-tables.opt: Regenerated.
33907 * doc/invoke.texi: Added entry for core cortex-r7.
33909 2013-03-27 Walter Lee <walt@tilera.com>
33911 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33912 double-decrement of next_scratch_regno.
33914 2013-03-27 Walter Lee <walt@tilera.com>
33916 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33918 (insn_v1mulus): Ditto.
33919 (insn_v2muls): Ditto.
33921 2013-03-27 Walter Lee <walt@tilera.com>
33923 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33924 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33926 2013-03-27 Walter Lee <walt@tilera.com>
33928 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33929 (*sibcall_value): Ditto.
33931 2013-03-27 Walter Lee <walt@tilera.com>
33933 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33934 (insn_mnz_v8qi): ... this ...
33935 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33937 (insn_v<n>mnz): Replaced by ...
33938 (insn_v1mnz): ... this ...
33939 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33941 (insn_mz_<mode>): Replaced by ...
33942 (insn_mz_v8qi): ... this ...
33943 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33945 (insn_v<n>mz): Replaced by ...
33946 (insn_v1mz): ... this ...
33947 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33950 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33952 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33954 2013-03-26 Roland McGrath <mcgrathr@google.com>
33956 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33957 than fprintf with a non-constant, non-format string.
33959 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33961 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33962 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33963 operand 0 predicate.
33964 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33965 attribute. Use general_x64nomem_operand as operand 1 predicate.
33966 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33967 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33968 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33969 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33970 (mov<mode>_insv_1): Remove expander. Merge insn with
33971 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33972 Use general_x64nomem_operand as operand 1 predicate.
33973 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33974 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33975 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33976 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33977 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33978 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33979 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33980 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33981 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33982 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33983 (general_x64nomem_operand): Ditto.
33985 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33987 * config/rtems.opt: Add -pthread option.
33989 2013-03-26 Richard Biener <rguenther@suse.de>
33991 * alias.c (find_base_term): Avoid redundant and not used recursion.
33992 (base_alias_check): Get the initial base term from the caller.
33993 (true_dependence_1): Compute and pass base terms to base_alias_check.
33994 (write_dependence_p): Likewise.
33995 (may_alias_p): Likewise.
33997 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33999 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34000 PC-relative load in SI modes and above only.
34002 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34004 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34005 * config/arm/iwmmxt.md (WCGR0): Update.
34006 (WCGR1, WCGR2, WCGR3): Likewise.
34008 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34010 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34011 Use x64 and nox64 isa attributes.
34013 2013-03-26 Richard Biener <rguenther@suse.de>
34015 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34016 alignment computations and rely on get_object_alignment_1
34017 for the !TYPE_P case.
34018 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34020 2013-03-26 Walter Lee <walt@tilera.com>
34022 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34023 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34025 2013-03-25 Jeff Law <law@redhat.com>
34027 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34028 check for INTEGRAL_TYPE_P that was missing due to checking in
34029 wrong version of prior patch.
34031 2013-03-25 Walter Lee <walt@tilera.com>
34033 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34034 TILEGX_INSN_SHUFFLEBYTES1.
34035 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34037 (tilegx_builtins): Ditto.
34038 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34040 2013-03-25 Walter Lee <walt@tilera.com>
34042 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34043 (floatunssisf2): New pattern.
34044 (floatsidf2): New pattern.
34045 (floatunssidf2): New pattern.
34047 2013-03-25 Walter Lee <walt@tilera.com>
34049 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34050 tests for constraint J, K, N, P.
34052 2013-03-25 Walter Lee <walt@tilera.com>
34054 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34055 Use indirect/pcrel encoding.
34056 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34059 2013-03-25 Steve Ellcey <sellcey@mips.com>
34061 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34062 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34063 * config/mips/mips.c (mips_option_override): Set IMADD default.
34064 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34065 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34066 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34067 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34068 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34070 2013-03-25 Jeff Law <law@redhat.com>
34072 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34073 slightly to avoid creating and folding useless trees. Simplify
34074 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34076 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34078 * config/i386/i386.md (*zero_extendsidi2): Merge with
34079 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34080 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34081 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34082 targets. Clarify comment.
34084 2013-03-25 Martin Jambor <mjambor@suse.cz>
34086 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34087 pass-through jump functions differently.
34088 (ipa_read_jump_function): Likewise. Also use setter functions to set
34091 2013-03-25 Martin Jambor <mjambor@suse.cz>
34093 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34094 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34096 (ipa_get_indirect_edge_target): New function.
34097 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34098 ipa_get_indirect_edge_target. Update all callers.
34099 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34100 ipa_get_indirect_edge_target_1 instead of calling
34101 ipa_get_indirect_edge_target.
34102 (create_specialized_node): Pass aggvlas to
34103 ipcp_discover_new_direct_edges.
34105 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34107 * config/arm/arm.md (f_sels, f_seld): New types.
34108 (*cmov<mode>): New pattern.
34109 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34112 2013-03-25 Kai Tietz <ktietz@redhat.com>
34114 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34115 POSIX-printf for mingw-hosted builds.
34117 2013-03-25 Richard Biener <rguenther@suse.de>
34119 PR middle-end/56694
34120 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34121 must-not-throw stmt location.
34123 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34125 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34126 Emit load-acquire versions when acq is true.
34127 (arm_emit_store_exclusive): Add rel parameter.
34128 Emit store-release versions when rel is true.
34129 (arm_split_compare_and_swap): Use acquire-release instructions
34131 of barriers when appropriate.
34132 (arm_split_atomic_op): Likewise.
34133 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34134 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34135 (VUNSPEC_SLX): Likewise.
34136 (VUNSPEC_LDA): Likewise.
34137 (VUNSPEC_STL): Likewise.
34138 * config/arm/sync.md (atomic_load<mode>): New pattern.
34139 (atomic_store<mode>): Likewise.
34140 (arm_load_acquire_exclusive<mode>): Likewise.
34141 (arm_load_acquire_exclusivesi): Likewise.
34142 (arm_load_acquire_exclusivedi): Likewise.
34143 (arm_store_release_exclusive<mode>): Likewise.
34145 2013-03-25 Catherine Moore <clm@codesourcery.com>
34147 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34148 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34149 * config/mip/predicates.md (lwsp_swsp_operand,
34150 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34151 sb16_operand, db4_operand, db7_operand, ib3_operand,
34152 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34153 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34154 andi16_operand): New predicates.
34155 * config/mips/mips.md (compression): New attribute.
34156 (enabled): New attribute.
34157 (length): Consider compression in computing length.
34158 (shift_compression): New code attribute.
34159 (*add<mode>3): New operands. Record compression.
34160 (sub<mode>3): Likewise.
34161 (one_cmpl<mode>2): Likewise.
34162 (*and<mode>3): Likewise.
34163 (*ior<mode>3): Likewise.
34164 (unnamed pattern for xor): Likewise.
34165 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34166 (*<optab><mode>3): Likewise.
34167 (*mov<mode>_internal: Likewise.
34168 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34169 (mips_unsigned_immediate_p): New.
34170 (umips_lwsp_swsp_address_p): New.
34171 (m16_based_address_p): New.
34172 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34173 (mips_unsigned_immediate_p): New prototype.
34174 (lwsp_swsp_address_p): New prototype.
34175 (m16_based_address_p): New prototype.
34176 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34177 (mips_signed_immediate_p): New function.
34178 (m16_based_address_p): New function.
34179 (lwsp_swsp_address_p): New function.
34180 (mips_print_operand_punctuation): Recognize short delay slot insns
34181 for microMIPS.add<mode>3"
34183 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34186 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34187 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34189 2013-03-25 Richard Biener <rguenther@suse.de>
34191 PR tree-optimization/56689
34192 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34195 2013-03-25 Richard Biener <rguenther@suse.de>
34197 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34199 (memory_references): Likewise.
34200 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34201 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34202 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34203 (gather_mem_refs_in_loops): Fold into ...
34204 (analyze_memory_references): ... this. Move initialization
34205 to tree_ssa_lim_initialize.
34206 (fill_always_executed_in): Rename to ...
34207 (fill_always_executed_in_1): ... this.
34208 (fill_always_executed_in): Move contains_call computation to
34209 this new function from ...
34210 (tree_ssa_lim_initialize): ... here.
34211 (tree_ssa_lim): Call fill_always_executed_in.
34213 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34215 * postreload.c (reload_combine): Fix code detecting returns.
34217 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34219 * function.c (emit_use_return_register_into_block): On cc0 targets,
34220 do not emit the sequence between cc0 setter and user.
34222 2013-03-25 Kai Tietz <ktietz@redhat.com>
34224 * config/i386/predicates.md (local_symbolic_operand): Interpret
34225 dll-imported symbols as none-local.
34227 2013-03-25 Richard Biener <rguenther@suse.de>
34229 * tree-ssa-loop-im.c (struct depend): Remove.
34230 (struct lim_aux_data): Make depends a vec of gimples.
34231 (free_lim_aux_data): Adjust.
34232 (add_dependency): Likewise.
34233 (set_level): Likewise.
34235 2013-03-25 Richard Biener <rguenther@suse.de>
34237 PR middle-end/56434
34238 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34239 the pointer returned by calls with ECF_MALLOC set.
34241 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34243 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34245 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34247 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34248 using MMXMODE mode iterator.
34249 (*move<mode>_internal): Merge with *movv2sf_internal and
34250 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34252 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34254 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34255 (record_last_mem_set_info): Likewise.
34257 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34258 of XNEWVEC followed by memset.
34259 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34261 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34263 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34264 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34265 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34266 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34267 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34268 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34269 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34270 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34271 BARRIER_P instead of GET_CODE.
34273 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34275 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34276 inaccuracy in the probing code.
34278 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34279 (ctrapdi4): Likewise.
34281 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34283 * calls.c (expand_call): Add missing guard to code handling return
34284 of non-BLKmode structures in MSB.
34285 * function.c (expand_function_end): Likewise.
34287 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34289 * combine.c (try_combine): Adjust comment. Do not add the set of
34290 insn #0 if the destination indirectly is set or dies in insn #2.
34291 Tidy up code to distribute a new note.
34293 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34295 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34296 also for alternatives 16 and 17.
34298 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34300 * config/i386/sse.md (*mov<mode>_internal): Merge with
34301 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34302 Emit insn template depending on type attribute. Use
34303 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34304 movd instead of movq mnemonic for interunit moves. Rewrite mode
34305 attribute calculation. Remove unit attribute calculation.
34306 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34307 Set prefix_data16 attribute for DImode ssemov types.
34308 Use Ym instead of y for SSE-MMX conversion alternatives.
34309 Reorder operand constraints.
34311 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34313 * df.h (df_insn_delete): Adjust prototype.
34314 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34315 and let it decide whether mark the basic block dirty.
34316 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34317 * df-scan.c (df_insn_info_delete): New helper function, split
34318 off from df_insn_delete.
34319 (df_scan_free_bb_info): Use it.
34320 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34322 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34323 that the insn is actually an insn and it has a non-NULL basic block.
34324 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34326 2013-03-22 Richard Biener <rguenther@suse.de>
34328 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34330 (mem_ref_alloc): Do not allocate them.
34331 (refs_independent_p): Do not query or maintain a cache.
34333 2013-03-22 Richard Biener <rguenther@suse.de>
34335 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34336 (gather_mem_refs_in_loops): Do not compute it.
34337 (analyze_memory_references): Do not allocate it.
34338 (tree_ssa_lim_finalize): Do not free it.
34339 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34341 2013-03-22 Richard Biener <rguenther@suse.de>
34343 * is-a.h (as_a): Use gcc_checking_assert.
34345 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34347 * config/aarch64/aarch64.c (aarch64_print_operand): New
34348 format specifier for printing a constant in hex.
34349 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34350 format specifier for printing second operand.
34352 2013-03-22 Richard Biener <rguenther@suse.de>
34354 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34356 (gather_mem_refs_in_loops): Perform store accumulation here.
34357 (create_vop_ref_mapping_loop): Remove.
34358 (create_vop_ref_mapping): Likewise.
34359 (analyze_memory_references): Initialize refs_stored_in_loop.
34360 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34361 (record_indep_loop): Remove.
34362 (record_dep_loop): New function.
34363 (ref_indep_loop_p_1): Adjust to only walk over references
34364 in the loop, not its subloops.
34365 (ref_indep_loop_p): Rename to ...
34366 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34367 maintaining a more fine-grained cache.
34368 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34369 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34371 2013-03-22 Richard Biener <rguenther@suse.de>
34373 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34374 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34375 aggregate mem_ref_loc.
34376 (free_mem_ref_locs): Inline into ...
34377 (memref_free): ... this and adjust.
34378 (mem_ref_alloc): Adjust.
34379 (mem_ref_locs_alloc): Remove.
34380 (record_mem_ref_loc): Adjust.
34381 (get_all_locs_in_loop): Rewrite into ...
34382 (for_all_locs_in_loop): ... this iterator.
34383 (rewrite_mem_ref_loc): New functor.
34384 (rewrite_mem_refs): Use for_all_locs_in_loop.
34385 (sm_set_flag_if_changed): New functor.
34386 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34387 (ref_always_accessed): New functor.
34388 (ref_always_accessed_p): Use for_all_locs_in_loop.
34390 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34392 * tree-pass.h (PROP_gimple_lvec): New.
34393 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34394 (init_optimization_passes): Move pass_lower_vector.
34395 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34397 (pass_lower_vector): Provide PROP_gimple_lvec.
34398 (pass_lower_vector_ssa): Likewise.
34399 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34401 2013-03-21 Mark Wielaard <mjw@redhat.com>
34403 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34405 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34407 * config/i386/i386.md (*movdi_internal): Disparage slightly
34408 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34409 conversion alternatives.
34411 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34413 PR middle-end/48087
34414 * diagnostic.def (DK_WERROR): New kind.
34415 * diagnostic.h (werrorcount): Define.
34416 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34417 promoted to DK_ERROR, increment DK_WERROR counter instead of
34419 * toplev.c (toplev_main): Call print_ignored_options even if
34420 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34421 even if just werrorcount is non-zero.
34424 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34426 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34427 (string_cst_pool_decl): New function.
34428 (optimize_one_addr_into_implicit_ptr): New function.
34429 (resolve_addr_in_expr): Optimize DWARF location expression
34430 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34431 which doesn't live in memory, but has DW_AT_location or
34432 DW_AT_const_value, or refers to a string literal, into
34433 DW_OP_GNU_implicit_pointer.
34434 (optimize_location_into_implicit_ptr): New function.
34435 (resolve_addr): If removing DW_AT_location of a variable because
34436 it was DW_OP_addr of address of the variable, but the variable doesn't
34437 live in memory, try to emit const value attribute for the initializer.
34439 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34441 * tree.h (VECTOR_TYPE_P): New macro.
34442 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34443 TYPE_MODE): Use it.
34444 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34445 VEC_COND_EXPR cannot be lvalues.
34446 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34448 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34450 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34451 Restrict the transformation to equal modes.
34453 2013-03-21 Richard Biener <rguenther@suse.de>
34455 PR tree-optimization/39326
34456 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34457 (MEM_ANALYZABLE): Adjust.
34458 (record_mem_ref_loc): Move bitmap ops ...
34459 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34460 unanalyzable refs, do not record locations for it.
34461 (analyze_memory_references): Allocate ref zero as shared
34463 (refs_independent_p): Do not test for unanalyzed mems here.
34464 (ref_indep_loop_p_1): Special-case disambiguation against
34465 the unanalyzed ref.
34466 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34468 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34470 * config/arm/arm-protos.h (tune_params): Add
34471 prefer_neon_for_64bits field.
34472 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34473 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34474 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34475 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34476 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34477 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34478 (arm_option_override): Handle -mneon-for-64bits new option.
34479 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34480 (prefer_neon_for_64bits): Declare new variable.
34481 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34482 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34483 (arch_enabled): Handle new arch types. Remove support for onlya8
34485 (one_cmpldi2): Use new arch names.
34486 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34487 * config/arm/arm.opt (mneon-for-64bits): Add option.
34488 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34489 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34490 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34492 * doc/invoke.texi (-mneon-for-64bits): Document.
34494 2013-03-21 Richard Biener <rguenther@suse.de>
34496 PR tree-optimization/39326
34497 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34498 (sort_bbs_in_loop_postorder_cmp): New function.
34499 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34501 2013-03-21 Richard Biener <rguenther@suse.de>
34503 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34504 (vect_insert_into_interleaving_chain): Likewise.
34505 (vect_drs_dependent_in_basic_block): Inline ...
34506 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34508 (vect_analyze_data_ref_dependence): ... here. Simplify.
34509 (vect_check_interleaving): Simplify.
34510 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34511 (vect_slp_analyze_data_ref_dependences): ... this new function.
34512 (dr_group_sort_cmp): New function.
34513 (vect_analyze_data_ref_accesses): Compute data-reference groups
34514 here instead of in vect_analyze_data_ref_dependence. Use
34515 a more efficient algorithm.
34516 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34517 vect_slp_analyze_data_ref_dependences. Call
34518 vect_analyze_data_ref_accesses earlier.
34519 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34520 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34521 (vect_slp_analyze_data_ref_dependences): New prototype.
34523 2013-03-21 Richard Biener <rguenther@suse.de>
34525 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34526 ref is stored in the loop.
34527 (find_refs_for_sm): Walk only over all stores.
34528 (store_motion_loop): Allocate from lim_bitmap_obstack.
34529 (store_motion): Likewise.
34531 2013-03-21 Richard Biener <rguenther@suse.de>
34533 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34534 Update virtual SSA form.
34536 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34538 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34539 * configure: Regenerate.
34540 * config.in: Regenerate.
34541 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34542 if !HAVE_LD_EH_FRAME_CIEV3.
34544 2013-03-21 Richard Biener <rguenther@suse.de>
34546 * tree-cfg.c (verify_expr_no_block): New function.
34547 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34548 nor DECL_VALUE_EXPR have locations with associated blocks.
34549 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34550 (clear_unused_block_pointer): Remove code dealing with
34551 blocks in DECL_DEBUG_EXPR locations.
34553 2013-03-21 Richard Biener <rguenther@suse.de>
34555 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34556 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34557 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34558 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34559 instead of DECL_DEBUG_EXPR_IS_FROM.
34560 * gimplify.c (gimplify_modify_expr): Likewise.
34561 * tree-cfg.c (verify_expr_location_1): Likewise.
34562 * tree-complex.c (create_one_component_var): Likewise.
34563 * tree-sra.c (create_access_replacement): Likewise.
34564 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34565 (clear_unused_block_pointer): Likewise.
34566 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34567 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34568 * var-tracking.c (var_debug_decl): Likewise.
34569 (track_expr_p): Likewise.
34570 * tree-inline.c (add_local_variables): Likewise. Set
34571 DECL_HAS_DEBUG_EXPR_P after copying it.
34572 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34573 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34575 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34578 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34579 * configure: Regenerate.
34580 * config.in: Regenerate.
34581 * config/i386/i386.md (*movdf_internal): Use
34582 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34583 movd instead of movq mnemonic for interunit moves.
34584 (*movdi_internal): Ditto.
34586 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34588 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34589 (abd<mode>_3): New pattern.
34590 (aba<mode>_3): New pattern.
34591 (fabd<mode>_3): New pattern.
34593 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34595 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34596 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34597 occurrence of REGISTER_PREFIX as its empty string.
34599 2013-03-20 Jeff Law <law@redhat.com>
34601 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34602 addititional equivalences for equality comparisons between an SSA_NAME
34603 and a constant where the SSA_NAME was set from a widening conversion.
34605 2013-03-20 Walter Lee <walt@tilera.com>
34607 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34609 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34611 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34612 depending on type attribute.
34613 (*movti_internal): Ditto.
34614 (*movtf_internal): Ditto.
34615 (*movxf_internal): Ditto.
34616 (*movdf_internal): Ditto.
34617 (*movsf_internal): Ditto.
34619 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34621 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34622 maybe_vex for sselog1 and ssemov types.
34623 (*movdi_internal): Reorder operand constraints.
34624 (*movsi_internal): Ditto. Set prefix attribute to
34625 maybe_vex for sselog1 and ssemov types.
34626 (*movtf_internal): Set prefix attribute to maybe_vex
34627 for sselog1 and ssemov types.
34628 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34629 DImode ssemov types. Reorder operand constraints.
34630 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34631 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34632 attribute for SImode ssemov types. Reorder operand constraints.
34634 2013-03-20 Martin Jambor <mjambor@suse.cz>
34636 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34637 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34639 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34641 * config/rs6000/predicates.md (indexed_address, update_address_mem
34642 update_indexed_address_mem): New predicates.
34643 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34644 attribute for load/store instructions.
34645 * config/rs6000/dfp.md (movsd_store): Likewise.
34646 (movsd_load): Likewise.
34647 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34648 (unnamed HI->DI extend define_insn): Likewise.
34649 (unnamed SI->DI extend define_insn): Likewise.
34650 (unnamed QI->SI extend define_insn): Likewise.
34651 (unnamed QI->HI extend define_insn): Likewise.
34652 (unnamed HI->SI extend define_insn): Likewise.
34653 (unnamed HI->SI extend define_insn): Likewise.
34654 (extendsfdf2_fpr): Likewise.
34655 (movsi_internal1): Likewise.
34656 (movsi_internal1_single): Likewise.
34657 (movhi_internal): Likewise.
34658 (movqi_internal): Likewise.
34659 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34660 attribute for load/store instructions.
34661 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34663 (mov<mode>_softfloat): Likewise.
34664 (mov<mode>_hardfloat32): Likewise.
34665 (mov<mode>_hardfloat64): Likewise.
34666 (mov<mode>_softfloat64): Likewise.
34667 (movdi_internal32): Likewise.
34668 (movdi_internal64): Likewise.
34669 (probe_stack_<mode>): Likewise.
34671 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34673 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34674 floating point, and decimal floating point to reload iterator.
34676 * config/rs6000/constraints.md (wl constraint): New constraints to
34677 return FLOAT_REGS if certain options are used to reduce the number
34678 of separate patterns that exist in the file.
34679 (wx constraint): Likewise.
34680 (wz constraint): Likewise.
34682 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34683 -mdebug=reg, print wg, wl, wx, and wz constraints.
34684 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34685 Initialize the reload functions for 64-bit binary/decimal floating
34687 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34688 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34689 create the buffer on the stack to overcome not having a 32-bit
34691 (rs6000_emit_move): Likewise.
34692 (rs6000_secondary_memory_needed_rtx): Likewise.
34693 (rs6000_alloc_sdmode_stack_slot): Likewise.
34694 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34695 via xxlxor, just like DFmode 0.0.
34697 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34698 define as 1 if we are running on a power7 or newer.
34699 (enum r6000_reg_class_enum): Add new constraints.
34701 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34702 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34703 with other moves by using conditional constraits (wg). Use LFIWZX
34704 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34705 (movsd splitter): Likewise.
34706 (movsd_hardfloat): Likewise.
34707 (movsd_softfloat): Likewise.
34709 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34710 binary and decimal floating point moves.
34711 (fmove_ok): New attributes to combine binary and decimal floating
34712 point moves, and to combine power6x (mfpgpr) moves along normal
34714 (real_value_to_target): Likewise.
34715 (f32_lr): Likewise.
34716 (f32_lm): Likewise.
34717 (f32_li): Likewise.
34718 (f32_sr): Likewise.
34719 (f32_sm): Likewise.
34720 (f32_si): Likewise.
34721 (movsf): Combine binary and decimal floating point moves. Combine
34722 power6x (mfpgpr) moves with other moves by using conditional
34723 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34724 (mov<mode> for SFmode/SDmode); Likewise.
34725 (SFmode/SDmode splitters): Likewise.
34726 (movsf_hardfloat): Likewise.
34727 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34728 (movsf_softfloat): Likewise.
34729 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34731 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34732 wx and wz constraints.
34734 * config/rs6000/constraints.md (wg constraint): New constraint to
34735 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34737 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34740 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34741 -mdebug=reg, print wg, wl, wx, and wz constraints.
34742 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34743 Initialize the reload functions for 64-bit binary/decimal floating
34745 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34746 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34747 create the buffer on the stack to overcome not having a 32-bit
34749 (rs6000_emit_move): Likewise.
34750 (rs6000_secondary_memory_needed_rtx): Likewise.
34751 (rs6000_alloc_sdmode_stack_slot): Likewise.
34752 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34753 via xxlxor, just like DFmode 0.0.
34755 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34756 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34757 with other moves by using conditional constraits (wg). Use LFIWZX
34758 and STFIWX for loading SDmode on power7.
34759 (movdd splitters): Likewise.
34760 (movdd_hardfloat32): Likewise.
34761 (movdd_softfloat32): Likewise.
34762 (movdd_hardfloat64_mfpgpr): Likewise.
34763 (movdd_hardfloat64): Likewise.
34764 (movdd_softfloat64): Likewise.
34766 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34767 64-bit binary and decimal floating point moves.
34768 (FMOVE64X): Likewise.
34769 (movdf): Combine 64-bit binary and decimal floating point moves.
34770 Combine power6x (mfpgpr) moves with other moves by using
34771 conditional constraits (wg).
34772 (mov<mode> for DFmode/DDmode): Likewise.
34773 (DFmode/DDmode splitters): Likewise.
34774 (movdf_hardfloat32): Likewise.
34775 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34776 (movdf_softfloat32): Likewise.
34777 (movdf_hardfloat64_mfpgpr): Likewise.
34778 (movdf_hardfloat64): Likewise.
34779 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34780 (movdf_softfloat64): Likewise.
34781 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34782 (reload_<mode>_load): Move to later in the file so they aren't in
34783 the middle of the floating point move insns.
34784 (reload_<mode>_store): Likewise.
34786 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34790 constraint if -mdebug=reg.
34791 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34792 Enable using dd reload support if needed.
34794 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34795 binary and decimal floating point moves in rs6000.md.
34796 (movtd_internal): Likewise.
34798 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34799 decimal floating point moves.
34801 (movtf_internal): Likewise.
34802 (mov<mode>_internal, TDmode/TFmode): Likewise.
34803 (movtf_softfloat): Likewise.
34804 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34806 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34807 movdi_internal64, using wg constraint for move direct operations.
34808 (movdi_internal64): Likewise.
34810 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34811 MODES_TIEABLE_P for selected modes. Print the numerical value of
34812 the various virtual registers. Use GPR/FPR first/last values,
34813 instead of hard coding the register numbers. Print which modes
34814 have reload functions registered.
34815 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34816 settings before/after setting cpu, target and subtarget settings.
34817 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34818 and for secondary reload failures in rs6000_secondary_reload_inner.
34819 (rs6000_secondary_reload_fail): Likewise.
34820 (rs6000_secondary_reload_inner): Likewise.
34822 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34823 macros for first/last GPR and FPR registers.
34824 (LAST_GPR_REGNO): Likewise.
34825 (FIRST_FPR_REGNO): Likewise.
34826 (LAST_FPR_REGNO): Likewise.
34828 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34829 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34830 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34831 (vcond<mode><mode>): Likewise.
34832 (vcondu<mode><mode>): Likewise.
34833 (vector_gtu<mode>): Likewise.
34834 (vector_gte<mode>): Likewise.
34835 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34836 to prevent the compiler from converting DImode operations to TImode.
34837 (ior<mode>3): Likewise.
34838 (and<mode>3): Likewise.
34839 (one_cmpl<mode>2): Likewise.
34840 (nor<mode>3): Likewise.
34841 (andc<mode>3): Likewise.
34843 * config/rs6000/constraints.md (wt constraint): New constraint
34844 that returns VSX_REGS if TImode is allowed in VSX registers.
34846 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34847 constant under VSX.
34849 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34850 similar to TImode, but it is restricted to being in the GPRs.
34852 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34853 TImode to occupy a single VSX register.
34855 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34856 -mvsx-timode for power7/power8.
34857 (power7 cpu): Likewise.
34858 (power8 cpu): Likewise.
34860 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34861 sure that TFmode/TDmode take up two registers if they are ever
34862 allowed in the upper VSX registers.
34863 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34865 (rs6000_init_hard_regno_mode_ok): Likewise.
34866 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34867 constraint. Print if LRA is turned on.
34868 (rs6000_option_override_internal): Give an error if -mvsx-timode
34869 and VSX is not enabled.
34870 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34871 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34872 to reg+offset addressing. Use PTImode when checking offset
34873 addresses for validity.
34874 (reg_offset_addressing_ok_p): Likewise.
34875 (rs6000_legitimate_offset_address_p): Likewise.
34876 (rs6000_legitimize_address): Likewise.
34877 (rs6000_legitimize_reload_address): Likewise.
34878 (rs6000_legitimate_address_p): Likewise.
34879 (rs6000_eliminate_indexed_memrefs): Likewise.
34880 (rs6000_emit_move): Likewise.
34881 (rs6000_secondary_reload): Likewise.
34882 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34883 reloads to fpr registers to continue to use reg+offset addressing,
34884 but 64-bit reloads to altivec registers need reg+reg addressing.
34885 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34886 it. Treat LO_SUM like a PLUS operation.
34887 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34888 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34889 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34890 registers to share a register with a smaller sized type, since VSX
34891 puts scalars in the upper 64-bits.
34892 (print_operand): Add support for PTImode.
34893 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34894 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34895 registers, but don't have arithmetic support.
34896 (rs6000_memory_move_cost): Add test for VSX.
34897 (rs6000_opt_masks): Add -mvsx-timode.
34899 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34902 (VSr): Use wt constraint for TImode.
34903 (VSv): Drop TImode support.
34904 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34905 (vsx_movti_64bit): Likewise.
34906 (vsx_movti_32bit): Likewise.
34907 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34908 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34909 one '?' on the appropriate output constraint. Do not allow TImode
34910 logical operations on 32-bit systems.
34911 (vsx_ior<mode>3): Likewise.
34912 (vsx_xor<mode>3): Likewise.
34913 (vsx_one_cmpl<mode>2): Likewise.
34914 (vsx_nor<mode>3): Likewise.
34915 (vsx_andc<mode>3): Likewise.
34916 (vsx_concat_<mode>): Likewise.
34917 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34919 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34920 OPTION_MASK_VSX_TIMODE.
34921 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34922 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34924 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34925 (TI2 iterator): New iterator for TImode, PTImode.
34926 (wd mode attribute): Add values for vector types.
34927 (movti_string): Replace TI move operations with operations for TImode
34928 and PTImode. Add support for TImode being allowed in VSX registers.
34929 (mov<mode>_string, TImode/PTImode): Likewise.
34930 (movti_ppc64): Likewise.
34931 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34932 (TI mode splitters): Likewise.
34934 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34937 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34939 PR tree-optimization/56355
34940 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34941 Also handle integers with undefined overflow.
34943 2013-03-20 Catherine Moore <clm@codesourcery.com>
34944 Maciej W. Rozycki <macro@codesourcery.com>
34945 Tom de Vries <tom@codesourcery.com>
34946 Nathan Sidwell <nathan@codesourcery.com>
34947 Iain Sandoe <iain@codesourcery.com>
34948 Nathan Froyd <froydnj@codesourcery.com>
34949 Chao-ying Fu <fu@mips.com>
34951 * doc/extend.texi: (micromips, nomicromips, nocompression):
34952 Document new function attributes.
34953 * doc/invoke.texi (minterlink-compressed, mmicromips,
34954 m14k, m14ke, m14kec): Document new options.
34955 (minterlink-mips16): Update documentation.
34956 * doc/md.texi (ZC, ZD): Document new constraints.
34957 * configure.ac (gcc_cv_as_micromips): Check if linker
34958 supports the .set micromips directive.
34959 * configure: Regenerate.
34960 * config.in: Regenerate.
34961 * config/mips/mips-tables.opt: Regenerate.
34962 * config/mips/micromips.md: New file.
34963 * constraints.md (ZC, ZD): New constraints.
34964 * config/mips/predicates.md (movep_src_register): New predicate.
34965 (movep_src_operand): New predicate.
34966 (non_volatile_mem_operand): New predicate.
34967 * config/mips/mips.md (multimem): New type.
34968 (length): Differentiate between 17-bit and 18-bit branch offsets.
34969 (MOVEP1, MOVEP2): New mode iterator.
34970 (mov_<load>l): Use ZC constraint.
34971 (mov_<load>r): Likewise.
34972 (mov_<store>l): Likewise.
34973 (mov_<store>r): Likewise.
34974 (*branch_equality<mode>_inverted): Add microMIPS support.
34975 (*branch_equality<mode>): Likewise.
34976 (*jump_absolute): Likewise.
34977 (indirect_jump_<mode>): Likewise.
34978 (tablejump_<mode>): Likewise.
34979 (<optab>_internal): Likewise.
34980 (sibcall_internal): Likewise.
34981 (sibcall_value_internal): Likewise.
34982 (prefetch): Use constraint ZD.
34983 * config/mips/mips.opt (minterlink-compressed): New option.
34984 (minterlink-mips16): Now an alias for minterlink-compressed.
34985 (mmicromips): New option.
34986 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34987 (compare_and_swap_12): Likewise.
34988 (sync_add<mode>): Likewise.
34989 (sync_<optab>_12): Likewise.
34990 (sync_old_<optab>_12): Likewise.
34991 (sync_new_<optab>_12): Likewise.
34992 (sync_nand_12): Likewise.
34993 (sync_old_nand_12): Likewise.
34994 (sync_new_nand_12): Likewise.
34995 (sync_sub<mode>): Likewise.
34996 (sync_old_add<mode>): Likewise.
34997 (sync_old_sub<mode>): Likewise.
34998 (sync_new_add<mode>): Likewise.
34999 (sync_new_sub<mode>): Likewise.
35000 (sync_<optab><mode>): Likewise.
35001 (sync_old_<optab><mode>): Likewise.
35002 (sync_new_<optab><mode>): Likewise.
35003 (sync_nand<mode>): Likewise.
35004 (sync_old_nand<mode>): Likewise.
35005 (sync_new_nand<mode>): Likewise.
35006 (sync_lock_test_and_set<mode>): Likewise.
35007 (test_and_set_12): Likewise.
35008 (atomic_compare_and_swap<mode>): Likewise.
35009 (atomic_exchange<mode>_llsc): Likewise.
35010 (atomic_fetch_add<mode>_llsc): Likewise.
35011 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35012 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35013 (umips_save_restore_pattern_p): Likewise.
35014 (umips_load_store_pair_p): Likewise.
35015 (umips_output_load_store_pair): Likewise.
35016 (umips_movep_target_p): Likewise.
35017 (umips_12bit_offset_address_p): Likewise.
35018 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35019 (mips_base_mips16): Rename this...
35020 (mips_base_compression_flags): ...to this. Update all uses.
35021 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35022 (mips_mips16_decl_p): Delete.
35023 (mips_nomips16_decl_p): Delete.
35024 (mips_get_compress_on_flags): New function.
35025 (mips_get_compress_off_flags): New function.
35026 (mips_get_compress_mode): New function.
35027 (mips_get_compress_on_name): New function.
35028 (mips_get_compress_off_name): New function.
35029 (mips_insert_attributes): Support multiple compression types.
35030 (mips_merge_decl_attributes): Likewise.
35031 (umips_12bit_offset_address_p): New function.
35032 (mips_start_function_definition): Emit .set micromips directive.
35033 (mips_call_may_need_jalx_p): New function.
35034 (mips_function_ok_for_sibcall): Add microMIPS support.
35035 (mips_print_operand_punctuation): Support short delay slots and
35037 (umips_swm_mask, umips_swm_encoding): New.
35038 (umips_build_save_restore): New function.
35039 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35040 (was_mips16_p): Remove.
35041 (old_compression_mode): New.
35042 (mips_set_compression_mode): New function.
35043 (mips_set_current_function): Add microMIPS support.
35044 (mips_option_override): Likewise.
35045 (umips_save_restore_pattern_p): New function.
35046 (umips_output_save_restore): New function.
35047 (umips_load_store_pair_p_1): New function.
35048 (umips_load_store_pair_p): New function.
35049 (umips_output_load_store_pair_1): New function.
35050 (umips_output_load_store_pair): New function.
35051 (umips_movep_target_p) New function.
35052 (mips_prepare_pch_save): Add microMIPS support.
35053 * config/mips/mips.h (TARGET_COMPRESSION): New.
35054 (TARGET_CPU_CPP_BUILTINS): Update macro
35055 to use new compression flags and to support microMIPS.
35056 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35057 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35058 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35059 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35060 (ASM_SPEC): Support mmicromips and mno-micromips.
35061 (M16STORE_REG_P): New macro.
35062 (MIPS_CALL): Support TARGET_MICROMIPS.
35063 (MICROMIPS_J): New macro.
35064 (mips_base_mips16): Rename this...
35065 (mips_base_compression_flags): ...to this.
35066 (UMIPS_12BIT_OFFSET_P): New macro.
35067 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35068 (MULTILIB_DIRNAMES): Likewise.
35069 2013-03-20 Richard Biener <rguenther@suse.de>
35071 PR tree-optimization/56661
35072 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35073 the result does not have to be distinct.
35075 2013-03-20 Richard Biener <rguenther@suse.de>
35077 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35080 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35081 Steven Bosscher <steven@gcc.gnu.org>
35083 PR rtl-optimization/56605
35084 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35086 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35089 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35090 that require movd instead of movq.
35092 2013-03-20 Richard Biener <rguenther@suse.de>
35094 * tree-ssa-structalias.c (struct variable_info): Add pointer
35095 to the first field of an aggregate with sub-vars. Make
35096 this and the pointer to the next subfield its ID.
35097 (vi_next): New function.
35098 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35099 storedanything_id, integer_id): Increment by one.
35100 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35101 get_call_clobber_vi): Adjust.
35102 (solution_set_expand): Simplify and speedup.
35103 (solution_set_add): Inline into ...
35104 (set_union_with_increment): ... this. Adjust accordingly.
35105 (do_sd_constraint): Likewise.
35106 (do_ds_constraint): Likewise.
35107 (do_complex_constraint): Simplify.
35108 (build_pred_graph): Adjust.
35109 (solve_graph): Likewise. Simplify and speedup.
35110 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35111 get_constraint_for_component_ref, get_constraint_for_1,
35112 first_vi_for_offset, first_or_preceding_vi_for_offset,
35113 create_function_info_for, create_variable_info_for_1,
35114 create_variable_info_for, intra_create_variable_infos): Adjust.
35115 (init_base_vars): Push NULL for ID zero.
35116 (compute_points_to_sets): Adjust.
35118 2013-03-20 Richard Biener <rguenther@suse.de>
35120 * cfgloop.c (verify_loop_structure): Streamline and avoid
35121 ICEing on corrupt loop tree.
35122 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35125 2013-03-20 Richard Biener <rguenther@suse.de>
35127 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35128 check whether an SSA update is needed.
35130 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35132 * config/mips/constraints.md (T): Rename to...
35136 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35137 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35139 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35141 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35142 (*subsi3_carryin_uxtw): Likewise.
35144 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35146 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35147 (*rorsi3_insn_uxtw): Likewise.
35149 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35151 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35152 (*extrsi5_insn_uxtw): Likewise.
35154 2013-03-19 Richard Biener <rguenther@suse.de>
35156 PR tree-optimization/56273
35157 * passes.c (init_optimization_passes): Move second VRP after DOM.
35159 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35161 * config/i386/i386.md (*movti_internal): Merge from
35162 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35163 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35164 nox64 isa attributes.
35166 2013-03-18 Richard Biener <rguenther@suse.de>
35168 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35170 (merge_node_constraints): Likewise.
35171 (build_succ_graph): Likewise.
35172 (valid_graph_edge): Inline into single caller.
35173 (unify_nodes): Likewise. Use bitmap_set_bit return value
35175 (scc_visit): Fix formatting and variable use.
35176 (do_sd_constraint): Use gcc_checking_assert.
35177 (do_ds_constraint): Likewise.
35178 (do_complex_constraint): Likewise.
35179 (condense_visit): Likewise. Cleanup.
35180 (dump_pred_graph): New function.
35181 (perform_var_substitution): Dump the pred-graph before
35182 variable substitution.
35183 (find_equivalent_node): Use gcc_checking_assert.
35184 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35186 2013-03-18 Richard Biener <rguenther@suse.de>
35188 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35189 Remove cond_expr_stmt_list argument and do not gimplify the
35191 (vect_loop_versioning): Adjust.
35192 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35193 Cleanup to use less temporaries.
35194 (vect_create_data_ref_ptr): Cleanup.
35196 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35198 PR tree-optimization/56635
35199 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35200 require types_compatible_p types.
35202 2013-03-18 Nick Clifton <nickc@redhat.com>
35204 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35205 spurious backslash.
35207 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35208 Add missing line to comment describing function.
35210 2013-03-18 Richard Biener <rguenther@suse.de>
35212 PR tree-optimization/56210
35213 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35214 Handle string / character search functions.
35215 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35217 2013-03-18 Richard Biener <rguenther@suse.de>
35219 PR middle-end/56483
35220 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35221 and implement properly.
35222 * gimple.h (gimple_cond_single_var_p): Remove.
35224 2013-03-18 Richard Biener <rguenther@suse.de>
35226 * tree-data-ref.h (find_data_references_in_loop): Declare.
35227 * tree-data-ref.c (get_references_in_stmt): Use a stack
35228 vector pre-allocated in the callers.
35229 (find_data_references_in_stmt): Adjust.
35230 (graphite_find_data_references_in_stmt): Likewise.
35231 (create_rdg_vertices): Likewise.
35232 (find_data_references_in_loop): Export.
35233 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35234 Compute dependences here...
35235 (vect_analyze_data_refs): ...not here. When we encounter
35236 a non-vectorizable data reference in basic-block vectorization
35237 truncate the data reference vector. Do not bother to
35238 fixup data-dependence information for gather loads.
35239 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35240 of data references, as reported.
35242 2013-03-18 Richard Biener <rguenther@suse.de>
35244 PR tree-optimization/3713
35245 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35246 has_constants and expr.
35247 (stmt_has_constants): Properly valueize SSA names when deciding
35248 whether the stmt has constants.
35250 2013-03-18 Richard Biener <rguenther@suse.de>
35252 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35253 whole function when there is nothing to do.
35254 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35255 * tree-vectorizer.c (vectorize_loops): Update virtual and
35256 loop-closed SSA once.
35257 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35259 2013-03-18 Richard Biener <rguenther@suse.de>
35261 PR middle-end/56113
35262 * domwalk.c (bb_postorder): New global static.
35263 (cmp_bb_postorder): New function.
35264 (walk_dominator_tree): Replace scheme imposing an order for
35265 visiting dominator sons by one sorting them at the time they
35266 are pushed on the stack.
35268 2013-03-18 Richard Biener <rguenther@suse.de>
35270 PR tree-optimization/39326
35271 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35272 (struct mem_ref): Replace mem member with ao_ref typed member.
35273 (MEM_ANALYZABLE): Adjust.
35274 (memref_eq): Likewise.
35275 (mem_ref_alloc): Likewise.
35276 (gather_mem_refs_stmt): Likewise.
35277 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35278 (execute_sm_if_changed_flag_set): Adjust.
35279 (execute_sm): Likewise.
35280 (ref_always_accessed_p): Likewise.
35281 (refs_independent_p): Likewise.
35282 (can_sm_ref_p): Likewise.
35284 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35287 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35288 return 1 even for !unsignedp.
35290 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35292 * config/i386/i386.md (isa): Add x64 and nox64.
35293 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35294 (*pushtf): Enable *roF alternative for x64 isa only.
35295 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35296 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35297 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35298 (*movtf_internal): Merge from *movtf_internal_rex64 and
35299 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35300 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35301 nox64 isa attributes.
35302 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35303 nox64 isa attributes.
35304 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35306 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35308 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35310 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35313 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35314 class names. Remove trailing comma after "ALL_REGS".
35316 2013-03-16 Jan Hubicka <jh@suse.cz>
35318 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35319 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35320 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35321 of cgraph_get_create_node.
35322 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35324 2013-03-16 Jason Merrill <jason@redhat.com>
35327 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35328 with DW_AT_default_value.
35330 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35332 * BASE-VER: Set to 4.9.0.
35334 2013-03-14 Andi Kleen <ak@linux.intel.com>
35337 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35338 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35339 Document _x* TSX intrinsics.
35341 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35342 David Holsgrove <david.holsgrove@xilinx.com>
35344 * configure.ac: Add MicroBlaze TLS support detection.
35345 * configure: Regenerate.
35346 * config/microblaze/microblaze-protos.h
35347 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35348 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35349 * config/microblaze/microblaze.c (microblaze_address_type): Add
35350 ADDRESS_TLS and tls_reloc address types.
35351 (microblaze_address_info): Add tls_reloc.
35352 (TARGET_HAVE_TLS): Define.
35353 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35354 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35355 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35356 load_tls_operand, microblaze_call_tls_get_addr,
35357 microblaze_legitimize_tls_address): New functions.
35358 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35359 (get_base_reg): Use microblaze_tls_symbol_p.
35360 (microblaze_classify_address): Handle TLS.
35361 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35362 label_mentioned_p and microblaze_tls_referenced_p.
35363 (microblaze_legitimize_address): Handle TLS.
35364 (microblaze_address_insns): Handle ADDRESS_TLS.
35365 (pic_address_needs_scratch): Handle TLS.
35366 (print_operand_address): Handle TLS.
35367 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35368 (microblaze_expand_move): Handle TLS.
35369 (microblaze_legitimate_constant_p): Check
35370 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35371 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35372 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35373 (PIC_OFFSET_TABLE_REGNUM): Set.
35374 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35375 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35376 (addsi3, movsi_internal2, movdf_internal): Update constraints
35377 * config/microblaze/predicates.md (arith_plus_operand): Define
35378 (move_operand): Redefine as move_src_operand,
35379 check microblaze_tls_referenced_p.
35381 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35383 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35384 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35386 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35388 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35391 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35393 PR tree-optimization/53265
35394 * common.opt (Waggressive-loop-optimizations): New option.
35395 * tree-ssa-loop-niter.c: Include tree-pass.h.
35396 (do_warn_aggressive_loop_optimizations): New function.
35397 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35398 if number_of_latch_executions returned constant.
35399 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35400 early. If number_of_latch_executions returned constant, set
35401 nb_iterations_upper_bound back to it.
35402 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35404 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35405 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35407 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35408 (MULTILIB_OSDIRNAMES): Set.
35409 * genmultilib: If defaultosdirname doesn't start with :: , set
35410 defaultosdirname2 instead, clear it and emit two . multilib_raw
35411 entries instead of just one.
35413 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35415 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35416 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35417 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35418 (SUBTARGET_OVERRIDE_OPTIONS): New.
35420 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35423 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35424 (musermode): Convert to Var(TARGET_USERMODE).
35425 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35426 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35427 * config/sh/sh.c (sh_option_override): Use
35428 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35429 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35431 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35433 (udivsi3_i4_single, divsi3_i4_single): Use
35434 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35436 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35438 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35441 2013-03-13 Richard Biener <rguenther@suse.de>
35443 PR tree-optimization/56608
35444 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35445 calls when vectorizing basic-blocks.
35447 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35450 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35453 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35455 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35457 2013-03-11 Jan Hubicka <jh@suse.cz>
35460 * lto-streamer-out.c (output_symbol_p): Skip references from
35461 constructors of external variables.
35463 2013-03-11 Jan Hubicka <jh@suse.cz>
35465 PR middle-end/56571
35466 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35468 * emit-rtl.c (verify_rtx_sharing): Likewise.
35469 (copy_insn_1): Likewise.
35470 * rtl.c (copy_rtx): Likewise.
35472 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35475 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35476 output_operand_lossage message.
35478 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35481 * arm.c (shift_op): Validate RTL pattern on the fly.
35482 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35485 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35488 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35489 new call patterns that clobber %fr12.
35490 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35491 split and postreload patterns.
35492 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35493 registers %fr12 and %fr12R as call used.
35495 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35497 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35498 (canon_address, record_store, replace_read, check_mem_read_rtx,
35499 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35500 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35501 rest_of_handle_dse): Likewise.
35503 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35505 PR middle-end/56524
35506 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35508 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35509 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35510 (save_optabs_if_changed): Replace with...
35511 (init_tree_optimization_optabs): ...this.
35512 * optabs.c (save_optabs_if_changed): Rename to...
35513 (init_tree_optimization_optabs): ...this. Take the optimization node
35514 as argument. Do nothing if the base optabs are already correct.
35515 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35516 to recompute optabs.
35517 * function.h (function): Remove optabs field.
35518 * function.c (invoke_set_current_function_hook): Call
35519 init_tree_optimization_optabs. Use the result to initialize
35522 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35524 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35525 if GTMA_HAS_NO_INSTRUMENTATION.
35526 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35527 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35528 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35529 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35530 GTMA_HAS_NO_INSTRUMENTATION.
35532 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35534 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35537 2013-03-08 Marek Polacek <polacek@redhat.com>
35538 Jakub Jelinek <jakub@redhat.com>
35540 PR tree-optimization/56478
35541 * predict.c (is_comparison_with_loop_invariant_p): Change the
35542 type of loop_step to tree.
35543 (predict_loops): Adjust.
35544 (predict_iv_comparison): Perform the computations on double_ints.
35546 2013-03-08 Richard Biener <rguenther@suse.de>
35548 PR tree-optimization/56570
35549 * tree-cfg.c (verify_expr_location_1): Verify locations for
35551 * tree-sra.c (create_access_replacement): Strip locations
35552 from DECL_DEBUG_EXPRs.
35554 2013-03-08 Richard Biener <rguenther@suse.de>
35556 * tree-inline.c (expand_call_inline): Do not associate
35557 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35558 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35560 2013-03-08 Richard Biener <rguenther@suse.de>
35562 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35563 or block changes with -Og. Fix for location / block encoding
35564 changes and PHI arguments with locations.
35566 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35568 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35570 (struct output_info): Likewise.
35571 (register_overhead): Remove bad gcc_assert.
35572 (bitmap_find_bit): If there is only a single bitmap element, do not
35573 count a miss as a search.
35574 (print_statistics): Update for counter type changes.
35575 (dump_bitmap_statistics): Likewise. Print headers such that they
35576 are properly lined up with the printed counters.
35578 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35580 PR tree-optimization/56559
35581 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35582 check that it has only a single use.
35584 2013-03-07 Richard Biener <rguenther@suse.de>
35586 * doc/invoke.texi (fwhole-program): Discourage use in combination
35589 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35591 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35593 PR tree-optimization/56539
35594 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35595 instead of GSI_CONTINUE_LINKING as last argument to
35596 force_gimple_operand_gsi. Adjust function comment.
35598 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35601 PR middle-end/56548
35602 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35603 promoted mode, convert the result back to the original mode.
35605 2013-03-06 Richard Biener <rguenther@suse.de>
35607 PR middle-end/56294
35608 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35609 (insert_updated_phi_nodes_compare_uids): New function.
35610 (update_ssa): Sort symbols_to_rename after UID before
35611 traversing it to insert PHI nodes.
35613 2013-03-06 Richard Biener <rguenther@suse.de>
35615 PR middle-end/50494
35616 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35617 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35620 2013-02-13 Richard Biener <rguenther@suse.de>
35623 * varasm.c (output_constant_def_1): Get the decl representing
35624 the constant as argument.
35625 (output_constant_def): Wrap output_constant_def_1.
35626 (make_decl_rtl): Use output_constant_def_1 with the decl
35627 representing the constant.
35628 (build_constant_desc): Optionally re-use a decl already
35629 representing the constant.
35630 (tree_output_constant_def): Adjust.
35632 2013-03-06 Joey Ye <joey.ye@arm.com>
35635 * gcc.c (convert_white_space): New function.
35636 (main): Handles white space in function name.
35638 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35641 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35642 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35643 to SH_DIV_CALL_TABLE for TARGET_SH2.
35644 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35646 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35647 call-table options.
35649 2013-03-05 Sterling Augustine <saugustine@google.com>
35650 Cary Coutant <ccoutant@google.com>
35653 * dwarf2out.c (resolve_addr): Don't call
35654 remove_loc_list_addr_table_entries a second time for the same
35657 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35660 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35661 (avoid_complex_debug_insns): New function.
35662 (expand_debug_locations): Call it.
35664 PR rtl-optimization/56484
35665 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35666 lifetimes of hard registers on small register class machines.
35668 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35670 * config/microblaze/microblaze-protos.h: Rename
35671 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35672 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35674 (microblaze_fast_interrupt_function_p): New function.
35675 (microblaze_is_interrupt_handler): Rename to
35676 microblaze_is_interrupt_variant and add fast_interrupt check.
35677 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35678 (save_restore_insns): Likewise.
35679 (compute_frame_size): Likewise.
35680 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35681 (microblaze_globalize_label): Likewise.
35682 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35683 * config/microblaze/microblaze.md: Use wrapper
35684 microblaze_is_interrupt_variant.
35686 2013-03-05 Kai Tietz <ktietz@redhat.com>
35688 * sdbout.c (sdbout_one_type): Switch to current function's section
35689 supporting cold/hot.
35691 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35693 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35696 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35698 PR middle-end/56461
35699 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35700 if VALGRIND_GET_VBITS is defined, temporarily make object
35701 memory all defined, and restore previous valgrind addressability
35702 and definability afterwards. Free this_object at the end.
35704 PR middle-end/56461
35705 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35706 right before calling lra_create_live_ranges, also call it
35707 when clearing live_p. Only call lra_clear_live_ranges
35708 at the end if live_p.
35710 PR middle-end/56461
35711 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35713 2013-03-05 Richard Biener <rguenther@suse.de>
35715 PR tree-optimization/56521
35716 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35719 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35722 * except.h (remove_unreachable_eh_regions): New prototype.
35723 * except.c (remove_eh_handler_splicer): New function, split out
35724 of remove_eh_handler.
35725 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35726 warning about running it on many EH regions one at a time.
35727 (remove_unreachable_eh_regions_worker): New function, walk the
35728 EH tree in depth-first order and remove non-marked regions.
35729 (remove_unreachable_eh_regions): New function.
35730 * tree-eh.c (mark_reachable_handlers): New function, split out
35731 from remove_unreachable_handlers.
35732 (remove_unreachable_handlers): Use mark_reachable_handlers and
35733 remove_unreachable_eh_regions.
35734 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35735 and remove_unreachable_eh_regions.
35737 2013-03-05 Richard Biener <rguenther@suse.de>
35739 PR middle-end/56525
35740 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35741 not freeing them until the end.
35743 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35745 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35747 2013-03-05 Richard Biener <rguenther@suse.de>
35749 PR tree-optimization/56270
35750 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35751 of loads after scheduling an SLP instance.
35753 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35755 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35757 (check_gcc_parallelize): Run guality.exp as a separate job from
35758 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35759 struct-layout-1.exp with stackalign.exp.
35761 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35763 PR middle-end/56461
35764 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35765 load_index sbitmap even if some bit in it isn't set.
35767 PR middle-end/56461
35768 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35769 (discover_iteration_bound_by_body_walk): Change queues to
35770 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35771 spelling in comment. Call safe_push on queues[bound_index] directly.
35772 Release queues[queue_index] in every iteration unconditionally.
35773 Release bounds vector.
35775 PR middle-end/56461
35776 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35777 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35778 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35781 2013-03-05 Richard Biener <rguenther@suse.de>
35784 * tree-inline.c (remap_blocks_to_null): New function.
35785 (expand_call_inline): When expanding a call stmt without
35786 an associated block inline remap all callee blocks to NULL.
35788 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35790 PR rtl-optimization/56494
35791 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35792 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35793 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35795 PR middle-end/56461
35796 * sel-sched-ir.c (free_sched_pools): Release
35797 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35798 if succs_info_pool.max_top isn't -1.
35801 * opts.c (opts_obstack, opts_concat): Moved to...
35802 * opts-common.c (opts_obstack, opts_concat): ... here.
35804 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35806 PR middle-end/56461
35807 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35809 2013-03-04 Martin Jambor <mjambor@suse.cz>
35811 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35812 all appropriate places.
35814 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35816 PR tree-optimization/56424
35817 * ipa-split.c (split_function): Do not set the RSO flag if result is
35818 not by reference and its type is a register type.
35820 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35822 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35823 (microblaze_legitimate_pic_operand): Likewise
35824 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35825 new function microblaze_legitimate_pic_operand
35826 * config/microblaze/microblaze-protos.h
35827 (microblaze_legitimate_pic_operand): Declare.
35829 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35831 * config/microblaze/predicates.md (call_insn_simple_operand):
35832 New predicate for supported rtx code types.
35833 * config/microblaze/microblaze.md (call_internal1): Use
35834 call_insn_simple_operand predicate.
35836 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35838 PR middle-end/56461
35839 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35840 partitions.ordered_remove.
35842 PR middle-end/56461
35843 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35844 vec_oprnds0.create (1) for modifier == NONE.
35846 PR middle-end/56461
35847 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35848 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35849 vec_oprnds1 right before pushing anything to it for
35852 PR middle-end/56461
35853 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35854 set nbbs to 0 instead of having separate code path.
35855 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35856 instead of false as last argument if returning NULL.
35858 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35860 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35861 the attribute is now called "target" instead of "option".
35862 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35863 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35864 attribute/pragma name for TARGET_OPTION_VALID_P and
35865 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35866 * doc/tm.texi: Regenerated.
35868 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35870 * config/microblaze/microblaze.c:
35871 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35872 * config/microblaze/microblaze.h: Add -mxl-reorder to
35874 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35875 instructions emitted if TARGET_REORDER.
35876 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35877 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35880 2013-03-01 Xinliang David Li <davidxl@google.com>
35882 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35885 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35887 PR middle-end/56461
35888 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35889 vector even when returning true. Fix up function comment formatting.
35891 PR middle-end/56461
35892 * ira-build.c (ira_loop_nodes_count): New variable.
35893 (create_loop_tree_nodes): Initialize it.
35894 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35896 PR middle-end/56461
35897 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35898 method on dr_chain and result_chain.
35899 * tree-vect-stmts.c (vectorizable_store): Only call
35900 result_chain.create if j == 0.
35902 PR middle-end/56461
35903 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35904 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35905 before overwriting it.
35907 2013-03-01 Tobias Burnus <burnus@net-b.de>
35909 * doc/extended.texi (C Extensions): Change order in @menu
35911 (Other MIPS Built-in Functions): Move last MIPS entry before
35912 "picoChip Built-in Functions".
35913 (SH Built-in Functions): Move after RX Built-in Functions.
35914 * doc/gcc.texi (Introduction): Change order in @menu
35916 * doc/md.texi (Constraints): Ditto.
35917 * gty.texi (Type Information): Ditto.
35918 (User-provided marking routines for template types): Make
35920 * doc/invoke.texi (AArch64 Options): Move before
35921 "Adapteva Epiphany Options".
35923 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35924 Jakub Jelinek <jakub@redhat.com>
35927 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35928 no_address_safety_analysis attribute.
35929 * doc/extend.texi (no_address_safety_attribute): Rename to
35930 no_sanitize_address attribute, mention no_address_safety_analysis
35931 attribute as deprecated alias.
35933 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35935 PR middle-end/56461
35936 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35937 type to vec<vec<tree> > *.
35938 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35939 to be vec<tree> instead of vec<tree> *, set vec_defs
35940 to vNULL and call vec_defs.create (number_of_vects), adjust other
35942 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35943 vectorizable_condition): Adjust vect_get_slp_defs callers.
35945 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35947 * config/aarch64/aarch64.c
35948 (aarch64_float_const_representable): Remove unused variable.
35950 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35952 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35954 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35956 * config/aarch64/aarch64-builtins.c
35957 (aarch64_init_simd_builtins): Make static.
35959 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35961 * config/aarch64/aarch64.c
35962 (aarch64_simd_make_constant): Make static.
35964 2013-02-28 Martin Jambor <mjambor@suse.cz>
35966 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35967 with no initialization to the RHS of debug statements.
35969 2013-02-28 Martin Jambor <mjambor@suse.cz>
35971 PR tree-optimization/56294
35972 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35974 (get_access_replacement): Do not call create_access_replacement.
35975 Assert a replacement exists.
35976 (get_repl_default_def_ssa_name): Create the replacement declaration
35979 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35981 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35982 final_end_function.
35984 2013-02-28 Marek Polacek <polacek@redhat.com>
35986 PR rtl-optimization/56466
35987 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35988 if we're changing a loop.
35989 (peel_loops_completely): Likewise.
35991 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35994 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35996 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35999 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36000 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36001 INTX_FTYPE_FX, FX_FTYPE_INTX.
36002 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36004 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36006 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36007 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36008 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36009 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36010 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36011 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36012 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36013 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36014 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36015 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36016 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36017 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36018 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36019 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36020 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36021 (avrxmega6): Increase max flash segments from 5 to 6.
36022 * config/avr/t-multilib: Regenerate.
36023 * config/avr/avr-tables.opt: Regenerate.
36024 * doc/avr-mmcu.texi: Regenerate.
36026 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36028 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36029 (avr_device_to_arch): Rename to avr_device_to_ld.
36030 (avr_device_to_as): New prototype.
36031 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36032 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36033 * config/avr/driver-avr.c (avr_device_to_as): New.
36034 (avr_device_to_arch): Rename to avr_device_to_ld.
36036 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36038 PR middle-end/56461
36039 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36040 method on dr_chain and result_chain.
36042 PR middle-end/56461
36043 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36044 pointer_set_destroy on not_executed_last_iteration.
36046 PR middle-end/56461
36047 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36049 PR middle-end/56461
36050 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36051 FOR_EACH_DEFINED_FUNCTION when freeing state.
36053 PR middle-end/56461
36054 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36056 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36059 PR middle-end/56461
36060 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36061 known_aggs[i].items and release known_aggs vector.
36063 PR middle-end/56461
36064 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36066 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36068 * config/microblaze/microblaze.c (microblaze_emit_compare):
36069 Use xor for EQ/NE comparisions.
36070 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36071 (cbranchsf4): Adjust operator to comparison_operator.
36073 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36075 PR middle-end/56461
36076 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36078 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36079 vec_safe_push, always update *slot.
36080 (redirect_edge_var_map_clear): Use vec_free.
36081 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36082 (free_var_map_entry): Use vec_free.
36083 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36084 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36086 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36088 PR middle-end/45472
36089 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36090 when the may_trap_p bit of the exprs being merged differs.
36091 Reorder tests for speculativeness in the logical and operator.
36093 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36095 * incpath.c (add_standard_paths): Use reconcat instead of concat
36096 where appropriate and avoid leaking memory.
36098 * opts.h: Include obstack.h.
36099 (opts_concat): New prototype.
36100 (opts_obstack): New declaration.
36101 * opts.c (opts_concat): New function.
36102 (opts_obstack): New variable.
36103 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36104 (finish_options): Use opts_concat instead of concat
36105 and XOBNEWVEC instead of XNEWVEC.
36106 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36107 generate_option): Likewise.
36108 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36109 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36112 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36113 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36115 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36117 PR middle-end/56461
36118 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36120 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36122 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36123 (arm_block_move_unaligned_straight): Likewise.
36124 (arm_adjust_block_mem): Likewise.
36126 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36129 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36130 temp, cond and label.
36131 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36134 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36135 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36138 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36139 of prologue/epilogue functions.
36142 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36143 Remove unused variable cfa_offset.
36144 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36147 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36148 type promotion to unsigned.
36151 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36152 for HOST_WIDE_INT of 32 bit / same size as int.
36153 (arm_block_move_unaligned_straight): Likewise.
36154 (arm_adjust_block_mem): Likewise.
36157 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36160 2013-02-26 Marek Polacek <polacek@redhat.com>
36162 PR tree-optimization/56426
36163 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36165 2013-02-26 Richard Biener <rguenther@suse.de>
36168 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36169 unused variable loops.
36171 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36173 PR tree-optimization/56448
36174 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36175 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36176 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36177 later operands of the references, or even first operand for
36178 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36180 PR tree-optimization/56443
36181 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36182 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36183 to type_for_mode langhook.
36185 2013-02-25 Matt Turner <mattst88@gmail.com>
36187 * doc/invoke.texi: Document r4700.
36189 2013-02-25 Richard Biener <rguenther@suse.de>
36191 PR tree-optimization/56175
36192 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36194 (simplify_bitwise_binary): ... here. Also guard the conversion
36195 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36197 2013-02-25 Catherine Moore <clm@codesourcery.com>
36200 2013-02-24 Catherine Moore <clm@codesourcery.com>
36201 Maciej W. Rozycki <macro@codesourcery.com>
36202 Tom de Vries <tom@codesourcery.com>
36203 Nathan Sidwell <nathan@codesourcery.com>
36204 Iain Sandoe <iain@codesourcery.com>
36205 Nathan Froyd <froydnj@codesourcery.com>
36206 Chao-ying Fu <fu@mips.com>
36208 * doc/extend.texi: (micromips, nomicromips, nocompression):
36209 Document new function attributes.
36210 * doc/invoke.texi (minterlink-compressed, mmicromips,
36211 m14k, m14ke, m14kec): Document new options.
36212 (minterlink-mips16): Update documentation.
36213 * doc/md.texi (ZC, ZD): Document new constraints.
36214 * configure.ac (gcc_cv_as_micromips): Check if linker
36215 supports the .set micromips directive.
36216 * configure: Regenerate.
36217 * config.in: Regenerate.
36218 * config/mips/mips-tables.opt: Regenerate.
36219 * config/mips/micromips.md: New file.
36220 * constraints.md (ZC, AD): New constraints.
36221 * config/mips/predicates.md (movep_src_register): New predicate.
36222 (movep_src_operand): New predicate.
36223 (non_volatile_mem_operand): New predicate.
36224 * config/mips/mips.md (multimem): New type.
36225 (length): Differentiate between 17-bit and 18-bit branch offsets.
36226 (MOVEP1, MOVEP2): New mode iterator.
36227 (mov_<load>l): Use ZC constraint.
36228 (mov_<load>r): Likewise.
36229 (mov_<store>l): Likewise.
36230 (mov_<store>r): Likewise.
36231 (*branch_equality<mode>_inverted): Add microMIPS support.
36232 (*branch_equality<mode>): Likewise.
36233 (*jump_absolute): Likewise.
36234 (indirect_jump_<mode>): Likewise.
36235 (tablejump_<mode>): Likewise.
36236 (<optab>_internal): Likewise.
36237 (sibcall_internal): Likewise.
36238 (sibcall_value_internal): Likewise.
36239 (prefetch): Use constraint ZD.
36240 * config/mips/mips.opt (minterlink-compressed): New option.
36241 (minterlink-mips16): Now an alias for minterlink-compressed.
36242 (mmicromips): New option.
36243 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36244 (compare_and_swap_12): Likewise.
36245 (sync_add<mode>): Likewise.
36246 (sync_<optab>_12): Likewise.
36247 (sync_old_<optab>_12): Likewise.
36248 (sync_new_<optab>_12): Likewise.
36249 (sync_nand_12): Likewise.
36250 (sync_old_nand_12): Likewise.
36251 (sync_new_nand_12): Likewise.
36252 (sync_sub<mode>): Likewise.
36253 (sync_old_add<mode>): Likewise.
36254 (sync_old_sub<mode>): Likewise.
36255 (sync_new_add<mode>): Likewise.
36256 (sync_new_sub<mode>): Likewise.
36257 (sync_<optab><mode>): Likewise.
36258 (sync_old_<optab><mode>): Likewise.
36259 (sync_new_<optab><mode>): Likewise.
36260 (sync_nand<mode>): Likewise.
36261 (sync_old_nand<mode>): Likewise.
36262 (sync_new_nand<mode>): Likewise.
36263 (sync_lock_test_and_set<mode>): Likewise.
36264 (test_and_set_12): Likewise.
36265 (atomic_compare_and_swap<mode>): Likewise.
36266 (atomic_exchange<mode>_llsc): Likewise.
36267 (atomic_fetch_add<mode>_llsc): Likewise.
36268 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36269 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36270 (umips_save_restore_pattern_p): Likewise.
36271 (umips_load_store_pair_p): Likewise.
36272 (umips_output_load_store_pair): Likewise.
36273 (umips_movep_target_p): Likewise.
36274 (umips_12bit_offset_address_p): Likewise.
36275 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36276 (mips_base_mips16): Rename this...
36277 (mips_base_compression_flags): ...to this. Update all uses.
36278 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36279 (mips_mips16_decl_p): Delete.
36280 (mips_nomips16_decl_p): Delete.
36281 (mips_get_compress_on_flags): New function.
36282 (mips_get_compress_off_flags): New function.
36283 (mips_get_compress_mode): New function.
36284 (mips_get_compress_on_name): New function.
36285 (mips_get_compress_off_name): New function.
36286 (mips_insert_attributes): Support multiple compression types.
36287 (mips_merge_decl_attributes): Likewise.
36288 (umips_12bit_offset_address_p): New function.
36289 (mips_start_function_definition): Emit .set micromips directive.
36290 (mips_call_may_need_jalx_p): New function.
36291 (mips_function_ok_for_sibcall): Add microMIPS support.
36292 (mips_print_operand_punctuation): Support short delay slots and
36294 (umips_swm_mask, umips_swm_encoding): New.
36295 (umips_build_save_restore): New function.
36296 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36297 (was_mips16_p): Remove.
36298 (old_compression_mode): New.
36299 (mips_set_compression_mode): New function.
36300 (mips_set_current_function): Add microMIPS support.
36301 (mips_option_override): Likewise.
36302 (umips_save_restore_pattern_p): New function.
36303 (umips_output_save_restore): New function.
36304 (umips_load_store_pair_p_1): New function.
36305 (umips_load_store_pair_p): New function.
36306 (umips_output_load_store_pair_1): New function.
36307 (umips_output_load_store_pair): New function.
36308 (umips_movep_target_p) New function.
36309 (mips_prepare_pch_save): Add microMIPS support.
36310 * config/mips/mips.h (TARGET_COMPRESSION): New.
36311 (TARGET_CPU_CPP_BUILTINS): Update macro
36312 to use new compression flags and to support microMIPS.
36313 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36314 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36315 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36316 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36317 (ASM_SPEC): Support mmicromips and mno-micromips.
36318 (M16STORE_REG_P): New macro.
36319 (MIPS_CALL): Support TARGET_MICROMIPS.
36320 (MICROMIPS_J): New macro.
36321 (mips_base_mips16): Rename this...
36322 (mips_base_compression_flags): ...to this.
36323 (UMIPS_12BIT_OFFSET_P): New macro.
36324 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36325 (MULTILIB_DIRNAMES): Likewise.
36327 2013-02-25 Tom de Vries <tom@codesourcery.com>
36329 PR rtl-optimization/56131
36330 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36331 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36332 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36334 2013-02-25 Tobias Burnus <burnus@net-b.de>
36336 * doc/invoke.texi (-fsanitize=): Move from optimization
36337 to debugging options.
36339 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36341 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36343 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36344 Alexander Monakov <amonakov@ispras.ru>
36346 PR middle-end/56077
36347 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36348 flush pending lists also on non-jumps. Adjust comment.
36350 2013-02-24 Catherine Moore <clm@codesourcery.com>
36351 Maciej W. Rozycki <macro@codesourcery.com>
36352 Tom de Vries <tom@codesourcery.com>
36353 Nathan Sidwell <nathan@codesourcery.com>
36354 Iain Sandoe <iain@codesourcery.com>
36355 Nathan Froyd <froydnj@codesourcery.com>
36356 Chao-ying Fu <fu@mips.com>
36358 * doc/extend.texi: (micromips, nomicromips, nocompression):
36359 Document new function attributes.
36360 * doc/invoke.texi (minterlink-compressed, mmicromips,
36361 m14k, m14ke, m14kec): Document new options.
36362 (minterlink-mips16): Update documentation.
36363 * doc/md.texi (ZC, ZD): Document new constraints.
36364 * configure.ac (gcc_cv_as_micromips): Check if linker
36365 supports the .set micromips directive.
36366 * configure: Regenerate.
36367 * config.in: Regenerate.
36368 * config/mips/mips-tables.opt: Regenerate.
36369 * config/mips/micromips.md: New file.
36370 * constraints.md (ZC, AD): New constraints.
36371 * config/mips/predicates.md (movep_src_register): New predicate.
36372 (movep_src_operand): New predicate.
36373 (non_volatile_mem_operand): New predicate.
36374 * config/mips/mips.md (multimem): New type.
36375 (length): Differentiate between 17-bit and 18-bit branch offsets.
36376 (MOVEP1, MOVEP2): New mode iterator.
36377 (mov_<load>l): Use ZC constraint.
36378 (mov_<load>r): Likewise.
36379 (mov_<store>l): Likewise.
36380 (mov_<store>r): Likewise.
36381 (*branch_equality<mode>_inverted): Add microMIPS support.
36382 (*branch_equality<mode>): Likewise.
36383 (*jump_absolute): Likewise.
36384 (indirect_jump_<mode>): Likewise.
36385 (tablejump_<mode>): Likewise.
36386 (<optab>_internal): Likewise.
36387 (sibcall_internal): Likewise.
36388 (sibcall_value_internal): Likewise.
36389 (prefetch): Use constraint ZD.
36390 * config/mips/mips.opt (minterlink-compressed): New option.
36391 (minterlink-mips16): Now an alias for minterlink-compressed.
36392 (mmicromips): New option.
36393 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36394 (compare_and_swap_12): Likewise.
36395 (sync_add<mode>): Likewise.
36396 (sync_<optab>_12): Likewise.
36397 (sync_old_<optab>_12): Likewise.
36398 (sync_new_<optab>_12): Likewise.
36399 (sync_nand_12): Likewise.
36400 (sync_old_nand_12): Likewise.
36401 (sync_new_nand_12): Likewise.
36402 (sync_sub<mode>): Likewise.
36403 (sync_old_add<mode>): Likewise.
36404 (sync_old_sub<mode>): Likewise.
36405 (sync_new_add<mode>): Likewise.
36406 (sync_new_sub<mode>): Likewise.
36407 (sync_<optab><mode>): Likewise.
36408 (sync_old_<optab><mode>): Likewise.
36409 (sync_new_<optab><mode>): Likewise.
36410 (sync_nand<mode>): Likewise.
36411 (sync_old_nand<mode>): Likewise.
36412 (sync_new_nand<mode>): Likewise.
36413 (sync_lock_test_and_set<mode>): Likewise.
36414 (test_and_set_12): Likewise.
36415 (atomic_compare_and_swap<mode>): Likewise.
36416 (atomic_exchange<mode>_llsc): Likewise.
36417 (atomic_fetch_add<mode>_llsc): Likewise.
36418 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36419 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36420 (umips_save_restore_pattern_p): Likewise.
36421 (umips_load_store_pair_p): Likewise.
36422 (umips_output_load_store_pair): Likewise.
36423 (umips_movep_target_p): Likewise.
36424 (umips_12bit_offset_address_p): Likewise.
36425 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36426 (mips_base_mips16): Rename this...
36427 (mips_base_compression_flags): ...to this. Update all uses.
36428 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36429 (mips_mips16_decl_p): Delete.
36430 (mips_nomips16_decl_p): Delete.
36431 (mips_get_compress_on_flags): New function.
36432 (mips_get_compress_off_flags): New function.
36433 (mips_get_compress_mode): New function.
36434 (mips_get_compress_on_name): New function.
36435 (mips_get_compress_off_name): New function.
36436 (mips_insert_attributes): Support multiple compression types.
36437 (mips_merge_decl_attributes): Likewise.
36438 (umips_12bit_offset_address_p): New function.
36439 (mips_start_function_definition): Emit .set micromips directive.
36440 (mips_call_may_need_jalx_p): New function.
36441 (mips_function_ok_for_sibcall): Add microMIPS support.
36442 (mips_print_operand_punctuation): Support short delay slots and
36444 (umips_swm_mask, umips_swm_encoding): New.
36445 (umips_build_save_restore): New function.
36446 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36447 (was_mips16_p): Remove.
36448 (old_compression_mode): New.
36449 (mips_set_compression_mode): New function.
36450 (mips_set_current_function): Add microMIPS support.
36451 (mips_option_override): Likewise.
36452 (umips_save_restore_pattern_p): New function.
36453 (umips_output_save_restore): New function.
36454 (umips_load_store_pair_p_1): New function.
36455 (umips_load_store_pair_p): New function.
36456 (umips_output_load_store_pair_1): New function.
36457 (umips_output_load_store_pair): New function.
36458 (umips_movep_target_p) New function.
36459 (mips_prepare_pch_save): Add microMIPS support.
36460 * config/mips/mips.h (TARGET_COMPRESSION): New.
36461 (TARGET_CPU_CPP_BUILTINS): Update macro
36462 to use new compression flags and to support microMIPS.
36463 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36464 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36465 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36466 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36467 (ASM_SPEC): Support mmicromips and mno-micromips.
36468 (M16STORE_REG_P): New macro.
36469 (MIPS_CALL): Support TARGET_MICROMIPS.
36470 (MICROMIPS_J): New macro.
36471 (mips_base_mips16): Rename this...
36472 (mips_base_compression_flags): ...to this.
36473 (UMIPS_12BIT_OFFSET_P): New macro.
36474 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36475 (MULTILIB_DIRNAMES): Likewise.
36477 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36480 * target-globals.c (save_target_globals): For init_reg_sets and
36481 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36483 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36485 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36486 * config/aarch64/t-aarch64
36487 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36489 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36491 PR inline-asm/56148
36492 * lra-constraints.c (process_alt_operands): Reload operand
36493 conflicting with earlier clobber only if no more other conflicting
36496 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36499 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36500 if not linking a shared library.
36502 2013-02-22 Seth LaForge <sethml@google.com>
36504 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36506 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36508 * config/arm/arm.md (split for extendsidi): Update condition.
36509 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36510 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36511 (qhs_zextenddi_cstr): Likewise.
36513 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36515 PR middle-end/56420
36516 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36517 avoid signed wrapping.
36518 (expand_mult): Handle properly multiplication by
36519 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36520 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36521 in the compiler if coeff is HOST_WIDE_INT_MIN.
36522 (expand_divmod): Don't make ext_op1 static, change it's type to
36523 uhwi. Avoid undefined behavior in -INTVAL (op1).
36525 PR rtl-optimization/50339
36526 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36528 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36529 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36530 into splitting_ashiftrt field.
36531 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36533 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36536 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36538 PR middle-end/56108
36539 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36540 are sure to go irrevocable.
36542 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36544 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36545 scalars are valid operands.
36547 2013-02-21 Martin Jambor <mjambor@suse.cz>
36549 PR tree-optimization/56310
36550 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36551 only matching indices and non-negative final offsets.
36552 (intersect_aggregates_with_edge): Pass src_idx to
36553 agg_replacements_to_vector. Pass src_idx insstead of index to
36554 intersect_with_agg_replacements.
36556 2013-02-21 Martin Jambor <mjambor@suse.cz>
36558 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36559 instead of hard-wired defaults.
36561 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36563 * doc/invoke.texi (MIPS Options): Update documentation of the
36564 floating-point multiply-accumulate instruction restrictions.
36566 2013-02-21 Kostya Serebryany <kcc@google.com>
36568 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36569 asan_shadow_offset on x86_64 linux.
36571 2013-02-21 Richard Biener <rguenther@suse.de>
36573 PR tree-optimization/56415
36575 2013-02-11 Richard Biener <rguenther@suse.de>
36577 PR tree-optimization/56273
36578 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36581 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36584 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36587 PR inline-asm/56405
36588 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36589 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36591 2013-02-20 Jan Hubicka <jh@suse.cz>
36593 PR tree-optimization/56265
36594 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36595 when target is referenced for first time.
36597 2013-02-20 Richard Biener <rguenther@suse.de>
36599 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36600 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36601 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36602 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36603 not return anything.
36604 (rename_ssa_copies): Do not remove unused locals.
36605 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36606 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36607 * passes.c (execute_function_todo): Do not schedule unused locals
36608 removal if cleanup_tree_cfg did something.
36609 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36610 about the number of removed locals.
36612 2013-02-20 Richard Biener <rguenther@suse.de>
36614 PR tree-optimization/56398
36615 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36617 2013-02-20 Martin Jambor <mjambor@suse.cz>
36619 PR tree-optimization/55334
36620 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36621 restricted pointers to arrays.
36623 2013-02-20 Richard Biener <rguenther@suse.de>
36624 Jakub Jelinek <jakub@redhat.com>
36626 PR tree-optimization/56396
36627 * tree-ssa-ccp.c (n_const_val): New static variable.
36628 (get_value): Return NULL for SSA names we don't have a lattice
36630 (ccp_initialize): Initialize n_const_val.
36631 * tree-ssa-copy.c (n_copy_of): New static variable.
36632 (init_copy_prop): Initialize n_copy_of.
36633 (get_value): Return NULL_TREE for SSA names we don't have a
36636 2013-02-20 Martin Jambor <mjambor@suse.cz>
36638 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36640 2013-02-20 Richard Biener <rguenther@suse.de>
36642 * genpreds.c (write_lookup_constraint): Do not compare first
36643 letter of the constraint again.
36645 2013-02-20 Richard Biener <rguenther@suse.de>
36647 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36649 (get_use_iv_cost): Terminate hashtable walk when coming across
36652 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36654 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36655 reassociation for avx2 targets.
36657 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36659 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36660 Add version check for v8.10.a to enable microblaze_has_clz
36661 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36662 version and TARGET_PATTERN_COMPARE check
36663 * config/microblaze/microblaze.md: New clzsi2 instruction
36665 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36667 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36668 function before branching.
36670 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36672 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36674 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36676 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36678 PR middle-end/55889
36679 * sel-sched.c: Include ira.h.
36680 (implicit_clobber_conflict_p): New function.
36681 (moveup_expr): Use it.
36682 * Makefile.in (sel-sched.o): Depend on ira.h.
36684 2013-02-19 Richard Biener <rguenther@suse.de>
36686 PR tree-optimization/56384
36687 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36688 (vn_hash_type): Split out from ...
36689 (vn_hash_constant_with_type): ... here.
36690 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36691 (vn_phi_eq): Compare types from vn_phi_s structure.
36692 (vn_phi_lookup): Populate vn_phi_s type.
36693 (vn_phi_insert): Likewise.
36695 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36697 PR tree-optimization/56350
36698 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36699 if haven't found reduction or nested cycle operand, rather than
36700 asserting we must find it.
36702 PR tree-optimization/56381
36703 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36706 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36707 Jakub Jelinek <jakub@redhat.com>
36710 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36711 (swap_optab_enable): Same.
36712 (init_all_optabs): Use argument instead of global.
36713 * tree.h (struct tree_optimization_option): New field target_optabs.
36714 * expr.h (init_all_optabs): Add argument to prototype.
36715 (TREE_OPTIMIZATION_OPTABS): New.
36716 (save_optabs_if_changed): Protoize.
36717 * optabs.h: Declare this_fn_optabs.
36718 * optabs.c (save_optabs_if_changed): New.
36719 Declare this_fn_optabs.
36720 (init_optabs): Add argument to init_all_optabs() call.
36721 * function.c (invoke_set_current_function_hook): Handle per
36723 * function.h (struct function): New field optabs.
36724 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36725 optimization_current_node has changed.
36726 * target-globals.h (save_target_globals_default_opts): Protoize.
36727 * target-globals.c (save_target_globals_default_opts): New.
36729 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36732 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36733 registers %fr12 and %fr12R as call used.
36736 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36737 and HImode, require all displacements to be an integer multiple of
36739 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36740 only allow QImode and HImode when reload is in progress and strict is
36741 true. Likewise for symbolic addresses. Use base14_operand to check
36742 displacements in REG+BASE addresses.
36744 2013-02-18 Richard Biener <rguenther@suse.de>
36746 PR tree-optimization/56366
36747 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36748 handle sign-conversion of outer-loop initial induction value.
36750 2013-02-18 Richard Biener <rguenther@suse.de>
36752 PR middle-end/56349
36753 * cfghooks.c (merge_blocks): If we merge a latch into another
36754 block adjust references to it.
36755 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36756 (verify_loop_structure): Verify that a recorded latch is in fact
36759 2013-02-18 Richard Biener <rguenther@suse.de>
36761 PR tree-optimization/56321
36762 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36763 order SSA name release and virtual operand unlinking.
36765 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36767 * config/microblaze/microblaze.md (save_stack_block): Define.
36768 (restore_stack_block): Likewise.
36770 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36772 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36773 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36774 * config/microblaze/microblaze.c (microblaze_option_override):
36775 Bail out early for PIC modes when target does not support PIC.
36777 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36779 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36780 Replace with a microblaze version.
36781 (microblaze_trampoline_init): Adapt for microblaze.
36782 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36785 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36786 Dodji Seketeli <dodji@redhat.com>
36789 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36790 (instrument_mem_region_access): Do not forget to always put
36791 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36792 0) statement, even for cases where either 'base' or 'base + len'
36793 are not instrumented -- because they have been previously
36794 instrumented. Simplify the logic by putting all the statements
36795 instrument 'base + len' inside a sequence, and then insert that
36796 sequence right before the current insertion point. Then, to
36797 instrument 'base + len', just get an iterator on that statement.
36798 And do not forget to update the pointer to iterator the function
36799 received as argument.
36801 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36803 PR rtl-optimization/56348
36804 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36806 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36808 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36809 (clean_graph_dump_file): Pass base to start_graph_dump.
36811 2013-02-14 Richard Henderson <rth@redhat.com>
36814 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36816 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36818 * collect2-aix.h: Define F_LOADONLY.
36820 2013-02-14 Richard Biener <rguenther@suse.de>
36823 * varasm.c (output_constant_def_1): Get the decl representing
36824 the constant as argument.
36825 (output_constant_def): Wrap output_constant_def_1.
36826 (make_decl_rtl): Use output_constant_def_1 with the decl
36827 representing the constant.
36828 (build_constant_desc): Optionally re-use a decl already
36829 representing the constant.
36830 (tree_output_constant_def): Adjust.
36832 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36835 * asan.c (instrument_builtin_call): Really put the length of the
36836 second source argument into src1_len.
36838 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36840 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36841 argument. If it is false, don't create edge from then_bb to
36843 (insert_if_then_before_iter): Pass true to it.
36844 (build_check_stmt): Pass false to it.
36845 (transform_statements): Flush hash table only on extended basic
36846 block boundaries, rather than at the beginning of every bb.
36847 Don't flush hash table on nonfreeing_call_p calls.
36848 * tree-flow.h (nonfreeing_call_p): New prototype.
36849 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36851 2013-02-13 David S. Miller <davem@davemloft.net>
36853 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36855 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36858 * ira.c (max_regno_before_ira): Move from ...
36860 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36863 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36865 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36867 2013-02-13 Richard Biener <rguenther@suse.de>
36870 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36871 globals in MEM_REFs.
36873 2013-02-13 Richard Biener <rguenther@suse.de>
36875 * loop-init.c (loop_optimizer_init): Clear loop state when
36876 re-initializing preserved loops.
36877 * loop-unswitch.c (unswitch_single_loop): Return whether
36878 we unswitched the loop. Do not verify loop state here.
36879 (unswitch_loops): When we unswitched a loop discover new loops.
36881 2013-02-13 Kostya Serebryany <kcc@google.com>
36883 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36885 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36887 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36889 Avoid instrumenting duplicated memory access in the same basic block
36890 * Makefile.in (asan.o): Add new dependency on hash-table.h
36891 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36892 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36893 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36894 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36895 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36896 (get_mem_ref_of_assignment): New functions.
36897 (get_mem_refs_of_builtin_call): Extract from
36898 instrument_builtin_call and tweak a little bit to make it fit with
36900 (instrument_builtin_call): Use the new
36901 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36902 of is_gimple_builtin_call.
36903 (instrument_derefs, instrument_mem_region_access): Insert the
36904 instrumented memory reference into the hash table.
36905 (maybe_instrument_assignment): Renamed instrument_assignment into
36906 this, and change it to advance the iterator when instrumentation
36907 actually happened and return true in that case. This makes it
36908 homogeneous with maybe_instrument_assignment, and thus give a
36909 chance to callers to be more 'regular'.
36910 (transform_statements): Clear the memory reference hash table
36911 whenever we enter a new BB, when we cross a function call, or when
36912 we are done transforming statements. Use
36913 maybe_instrument_assignment instead of instrumentation. No more
36914 need to special case maybe_instrument_assignment and advance the
36915 iterator after calling it; it's now handled just like
36916 maybe_instrument_call. Update comment.
36918 2013-02-13 Richard Biener <rguenther@suse.de>
36920 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36921 Fix loop discovery code.
36923 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36925 PR inline-asm/56148
36926 * lra-constraints.c (process_alt_operands): Match early clobber
36927 operand with itself. Check conflicts with earlyclobber only if
36928 the operand is not reloaded. Prefer to reload conflicting operand
36929 if earlyclobber and matching operands are the same.
36931 2013-02-12 Richard Biener <rguenther@suse.de>
36934 * lto-streamer-out.c (write_symbol): Do not output symbols
36935 for hard register variables.
36937 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36940 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36941 (umulsidi3_insn, mulsidi3_insn): New insns.
36943 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36945 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36946 (struct tune_params): Add vec_costs field.
36947 * config/arm/arm.c (arm_builtin_vectorization_cost)
36948 (arm_add_stmt_cost): New functions.
36949 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36950 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36951 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36952 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36953 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36954 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36955 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36957 2013-02-12 Richard Biener <rguenther@suse.de>
36960 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36961 decls again if possible.
36963 2013-02-12 Richard Biener <rguenther@suse.de>
36965 PR middle-end/56288
36966 * tree-ssa.c (verify_ssa_name): Fix check, move
36967 SSA_NAME_IN_FREE_LIST check up.
36969 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36970 Steven Bosscher <steven@gcc.gnu.org>
36972 PR rtl-optimization/56151
36973 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36974 equal to op0 or op1, and last_insn pattern is CODE operation
36975 with MEM dest and one of the operands matches that MEM.
36977 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36979 * doc/extend.texi: Document Function Multiversioning and "default"
36980 parameter string to target attribute.
36981 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36982 target attribute parameter is "default".
36983 (ix86_compare_version_priority): Remove checks for target attribute.
36984 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36985 Remove check for target attribute equal to NULL. Add assert.
36986 (ix86_generate_version_dispatcher_body): Change error to sorry.
36988 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36989 Jack Howarth <howarth@bromo.med.uc.edu>
36990 Patrick Marlier <patrick.marlier@gmail.com>
36993 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36994 define ENDFILE_SPEC as TM_DESTRUCTOR.
36995 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36997 2013-02-11 Alexander Potapenko <glider@google.com>
36998 Jack Howarth <howarth@bromo.med.uc.edu>
36999 Jakub Jelinek <jakub@redhat.com>
37002 * config/darwin.c (cdtor_record): Rename ctor_record.
37003 (sort_cdtor_records): Rename sort_ctor_records.
37004 (finalize_dtors): New routine to sort destructors by
37005 priority before use in assemble_integer.
37006 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37008 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37010 PR rtl-optimization/56275
37011 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37012 offset is non-negative and less than cmode size before
37013 calling simplify_subreg.
37015 2013-02-11 Richard Biener <rguenther@suse.de>
37017 PR tree-optimization/56264
37018 * cfgloop.h (fix_loop_structure): Adjust prototype.
37019 * loop-init.c (fix_loop_structure): Return the number of
37020 newly discovered loops.
37021 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37022 are discovered, do a full loop-closed SSA rewrite.
37024 2013-02-11 Richard Biener <rguenther@suse.de>
37026 PR tree-optimization/56273
37027 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37029 (check_array_ref): Fix missing newline in dumps.
37030 (search_for_addr_array): Likewise.
37032 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37034 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37036 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37039 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37041 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37043 PR rtl-optimization/56246
37044 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37046 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37047 constraints are satisfied.
37049 2013-02-08 Jeff Law <law@redhat.com>
37052 * emit-rtl.c (reg_is_parm_p): New function.
37053 * regs.h (reg_is_parm_p): New prototype.
37054 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37055 callee-clobbered registers.
37057 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37060 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37061 If there is no implicit builtin declaration, just return NULL.
37063 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37065 * config/i386/sse.md (FMAMODEM): New mode iterator.
37066 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37067 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37069 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37071 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37072 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37073 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37075 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37077 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37078 (microblaze*-*-elf): Likewise.
37079 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37081 * config/microblaze/microblaze-c.c: Add builtin defines for
37082 _LITTLE_ENDIAN and _BIG_ENDIAN.
37083 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37084 add to TARGET_DEFAULT flags.
37085 Expand ASM_SPEC and LINK_SPEC.
37086 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37087 * config/microblaze/microblaze.md: Update extendsidi2 and
37088 movdi_internal instructions to use low-order / high-order reg
37090 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37091 options and inversemask / mask of LITTLE_ENDIAN.
37092 * config/microblaze/t-microblaze: Expand multilib options to
37093 include mlittle-endian (le) and update exceptions patterns.
37095 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37097 PR rtl-optimization/56195
37098 * lra-constraints.c (get_reload_reg): Don't reuse regs
37099 if they have smaller mode than requested, if they have
37100 wider mode than requested, try to return a SUBREG.
37102 PR tree-optimization/56250
37103 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37104 if type is unsigned and code isn't MULT_EXPR.
37106 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37108 PR tree-optimization/56064
37109 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37110 bits according to mode.
37111 * fixed-value.h (fixed_from_double_int)
37112 (const_fixed_from_double_int): Adjust comments.
37114 2013-02-08 Richard Biener <rguenther@suse.de>
37117 * lto-streamer.h (struct data_in): Remove current_file, current_line
37118 and current_col members.
37119 * lto-streamer-out.c (lto_output_location): Stream changed bits
37120 en-block for efficiency.
37121 * lto-streamer-in.c (clear_line_info): Remove.
37122 (lto_input_location): Cache current file, line and column
37123 globally via local statics. Read changed bits en-block.
37124 (input_function): Do not call clear_line_info.
37125 (lto_read_body): Likewise.
37126 (lto_input_toplevel_asms): Likewise.
37128 2013-02-08 Michael Matz <matz@suse.de>
37130 PR tree-optimization/52448
37131 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37132 (nt_call_phase): New static.
37133 (add_or_mark_expr): Only mark accesses with newer phase than any
37135 (nonfreeing_call_p): New.
37136 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37137 (nt_fini_block): Keep blocks marked as visited.
37138 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37140 2013-02-08 Richard Biener <rguenther@suse.de>
37142 * ira.c (ira): Free broken dominator information.
37144 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37146 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37148 2013-02-08 Marek Polacek <polacek@redhat.com>
37150 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37152 2013-02-08 Richard Biener <rguenther@suse.de>
37154 PR middle-end/56181
37155 * cfgloop.h (flow_loops_find): Adjust.
37156 (bb_loop_header_p): Declare.
37157 * cfgloop.c (bb_loop_header_p): New function split out from ...
37158 (flow_loops_find): ... here. Adjust function signature,
37159 support incremental loop structure update.
37160 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37161 * cfgloopmanip.c (fix_loop_structure): Move ...
37162 * loop-init.c (fix_loop_structure): ... here.
37163 (apply_loop_flags): Split out from ...
37164 (loop_optimizer_init): ... here.
37165 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37166 in incremental mode, only remove dead loops here.
37168 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37171 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37172 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37173 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37174 (*round<mode>3.libgcc): New insns for fixed-modes.
37175 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37176 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37177 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37178 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37179 implementations. Define to __builtin_avr_absFX,
37180 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37181 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37182 __builtin_avr_countlsFX, respectively.
37183 * config/avr/avr-c.c (target.h): Include it.
37184 (enum avr_builtin_id): New enum.
37185 (avr_resolve_overloaded_builtin): New static function.
37186 (avr_register_target_pragmas): Use it to set
37187 targetm.resolve_overloaded_builtin.
37188 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37189 tree nodes used by DEF_BUILTIN.
37190 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37191 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37192 <AVR_BUILTIN_xxBITS>: Same.
37194 2013-02-08 Richard Biener <rguenther@suse.de>
37196 * cfgloop.c (verify_loop_structure): Properly handle
37197 a loop exiting to another loop header.
37198 * ira-int.h (ira_loops): Remove.
37199 * ira.c (ira_loops): Remove.
37200 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37201 (do_reload): Use loop_optimizer_finalize.
37202 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37203 number_of_loops to access the loop tree.
37204 (more_one_region_p): Likewise.
37205 (finish_loop_tree_nodes): Likewise.
37206 (rebuild_regno_allocno_maps): Likewise.
37207 (mark_loops_for_removal): Likewise.
37208 (mark_all_loops_for_removal): Likewise.
37209 (remove_unnecessary_regions): Likewise.
37210 (ira_build): Likewise.
37211 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37213 2013-02-08 Richard Biener <rguenther@suse.de>
37215 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37216 * ipa-pure-const.c (analyze_function): Avoid calling
37217 mark_irreducible_loops twice.
37218 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37220 2013-02-07 David S. Miller <davem@davemloft.net>
37222 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37224 * var-tracking.c (vt_add_function_parameter): Test the presence of
37225 HAVE_window_save properly and do not remap argument registers when
37226 we have a leaf function.
37228 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37231 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37233 * config/i386/i386.c (ix86_print_operand): Ditto.
37235 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37237 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37239 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37241 PR rtl-optimization/56225
37242 * lra-constraints.c (process_alt_operands): Check that reload hard
37243 reg can hold value for strict_low_part.
37245 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37248 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37249 dwarf2out_end_function.
37250 (in_first_function_p, maybe_at_text_label_p,
37251 first_loclabel_num_not_at_text_label): New variables.
37252 (dwarf2out_var_location): In the first function find out
37253 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37254 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37257 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37259 PR rtl-optimization/56178
37260 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37261 SUBREG of a register. Tidy up related block of code.
37262 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37263 note if the source is a register or a SUBREG of a register.
37265 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37268 * config/rs6000/rs6000.md (ptrm): New mode attr.
37269 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37270 call_value_indirect_aix<pttrsize>,
37271 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37274 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37276 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37277 if -bnortl. Convert to strcmp and strncmp.
37279 2013-02-07 Alan Modra <amodra@gmail.com>
37282 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37283 addresses won't wrap when offsetting.
37284 (rs6000_secondary_reload): Provide secondary reloads needed for
37285 wrapping LO_SUM addresses.
37287 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37289 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37290 MACH, just __MACH__.
37292 2013-02-06 Richard Biener <rguenther@suse.de>
37294 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37295 instead of calling fix_loop_structure.
37297 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37299 PR middle-end/56217
37300 * omp-low.c (use_pointer_for_field): Return false if
37301 lower_send_shared_vars doesn't generate any copy-out code.
37303 2013-02-06 Tom de Vries <tom@codesourcery.com>
37305 PR rtl-optimization/56131
37306 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37307 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37308 of the label is NULL. Add comment.
37310 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37312 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37315 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37316 (STATIC_LIBTSAN_LIBS): Likewise.
37317 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37318 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37319 is defined, don't add anything else beyond that.
37320 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37321 (LINK_COMMAND_SPEC): Use them.
37323 PR tree-optimization/56205
37324 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37325 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37326 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37328 2013-02-05 Richard Biener <rguenther@suse.de>
37330 PR tree-optimization/53342
37331 PR tree-optimization/53185
37332 * tree-vectorizer.h (vect_check_strided_load): Remove.
37333 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37334 not disallow peeling for vectorized strided loads.
37335 (vect_check_strided_load): Make static and simplify.
37336 (vect_analyze_data_refs): Adjust.
37337 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37338 correctly when vectorizing strided loads.
37340 2013-02-05 Richard Biener <rguenther@suse.de>
37342 * doc/install.texi: Refer to ISL, not PPL.
37344 2013-02-05 Jan Hubicka <jh@suse.cz>
37346 PR tree-optimization/55789
37347 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37349 2013-02-05 Jan Hubicka <jh@suse.cz>
37351 PR tree-optimization/55789
37352 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37353 the dead call anyway.
37355 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37358 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37360 2013-02-04 Alexander Potapenko <glider@google.com>
37361 Jack Howarth <howarth@bromo.med.uc.edu>
37362 Jakub Jelinek <jakub@redhat.com>
37365 * config/darwin.c (sort_ctor_records): Stabilized qsort
37366 on constructor priority by using original position.
37367 (finalize_ctors): New routine to sort constructors by
37368 priority before use in assemble_integer.
37369 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37371 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37374 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37375 about visibility on artificial decls.
37376 * config/sol2.c (solaris_assemble_visibility): Likewise.
37378 2013-02-04 Kai Tietz <ktietz@redhat.com>
37381 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37382 argument and improve checking of return-argument types for 16-byte
37384 (ix86_function_value_1): Add additional valtype argument on call
37385 of function_value_64.
37386 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37387 handling infunction_value_64 function.
37389 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37391 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37393 2013-02-04 Richard Biener <rguenther@suse.de>
37395 PR tree-optimization/56188
37396 * tree-ssa-structalias.c (label_visit): Consider case with
37397 initially non-empty points-to set.
37398 (perform_var_substitution): Dump node mapping and clean up.
37400 2013-02-04 Richard Guenther <rguenther@suse.de>
37403 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37404 node prevail as last resort.
37405 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37406 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37408 2013-02-04 Richard Biener <rguenther@suse.de>
37410 PR tree-optimization/56113
37411 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37413 (equiv_class_lookup_or_add): ... this.
37414 (label_visit): Adjust and fix error in previous patch.
37415 (perform_var_substitution): Adjust.
37417 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37419 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37420 * config/sh/sh4-300.md: Likewise.
37421 * config/sh/sh4a.md: Likewise.
37422 * config/sh/constraints.md: Likewise.
37423 * config/sh/sh.md: Likewise.
37424 * config/sh/netbsd-elf.h: Likewise.
37425 * config/sh/predicates.md: Likewise.
37426 * config/sh/sh-protos.h: Likewise.
37427 * config/sh/ushmedia.h: Likewise.
37428 * config/sh/linux.h: Likewise.
37429 * config/sh/sh.c: Likewise.
37430 * config/sh/superh.h: Likewise.
37431 * config/sh/elf.h: Likewise.
37432 * config/sh/sh4.md: Likewise.
37433 * config/sh/sh.h: Likewise.
37435 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37437 * config/pa/constraints.md: Adjust unused letters. Change "T"
37438 constraint to match_test floating_point_store_memory_operand().
37439 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37440 (base14_operand): New.
37441 (floating_point_store_memory_operand): New.
37442 (integer_store_memory_operand): Revise to use base14_operand and
37443 reg_plus_base_memory_operand.
37444 (move_dest_operand): Allow symbolic_memory_operands.
37445 (symbolic_memory_operand): Check for LO_SOM.
37446 (symbolic_operand): Change default case to break.
37447 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37448 CONST_DOUBLE values to be reloaded by putting them into memory when
37449 the destination is a floating point register.
37450 (movdf): Remove code to handle CONST_DOUBLE.
37452 (reload_indf_r1): New.
37453 (reload_insf_r1): New.
37454 Consistently use "Q" and "T" constraints with integer and floating
37455 point move instructions, respectively.
37456 (movdi): Remove FAIL.
37457 Change predicate for source operand unamed DImode move from
37458 general_operand to move_src_operand.
37459 (umulsidi3): Change predicate for destination operand to
37461 Likewise for similar unamed patterns.
37462 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37463 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37464 (hppa_legitimize_address): Simplify mask calculation.
37465 (pa_emit_move_sequence): Revised handling of secondary reloads from
37466 REG+D addresses for floating point loads and stores. Directly handle
37467 loading CONST0_RTX (mode) to a floating point register.
37468 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37469 to floating point registers. Don't restrict secondary reloads to
37470 floating point registers to integer modes. Revise some comments and
37472 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37473 (pa_legitimate_address_p): New.
37474 (pa_legitimize_reload_address): New.
37475 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37476 (STRICT_REG_OK_FOR_BASE_P): New.
37477 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37478 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37480 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37481 Andrew Dixie <andrewd@gentrack.com>
37483 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37486 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37488 * expmed.c (extract_bit_field_1): Pass the full width of the
37489 structure to get_best_reg_extraction_insn.
37491 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37494 * configure.ac (use_cxa_atexit): Add AIX.
37495 * configure: Regenerate.
37497 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37499 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37502 * final.c (need_profile_function): New variable.
37503 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37504 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37505 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37506 notes, targetm.asm_out.function_prologue doesn't emit anything,
37507 HAVE_prologue and profiler should be emitted before prologue,
37508 set need_profile_function instead of emitting it.
37509 (final_scan_insn): If need_profile_function, emit
37510 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37511 NOTE_INSN_FUNCTION_BEG note.
37513 2013-02-01 Richard Henderson <rth@redhat.com>
37515 * config/rs6000/rs6000.md (smulditi3): New.
37518 * config/alpha/alpha.md (umulditi3): New.
37520 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37522 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37523 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37525 2013-02-01 Richard Biener <rguenther@suse.de>
37527 PR tree-optimization/56113
37528 * tree-ssa-structalias.c (label_visit): Reduce work for
37529 single-predecessor nodes.
37531 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37533 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37534 range isn't testing for zero.
37536 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37538 PR middle-end/56113
37539 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37541 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37542 Nick Clifton <nickc@redhat.com>
37544 * config/v850/constraints.md (Q): Define as a memory constraint.
37545 * config/v850/predicates.md (label_ref_operand): New predicate.
37546 (e3v5_shift_operand): New predicate.
37547 (ior_operator): New predicate.
37548 * config/v850/t-v850: Add e3v5 multilib.
37549 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37550 (v850_gen_movdi): Prototype.
37551 * config/v850/v850.c: Add support for e3v5 architecture.
37552 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37554 (construct_save_jarl): Add e3v5 long JARL support.
37555 (v850_adjust_insn_length): New function. Adjust length of call
37556 insns when using e3v5 instructions.
37557 (v850_gen_movdi): New function: Generate instructions to move a
37559 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37560 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37561 (TARGET_USE_FPU): Enable for e3v5.
37562 (CONST_OK_FOR_W): New macro.
37563 (ADJUST_INSN_LENGTH): Define.
37564 * config/v850/v850.md (UNSPEC_LOOP): Define.
37565 (attr cpu): Add v850e3v5.
37566 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37567 (movdi): New pattern.
37568 (movdi_internal): New pattern.
37569 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37570 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37571 (cstoresf4): Likewise.
37572 (cstoredf4): Likewise.
37573 (insv): New pattern.
37574 (rotlso3_a): New pattern.
37575 (rotlsi3_b): New pattern
37576 (rotlsi3_v850e3v5): New pattern.
37577 (doloop_begin): New pattern.
37578 (fix_loop_counter): New pattern.
37579 (doloop_end): New pattern.
37580 (branch_normal): Add e3v5 long branch support.
37581 (branch_invert): Likewise.
37582 (branch_z_normal): Likewise.
37583 (branch_z_invert): Likewise.
37584 (branch_nz_normal): Likewise.
37585 (branch_nz_invert): Likewise.
37586 (call_internal_short): Add e3v5 register-indirect JARL support.
37587 (call_internal_long): Likewise.
37588 (call_value_internal_short): Likewise.
37589 (call_value_internal_long): Likewise.
37590 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37591 (mloop): New option.
37592 * config.gcc: Add support for configuring v840e3v5 target.
37593 * doc/invoke.texi: Document new v850 specific command line options.
37595 2013-01-31 Paul Koning <ni1d@arrl.net>
37599 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37600 children if parent is a class.
37601 (prune_unused_types_prune): Don't add DW_AT_declaration.
37603 2013-01-31 Richard Biener <rguenther@suse.de>
37605 PR tree-optimization/56157
37606 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37607 match up operand with SLP child.
37609 2013-01-31 Jason Merrill <jason@redhat.com>
37612 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37613 parameters the first time.
37614 (gen_scheduled_generic_parms_dies): Check completeness here.
37616 2013-01-31 Richard Biener <rguenther@suse.de>
37618 PR middle-end/53073
37619 * common.opt (faggressive-loop-optimizations): New flag,
37620 enabled by default.
37621 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37622 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37623 infer_loop_bounds_from_undefined by it.
37625 2013-01-31 Richard Biener <rguenther@suse.de>
37627 PR tree-optimization/56150
37628 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37629 visit virtual operands.
37630 (find_uses_to_rename_bb): Likewise.
37632 2013-01-31 Richard Biener <rguenther@suse.de>
37634 PR tree-optimization/56150
37635 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37636 mixed store non-store stmts.
37638 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37641 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37642 LIBASAN_EARLY_SPEC is defined.
37643 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37644 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37646 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37649 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37650 invalid args instead of ICEing on it.
37651 (ix86_valid_target_attribute_tree): Return error_mark_node if
37652 ix86_valid_target_attribute_inner_p failed.
37653 (ix86_valid_target_attribute_p): Return false only if
37654 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37655 target("default") attribute.
37656 (sorted_attr_string): Change argument from const char * to tree,
37657 merge in all target attribute arguments rather than just one.
37658 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37659 instead of free. Avoid using strcat.
37660 (ix86_mangle_function_version_assembler_name): Mangle
37661 target("default") as if no target attribute is present. Adjust
37662 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37663 instead of xmalloc and XDELETEVEC instead of free.
37664 (ix86_function_versions): Don't return true if one of the decls
37665 doesn't have target attribute. If they don't and one of the decls
37666 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37667 sorted_attr_string caller. Use XDELETEVEC instead of free.
37668 (ix86_supports_function_versions): Remove.
37669 (make_name): Fix up formatting.
37670 (make_dispatcher_decl): Remove resolver_name and its initialization.
37671 Avoid leaking memory.
37672 (is_function_default_version): Return true if there is
37673 target("default") attribute rather than no target attribute at all.
37674 (make_resolver_func): Avoid leaking memory.
37675 (ix86_generate_version_dispatcher_body): Likewise.
37676 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37677 * target.def (supports_function_versions): Remove.
37678 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37679 * doc/tm.texi: Regenerated.
37681 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37683 PR rtl-optimization/56144
37684 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37685 for values with side effects.
37687 2013-01-30 Richard Biener <rguenther@suse.de>
37689 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37690 (sparseset_pop): Likewise.
37691 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37692 to be able to use quick_push in the worker loop.
37694 2013-01-30 Marek Polacek <polacek@redhat.com>
37696 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37698 2013-01-30 Richard Biener <rguenther@suse.de>
37701 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37703 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37705 PR tree-optimization/56064
37706 * fixed-value.c (fixed_from_double_int): New function.
37707 * fixed-value.h (fixed_from_double_int): New prototype.
37708 (const_fixed_from_double_int): New static inline function.
37709 * fold-const.c (native_interpret_fixed): New static function.
37710 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37711 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37712 (native_encode_fixed): New static function.
37713 (native_encode_expr) <FIXED_CST>: Use it.
37714 (native_interpret_int): Move double_int worker code to...
37715 * double-int.c (double_int::from_buffer): ...this new static method.
37716 * double-int.h (double_int::from_buffer): Prototype it.
37718 2013-01-30 Richard Biener <rguenther@suse.de>
37720 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37721 New pointer-map and obstack.
37722 (init_alias_vars): Allocate pointer-map and obstack.
37723 (delete_points_to_sets): Free them.
37724 (find_what_var_points_to): Cache result.
37725 (find_what_p_points_to): Adjust for changed interface of
37726 find_what_var_points_to.
37727 (compute_points_to_sets): Likewise.
37728 (ipa_pta_execute): Likewise.
37730 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37732 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37733 * configure: Regenerate.
37734 * config.in: Regenerate.
37735 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37736 #nobits/#progbits if supported.
37738 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37741 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37742 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37743 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37745 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37747 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37748 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37750 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37752 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37753 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37755 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37757 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37759 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37760 * config/arm/cortex-a7.md: New bypasses using
37761 arm_mac_accumulator_is_result.
37763 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37765 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37766 (cortex_a7_neon_mla): Likewise.
37767 (cortex_a7_fpfmad): New reservation.
37768 (cortex_a7_fpmacs): Use ffmas and update required units.
37769 (cortex_a7_fpmuld): Update required units and latency.
37770 (cortex_a7_fpmacd): Likewise.
37771 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37772 (cortex_a7_neon). Likewise.
37773 (bypass) Update participating units.
37775 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37777 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37778 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37780 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37781 (vfp_fmul): Use ffmad.
37782 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37783 (cortex_r4_fmacd): Use ffmad.
37784 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37785 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37786 (cortex_a9_fmacd): Use ffmad.
37787 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37788 (cortex_a8_vfp_macd): Use ffmad.
37789 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37790 (cortex_a5_fpmacd): Use ffmad.
37791 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37792 (cortex_a15_vfp_macd): Use ffmad.
37793 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37795 2013-01-29 Jason Merrill <jason@redhat.com>
37798 * varasm.c (default_assemble_visibility): Don't warn about
37799 visibility on artificial decls.
37801 2013-01-29 Richard Biener <rguenther@suse.de>
37803 PR tree-optimization/56113
37804 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37806 (label_visit): Free duplicate bitmaps and record the leader instead.
37807 (perform_var_substitution): Adjust.
37809 2013-01-29 Richard Biener <rguenther@suse.de>
37811 PR tree-optimization/55270
37812 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37813 the CFG, schedule loops for fixup.
37815 2013-01-29 Nick Clifton <nickc@redhat.com>
37817 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37820 2013-01-28 Leif Ekblad <leif@rdos.net>
37822 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37823 * config/i386/i386.h (TARGET_RDOS): New macro.
37824 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37825 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37826 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37827 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37828 DEFAULT_LARGE_SECTION_THRESHOLD.
37829 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37830 * config/i386/rdos.h: New file.
37831 * config/i386/rdos64.h: New file.
37833 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37836 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37839 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37841 PR rtl-optimization/56117
37842 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37843 call cselib_lookup_from_insn on the MEM before calling
37844 add_insn_mem_dependence.
37846 2013-01-28 Richard Biener <rguenther@suse.de>
37848 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37849 to a stmt that didn't have one.
37850 (copy_phis_for_bb): Likewise for PHI arguments.
37851 (copy_debug_stmt): Likewise for debug stmts.
37853 2013-01-28 Richard Biener <rguenther@suse.de>
37855 PR tree-optimization/56034
37856 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37857 (partition_builtin_p): Adjust.
37858 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37859 it is the last partition.
37860 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37861 up the vertex for the definition.
37862 (classify_partition): Classify whether a partition is a
37863 PKIND_REDUCTION, thus has uses outside of the loop.
37864 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37865 Merge all PKIND_REDUCTION partitions into the last partition.
37866 (tree_loop_distribution): Seed partitions from reductions as well.
37868 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37870 PR tree-optimization/56125
37871 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37872 pow(x,c) into sqrt(x) * powi(x, n/2) or
37873 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37874 optimizing for size.
37875 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37876 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37879 PR tree-optimization/56094
37880 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37881 to UNKNOWN_LOCATION while gimplifying expr.
37883 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37886 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37887 operand 0 in movabs insn template for -masm=intel asm alternative.
37888 (*movabs<mode>_2): Ditto for operand 1.
37890 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37893 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37896 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37898 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37901 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37903 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37904 Undef to avoid warning.
37906 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37908 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37909 * configure: Regenerate.
37911 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37913 PR tree-optimization/56098
37914 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37915 for stmts with volatile ops.
37916 (cond_store_replacement): Don't optimize if assign has volatile ops.
37917 (cond_if_else_store_replacement_1): Don't optimize if either
37918 then_assign or else_assign have volatile ops.
37919 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37922 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37924 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37926 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37928 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37929 missing ':' in asm example.
37931 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37933 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37934 entries into lane and laneq entries.
37935 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37936 Remove AdvSIMD scalar modes.
37937 (aarch64_sq<r>dmulh_laneq<mode>): New.
37938 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37940 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37941 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37942 * config/aarch64/iterators.md (VCOND): New.
37945 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37948 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37949 Add NULL LIBNAME argument to existing definitions.
37950 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37951 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37952 * config/avr/avr.c (DEF_BUILTIN): Same.
37953 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37954 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37955 implementation is available (DECL_ASSEMBLER_NAME is set).
37956 (avr_fold_absfx): New static function.
37957 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37958 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37959 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37960 AVR_BUILTIN_ABSLLK.
37961 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37962 (abshk, absk, abslk, absllk): Provide as static inline functions.
37964 2013-01-25 Marek Polacek <polacek@redhat.com>
37966 PR tree-optimization/56035
37967 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37969 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37971 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37972 (*movtf_internal_rex64): Add (!o,C) alternative
37973 (*movxf_internal_rex64): Ditto.
37974 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37976 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37978 * doc/invoke.texi: fix typo.
37979 * doc/objc.texi: fix typo.
37981 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37983 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37984 for the first two alternatives.
37986 2013-01-24 Diego Novillo <dnovillo@google.com>
37988 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37989 (ggc-zone.o): Remove.
37990 * configure.ac: Remove option --with-gc.
37991 * configure: Re-generate.
37992 * doc/install.texi: Remove documentation for --with-gc.
37993 * gengtype.c (write_enum_defn): Remove. Update all users.
37994 (write_Types_process_field): Remove generation of gt_e_* argument.
37995 (output_type_enum): Remove. Update all users.
37996 (write_enum_defn): Remove. Update all users.
37997 (enum alloc_zone): Remove. Update all users.
37998 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37999 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38000 Update all callers.
38001 (struct ptr_data): Remove field TYPE. Update all users.
38002 (gt_pch_note_object): Remove argument TYPE. Update all users.
38003 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38005 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38006 (struct alloc_zone): Remove.
38007 (ggc_internal_alloc_zone_stat): Remove.
38008 (ggc_internal_cleared_alloc_zone_stat): Remove.
38009 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38010 (ggc_pch_count_object): Remove last argument. Update all users.
38011 (ggc_pch_alloc_object): Remove last argument. Update all users.
38012 (struct alloc_zone): Remove.
38013 * ggc-zone.c: Remove.
38014 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38015 (struct alloc_zone): Remove.
38016 (ggc_alloc_typed_stat): Remove.
38017 (ggc_alloc_typed): Remove.
38018 (ggc_splay_alloc): Remove first argument.
38019 (rtl_zone): Remove. Update all users.
38020 (tree_zone): Remove. Update all users.
38021 (tree_id_zone): Remove. Update all users.
38022 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38023 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38024 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38025 * tree-ssanames.c: Remove references to zone allocator in comments.
38027 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38029 * config/avr/avr.c (avr_out_fract): Make register numbers that
38030 might be outside of source operand signed.
38032 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38034 * config/i386/constraints.md (Yf): New constraint.
38035 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38036 of f constraint to conditionaly disable x87 register preferences.
38037 (*movdf_internal): Ditto.
38038 (*movsf_internal): Ditto.
38040 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38042 PR inline-asm/55934
38043 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38044 that have operands with impossible constraints.
38045 Add a FIXME for a speed-up opportunity.
38046 * lra-constraints.c (process_alt_operands): Verify that a class
38047 selected from constraints on asms is valid for the operand mode.
38048 (curr_insn_transform): Remove incorrect comment.
38050 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38052 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38053 TOC operand is a valid symbol ref in the constant pool.
38055 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38057 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38059 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38062 * config/avr/stdfix.h: New file.
38063 * t-avr (stdfix-gcc.h): New rule to build it.
38064 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38066 2013-01-23 Kostya Serebryany <kcc@google.com>
38068 * config/darwin.h: remove dependency on
38069 CoreFoundation (asan on Mac OS).
38071 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38074 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38075 instead of cmpdi_operand for first comparison operand.
38076 Don't assert that comparison operands aren't both constants.
38078 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38080 * doc/install.texi (Downloading the Source): Update references to
38081 downloading separate components.
38083 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38085 * doc/extend.texi (__int128): Improve grammar.
38087 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38090 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38091 alternative to (o,r).
38092 (*movdi_internal_rex64): Remove (!o,n) alternative.
38093 (DImode immediate->memory splitter): Remove.
38094 (DImode immediate->memory peephole2): Remove.
38095 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38096 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38097 alternative to (!o,*r).
38098 (*movtf_internal_sse): New pattern.
38099 (*movxf_internal_rex64): New pattern.
38100 (*movxf_internal): Disable for TARGET_64BIT.
38101 (*movdf_internal_rex64): Remove (!o,F) alternative.
38103 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38105 PR middle-end/56074
38106 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38107 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38108 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38109 stmt locations where LOCATION_LOCUS of the stmt location is
38110 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38113 * config/i386/i386.md (UNSPEC_STOS): New.
38114 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38115 *strsetqi_1): Add UNSPEC_STOS.
38117 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38120 * doc/invoke.texi: Remove left over -Wsynth example.
38122 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38124 PR tree-optimization/56051
38125 * fold-const.c (fold_binary_loc): Don't fold
38126 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38127 a narrowing conversion, or widening conversion from signed
38130 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38132 PR rtl-optimization/56023
38133 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38134 dependent on debug instruction.
38136 2013-01-21 Martin Jambor <mjambor@suse.cz>
38138 PR middle-end/56022
38139 * function.c (allocate_struct_function): Call
38140 invoke_set_current_function_hook earlier.
38142 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38144 * reload1.c (init_reload): Only initialize reload_obstack
38145 during the first call.
38147 2013-01-21 Marek Polacek <polacek@redhat.com>
38149 * cfgloop.c (verify_loop_structure): Fix up grammar.
38151 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38153 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38154 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38156 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38159 * config/arm/marvell-pj4.md: Update copyright year.
38160 Fix up use of alu to alu_reg and simple_alu_imm.
38162 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38164 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38166 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38169 * lra-constraints.c (curr_insn_transform): Don't reuse original
38170 insn for secondary memory move when memory mode should be different.
38172 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38174 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38175 atomic_storedi_1): New patterns.
38177 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38179 btver2 pipeline descriptions.
38180 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38182 * config/i386/i386.md (btver2_decode): New type attributes.
38183 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38185 * config/i386/btver2.md: New file describing btver2 pipelines.
38187 2013-01-19 Andrew Pinski <apinski@cavium.com>
38189 PR tree-optimization/52631
38190 * tree-ssa-sccvn (visit_use): Before looking up the original
38191 statement, try looking up the simplified expression.
38193 2013-01-19 Anthony Green <green@moxielogic.com>
38195 * config/moxie/moxie.c (moxie_expand_prologue): Set
38196 current_function_static_stack_size.
38198 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38200 PR tree-optimization/56029
38201 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38202 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38204 2013-01-18 Sharad Singhai <singhai@google.com>
38206 PR tree-optimization/55995
38207 * dumpfile.c (dump_loc): Print location only if available.
38208 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38210 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38213 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38214 secondary memory move.
38215 (inherit_reload_reg): Use rclass instead of cl for
38216 check_secondary_memory_needed_p.
38218 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38220 PR middle-end/56015
38221 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38222 the case where writing real complex part of target modifies op1.
38224 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38226 * config/aarch64/aarch64-simd.md
38227 (aarch64_vcond_internal<mode>): Handle unordered cases.
38228 * config/aarch64/iterators.md (v_cmp_result): New.
38230 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38231 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38233 * config/arm/marvell-pj4.md: New file.
38234 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38235 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38236 (generic_vfp): Likewise.
38237 * config/arm/arm-cores.def: Add marvell-pj4.
38238 * config/arm/arm-tune.md: Regenerate.
38239 * config/arm/arm-tables.opt: Regenerate.
38240 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38241 * doc/invoke.texi: Document marvell-pj4.
38243 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38245 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38247 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38252 * var-tracking.c (negative_power_of_two_p): New.
38253 (global_get_addr_cache, local_get_addr_cache): New.
38254 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38255 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38257 (vt_stack_offset_p): Remove.
38258 (vt_canon_true_dep): Always canonicalize loc's address.
38259 (clobber_overlapping_mems): Make sure we have a MEM.
38260 (local_get_addr_clear_given_value): New.
38261 (val_reset): Clear local cached entries.
38262 (compute_bb_dataflow): Create and release the local cache.
38263 Disable duplicate MEMs clobbering.
38264 (emit_notes_in_bb): Clobber MEMs likewise.
38265 (vt_emit_notes): Create and release the local cache.
38266 (vt_initialize, vt_finalize): Create and release the global
38267 cache, respectively.
38268 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38270 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38272 PR libmudflap/53359
38273 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38274 not found in the symtab.
38276 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38279 PR rtl-optimization/55547
38280 PR rtl-optimization/53827
38283 * alias.c (offset_overlap_p): New, factored out of...
38284 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38285 the conservative special case for symbolic constants. Don't
38286 adjust zero sizes on alignment.
38288 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38290 PR rtl-optimization/52573
38291 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38292 REG_UNUSED for the same register.
38294 2013-01-17 Richard Biener <rguenther@suse.de>
38295 Marek Polacek <polacek@redhat.com>
38297 PR rtl-optimization/55833
38298 * loop-unswitch.c (unswitch_loops): Move loop verification...
38299 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38300 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38301 Set it to true when we're removing a loop from hierarchy tree in
38302 an irreducible region.
38303 (fix_bb_placements): Adjust caller.
38304 (fix_loop_placements): Likewise.
38306 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38308 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38309 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38310 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38311 Remove ID. Adjust comments.
38312 * config/avr/avr-c.c (avr_builtin_name): Remove.
38313 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38314 * config/avr/avr.c (avr_tolower): New static function.
38315 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38316 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38317 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38320 2013-01-17 Jan Hubicka <jh@suse.cz>
38322 PR tree-optimization/55273
38323 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38325 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38328 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38329 store through atomic_store<mode>_1.
38330 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38332 2013-01-17 Martin Jambor <mjambor@suse.cz>
38334 PR tree-optimizations/55264
38335 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38336 for virtual methods.
38337 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38338 virtual methods before inlining is over.
38339 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38341 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38344 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38346 PR rtl-optimization/56005
38347 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38348 pending reads for prefetch.
38350 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38352 * config/aarch64/aarch64.md
38353 (*cstoresi_neg_uxtw): New pattern.
38354 (*cmovsi_insn_uxtw): New pattern.
38355 (*<optab>si3_uxtw): New pattern.
38356 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38357 (*<optab>si3_insn_uxtw): New pattern.
38358 (*bswapsi2_uxtw): New pattern.
38360 2013-01-16 Richard Biener <rguenther@suse.de>
38362 * tree-inline.c (tree_function_versioning): Remove set but
38363 never used variable.
38365 2013-01-16 Richard Biener <rguenther@suse.de>
38367 PR tree-optimization/55964
38368 * tree-flow.h (rename_variables_in_loop): Remove.
38369 (rename_variables_in_bb): Likewise.
38370 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38371 (copy_loop_before): Adjust and delete update-ssa status.
38372 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38373 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38374 (rename_variables_in_loop): Remove.
38375 (slpeel_update_phis_for_duplicate_loop): Likewise.
38376 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38377 use available cfg machinery instead of duplicating it.
38378 Update PHI nodes and perform poor-mans SSA update here.
38379 (slpeel_tree_peel_loop_to_edge): Adjust.
38381 2013-01-16 Richard Biener <rguenther@suse.de>
38383 PR tree-optimization/54767
38384 PR tree-optimization/53465
38385 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38386 (vrp_visit_phi_node): For PHI arguments coming via backedges
38387 drop all symbolical range information.
38388 (execute_vrp): Compute backedges.
38390 2013-01-16 Richard Biener <rguenther@suse.de>
38392 * doc/install.texi: Update CLooG and ISL requirements to
38395 2013-01-16 Christian Bruel <christian.bruel@st.com>
38398 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38399 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38400 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38402 2013-01-16 DJ Delorie <dj@redhat.com>
38404 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38405 (UNSPECV_SP_SWITCH_E): New.
38406 (sp_switch_1): Change to an unspec.
38407 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38410 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38412 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38413 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38414 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38415 (expand_mem_thread_fence): Ditto.
38416 (expand_mem_signal_fence): Ditto.
38417 (expand_atomic_load): Ditto.
38418 (expand_atomic_store): Ditto.
38420 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38422 PR rtl-optimization/55547
38423 PR rtl-optimization/53827
38426 * alias.c (memrefs_conflict_p): Set sizes to negative after
38429 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38432 * function.c (thread_prologue_and_epilogue_insns): Always
38433 add crtl->drap_reg to set_up_by_prologue.set, even if
38434 stack_realign_drap is false.
38436 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38438 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38439 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38440 *call): Fix indention.
38442 2013-01-15 Tom de Vries <tom@codesourcery.com>
38445 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38448 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38450 PR rtl-optimization/55153
38451 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38453 2013-01-15 Martin Jambor <mjambor@suse.cz>
38455 PR tree-optimization/55920
38456 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38457 accesses as grp_to_be_debug_replaced.
38459 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38461 PR tree-optimization/55920
38462 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38463 there is non-useless type conversion needed from debug rhs to lhs,
38464 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38466 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38467 Mikael Pettersson <mikpe@it.uu.se>
38470 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38472 (ASM_OUTPUT_CASE_LABEL): Remove.
38473 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38474 * final.c (shorten_branches): Update alignment of labels before
38475 jump tables if CASE_VECTOR_SHORTEN_MODE.
38477 2013-01-15 Richard Biener <rguenther@suse.de>
38480 * system.h: Do not include gmp.h for building host tools.
38482 2013-01-15 Richard Biener <rguenther@suse.de>
38484 PR middle-end/55882
38485 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38486 account for bitpos when computing alignment.
38488 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38490 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38491 (ix86_target_macros_internal): Likewise.
38493 * config/i386/i386.c (m_CORE2I7): Removed.
38494 (m_CORE_HASWELL): New macro.
38495 (m_CORE_ALL): Likewise.
38496 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38497 (initial_ix86_arch_features): Likewise.
38498 (processor_target_table): Initializations for Core avx2.
38499 (cpu_names): New names "core-avx2".
38500 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38501 PROCESSOR_CORE_HASWELL.
38502 (ix86_issue_rate): New case.
38503 (ia32_multipass_dfa_lookahead): Likewise.
38504 (ix86_sched_init_global): Likewise.
38506 * config/i386/i386.h (TARGET_HASWELL): New macro.
38507 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38508 (processor_type): New PROCESSOR_HASWELL.
38510 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38512 PR tree-optimization/55955
38513 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38514 *SHIFT_EXPR and *ROTATE_EXPR codes.
38516 PR tree-optimization/48766
38517 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38518 -ftrapv disable -fwrapv.
38520 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38523 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38524 etc. to 1 and not to __flash.
38525 Use LL suffix for __INT24_MAX__ with -mint8.
38526 Use ULL suffix for __UINT24_MAX__ with -mint8.
38528 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38530 * config/avr/avr-arch.h
38531 (struct base_arch_s): Use typedef avr_arch_t instead.
38532 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38533 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38534 * config/avr/avr.c: Same.
38535 * config/avr/avr-devices.c: Same.
38536 * config/avr/driver-avr.c: Same.
38537 * config/avr/gen-avr-mmcu-texi.c: Same.
38538 * config/avr/avr-mcus.def: Adjust comment.
38540 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38542 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38543 * config/aarch64/iterators.md (VALLDI): New.
38545 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38546 Andi Kleen <ak@linux.intel.com>
38549 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38550 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38553 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38555 * config/avr/avr-stdint.h: Remove trailing blanks.
38556 * config/avr/avr-log.h: Same.
38557 * config/avr/avr-arch.h: Same.
38558 * config/avr/avr-devices.c: Same.
38559 * config/avr/avr-dimode.md: Same.
38560 * config/avr/predicates.md: Same.
38561 * config/avr/avr-c.c: Same. And fix typo.
38563 * config/avr/avr-protos.h: Same. And:
38564 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38565 (init_cumulative_args): Rename to avr_init_cumulative_args.
38566 (expand_prologue): Rename to avr_expand_prologue.
38567 (expand_epilogue): Rename to avr_expand_epilogue.
38568 (adjust_insn_length): Rename to avr_adjust_insn_length.
38569 (notice_update_cc): Rename to avr_notice_update_cc.
38570 (final_prescan_insn): Rename to avr_final_prescan_insn.
38571 * config/avr/avr.c: Same.
38572 * config/avr/avr.h: Same.
38573 * config/avr/avr.md: Remove trailing blanks.
38574 (prologue): Use avr_expand_prologue.
38575 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38577 2013-01-14 Richard Biener <rguenther@suse.de>
38579 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38580 verify_location, collect_subblocks): New functions.
38581 (verify_gimple_in_cfg): Verify that locations only reference
38582 BLOCKs in the functions BLOCK tree.
38584 2013-01-14 Richard Biener <rguenther@suse.de>
38586 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38588 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38590 (insert_out_of_ssa_copy_on_edge): Likewise.
38591 (rewrite_close_phi_out_of_ssa): Likewise.
38592 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38594 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38595 propagated constants.
38596 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38599 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38601 * config/avr/avr-modes.def: Add GPL copyright notice.
38603 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38605 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38606 MEMMODEL_MASK to determine memory model.
38607 (atomic_store<mode>): Ditto from operands[2].
38608 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38610 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38613 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38614 (fold_gimple_assign): Don't call unshare_expr here.
38615 (fold_ctor_reference): Call unshare_expr.
38617 2013-01-13 Terry Guo <terry.guo@arm.com>
38619 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38620 * doc/fragments.texi: Document MULTILIB_REUSE.
38621 * gcc.c (multilib_reuse): New internal spec.
38622 (set_multilib_dir): Also search multilib from multilib_reuse.
38623 * genmultilib (tmpmultilib3): Refactor code.
38624 (tmpmultilib4): Ditto.
38625 (multilib_reuse): New multilib argument.
38627 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38629 * Makefile.in: Update copyright.
38631 2013-01-12 Tom de Vries <tom@codesourcery.com>
38633 PR middle-end/55890
38634 * calls.c (expand_call): Check if arg_nr is valid.
38636 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38638 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38639 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38640 documentation. Add missing '__' in front of
38641 __builtin_ia32_packssdw256.
38643 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38646 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38647 NO_REGS for larl operands.
38648 (s390_reload_larl_operand): Use s390_load_address instead of
38651 2013-01-11 Richard Biener <rguenther@suse.de>
38653 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38654 (verify_node_sharing): ... here.
38655 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38657 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38659 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38660 Substitute TREECHECKING.
38661 * configure: Regenerate.
38662 * Makefile.in (TREECHECKING): New.
38664 2013-01-11 Richard Guenther <rguenther@suse.de>
38666 PR tree-optimization/44061
38667 * tree-vrp.c (extract_range_basic): Compute zero as
38668 value-range for __builtin_constant_p of function parameters.
38670 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38672 Update copyright years.
38674 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38676 PR rtl-optimization/55672
38677 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38678 const to be eliminable.
38680 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38682 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38683 * configure: Regenerate.
38685 2013-01-10 Richard Biener <rguenther@suse.de>
38687 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38689 2013-01-10 Richard Biener <rguenther@suse.de>
38692 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38693 locations for virtual PHI arguments.
38694 (rewrite_update_phi_arguments): Likewise.
38696 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38698 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38701 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38703 PR tree-optimization/55921
38704 * tree-complex.c (expand_complex_asm): New function.
38705 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38707 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38710 * config/s390/s390.c (s390_symref_operand_p)
38711 (s390_loadrelative_operand_p): Merge the two functions.
38712 (s390_check_qrst_address, print_operand_address): Add parameters
38713 to s390_loadrelative_operand_p invokation.
38714 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38715 (s390_reload_larl_operand, s390_secondary_reload): Use
38716 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38717 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38719 2013-01-09 Mike Stump <mikestump@comcast.net>
38721 * dse.c (record_store): Remove unnecessary assert.
38723 2013-01-09 Jan Hubicka <jh@suse.cz>
38725 PR tree-optimization/55569
38726 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38727 * cfgloop.h (scale_loop_profile): Likewise.
38729 2013-01-09 Jan Hubicka <jh@suse.cz>
38732 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38734 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38736 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38738 PR middle-end/55114
38739 * expr.h (maybe_emit_group_store): Declare.
38740 * expr.c (maybe_emit_group_store): New function.
38741 * builtins.c (expand_builtin_int_roundingfn): Call it.
38742 (expand_builtin_int_roundingfn_2): Likewise.
38744 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38746 PR rtl-optimization/55829
38747 * lra-constraints.c (match_reload): Add code for absent output.
38748 (curr_insn_transform): Add code for reloads of matched inputs
38751 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38753 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38754 attribute of movddup insn to DF.
38755 (*vec_interleave_lowv2df): Ditto.
38756 (vec_dupv2df): Ditto.
38758 2013-01-09 Jan Hubicka <jh@suse.cz>
38760 PR tree-optimiation/55875
38761 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38762 EVERY_ITERATION parameter.
38763 (number_of_iterations_exit): Check if exit is executed every iteration.
38764 (idx_infer_loop_bounds): Similarly here.
38765 (n_of_executions_at_most): Simplify
38766 to only test for cases where statement is dominated by the
38767 particular bound; handle correctly the "postdominance" test.
38768 (scev_probably_wraps_p): Use max loop iterations info
38769 as a global bound first.
38771 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38772 Nick Clifton <nickc@redhat.com>
38774 * config/v850/v850.md (cbranchsf4): New pattern.
38775 (cstoresf4): New pattern.
38776 (cbranchdf4): New pattern.
38777 (cstoredf4): New pattern.
38778 (movsicc): Disallow floating point comparisons.
38779 (cmpsf_le_insn): Fix order of operators.
38780 (cmpsf_lt_insn): Likewise.
38781 (cmpsf_eq_insn): Likewise.
38782 (cmpdf_le_insn): Likewise.
38783 (cmpdf_lt_insn): Likewise.
38784 (cmpdf_eq_insn): Likewise.
38785 (cmpsf_ge_insn): Use LE comparison.
38786 (cmpdf_ge_insn): Likewise.
38787 (cmpsf_gt_insn): Use LT comparison.
38788 (cmpdf_gt_insn): Likewise.
38789 (cmpsf_ne_insn): Delete pattern.
38790 (cmpdf_ne_insn): Delete pattern.
38791 * config/v850/v850.c (v850_gen_float_compare): Use
38792 gen_cmpdf_eq_insn for NE comparison.
38793 (v850_float_z_comparison_operator)
38794 (v850_float_nz_comparison_operator): Move from here ...
38795 * config/v850/predicates.md: ... to here. Move GT and GE
38796 comparisons into v850_float_z_comparison_operator.
38797 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38799 (v850_float_nz_comparison_operator): Likewise.
38801 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38803 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38804 with calls to gen_insvsi/gen_insvdi.
38806 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38808 * config/i386/i386.c (initial_ix86_tune_features): Set up
38809 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38811 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38812 Jakub Jelinek <jakub@redhat.com>
38814 PR tree-optimization/48189
38815 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38816 If nitercst is 0, don't predict the exit edge.
38818 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38820 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38821 in asm_fprintf with reg_names.
38822 (aarch64_print_operand_address): Likewise.
38823 (aarch64_return_addr): Likewise.
38824 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38826 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38828 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38829 (INT_U6_BITS): Likewise.
38830 * config/pa/predicates.md (uint6_operand): New predicate.
38831 (shift5_operand, shift6_operand): Likewise.
38832 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38834 (lshrdi3): Use shift6_operand.
38835 (shrpsi4, shrpdi4): New insn patterns.
38836 (extzv): Delete expander.
38837 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38838 predicates in unamed zero extract patterns. Tighten common constraint.
38839 (extv): Delete expander.
38840 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38841 predicates in unamed sign extract patterns. Tighten common constraint.
38842 (insv): Delete expander.
38843 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38844 predicates in unamed insert patterns. Tighten common constraint.
38845 Change uint32_operand predicate to uint6_operand predicate in unamed
38846 DImode pattern to insert constant values of type 1...1xxxx.
38848 2013-01-04 Jan Hubicka <jh@suse.cz>
38850 PR tree-optimization/55823
38851 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38854 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38855 Uros Bizjak <ubizjak@gmail.com>
38857 PR rtl-optimization/55845
38858 * df-problems.c (can_move_insns_across): Stop scanning at
38859 volatile_insn_p source instruction or give up if
38860 across_from .. across_to range contains any volatile_insn_p
38863 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38865 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38866 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38868 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38869 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38871 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38874 * asan.c (asan_clear_shadow): New function.
38875 (asan_emit_stack_protection): Use it.
38877 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38879 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38880 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38881 with tab instead of space.
38883 2013-01-08 Nick Clifton <nickc@redhat.com>
38885 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38886 register bank 0 at the start of an interrupt handler.
38887 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38890 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38892 * config/aarch64/aarch64-simd.md
38893 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38894 (aarch64_simd_bsl): Likewise.
38895 (aarch64_vcond_internal<mode>): Likewise.
38896 (vcond<mode><mode>): Likewise.
38897 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38898 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38900 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38902 * config/aarch64/aarch64-builtins.c
38903 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38905 2013-01-08 Martin Jambor <mjambor@suse.cz>
38908 * tree-sra.c (analyze_access_subtree): Return true also after
38909 potentially creating a debug-only replacement.
38911 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38913 PR middle-end/55890
38914 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38916 PR tree-optimization/54120
38917 * tree-vrp.c (range_fits_type_p): Don't allow
38918 src_precision < precision from signed vr to unsigned_p
38919 if vr->min or vr->max is negative.
38920 (simplify_float_conversion_using_ranges): Test can_float_p
38921 against CODE_FOR_nothing.
38923 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38924 Richard Biener <rguenther@suse.de>
38926 PR middle-end/55851
38927 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38928 types instead of just INTEGER_TYPE types.
38930 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38932 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38935 2013-01-07 Steve Ellcey <sellcey@mips.com>
38938 * config/mips/mips.opt: Change mad to mmad to match documentation.
38940 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38943 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38944 .progmemx.data now.
38946 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38949 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38950 (avr_addrspace_t): Add .section_name field.
38951 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38953 (avr_addrspace): Same. Initialize .section_name. Remove last
38954 NULL entry. Put __memx into .progmemx.data.
38955 (progmem_section_prefix): Remove.
38956 (avr_asm_init_sections): No need to initialize progmem_section.
38957 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38958 section name prefix.
38959 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38960 retrieve the progmem section.
38961 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38962 boundary to run over avr_addrspace[].
38963 (avr_register_target_pragmas): Ditto.
38965 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38967 * varasm.c (output_constant_def_contents): For asan_protect_global
38968 protected strings, adjust DECL_ALIGN if needed, before testing for
38970 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38971 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38973 (output_object_block): For asan protected decls, emit asan padding
38974 after their contents.
38975 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38976 (asan_finish_file): Test it here instead.
38978 2013-01-07 Nick Clifton <nickc@redhat.com>
38979 Matthias Klose <doko@debian.org>
38980 Doug Kwan <dougkwan@google.com>
38981 H.J. Lu <hongjiu.lu@intel.com>
38984 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38986 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38988 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38990 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38992 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38994 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38997 * doc/install.texi (Cross-Compiler-Specific Options): Document
39000 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39002 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39003 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39004 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39005 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39006 vqmovun_high_s64): Fix source operand number and update copyright.
39008 2013-01-07 Richard Biener <rguenther@suse.de>
39010 PR middle-end/55890
39011 * gimple.h (gimple_call_builtin_p): New overload.
39012 * gimple.c (validate_call): New function.
39013 (gimple_call_builtin_p): Likewise.
39014 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39015 Use gimple_call_builtin_p.
39016 (find_func_clobbers): Likewise.
39017 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39018 (strlen_optimize_stmt): Likewise.
39020 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39022 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39023 (vld1q_dup_*): Likewise.
39024 (vld1_*): Likewise.
39025 (vld1q_*): Likewise.
39026 (vld1_lane_*): Likewise.
39027 (vld1q_lane_*): Likewise.
39029 2013-01-07 Richard Biener <rguenther@suse.de>
39031 * lto-streamer.h (LTO_minor_version): Bump to 2.
39033 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39035 * config/aarch64/aarch64-protos.h
39036 (aarch64_const_double_zero_rtx_p): Rename to...
39037 (aarch64_float_const_zero_rtx_p): ...this.
39038 (aarch64_float_const_representable_p): New.
39039 (aarch64_output_simd_mov_immediate): Likewise.
39040 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39041 move immediate case.
39042 * config/aarch64/aarch64.c
39043 (aarch64_const_double_zero_rtx_p): Rename to...
39044 (aarch64_float_const_zero_rtx_p): ...this.
39045 (aarch64_print_operand): Allow printing of new constants.
39046 (aarch64_valid_floating_const): New.
39047 (aarch64_legitimate_constant_p): Check for valid floating-point
39049 (aarch64_simd_valid_immediate): Likewise.
39050 (aarch64_vect_float_const_representable_p): New.
39051 (aarch64_float_const_representable_p): Likewise.
39052 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39053 (aarch64_output_simd_mov_immediate): New.
39054 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39055 (*movdf_aarch64): Likewise.
39056 * config/aarch64/constraints.md (Ufc): New.
39057 (Y): call aarch64_float_const_zero_rtx.
39058 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39060 2013-01-07 Richard Biener <rguenther@suse.de>
39062 PR tree-optimization/55888
39063 PR tree-optimization/55862
39064 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39065 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39066 not if it is contained therein.
39068 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39070 * config/avr/t-avr: Typo.
39072 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39075 * config/avr/t-avr: Don't automatically rebuild
39076 $(srcdir)/config/avr/t-multilib
39077 $(srcdir)/config/avr/avr-tables.opt
39078 $(srcdir)/doc/avr-mmcu.texi
39079 (avr-mcus): New phony target to build them on request.
39080 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39081 * avr/avr-mcus.def: Adjust comments.
39083 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39085 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39087 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39089 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39091 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39093 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39095 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39097 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39098 to generate profiling.
39099 * config/rs6000/aix64.h (LIB_SPEC): Same.
39101 2013-01-04 Andrew Pinski <apinski@cavium.com>
39103 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39105 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39107 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39109 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39111 (ix86_expand_move): Ditto.
39112 (ix86_zero_extend_to_Pmode): Ditto.
39113 (ix86_expand_call): Ditto.
39114 (ix86_expand_special_args_builtin): Ditto.
39115 (ix86_expand_builtin): Ditto.
39117 2013-01-04 Richard Biener <rguenther@suse.de>
39119 PR tree-optimization/55862
39120 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39121 translating them through PHI nodes.
39123 2013-01-04 Martin Jambor <mjambor@suse.cz>
39125 PR tree-optimization/55755
39126 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39127 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39129 2013-01-04 Marek Polacek <polacek@redhat.com>
39131 PR middle-end/55859
39132 * opts.c (default_options_optimization): Clarify error message.
39134 2013-01-04 Richard Biener <rguenther@suse.de>
39136 PR middle-end/55863
39137 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39140 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39143 * config/pa/pa.md (movsi): Revert previous change.
39144 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39147 2013-01-03 Richard Henderson <rth@redhat.com>
39149 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39150 after eliminating TLS symbols.
39152 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39155 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39156 * graphite-poly.c (debug_gmp_value): Likewise.
39158 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39161 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39162 selected code model, define __code_mode_small__, __code_model_medium__,
39163 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39164 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39165 xchg temporary register with %k. Declare temporary register as
39167 [__x86_64__]: For medium and large code models, preserve %rbx register.
39169 2013-01-03 Richard Biener <rguenther@suse.de>
39171 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39172 (dump_subscript): Adjust.
39173 (finalize_ddr_dependent): Do not dump redundant info.
39174 (analyze_siv_subscript): Adjust.
39175 (subscript_dependence_tester): Likewise.
39176 (compute_affine_dependence): Likewise.
39178 2013-01-03 Richard Biener <rguenther@suse.de>
39181 2013-01-03 Richard Biener <rguenther@suse.de>
39183 PR tree-optimization/55857
39184 * tree-vect-stmts.c (vectorizable_load): Do not setup
39185 re-alignment for invariant loads.
39187 2013-01-02 Richard Biener <rguenther@suse.de>
39189 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39190 invariant load do not generate a vector load from the scalar location.
39192 2013-01-03 Richard Biener <rguenther@suse.de>
39194 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39195 for not vectorizing.
39196 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39197 not build INDIRECT_REFs, call get_name once only.
39198 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39199 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39201 2013-01-03 Richard Biener <rguenther@suse.de>
39203 PR tree-optimization/55857
39204 * tree-vect-stmts.c (vectorizable_load): Do not setup
39205 re-alignment for invariant loads.
39207 2013-01-03 Richard Biener <rguenther@suse.de>
39210 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39211 prefer a built-in decl.
39213 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39215 * gcc.c (process_command): Update copyright notice dates.
39216 * gcov.c (print_version): Likewise.
39217 * gcov-dump.c (print_version): Likewise.
39219 PR rtl-optimization/55838
39220 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39221 iv0.step, iv1.step and step.
39223 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39224 Marc Glisse <marc.glisse@inria.fr>
39226 PR tree-optimization/55832
39227 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39228 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39229 integer_{one,zero}_node.
39231 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39234 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39235 * var-tracking.c (reverse_op): Don't add reverse ops to
39236 VALUEs that have already
39237 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39239 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39241 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39243 2013-01-02 Teresa Johnson <tejohnson@google.com>
39245 * dumpfile.c (dump_loc): Print filename with location.
39246 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39247 new location_t parameter to emit complete unroll message with
39248 new dump framework.
39249 (canonicalize_loop_induction_variables): Compute loops location
39250 and pass to try_unroll_loop_completely.
39251 * loop-unroll.c (report_unroll_peel): New function.
39252 (peel_loops_completely): Use new dump format with location
39253 for main dumpfile message, and invoke report_unroll_peel on success.
39254 (decide_unrolling_and_peeling): Ditto.
39255 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39256 by report_unroll_peel.
39257 (decide_peel_completely): Ditto.
39258 (decide_unroll_constant_iterations): Ditto.
39259 (decide_unroll_runtime_iterations): Ditto.
39260 (decide_peel_simple): Ditto.
39261 (decide_unroll_stupid): Ditto.
39262 * cfgloop.c (get_loop_location): New function.
39263 * cfgloop.h (get_loop_location): Declare.
39265 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39267 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39270 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39272 PR middle-end/55198
39273 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39274 BLKmode objects when EXPAND_MEMORY is specified.
39276 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39278 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39280 (fold_builtin_cpu): Do not share cpu model decls across statements.
39282 2013-01-02 Jason Merrill <jason@redhat.com>
39285 * tree.c (build_array_type_1): Revert earlier change.
39287 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39289 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39291 * config/aarch64/aarch64-tune.md: Re-generate.
39293 2013-01-02 Richard Biener <rguenther@suse.de>
39295 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39296 invariant load do not generate a vector load from the scalar location.
39298 2013-01-02 Richard Biener <rguenther@suse.de>
39301 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39302 * configure: Regenerate.
39304 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39306 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39307 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39308 (expand_builtin_int_roundingfn_2): Keep the original target around
39309 for the fallback case.
39311 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39313 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39314 to be clear for sign changes.
39316 2013-01-01 Jan Hubicka <jh@suse.cz>
39318 * ipa-inline-analysis.c: Fix formatting.
39320 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39322 PR tree-optimization/55831
39323 * tree-vect-loop.c (get_initial_def_for_induction): Use
39324 gsi_after_labels instead of gsi_start_bb.
39326 Copyright (C) 2013 Free Software Foundation, Inc.
39328 Copying and distribution of this file, with or without modification,
39329 are permitted in any medium without royalty provided the copyright
39330 notice and this notice are preserved.